/* Jodi web — same tokens as the apps (Theme.kt / Theme.swift). */
@font-face { font-family: Plex; src: url(/fonts/plex-regular.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: Plex; src: url(/fonts/plex-medium.woff2) format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: Plex; src: url(/fonts/plex-semibold.woff2) format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: Plex; src: url(/fonts/plex-bold.woff2) format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --teal: #139D9F; --teal-ink: #0B787B; --deep: #0B5F63; --night: #08474B;
  --coral: #FF7A59; --coral-ink: #B8421F; --mint: #E4F5F4; --mint-deep: #C6E9E7;
  --ink: #0E2A2C; --muted: #54696B; --line: #D5E5E5; --paper: #F7FBFB; --white: #fff;
  --danger: #B3261E; --danger-soft: #FCEBE9; --gold: #F2A93B; --ok: #1E9E5A;
  --r-s: 12px; --r: 16px; --r-l: 22px; --r-xl: 30px;
  --shadow: 0 6px 24px rgba(8, 71, 75, .08); --shadow-l: 0 18px 50px rgba(8, 71, 75, .14);
  --ease: cubic-bezier(.2, .8, .2, 1);
  --wrap: 1200px;
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: Plex, system-ui, sans-serif; font-size: 16px; line-height: 1.7; color: var(--ink); background: var(--paper); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
svg[aria-hidden="true"] { width: 20px; height: 20px; flex: none; vertical-align: middle; }
a { color: var(--teal-ink); text-decoration: none; }
a:hover { color: var(--deep); }
h1, h2, h3, h4 { margin: 0; line-height: 1.35; font-weight: 700; }
h1 { font-size: clamp(30px, 4.2vw, 50px); }
h2 { font-size: clamp(24px, 2.8vw, 34px); }
h3 { font-size: 19px; font-weight: 600; }
p { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 2px; border-radius: 6px; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; inset-inline-start: 12px; top: -60px; background: var(--night); color: #fff; padding: 10px 16px; border-radius: 10px; z-index: 100; }
.skip:focus { top: 12px; color: #fff; }
.wrap { width: min(var(--wrap), 100% - 40px); margin-inline: auto; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.ltr { direction: ltr; unicode-bidi: isolate; display: inline-block; }
.stack { display: flex; flex-direction: column; gap: 16px; }
.row { display: flex; align-items: center; gap: 12px; }
.row.wrap-row { flex-wrap: wrap; }
.spread { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.grow { flex: 1; min-width: 0; }
.mt { margin-top: 24px; } .mt-s { margin-top: 12px; } .mt-l { margin-top: 48px; }
.center { text-align: center; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; padding: 0 24px; border-radius: var(--r); border: 0; font-weight: 600; font-size: 16px; cursor: pointer; text-align: center; transition: transform .2s var(--ease), background .2s, box-shadow .2s, opacity .2s; white-space: nowrap; }
.btn:active { transform: scale(.97); }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn-primary { background: var(--teal-ink); color: #fff; box-shadow: 0 8px 20px rgba(11, 120, 123, .22); }
.btn-primary:hover { background: var(--deep); color: #fff; }
.btn-soft { background: var(--mint); color: var(--night); }
.btn-soft:hover { background: var(--mint-deep); color: var(--night); }
.btn-plain { background: transparent; color: var(--teal-ink); }
.btn-plain:hover { background: var(--mint); }
.btn-white { background: #fff; color: var(--night); }
.btn-coral { background: var(--coral); color: var(--ink); }
.btn-danger { background: var(--danger-soft); color: var(--danger); }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 14px; border-radius: var(--r-s); }
.btn-block { width: 100%; }
.btn[disabled], .btn.is-busy { opacity: .5; pointer-events: none; }
.btn.is-busy::after { content: ""; width: 16px; height: 16px; border: 2px solid currentColor; border-top-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; }
.icon-btn { width: 44px; height: 44px; display: inline-grid; place-items: center; border-radius: 50%; border: 0; background: transparent; color: var(--ink); cursor: pointer; position: relative; transition: background .2s; }
.icon-btn:hover { background: var(--mint); }
.icon-btn svg { width: 22px; height: 22px; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- forms ---------- */
.field { display: flex; flex-direction: column; gap: 6px; }
.field > label, .label { font-weight: 600; font-size: 14px; }
.input, .select, .textarea { width: 100%; min-height: 52px; padding: 12px 16px; border-radius: var(--r); border: 1px solid var(--line); background: #fff; transition: border-color .2s, box-shadow .2s; }
.textarea { min-height: 120px; resize: vertical; line-height: 1.7; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(19, 157, 159, .15); }
.input.ltr-in { direction: ltr; text-align: right; }
.input-icon { position: relative; }
.input-icon svg { position: absolute; inset-inline-start: 14px; top: 50%; translate: 0 -50%; width: 20px; height: 20px; color: var(--muted); pointer-events: none; }
.input-icon .input { padding-inline-start: 46px; }
.field-error, .field-validation-error { color: var(--danger); font-size: 13px; }
.input-validation-error { border-color: var(--danger) !important; }
.hint { color: var(--muted); font-size: 13px; }
.check { display: flex; align-items: center; gap: 10px; cursor: pointer; user-select: none; }
.check input { width: 20px; height: 20px; accent-color: var(--teal-ink); }
.switch { appearance: none; width: 48px; height: 28px; border-radius: 99px; background: var(--line); position: relative; cursor: pointer; transition: background .2s; flex: none; }
.switch::after { content: ""; position: absolute; top: 3px; inset-inline-start: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.2); transition: inset-inline-start .25s var(--ease); }
.switch:checked { background: var(--teal-ink); }
.switch:checked::after { inset-inline-start: 23px; }
.choices { display: flex; flex-wrap: wrap; gap: 8px; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.choice span { display: inline-flex; align-items: center; gap: 6px; min-height: 42px; padding: 0 16px; border-radius: 99px; border: 1px solid var(--line); background: #fff; font-weight: 500; font-size: 14px; transition: all .2s; }
.choice input:checked + span { background: var(--teal-ink); border-color: var(--teal-ink); color: #fff; }
.choice input:focus-visible + span { outline: 3px solid var(--teal); outline-offset: 2px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.form-grid .full { grid-column: 1 / -1; }
.notice { display: flex; gap: 10px; align-items: flex-start; padding: 14px 16px; border-radius: var(--r); background: var(--mint); color: var(--night); font-size: 15px; }
.notice.danger { background: var(--danger-soft); color: var(--danger); }
.notice svg { width: 20px; height: 20px; flex: none; margin-top: 3px; }
.validation-summary-valid { display: none; }
.validation-summary-errors ul { margin: 0; padding: 0; list-style: none; }

/* ---------- surfaces ---------- */
.card { background: #fff; border-radius: var(--r-l); box-shadow: var(--shadow); }
.card-pad { padding: 24px; }
.press { transition: transform .25s var(--ease), box-shadow .25s; }
.press:hover { transform: translateY(-4px); box-shadow: var(--shadow-l); }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 12px; border-radius: 99px; font-size: 13px; font-weight: 600; background: var(--mint); color: var(--night); white-space: nowrap; }
.pill svg { width: 14px; height: 14px; }
.pill.coral { background: var(--coral); color: var(--ink); }
.pill.ok { background: #E3F5EC; color: #136B3E; }
.pill.warn { background: #FFF2DC; color: #8A5300; }
.pill.live { background: var(--teal-ink); color: #fff; }
.pill.done { background: var(--mint); color: var(--night); }
.pill.off { background: #EEF1F1; color: var(--muted); }
.avatar { border-radius: 50%; object-fit: cover; background: var(--mint-deep); flex: none; display: grid; place-items: center; color: var(--deep); font-weight: 700; overflow: hidden; }
.stars { display: inline-flex; align-items: center; gap: 4px; font-weight: 600; font-size: 14px; }
.stars svg { width: 16px; height: 16px; color: var(--gold); }
.price { display: inline-flex; align-items: baseline; gap: 8px; }
.price b { color: var(--teal-ink); font-size: 18px; }
.price s { color: var(--muted); font-size: 14px; }
.icon-text { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 14px; }
.icon-text svg { width: 18px; height: 18px; flex: none; }
.divider { height: 1px; background: var(--line); border: 0; margin: 20px 0; }
.dot-live { width: 9px; height: 9px; border-radius: 50%; background: var(--ok); display: inline-block; animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .35; } }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(247, 251, 251, .82); backdrop-filter: saturate(1.6) blur(14px); -webkit-backdrop-filter: saturate(1.6) blur(14px); border-bottom: 1px solid transparent; transition: border-color .3s, box-shadow .3s; }
.site-header.scrolled { border-color: var(--line); box-shadow: 0 4px 24px rgba(8, 71, 75, .06); }
.site-header .wrap { display: flex; align-items: center; gap: 24px; height: 76px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 700; font-size: 24px; }
.brand img { width: 40px; height: 40px; }
.nav { display: flex; gap: 4px; margin-inline-start: 12px; }
.nav a { padding: 8px 14px; border-radius: 12px; color: var(--ink); font-weight: 500; transition: background .2s, color .2s; }
.nav a:hover, .nav a.on { background: var(--mint); color: var(--teal-ink); }
.header-end { margin-inline-start: auto; display: flex; align-items: center; gap: 8px; }
.badge { position: absolute; top: 4px; inset-inline-end: 2px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 99px; background: var(--coral); color: var(--ink); font-size: 11px; font-weight: 700; display: grid; place-items: center; line-height: 1; }
.badge[data-n="0"] { display: none; }
.menu { position: relative; }
.menu > button { display: flex; align-items: center; gap: 10px; border: 0; background: transparent; cursor: pointer; padding: 4px 6px; border-radius: 99px; }
.menu > button:hover { background: var(--mint); }
.menu-list { position: absolute; inset-inline-end: 0; top: calc(100% + 8px); min-width: 230px; background: #fff; border-radius: var(--r); box-shadow: var(--shadow-l); padding: 8px; opacity: 0; visibility: hidden; translate: 0 -6px; transition: all .2s var(--ease); }
.menu.open .menu-list { opacity: 1; visibility: visible; translate: 0 0; }
.menu-list a, .menu-list button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 12px; border-radius: 10px; color: var(--ink); border: 0; background: none; cursor: pointer; text-align: start; font-size: 15px; }
.menu-list a:hover, .menu-list button:hover { background: var(--mint); }
.menu-list svg { width: 18px; height: 18px; color: var(--teal-ink); }
.burger { display: none; }
.drawer { position: fixed; inset: 0; z-index: 60; display: none; }
.drawer.open { display: block; }
.drawer-veil { position: absolute; inset: 0; background: rgba(8, 71, 75, .35); animation: fade .25s; }
.drawer-panel { position: absolute; inset-block: 0; inset-inline-start: 0; width: min(320px, 85vw); background: #fff; padding: 24px; display: flex; flex-direction: column; gap: 6px; animation: slide-in .3s var(--ease); }
.drawer-panel a { padding: 12px 14px; border-radius: 12px; color: var(--ink); font-weight: 500; }
.drawer-panel a:hover { background: var(--mint); }
@keyframes fade { from { opacity: 0; } }
@keyframes slide-in { from { transform: translateX(100%); } }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; background: url(/img/hero.webp) center / cover no-repeat;}
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(270deg, rgba(247,251,251,.98) 0%, rgba(247,251,251,.92) 38%, rgba(247,251,251,.35) 62%, rgba(247,251,251,0) 80%); }
.hero .wrap { position: relative; z-index: 1; padding: 90px 0 120px; }
.hero-text { max-width: 560px; }
.hero-text .pill { margin-bottom: 18px; }
.hero h1 span { color: var(--teal-ink); }
.hero-lead { font-size: 19px; color: var(--muted); margin-top: 16px; }
.search-box { margin-top: 32px; display: grid; grid-template-columns: 1.6fr 1fr auto; gap: 8px; padding: 8px; background: #fff; border-radius: var(--r-l); box-shadow: var(--shadow-l); }
.search-box .input, .search-box .select { border: 0; min-height: 54px; background: var(--paper); }
.hero-stats { display: flex; gap: 32px; margin-top: 36px; }
.hero-stats b { display: block; font-size: 26px; color: var(--deep); }
.hero-stats span { color: var(--muted); font-size: 14px; }
.float-card { position: absolute; z-index: 2; background: #fff; border-radius: var(--r); box-shadow: var(--shadow-l); padding: 12px 16px; display: flex; gap: 12px; align-items: center; animation: float 6s ease-in-out infinite; }
.float-card small { display: block; color: var(--muted); font-size: 12px; }
@keyframes float { 50% { translate: 0 -10px; } }

/* ---------- sections ---------- */
.section { padding: 80px 0; }
.section.tight { padding: 48px 0; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 32px; flex-wrap: wrap; }
.section-head p { color: var(--muted); margin-top: 6px; }
.eyebrow { color: var(--teal-ink); font-weight: 600; font-size: 14px; letter-spacing: .02em; display: block; margin-bottom: 6px; }
.band { background: #fff; }
.band-dark { background: linear-gradient(135deg, var(--deep), var(--night)); color: #fff; }
.band-dark .muted, .band-dark p { color: rgba(255, 255, 255, .82); }

.grid { display: grid; gap: 20px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.g6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }

.service { padding: 24px; display: flex; flex-direction: column; gap: 10px; color: var(--ink); }
.service img { width: 72px; height: 72px; }
.service p { color: var(--muted); font-size: 15px; }
.spec { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 22px 12px; text-align: center; color: var(--ink); }
.spec img { width: 76px; height: 76px; transition: transform .35s var(--ease); }
.spec:hover img { transform: scale(1.08) rotate(-3deg); }
.spec b { font-weight: 600; }
.spec span { color: var(--muted); font-size: 13px; }

.doc-card { display: flex; flex-direction: column; overflow: hidden; color: var(--ink); }
.doc-card .photo { position: relative; aspect-ratio: 4 / 3.4; background: var(--mint-deep); overflow: hidden; }
.doc-card .photo img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform .5s var(--ease); }
.doc-card:hover .photo img { transform: scale(1.05); }
.doc-card .photo .pill { position: absolute; top: 12px; inset-inline-start: 12px; }
.doc-card .photo .online { position: absolute; top: 12px; inset-inline-start: auto; inset-inline-end: 12px; background: rgba(255,255,255,.92); }
.doc-card .body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.doc-card .foot { margin-top: auto; padding-top: 10px; display: flex; justify-content: space-between; align-items: center; gap: 8px; }

.doc-row { display: grid; grid-template-columns: 132px 1fr auto; gap: 20px; padding: 18px; align-items: center; color: var(--ink); }
.doc-row .photo { width: 132px; height: 132px; border-radius: var(--r); overflow: hidden; background: var(--mint-deep); position: relative; }
.doc-row .photo img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.doc-row .side { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; min-width: 180px; }
.heart { color: var(--muted); }
.heart.on { color: #E5484D; }
.heart.on svg { fill: currentColor; }

.offer { position: relative; overflow: hidden; border-radius: var(--r-l); min-height: 210px; padding: 26px; color: #fff; display: flex; flex-direction: column; justify-content: flex-end; background: linear-gradient(135deg, var(--teal-ink), var(--night)); }
.offer img { position: absolute; inset-block: 0; inset-inline-end: 0; height: 100%; width: 55%; object-fit: cover; opacity: .95; mask-image: linear-gradient(to left, #000 40%, transparent); -webkit-mask-image: linear-gradient(to left, #000 40%, transparent); }
.offer > * { position: relative; max-width: 60%; }
.offer .pill { align-self: flex-start; margin-bottom: 10px; }
.offer p { color: rgba(255,255,255,.85); font-size: 14px; }

.post { overflow: hidden; display: flex; flex-direction: column; color: var(--ink); }
.post .cover { aspect-ratio: 16 / 10; overflow: hidden; background: var(--mint); }
.post .cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.post:hover .cover img { transform: scale(1.05); }
.post .body { padding: 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.post .body p { color: var(--muted); font-size: 15px; }
.post .meta { margin-top: auto; display: flex; gap: 10px; align-items: center; color: var(--muted); font-size: 13px; }

.steps-how { counter-reset: s; }
.step-how { padding: 28px; position: relative; }
.step-how::before { counter-increment: s; content: counter(s); position: absolute; top: 22px; inset-inline-end: 24px; font-size: 54px; font-weight: 700; color: var(--mint-deep); line-height: 1; }
.step-how h3 { margin: 14px 0 6px; }
.step-how p { color: var(--muted); }
.step-icon { width: 56px; height: 56px; border-radius: 18px; background: var(--mint); color: var(--teal-ink); display: grid; place-items: center; }
.step-icon svg { width: 28px; height: 28px; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split img.rounded { border-radius: var(--r-xl); box-shadow: var(--shadow-l); }
.ticks { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 12px; }
.ticks li { display: flex; gap: 10px; align-items: flex-start; }
.ticks li::before { content: ""; width: 22px; height: 22px; flex: none; margin-top: 3px; border-radius: 50%; background: var(--mint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230B787B' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12l4 4 8-8'/%3E%3C/svg%3E") center / 14px no-repeat; }
.band-dark .ticks li::before { background-color: rgba(255,255,255,.15); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12l4 4 8-8'/%3E%3C/svg%3E"); }

.app-band { border-radius: var(--r-xl); background: linear-gradient(135deg, var(--teal), var(--deep)); color: #fff; display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; overflow: hidden; }
.app-band .txt { padding: 48px; }
.app-band p { color: rgba(255,255,255,.85); margin-top: 10px; }
.store { display: inline-flex; align-items: center; gap: 10px; background: #fff; color: var(--ink); padding: 10px 18px; border-radius: 14px; font-weight: 600; }
.store small { display: block; font-size: 11px; color: var(--muted); font-weight: 500; line-height: 1.2; }
.store svg { width: 26px; height: 26px; }

/* ---------- footer ---------- */
.site-footer { background: var(--night); color: rgba(255,255,255,.78); padding: 64px 0 28px; margin-top: 40px; }
.site-footer .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.site-footer h4 { color: #fff; font-size: 16px; margin-bottom: 14px; }
.site-footer a { color: rgba(255,255,255,.78); display: block; padding: 4px 0; }
.site-footer a:hover { color: #fff; }
.site-footer .brand { color: #fff; }
.site-footer .legal { border-top: 1px solid rgba(255,255,255,.12); margin-top: 40px; padding-top: 20px; font-size: 14px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* ---------- page heads, filters, lists ---------- */
.page-head { background: linear-gradient(135deg, var(--mint), #fff); padding: 44px 0 36px; }
.page-head p { color: var(--muted); margin-top: 8px; }
.crumbs { display: flex; gap: 8px; color: var(--muted); font-size: 14px; margin-bottom: 10px; flex-wrap: wrap; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--teal-ink); }
.layout-side { display: grid; grid-template-columns: 290px 1fr; gap: 28px; align-items: start; }
.filters { position: sticky; top: 96px; padding: 22px; display: flex; flex-direction: column; gap: 18px; }
.filters h3 { font-size: 17px; }
.toolbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.tabs { display: flex; gap: 6px; background: #fff; padding: 6px; border-radius: var(--r); box-shadow: var(--shadow); width: fit-content; flex-wrap: wrap; }
.tabs a, .tabs button { padding: 8px 18px; border-radius: 12px; color: var(--muted); font-weight: 600; border: 0; background: none; cursor: pointer; font-size: 15px; }
.tabs a.on, .tabs button.on { background: var(--teal-ink); color: #fff; }
.pager { display: flex; gap: 6px; justify-content: center; margin-top: 32px; flex-wrap: wrap; }
.pager a, .pager span { min-width: 42px; height: 42px; display: grid; place-items: center; padding: 0 12px; border-radius: 12px; background: #fff; box-shadow: var(--shadow); color: var(--ink); font-weight: 600; }
.pager .on { background: var(--teal-ink); color: #fff; }
.empty { text-align: center; padding: 48px 24px; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.empty img { width: min(240px, 70%); margin-bottom: 8px; }
.empty p { color: var(--muted); max-width: 420px; }

/* ---------- doctor page ---------- */
.doc-hero { background: linear-gradient(135deg, var(--deep), var(--night)); color: #fff; padding: 40px 0 90px; }
.doc-hero .wrap { display: grid; grid-template-columns: 200px 1fr auto; gap: 28px; align-items: center; }
.doc-hero .photo { width: 200px; height: 200px; border-radius: var(--r-xl); overflow: hidden; border: 4px solid rgba(255,255,255,.25); background: var(--mint-deep); }
.doc-hero .photo img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.doc-hero .crumbs, .doc-hero .crumbs a { color: rgba(255,255,255,.7); }
.doc-hero p { color: rgba(255,255,255,.85); }
.doc-hero .stats { display: flex; gap: 12px; margin-top: 18px; flex-wrap: wrap; }
.doc-hero .stats div { background: rgba(255,255,255,.1); padding: 10px 16px; border-radius: 14px; }
.doc-hero .stats b { display: block; font-size: 20px; color: #fff; }
.doc-hero .stats span { font-size: 13px; color: rgba(255,255,255,.75); }
.doc-body { margin-top: -60px; position: relative; display: grid; grid-template-columns: 1fr 400px; gap: 24px; align-items: start; }
.book-box { position: sticky; top: 96px; padding: 22px; display: flex; flex-direction: column; gap: 16px; }
.day-tabs { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: thin; scroll-snap-type: x mandatory; }
.day-tab { flex: none; scroll-snap-align: start; width: 72px; padding: 10px 0; border-radius: 14px; border: 1px solid var(--line); background: #fff; display: flex; flex-direction: column; align-items: center; cursor: pointer; transition: all .2s; }
.day-tab b { font-size: 18px; line-height: 1.2; }
.day-tab span, .day-tab small { font-size: 12px; color: var(--muted); }
.day-tab.on { background: var(--teal-ink); border-color: var(--teal-ink); color: #fff; }
.day-tab.on span, .day-tab.on small { color: rgba(255,255,255,.8); }
.day-tab[disabled] { opacity: .45; cursor: default; }
.slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 8px; }
.slot { min-height: 44px; border-radius: 12px; border: 1px solid var(--line); background: #fff; cursor: pointer; font-weight: 600; font-size: 14px; transition: all .2s; }
.slot:hover { border-color: var(--teal); color: var(--teal-ink); }
.slot.on { background: var(--teal-ink); border-color: var(--teal-ink); color: #fff; }
.slot[disabled] { text-decoration: line-through; color: #B5C4C4; background: #F3F7F7; cursor: not-allowed; }
.fee-row { display: flex; justify-content: space-between; align-items: center; padding: 12px 0; border-bottom: 1px dashed var(--line); }
.fee-row:last-child { border: 0; }
.rate-bars { display: grid; gap: 8px; }
.rate-bar { display: grid; grid-template-columns: 30px 1fr 30px; gap: 10px; align-items: center; font-size: 14px; }
.rate-bar i { height: 8px; border-radius: 9px; background: var(--mint); overflow: hidden; display: block; }
.rate-bar i b { display: block; height: 100%; background: var(--gold); border-radius: 9px; }
.review { padding: 16px 0; border-bottom: 1px solid var(--line); }
.review:last-child { border: 0; }
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.gallery img { border-radius: var(--r); aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.schedule-list { display: grid; gap: 8px; }
.schedule-list div { display: flex; justify-content: space-between; padding: 10px 14px; background: var(--paper); border-radius: 12px; font-size: 15px; }
.map { width: 100%; height: 240px; border: 0; border-radius: var(--r); }
.instant { display: flex; align-items: center; gap: 14px; padding: 18px; border-radius: var(--r-l); background: linear-gradient(135deg, var(--teal), var(--deep)); color: #fff; }
.instant p { color: rgba(255,255,255,.85); font-size: 14px; }
.instant .icon { width: 46px; height: 46px; border-radius: 50%; background: rgba(255,255,255,.18); display: grid; place-items: center; flex: none; }
.instant svg { width: 22px; height: 22px; }

/* ---------- article ---------- */
.article { max-width: 760px; margin-inline: auto; }
.article-cover { border-radius: var(--r-xl); overflow: hidden; aspect-ratio: 16 / 8; margin: 28px 0; box-shadow: var(--shadow-l); }
.article-cover img { width: 100%; height: 100%; object-fit: cover; }
.prose { font-size: 18px; line-height: 2; }
.prose h2 { font-size: 24px; margin: 32px 0 10px; color: var(--deep); }
.prose p { margin: 0 0 16px; }
.prose ul { margin: 0 0 16px; padding-inline-start: 22px; }
.prose li { margin-bottom: 6px; }
.prose li::marker { color: var(--teal); }
.author { display: flex; gap: 14px; align-items: center; padding: 18px; }

/* ---------- auth ---------- */
.auth { min-height: calc(100vh - 76px); display: grid; grid-template-columns: 1fr 1fr; }
.auth-art { position: relative; background: url(/img/auth_side.webp) center / cover no-repeat; }
.auth-art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8,71,75,0) 40%, rgba(8,71,75,.85)); }
.auth-art .quote { position: absolute; z-index: 1; bottom: 40px; inset-inline: 40px; color: #fff; font-size: 22px; font-weight: 600; }
.auth-form { display: flex; align-items: center; justify-content: center; padding: 48px 24px; }
.auth-form .box { width: min(460px, 100%); display: flex; flex-direction: column; gap: 18px; }
.otp { display: flex; gap: 10px; direction: ltr; justify-content: center; }
.otp input { width: 54px; height: 62px; text-align: center; font-size: 26px; font-weight: 700; border-radius: var(--r); border: 1px solid var(--line); background: #fff; }
.otp input:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(19,157,159,.15); }
.rules { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 13px; color: var(--muted); }
.rules span.ok { color: var(--ok); }
.dev-code { background: #FFF6E5; color: #8A5300; padding: 10px 14px; border-radius: 12px; font-size: 14px; }
.pw { position: relative; }
.pw .input { padding-inline-end: 52px; }
.pw button { position: absolute; inset-inline-end: 4px; top: 50%; translate: 0 -50%; }

/* ---------- portal ---------- */
.portal { display: grid; grid-template-columns: 260px 1fr; gap: 28px; padding: 32px 0 60px; align-items: start; }
.side-nav { position: sticky; top: 96px; padding: 14px; display: flex; flex-direction: column; gap: 2px; }
.side-nav .who { display: flex; gap: 12px; align-items: center; padding: 10px 10px 16px; border-bottom: 1px solid var(--line); margin-bottom: 8px; }
.side-nav a { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 12px; color: var(--ink); font-weight: 500; position: relative; }
.side-nav a svg { width: 20px; height: 20px; color: var(--muted); }
.side-nav a:hover { background: var(--paper); }
.side-nav a.on { background: var(--mint); color: var(--teal-ink); }
.side-nav a.on svg { color: var(--teal-ink); }
.side-nav .count { margin-inline-start: auto; background: var(--coral); color: var(--ink); border-radius: 99px; font-size: 12px; font-weight: 700; padding: 0 8px; }
.side-nav .count[data-n="0"] { display: none; }
.portal-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.stat { padding: 20px; display: flex; flex-direction: column; gap: 6px; }
.stat .k { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 14px; }
.stat .k svg { width: 20px; height: 20px; color: var(--teal-ink); }
.stat b { font-size: 30px; line-height: 1.2; }
.list { display: flex; flex-direction: column; }
.list-item { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-bottom: 1px solid var(--line); color: var(--ink); transition: background .2s; }
.list-item:last-child { border-bottom: 0; }
a.list-item:hover { background: var(--paper); }
.visit-card { padding: 18px; display: grid; grid-template-columns: auto 1fr auto; gap: 16px; align-items: center; color: var(--ink); }
.table-wrap { overflow-x: auto; }
table.table { width: 100%; border-collapse: collapse; font-size: 15px; }
.table th { text-align: start; color: var(--muted); font-weight: 600; font-size: 13px; padding: 12px 16px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table td { padding: 14px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tr.click { cursor: pointer; }
.table tr.click:hover td { background: var(--paper); }
.timeline { display: flex; justify-content: space-between; position: relative; margin: 8px 0; }
.timeline::before { content: ""; position: absolute; top: 15px; inset-inline: 30px; height: 3px; background: var(--line); }
.timeline .st { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); z-index: 1; flex: 1; }
.timeline .st i { width: 32px; height: 32px; border-radius: 50%; background: #fff; border: 3px solid var(--line); display: grid; place-items: center; }
.timeline .st.done i { background: var(--teal-ink); border-color: var(--teal-ink); color: #fff; }
.timeline .st.done { color: var(--ink); font-weight: 600; }
.timeline .st i svg { width: 16px; height: 16px; }
.queue-card { padding: 24px; border-radius: var(--r-l); background: linear-gradient(135deg, var(--teal), var(--deep)); color: #fff; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.queue-card b { font-size: 46px; line-height: 1; }
.kv { display: grid; gap: 10px; }
.kv div { display: flex; justify-content: space-between; gap: 12px; }
.kv span { color: var(--muted); }
.week-chart { display: flex; align-items: flex-end; gap: 10px; height: 160px; padding-top: 24px; }
.week-chart .bar { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; height: 100%; justify-content: flex-end; font-size: 12px; color: var(--muted); }
.week-chart .bar i { width: 100%; max-width: 42px; background: var(--teal); border-radius: 8px 8px 4px 4px; min-height: 4px; transform-origin: bottom; animation: grow .8s var(--ease) both; }
.week-chart .bar.today { color: var(--ink); font-weight: 700; }
.week-chart .bar b { font-size: 12px; color: var(--ink); }
@keyframes grow { from { transform: scaleY(0); } }
.sched-row { display: grid; grid-template-columns: 120px 1fr 1fr 150px auto; gap: 10px; align-items: center; }

/* ---------- chat ---------- */
.chat { display: grid; grid-template-columns: 340px 1fr; height: calc(100vh - 76px - 64px); min-height: 520px; overflow: hidden; }
.chat-list { border-inline-end: 1px solid var(--line); overflow-y: auto; }
.chat-list .list-item.on { background: var(--mint); }
.chat-main { display: flex; flex-direction: column; min-width: 0; background: var(--paper); }
.chat-head { display: flex; align-items: center; gap: 12px; padding: 12px 18px; background: #fff; border-bottom: 1px solid var(--line); }
.chat-msgs { flex: 1; overflow-y: auto; padding: 18px; display: flex; flex-direction: column; gap: 4px; }
.msg { max-width: min(70%, 520px); display: flex; flex-direction: column; }
.msg.new { animation: pop .3s var(--ease); }
.msg.mine { align-self: flex-start; align-items: flex-start; }
.msg.theirs { align-self: flex-end; align-items: flex-end; }
.msg .b { padding: 10px 14px; border-radius: 20px; background: #fff; white-space: pre-wrap; overflow-wrap: anywhere; }
.msg.mine .b { background: var(--teal-ink); color: #fff; border-start-start-radius: 6px; }
.msg.theirs .b { border-start-end-radius: 6px; }
.msg.grouped { margin-top: -2px; }
.msg.grouped .b { border-radius: 20px; }
.msg .b img { border-radius: 14px; max-width: 260px; max-height: 280px; object-fit: cover; cursor: zoom-in; }
.msg .meta { font-size: 12px; color: var(--muted); padding: 2px 6px; display: flex; gap: 4px; align-items: center; }
.msg .meta svg { width: 15px; height: 15px; }
.msg .meta .read { color: var(--teal); }
.msg.failed .b { opacity: .7; cursor: pointer; }
.msg.failed .meta { color: var(--danger); }
.day-chip { align-self: center; background: rgba(198,233,231,.6); color: var(--night); font-size: 12px; padding: 3px 12px; border-radius: 99px; margin: 10px 0; }
.chat-note { align-self: stretch; text-align: center; background: var(--mint); color: var(--night); font-size: 13px; padding: 10px; border-radius: 14px; margin-bottom: 8px; }
.typing { align-self: flex-end; background: #fff; padding: 12px 16px; border-radius: 18px; display: none; gap: 5px; }
.typing.on { display: flex; }
.typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--teal); opacity: .6; animation: bounce 1s infinite; }
.typing i:nth-child(2) { animation-delay: .15s; } .typing i:nth-child(3) { animation-delay: .3s; }
@keyframes bounce { 30% { transform: translateY(-4px); opacity: 1; } }
@keyframes pop { from { transform: scale(.9); opacity: 0; } }
.composer { display: flex; align-items: flex-end; gap: 8px; padding: 10px 14px; background: #fff; border-top: 1px solid var(--line); }
.composer textarea { flex: 1; resize: none; min-height: 46px; max-height: 140px; border-radius: 23px; border: 0; background: var(--paper); padding: 11px 18px; line-height: 1.5; }
.composer textarea:focus { outline: 2px solid var(--teal); }
.send { width: 46px; height: 46px; border-radius: 50%; border: 0; background: var(--teal-ink); color: #fff; display: grid; place-items: center; cursor: pointer; transition: transform .2s, background .2s; }
.send:disabled { background: var(--mint-deep); cursor: default; transform: scale(.9); }
.send svg { width: 20px; height: 20px; }

/* ---------- call ---------- */
.call { position: fixed; inset: 0; z-index: 80; background: linear-gradient(180deg, var(--deep), var(--night)); color: #fff; display: flex; flex-direction: column; }
.call video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.call .remote { opacity: 0; transition: opacity .4s; }
.call.has-video .remote { opacity: 1; }
.call .self { position: absolute; top: 90px; inset-inline-end: 20px; width: 180px; height: 240px; border-radius: 18px; overflow: hidden; border: 2px solid rgba(255,255,255,.8); z-index: 3; background: #000; cursor: grab; }
.call .self video {}
.call .shade-top, .call .shade-bottom { position: absolute; inset-inline: 0; z-index: 1; pointer-events: none; }
.call .shade-top { top: 0; height: 170px; background: linear-gradient(rgba(0,0,0,.45), transparent); }
.call .shade-bottom { bottom: 0; height: 220px; background: linear-gradient(transparent, rgba(0,0,0,.55)); }
.call .top { position: relative; z-index: 2; text-align: center; padding-top: 28px; }
.call .top p { color: rgba(255,255,255,.85); display: flex; gap: 6px; justify-content: center; align-items: center; }
.call .waiting { position: absolute; inset: 0; display: grid; place-items: center; z-index: 1; transition: opacity .4s; }
.call.has-video .waiting { opacity: 0; }
.call .ring { position: absolute; width: 150px; height: 150px; border-radius: 50%; border: 2px solid var(--teal); animation: ring 2.4s linear infinite; }
.call .ring:nth-child(2) { animation-delay: .8s; } .call .ring:nth-child(3) { animation-delay: 1.6s; }
.call.live .ring { display: none; }
@keyframes ring { from { transform: scale(1); opacity: .6; } to { transform: scale(2.1); opacity: 0; } }
.call .peer { width: 150px; height: 150px; border: 4px solid rgba(255,255,255,.9); font-size: 48px; }
.call .controls { position: absolute; bottom: 36px; inset-inline: 0; display: flex; justify-content: center; gap: 18px; z-index: 2; }
.call .controls button { width: 60px; height: 60px; border-radius: 50%; border: 0; background: rgba(255,255,255,.18); color: #fff; display: grid; place-items: center; cursor: pointer; transition: background .2s, transform .2s; }
.call .controls button:hover { transform: scale(1.06); }
.call .controls button.on { background: #fff; color: var(--night); }
.call .controls button svg { width: 26px; height: 26px; }
.call .controls .end { background: #E5484D; width: 70px; height: 70px; }
.call .controls .end svg { transform: rotate(135deg); }
.call .closed { margin: auto; text-align: center; z-index: 2; max-width: 420px; padding: 24px; display: flex; flex-direction: column; gap: 14px; align-items: center; }
.call .closed img { width: 260px; }

/* ---------- toast, dialog, misc ---------- */
.toasts { position: fixed; top: 88px; inset-inline-end: 20px; z-index: 90; display: flex; flex-direction: column; gap: 10px; width: min(380px, calc(100% - 40px)); }
.toast { display: flex; gap: 12px; align-items: center; padding: 14px; background: #fff; border-radius: 18px; box-shadow: var(--shadow-l); color: var(--ink); animation: toast-in .45s var(--ease); cursor: pointer; }
.toast.out { animation: toast-out .3s forwards; }
.toast .ic { width: 42px; height: 42px; border-radius: 50%; background: var(--mint); display: grid; place-items: center; color: var(--teal-ink); flex: none; overflow: hidden; }
.toast .ic svg { width: 20px; height: 20px; }
.toast b { display: block; font-size: 15px; }
.toast span { color: var(--muted); font-size: 13px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.toast.flash-ok .ic { background: #E3F5EC; color: var(--ok); }
.toast.flash-bad .ic { background: var(--danger-soft); color: var(--danger); }
@keyframes toast-in { from { transform: translateY(-16px) scale(.96); opacity: 0; } }
@keyframes toast-out { to { transform: translateY(-10px); opacity: 0; } }
dialog.modal { border: 0; padding: 0; border-radius: var(--r-xl); width: min(520px, calc(100% - 32px)); box-shadow: var(--shadow-l); color: var(--ink); }
dialog.modal::backdrop { background: rgba(8, 71, 75, .4); backdrop-filter: blur(2px); }
dialog.modal[open] { animation: pop .3s var(--ease); }
.modal-body { padding: 26px; display: flex; flex-direction: column; gap: 16px; }
.incoming { position: fixed; bottom: 20px; inset-inline-end: 20px; z-index: 85; width: min(420px, calc(100% - 40px)); padding: 20px; border-radius: 26px; background: linear-gradient(180deg, var(--deep), var(--night)); color: #fff; box-shadow: var(--shadow-l); display: none; flex-direction: column; gap: 14px; animation: toast-in .45s var(--ease); }
.incoming.on { display: flex; }
.incoming .cmp { background: rgba(255,255,255,.1); padding: 12px; border-radius: 14px; font-size: 15px; }
.incoming .lbl { color: var(--coral); font-weight: 600; font-size: 14px; }
.skeleton { background: linear-gradient(90deg, var(--mint) 25%, #f1faf9 50%, var(--mint) 75%); background-size: 200% 100%; animation: shimmer 1.3s infinite; border-radius: var(--r); }
@keyframes shimmer { to { background-position: -200% 0; } }
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.ring-timer { position: relative; width: 210px; height: 210px; margin: 0 auto; }
.ring-timer svg { position: absolute; inset: 0; transform: rotate(-90deg); }
.ring-timer circle { fill: none; stroke-width: 12; }
.ring-timer .bg { stroke: var(--mint); }
.ring-timer .fg { stroke: var(--teal); stroke-linecap: round; transition: stroke-dashoffset 1s linear; }
.ring-timer .avatar { position: absolute; inset: 30px; width: auto; height: auto; animation: breathe 2.8s ease-in-out infinite; }
@keyframes breathe { 50% { transform: scale(1.04); } }
.err-page { text-align: center; padding: 80px 20px; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.err-page img { width: min(360px, 80%); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

@media (max-width: 1080px) {
  .g4, .g6 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .doc-body { grid-template-columns: 1fr; }
  .book-box { position: static; }
  .site-footer .cols { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .nav, .header-end .hide-m { display: none; }
  .burger { display: inline-grid; }
  .layout-side, .portal, .split, .auth, .app-band { grid-template-columns: 1fr; }
  .auth-art { display: none; }
  .filters, .side-nav { position: static; }
  .side-nav { flex-direction: row; overflow-x: auto; padding: 8px; }
  .side-nav .who { display: none; }
  .side-nav a { white-space: nowrap; }
  .g3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .doc-hero .wrap { grid-template-columns: 1fr; text-align: center; justify-items: center; }
  .doc-hero .stats { justify-content: center; }
  .chat { grid-template-columns: 1fr; height: calc(100vh - 76px - 32px); }
  .chat.has-open .chat-list { display: none; }
  .chat:not(.has-open) .chat-main { display: none; }
  .hero::after { background: linear-gradient(180deg, rgba(247,251,251,.75), rgba(247,251,251,.98) 55%); }
  .float-card { display: none; }
  .app-band .art { display: none; }
}
@media (max-width: 640px) {
  .g2, .g3, .g4, .form-grid { grid-template-columns: 1fr; }
  .g6 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .search-box { grid-template-columns: 1fr; }
  .doc-row { grid-template-columns: 90px 1fr; }
  .doc-row .photo { width: 90px; height: 90px; }
  .doc-row .side { grid-column: 1 / -1; flex-direction: row; justify-content: space-between; align-items: center; min-width: 0; }
  .section { padding: 56px 0; }
  .hero .wrap { padding: 56px 0 72px; }
  .hero-stats { gap: 20px; }
  .offer > * { max-width: 75%; }
  .visit-card { grid-template-columns: auto 1fr; }
  .visit-card > :last-child { grid-column: 1 / -1; }
  .sched-row { grid-template-columns: 1fr 1fr; }
  .site-footer .cols { grid-template-columns: 1fr; }
  .call .self { width: 110px; height: 150px; top: 80px; }
  .msg { max-width: 85%; }
}
.mir {}
.switch.is-on { background: var(--teal-ink); }
.switch.is-on::after { inset-inline-start: 23px; }
button.switch { border: 0; padding: 0; }
.filters details { display: flex; flex-direction: column; gap: 18px; }
.filters details > :not(summary) { margin-top: 18px; }
.filters summary { list-style: none; cursor: pointer; }
.filters summary::-webkit-details-marker { display: none; }
@media (min-width: 901px) { .filters summary { pointer-events: none; } .filters summary a { pointer-events: auto; } }
.price b, .price s { white-space: nowrap; }
.filters:has(details:not([open])) { gap: 0; }
/* Grid children may shrink below their content (scrolling strips, long words). */
.grid > *, .doc-body > *, .layout-side > *, .portal > *, .split > *, .doc-hero .wrap > * { min-width: 0; }
/* Fixed boxes: both insets plus a max width, so they never widen a phone page. */
.toasts { inset-inline: 20px; width: auto; max-width: 380px; margin-inline-start: auto; }
.incoming { inset-inline: 20px; width: auto; max-width: 420px; margin-inline-start: auto; }
.toasts { max-width: min(380px, calc(100vw - 40px)); }
.incoming { max-width: min(420px, calc(100vw - 40px)); }
.toasts:empty { display: none; }
/* Phones: each visit row becomes a small card (patient on top, time and status, type and action). */
@media (max-width: 640px) {
  .table, .table tbody, .table tr, .table td { display: block; width: 100%; }
  .table thead { display: none; }
  .table tr { display: grid; grid-template-columns: 1fr auto; gap: 8px 12px; align-items: center; padding: 14px 16px; border-bottom: 1px solid var(--line); }
  .table tr:last-child { border-bottom: 0; }
  .table td { padding: 0; border: 0; width: auto; }
  .table td:nth-child(2) { grid-column: 1 / -1; order: -1; }
  .table td:last-child { text-align: start !important; }
}
@media (max-width: 640px) { .stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .stat b { font-size: 24px; } }
.call:has([data-denied]:not([hidden])) :is(.waiting, .controls, .self, .top p) { display: none; }
