/* Owner 11-17 «минимал, цөөн цэстэй» — 📊 Самбар, 📞 Залгах, дэд табууд. Loaded after apple.css. */
:root{--mn-ink:#1d1d1f;--mn-2:#6e6e73;--mn-3:#8e8e93;--mn-line:rgba(0,0,0,.08);--mn-teal:#11857f;--mn-teal-soft:rgba(19,124,119,.12);--mn-chat:#d9e7e5}
body:is([data-view=home],[data-view=calls]) #stats{display:none}
body:is([data-view=home],[data-view=calls]) .app-footer{display:none}

/* sidebar icons for the new rows and the three groups */
:where(.sidebar) .nav:is([data-view=home],[data-view=calls]){--tile:linear-gradient(180deg,#34c2b6,#11857f)}
:where(.sidebar) .nav[data-group=pay]{--tile:linear-gradient(180deg,#5ab0ff,#1a7cf5);--ic:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5.5' width='18' height='13' rx='2.5'/%3E%3Cpath d='M3 10h18M7 15h3'/%3E%3C/svg%3E")}
:where(.sidebar) .nav[data-group=visits]{--tile:linear-gradient(180deg,#34c2b6,#11857f)}
:where(.sidebar) .nav[data-group=setup]{--tile:linear-gradient(180deg,#a3a9b3,#7c838e);--ic:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3Cpath d='M12 2.8v2.4M12 18.8v2.4M2.8 12h2.4M18.8 12h2.4M5.5 5.5l1.7 1.7M16.8 16.8l1.7 1.7M5.5 18.5l1.7-1.7M16.8 7.2l1.7-1.7'/%3E%3C/svg%3E")}
:where(.sidebar) .nav[data-view=home]{--ic:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 20v-7M10 20V6M15 20v-9M20 20V9'/%3E%3C/svg%3E")}
:where(.sidebar) .nav[data-view=calls]{--ic:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 4h3.5l1.8 4.5-2.3 1.4a11 11 0 0 0 6.1 6.1l1.4-2.3L20 15.5V19a1.5 1.5 0 0 1-1.6 1.5A16 16 0 0 1 3.5 5.6 1.5 1.5 0 0 1 5 4z'/%3E%3C/svg%3E")}

/* tabs above a page (the views that left the sidebar) */
.subtabs{display:block;margin:0 0 16px}
.subtab-row{display:flex;gap:6px;overflow-x:auto;scrollbar-width:none;padding:2px 1px}
.subtab-row::-webkit-scrollbar{display:none}
.subtab{flex:none;display:inline-flex;align-items:center;gap:6px;padding:7px 14px;border:0;border-radius:999px;background:#fff;color:var(--mn-ink);font:500 13.5px/1.2 -apple-system,BlinkMacSystemFont,"SF Pro Text","Segoe UI",Roboto,Arial,sans-serif;box-shadow:0 0 0 1px var(--mn-line);cursor:pointer;white-space:nowrap}
.subtab:hover{background:#f2f2f4}
.subtab.selected{background:var(--mn-teal);color:#fff;box-shadow:none}
.subtab .nav-count{margin:0;color:inherit;opacity:.75;font-size:12px}
.subtab[hidden]{display:none}

/* bookings list rows: calling now lives on 📞 Залгах */
#bookings-view .row-actions :is([data-call-reached],[data-call-missed]){display:none}

/* ── 📊 Самбар ───────────────────────────────────────────── */
.mh{display:flex;flex-direction:column;gap:16px;font-family:-apple-system,BlinkMacSystemFont,"SF Pro Text","Segoe UI",Roboto,Arial,sans-serif;color:var(--mn-ink)}
.mh-periods{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
.mh-card{background:#fff;border-radius:18px;padding:18px 18px 14px;box-shadow:0 0 0 1px var(--mn-line)}
.mh-card.hl{box-shadow:0 0 0 2px var(--mn-teal)}
.mh-card header{display:flex;align-items:baseline;justify-content:space-between;gap:8px}
.mh-card h3{margin:0;font-size:15px;font-weight:600}
.mh-card header span{font-size:12.5px;color:var(--mn-3)}
.mh-big{display:flex;align-items:baseline;gap:8px;margin:10px 0 12px}
.mh-big b{font-size:38px;font-weight:700;letter-spacing:-.03em;font-variant-numeric:tabular-nums}
.mh-big span{font-size:13px;color:var(--mn-2)}
.mh-dl{margin:0;display:flex;flex-direction:column}
.mh-dl div{display:flex;justify-content:space-between;align-items:baseline;gap:10px;padding:8px 0;border-top:1px solid var(--mn-line)}
.mh-dl dt{font-size:13.5px;color:var(--mn-2);white-space:nowrap}
.mh-dl dd{margin:0;font-size:16px;font-weight:600;text-align:right;font-variant-numeric:tabular-nums}
.mh-dl dd small{display:block;font-size:11.5px;font-weight:500;color:var(--mn-3)}
.mh-todo{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}
.mh-todo-item{display:flex;align-items:center;gap:12px;padding:12px 14px;border:0;border-radius:14px;background:#fff;box-shadow:0 0 0 1px var(--mn-line);text-align:left;cursor:pointer;color:var(--mn-ink);font:inherit}
.mh-todo-item:hover{background:#f7f7f8}
.mh-todo-item b{font-size:24px;font-weight:700;color:#c25e00;min-width:28px;font-variant-numeric:tabular-nums}
.mh-todo-item.zero b{color:var(--mn-3)}
.mh-todo-item span{display:flex;flex-direction:column;font-size:14px;font-weight:600}
.mh-todo-item small{font-size:12px;font-weight:400;color:var(--mn-3)}
.mh-range{padding:18px;border-radius:18px}
.mh-range header{display:flex;flex-wrap:wrap;align-items:center;gap:10px 14px}
.mh-range h3{margin:0 auto 0 0;font-size:17px;font-weight:600}
.mh-range-form{display:flex;align-items:center;gap:6px}
.mh-range-form input{height:34px;padding:0 8px;border:1px solid var(--mn-line);border-radius:9px;font:inherit;font-size:13.5px;background:#fff}
.mh-range-form button{height:34px}
.mh-dl-btn{display:inline-flex;align-items:center;height:34px;padding:0 14px;border-radius:999px;background:var(--mn-teal);color:#fff;text-decoration:none;font-size:13.5px;font-weight:600}
.mh-kpis{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px;margin:16px 0 6px}
.mh-kpis div{padding:10px 12px;border-radius:12px;background:#f5f5f7}
.mh-kpis span{display:block;font-size:12px;color:var(--mn-2)}
.mh-kpis b{font-size:19px;font-weight:700;font-variant-numeric:tabular-nums}
.mh-chart{display:flex;align-items:stretch;gap:3px;height:150px;margin-top:14px}
.mh-col{flex:1 1 0;min-width:0;display:flex;flex-direction:column;gap:4px}
.mh-bars{position:relative;flex:1}
.mh-bars i{position:absolute;left:0;right:0;bottom:0;border-radius:3px 3px 1px 1px}
.mh-bars i.c{background:var(--mn-chat)}
.mh-bars i.b{left:22%;right:22%;background:var(--mn-teal)}
.mh-col span{height:14px;font-size:10.5px;color:var(--mn-3);text-align:center;white-space:nowrap;overflow:visible}
.mh-legend{display:flex;gap:16px;margin-top:8px;font-size:12px;color:var(--mn-2)}
.mh-legend i{display:inline-block;width:10px;height:10px;border-radius:3px;margin-right:6px;vertical-align:-1px}
.mh-legend i.c{background:var(--mn-chat)}.mh-legend i.b{background:var(--mn-teal)}
.mh-note{margin:12px 0 0;font-size:12px;line-height:1.5;color:var(--mn-3)}

/* ── 📞 Залгах ───────────────────────────────────────────── */
.mc{display:flex;flex-direction:column;gap:14px;font-family:-apple-system,BlinkMacSystemFont,"SF Pro Text","Segoe UI",Roboto,Arial,sans-serif;color:var(--mn-ink)}
.mc-head{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:10px}
.mc-head p{margin:0;font-size:14px;color:var(--mn-2);max-width:520px}
.mc-list{padding:0;border-radius:18px;overflow:hidden}
.mc-row{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:14px;padding:12px 16px;border-top:1px solid var(--mn-line)}
.mc-row:first-child{border-top:0}
.mc-phone{font-size:16px;font-weight:700;color:var(--mn-teal);text-decoration:none;font-variant-numeric:tabular-nums;white-space:nowrap}
.mc-main{min-width:0;display:flex;flex-direction:column}
.mc-main b{font-size:14.5px;font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.mc-main small{font-size:12.5px;color:var(--mn-3);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.mc-sel{height:34px;padding:0 30px 0 12px;border:1px solid var(--mn-line);border-radius:10px;background-color:#fff;font:inherit;font-size:13.5px;color:var(--mn-ink);cursor:pointer;max-width:210px}
.mc-row.later .mc-sel,.mc-row.no_answer .mc-sel{background-color:#fff6e8;border-color:#f3d9b0}
.mc-more{align-self:center}
.mc-list .empty{padding:28px;text-align:center;color:var(--mn-2)}

@media(max-width:980px){
  .mh-periods{grid-template-columns:1fr}
  .mh-todo{grid-template-columns:repeat(2,minmax(0,1fr))}
  .mh-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:680px){
  .mh-big b{font-size:32px}
  .mh-range header{align-items:stretch}
  .mh-range-form{flex-wrap:wrap;width:100%}
  .mh-range-form input{flex:1;min-width:0}
  .mc-row{grid-template-columns:minmax(0,1fr) auto;grid-template-areas:"p s" "m m";gap:4px 10px;padding:12px 14px}
  .mc-phone{grid-area:p}.mc-sel{grid-area:s;max-width:170px}.mc-main{grid-area:m}
}

/* ── 🔁 Давтан үзлэгийн сануулга (Bolor 11-17, owner 11-18 «шууд нүдэнд харагддаг») ── */
.recall-banner{position:sticky;top:0;z-index:6;display:flex;align-items:stretch;margin:0 0 12px;border-radius:0 0 14px 14px;background:#c62828;color:#fff;box-shadow:0 6px 18px rgba(198,40,40,.3);font-family:-apple-system,BlinkMacSystemFont,"SF Pro Text","Segoe UI",Roboto,Arial,sans-serif}
.recall-banner .rb-go{flex:1;min-width:0;display:flex;align-items:center;gap:10px;padding:12px 6px 12px 16px;color:#fff;text-align:left;cursor:pointer}
.recall-banner .rb-go b{font-size:15.5px;font-weight:700;line-height:1.3}
.recall-banner .rb-go span{margin-left:auto;padding:5px 11px;border-radius:999px;background:#fff;color:#c62828;font-size:13px;font-weight:700;white-space:nowrap}
.recall-banner .rb-x{flex:none;padding:0 14px;color:#fff;font-size:24px;line-height:1;opacity:.85}
.recall-banner .rb-x:hover,.recall-banner .rb-go:hover{background:rgba(255,255,255,.1)}
.nav-count.recall-badge{min-width:20px;padding:1px 7px;border-radius:999px;background:#d32f2f;color:#fff;font-size:11.5px;font-weight:700;text-align:center}
.nav-count.recall-badge:empty{display:none}
.nav-count+.nav-count{margin-left:4px}
.mc-recalls{display:flex;flex-direction:column;gap:8px}
.mc-recalls h3{margin:0;font-size:16px;font-weight:700;color:#b71c1c}
.mc-recalls h3 span{display:inline-block;min-width:22px;margin-left:4px;padding:1px 8px;border-radius:999px;background:#d32f2f;color:#fff;font-size:12.5px;text-align:center;vertical-align:2px}
.mc-recalls p{margin:0;font-size:13.5px;color:var(--mn-2)}
.mc-recalls .mc-list{box-shadow:0 0 0 2px #f2c4c4}
.mc-due{font-weight:700;color:var(--mn-2)}
.mc-due.today{color:#c25e00}
.mc-due.late{color:#c62828}
.register-recall{display:flex;flex-wrap:wrap;align-items:flex-end;gap:0 12px;margin-top:6px}
.register-recall label{flex:1 1 180px;margin-bottom:8px}
.register-recall-hint{flex:1 0 100%;margin:0 0 6px;font-size:13px;font-weight:600;color:#11857f}
.register-recall-hint:empty{display:none}
@media(max-width:680px){
  .recall-banner{margin:0 -14px 12px;border-radius:0}
  .recall-banner .rb-go{flex-wrap:wrap;gap:6px}
  .recall-banner .rb-go b{font-size:15px}
}

/* ── 🧒 Хөгжлийн үзлэг (doctor's sheet 11-19): compact choices that work on a phone ── */
.register-child{border:1px solid var(--line);border-radius:10px;padding:12px 14px;margin:14px 0}
.register-child legend{font-weight:600;padding:0 6px}
.register-child .child-hint{margin:0 0 10px;font-size:12px;color:var(--muted)}
.child-part{margin:0 0 14px}
.child-part:last-child{margin-bottom:0}
.child-part>b{display:block;margin-bottom:7px;font-size:12px;font-weight:600;color:#5a7173}
.child-part>b small{font-weight:400;color:var(--muted)}
.child-part .register-form-grid{margin-top:10px}
.child-part .register-form-grid label{margin:0}
.child-sex{display:block;margin:0 0 6px;font-size:11px;font-weight:600;letter-spacing:.02em;color:var(--muted)}
.child-chips{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}
.child-chips.child-checks{grid-template-columns:repeat(2,minmax(0,1fr))}
.register-child .chip{position:relative;display:flex;align-items:center;justify-content:center;gap:6px;min-width:0;min-height:38px;margin:0;padding:6px 8px;border:1px solid #cfdcdb;border-radius:9px;background:#fff;color:var(--ink);font-size:13px;font-weight:600;line-height:1.2;text-align:center;cursor:pointer;-webkit-tap-highlight-color:transparent}
.register-child .chip[aria-pressed=true],.register-child .chip:has(input:checked){background:var(--teal);border-color:var(--teal);color:#fff}
.register-child .chip:focus-visible,.register-child .chip:has(input:focus-visible){outline:2px solid var(--teal);outline-offset:2px}
.child-checks .chip{justify-content:flex-start;text-align:left}
.register-child label.chip input{display:block;flex:none;width:16px;height:16px;margin:0;padding:0;accent-color:var(--teal)}   /* the real checkbox shows the state even without :has() */
.register-child label.chip:has(input:checked) input{accent-color:#fff}
/* puberty: one joined segmented row per sign (P 0 1 2 3 4) */
.child-row{display:grid;grid-template-columns:62px minmax(0,1fr);align-items:center;gap:8px;margin-bottom:6px}
.child-row>span{font-size:14px;font-weight:700;line-height:1.15}
.child-row>span small{display:block;font-size:10.5px;font-weight:400;color:var(--muted)}
.child-row .child-chips{display:flex;gap:0}
.child-row .chip{flex:0 1 40px;min-width:30px;min-height:36px;padding:0;border-radius:0;margin-left:-1px}
.child-row .chip:first-of-type{margin-left:0;border-radius:9px 0 0 9px}
.child-row .chip:last-of-type{border-radius:0 9px 9px 0}
.child-row .chip[aria-pressed=true]{position:relative;z-index:1}
.child-note{margin:0;font-size:13px}
.child-note[hidden],[data-puberty][hidden]{display:none}

/* ── 🩺 Үзсэн эмч, зөвлөгөө (Lora 12-01, #270): the sheet's block, the register's short preview, the child's folder in full ── */
.register-exam{border:1px solid var(--line);border-radius:10px;padding:12px 14px;margin:14px 0}
.register-exam legend{font-weight:600;padding:0 6px}
.register-exam textarea{width:100%;min-height:4.5em;resize:vertical}
.exam-preview{display:flex;flex-direction:column;gap:2px;min-width:9em;max-width:15em;font-size:12px;line-height:1.35;white-space:normal;overflow-wrap:anywhere}
.exam-preview span{color:#4d6264}
.exam-notes{margin-top:16px}
.exam-notes h3{margin:0 0 8px;font-size:15px}
.exam-note{border:1px solid var(--line);border-radius:10px;padding:10px 12px;margin:0 0 8px;background:#fff}
.exam-note.current-visit{border-color:#9fcdc6;background:#f4faf9}
.exam-note header{display:flex;flex-wrap:wrap;gap:4px 12px;margin-bottom:6px;font-size:13px}
.exam-note header span{color:#4d6264}
.exam-note small{display:block;font-size:11.5px;font-weight:600;color:#5a7173}
.exam-note p{margin:2px 0 8px;white-space:pre-wrap;overflow-wrap:anywhere;font-size:14px;line-height:1.45}
.exam-note div:last-child p{margin-bottom:0}

/* ── 📱 Утасны доод цэс (owner 11-19 «Idoc-ийн утасны цэсийг happybox шиг designtai») ──────────────────
   Below 900px: Happybox admin's tab bar (glass bar at the bottom, 4 tabs + «Бусад» sheet with a scrim) replaces the sidebar
   and its top row of tabs; the header keeps the brand and the page title. Built by minimal.js (#ptab). ≥ 900px nothing changes.
   Tokens are Happybox's, renamed --pt-*; the tint is the clinic teal. Light only for now (the pages have no dark theme yet):
   the bar, the sheet and the header are themed, the pages keep their own (light) colours — so the dark glass is denser than
   Happybox's (.9, not .7) to stay dark over a light page. */
:root{--pt-font:-apple-system,BlinkMacSystemFont,"SF Pro Text","Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;
  --pt-h:62px;--pt-safe:env(safe-area-inset-bottom,0px);--pt-reserve:calc(var(--pt-h) + var(--pt-safe));--pt-gutter:20px;
  --pt-pad-l:max(var(--pt-gutter),env(safe-area-inset-left,0px));--pt-pad-r:max(var(--pt-gutter),env(safe-area-inset-right,0px));
  --pt-ink:#1d1d1f;--pt-ink-4:#7d7d82;--pt-fill:rgba(118,118,128,.10);--pt-glass:rgba(246,246,248,.72);--pt-glass-strong:rgba(255,255,255,.84);
  --pt-glass-bd:rgba(0,0,0,.07);--pt-scrim:rgba(0,0,0,.30);--pt-ring:#f6f6f8;--pt-tint:#137c77;--pt-tint-ink:#0f6b66;
  --pt-head:transparent;--pt-head-ink:#1d1d1f;--pt-red:#d70015;--pt-amber:#b45309;--pt-grey:#6e6e73;
  --pt-sh:0 32px 90px rgba(0,0,0,.24),0 8px 24px rgba(0,0,0,.10);--pt-ease:cubic-bezier(.22,.8,.24,1)}
@media(max-width:680px){:root{--pt-gutter:14px}}
/* dark: none yet — the pages are light-only, so the bar and header stay light (product lead 11-19) */
.ptab,.ptab-brand{display:none}
@media(max-width:899px),(pointer:coarse) and (max-height:500px){   /* phones, also turned sideways (a Pro Max is 932px wide) */
  .sidebar{display:none}                                     /* the old top row of tabs */
  .recall-banner{margin-bottom:0}                            /* the header starts right under the red line */
  main{margin-left:0;padding-left:var(--pt-pad-l);padding-right:var(--pt-pad-r);padding-bottom:calc(var(--pt-reserve) + 24px)}
  /* header: brand + actions on one line, the page title under it */
  .topbar{display:grid;grid-template-columns:minmax(0,1fr) auto;grid-template-areas:"brand act" "title title";align-items:center;gap:2px 8px;
    height:auto;min-height:0;margin:0 calc(-1 * var(--pt-pad-r)) 12px calc(-1 * var(--pt-pad-l));padding:calc(8px + env(safe-area-inset-top,0px)) var(--pt-pad-r) 12px var(--pt-pad-l);
    background:var(--pt-head);color:var(--pt-head-ink);font-family:var(--pt-font)}
  .topbar>div:not(.ptab-brand):not(.topbar-actions){grid-area:title;min-width:0}
  .topbar .eyebrow,.topbar .avatar{display:none}
  .topbar h1{margin:0;font-size:28px;line-height:1.15;font-weight:700;letter-spacing:-.025em;color:var(--pt-head-ink)}
  .ptab-brand{grid-area:brand;display:flex;align-items:center;gap:9px;min-width:0;font:700 16px/1.1 var(--pt-font);letter-spacing:-.024em}
  .ptab-brand .brand-mark{flex:none;width:30px;height:30px;border-radius:9px}
  .topbar-actions{grid-area:act;gap:4px}
  .topbar #refresh{width:44px;height:44px;border:0;border-radius:50%;background:var(--pt-fill);color:var(--pt-ink);font-size:21px}
  .topbar #logout{min-height:44px;margin:0;padding:0 8px;color:var(--pt-tint-ink);font:600 15px/1 var(--pt-font)}
  /* nothing fixed sits under the bar */
  .toast{bottom:calc(var(--pt-reserve) + 12px)}
  .pet,.pet-chip{right:max(10px,env(safe-area-inset-right,0px));bottom:calc(var(--pt-reserve) + 10px)}
  .fl-panel{bottom:calc(var(--pt-reserve) + 16px)}
  .cb-layout:has(.rich-workspace) .cb-actions{bottom:var(--pt-reserve)}
  /* typing: the on-screen keyboard is up, the bar would float over it on iOS */
  body:has(:is(input:is(:not([type]),[type=text],[type=search],[type=tel],[type=number],[type=email],[type=password],[type=url]),textarea):focus) .ptab{display:none}

  .ptab{position:fixed;left:0;right:0;bottom:0;z-index:40;display:grid;grid-template-columns:repeat(var(--ptab-cols,5),minmax(0,1fr));
    padding:5px max(6px,env(safe-area-inset-right,0px)) calc(5px + var(--pt-safe)) max(6px,env(safe-area-inset-left,0px));border-top:1px solid var(--pt-glass-bd);
    font-family:var(--pt-font);-webkit-font-smoothing:antialiased;-webkit-tap-highlight-color:transparent}
  .ptab::before{content:"";position:absolute;inset:0;z-index:-1;background:var(--pt-glass);-webkit-backdrop-filter:saturate(180%) blur(26px);backdrop-filter:saturate(180%) blur(26px)}
  .ptab.is-open{z-index:55}                                  /* the open sheet covers the pet too */
  .ptab [hidden]{display:none!important}
  .ptab-tab{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;height:52px;min-width:0;margin:0;padding:0;border:0;border-radius:14px;
    background:transparent;color:var(--pt-ink-4);font:500 10.5px/1.1 var(--pt-font);letter-spacing:0;cursor:pointer;list-style:none;transition:color .2s var(--pt-ease)}
  .ptab-tab::-webkit-details-marker{display:none}
  .ptab-tab::marker{content:""}
  .ptab-tab:active .ptab-ico{transform:scale(.88)}
  .ptab-tab:focus-visible,.ptab-item:focus-visible{outline:3px solid rgba(19,124,119,.35);outline-offset:-2px}
  .ptab-tab.is-on{color:var(--pt-tint);font-weight:600}
  .ptab-tab.is-on .ptab-svg{fill:currentColor;fill-opacity:.14}
  .ptab-svg{width:25px;height:25px;flex:none;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
  .ptab-svg .fill{fill:currentColor;fill-opacity:1;stroke:none}
  .ptab-ico{position:relative;display:grid;transition:transform .16s var(--pt-ease)}
  .ptab-label{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;padding:0 2px}
  .ptab-ico .ptab-badges{position:absolute;top:-5px;left:calc(100% - 9px);display:flex;gap:2px}
  .ptab-badge{min-width:18px;height:18px;padding:0 5px;border-radius:99px;background:var(--pt-grey);color:#fff;font:650 10.5px/18px var(--pt-font);
    text-align:center;font-variant-numeric:tabular-nums;white-space:nowrap;box-shadow:0 0 0 2px var(--pt-ring)}
  .ptab-badge.red,.ptab-dot.red{background:var(--pt-red)}
  .ptab-badge.amber,.ptab-dot.amber{background:var(--pt-amber)}
  .ptab-dot{position:absolute;top:-2px;right:-4px;width:9px;height:9px;border-radius:50%;background:var(--pt-grey);box-shadow:0 0 0 2px var(--pt-ring)}
  .ptab-more{display:block;min-width:0}
  .ptab-more>summary{display:block;width:100%}             /* WebKit has ignored flex on <summary>: the inner span lays it out */
  .ptab-tab-in{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;height:100%;min-width:0}
  .ptab-scrim{position:fixed;inset:0;z-index:-2;background:var(--pt-scrim)}
  .ptab-sheet{position:fixed;left:max(10px,env(safe-area-inset-left,0px));right:max(10px,env(safe-area-inset-right,0px));bottom:calc(var(--pt-reserve) + 10px);
    max-height:calc(100vh - var(--pt-reserve) - 90px);max-height:calc(100dvh - var(--pt-reserve) - 90px);overflow-y:auto;overscroll-behavior:contain;
    display:flex;flex-direction:column;gap:2px;padding:8px;border-radius:24px;background:var(--pt-glass-strong);
    -webkit-backdrop-filter:saturate(180%) blur(30px);backdrop-filter:saturate(180%) blur(30px);box-shadow:var(--pt-sh),0 0 0 1px var(--pt-glass-bd)}
  .ptab-more[open] .ptab-scrim{animation:ptab-fade .22s ease both}
  .ptab-more[open] .ptab-sheet{animation:ptab-up .34s var(--pt-ease) both}
  .ptab-item{display:flex;align-items:center;gap:14px;width:100%;min-height:52px;margin:0;padding:0 12px;border:0;border-radius:15px;background:transparent;
    color:var(--pt-ink);font:500 16px/1.2 var(--pt-font);text-align:left;cursor:pointer}
  .ptab-item:active,.ptab-item.is-on{background:var(--pt-fill)}
  .ptab-item.is-on{color:var(--pt-tint-ink);font-weight:600}
  .ptab-item-label{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  .ptab-item .ptab-badges{display:flex;gap:4px}
  .ptab-item .ptab-badge{min-width:22px;height:20px;padding:0 7px;font-size:11.5px;line-height:20px;box-shadow:none}
  .ptab-item .ptab-chev{width:16px;height:16px;color:var(--pt-ink-4)}
  .ptab-sq{display:grid;place-items:center;flex:none;width:32px;height:32px;border-radius:9px;color:#fff;background:#8e8e93}
  .ptab-sq .ptab-svg{width:19px;height:19px;stroke-width:2}
  .ptab-sq[data-pt-sq=home]{background:#ff9500}
  .ptab-sq[data-pt-sq=calendar]{background:#ff3b30}
  .ptab-sq[data-pt-sq=calls]{background:#34c759}
  .ptab-sq[data-pt-sq=bookings]{background:#007aff}
  .ptab-sq[data-pt-sq=pay]{background:#34c759}
  .ptab-sq[data-pt-sq=visits]{background:#11857f}
  .ptab-sq[data-pt-sq=inbox]{background:#007aff}
  .ptab-sq[data-pt-sq=setup]{background:#8e8e93}
}
@keyframes ptab-fade{from{opacity:0}to{opacity:1}}
@keyframes ptab-up{from{opacity:.6;transform:translateY(40px)}to{opacity:1;transform:none}}
@media(prefers-reduced-motion:reduce){.ptab-more[open] :is(.ptab-scrim,.ptab-sheet){animation:none}.ptab-tab,.ptab-ico{transition:none}}
@media print{.ptab,.ptab-brand{display:none!important}}
