/* ==========================================================================
   Hospital Easy — "Care" design system (Smart Appointment, roadmap A0)
   Patient app: search, AI care guide, cart, video consult, chat.
   Prefix: cx-   ·   Mobile first   ·   No framework needed (works next to Bootstrap 5).
   Brand: same teal + orange as portal.css, so the old and new pages feel like one site.
   ========================================================================== */

:root {
    /* brand */
    --cx-brand: #0b6e6a;
    --cx-brand-600: #095a57;
    --cx-brand-100: #d3ecea;
    --cx-brand-050: #ecf7f6;
    --cx-accent: #f26b21;
    --cx-accent-600: #d95a14;
    --cx-accent-050: #fff1e8;
    --cx-navy: #0b2534;

    /* text + surfaces */
    --cx-ink: #14232d;
    --cx-ink-2: #3c4f5c;
    --cx-muted: #6a7d89;
    --cx-line: #e2eaee;
    --cx-line-2: #cfdbe1;
    --cx-bg: #f3f7f8;
    --cx-card: #ffffff;
    --cx-raised: #ffffff;

    /* status (live presence, urgency) */
    --cx-online: #16a34a;
    --cx-opd: #2563eb;
    --cx-busy: #d97706;
    --cx-offline: #94a3b8;
    --cx-leave: #dc2626;
    --cx-danger: #c81e1e;
    --cx-danger-050: #fdecec;
    --cx-warn-050: #fff6e5;
    --cx-ok-050: #e9f8ef;
    --cx-info-050: #eaf1fe;

    /* type */
    --cx-font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --cx-head: "Poppins", var(--cx-font);
    --cx-hindi: "Noto Sans Devanagari", var(--cx-font);
    --cx-fs-xs: .75rem;
    --cx-fs-sm: .875rem;
    --cx-fs-md: 1rem;
    --cx-fs-lg: 1.125rem;
    --cx-fs-xl: 1.375rem;
    --cx-fs-2xl: 1.75rem;
    --cx-fs-3xl: 2.25rem;

    /* shape + depth */
    --cx-r-sm: 10px;
    --cx-r: 14px;
    --cx-r-lg: 20px;
    --cx-r-xl: 28px;
    --cx-r-pill: 999px;
    --cx-sh-1: 0 1px 2px rgba(11, 37, 52, .06), 0 1px 3px rgba(11, 37, 52, .06);
    --cx-sh-2: 0 6px 20px rgba(11, 37, 52, .08);
    --cx-sh-3: 0 18px 48px rgba(11, 37, 52, .16);
    --cx-ring: 0 0 0 3px rgba(11, 110, 106, .28);

    /* layout */
    --cx-gutter: 16px;
    --cx-max: 100%;   /* full width (container-fluid) — owner's choice 23-Nov; forms keep their own narrow width */
    --cx-header-h: 60px;
    --cx-tabbar-h: 64px;
    --cx-ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- base ---------- */
.cx-app { font-family: var(--cx-font); color: var(--cx-ink); background: var(--cx-bg); -webkit-font-smoothing: antialiased; min-height: 100vh; font-size: var(--cx-fs-md); line-height: 1.5; }
.cx-app *, .cx-app *::before, .cx-app *::after { box-sizing: border-box; }
.cx-app h1, .cx-app h2, .cx-app h3, .cx-app h4 { font-family: var(--cx-head); color: var(--cx-navy); margin: 0; line-height: 1.25; }
.cx-app p { margin: 0; }
/* links only — a link styled as a button keeps its button colour (was: "View slots" teal on teal) */
.cx-app a:not(.cx-btn) { color: var(--cx-brand); }
.cx-app button { font: inherit; }
.cx-app :focus-visible { outline: none; box-shadow: var(--cx-ring); }
.cx-hi { font-family: var(--cx-hindi); }
.cx-muted { color: var(--cx-muted); }
.cx-sm { font-size: var(--cx-fs-sm); }
.cx-xs { font-size: var(--cx-fs-xs); }
.cx-app [hidden] { display: none !important; }
.cx-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.cx-ico { width: 1.25em; height: 1.25em; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; vertical-align: -.25em; }

/* ---------- layout shell ---------- */
.cx-header { position: sticky; top: 0; z-index: 50; height: var(--cx-header-h); background: rgba(255, 255, 255, .92); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--cx-line); }
.cx-header-in { max-width: var(--cx-max); margin: 0 auto; height: 100%; padding: 0 var(--cx-gutter); display: flex; align-items: center; gap: 12px; }
.cx-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--cx-navy); font-family: var(--cx-head); font-weight: 600; min-width: 0; }
.cx-logo-mark { width: 36px; height: 36px; border-radius: 10px; background: linear-gradient(135deg, var(--cx-brand), #19b5a0); color: #fff; display: grid; place-items: center; font-weight: 700; flex: none; }
.cx-logo-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: var(--cx-fs-md); }
.cx-nav { display: none; gap: 4px; margin-left: 12px; }
.cx-nav a { text-decoration: none; color: var(--cx-ink-2); padding: 8px 12px; border-radius: var(--cx-r-pill); font-weight: 500; font-size: var(--cx-fs-sm); white-space: nowrap; }
.cx-nav a:hover { background: var(--cx-brand-050); color: var(--cx-brand); }
.cx-nav a.is-on { background: var(--cx-brand-050); color: var(--cx-brand); }
.cx-header-end { margin-left: auto; display: flex; align-items: center; gap: 8px; }

.cx-main { max-width: var(--cx-max); margin: 0 auto; padding: 16px var(--cx-gutter) calc(var(--cx-tabbar-h) + 24px); }
.cx-section { margin-top: 28px; }
.cx-section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.cx-section-head h2 { font-size: var(--cx-fs-lg); }
.cx-grid { display: grid; gap: 14px; }
.cx-grid-2, .cx-grid-3, .cx-grid-4 { grid-template-columns: 1fr; }
.cx-split { display: grid; gap: 18px; grid-template-columns: minmax(0, 1fr); }
.cx-stack { display: flex; flex-direction: column; gap: 12px; }
.cx-split > *, .cx-stack > *, .cx-grid > * { min-width: 0; }   /* a scrolling day strip must not widen the page */
.cx-row { display: flex; align-items: center; gap: 10px; }
.cx-row-wrap { display: flex; flex-wrap: wrap; gap: 8px; }
.cx-spacer { flex: 1; }

/* bottom tab bar (mobile) */
.cx-tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; height: calc(var(--cx-tabbar-h) + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom); background: #fff; border-top: 1px solid var(--cx-line); display: grid; grid-template-columns: repeat(5, 1fr); box-shadow: 0 -6px 20px rgba(11, 37, 52, .06); }
.cx-tab { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; color: var(--cx-muted); text-decoration: none; font-size: 11px; font-weight: 600; position: relative; background: none; border: 0; cursor: pointer; }
.cx-tab .cx-ico { width: 22px; height: 22px; }
.cx-tab.is-on { color: var(--cx-brand); }
.cx-tab.is-on::before { content: ""; position: absolute; top: 0; width: 28px; height: 3px; border-radius: 0 0 3px 3px; background: var(--cx-brand); }
.cx-tab-badge { position: absolute; top: 8px; left: calc(50% + 6px); min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--cx-accent); color: #fff; font-size: 10px; display: grid; place-items: center; }
.cx-tab-main .cx-tab-fab { width: 46px; height: 46px; margin-top: -18px; border-radius: 50%; background: linear-gradient(135deg, var(--cx-accent), #ff9a52); color: #fff; display: grid; place-items: center; box-shadow: 0 8px 20px rgba(242, 107, 33, .4); }

/* ---------- buttons ---------- */
.cx-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: var(--cx-r-pill); border: 1.5px solid transparent; font-weight: 600; font-size: var(--cx-fs-sm); cursor: pointer; text-decoration: none; transition: background-color .15s, box-shadow .15s, transform .1s, color .15s; white-space: nowrap; }
.cx-btn:active { transform: scale(.98); }
.cx-btn:disabled, .cx-btn[aria-disabled="true"] { opacity: .5; pointer-events: none; }
.cx-btn-primary { background: var(--cx-brand); color: #fff; }
.cx-btn-primary:hover { background: var(--cx-brand-600); color: #fff; }
.cx-btn-accent { background: var(--cx-accent); color: #fff; box-shadow: 0 6px 16px rgba(242, 107, 33, .3); }
.cx-btn-accent:hover { background: var(--cx-accent-600); color: #fff; }
.cx-btn-soft { background: var(--cx-brand-050); color: var(--cx-brand); }
.cx-btn-soft:hover { background: var(--cx-brand-100); }
.cx-btn-line { background: #fff; border-color: var(--cx-line-2); color: var(--cx-ink); }
.cx-btn-line:hover { border-color: var(--cx-brand); color: var(--cx-brand); }
.cx-btn-ghost { background: transparent; color: var(--cx-ink-2); }
.cx-btn-ghost:hover { background: var(--cx-brand-050); }
.cx-btn-danger { background: var(--cx-danger); color: #fff; }
.cx-btn-sm { min-height: 36px; padding: 0 14px; font-size: var(--cx-fs-xs); }
.cx-btn-lg { min-height: 52px; padding: 0 24px; font-size: var(--cx-fs-md); }
.cx-btn-block { width: 100%; }
.cx-btn-icon { width: 44px; padding: 0; }
.cx-btn-icon.cx-btn-sm { width: 36px; }

/* ---------- cards ---------- */
.cx-card { background: var(--cx-card); border: 1px solid var(--cx-line); border-radius: var(--cx-r-lg); box-shadow: var(--cx-sh-1); }
.cx-card-pad { padding: 16px; }
.cx-card-hover { transition: box-shadow .2s var(--cx-ease), transform .2s var(--cx-ease), border-color .2s; cursor: pointer; }
.cx-card-hover:hover { box-shadow: var(--cx-sh-2); transform: translateY(-2px); border-color: var(--cx-brand-100); }
.cx-divider { height: 1px; background: var(--cx-line); margin: 12px 0; border: 0; }

/* ---------- chips, badges, status ---------- */
.cx-chip { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 14px; border-radius: var(--cx-r-pill); background: #fff; border: 1.5px solid var(--cx-line-2); color: var(--cx-ink-2); font-size: var(--cx-fs-sm); font-weight: 500; cursor: pointer; transition: all .15s; white-space: nowrap; }
.cx-chip:hover { border-color: var(--cx-brand); color: var(--cx-brand); }
.cx-chip.is-on { background: var(--cx-brand); border-color: var(--cx-brand); color: #fff; }
.cx-chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.cx-chips::-webkit-scrollbar { display: none; }
.cx-badge { display: inline-flex; align-items: center; gap: 4px; padding: 2px 9px; border-radius: var(--cx-r-pill); font-size: var(--cx-fs-xs); font-weight: 600; background: var(--cx-brand-050); color: var(--cx-brand); white-space: nowrap; }
.cx-badge-accent { background: var(--cx-accent-050); color: var(--cx-accent-600); }
.cx-badge-ok { background: var(--cx-ok-050); color: #15803d; }
.cx-badge-warn { background: var(--cx-warn-050); color: #b45309; }
.cx-badge-danger { background: var(--cx-danger-050); color: var(--cx-danger); }
.cx-badge-info { background: var(--cx-info-050); color: #1d4ed8; }
.cx-badge-gray { background: #eef2f5; color: var(--cx-ink-2); }

.cx-status { display: inline-flex; align-items: center; gap: 6px; font-size: var(--cx-fs-xs); font-weight: 600; color: var(--cx-ink-2); }
.cx-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--cx-offline); flex: none; }
.cx-dot-online { background: var(--cx-online); box-shadow: 0 0 0 0 rgba(22, 163, 74, .5); animation: cx-pulse 1.8s infinite; }
.cx-dot-opd { background: var(--cx-opd); }
.cx-dot-busy { background: var(--cx-busy); }
.cx-dot-leave { background: var(--cx-leave); }
@keyframes cx-pulse { 70% { box-shadow: 0 0 0 7px rgba(22, 163, 74, 0); } 100% { box-shadow: 0 0 0 0 rgba(22, 163, 74, 0); } }

/* ---------- avatar ---------- */
.cx-avatar { position: relative; width: 56px; height: 56px; border-radius: 16px; background: linear-gradient(135deg, var(--cx-brand-100), #c7e7f3); color: var(--cx-brand-600); display: grid; place-items: center; font-family: var(--cx-head); font-weight: 600; font-size: 1.1rem; flex: none; overflow: hidden; }
.cx-avatar img { width: 100%; height: 100%; object-fit: cover; }
.cx-avatar-sm { width: 40px; height: 40px; border-radius: 12px; font-size: .9rem; }
.cx-avatar-lg { width: 88px; height: 88px; border-radius: 24px; font-size: 1.6rem; }
.cx-avatar-round { border-radius: 50%; }
.cx-avatar .cx-dot { position: absolute; right: 3px; bottom: 3px; border: 2px solid #fff; width: 13px; height: 13px; }

/* ---------- inputs + search ---------- */
.cx-field { display: flex; flex-direction: column; gap: 6px; }
.cx-label { font-size: var(--cx-fs-sm); font-weight: 600; color: var(--cx-ink-2); }
.cx-input { width: 100%; min-height: 48px; padding: 0 14px; border-radius: var(--cx-r); border: 1.5px solid var(--cx-line-2); background: #fff; color: var(--cx-ink); font-size: var(--cx-fs-md); transition: border-color .15s, box-shadow .15s; }
.cx-input:focus { outline: none; border-color: var(--cx-brand); box-shadow: var(--cx-ring); }
textarea.cx-input { padding: 12px 14px; min-height: 96px; resize: vertical; }

.cx-search { position: relative; }
.cx-search-box { display: flex; align-items: center; gap: 10px; min-height: 56px; padding: 0 8px 0 16px; background: #fff; border: 1.5px solid var(--cx-line-2); border-radius: var(--cx-r-lg); box-shadow: var(--cx-sh-2); transition: border-color .15s, box-shadow .15s; }
.cx-search-box:focus-within { border-color: var(--cx-brand); box-shadow: var(--cx-ring), var(--cx-sh-2); }
.cx-search-box > .cx-ico { color: var(--cx-muted); }
.cx-search-box input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font-size: var(--cx-fs-md); color: var(--cx-ink); height: 54px; }
.cx-search-pop { position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 40; background: #fff; border: 1px solid var(--cx-line); border-radius: var(--cx-r-lg); box-shadow: var(--cx-sh-3); padding: 8px; max-height: 60vh; overflow: auto; }
.cx-search-group { padding: 6px 8px 2px; font-size: var(--cx-fs-xs); font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--cx-muted); }
.cx-search-item { display: flex; align-items: center; gap: 12px; padding: 10px 8px; border-radius: var(--cx-r); cursor: pointer; text-decoration: none; color: var(--cx-ink); }
.cx-search-item:hover, .cx-search-item.is-active { background: var(--cx-brand-050); }
.cx-search-item mark { background: none; color: var(--cx-brand); font-weight: 700; }
.cx-ico-tile { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--cx-brand-050); color: var(--cx-brand); flex: none; }
.cx-ico-tile-accent { background: var(--cx-accent-050); color: var(--cx-accent-600); }

/* mic button */
.cx-mic { width: 42px; height: 42px; border-radius: 50%; border: 0; display: grid; place-items: center; background: var(--cx-brand-050); color: var(--cx-brand); cursor: pointer; flex: none; }
.cx-mic.is-live { background: var(--cx-danger); color: #fff; animation: cx-mic 1.2s infinite; }
@keyframes cx-mic { 50% { box-shadow: 0 0 0 8px rgba(200, 30, 30, .15); } }

/* ---------- hero ---------- */
.cx-hero { position: relative; overflow: hidden; border-radius: var(--cx-r-xl); padding: 24px 18px; background: radial-gradient(120% 140% at 100% 0%, #1aa59a 0%, var(--cx-brand) 40%, var(--cx-navy) 100%); color: #fff; }
.cx-hero h1 { color: #fff; font-size: 1.5rem; }
.cx-hero p { color: rgba(255, 255, 255, .85); }
.cx-hero::after { content: ""; position: absolute; right: -60px; top: -60px; width: 220px; height: 220px; border-radius: 50%; background: rgba(255, 255, 255, .07); pointer-events: none; }

/* AI guide entry card */
.cx-ai-card { position: relative; display: flex; gap: 14px; align-items: center; padding: 16px; border-radius: var(--cx-r-lg); background: linear-gradient(120deg, #fff 0%, #fff7f1 100%); border: 1.5px solid #ffd9c2; cursor: pointer; text-decoration: none; color: var(--cx-ink); transition: box-shadow .2s, transform .2s; }
.cx-ai-card:hover { box-shadow: var(--cx-sh-2); transform: translateY(-2px); }
.cx-ai-orb { width: 52px; height: 52px; border-radius: 50%; flex: none; display: grid; place-items: center; color: #fff; background: conic-gradient(from 210deg, var(--cx-accent), #ffb37f, #19b5a0, var(--cx-brand), var(--cx-accent)); box-shadow: 0 8px 22px rgba(242, 107, 33, .35); }
.cx-ai-orb .cx-ico { width: 26px; height: 26px; }

/* department tile */
.cx-dept { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 14px; }
.cx-dept h3 { font-size: var(--cx-fs-md); }

/* ---------- doctor card ---------- */
.cx-doc { display: flex; flex-direction: column; gap: 12px; padding: 16px; }
.cx-doc-top { display: flex; gap: 14px; }
.cx-doc-name { font-size: var(--cx-fs-md); font-weight: 600; }
.cx-doc-meta { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: var(--cx-fs-xs); color: var(--cx-muted); }
.cx-doc-meta span { display: inline-flex; align-items: center; gap: 4px; }
.cx-doc-meta .cx-ico { width: 14px; height: 14px; }
.cx-doc-foot { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.cx-fee { font-weight: 700; color: var(--cx-navy); }
.cx-fee small { font-weight: 500; color: var(--cx-muted); }
.cx-next { font-size: var(--cx-fs-xs); color: var(--cx-online); font-weight: 600; }

/* slot chips */
.cx-slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; }
.cx-slot { min-height: 42px; white-space: nowrap; border-radius: var(--cx-r-sm); border: 1.5px solid var(--cx-line-2); background: #fff; font-weight: 600; font-size: var(--cx-fs-sm); color: var(--cx-ink); cursor: pointer; }
.cx-slot:hover { border-color: var(--cx-brand); color: var(--cx-brand); }
.cx-slot.is-on { background: var(--cx-brand); border-color: var(--cx-brand); color: #fff; }
.cx-slot:disabled { background: #f1f4f6; color: #a9b7c0; text-decoration: line-through; cursor: not-allowed; }
.cx-days { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.cx-days::-webkit-scrollbar { display: none; }
.cx-day { flex: none; width: 62px; padding: 8px 0; border-radius: var(--cx-r); border: 1.5px solid var(--cx-line-2); background: #fff; text-align: center; cursor: pointer; }
.cx-day b { display: block; font-size: var(--cx-fs-lg); font-family: var(--cx-head); color: var(--cx-navy); }
.cx-day small { display: block; font-size: 11px; color: var(--cx-muted); }
.cx-day.is-on { background: var(--cx-brand); border-color: var(--cx-brand); }
.cx-day.is-on b, .cx-day.is-on small { color: #fff; }
.cx-day.is-off { opacity: .45; cursor: not-allowed; }

/* segmented (in-person / video) */
.cx-seg { display: inline-grid; grid-auto-flow: column; grid-auto-columns: 1fr; padding: 4px; border-radius: var(--cx-r-pill); background: #e9eff2; gap: 4px; }
.cx-seg button { min-height: 38px; padding: 0 16px; border: 0; border-radius: var(--cx-r-pill); background: transparent; font-weight: 600; font-size: var(--cx-fs-sm); color: var(--cx-ink-2); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.cx-seg button.is-on { background: #fff; color: var(--cx-brand); box-shadow: var(--cx-sh-1); }

/* ---------- AI care guide (chat-like) ---------- */
.cx-guide { display: flex; flex-direction: column; gap: 12px; }
.cx-msg { display: flex; gap: 10px; max-width: 92%; animation: cx-in .25s var(--cx-ease); }
.cx-msg-me { align-self: flex-end; flex-direction: row-reverse; }
.cx-bubble { padding: 12px 14px; border-radius: 18px; background: #fff; border: 1px solid var(--cx-line); box-shadow: var(--cx-sh-1); font-size: var(--cx-fs-sm); }
.cx-msg-me .cx-bubble { background: var(--cx-brand); color: #fff; border-color: var(--cx-brand); border-bottom-right-radius: 6px; }
.cx-msg-ai .cx-bubble { border-bottom-left-radius: 6px; }
.cx-msg-ai .cx-ai-orb { width: 32px; height: 32px; box-shadow: none; }
.cx-msg-ai .cx-ai-orb .cx-ico { width: 16px; height: 16px; }
.cx-quick { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.cx-msg.is-past .cx-quick { display: none; }   /* answered questions: no second click */
.cx-typing { display: inline-flex; gap: 4px; padding: 14px; }
.cx-typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--cx-muted); animation: cx-typing 1s infinite; }
.cx-typing i:nth-child(2) { animation-delay: .15s; }
.cx-typing i:nth-child(3) { animation-delay: .3s; }
@keyframes cx-typing { 0%, 60%, 100% { opacity: .3; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-3px); } }
@keyframes cx-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.cx-composer { position: sticky; bottom: calc(var(--cx-tabbar-h) + 8px); display: flex; align-items: flex-end; gap: 8px; padding: 8px; background: #fff; border: 1.5px solid var(--cx-line-2); border-radius: var(--cx-r-lg); box-shadow: var(--cx-sh-2); }
.cx-composer textarea { flex: 1; border: 0; outline: 0; resize: none; min-height: 42px; max-height: 120px; padding: 10px 6px; font: inherit; font-size: var(--cx-fs-md); background: transparent; }
.cx-composer:focus-within { border-color: var(--cx-brand); }

/* result: one problem → one department */
.cx-match { border-left: 4px solid var(--cx-brand); padding: 14px 16px; }
.cx-match-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.cx-match h3 { font-size: var(--cx-fs-md); }
.cx-match-why { font-size: var(--cx-fs-sm); color: var(--cx-ink-2); margin-top: 4px; }
.cx-disclaimer { display: flex; gap: 8px; align-items: flex-start; font-size: var(--cx-fs-xs); color: var(--cx-muted); padding: 10px 12px; background: #f6f9fa; border-radius: var(--cx-r); }

/* emergency (red flag) */
.cx-emergency { border-radius: var(--cx-r-lg); background: var(--cx-danger); color: #fff; padding: 20px; box-shadow: 0 14px 36px rgba(200, 30, 30, .35); }
.cx-emergency h2 { color: #fff; font-size: var(--cx-fs-xl); }
.cx-emergency p { color: rgba(255, 255, 255, .9); }
.cx-emergency .cx-btn { background: #fff; color: var(--cx-danger); }

/* ---------- cart ---------- */
.cx-cart-item { display: flex; gap: 12px; padding: 14px; position: relative; }
.cx-timeline { position: relative; padding-left: 22px; }
.cx-timeline::before { content: ""; position: absolute; left: 7px; top: 6px; bottom: 6px; width: 2px; background: var(--cx-line-2); }
.cx-tl-item { position: relative; padding-bottom: 14px; }
.cx-tl-item::before { content: ""; position: absolute; left: -20px; top: 5px; width: 12px; height: 12px; border-radius: 50%; background: #fff; border: 3px solid var(--cx-brand); }
.cx-tl-gap { font-size: var(--cx-fs-xs); color: var(--cx-muted); padding: 0 0 14px; }
.cx-summary-row { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; font-size: var(--cx-fs-sm); }
.cx-summary-total { font-size: var(--cx-fs-lg); font-weight: 700; color: var(--cx-navy); border-top: 1px dashed var(--cx-line-2); margin-top: 6px; padding-top: 10px; }
.cx-hold { display: flex; align-items: center; gap: 8px; font-size: var(--cx-fs-sm); font-weight: 600; color: #b45309; background: var(--cx-warn-050); padding: 10px 12px; border-radius: var(--cx-r); }

/* floating cart bar (mobile) */
.cx-cartbar { position: fixed; left: 12px; right: 12px; bottom: calc(var(--cx-tabbar-h) + 10px + env(safe-area-inset-bottom)); z-index: 55; display: flex; align-items: center; gap: 12px; padding: 10px 10px 10px 16px; border-radius: var(--cx-r-lg); background: var(--cx-navy); color: #fff; box-shadow: var(--cx-sh-3); animation: cx-in .25s var(--cx-ease); }
.cx-cartbar b { font-family: var(--cx-head); }
/* "Install the app" (A7b) — above the tab bar on phones, bottom-left on desktop */
.cx-install { position: fixed; left: 12px; right: 12px; bottom: calc(var(--cx-tabbar-h) + 10px + env(safe-area-inset-bottom)); z-index: 56; display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: var(--cx-r-lg); background: #fff; border: 1px solid var(--cx-line); box-shadow: var(--cx-sh-3); animation: cx-in .25s var(--cx-ease); }
.cx-install img { border-radius: 10px; flex: none; }

/* ---------- live queue ---------- */
.cx-queue { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: var(--cx-r-lg); background: linear-gradient(120deg, var(--cx-brand-050), #fff); border: 1px solid var(--cx-brand-100); }
.cx-queue-num { width: 56px; height: 56px; border-radius: 16px; background: var(--cx-brand); color: #fff; display: grid; place-items: center; font-family: var(--cx-head); font-size: var(--cx-fs-xl); font-weight: 700; flex: none; }
.cx-progress { height: 6px; border-radius: 3px; background: var(--cx-line); overflow: hidden; }
.cx-progress > i { display: block; height: 100%; border-radius: 3px; background: linear-gradient(90deg, var(--cx-brand), #19b5a0); }

/* ticket */
.cx-ticket { position: relative; overflow: hidden; }
.cx-ticket-head { padding: 16px; background: linear-gradient(120deg, var(--cx-brand), #128f88); color: #fff; }
.cx-ticket-head h3 { color: #fff; }
.cx-ticket-cut { position: relative; height: 0; border-top: 2px dashed var(--cx-line-2); margin: 0 16px; }
.cx-ticket-cut::before, .cx-ticket-cut::after { content: ""; position: absolute; top: -11px; width: 20px; height: 20px; border-radius: 50%; background: var(--cx-bg); }
.cx-ticket-cut::before { left: -27px; }
.cx-ticket-cut::after { right: -27px; }
.cx-qr { width: 92px; height: 92px; border-radius: 12px; background: repeating-conic-gradient(var(--cx-navy) 0 25%, #fff 0 50%) 0 0 / 14px 14px; border: 6px solid #fff; box-shadow: 0 0 0 1px var(--cx-line); flex: none; }

/* ---------- video consult ---------- */
.cx-call { position: relative; border-radius: var(--cx-r-xl); overflow: hidden; background: #0d1b24; aspect-ratio: 3 / 4; max-height: 72vh; width: 100%; }
.cx-call-remote { position: absolute; inset: 0; display: grid; place-items: center; background: radial-gradient(80% 80% at 50% 40%, #24404f, #0d1b24); color: rgba(255, 255, 255, .7); }
.cx-call-self { position: absolute; right: 12px; top: 12px; width: 28%; aspect-ratio: 3 / 4; border-radius: 14px; background: linear-gradient(160deg, #3b5d6e, #1b3340); border: 2px solid rgba(255, 255, 255, .5); display: grid; place-items: center; color: rgba(255, 255, 255, .6); font-size: var(--cx-fs-xs); }
.cx-call-top { position: absolute; left: 12px; top: 12px; display: flex; gap: 8px; align-items: center; }
.cx-call-pill { padding: 6px 12px; border-radius: var(--cx-r-pill); background: rgba(0, 0, 0, .45); color: #fff; font-size: var(--cx-fs-xs); font-weight: 600; backdrop-filter: blur(6px); display: inline-flex; gap: 6px; align-items: center; }
.cx-call-bar { position: absolute; left: 50%; bottom: 16px; transform: translateX(-50%); display: flex; gap: 12px; padding: 10px; border-radius: var(--cx-r-pill); background: rgba(0, 0, 0, .45); backdrop-filter: blur(8px); }
.cx-call-btn { width: 50px; height: 50px; border-radius: 50%; border: 0; display: grid; place-items: center; background: rgba(255, 255, 255, .16); color: #fff; cursor: pointer; }
.cx-call-btn.is-off { background: #fff; color: var(--cx-ink); }
.cx-call-btn.cx-end { background: var(--cx-danger); }
.cx-check { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--cx-line); font-size: var(--cx-fs-sm); }
.cx-check:last-child { border-bottom: 0; }
.cx-check-ok { color: var(--cx-online); }

/* ---------- chat (doctor ↔ patient) ---------- */
.cx-chat { display: flex; flex-direction: column; height: calc(100vh - var(--cx-header-h) - var(--cx-tabbar-h) - 40px); min-height: 420px; }
.cx-chat-head { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-bottom: 1px solid var(--cx-line); }
.cx-chat-body { flex: 1; overflow-y: auto; padding: 16px 14px; display: flex; flex-direction: column; gap: 8px; background: #eef4f5 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40'%3E%3Cpath d='M20 14v12M14 20h12' stroke='%23d9e6e9' stroke-width='2'/%3E%3C/svg%3E"); }
.cx-cm { max-width: 78%; padding: 8px 12px 6px; border-radius: 16px; background: #fff; box-shadow: var(--cx-sh-1); font-size: var(--cx-fs-sm); align-self: flex-start; border-top-left-radius: 4px; }
.cx-cm-me { align-self: flex-end; background: #d6f1ec; border-top-left-radius: 16px; border-top-right-radius: 4px; }
.cx-cm-meta { display: flex; justify-content: flex-end; align-items: center; gap: 4px; font-size: 10.5px; color: var(--cx-muted); margin-top: 2px; }
.cx-ticks { color: #8aa0ab; }
.cx-ticks.is-read { color: #0ea5e9; }
.cx-cm-file { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 10px; background: rgba(11, 37, 52, .05); margin-bottom: 4px; }
.cx-cm-photo { width: 200px; max-width: 100%; aspect-ratio: 4 / 3; border-radius: 10px; margin-bottom: 4px; background: linear-gradient(135deg, #f3c6b0, #e8a28a 50%, #d98b73); display: grid; place-items: center; color: rgba(255, 255, 255, .85); font-size: var(--cx-fs-xs); }
.cx-cm-day { align-self: center; font-size: 11px; font-weight: 600; color: var(--cx-ink-2); background: #fff; padding: 3px 10px; border-radius: var(--cx-r-pill); box-shadow: var(--cx-sh-1); }
.cx-cm-sys { align-self: center; font-size: 11.5px; color: #8a6a12; background: #fff7d6; padding: 6px 12px; border-radius: 10px; text-align: center; max-width: 90%; }
.cx-chat-input { display: flex; align-items: flex-end; gap: 8px; padding: 10px; border-top: 1px solid var(--cx-line); background: #fff; }
.cx-chat-input textarea { flex: 1; border: 1.5px solid var(--cx-line-2); border-radius: 22px; padding: 10px 14px; resize: none; min-height: 44px; max-height: 120px; font: inherit; font-size: var(--cx-fs-sm); outline: 0; }
.cx-chat-input textarea:focus { border-color: var(--cx-brand); }
.cx-chat-list { display: flex; flex-direction: column; }
.cx-chat-row { display: flex; gap: 12px; align-items: center; padding: 12px 14px; border-bottom: 1px solid var(--cx-line); cursor: pointer; }
.cx-chat-row:hover, .cx-chat-row.is-on { background: var(--cx-brand-050); }
.cx-unread { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--cx-online); color: #fff; font-size: 11px; font-weight: 700; display: grid; place-items: center; }

/* ---------- sheets, toast, skeleton, empty ---------- */
.cx-sheet-back { position: fixed; inset: 0; z-index: 90; background: rgba(11, 37, 52, .45); animation: cx-fade .2s; }
.cx-sheet { position: fixed; left: 0; right: 0; bottom: 0; z-index: 91; max-height: 88vh; overflow: auto; background: #fff; border-radius: var(--cx-r-xl) var(--cx-r-xl) 0 0; padding: 8px 16px calc(20px + env(safe-area-inset-bottom)); box-shadow: var(--cx-sh-3); animation: cx-up .28s var(--cx-ease); }
.cx-sheet-grip { width: 44px; height: 5px; border-radius: 3px; background: var(--cx-line-2); margin: 4px auto 12px; }
@keyframes cx-fade { from { opacity: 0; } }
@keyframes cx-up { from { transform: translateY(100%); } }
.cx-toast { position: fixed; left: 50%; bottom: calc(var(--cx-tabbar-h) + 20px); transform: translateX(-50%); z-index: 100; background: var(--cx-navy); color: #fff; padding: 12px 18px; border-radius: var(--cx-r-pill); font-size: var(--cx-fs-sm); font-weight: 500; box-shadow: var(--cx-sh-3); animation: cx-in .25s var(--cx-ease); max-width: calc(100% - 32px); }
.cx-skel { background: linear-gradient(90deg, #eaf0f2 25%, #f5f8f9 50%, #eaf0f2 75%); background-size: 200% 100%; animation: cx-skel 1.2s infinite; border-radius: 8px; }
@keyframes cx-skel { to { background-position: -200% 0; } }
.cx-empty { text-align: center; padding: 36px 16px; color: var(--cx-muted); }

/* stepper */
.cx-steps { display: flex; gap: 6px; }
.cx-steps i { flex: 1; height: 4px; border-radius: 2px; background: var(--cx-line); }
.cx-steps i.is-on { background: var(--cx-brand); }

/* lang toggle */
.cx-lang { display: inline-flex; border: 1.5px solid var(--cx-line-2); border-radius: var(--cx-r-pill); overflow: hidden; }
.cx-lang button { border: 0; background: #fff; padding: 6px 10px; font-size: var(--cx-fs-xs); font-weight: 700; color: var(--cx-muted); cursor: pointer; }
.cx-lang button.is-on { background: var(--cx-brand); color: #fff; }

/* ---------- breakpoints ---------- */
@media (min-width: 640px) {
    :root { --cx-gutter: 20px; }
    .cx-grid-2 { grid-template-columns: repeat(2, 1fr); }
    .cx-grid-3 { grid-template-columns: repeat(2, 1fr); }
    .cx-grid-4 { grid-template-columns: repeat(2, 1fr); }
    .cx-hero { padding: 36px 32px; }
    .cx-hero h1 { font-size: var(--cx-fs-3xl); }
    .cx-call { aspect-ratio: 16 / 10; }
    .cx-call-self { width: 22%; aspect-ratio: 4 / 3; }
    .cx-sheet { left: 50%; right: auto; width: 560px; transform: translateX(-50%); bottom: auto; top: 50%; border-radius: var(--cx-r-xl); animation: cx-fade .2s; translate: 0 -50%; }
}
@media (min-width: 960px) {
    :root { --cx-gutter: 24px; }
    .cx-nav { display: flex; }
    .cx-tabbar { display: none; }
    .cx-main { padding-bottom: 48px; }
    .cx-grid-3 { grid-template-columns: repeat(3, 1fr); }
    .cx-grid-4 { grid-template-columns: repeat(4, 1fr); }
    .cx-split { grid-template-columns: minmax(0, 1fr) 360px; align-items: start; }
    .cx-split > aside { position: sticky; top: calc(var(--cx-header-h) + 16px); }
    .cx-split-wide { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); }
    .cx-composer { bottom: 16px; }
    .cx-cartbar { left: auto; right: 24px; width: 380px; bottom: 24px; }
    .cx-install { right: auto; left: 24px; width: 420px; bottom: 24px; }
    .cx-toast { bottom: 32px; }
    .cx-chat { height: calc(100vh - var(--cx-header-h) - 48px); }
    .cx-only-mobile { display: none !important; }
}
/* large screens: the page uses the full width, so cards add columns instead of growing wide */
@media (min-width: 1400px) {
    :root { --cx-gutter: 32px; }
    .cx-grid-3 { grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); }
    .cx-grid-4 { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
    .cx-split { grid-template-columns: minmax(0, 1fr) 400px; }
}
@media (max-width: 959.98px) {
    .cx-only-desktop { display: none !important; }
}
@media (prefers-reduced-motion: reduce) {
    .cx-app *, .cx-app *::before, .cx-app *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* ==========================================================================
   Phase 2 (27-11-2026): account menu + "My health" (Patient/Dashboard) + pages
   that keep the website css (portal.css: bookings, ticket, pay) inside this shell.
   ========================================================================== */
.cx-acct-btn { border: 2px solid var(--cx-brand); cursor: pointer; padding: 0; }
.cx-acct-btn:focus-visible { box-shadow: var(--cx-ring); outline: 0; }
.cx-acct { position: fixed; inset: 0; z-index: 90; }
.cx-acct-shade { position: absolute; inset: 0; background: rgba(11, 37, 52, .42); }
.cx-acct-in { position: absolute; left: 0; right: 0; bottom: 0; background: #fff; border-radius: 22px 22px 0 0; padding: 10px 16px calc(18px + env(safe-area-inset-bottom)); box-shadow: var(--cx-sh-3); animation: cxSheetUp .22s ease-out; }
@keyframes cxSheetUp { from { transform: translateY(30px); opacity: .4; } to { transform: none; opacity: 1; } }
.cx-acct-grab { width: 42px; height: 5px; border-radius: 9px; background: var(--cx-line-2); margin: 0 auto 12px; }
.cx-acct-me { display: flex; align-items: center; gap: 12px; padding: 4px 4px 12px; border-bottom: 1px solid var(--cx-line); margin-bottom: 4px; }
.cx-acct-me .cx-avatar { width: 46px; height: 46px; font-size: 1rem; }
.cx-acct-me b { display: block; font-family: var(--cx-head); font-weight: 600; color: var(--cx-ink); }
.cx-acct-me span { font-size: var(--cx-fs-xs); color: var(--cx-muted); }
.cx-acct-in a, .cx-acct-in button.cx-acct-out { display: flex; align-items: center; gap: 12px; width: 100%; padding: 11px 6px; border: 0; background: none; border-bottom: 1px solid #f1f4f6; font-weight: 600; font-size: var(--cx-fs-sm); color: var(--cx-ink); text-decoration: none; text-align: left; border-radius: 10px; }
.cx-acct-in a:hover, .cx-acct-in a:focus-visible, .cx-acct-in button.cx-acct-out:hover, .cx-acct-in button.cx-acct-out:focus-visible { background: var(--cx-brand-050); outline: 0; }
.cx-acct-ic { width: 32px; height: 32px; flex: none; border-radius: 10px; background: var(--cx-brand-050); color: var(--cx-brand); display: grid; place-items: center; }
.cx-acct-ic .cx-ico { width: 17px; height: 17px; }
.cx-acct-in button.cx-acct-out { color: var(--cx-danger); border-bottom: 0; }
.cx-acct-in button.cx-acct-out .cx-acct-ic { background: var(--cx-danger-050); color: var(--cx-danger); }
body.cx-acct-open { overflow: hidden; }
@media (min-width: 960px) {
    .cx-acct-shade { background: transparent; }
    .cx-acct-in { left: auto; right: max(16px, calc((100vw - var(--cx-max)) / 2 + var(--cx-gutter))); top: calc(var(--cx-header-h) - 4px); bottom: auto; width: 290px; border-radius: 16px; border: 1px solid var(--cx-line); padding: 10px; animation: none; }
    .cx-acct-grab { display: none; }
    body.cx-acct-open { overflow: auto; }
}

/* My health */
.cx-mh-hi { font-family: var(--cx-head); font-size: var(--cx-fs-xl); font-weight: 700; color: var(--cx-ink); margin: 4px 0 2px; }
.cx-mh-sub { color: var(--cx-muted); font-size: var(--cx-fs-sm); margin: 0 0 14px; }
.cx-mh-cols { display: grid; gap: 16px; }
@media (min-width: 960px) { .cx-mh-cols { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); align-items: start; } }
.cx-next { display: block; border-radius: var(--cx-r-lg); padding: 16px; color: #fff; text-decoration: none; background: linear-gradient(135deg, var(--cx-brand), #0f8f88); box-shadow: var(--cx-sh-2); }
.cx-next:hover { color: #fff; }
.cx-next small { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; font-weight: 600; opacity: .88; }
.cx-next h3 { margin: 6px 0 2px; font-family: var(--cx-head); font-size: var(--cx-fs-lg); font-weight: 600; color: #fff; }
.cx-next p { margin: 0; font-size: var(--cx-fs-sm); opacity: .94; }
.cx-next-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.cx-next-chips span { font-size: 11.5px; font-weight: 600; padding: 4px 9px; border-radius: 99px; background: rgba(255, 255, 255, .18); }
.cx-next-go { display: inline-flex; align-items: center; gap: 6px; margin-top: 12px; padding: 8px 14px; border-radius: 10px; background: #fff; color: var(--cx-brand); font-weight: 600; font-size: var(--cx-fs-sm); }
.cx-next.is-empty { background: var(--cx-card); color: var(--cx-ink); border: 1.5px dashed var(--cx-line-2); box-shadow: none; }
.cx-next.is-empty h3 { color: var(--cx-ink); }
.cx-next.is-empty small { color: var(--cx-muted); }
.cx-next.is-empty .cx-next-go { background: var(--cx-accent); color: #fff; }
.cx-qa { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 14px; }
@media (min-width: 640px) { .cx-qa { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
@media (min-width: 960px) { .cx-mh-cols .cx-qa { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1200px) { .cx-mh-cols .cx-qa { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
.cx-qa a { position: relative; display: flex; flex-direction: column; align-items: center; gap: 7px; padding: 14px 6px 12px; background: var(--cx-card); border: 1px solid var(--cx-line); border-radius: var(--cx-r); text-decoration: none; color: var(--cx-ink); font-weight: 600; font-size: 12.5px; text-align: center; line-height: 1.25; }
.cx-qa a:hover, .cx-qa a:focus-visible { border-color: var(--cx-brand); box-shadow: var(--cx-sh-1); outline: 0; }
.cx-qa-ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--cx-brand-050); color: var(--cx-brand); }
.cx-qa-ic .cx-ico { width: 20px; height: 20px; }
.cx-qa a.is-ai .cx-qa-ic { background: var(--cx-accent-050); color: var(--cx-accent); }
.cx-qa-n { position: absolute; top: 6px; right: 8px; min-width: 18px; padding: 1px 6px; border-radius: 99px; background: var(--cx-accent); color: #fff; font-size: 10.5px; font-weight: 700; }
.cx-mh-card { background: var(--cx-card); border: 1px solid var(--cx-line); border-radius: var(--cx-r-lg); padding: 14px 16px; box-shadow: var(--cx-sh-1); }
.cx-mh-card + .cx-mh-card { margin-top: 14px; }
.cx-mh-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.cx-mh-head h2 { margin: 0; font-family: var(--cx-head); font-size: var(--cx-fs-md); font-weight: 600; color: var(--cx-ink); }
.cx-mh-head a { font-size: var(--cx-fs-xs); font-weight: 600; color: var(--cx-brand); text-decoration: none; }
.cx-fam { display: flex; gap: 12px; overflow-x: auto; padding-bottom: 2px; }
.cx-fam > div { min-width: 70px; text-align: center; font-size: 12px; font-weight: 600; color: var(--cx-ink); }
.cx-fam .cx-avatar { width: 46px; height: 46px; margin: 0 auto 5px; font-size: .95rem; }
.cx-fam small { display: block; font-weight: 500; color: var(--cx-muted); }
.cx-bk { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--cx-line); text-decoration: none; color: inherit; }
.cx-bk:last-child { border-bottom: 0; }
.cx-bk-d { width: 46px; flex: none; text-align: center; border-radius: 10px; background: var(--cx-brand-050); color: var(--cx-brand); padding: 5px 0; font-family: var(--cx-head); font-weight: 700; font-size: 1rem; line-height: 1.1; }
.cx-bk-d small { display: block; font-family: var(--cx-font); font-size: 9.5px; font-weight: 600; text-transform: uppercase; }
.cx-bk-m { flex: 1; min-width: 0; }
.cx-bk-m b { display: block; font-size: var(--cx-fs-sm); color: var(--cx-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cx-bk-m span { font-size: var(--cx-fs-xs); color: var(--cx-muted); }
.cx-st { font-size: 11px; font-weight: 600; padding: 3px 9px; border-radius: 99px; white-space: nowrap; background: var(--cx-brand-050); color: var(--cx-brand); }
.cx-st.ok { background: var(--cx-ok-050); color: #157347; }
.cx-st.wait { background: var(--cx-warn-050); color: #a15c00; }
.cx-st.off { background: #f1f4f6; color: var(--cx-muted); }
.cx-st.bad { background: var(--cx-danger-050); color: var(--cx-danger); }
.cx-st.info { background: var(--cx-info-050); color: var(--cx-opd); }
.cx-mh-ai { background: var(--cx-accent-050); border-color: #ffd9c2; }

/* website pages (portal.css) inside the app shell: no dark page band, no second footer */
.cx-portal .cx-main { max-width: none; padding-left: 0; padding-right: 0; padding-top: 0; }
.cx-portal .pt-page-head { padding: 1.6rem 0 2.6rem; }
.cx-portal .pt-section-tight { margin-top: -1.6rem; padding-top: 0 !important; }  /* portal.css's phone rule gave it 4rem, a gap under the band */
/* printing a page of the app (the appointment slip): only the page itself */
@media print {
    .cx-header, .cx-tabbar, .cx-acct, .cx-cartbar, .cx-install, #cxToast { display: none !important; }
    .cx-main { padding: 0 !important; max-width: none !important; }
    /* the page band is not printed, so the card must not be pulled up under it (it cut the hospital name off the slip) */
    .cx-portal .pt-section-tight { margin-top: 0 !important; }
}

/* video consult notice on every page of the patient app (care.js, 27-11-2026) */
.cx-vnote { position: fixed; left: 12px; right: 12px; bottom: calc(var(--cx-tabbar-h) + 10px + env(safe-area-inset-bottom)); z-index: 58; display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 16px; background: var(--cx-brand); color: #fff; text-decoration: none; box-shadow: var(--cx-sh-3); }
.cx-vnote:hover { color: #fff; }
.cx-vnote.is-loud { background: var(--cx-accent); animation: cxPulse 1.6s ease-in-out infinite; }
@keyframes cxPulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(242, 107, 33, .55); } 50% { box-shadow: 0 0 0 10px rgba(242, 107, 33, 0); } }
.cx-vnote-ic { width: 38px; height: 38px; flex: none; border-radius: 50%; background: rgba(255, 255, 255, .18); display: grid; place-items: center; }
.cx-vnote-t { flex: 1; min-width: 0; line-height: 1.25; }
.cx-vnote-t b { display: block; font-size: var(--cx-fs-sm); }
.cx-vnote-t small { display: block; font-size: 11.5px; opacity: .92; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cx-vnote-go { flex: none; padding: 7px 14px; border-radius: 99px; background: #fff; color: var(--cx-brand); font-weight: 700; font-size: var(--cx-fs-sm); }
.cx-vnote.is-loud .cx-vnote-go { color: var(--cx-accent); }
.cx-vnote-x { flex: none; width: 28px; height: 28px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .16); color: #fff; font-size: 18px; line-height: 1; }
@media (min-width: 960px) { .cx-vnote { left: auto; right: 24px; bottom: 24px; width: 420px; } }
@media (prefers-reduced-motion: reduce) { .cx-vnote.is-loud { animation: none; } }
@media print { .cx-vnote { display: none !important; } }

/* 27-11-2026: a chat bubble stays inside its row on a phone — long one-line sample buttons (AI Care Guide) widened
   the bubble and the whole page scrolled sideways */
.cx-msg > div, .cx-bubble { min-width: 0; }
.cx-quick .cx-chip { max-width: 100%; overflow: hidden; text-overflow: ellipsis; display: inline-block; line-height: 33px; }
