/* TokenSeva — फ़ोटो-प्रधान मोबाइल ऐप। हमेशा हल्के (light) रंग — फ़ोन dark mode में हो तब भी।
   रंग: गहरा हरा-नीला (brand) + केसरिया (accent) सिर्फ़ "बुक करें", "अगला बुलाएँ" और "आपकी बारी" पर। */
:root {
  color-scheme: light;
  /* TokenSeva Pro (2026-10): गहरा हरा-नीला (brand) — भरोसा; केसरिया (accent) सिर्फ़ मुख्य काम पर; नेवी — कंप्यूटर पैनल का मेन्यू */
  --bg: #f3f6f9;
  --surface: #ffffff;
  --surface-2: #eef2f6;
  --ink: #0f1e2b;
  --ink-2: #334155;
  --muted: #64748b;
  --line: #e3e9ef;
  --line-2: #eef2f6;
  --brand: #0a6b6b;
  --brand-2: #075757;
  --brand-3: #064646;
  --brand-ink: #ffffff;
  --brand-soft: #e7f4f3;
  --brand-100: #c9e8e5;
  --hero: #dff3ef;
  --navy: #0e2233;
  --navy-2: #16324a;
  --accent: #f28c28;
  --accent-ink: #2b1600;
  --accent-soft: #fff3e6;
  --accent-2: #db7614;
  --ok: #15803d; --ok-soft: #e7f6ec;
  --warn: #b45309; --warn-soft: #fef3e2;
  --bad: #dc2626; --bad-soft: #fdecec;
  --info: #2563eb; --info-soft: #eaf1fe;
  --violet: #7c3aed; --violet-soft: #f1ebfe;
  --shadow: 0 1px 2px rgba(15, 30, 43, .05), 0 6px 18px rgba(15, 30, 43, .06);
  --radius: 16px;
  --gutter-l: max(16px, env(safe-area-inset-left, 0px));
  --gutter-r: max(16px, env(safe-area-inset-right, 0px));
  --f-display: Mukta, "Noto Sans Devanagari", system-ui, sans-serif;
  --f-logo: "Baloo 2", Mukta, system-ui, sans-serif;
  --f-body: Mukta, "Noto Sans Devanagari", system-ui, sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 17px/1.5 var(--f-body);
  padding-bottom: calc(76px + env(safe-area-inset-bottom, 0px));
}
body.staff { padding-bottom: 24px; }
#app { max-width: 600px; margin: 0 auto; padding-block: 0 24px; padding-left: var(--gutter-l); padding-right: var(--gutter-r); }
h1, h2, h3 { line-height: 1.2; margin: 0; text-wrap: balance; }
h1, h2 { font-family: var(--f-display); font-weight: 800; letter-spacing: -.005em; }
h3 { font-size: 18px; font-weight: 700; }
p { margin: 0; }
a { color: var(--brand); }
button, input, select { font: inherit; color: inherit; }
img { max-width: 100%; }
.num { font-variant-numeric: tabular-nums; }
.meta { color: var(--muted); font-size: 14px; }
.small { font-size: 13px; }
.ink { color: var(--ink); }
.strong { font-weight: 600; }
.center { text-align: center; }
.mt { margin-top: 10px; }
.grow { flex: 1; min-width: 0; }
.grow2 { flex: 2 !important; }
.clip { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
.selectable { user-select: all; }
.spacer { flex: 1; }
.stack { display: grid; gap: 10px; }
.row { display: flex; gap: 10px; }
.row > * { flex: 1; min-width: 0; }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.row-baseline { display: flex; align-items: baseline; gap: 10px; }
.ic { width: 22px; height: 22px; flex: none; }
.ic.sm { width: 16px; height: 16px; }
.ic.lg { width: 28px; height: 28px; }
.ic.xl { width: 44px; height: 44px; color: var(--muted); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

/* ---------- top bar ---------- */
.top { padding: 14px 0 12px; display: flex; align-items: center; gap: 10px; }
.top h1 { font-size: 22px; }
.back, .round-btn { width: 42px; height: 42px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface);
  display: grid; place-items: center; text-decoration: none; color: var(--ink); flex: none; cursor: pointer; }
.round-btn { border-radius: 50%; border: 0; background: rgba(255, 255, 255, .92); color: #17221f; box-shadow: 0 2px 8px rgba(0, 0, 0, .18); font-size: 20px; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand .logo { width: 40px; height: 40px; border-radius: 12px; background: var(--brand); color: var(--brand-ink);
  display: grid; place-items: center; font: 800 22px/1 var(--f-logo); flex: none; }
.brand b { font: 800 22px/1.1 var(--f-logo); letter-spacing: -.01em; }
.brand small { display: block; color: var(--muted); font-size: 13px; }
.pill { display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 12px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--surface); cursor: pointer; font-weight: 600; font-size: 15px; flex: none; }
.staff-top .hosp-thumb { width: 46px; height: 46px; }
.staff-top h1 { font-size: 19px; }

/* ---------- hero + search ---------- */
.hero {
  background: linear-gradient(150deg, var(--brand-3) 0%, var(--brand) 70%, #13908a 100%); color: #fff; border-radius: 22px; padding: 16px 16px 18px;
  position: relative; overflow: hidden; display: grid; gap: 12px; box-shadow: 0 10px 24px rgba(10, 107, 107, .22);
}
.hero::after { content: ""; position: absolute; right: -44px; top: -44px; width: 170px; height: 170px; border-radius: 50%; background: rgba(255, 255, 255, .07); pointer-events: none; }
.hero > * { position: relative; z-index: 1; }
.hero h1 { font-size: 26px; line-height: 1.18; color: #fff; }
.city { display: inline-flex; align-items: center; gap: 4px; justify-self: start; background: rgba(255, 255, 255, .14); color: #fff; border: 1px solid rgba(255, 255, 255, .22); border-radius: 999px; padding: 2px 4px 2px 10px; }
.city select { background: transparent; border: 0; color: inherit; font-weight: 600; padding: 6px 4px; outline: none; }
.city select option { color: #17221f; }
.search { display: flex; align-items: center; gap: 8px; background: #ffffff; color: #17221f; border-radius: 14px; padding: 0 14px; min-height: 52px; box-shadow: 0 4px 14px rgba(6, 70, 70, .25); border: 0; }
.search .ic { color: #5b6a66; }
.search input { flex: 1; min-width: 0; border: 0; outline: none; background: transparent; padding: 12px 0; color: #17221f; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 12px 0 4px; }
.steps div { display: flex; align-items: center; gap: 8px; font-size: 13px; line-height: 1.25; color: var(--muted); }
.steps i { font: 700 15px/1 var(--f-display); font-style: normal; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center;
  background: var(--brand-soft); color: var(--brand); flex: none; }

/* ---------- specialty tiles ---------- */
.spec-row { display: flex; gap: 6px; overflow-x: auto; padding: 12px var(--gutter-r) 12px var(--gutter-l); margin: 0 calc(-1 * var(--gutter-r)) 0 calc(-1 * var(--gutter-l)); scrollbar-width: none; scroll-snap-type: x proximity; }
.spec-row::-webkit-scrollbar, .rail::-webkit-scrollbar, .gallery::-webkit-scrollbar, .chips::-webkit-scrollbar, .doc-chips::-webkit-scrollbar { display: none; }
.spec-tile { flex: none; width: 76px; display: grid; justify-items: center; gap: 6px; border: 0; background: transparent; cursor: pointer; font-size: 13px; line-height: 1.2; text-align: center; padding: 0; scroll-snap-align: start; }
.spec-ic { width: 58px; height: 58px; border-radius: 18px; display: grid; place-items: center; background: var(--surface); border: 1px solid var(--line); color: var(--brand); transition: transform .15s; }
.spec-ic .ic { width: 28px; height: 28px; }
.spec-tile[aria-pressed="true"] .spec-ic { background: var(--brand); color: var(--brand-ink); border-color: var(--brand); transform: translateY(-2px); }
.spec-tile[aria-pressed="true"] { font-weight: 700; }
.spec { display: inline-flex; align-items: center; gap: 5px; font-size: 13px; font-weight: 600; padding: 3px 10px 3px 8px; border-radius: 999px; background: var(--brand-soft); color: var(--brand); white-space: nowrap; }
.spec.more { padding: 3px 10px; background: var(--surface-2); color: var(--muted); }
.spec-list { display: flex; flex-wrap: wrap; gap: 6px; }

/* ---------- segmented + chips ---------- */
.seg { display: flex; background: var(--surface-2); border: 1px solid var(--line); border-radius: 16px; padding: 4px; gap: 4px; margin: 4px 0 12px; }
.seg button { flex: 1; border: 0; background: transparent; border-radius: 12px; padding: 8px 4px; cursor: pointer; line-height: 1.2; min-height: 48px; }
.seg button small { display: block; color: var(--muted); font-size: 12px; }
.seg button[aria-pressed="true"] { background: var(--surface); box-shadow: var(--shadow); font-weight: 700; }
.seg.flat { margin: 10px 0 0; }
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 0 var(--gutter-r) 10px var(--gutter-l); margin: 0 calc(-1 * var(--gutter-r)) 0 calc(-1 * var(--gutter-l)); scrollbar-width: none; }
.chip { flex: none; padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); cursor: pointer; font-size: 15px; white-space: nowrap; }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }

/* ---------- section heads ---------- */
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 20px 0 10px; }
.section-head h2 { font-size: 20px; }
.section-sub { font-size: 15px; color: var(--muted); font-weight: 600; margin: 16px 0 8px; }

/* ---------- photos ---------- */
.ph { display: grid; place-items: center; background: linear-gradient(135deg, var(--brand-soft), var(--surface-2)); color: var(--brand); }
.ph-doc span { font: 800 32px/1 var(--f-display); }
.ph-ic { width: 40px; height: 40px; }
.cover-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, 0) 30%, rgba(0, 0, 0, .35) 55%, rgba(0, 0, 0, .78) 100%); pointer-events: none; }
.badge.on-photo { background: rgba(255, 255, 255, .94); color: #1e7a49; }

/* ---------- hospital cards (big photo) ---------- */
.hlist { display: grid; gap: 14px; }
.hcard { display: block; background: var(--surface); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); text-decoration: none; color: inherit; border: 1px solid var(--line); }
.hcard-img { position: relative; aspect-ratio: 16 / 9; max-width: 100%; background: var(--surface-2); }
.hcard-img > .badge { position: absolute; top: 12px; left: 12px; }
.photo-count { position: absolute; top: 12px; right: 12px; display: inline-flex; align-items: center; gap: 4px; background: rgba(0, 0, 0, .55); color: #fff; font-size: 13px; padding: 3px 9px; border-radius: 999px; }
.hcard-title { position: absolute; left: 14px; right: 14px; bottom: 12px; color: #fff; }
.hcard-title h3 { font: 700 22px/1.15 var(--f-display); text-shadow: 0 1px 6px rgba(0, 0, 0, .35); }
.hcard-title span { display: inline-flex; align-items: center; gap: 4px; font-size: 14px; opacity: .95; }
.hcard-body { padding: 12px 14px 14px; display: grid; gap: 10px; }
.hstats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.hstats div { background: var(--surface-2); border-radius: 12px; padding: 6px 10px; }
.hstats b { display: block; font: 700 20px/1.15 var(--f-display); }
.hstats span { font-size: 12px; color: var(--muted); }
.hstats .hot b, .hot { color: var(--accent); }

/* ---------- doctor rail (home) ---------- */
.rail { display: flex; gap: 12px; overflow-x: auto; padding: 2px var(--gutter-r) 8px var(--gutter-l); margin: 0 calc(-1 * var(--gutter-r)) 0 calc(-1 * var(--gutter-l)); scroll-snap-type: x mandatory; scrollbar-width: none; }
.dmini { flex: none; width: 158px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; text-decoration: none; color: inherit; scroll-snap-align: start; box-shadow: var(--shadow); }
.dmini-img { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; }
.dmini-body { padding: 8px 10px 10px; display: grid; gap: 1px; }
.dmini-body b { font-size: 15px; line-height: 1.25; }
.dmini .tok { font-size: 13px; color: var(--muted); margin-top: 3px; }
.dmini .tok b { color: var(--accent); font-size: 16px; }

/* ---------- doctor cards (list) ---------- */
.dlist { display: grid; gap: 12px; }
.dcard { display: grid; gap: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; text-decoration: none; color: inherit; box-shadow: var(--shadow); }
.dcard-top { display: grid; grid-template-columns: 92px 1fr auto; gap: 12px; align-items: start; }
.dphoto { width: 92px; height: 112px; border-radius: 14px; object-fit: cover; display: block; }
.dphoto.big { width: 110px; height: 132px; }
.dinfo { display: grid; gap: 4px; justify-items: start; min-width: 0; }
.dinfo h3 { font: 700 19px/1.2 var(--f-display); }
.dinfo .meta { display: inline-flex; align-items: center; gap: 4px; }
.dfee { text-align: right; }
.dfee b { display: block; font: 700 20px/1.1 var(--f-display); }
.dfee span { font-size: 12px; color: var(--muted); }
.dcard-live { display: grid; gap: 8px; background: var(--surface-2); border-radius: 12px; padding: 10px 12px; justify-items: start; }
.dlive-stats { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 14px; color: var(--muted); }
.dlive-stats b { color: var(--ink); font-size: 16px; }
.dlive-stats b.hot { color: var(--accent); }

/* ---------- hospital page ---------- */
.bleed { margin-left: calc(-1 * var(--gutter-l)); margin-right: calc(-1 * var(--gutter-r)); }
.cover { position: relative; aspect-ratio: 16 / 10; max-height: 340px; max-width: calc(100% + 32px); overflow: hidden; background: var(--surface-2); }
.cover.small { aspect-ratio: 16 / 7; margin-bottom: 12px; }
.cover-bar { position: absolute; top: calc(10px + env(safe-area-inset-top, 0px)); left: var(--gutter-l); right: var(--gutter-r); display: flex; align-items: center; gap: 8px; }
.cover-bar .pill { background: rgba(255, 255, 255, .92); color: #17221f; border: 0; }
.cover-title { position: absolute; left: var(--gutter-l); right: var(--gutter-r); bottom: 14px; color: #fff; display: grid; gap: 4px; justify-items: start; }
.cover-title h1 { font-size: 28px; text-shadow: 0 1px 8px rgba(0, 0, 0, .4); }
.cover-title span { display: inline-flex; align-items: center; gap: 4px; font-size: 15px; }
.gallery { display: flex; gap: 10px; overflow-x: auto; padding: 0 var(--gutter-r) 6px var(--gutter-l); margin: 0 calc(-1 * var(--gutter-r)) 0 calc(-1 * var(--gutter-l)); scroll-snap-type: x mandatory; scrollbar-width: none; }
.gthumb { flex: none; width: 46%; max-width: 230px; border: 0; padding: 0; background: none; cursor: zoom-in; position: relative; border-radius: 14px; overflow: hidden; scroll-snap-align: start; aspect-ratio: 4 / 3; }
.gthumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gthumb span { position: absolute; left: 8px; bottom: 8px; background: rgba(0, 0, 0, .58); color: #fff; font-size: 12px; padding: 2px 8px; border-radius: 999px; }
.info { display: grid; gap: 12px; margin-top: 14px; }
.info-row { display: flex; gap: 12px; align-items: center; }
.info-row > .ic { color: var(--brand); }
.info-row > div { flex: 1; min-width: 0; }

/* ---------- doctor page ---------- */
.dhero { display: grid; grid-template-columns: 124px 1fr; gap: 14px; align-items: center; }
.dhero-img { width: 124px; height: 150px; border-radius: 16px; object-fit: cover; display: block; }
.dhero-info { display: grid; gap: 5px; justify-items: start; min-width: 0; }
.dhero-info h2 { font-size: 23px; }
.dhero-fee b { font: 700 22px/1 var(--f-display); }
.hosp-link { display: flex; gap: 12px; align-items: center; text-decoration: none; color: inherit; }
.hosp-thumb { width: 64px; height: 48px; border-radius: 10px; object-fit: cover; flex: none; display: block; }
.stats3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 12px 0 8px; }
.stat { background: var(--surface-2); border-radius: 12px; padding: 8px 10px; }
.stat b { display: block; font: 700 24px/1.1 var(--f-display); }
.stat span { font-size: 12px; color: var(--muted); }
.stat.hot b { color: var(--accent); }

/* ---------- controls ---------- */
.field { display: block; margin: 0 0 12px; }
.field > span { display: block; font-size: 14px; color: var(--muted); margin-bottom: 4px; font-weight: 500; }
.input { width: 100%; padding: 11px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); outline: none; min-height: 48px; }
.input:focus { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; padding: 0 18px; border-radius: 14px; border: 0; cursor: pointer;
  background: var(--brand); color: var(--brand-ink); font-weight: 700; font-size: 17px; text-decoration: none; text-align: center; line-height: 1.2; }
.btn:active { transform: scale(.98); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn.block { width: 100%; margin-top: 8px; }
.btn.ghost { background: var(--surface); color: var(--ink); border: 1px solid var(--line); }
.btn.accent { background: var(--accent); color: var(--accent-ink); }
.btn.danger { background: var(--bad-soft); color: var(--bad); }
.btn.sm { min-height: 38px; padding: 0 12px; font-size: 15px; border-radius: 11px; }
.btn.sm-h { min-height: 44px; font-size: 16px; }
.btn.xl { min-height: 62px; font-size: 20px; margin: 14px 0 8px; }
.check { display: flex; align-items: center; gap: 10px; font-weight: 500; }
.check input { width: 20px; height: 20px; accent-color: var(--brand); }
.trio { border: 1px solid var(--line); border-radius: 14px; padding: 8px 12px 12px; margin: 0; display: grid; gap: 8px; min-width: 0; }
.trio legend { font-size: 14px; color: var(--muted); font-weight: 600; padding: 0 4px; }
.trio label { display: grid; grid-template-columns: 40px 1fr; align-items: center; gap: 8px; }
.trio label span { font-size: 13px; font-weight: 700; color: var(--brand); }
.days { display: flex; flex-wrap: wrap; gap: 6px; }
.daychip input { position: absolute; opacity: 0; pointer-events: none; }
.daychip span { display: inline-block; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); cursor: pointer; font-size: 14px; }
.daychip input:checked + span { background: var(--brand); color: var(--brand-ink); border-color: var(--brand); }
.daychip input:focus-visible + span { outline: 3px solid var(--accent); }

/* ---------- cards, badges, notices ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow); margin-bottom: 12px; }
.card h3 { margin-bottom: 10px; }
.badge { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; padding: 3px 10px; border-radius: 999px; white-space: nowrap; }
.badge.ok { background: var(--ok-soft); color: var(--ok); }
.badge.warn { background: var(--warn-soft); color: var(--warn); }
.badge.bad { background: var(--bad-soft); color: var(--bad); }
.badge.info { background: var(--brand-soft); color: var(--brand); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; flex: none; }
.dot.live { animation: pulse 1.6s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 currentColor; } 70% { box-shadow: 0 0 0 7px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
.notice { border-radius: 12px; padding: 10px 14px; font-size: 15px; margin: 0 0 12px; }
.notice.warn { background: var(--warn-soft); color: var(--warn); }
.notice.bad { background: var(--bad-soft); color: var(--bad); }
.notice.info { background: var(--brand-soft); color: var(--brand); }
.card .notice { margin-top: 10px; }
.lines { margin: 0 0 6px; padding: 0; list-style: none; }
.lines li { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px dashed var(--line); }
.lines li:last-child { border-bottom: 0; font-weight: 800; font-size: 19px; }
.empty { text-align: center; color: var(--muted); padding: 36px 16px; display: grid; gap: 12px; justify-items: center; }
.ic.flip { transform: scaleX(-1); }
.empty.small { padding: 18px; }
.avatar-img { width: 56px; height: 56px; border-radius: 16px; object-fit: cover; flex: none; display: block; }
.avatar-img.ph-doc span { font-size: 22px; }
.pay-head { display: flex; gap: 14px; align-items: center; }
.token-no { font: 800 40px/1 var(--f-display); color: var(--brand); }
.upi { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 0 0 10px; }
.upi button { border: 1px solid var(--line); background: var(--surface); border-radius: 12px; padding: 12px 4px; cursor: pointer; font-size: 14px; }
.upi button[aria-pressed="true"] { border-color: var(--brand); box-shadow: 0 0 0 2px var(--brand-soft); font-weight: 700; }

/* ---------- ticket ---------- */
.ticket { background: linear-gradient(135deg, #0e8c83, #11a39a); color: var(--brand-ink); border-radius: 24px; padding: 18px 20px; position: relative; overflow: hidden; margin-bottom: 12px; }
.ticket-doc { display: flex; gap: 12px; align-items: center; }
.ticket-doc b { display: block; font-size: 17px; }
.ticket-doc span { font-size: 13px; opacity: .85; }
.ticket-img { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; border: 2px solid rgba(255, 255, 255, .7); flex: none; }
.ticket-img.ph-doc span { font-size: 20px; }
.ticket-nums { display: flex; align-items: flex-end; justify-content: space-between; gap: 8px; margin-top: 12px; }
.ticket-nums .right { text-align: right; }
.ticket .label { opacity: .85; font-size: 14px; }
.ticket .big { font: 800 92px/0.95 var(--f-display); letter-spacing: -.02em; }
.ticket .mid { font: 800 46px/1 var(--f-display); }
.ticket .cut { border-top: 2px dashed rgba(255, 255, 255, .35); margin: 16px -20px 12px; position: relative; }
.ticket .cut::before, .ticket .cut::after { content: ""; position: absolute; top: -12px; width: 22px; height: 22px; border-radius: 50%; background: var(--bg); }
.ticket .cut::before { left: -11px; } .ticket .cut::after { right: -11px; }
.ticket-state { font: 700 24px/1.2 var(--f-display); }
.progress { height: 8px; background: rgba(255, 255, 255, .25); border-radius: 99px; overflow: hidden; margin-top: 14px; }
.progress i { display: block; height: 100%; background: var(--accent); border-radius: 99px; transition: width .6s; }
.ticket.state-done, .ticket.state-cancelled, .ticket.state-expired, .ticket.state-no_show { background: var(--surface-2); color: var(--ink); border: 1px solid var(--line); }
.ticket.state-in_progress { background: var(--accent); color: var(--accent-ink); }
.mytok { display: flex; gap: 12px; align-items: center; text-decoration: none; color: inherit; }
.mytok .badge { margin-top: 4px; }
.mytok-no { font: 800 34px/1 var(--f-display); color: var(--brand); min-width: 54px; text-align: center; background: var(--brand-soft); border-radius: 14px; padding: 10px 6px; }

/* ---------- language screen ---------- */
.lang-screen { min-height: 86vh; display: grid; align-content: center; gap: 22px; padding: 24px 0; }
.brand.big .logo { width: 56px; height: 56px; font-size: 30px; border-radius: 16px; }
.brand.big b { font-size: 30px; }
.lang-screen h1 { font-size: 26px; line-height: 1.3; }
.lang-screen h1 span { color: var(--muted); font-size: 22px; }
.lang-list { display: grid; gap: 10px; }
.lang-opt { display: grid; gap: 2px; text-align: left; padding: 16px 18px; border-radius: 16px; border: 1px solid var(--line); background: var(--surface); cursor: pointer; box-shadow: var(--shadow); }
.lang-opt b { font: 700 24px/1.2 var(--f-display); }
.lang-opt small { color: var(--muted); font-size: 14px; }
.lang-opt.on { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }

/* ---------- clinic ---------- */
.doc-chips { display: flex; gap: 8px; overflow-x: auto; padding: 0 var(--gutter-r) 10px var(--gutter-l); margin: 0 calc(-1 * var(--gutter-r)) 0 calc(-1 * var(--gutter-l)); scrollbar-width: none; }
.doc-chip { flex: none; display: flex; align-items: center; gap: 8px; padding: 6px 12px 6px 6px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); cursor: pointer; text-align: left; line-height: 1.15; }
.doc-chip b { display: block; font-size: 14px; }
.doc-chip small { color: var(--muted); font-size: 12px; }
.chip-img { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; flex: none; }
.chip-img.ph-doc span { font-size: 16px; }
.doc-chip[aria-pressed="true"] { border-color: var(--brand); background: var(--brand-soft); box-shadow: 0 0 0 2px var(--brand-soft); }
.now-serving { text-align: center; }
.now-serving .big { font: 800 78px/1 var(--f-display); color: var(--brand); }
.now-serving .who { font-size: 18px; font-weight: 600; margin-top: 4px; min-height: 27px; }
.qlist { list-style: none; margin: 0; padding: 0; }
.qlist li { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.qlist li:last-child { border-bottom: 0; }
.qno { width: 46px; height: 46px; border-radius: 12px; background: var(--surface-2); display: grid; place-items: center; font: 700 19px/1 var(--f-display); flex: none; }
.qlist li.s-in_progress .qno { background: var(--accent); color: var(--accent-ink); }
.qlist li.s-done, .qlist li.s-no_show, .qlist li.s-cancelled { opacity: .55; }
.qlist .who { flex: 1; min-width: 0; }
.qlist .who b { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.qacts { display: flex; gap: 6px; }
.money { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.money b { font: 700 24px/1.2 var(--f-display); }

/* ---------- photo manager ---------- */
.pgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.pthumb { position: relative; aspect-ratio: 4 / 3; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); background: var(--surface-2); padding: 0; cursor: pointer; }
.pthumb img, .pthumb .ph { width: 100%; height: 100%; object-fit: cover; display: block; }
.pcap { position: absolute; left: 6px; bottom: 6px; right: 6px; display: inline-flex; align-items: center; gap: 3px; justify-content: center; background: rgba(0, 0, 0, .58); color: #fff; font-size: 11px; padding: 2px 6px; border-radius: 999px; white-space: nowrap; overflow: hidden; }
.pthumb.add { display: grid; place-items: center; align-content: center; gap: 4px; color: var(--brand); border-style: dashed; border-width: 2px; border-color: var(--brand); background: var(--brand-soft); font-size: 13px; font-weight: 600; }
.sheet-photo { border-radius: 14px; overflow: hidden; margin-bottom: 12px; aspect-ratio: 16 / 10; background: var(--surface-2); }
.sheet-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo-pick { display: flex; gap: 14px; align-items: center; margin-bottom: 4px; }
.photo-pick > button { border: 0; background: none; padding: 0; cursor: pointer; display: grid; gap: 4px; justify-items: center; color: var(--brand); font-size: 13px; font-weight: 600; }
.photo-pick > button span { display: inline-flex; align-items: center; gap: 4px; }

/* ---------- admin ---------- */
.tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.tile { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 12px 14px; display: grid; gap: 2px; box-shadow: var(--shadow); }
.tile span { font-size: 13px; color: var(--muted); font-weight: 600; }
.tile b { font: 700 26px/1.15 var(--f-display); }
.tile small { font-size: 12px; color: var(--muted); }
.tile.accent { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); }
.tile.accent span, .tile.accent small { color: inherit; opacity: .85; }
.arow { display: flex; align-items: center; gap: 12px; text-decoration: none; color: inherit; width: 100%; text-align: left; cursor: pointer; font: inherit; }
.arow-num { text-align: right; flex: none; }
.arow-num b { display: block; font: 700 17px/1.2 var(--f-display); }
.arow-num span { font-size: 11px; color: var(--muted); }

/* ---------- tab bar, toast, sheet, lightbox ---------- */
.tabbar { position: fixed; left: 0; right: 0; bottom: 0; display: flex; justify-content: center; gap: 6px; background: var(--surface); border-top: 1px solid var(--line);
  padding: 6px max(10px, env(safe-area-inset-right, 0px)) calc(6px + env(safe-area-inset-bottom, 0px)) max(10px, env(safe-area-inset-left, 0px)); z-index: 10; }
.tabbar a { flex: 1; max-width: 200px; display: grid; justify-items: center; gap: 1px; text-decoration: none; color: var(--muted); font-size: 13px; padding: 6px 0; border-radius: 14px; }
.tabbar a.on { color: var(--brand); font-weight: 700; background: var(--brand-soft); }
#toast { position: fixed; left: 50%; bottom: calc(92px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%) translateY(20px); background: var(--ink); color: var(--bg);
  padding: 10px 18px; border-radius: 12px; opacity: 0; transition: .25s; pointer-events: none; max-width: calc(100% - 32px); z-index: 40; font-size: 15px; text-align: center; }
#toast.show { opacity: 1; transform: translateX(-50%); }
.sheet-bg { position: fixed; inset: 0; background: rgba(0, 0, 0, .45); z-index: 30; display: flex; align-items: flex-end; justify-content: center; }
.sheet { background: var(--bg); width: 100%; max-width: 600px; border-radius: 22px 22px 0 0; max-height: 92vh; overflow: auto;
  padding: 18px max(16px, env(safe-area-inset-right, 0px)) calc(20px + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px)); }
.sheet-head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.sheet-head h2 { font-size: 21px; }
.ask-msg { margin-bottom: 14px; }
#ask-in { margin-bottom: 12px; }
.lightbox { position: fixed; inset: 0; z-index: 50; background: rgba(5, 10, 9, .94); display: grid; place-items: center; padding: calc(56px + env(safe-area-inset-top, 0px)) 12px calc(20px + env(safe-area-inset-bottom, 0px)); }
.lightbox figure { margin: 0; display: grid; gap: 10px; justify-items: center; max-width: 100%; }
.lightbox img { max-width: 100%; max-height: 74vh; border-radius: 12px; display: block; }
.lightbox figcaption { color: #fff; font-size: 15px; }
.lb-close { position: absolute; top: calc(10px + env(safe-area-inset-top, 0px)); right: max(12px, env(safe-area-inset-right, 0px)); }
.lb-prev, .lb-next { position: absolute; top: 50%; transform: translateY(-50%); font-size: 30px; }
.lb-prev { left: max(10px, env(safe-area-inset-left, 0px)); } .lb-next { right: max(10px, env(safe-area-inset-right, 0px)); }
.skeleton { height: 150px; border-radius: var(--radius); background: linear-gradient(90deg, var(--surface) 0%, var(--surface-2) 50%, var(--surface) 100%); background-size: 200% 100%; animation: sk 1.2s infinite; margin-bottom: 12px; border: 1px solid var(--line); }
.skeleton.tall { height: 290px; }
@keyframes sk { to { background-position: -200% 0; } }
.demo-bar { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; justify-content: center; background: var(--accent-soft); color: var(--warn); font-size: 13px;
  padding: 6px max(12px, env(safe-area-inset-right, 0px)) 6px max(12px, env(safe-area-inset-left, 0px)); }
.demo-bar .seg { margin: 0; padding: 3px; border-radius: 12px; background: var(--surface); }
.demo-bar .seg button { min-height: 32px; padding: 2px 10px; font-size: 13px; border-radius: 9px; }

div.ph { display: grid; place-items: center; }

/* ---------- डॉक्टर की स्थिति (कंप्यूटर + डॉक्टर ऐप) ---------- */
.status-now { display: flex; align-items: center; gap: 8px; font-weight: 700; padding: 10px 14px; border-radius: 12px; margin-bottom: 10px; }
.status-now.big { font: 700 22px/1.25 var(--f-display); padding: 14px 16px; }
.status-now.ok { background: var(--ok-soft); color: var(--ok); }
.status-now.warn { background: var(--warn-soft); color: var(--warn); }
.status-now.bad { background: var(--bad-soft); color: var(--bad); }
.status-btns { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 8px; }
.sbtn { min-height: 46px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); cursor: pointer; font-weight: 600; font-size: 15px; padding: 6px 10px; line-height: 1.2; }
.sbtn.ok { border-color: var(--ok); color: var(--ok); }
.sbtn.warn { border-color: var(--warn); color: var(--warn); }
.sbtn.bad { border-color: var(--bad); color: var(--bad); }
.sbtn.on.ok { background: var(--ok); color: var(--surface); }
.sbtn.on.warn { background: var(--warn); color: var(--surface); }
.sbtn.on.bad { background: var(--bad); color: var(--surface); }

/* ---------- रिसेप्शन कंप्यूटर (बड़ी स्क्रीन) ---------- */
body.wide #app { max-width: none; padding: 0; }
.login-wrap { max-width: 460px; margin: 0 auto; }
.desk-top { display: flex; align-items: center; gap: 12px; padding: 14px 0 12px; flex-wrap: wrap; }
.desk-top h1 { font-size: 21px; }
.desk-top .hosp-thumb { width: 52px; height: 52px; }
.desk-top .grow { min-width: 160px; }
.seg.compact { margin: 0; min-width: 260px; }
.seg.compact button { min-height: 40px; padding: 4px 8px; }
.desk-grid { display: grid; grid-template-columns: 1fr; gap: 14px; align-items: start; }
@media (min-width: 980px) { .desk-grid { grid-template-columns: 380px minmax(0, 1fr); } .desk-side { position: sticky; top: calc(10px + env(safe-area-inset-top, 0px)); } }
.desk-main { min-width: 0; }
.desk-doc { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.desk-doc .grow { min-width: 150px; }
@media (max-width: 520px) { .desk-doc .btn { flex: 1; } }
.counters { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 8px; margin-bottom: 12px; }
.counters div { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 10px 12px; display: grid; }
.counters span { font-size: 13px; color: var(--muted); font-weight: 600; }
.counters b { font: 700 26px/1.15 var(--f-display); }
.counters .m b { color: var(--brand); font-size: 22px; }
.queue-card { padding: 12px; }
.queue-tools { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 10px; }
.search.small { flex: 1 1 240px; min-height: 46px; box-shadow: none; border: 1px solid var(--line); background: var(--surface); color: var(--ink); }
.search.small input { color: var(--ink); }
.chips.inline { margin: 0; padding: 0; flex: 1 1 auto; flex-wrap: wrap; overflow: visible; }
.table-wrap { overflow-x: auto; margin: 0 -12px; padding: 0 12px; }
.qtable { width: 100%; border-collapse: collapse; min-width: 720px; font-size: 15px; }
.qtable th { text-align: left; font-size: 13px; color: var(--muted); font-weight: 600; padding: 8px 8px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.qtable td { padding: 8px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.qtable tr:last-child td { border-bottom: 0; }
.qtable .qno { width: 42px; height: 42px; font-size: 18px; }
.qtable tr.s-in_progress .qno { background: var(--accent); color: var(--accent-ink); }
.qtable tr.s-in_progress { background: var(--accent-soft); }
.qtable tr.s-done, .qtable tr.s-no_show, .qtable tr.s-cancelled { opacity: .55; }
.qtable .badge { vertical-align: middle; }
.qtable .acts { display: flex; gap: 6px; justify-content: flex-end; flex-wrap: wrap; }
.given { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 12px; background: var(--brand); color: var(--brand-ink); border-radius: 14px; padding: 10px 16px; }
.given b { font: 800 44px/1 var(--f-display); }


/* ---------- कंप्यूटर: कौन बैठा है ---------- */
.pc-chip { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 10px; border-radius: 14px; border: 2px solid var(--brand); background: var(--brand-soft); color: var(--ink); cursor: pointer; text-align: left; max-width: 280px; min-height: 48px; }
.pc-chip > .ic { color: var(--brand); }
.pc-chip span { display: grid; line-height: 1.2; min-width: 0; }
.pc-chip b { font-size: 15px; }
.pc-chip small { font-size: 13px; color: var(--muted); }
.pc-info { display: flex; gap: 12px; align-items: center; }
.card.flat { box-shadow: none; margin: 0; }
.big-n { font: 800 34px/1.1 var(--f-display); }
.counters small { font-size: 12px; color: var(--muted); }
.counters .lead { border-color: var(--brand); background: var(--brand-soft); }
.counters .lead b { color: var(--brand); }
.qtable td.pt { min-width: 220px; }
.qtable .phone { display: inline-flex; align-items: center; gap: 4px; margin-left: 8px; font-size: 14px; color: var(--brand); text-decoration: none; white-space: nowrap; }
.qtable .meta.phone { color: var(--muted); }
.edit-btn { margin-left: 6px; border: 1px solid var(--line); background: var(--surface); border-radius: 8px; width: 30px; height: 30px; cursor: pointer; color: var(--muted); font-size: 15px; vertical-align: middle; }
.edit-btn:hover { color: var(--brand); border-color: var(--brand); }
.qtable td.by { font-size: 14px; max-width: 200px; }
.by-line { display: block; font-size: 12px; margin-top: 2px; }
.ok-text { color: var(--ok); font-weight: 600; }
.phone-inline { font-weight: 500; color: var(--muted); font-size: 15px; }

/* ---------- डॉक्टर: पूरा हिसाब ---------- */
.ledger h4 { font-size: 14px; color: var(--muted); font-weight: 600; margin: 16px 0 6px; }
.ledger-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.ledger-head b { display: block; font: 800 44px/1 var(--f-display); color: var(--brand); }
.ledger-head .eq { font-weight: 600; color: var(--muted); }
.bar { display: flex; height: 14px; border-radius: 99px; overflow: hidden; background: var(--surface-2); gap: 2px; }
.bar i { display: block; height: 100%; }
.legend { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 14px; }
.legend li { display: inline-flex; align-items: center; gap: 6px; }
.legend li .meta { font-size: 12px; }
.legend i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.b-online { background: var(--brand); } .b-walkin { background: var(--violet); }
.b-done { background: var(--ok); } .b-in { background: var(--accent); } .b-wait { background: var(--brand); opacity: .55; }
.b-ns { background: var(--muted); } .b-cx { background: var(--bad); }
.check-line { margin-top: 6px; }
.who-list { list-style: none; margin: 0; padding: 0; }
.who-list li { display: flex; justify-content: space-between; gap: 10px; padding: 7px 0; border-bottom: 1px dashed var(--line); }
.who-list li:last-child { border-bottom: 0; }
.who-list b { font: 700 18px/1.2 var(--f-display); }
.cap { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.cap div { background: var(--surface-2); border-radius: 12px; padding: 8px 12px; display: grid; }
.cap span { font-size: 13px; color: var(--muted); font-weight: 600; }
.cap b { font: 700 26px/1.15 var(--f-display); color: var(--accent); }
.cap small { font-size: 12px; color: var(--muted); }

/* ---------- मरीज़ का रिकॉर्ड ---------- */
.old-pt { border: 2px dashed #bfe3dc; background: #fbfefd; }
.old-pt h3 { margin-bottom: 8px; }
.pres { display: grid; gap: 6px; margin-top: 8px; max-height: 320px; overflow-y: auto; }
.pres-row { display: flex; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 12px; padding: 6px 8px 6px 10px; background: var(--surface); }
.pres-main { flex: 1; min-width: 0; display: grid; text-align: left; border: 0; background: none; cursor: pointer; padding: 2px 0; line-height: 1.3; }
.pres-main b { font-size: 15px; }
.pres-row .btn.sm { flex: none; white-space: nowrap; }
.pt-name { border: 0; background: none; padding: 0; cursor: pointer; color: var(--ink); text-decoration: underline dotted var(--muted); text-underline-offset: 3px; font: inherit; }
.pt-name:hover { color: var(--brand); }
.badge.old { font-size: 11px; padding: 1px 8px; margin-left: 6px; vertical-align: middle; }
.qlist li.clickable { cursor: pointer; }
.qlist li.clickable:hover { background: var(--surface-2); }
.pt-head { display: flex; gap: 12px; align-items: center; margin-bottom: 12px; }
.pt-av { width: 52px; height: 52px; border-radius: 50%; background: var(--brand-soft); color: var(--brand-2); display: grid; place-items: center; font: 800 22px/1 var(--f-display); flex: none; }
.pt-big { font: 700 21px/1.2 var(--f-display); }
.tiles.three { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-bottom: 4px; }
.tiles.three .sm-date { font: 700 16px/1.25 var(--f-display); }
.visits { list-style: none; margin: 0; padding: 0; }
.visits li { display: flex; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.visits li:last-child { border-bottom: 0; }
.visits .v-date { width: 104px; flex: none; display: grid; line-height: 1.25; }
.visits .v-date b { font-size: 14px; }
.visits .grow b { display: block; font-size: 15px; }
.visits li.v-cancelled, .visits li.v-no_show { opacity: .6; }

/* ---------- डॉक्टर: दबबे ---------- */
.box-head { margin: 16px 0 8px; }
.box-head h3 { font-size: 16px; color: var(--muted); }
.tile small { line-height: 1.3; }
.tile.lead { background: var(--brand-soft); border-color: #bfe3dc; }
.tile.lead b { color: var(--brand-2); }
.tile.hot b { color: var(--accent); }
.tiles.who { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); margin-bottom: 12px; }
.tiles.who .tile span { color: var(--ink); font-weight: 600; }
.tiles.who .tile b { font-size: 26px; }

/* ---------- डॉक्टर ऐप ---------- */
.doc-top .avatar-img { width: 50px; height: 50px; border-radius: 50%; }
.doc-top h1 { font-size: 20px; }
.status-card h3 { margin-bottom: 8px; }
.tiles.six { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-bottom: 12px; }
.tiles.six .tile b { font-size: 24px; }
.money3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.money3 div { display: grid; gap: 1px; }
.money3 span { font-size: 13px; color: var(--muted); font-weight: 600; }
.money3 b { font: 700 22px/1.2 var(--f-display); }
.money3 small { font-size: 12px; color: var(--muted); }
.money3 .tot b { color: var(--brand); }
.now-serving.compact { text-align: left; }
.now-serving.compact .big { font-size: 56px; }
.desk-ic { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); flex: none; }
.perm-sum { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
.perm-sum span { font-size: 11px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 999px; padding: 1px 8px; color: var(--muted); }
.perms { gap: 4px; }
.perm { display: flex !important; grid-template-columns: none !important; gap: 10px; align-items: flex-start; padding: 8px 0; border-bottom: 1px dashed var(--line); cursor: pointer; }
.perm:last-child { border-bottom: 0; }
.perm input { width: 22px; height: 22px; accent-color: var(--brand); flex: none; margin-top: 2px; }
.perm b { display: block; font-size: 15px; color: var(--ink); }
.perm small { display: block; font-size: 13px; color: var(--muted); font-weight: 400; }
.perm span { color: inherit !important; font-weight: 400 !important; }
.warn-text { color: var(--warn); font-weight: 600; }
.arow .badge { flex: none; }


@media (min-width: 640px) {
  .gthumb { width: 32%; }
  .hero h1 { font-size: 32px; }
}
@media (max-width: 380px) {
  .dcard-top { grid-template-columns: 78px 1fr; }
  .dphoto { width: 78px; height: 96px; }
  .dfee { grid-column: 2; text-align: left; display: flex; gap: 6px; align-items: baseline; }
  .steps span { font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }

/* हटाने की पुष्टि में "क्या-क्या मिटेगा" की सूची */
.del-list { margin: 6px 0 14px; padding-left: 20px; display: grid; gap: 4px; }
.del-code { font-size: 1.35em; letter-spacing: .08em; color: var(--bad); }
/* बंद किए गए दवाखाने/डॉक्टर: फीके दिखें */
.off-row { opacity: .85; background: var(--bg, #f5f9f8); border-style: dashed; }
.off-row a.grow { color: inherit; text-decoration: none; min-width: 0; }

/* ======================= वेटिंग रूम की TV (/tv) =======================
   16:9 पूरी स्क्रीन, गहरा रंग: दूर से पढ़ने लायक बड़ा नंबर, कोई बटन/मेनू नहीं। आकार vw/vh में, ताकि हर TV पर एक जैसा। */
body.tv-mode { background: #072a27; padding: 0; overflow: hidden; cursor: none; }
body.tv-mode #app { max-width: none; padding: 0; margin: 0; }
.tv-screen { position: fixed; inset: 0; display: grid; grid-template-rows: auto 1fr auto auto; color: #fff;
  background: radial-gradient(120% 90% at 30% 20%, #0e4b45 0%, #072a27 60%, #051d1b 100%); font-family: var(--f-display); }
.tv-head { display: flex; align-items: center; justify-content: space-between; gap: 2vw; padding: 2.2vh 3vw; background: rgba(0, 0, 0, .22); }
.tv-brand { display: flex; align-items: center; gap: 1.2vw; min-width: 0; font-size: 3.6vh; }
.tv-brand .logo { width: 6vh; height: 6vh; font-size: 3.4vh; flex: none; }
.tv-logo { width: 9vh; height: 6vh; object-fit: cover; border-radius: 1vh; flex: none; }
.tv-right { display: flex; align-items: center; gap: 2vw; flex: none; }
.tv-clock { font-size: 4vh; font-weight: 700; }
.tv-net { display: inline-flex; align-items: center; gap: .8vw; font: 600 2.3vh var(--f-body); padding: .6vh 1.4vw; border-radius: 99px; }
.tv-net i { width: 1.4vh; height: 1.4vh; border-radius: 50%; background: currentColor; }
.tv-net.ok { color: #7dffc8; background: rgba(125, 255, 200, .1); }
.tv-net.ok i { animation: tvpulse 1.6s infinite; }
.tv-net.bad { color: #fff; background: #c0392b; }
@keyframes tvpulse { 50% { opacity: .3; } }
.tv-main { display: grid; grid-template-columns: 1.55fr 1fr; gap: 3vw; padding: 3vh 3vw; min-height: 0; }
.tv-now { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  background: rgba(255, 255, 255, .06); border: .4vh solid rgba(255, 255, 255, .14); border-radius: 3vh; padding: 2vh 2vw; min-height: 0; }
.tv-label { font-size: 4.2vh; letter-spacing: .08em; color: #a8e6dc; font-weight: 700; text-transform: uppercase; }
.tv-num { font-size: 34vh; line-height: .95; font-weight: 800; color: #ffd166; text-shadow: 0 .8vh 3vh rgba(0, 0, 0, .35); }
.tv-pname { font-size: 6vh; font-weight: 700; margin-top: 1vh; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tv-go { font: 600 3.4vh var(--f-body); color: #d9f3ee; margin-top: 1vh; }
.tv-calling { position: absolute; top: 2vh; right: 2vw; font: 700 2.6vh var(--f-body); color: #072a27; background: #ffd166; padding: .6vh 1.4vw; border-radius: 99px; opacity: 0; transition: opacity .3s; }
.tv-now.calling { border-color: #ffd166; box-shadow: 0 0 0 .6vh rgba(255, 209, 102, .25); }
.tv-now.calling .tv-calling { opacity: 1; }
.tv-now.flash .tv-num { animation: tvflash 1s ease 3; }
@keyframes tvflash { 0%, 100% { transform: scale(1); } 40% { transform: scale(1.08); color: #fff; } }
.tv-side { display: flex; flex-direction: column; gap: 2.4vh; min-height: 0; }
.tv-doc { display: flex; align-items: center; gap: 1.6vw; background: rgba(255, 255, 255, .06); border-radius: 2.4vh; padding: 2vh 1.6vw; }
.tv-doc b { display: block; font-size: 4.4vh; line-height: 1.15; }
.tv-doc span { font: 500 2.8vh var(--f-body); color: #a8e6dc; }
.tv-docimg { width: 13vh; height: 13vh; border-radius: 50%; object-fit: cover; flex: none; background: #fff; }
.tv-docimg.ph { display: grid; place-items: center; color: #0b7f77; font-size: 6vh; font-weight: 800; }
.tv-room { display: flex; align-items: center; justify-content: space-between; background: #ffd166; color: #072a27; border-radius: 2.4vh; padding: 1.6vh 2vw; }
.tv-room span { font-size: 4vh; font-weight: 700; }
.tv-room b { font-size: 9vh; line-height: 1; }
.tv-next { flex: 1; background: rgba(255, 255, 255, .06); border-radius: 2.4vh; padding: 2vh 1.6vw; min-height: 0; }
.tv-next > span { font-size: 3.4vh; color: #a8e6dc; font-weight: 700; }
.tv-chips { display: flex; gap: 1.2vw; margin-top: 1.4vh; }
.tv-chips b { flex: 1; text-align: center; font-size: 8vh; line-height: 1.25; background: rgba(255, 255, 255, .1); border-radius: 1.8vh; }
.tv-chips em { font-size: 6vh; color: #6d8f8a; font-style: normal; }
.tv-notice { margin: 0 3vw 2vh; text-align: center; font: 700 4.2vh var(--f-display); background: #f29235; color: #2b1600; border-radius: 2vh; padding: 1.4vh 2vw; }
.tv-foot { text-align: center; font: 500 2.4vh var(--f-body); color: #8fbcb5; padding: 1.4vh 0 2vh; }
.tv-screen.is-offline .tv-num, .tv-screen.is-offline .tv-chips b { opacity: .45; }
.tv-screen.is-paused .tv-num { opacity: .6; }
.tv-center { grid-row: 1 / -1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 2vh; padding: 4vh 6vw; }
.tv-center h1 { font-size: 6vh; margin: 0; }
.tv-center .brand.big b { color: #fff; font-size: 5vh; }
.tv-code { font-size: 20vh; font-weight: 800; letter-spacing: .06em; color: #ffd166; line-height: 1; }
.tv-steps { font: 500 3.6vh var(--f-body); color: #d9f3ee; max-width: 70vw; margin: 0; }
.tv-exp { font: 500 2.8vh var(--f-body); color: #8fbcb5; margin: 0; }
.tv-corner { position: fixed; top: 2.5vh; right: 3vw; }
.tv-spinner { width: 8vh; height: 8vh; border-radius: 50%; border: 1vh solid rgba(255, 255, 255, .15); border-top-color: #ffd166; animation: spin 1s linear infinite; }
.tv-center p { font: 500 3.4vh var(--f-body); }
@keyframes spin { to { transform: rotate(360deg); } }
.tv-sound { position: fixed; left: 50%; bottom: 8vh; transform: translateX(-50%); font: 700 3.4vh var(--f-display); padding: 2vh 3vw; border: 0;
  border-radius: 99px; background: #ffd166; color: #072a27; cursor: pointer; box-shadow: 0 1vh 4vh rgba(0, 0, 0, .4); }
.tv-sound:focus { outline: .6vh solid #fff; }

/* ---- रिसेप्शन/डॉक्टर: TV कंट्रोल ---- */
.tvc section { background: var(--surface); border-radius: var(--radius); padding: 14px; box-shadow: var(--shadow); }
.tvc section h3 { margin: 0 0 10px; }
.tvc .field { margin-top: 10px; }
.tvc .check { margin-top: 10px; }
.tvc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; }
.tv-pair-form { margin-top: 10px; flex-wrap: wrap; }
.tv-pair-form .input { flex: 1 1 140px; }
.tv-list li { align-items: center; }
.tv-dot { width: 12px; height: 12px; border-radius: 50%; background: var(--bad); flex: none; }
.tv-dot.ok { background: var(--ok); }
.caller-row { margin-top: 10px; gap: 8px; }
.caller-row .btn { flex: 1; }
.sheet-bg.top-layer { z-index: 40; align-items: center; }
.sheet.small { border-radius: 18px; max-width: 420px; padding: 18px; }

/* Smart Queue: हाज़िरी लगी, सूची में ↑ ↓ */
.notice.ok-n { background: var(--ok-soft); color: var(--ok); }
.li-acts { display: inline-flex; gap: 4px; flex: none; }
.li-acts .btn { min-width: 36px; padding-inline: 8px; }
.q-tip { margin: 0 0 8px; }

/* ---------- डिजिटल पर्ची: लिखना, देखना, छापना ---------- */
body.rx-open { overflow: hidden; }
.rx-screen { position: fixed; inset: 0; z-index: 25; background: var(--bg); display: flex; flex-direction: column; }
.rx-bar { display: flex; align-items: center; gap: 8px; flex: none; background: var(--surface); border-bottom: 1px solid var(--line);
  padding: calc(8px + env(safe-area-inset-top, 0px)) var(--gutter-r) 8px var(--gutter-l); }
.rx-bar .grow { min-width: 0; }
.rx-save { white-space: nowrap; }
.rx-save[data-s="saved"] { color: var(--ok); }
.rx-save[data-s="offline"], .rx-save[data-s="changed"] { color: var(--bad); }
.rx-body { flex: 1; overflow: auto; -webkit-overflow-scrolling: touch; padding: 14px var(--gutter-r) calc(20px + env(safe-area-inset-bottom, 0px)) var(--gutter-l); }
.rx-body > * { max-width: 880px; margin-left: auto; margin-right: auto; }
.rx-sec { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; margin-bottom: 12px; }
.rx-sec h3 { margin: 0 0 10px; font-size: 17px; }
.rx-sec .row-between h3 { margin: 0; }
.rx-sec .row-between { margin-bottom: 10px; flex-wrap: wrap; }
.rx-ptsec { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; }
.rx-ptsec .chips { flex: 0 1 auto; gap: 6px; display: flex; }
.rx-vitals { display: grid; grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); gap: 8px; }
.rx-vitals .field, .rx-med-grid .field { margin: 0; }
.rx-sec .field small { color: var(--muted); font-weight: 400; }
textarea.input { min-height: 48px; resize: vertical; font: inherit; line-height: 1.45; }
.chip.sm { padding: 5px 11px; font-size: 14px; }
.rx-med { border: 1px solid var(--line); border-radius: 14px; padding: 10px; margin-bottom: 10px; background: var(--bg); }
.rx-med-top { display: flex; gap: 8px; align-items: center; }
.rx-no { width: 28px; height: 28px; border-radius: 50%; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; font-weight: 700; flex: none; }
.rx-mname { font-weight: 600; }
.rx-med-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 8px; }
.rx-freqs { display: flex; gap: 6px; margin: 8px 0 !important; }
.rx-mnote { min-height: 42px; font-size: 15px; }
.rx-sugg { display: grid; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); margin-top: 6px; overflow: hidden; }
.rx-sugg[hidden] { display: none; }
.rx-sugg button { text-align: left; padding: 9px 12px; border: 0; border-bottom: 1px solid var(--line); background: none; cursor: pointer; display: grid; font: inherit; color: inherit; }
.rx-sugg button:last-child { border-bottom: 0; }
.rx-sugg small { color: var(--muted); }
.rx-tests { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.rx-tests .meta { margin: 0; }
.rx-test { display: inline-flex; align-items: center; gap: 6px; background: var(--brand-soft); border-radius: 999px; padding: 4px 5px 4px 12px; }
.rx-test small { color: var(--muted); }
.rx-test button { border: 0; background: var(--surface); border-radius: 50%; width: 28px; height: 28px; cursor: pointer; color: inherit; }
.rx-addtest { display: grid; grid-template-columns: 1fr 150px auto; gap: 8px; margin-bottom: 8px; }
.rx-quick, .rx-follow { display: flex; gap: 6px; align-items: center; }
.rx-fdate { width: auto; min-height: 38px; padding: 4px 10px; flex: 0 1 170px; }
.rx-actions { display: flex; gap: 10px; position: sticky; bottom: -20px; padding: 12px 0 14px; background: linear-gradient(transparent, var(--bg) 35%); }
.rx-actions .btn { flex: 1; }
@media (max-width: 560px) {
  .rx-med-grid { grid-template-columns: 1fr 1fr; }
  .rx-addtest { grid-template-columns: 1fr auto; }
  .rx-addtest input { grid-column: 1 / -1; }
}
/* लिखने की पट्टी (पेन) */
.ink-tools { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-bottom: 8px; }
.ink-c { width: 32px; height: 32px; border-radius: 50%; background: var(--c); border: 3px solid var(--surface); box-shadow: 0 0 0 1px var(--line); cursor: pointer; }
.ink-c[aria-pressed="true"] { box-shadow: 0 0 0 3px var(--brand); }
.ink-wrap { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: #fff; }
.ink-canvas { display: block; width: 100%; touch-action: none; cursor: crosshair; }
/* संशोधन रिकॉर्ड, पिछली पर्चियाँ */
.rx-vers { list-style: none; padding: 0; margin: 0 0 12px; display: grid; gap: 8px; }
.rx-vers button { width: 100%; text-align: left; display: grid; gap: 2px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); cursor: pointer; font: inherit; color: inherit; }
.rx-prev li { cursor: pointer; }
/* कागज़ वाली पर्ची (स्क्रीन और Print दोनों में) */
.rx-paper-wrap { margin-bottom: 12px; }
.rx-paper { position: relative; overflow: hidden; background: #fff; color: #1a1f1e; border: 1px solid #d9e2e0; border-radius: 6px; padding: 26px 28px;
  font-size: 15px; line-height: 1.45; box-shadow: var(--shadow); max-width: 820px; margin: 0 auto; }
.rxp-head { display: flex; justify-content: space-between; gap: 8px 16px; flex-wrap: wrap; border-bottom: 3px solid var(--brand); padding-bottom: 12px; }
.rxp-docname { font: 700 22px/1.2 var(--f-display); color: var(--brand); }
.rxp-hosp { text-align: right; max-width: 50%; }
.rxp-pt { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 6px 14px; padding: 10px 0; border-bottom: 1px solid #e3e9e8; }
.rxp-pt > div { display: grid; }
.rxp-pt .wide { grid-column: span 2; }
.rxp-pt span, .rx-paper h4, .rxp-vitals b, .rxp-meds th, .rxp-freq small, .rxp-note, .rxp-meta, .rxp-sign span { color: #66736f; }
.rxp-pt span { font-size: 12px; }
.rxp-vitals { display: flex; flex-wrap: wrap; gap: 4px 18px; padding: 8px 0; border-bottom: 1px solid #e3e9e8; font-size: 14px; }
.rxp-vitals b { font-weight: 600; margin-right: 4px; }
.rx-paper section { margin-top: 12px; }
.rx-paper h4 { margin: 0 0 2px; font-size: 13px; font-weight: 600; }
.rx-paper p { margin: 0; }
.rxp-rx { font: 700 30px/1 Georgia, "Times New Roman", serif; color: var(--brand); margin-bottom: 4px; }
.rxp-meds { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.rxp-meds th { text-align: left; font-size: 12px; font-weight: 600; border-bottom: 1px solid #cfd9d6; padding: 4px 6px; }
.rxp-meds td { border-bottom: 1px solid #edf1f0; padding: 6px; vertical-align: top; }
.rxp-freq small, .rxp-note { display: block; font-size: 12.5px; }
.rxp-tests { margin: 0; padding-left: 20px; }
.rxp-ink { display: block; width: 100%; height: auto; }
.rxp-follow { margin-top: 12px !important; }
.rxp-foot { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-top: 26px; padding-top: 10px; border-top: 1px solid #e3e9e8; }
.rxp-meta { font-size: 11.5px; }
.rxp-sign { text-align: center; display: grid; min-width: 170px; font-size: 13px; }
.rxp-line { border-bottom: 1px solid #333; height: 44px; margin-bottom: 4px; }
.rxp-sign span { font-size: 11.5px; }
.rxp-mark { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; pointer-events: none;
  font: 800 60px/1 var(--f-display); color: rgba(192, 57, 43, .13); transform: rotate(-24deg); }
@media (max-width: 560px) {
  .rx-paper { padding: 16px 12px; font-size: 14px; }
  .rxp-hosp { text-align: left; max-width: none; }
  .rxp-meds { font-size: 13px; }
  .rxp-meds th, .rxp-meds td { padding: 4px 3px; }
  .rxp-sign { min-width: 130px; }
}
/* ---------- विभाग: मेडिकल, लैब, X-Ray, सोनोग्राफी ---------- */
.arow > .grow { min-width: 0; }
.dept-ic { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; flex: none; background: var(--brand-soft); color: var(--brand); }
.dept-ic .ic { width: 24px; height: 24px; }
.k-pharmacy { --k: #1f8a52; --k-soft: #e3f5ea; }
.k-lab { --k: #c0392b; --k-soft: #fde8e5; }
.k-xray { --k: #4a5bb8; --k-soft: #e9ecfb; }
.k-sono { --k: #6a5fd0; --k-soft: #efedfc; }
.k-other { --k: #a35f00; --k-soft: #fff4dd; }
.dept-ic[class*="k-"] { background: var(--k-soft); color: var(--k); }
.kind-chip { display: inline-flex; align-items: center; gap: 5px; font-size: 13px; font-weight: 600; padding: 3px 10px; border-radius: 999px; background: var(--k-soft, var(--brand-soft)); color: var(--k, var(--brand)); white-space: nowrap; }
.dp-tools { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.dp-date { width: auto; flex: 0 1 170px; min-height: 46px; }
.dp-tools .chips { flex-basis: 100%; }
.ord-row .grow { min-width: 0; }
.ord-st { display: grid; gap: 4px; justify-items: end; flex: none; }
.ord-row.s-cancelled { opacity: .6; }
.ord-head { display: flex; gap: 12px; align-items: flex-start; flex-wrap: wrap; }
.ord-head .grow { min-width: 160px; }
.qno.big { width: 58px; height: 58px; font-size: 24px; background: var(--brand-soft); color: var(--brand); }
.ord-meds, .ord-tests, .ord-list, .ord-mini { list-style: none; margin: 0; padding: 0; }
.ord-meds li { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; padding: 10px 0; border-bottom: 1px solid var(--line); }
.ord-meds li:last-child { border-bottom: 0; }
.ord-meds .grow { display: grid; min-width: 170px; }
.ord-meds li.na b { text-decoration: line-through; color: var(--muted); }
.avail { display: flex; gap: 6px; }
.avail .chip[data-v="1"][aria-pressed="true"] { background: var(--ok); border-color: var(--ok); color: #fff; }
.avail .chip[data-v="0"][aria-pressed="true"] { background: var(--bad); border-color: var(--bad); color: #fff; }
.ord-tests li { padding: 6px 0; font-weight: 600; }
.ord-tests li::before { content: '•'; color: var(--brand); margin-right: 8px; }
.ord-tests li.removed { text-decoration: line-through; color: var(--muted); font-weight: 400; }
.steps { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.step { flex: 1 1 120px; min-height: 46px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); cursor: pointer; font: inherit; font-weight: 600; color: inherit; padding: 6px 10px; }
.step[aria-pressed="true"] { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); }
.step:disabled { cursor: default; opacity: .7; }
.ord-note { grid-template-columns: 1fr auto; }
.rep-ver { border: 1px solid var(--line); border-radius: 14px; padding: 12px; margin-bottom: 10px; background: var(--bg); display: grid; gap: 8px; }
.rep-files { display: flex; flex-wrap: wrap; gap: 8px; }
.rep-file { display: inline-flex; align-items: center; gap: 8px; max-width: 100%; padding: 8px 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); cursor: pointer; font: inherit; color: inherit; }
.rep-file small { color: var(--bad); font-weight: 700; }
.rep-file.img { padding: 0; width: 96px; height: 96px; overflow: hidden; }
.rep-file.img img { width: 100%; height: 100%; object-fit: cover; }
.rep-note { margin: 0; white-space: pre-line; }
.rep-up { position: relative; cursor: pointer; }
.rep-del { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0; }
.ord-li { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; margin-bottom: 8px; display: grid; gap: 4px; cursor: pointer; }
.ord-li-top { display: flex; justify-content: space-between; gap: 8px; align-items: center; }
.ord-detail { display: grid; gap: 8px; }
.ord-mini li { display: flex; gap: 8px; align-items: center; padding: 6px 0; }
.ord-mini .meta { flex: 1; min-width: 0; }
.doc-ords li.is-new { background: var(--ok-soft); border-radius: 12px; padding-left: 8px; padding-right: 8px; }
.rx-send { margin: 0 0 10px; font-size: 15px; }
.switch { display: flex; align-items: center; gap: 8px; flex: none; cursor: pointer; font-size: 14px; }
.switch input { width: 22px; height: 22px; accent-color: var(--brand); }
/* ---------- मरीज़ का खाता (मेरा रिकॉर्ड) ---------- */
.me-hero { display: flex; gap: 14px; align-items: center; }
.me-hero .ic.xl { width: 44px; height: 44px; color: var(--brand); flex: none; }
.me-hero p { margin: 4px 0 0; }
.otp-in { font-size: 26px; letter-spacing: .5em; text-align: center; font-weight: 700; }
.otp-show { font-size: 20px; letter-spacing: .15em; }
.me-visit { display: grid; gap: 10px; min-width: 0; }
.me-visit .row-between, .me-visit .ord-mini li { flex-wrap: wrap; }
.me-visit .ord-mini .meta { flex: 1 1 120px; }
.me-doc { display: flex; gap: 10px; align-items: center; }
.me-doc .grow { min-width: 0; }
.me-visit > .btn { justify-self: start; }
.me-visit .ord-mini li .btn { flex: none; }
#print-root { display: none; }
@media print {
  @page { size: A4; margin: 10mm; }
  body.printing { background: #fff; padding: 0 !important; margin: 0; overflow: visible; }
  body.printing > *:not(#print-root) { display: none !important; }
  body.printing #print-root { display: block; }
  #print-root .rx-paper { border: 0; box-shadow: none; border-radius: 0; padding: 0; max-width: none; font-size: 12.5pt; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  #print-root .rxp-meds tr, #print-root .rxp-foot { break-inside: avoid; }
}

/* ---------- मेरा अकाउंट (2026-10 नया रूप) ---------- */
.badge.accent { background: var(--accent-soft); color: var(--accent-2); }
.badge.violet { background: var(--violet-soft); color: var(--violet); }
.badge.gray { background: var(--surface-2); color: var(--muted); }
.notice.ok { background: var(--ok-soft); color: var(--ok); display: flex; align-items: center; gap: 8px; font-weight: 600; }
.list { padding: 0; overflow: hidden; }
.list .li { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 0; border-bottom: 1px solid var(--line-2); background: none; width: 100%;
  text-align: left; text-decoration: none; color: var(--ink); cursor: pointer; font: inherit; }
.list .li:last-child { border-bottom: 0; }
.list .li b { font-weight: 700; }
.list .li .meta { display: block; font-size: 13px; }
.list .li .chev { color: #a3b1bf; flex: none; }
.me-av { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; font: 700 15px/1 var(--f-display); flex: none; background: var(--brand-soft); color: var(--brand); }
.me-av.av1 { background: var(--accent-soft); color: var(--accent-2); } .me-av.av2 { background: var(--info-soft); color: var(--info); } .me-av.av3 { background: var(--violet-soft); color: var(--violet); }
.me-av.lg { width: 58px; height: 58px; border-radius: 17px; font-size: 21px; }
.me-prof { display: flex; align-items: center; gap: 14px; }
.me-prof b { font-size: 19px; }
.me-prof .meta { display: block; }
.me-prof .btn { flex: none; align-self: flex-start; }
.me-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.me-tile { display: flex; align-items: center; gap: 12px; padding: 12px 14px; margin: 0; }
.me-tile b { display: block; font: 800 21px/1.15 var(--f-display); }
.me-tile b .badge { font-size: 11px; padding: 1px 7px; vertical-align: middle; }
.me-tile span:not(.badge):not(.me-ic) { font-size: 13px; color: var(--muted); }
.me-ic { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); flex: none; }
.me-ic.violet { background: var(--violet-soft); color: var(--violet); }
.me-hero { display: grid; justify-items: center; text-align: center; gap: 6px; padding: 12px 8px 16px; }
.me-hero h2 { font-size: 23px; }
.me-hero-ic { width: 70px; height: 70px; border-radius: 22px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); margin-bottom: 6px; }
.cc-in { display: flex; gap: 8px; }
.cc-in b { flex: none; width: 64px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-2); }
.cc-in .input { flex: 1; font-weight: 700; letter-spacing: .04em; }
.otp-in { font-size: 24px; letter-spacing: .5em; text-align: center; font-weight: 800; }
.me-more { border-top: 1px dashed var(--line); padding-top: 10px; }
.me-more summary { cursor: pointer; list-style: none; display: block; }
.me-more summary::-webkit-details-marker { display: none; }
.me-more summary .small { display: block; }
.chips.inline.wrap { gap: 8px; }
.seg.flat { margin: 0; }
input[type=date].input { min-height: 48px; }
input.input[readonly] { background: var(--surface-2); color: var(--muted); }
.staff-foot { text-align: center; margin: 22px 0 6px; font-size: 13px; color: #94a3b8; }
.staff-foot a { color: var(--muted); }
.me-self { color: var(--muted); font-weight: 500; font-size: 13px; }

/* ---------- डॉक्टर ऐप (2026-10): ऊपर गहरा हेडर, नीचे 4 टैब ---------- */
body.has-dtabs { padding-bottom: calc(84px + env(safe-area-inset-bottom, 0px)); }
.label { font-size: 12.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.grp-title { font-size: 12.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); margin: 18px 4px 8px; }
.dhead { margin: 0 calc(-1 * var(--gutter-r)) 14px calc(-1 * var(--gutter-l)); padding: 14px var(--gutter-r) 14px var(--gutter-l);
  background: linear-gradient(160deg, var(--brand-3) 0%, var(--brand) 100%); color: #fff; border-radius: 0 0 24px 24px; }
.dh-row { display: flex; align-items: center; gap: 10px; }
.dh-row.mt { margin-top: 12px; }
.dh-av { width: 46px; height: 46px; border-radius: 14px; border: 2px solid rgba(255, 255, 255, .25); }
.dh-name { font: 800 18px/1.2 var(--f-display); }
.dh-sub { font-size: 13px; opacity: .8; }
.dhead .pill { background: rgba(255, 255, 255, .14); border-color: rgba(255, 255, 255, .22); color: #fff; }
.dh-status { display: inline-flex; align-items: center; gap: 8px; max-width: 60%; height: 36px; padding: 0 12px; border-radius: 999px; border: 0; background: #fff; font-weight: 700; font-size: 14px; cursor: pointer; }
.dh-status.ok { color: var(--ok); } .dh-status.warn { color: var(--warn); } .dh-status.bad { color: var(--bad); }
.dh-status .ic { color: var(--muted); }
.dh-dates { display: flex; gap: 2px; background: rgba(255, 255, 255, .12); border-radius: 999px; padding: 3px; }
.dh-dates button { border: 0; background: none; color: rgba(255, 255, 255, .85); font-weight: 600; font-size: 13px; padding: 6px 10px; border-radius: 999px; cursor: pointer; }
.dh-dates button[aria-pressed="true"] { background: #fff; color: var(--brand-3); }
.dh-stats { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 14px; background: rgba(255, 255, 255, .1); border-radius: 14px; }
.dh-stats div { padding: 9px 4px; text-align: center; border-right: 1px solid rgba(255, 255, 255, .12); }
.dh-stats div:last-child { border-right: 0; }
.dh-stats b { display: block; font: 800 22px/1.1 var(--f-display); }
.dh-stats span { font-size: 12px; opacity: .82; }
.dtabs { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; display: flex; justify-content: center; gap: 4px; background: var(--surface); border-top: 1px solid var(--line);
  padding: 6px 8px calc(8px + env(safe-area-inset-bottom, 0px)); }
.dtabs button { flex: 1; max-width: 150px; display: grid; justify-items: center; gap: 1px; border: 0; background: none; color: var(--muted); font-size: 12.5px; font-weight: 600; padding: 6px 0; border-radius: 14px; cursor: pointer; }
.dtabs button.on { color: var(--brand); background: var(--brand-soft); font-weight: 700; }
.dnow { padding: 14px; }
.dnow-body { display: flex; align-items: center; gap: 14px; margin-top: 10px; }
.dnow-name { font: 800 19px/1.2 var(--f-display); }
.dnow-body .meta { display: block; }
.dnow-empty { margin: 10px 0 0; }
.dchips { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 6px; }
.dnow-acts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.dnow-acts .btn { min-height: 46px; }
.dtok { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; font: 800 17px/1 var(--f-display); background: var(--brand-soft); color: var(--brand); flex: none; }
.dtok.big { width: 64px; height: 64px; border-radius: 18px; font-size: 28px; background: var(--brand); color: #fff; }
.dnext { justify-content: space-between; min-height: 56px; margin-top: 2px; box-shadow: 0 6px 16px rgba(242, 140, 40, .32); }
.dnext > span:first-child { display: inline-flex; align-items: center; gap: 8px; }
.dnext-n { background: rgba(43, 22, 0, .1); padding: 5px 10px; border-radius: 10px; font-size: 14px; max-width: 48%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dqlist .li { cursor: pointer; }
.dqlist .li.s-in_progress { background: var(--brand-soft); }
.dqlist .li.s-in_progress .dtok { background: var(--brand); color: #fff; }
.dqlist .li.s-done, .dqlist .li.s-cancelled { opacity: .7; }
.dqlist .li .meta .badge { font-size: 11px; padding: 1px 7px; }
.dqlist .li-acts .btn { min-width: 34px; padding-inline: 6px; }
.dsearch { margin-bottom: 4px; border: 1px solid var(--line); box-shadow: none; }
.dearn { background: linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 100%); color: #fff; border: 0; }
.dearn .label { color: rgba(255, 255, 255, .65); }
.dearn-big { display: block; font: 800 34px/1.15 var(--f-display); margin-top: 4px; }
.dearn-split { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.dearn-split div { background: rgba(255, 255, 255, .08); border-radius: 12px; padding: 10px 12px; }
.dearn-split b { display: block; font: 700 18px/1.2 var(--f-display); }
.dearn-split span { font-size: 12.5px; opacity: .75; }
.dkpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.dkpis .card { padding: 12px; margin: 0; }
.dkpis span { display: block; font-size: 12.5px; color: var(--muted); font-weight: 600; line-height: 1.2; }
.dkpis b { display: block; font: 800 24px/1.15 var(--f-display); margin-top: 4px; }
.dkpis small { display: block; font-size: 12px; color: var(--muted); line-height: 1.25; }
.info-t { color: var(--info); } .accent-t { color: var(--accent-2); } .ok-t { color: var(--ok); } .bad-t { color: var(--bad); }
.dweek h3 { margin: 0; }
.dbars { display: flex; align-items: flex-end; gap: 8px; height: 130px; margin-top: 12px; }
.dbars div { flex: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 4px; }
.dbars i { width: 100%; min-height: 4px; border-radius: 8px 8px 4px 4px; background: var(--brand-100); display: block; }
.dbars div.on i { background: var(--brand); }
.dbars small { font-size: 11px; color: var(--muted); }
.dbars span { font-size: 11.5px; color: var(--muted); font-weight: 600; }
@media (max-width: 360px) { .dh-dates button { padding: 6px 7px; } .dkpis { grid-template-columns: repeat(2, 1fr); } }

/* ---------- डॉक्टर: मरीज़ का रिकॉर्ड ---------- */
.rec-head { align-items: flex-start; }
.rec-head .dchips .badge { font-size: 12px; }
.rec-alert { display: flex; gap: 8px; align-items: flex-start; padding: 10px 12px; border-radius: 12px; background: var(--bad-soft); color: var(--bad); font-weight: 600; font-size: 14px; margin: 4px 0 10px; }
.rec-alert .ic { margin-top: 3px; }
.rec-vitals { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; margin-bottom: 12px; }
.rec-vitals div { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 8px 10px; }
.rec-vitals span { display: block; font-size: 12px; color: var(--muted); font-weight: 600; }
.rec-vitals b { font: 800 18px/1.2 var(--f-display); }
.rec-tl { position: relative; padding-left: 20px; display: grid; gap: 8px; margin-bottom: 10px; }
.rec-tl::before { content: ""; position: absolute; left: 6px; top: 10px; bottom: 10px; width: 2px; background: var(--line); }
.rec-item { position: relative; margin: 0; padding: 10px 12px; display: grid; gap: 2px; cursor: pointer; }
.rec-item::before { content: ""; position: absolute; left: -20px; top: 14px; width: 10px; height: 10px; border-radius: 50%; background: var(--surface); border: 3px solid var(--brand); }

/* ---------- रिसेप्शन (2026-10): बाएँ नेवी मेन्यू · बीच कतार · दाएँ "अभी अंदर" और काउंटर टोकन ---------- */
.dsk { display: grid; grid-template-columns: 248px minmax(0, 1fr); min-height: 100vh; }
.dsk-side { background: var(--navy); color: #c8d3de; padding: 18px 14px; display: flex; flex-direction: column; gap: 6px; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.dsk-brand { display: flex; align-items: center; gap: 10px; color: #fff; padding: 0 4px 14px; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.dsk-brand .logo { width: 38px; height: 38px; border-radius: 11px; background: #fff; color: var(--brand); display: grid; place-items: center; font: 800 20px/1 var(--f-logo); flex: none; }
.dsk-brand b { font: 800 19px/1.1 var(--f-logo); display: block; }
.dsk-brand small { font-size: 12.5px; color: #8fa3b6; }
.dsk-pc { display: flex; align-items: center; gap: 10px; margin-top: 10px; padding: 10px; border-radius: 12px; border: 1px solid rgba(255, 255, 255, .1); background: rgba(255, 255, 255, .05); color: #fff; text-align: left; cursor: pointer; width: 100%; }
.dsk-pc b { font-size: 14.5px; display: block; } .dsk-pc small { font-size: 12.5px; color: #8fa3b6; display: block; }
.dsk-pc .warn-text { color: #fbbf24; }
.dsk-pc-ic { width: 32px; height: 32px; border-radius: 9px; background: rgba(255, 255, 255, .1); display: grid; place-items: center; flex: none; }
.dsk-navt { font-size: 11.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #6f8499; padding: 14px 6px 4px; }
.dsk-docs { display: grid; gap: 4px; }
.dsk-docs .doc-chip { width: 100%; border-radius: 12px; border: 0; background: none; color: #c8d3de; padding: 7px 8px; box-shadow: none; }
.dsk-docs .doc-chip b { color: #fff; font-size: 14.5px; } .dsk-docs .doc-chip small { color: #8fa3b6; display: block; }
.dsk-docs .doc-chip[aria-pressed="true"] { background: rgba(255, 255, 255, .1); box-shadow: inset 3px 0 0 var(--accent); }
.dsk-docs .chip-img { width: 34px; height: 34px; border-radius: 10px; }
.dsk-dates { display: grid; gap: 4px; }
.dsk-dates button { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 10px; border: 0; background: none; color: #c8d3de; font-weight: 600; font-size: 14.5px; cursor: pointer; text-align: left; }
.dsk-dates button small { margin-left: auto; color: #6f8499; font-size: 12px; }
.dsk-dates button[aria-pressed="true"] { background: rgba(255, 255, 255, .1); color: #fff; box-shadow: inset 3px 0 0 var(--accent); }
.dsk-foot { margin-top: auto; padding-top: 14px; border-top: 1px solid rgba(255, 255, 255, .08); display: flex; gap: 8px; align-items: center; }
.dsk-foot .pill, .dsk-foot .btn { background: rgba(255, 255, 255, .08); color: #fff; border-color: rgba(255, 255, 255, .14); }
.dsk-foot .btn { flex: 1; }
.dsk-main { min-width: 0; padding: 0 22px 22px; }
.dsk-top { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 14px 0; margin-bottom: 4px; border-bottom: 1px solid var(--line); }
.dsk-top .avatar-img { width: 46px; height: 46px; border-radius: 13px; }
.dsk-top .grow { min-width: 180px; }
.dsk-top b { font: 800 19px/1.2 var(--f-display); display: block; }
.dsk-st { font-size: 13.5px; padding: 6px 12px; }
.dsk-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; margin: 14px 0; }
.dsk-k { display: flex; align-items: center; gap: 12px; padding: 12px 14px; margin: 0; }
.dsk-k .me-ic { width: 44px; height: 44px; }
.dsk-k span:not(.me-ic):not(.bad-t) { display: block; font-size: 13px; color: var(--muted); font-weight: 600; }
.dsk-k b { display: block; font: 800 24px/1.15 var(--f-display); }
.dsk-k b small { font-size: 13px; color: var(--muted); font-weight: 600; }
.dsk-k small { display: block; font-size: 12px; color: var(--muted); line-height: 1.3; }
.me-ic.info { background: var(--info-soft); color: var(--info); } .me-ic.warn { background: var(--warn-soft); color: var(--warn); }
.me-ic.ok { background: var(--ok-soft); color: var(--ok); } .me-ic.accent { background: var(--accent-soft); color: var(--accent-2); }
.dsk-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 16px; align-items: start; }
.dsk-right { display: grid; gap: 14px; position: sticky; top: 12px; }
.dsk-right .card { margin: 0; }
.queue-card { padding: 14px 16px; margin: 0; }
.queue-tools h2 { font-size: 19px; flex: 1 1 auto; }
.queue-card .chips.inline { margin-bottom: 10px; }
.qtable { min-width: 560px; }
.qtable td.pt { min-width: 180px; }
.qtable th { text-transform: uppercase; letter-spacing: .04em; font-size: 12px; background: var(--surface-2); }
.qtable tr.s-in_progress td { background: var(--brand-soft); }
.qtable tr.s-in_progress .qno { background: var(--brand); color: #fff; }
.qtable .by-line { display: block; margin-top: 2px; }
.qtable .by-line .phone { display: inline; color: var(--muted); }
.qtable .st-l { font-weight: 600; }
.ok-text { color: var(--ok); }
.fee-btn { border: 0; background: none; padding: 0; cursor: pointer; }
.pay-btn { background: var(--ok-soft); color: var(--ok); border: 1px solid #bfe3cb; }
.dsk-now { background: linear-gradient(140deg, var(--brand-3), var(--brand)); color: #fff; border: 0; }
.dsk-now .label { color: rgba(255, 255, 255, .7); }
.dsk-now-body { display: flex; align-items: center; gap: 14px; margin: 6px 0 10px; }
.dsk-now-no { font: 800 54px/1 var(--f-display); }
.dsk-now-body b.clip { font: 700 18px/1.2 var(--f-display); }
.dsk-now-body span { font-size: 13.5px; opacity: .8; display: block; }
.dsk-now .btn.accent { min-height: 50px; box-shadow: none; }
.dsk-now .caller-row .btn { background: rgba(255, 255, 255, .12); color: #fff; border-color: rgba(255, 255, 255, .2); }
.dsk-walk h3 { margin: 0; }
.dsk-walk .search.small { margin: 10px 0 6px; }
.dsk-walk .field { margin-bottom: 10px; }
.feebox { background: var(--surface-2); border: 1px solid var(--line); border-radius: 14px; padding: 10px 12px 4px; margin-bottom: 4px; }
.feebox .field { margin-bottom: 8px; }
.fee-f { max-width: 110px; }
.fee-f .input, .pay-fee { font-weight: 800; }
.feebox .seg button { min-height: 40px; font-size: 14px; }
.due-v { display: flex; align-items: center; min-height: 48px; padding: 0 12px; border-radius: 12px; background: var(--bad-soft); color: var(--bad); font: 800 18px/1 var(--f-display); }
.pay-opts { display: grid; gap: 8px; }
.pay-opt { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--surface); text-align: left; cursor: pointer; }
.pay-opt b { display: block; font-size: 15.5px; } .pay-opt small { color: var(--muted); font-size: 13px; }
.pay-opt .rd { width: 20px; height: 20px; border-radius: 50%; border: 2px solid #b8c4d0; flex: none; }
.pay-opt.on { border-color: var(--brand); background: var(--brand-soft); }
.pay-opt.on .rd { border: 6px solid var(--brand); }
@media (max-width: 1180px) { .dsk-grid { grid-template-columns: 1fr; } .dsk-right { position: static; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); } }
@media (max-width: 900px) {
  .dsk { grid-template-columns: 1fr; }
  .dsk-side { position: static; height: auto; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 8px; padding: 10px 12px; }
  .dsk-brand { border: 0; padding: 0; flex: 1 1 200px; }
  .dsk-pc { margin: 0; flex: 1 1 200px; width: auto; }
  .dsk-navt { display: none; }
  .dsk-docs, .dsk-dates { display: flex; flex: 1 1 100%; overflow-x: auto; }
  .dsk-docs .doc-chip, .dsk-dates button { flex: none; width: auto; }
  .dsk-foot { margin: 0; padding: 0; border: 0; }
  .dsk-main { padding: 0 12px 16px; }
}
body.wide .login-wrap { padding: 8px 16px 24px; }

/* ---------- एडमिन (2026-10) ---------- */
body.admin-wide #app { max-width: 980px; }
.ahead { margin: 0 calc(-1 * var(--gutter-r)) 14px calc(-1 * var(--gutter-l)); padding: 16px var(--gutter-r) 16px var(--gutter-l);
  background: linear-gradient(150deg, var(--navy) 0%, var(--navy-2) 100%); color: #fff; border-radius: 0 0 22px 22px; }
.ahead .logo { width: 42px; height: 42px; border-radius: 12px; background: #fff; color: var(--brand); display: grid; place-items: center; font: 800 22px/1 var(--f-logo); flex: none; }
.ahead .pill { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .18); color: #fff; }
@media (min-width: 981px) { .ahead { border-radius: 0 0 22px 22px; margin-inline: 0; } }
.ahosp .li { gap: 14px; }
.ahosp .hosp-thumb { width: 52px; height: 52px; border-radius: 12px; }
.ahosp .arow-num { display: grid; justify-items: end; flex: none; min-width: 64px; }
.ahosp .arow-num b { font: 800 17px/1.1 var(--f-display); }
.ahosp .arow-num span { font-size: 11.5px; color: var(--muted); }
@media (max-width: 520px) { .ahosp .arow-num:nth-of-type(2) { display: none; } }

/* ---------- स्टाफ़ लॉगिन (2026-10): कंप्यूटर पर बाएँ परिचय, दाएँ लॉगिन ---------- */
body.login-page #app { max-width: none; padding: 0; }
.slogin { min-height: 100vh; }
.slogin .login-wrap { padding: 8px var(--gutter-r) 24px var(--gutter-l); }
.slogin-l { display: none; }
@media (min-width: 900px) {
  .slogin:has(.slogin-l) { display: grid; grid-template-columns: minmax(380px, 44%) 1fr; }
  .slogin-l { display: flex; flex-direction: column; gap: 14px; padding: 48px; color: #fff; position: relative; overflow: hidden;
    background: linear-gradient(155deg, var(--navy) 0%, var(--brand-3) 70%, var(--brand) 100%); }
  .slogin-l::after { content: ""; position: absolute; right: -120px; bottom: -120px; width: 380px; height: 380px; border-radius: 50%; border: 60px solid rgba(255, 255, 255, .05); }
  .slogin-l h1 { font-size: 36px; line-height: 1.2; margin-top: 40px; }
  .slogin-l p { font-size: 17px; opacity: .8; }
  .slogin .login-wrap { align-self: center; justify-self: center; width: 100%; max-width: 440px; }
}
.slogin-brand { display: flex; align-items: center; gap: 10px; }
.slogin-brand .logo { width: 44px; height: 44px; border-radius: 12px; background: #fff; color: var(--brand); display: grid; place-items: center; font: 800 24px/1 var(--f-logo); }
.slogin-brand b { font: 800 26px/1 var(--f-logo); }
.slogin-roles { display: grid; gap: 10px; margin-top: 20px; position: relative; z-index: 1; }
.slogin-roles > div { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .1); }
.slogin-roles .sicon { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; background: rgba(255, 255, 255, .12); flex: none; }
.slogin-roles b { display: block; font-size: 15.5px; } .slogin-roles small { font-size: 13px; opacity: .72; }

/* ---------- विभाग (लैब / मेडिकल / X-Ray / सोनोग्राफी) 2026-10 ---------- */
.khead { background: linear-gradient(160deg, #4c1d95 0%, var(--violet) 100%); }
.khead.k-pharmacy { background: linear-gradient(160deg, #065f46 0%, #059669 100%); }
.khead.k-xray { background: linear-gradient(160deg, #1e3a8a 0%, #2563eb 100%); }
.khead.k-sono { background: linear-gradient(160deg, #831843 0%, #db2777 100%); }
.khead.k-other { background: linear-gradient(160deg, var(--navy) 0%, var(--navy-2) 100%); }
.kh-ic { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: rgba(255, 255, 255, .15); flex: none; }
.kh-docs { margin-top: 12px; padding-bottom: 2px; }
.kh-docs .chip { background: rgba(255, 255, 255, .12); color: #fff; border-color: rgba(255, 255, 255, .18); }
.kh-docs .chip[aria-pressed="true"] { background: #fff; color: var(--ink); border-color: #fff; }
.kh-docs .chip b { margin-left: 4px; background: var(--accent); color: var(--accent-ink); border-radius: 99px; padding: 0 7px; font-size: 12px; }
.dp-tools { display: flex; gap: 8px; margin-bottom: 12px; }
.dp-tools .dp-date { flex: 0 0 150px; min-height: 46px; }
.ord-card { display: grid; gap: 4px; width: 100%; text-align: left; cursor: pointer; padding: 12px 14px; margin: 0 0 10px; border-left: 4px solid var(--violet); font: inherit; color: inherit; }
.ord-card.s-preparing, .ord-card.s-collected, .ord-card.s-processing { border-left-color: var(--warn); }
.ord-card.s-ready, .ord-card.s-p_ready, .ord-card.s-t_ready { border-left-color: var(--info); }
.ord-card.s-given, .ord-card.s-published, .ord-card.s-scanned { border-left-color: var(--ok); }
.ord-card.s-cancelled { border-left-color: var(--line); opacity: .7; }
.ord-card .ord-st { display: inline-flex; gap: 4px; flex: none; }
.ord-items { display: block; font-size: 14px; font-weight: 600; color: #4c1d95; background: var(--violet-soft); border-radius: 9px; padding: 5px 9px; justify-self: start; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dp-tools .search.small { flex: 1 1 0; min-width: 0; } .dp-tools .dp-date { flex: 0 0 140px; }
.dsk-grid > * { min-width: 0; }
.dsk-k b small { display: inline; }
@media (max-width: 900px) { .dsk-kpis { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; } .dsk-k { padding: 10px; gap: 8px; } .dsk-k .me-ic { width: 36px; height: 36px; } }

/* ---------- पर्ची: अपने-आप विभाग को, मात्रा/कितनी बार के बटन ---------- */
.rx-auto { display: flex; align-items: center; gap: 6px; margin: 4px 0 10px; padding: 8px 12px; border-radius: 10px; background: var(--ok-soft); color: var(--ok); font-size: 14px; font-weight: 600; }
.rx-chiprow { display: grid; gap: 4px; margin-top: 8px; }
.rx-chiprow > span { font-size: 12.5px; font-weight: 700; color: var(--muted); }
.rx-chiprow .chips { gap: 6px; }
.rx-chiprow .chip.sm { padding: 5px 10px; font-size: 14px; }
.rx-chiprow .rx-freqs, .rx-chiprow .rx-doses, .rx-chiprow .rx-whens { margin: 0 !important; flex-wrap: wrap; }
