/* Shifokor site. Pattern: deep-teal header and hero with a search card, result cards with a slot calendar beside each, profile page, booking drawer. Motif: the appointment slot. */
:root {
  --bg: #F3F7F7;
  --surface: #FFFFFF;
  --ink: #12262B;
  --muted: #55696E;
  --line: #D3E0E1;
  --accent: #0A7F83;
  --accent-ink: #FFFFFF;
  --accent-soft: #DCF0EF;
  --deep: #0F4C4F;
  --deep-ink: #F2FAF9;
  --deep-line: rgba(255, 255, 255, 0.18);
  --ochre: #A9680A;
  --ochre-soft: #F8ECD3;
  --risk: #B23A2B;
  --risk-soft: #F8E2DE;
  --gl: max(16px, env(safe-area-inset-left, 0px));
  --gr: max(16px, env(safe-area-inset-right, 0px));
  --font-display: "Bricolage Grotesque", "Avenir Next", "Segoe UI", sans-serif;
  --font-body: "Instrument Sans", "Segoe UI", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0C1517; --surface: #131F22; --ink: #E6F0EF; --muted: #93A9AC; --line: #263A3D;
    --accent: #3CC4C0; --accent-ink: #082123; --accent-soft: #123338; --deep: #0A2A2C; --deep-ink: #E6F0EF;
    --ochre: #E3A94A; --ochre-soft: #33280F; --risk: #F0897A; --risk-soft: #3A1E1A; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0C1517; --surface: #131F22; --ink: #E6F0EF; --muted: #93A9AC; --line: #263A3D;
  --accent: #3CC4C0; --accent-ink: #082123; --accent-soft: #123338; --deep: #0A2A2C; --deep-ink: #E6F0EF;
  --ochre: #E3A94A; --ochre-soft: #33280F; --risk: #F0897A; --risk-soft: #3A1E1A; color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 16px/1.55 var(--font-body); padding-left: var(--gl); padding-right: var(--gr); -webkit-text-size-adjust: 100%; }
a { color: var(--accent); text-underline-offset: 3px; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 700; line-height: 1.12; letter-spacing: -0.015em; margin: 0; text-wrap: balance; }
h2 { font-size: clamp(1.7rem, 1.3rem + 2vw, 2.6rem); }
h3 { font-size: 1.15rem; letter-spacing: 0; line-height: 1.25; }
p { margin: 0; }
.wrap { max-width: 1160px; margin: 0 auto; }
.band { margin-left: calc(-1 * var(--gl)); margin-right: calc(-1 * var(--gr)); padding-left: var(--gl); padding-right: var(--gr); overflow-x: clip; }
.band.alt { background: var(--surface); border-block: 1px solid var(--line); }
.band.deep { background: var(--deep); color: var(--deep-ink); }
.pad { padding-block: clamp(44px, 7vw, 88px); }
.muted { color: var(--muted); }
.eyebrow { font: 500 0.76rem var(--font-mono); text-transform: uppercase; letter-spacing: 0.08em; color: var(--accent); margin-bottom: 12px; }
.lead { margin-top: 14px; font-size: 1.1rem; color: var(--muted); max-width: 36em; }
.nums { font-variant-numeric: tabular-nums; }
svg.ic { width: 1.25em; height: 1.25em; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* header */
.top { position: sticky; top: 0; z-index: 30; background: var(--deep); color: var(--deep-ink); margin-left: calc(-1 * var(--gl)); margin-right: calc(-1 * var(--gr)); padding: env(safe-area-inset-top, 0px) var(--gr) 0 var(--gl); }
.top .row { display: flex; align-items: center; gap: 14px; height: 60px; }
.brand { display: inline-flex; align-items: center; gap: 9px; font: 700 1.3rem var(--font-display); color: var(--deep-ink); text-decoration: none; letter-spacing: -0.02em; flex: none; }
.logo { width: 28px; height: 28px; }
.nav { display: flex; gap: 2px; margin-left: 10px; }
.nav a { color: var(--deep-ink); opacity: 0.82; text-decoration: none; font-size: 0.93rem; font-weight: 500; padding: 8px 12px; border-radius: 8px; }
.nav a:hover, .nav a[aria-current="page"] { opacity: 1; background: var(--deep-line); }
.spacer { flex: 1; }
.lang { display: flex; border: 1px solid var(--deep-line); border-radius: 99px; padding: 2px; }
.lang button { font: 500 0.76rem var(--font-mono); border: 0; background: transparent; color: var(--deep-ink); opacity: 0.8; padding: 5px 9px; border-radius: 99px; cursor: pointer; }
.lang button[aria-pressed="true"] { background: var(--deep-ink); color: var(--deep); opacity: 1; }
.nav a, .ddbtn { white-space: nowrap; }
.nav { align-items: center; }
.dd { position: relative; }
.ddbtn { display: inline-flex; align-items: center; gap: 4px; background: none; border: 0; color: var(--deep-ink); opacity: 0.82; font: 500 0.93rem var(--font-body); padding: 8px 12px; border-radius: 8px; cursor: pointer; }
.ddbtn:hover, .ddbtn[aria-expanded="true"], .ddbtn[aria-current="page"] { opacity: 1; background: var(--deep-line); }
.ddbtn svg { width: 1em; height: 1em; transition: transform 0.15s; }
.ddbtn[aria-expanded="true"] svg { transform: rotate(180deg); }
.menu { position: absolute; top: calc(100% + 8px); left: 0; min-width: 240px; background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: 14px; padding: 8px; box-shadow: 0 20px 44px -18px rgba(0, 0, 0, 0.5); z-index: 40; }
.menu[hidden] { display: none; }
.menu a { display: block; padding: 10px 14px; border-radius: 8px; color: var(--ink); opacity: 1; font-size: 1rem; font-weight: 400; }
.menu a:hover { background: var(--accent-soft); color: var(--accent); }
.menu a.sep { border-top: 1px solid var(--line); border-radius: 0 0 8px 8px; margin-top: 6px; padding-top: 14px; }
.mobonly { display: none !important; }
/* tablets: the bar is too narrow for all four links, so prices and visits move into the menu */
@media (max-width: 940px) { .nav a[data-r="prices"], .nav a[data-r="visits"] { display: none; } .menu a.mobonly[href="#/prices"], .menu a.mobonly[href="#/visits"] { display: block !important; } }
@media (max-width: 760px) { .nav a[data-r="consult"] { display: none; } .menu a.mobonly[href="#/consult"] { display: block !important; } }
@media (max-width: 640px) { .top .row { gap: 8px; } .nav a { padding: 8px 8px; font-size: 0.85rem; } .nav { margin-left: 0; } .nav a[data-r="home"], .nav a.desk { display: none; } .brand .w { display: none; } .lang button { padding: 5px 7px; } .ddbtn { padding: 8px 8px; font-size: 0.85rem; } .mobonly { display: block !important; } .menu { position: fixed; top: calc(env(safe-area-inset-top, 0px) + 66px); left: var(--gl); right: var(--gr); min-width: 0; } }

/* map */
.rlayout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 380px); gap: 20px; align-items: start; }
.rlayout .rcard { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); }
.rlayout .rcard .info { padding: 16px; }
.rlayout .rcard .cal { padding: 12px; }
.rlayout .cols { --n: 4 !important; }
.rlayout .cols .dcol:nth-child(n+5) { display: none; }
.rcard.hl { outline: 2px solid var(--accent); outline-offset: 2px; }
.mapcol { position: sticky; top: 76px; display: grid; gap: 8px; }
.map { height: min(72vh, 600px); border-radius: 16px; border: 1px solid var(--line); overflow: hidden; background: var(--accent-soft); z-index: 0; }
.map.small { height: 280px; }
.map.off { display: none; }
.mapbtn { display: none; justify-self: start; }
.pin-wrap { background: none; border: 0; }
.pin { width: 34px; height: 34px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); background: var(--accent); color: var(--accent-ink); border: 2px solid #fff; box-shadow: 0 4px 10px rgba(0, 0, 0, 0.35); display: grid; place-items: center; transition: transform 0.12s; }
.pin span { transform: rotate(45deg); font: 700 0.9rem var(--font-display); }
.pin.on { transform: rotate(-45deg) scale(1.25); background: var(--deep); color: var(--deep-ink); }
.leaflet-container { font-family: var(--font-body); }
.leaflet-popup-content { font-size: 0.9rem; line-height: 1.5; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .leaflet-tile-pane { filter: invert(1) hue-rotate(180deg) brightness(0.92) contrast(0.9) saturate(0.7); } }
:root[data-theme="dark"] .leaflet-tile-pane { filter: invert(1) hue-rotate(180deg) brightness(0.92) contrast(0.9) saturate(0.7); }
@media (max-width: 1040px) {
  .rlayout { grid-template-columns: minmax(0, 1fr); }
  .mapcol { position: static; order: -1; }
  .mapbtn { display: inline-flex; }
  .map { height: 280px; }
  .rlayout .cols { --n: 5 !important; }
  .rlayout .cols .dcol:nth-child(n+5) { display: grid; }
  .rlayout .cols .dcol:nth-child(n+6) { display: none; }
}
@media (max-width: 960px) { .rlayout .rcard { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 560px) { .rlayout .cols { --n: 3 !important; } .rlayout .cols .dcol:nth-child(n+4) { display: none; } }

/* browse */
.btabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; }
.btabs .chip[aria-current="page"] { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.bhead { padding-block: clamp(30px, 5vw, 56px) clamp(32px, 5vw, 56px); }
.bhead h1 { font-size: clamp(2rem, 1.4rem + 3vw, 3.4rem); letter-spacing: -0.025em; }
.bhead p.sub { margin-top: 12px; font-size: 1.1rem; opacity: 0.85; max-width: 38em; }
.blist { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px 32px; }
.blist li { min-width: 0; display: flex; align-items: baseline; justify-content: space-between; gap: 10px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.blist a { color: var(--ink); font-size: 1.05rem; text-decoration-thickness: 1px; }
.blist a:hover { color: var(--accent); }
.blist .cnt { color: var(--muted); font-size: 0.85rem; white-space: nowrap; font-variant-numeric: tabular-nums; }
.blist .off { color: var(--muted); font-size: 1.05rem; }
.bgroup { margin-top: 34px; }
.bgroup:first-of-type { margin-top: 0; }
.bgroup h2 { font-size: 1.35rem; margin-bottom: 16px; display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: 600 0.98rem var(--font-body); padding: 12px 20px; border-radius: 10px; border: 1.5px solid var(--accent); background: var(--accent); color: var(--accent-ink); text-decoration: none; cursor: pointer; }
.btn:hover { filter: brightness(1.08); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.btn.ghost { background: transparent; color: var(--accent); }
.btn.ghost:hover { background: var(--accent-soft); filter: none; }
.btn.light { background: var(--deep-ink); border-color: var(--deep-ink); color: var(--deep); }
.btn.sm { padding: 8px 14px; font-size: 0.88rem; }
.btn.big { padding: 14px 26px; font-size: 1.05rem; }

/* hero and search card */
.hero { padding-block: clamp(32px, 5vw, 64px) clamp(40px, 6vw, 80px); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 420px); gap: clamp(28px, 5vw, 64px); align-items: center; }
.hero .eyebrow { color: var(--deep-ink); opacity: 0.75; }
.hero h1 { font-size: clamp(2.2rem, 1.4rem + 3.8vw, 4.1rem); letter-spacing: -0.025em; }
.hero p.sub { margin-top: 14px; font-size: 1.12rem; opacity: 0.85; max-width: 32em; }
.sform { margin-top: 28px; background: var(--surface); color: var(--ink); border-radius: 16px; padding: 14px; box-shadow: 0 18px 40px -22px rgba(0, 0, 0, 0.5); }
.seg { display: inline-grid; grid-auto-flow: column; grid-auto-columns: 1fr; background: var(--bg); border-radius: 10px; padding: 3px; }
.seg button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; font: 500 0.9rem var(--font-body); border: 0; background: transparent; color: var(--muted); padding: 8px 14px; border-radius: 8px; cursor: pointer; white-space: nowrap; }
.seg button[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 3px rgba(0, 0, 0, 0.18); font-weight: 600; }
.srow { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) auto; gap: 10px; margin-top: 12px; }
.sf { display: grid; gap: 3px; min-width: 0; }
.sf label { font: 500 0.68rem var(--font-mono); text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }
.sf input, .sf select, .fld input, .fld select { font: 400 1rem var(--font-body); padding: 11px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg); color: var(--ink); width: 100%; min-width: 0; }
.sf input:focus, .sf select:focus, .fld input:focus, .fld select:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 3px var(--accent-soft); }
.srow .btn { align-self: end; height: 46px; }
@media (max-width: 760px) { .srow { grid-template-columns: minmax(0, 1fr); } .srow .btn { width: 100%; } }
.deco { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; padding: 22px; border-radius: 22px; background: rgba(255, 255, 255, 0.07); border: 1px solid var(--deep-line); position: relative; }
.deco i { aspect-ratio: 1.15; border-radius: 9px; background: rgba(255, 255, 255, 0.1); }
.deco i.on { background: rgba(255, 255, 255, 0.34); }
.deco i.pick { background: var(--accent); box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.5); }
.deco .tagc { position: absolute; left: 22px; right: 22px; bottom: -16px; background: var(--surface); color: var(--ink); border-radius: 12px; padding: 10px 14px; font-size: 0.88rem; display: flex; gap: 8px; align-items: center; box-shadow: 0 14px 30px -16px rgba(0, 0, 0, 0.5); }
.deco .tagc svg { color: var(--accent); }
@media (max-width: 900px) { .hero { grid-template-columns: minmax(0, 1fr); } .deco { display: none; } }

/* chips and panels */
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { font: 500 0.92rem var(--font-body); padding: 7px 14px; border-radius: 99px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); text-decoration: none; cursor: pointer; }
a.chip:hover, button.chip:hover { border-color: var(--accent); color: var(--accent); }
button.chip[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.plabel { font: 500 0.7rem var(--font-mono); text-transform: uppercase; letter-spacing: 0.07em; color: var(--muted); margin-bottom: 10px; }
.panels { display: grid; gap: 12px; padding-block: 28px 8px; }

.benefits { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 28px; }
.benefit .ico { width: 46px; height: 46px; border-radius: 12px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; margin-bottom: 14px; }
.benefit .ico svg { width: 24px; height: 24px; }
.benefit h3 { margin-bottom: 6px; }
.benefit p { color: var(--muted); font-size: 0.97rem; }

.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; margin-top: 28px; }
.tile { display: block; text-decoration: none; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 18px; }
.tile:hover { border-color: var(--accent); }
.tile b { display: block; font: 600 1.05rem var(--font-display); margin-bottom: 4px; }
.tile span { color: var(--muted); font-size: 0.9rem; }
.tile .from { display: block; margin-top: 10px; color: var(--accent); font-weight: 600; font-size: 0.92rem; }

.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 16px; margin-top: 34px; counter-reset: s; }
.step { position: relative; padding-top: 18px; border-top: 2px solid var(--line); counter-increment: s; }
.step::before { content: counter(s); position: absolute; top: -14px; left: 0; width: 26px; height: 26px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); font: 600 0.8rem var(--font-mono); display: grid; place-items: center; }
.step h3 { margin: 6px 0 6px; }
.step p { color: var(--muted); font-size: 0.96rem; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
@media (max-width: 860px) { .split { grid-template-columns: minmax(0, 1fr); } }
.list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.list li { position: relative; padding-left: 28px; }
.list li::before { content: ""; position: absolute; left: 2px; top: 0.45em; width: 12px; height: 7px; border-left: 2.5px solid var(--accent); border-bottom: 2.5px solid var(--accent); transform: rotate(-45deg); }
.list b { font-weight: 600; }
.list span { color: var(--muted); }
.box { background: var(--bg); border: 1px solid var(--line); border-radius: 16px; padding: 22px; }
.box h3 { margin-bottom: 14px; }
.emerg { margin-top: 18px; padding: 14px 18px; border-radius: 12px; background: var(--risk-soft); font-size: 0.96rem; }
.emerg b { color: var(--risk); }
.outcomes { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin-top: 24px; }
.out { border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; background: var(--bg); font-weight: 500; font-size: 0.96rem; }
.tools { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; margin-top: 30px; }
.tool { border: 1px solid var(--line); border-radius: 14px; padding: 18px; background: var(--surface); }
.tool h3 { font-size: 1.05rem; margin-bottom: 6px; }
.tool p { font-size: 0.94rem; color: var(--muted); }
.cta-band { border-radius: 20px; padding: clamp(24px, 4vw, 44px); background: var(--deep); color: var(--deep-ink); display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px; align-items: center; }
.cta-band p { opacity: 0.85; margin-top: 10px; max-width: 36em; }
@media (max-width: 760px) { .cta-band { grid-template-columns: minmax(0, 1fr); } }
.soon { display: inline-block; font: 500 0.72rem var(--font-mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--ochre); background: var(--ochre-soft); padding: 3px 9px; border-radius: 99px; margin-bottom: 12px; }

.faq { margin-top: 28px; max-width: 780px; }
details { border-bottom: 1px solid var(--line); }
summary { cursor: pointer; list-style: none; padding: 18px 40px 18px 0; font: 600 1.06rem var(--font-display); position: relative; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); font: 400 1.5rem var(--font-body); color: var(--accent); }
details[open] summary::after { content: "–"; }
details p { padding: 0 0 20px; color: var(--muted); max-width: 40em; }

/* results */
.searchbar { padding-block: 16px; }
.searchbar .sform { margin-top: 0; }
.filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; padding-block: 18px 6px; }
.filters .sel { display: inline-flex; align-items: center; gap: 8px; font-size: 0.9rem; color: var(--muted); }
.filters select { font: 500 0.9rem var(--font-body); padding: 7px 10px; border-radius: 99px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); }
.rhead { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 16px; align-items: baseline; padding-block: 14px 8px; }
.rhead h1 { font-size: clamp(1.4rem, 1.2rem + 1vw, 1.9rem); }
.sample { font: 500 0.68rem var(--font-mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--ochre); background: var(--ochre-soft); padding: 3px 9px; border-radius: 99px; white-space: nowrap; }
.results { display: grid; gap: 14px; padding-bottom: 56px; }
.rcard { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.rcard .info { padding: 20px; display: grid; gap: 10px; align-content: start; min-width: 0; }
.rcard .cal { padding: 16px; border-left: 1px solid var(--line); background: color-mix(in srgb, var(--bg) 60%, var(--surface)); min-width: 0; }
@media (max-width: 960px) { .rcard { grid-template-columns: minmax(0, 1fr); } .rcard .cal { border-left: 0; border-top: 1px solid var(--line); } }
.who { display: flex; gap: 14px; align-items: flex-start; }
.avatar { width: 56px; height: 56px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; flex: none; font: 700 1.1rem var(--font-display); }
.who h3 a { color: var(--ink); text-decoration: none; }
.who h3 a:hover { color: var(--accent); }
.spec { color: var(--muted); font-size: 0.93rem; }
.badges { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.badge { display: inline-flex; align-items: center; gap: 5px; font: 500 0.7rem var(--font-mono); padding: 3px 8px; border-radius: 99px; background: var(--accent-soft); color: var(--accent); }
.badge svg { width: 12px; height: 12px; }
.badge.warn { background: var(--ochre-soft); color: var(--ochre); }
.badge.plain { background: transparent; border: 1px solid var(--line); color: var(--muted); }
.meta { display: flex; gap: 8px; align-items: center; color: var(--muted); font-size: 0.92rem; }
.svcline { border-top: 1px solid var(--line); padding-top: 10px; display: flex; justify-content: space-between; gap: 12px; align-items: baseline; flex-wrap: wrap; }
.svcline b { font-weight: 600; }
.svcline .pr { font: 700 1.05rem var(--font-display); white-space: nowrap; }
.svcline .pr.cov { color: var(--accent); font-size: 0.95rem; }
.confline { font-size: 0.82rem; color: var(--muted); }
.confline.old { color: var(--ochre); }
.nextfree { font-size: 0.88rem; color: var(--muted); }
.nextfree b { color: var(--ink); font-weight: 600; }

/* calendar */
.calw { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 6px; align-items: start; }
.calnav { width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; font-size: 1.1rem; line-height: 1; margin-top: 4px; }
.calnav:disabled { opacity: 0.35; cursor: not-allowed; }
.cols { display: grid; grid-template-columns: repeat(var(--n, 6), minmax(0, 1fr)); gap: 6px; }
.dcol { display: grid; gap: 6px; align-content: start; min-width: 0; }
.dh { text-align: center; padding-bottom: 4px; border-bottom: 1px solid var(--line); line-height: 1.2; }
.dh span { display: block; font: 500 0.66rem var(--font-mono); text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); }
.dh b { font: 600 0.95rem var(--font-body); }
.sb { font: 500 0.8rem var(--font-mono); padding: 7px 0; border-radius: 8px; border: 1px solid var(--accent); color: var(--accent); background: var(--surface); cursor: pointer; width: 100%; font-variant-numeric: tabular-nums; }
.sb:hover { background: var(--accent); color: var(--accent-ink); }
.dx { text-align: center; color: var(--muted); font-size: 0.8rem; padding: 7px 0; }
.calmore { margin-top: 10px; background: none; border: 0; color: var(--accent); font: 600 0.88rem var(--font-body); cursor: pointer; padding: 4px 0; }
.calmeta { display: flex; justify-content: space-between; gap: 10px; align-items: center; margin-bottom: 10px; font-size: 0.82rem; color: var(--muted); }
@media (max-width: 960px) { .cols { --n: 5 !important; } .cols .dcol:nth-child(n+6) { display: none; } }
@media (max-width: 560px) { .cols { --n: 3 !important; } .cols .dcol:nth-child(n+4) { display: none; } }

/* profile */
.pf { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 440px); gap: clamp(24px, 4vw, 48px); align-items: start; padding-block: 24px 64px; }
@media (max-width: 960px) { .pf { grid-template-columns: minmax(0, 1fr); } }
.back { display: inline-flex; align-items: center; gap: 6px; padding-top: 18px; color: var(--muted); text-decoration: none; font-size: 0.92rem; }
.pf h1 { font-size: clamp(1.7rem, 1.3rem + 1.6vw, 2.4rem); }
.pf .who .avatar { width: 76px; height: 76px; font-size: 1.5rem; }
.sect { margin-top: 32px; }
.sect h2 { font-size: 1.35rem; margin-bottom: 14px; }
table { width: 100%; border-collapse: collapse; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; font-size: 0.95rem; }
th { text-align: left; font: 500 0.7rem var(--font-mono); text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); padding: 11px 14px; border-bottom: 1px solid var(--line); }
td { padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
tr:last-child td { border-bottom: 0; }
td.n, th.n { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.kv { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 8px 16px; font-size: 0.97rem; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; }
.stick { position: sticky; top: 76px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 18px; box-shadow: 0 20px 40px -30px rgba(10, 60, 64, 0.4); }
.stick h2 { font-size: 1.2rem; margin-bottom: 12px; }
@media (max-width: 960px) { .stick { position: static; } }
.linkbtn { background: none; border: 0; padding: 0; color: var(--accent); font: 500 0.9rem var(--font-body); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }

/* drawer */
.overlay { position: fixed; inset: 0; z-index: 50; background: rgba(5, 20, 22, 0.55); display: flex; justify-content: flex-end; }
.overlay[hidden] { display: none; }
.sheet { width: min(480px, 100%); height: 100%; background: var(--surface); color: var(--ink); overflow-y: auto; padding: 22px max(20px, env(safe-area-inset-right, 0px)) 28px 22px; padding-top: max(22px, env(safe-area-inset-top, 0px)); box-shadow: -20px 0 50px -20px rgba(0, 0, 0, 0.5); }
.sheet h2 { font-size: 1.5rem; }
.sheet .x { float: right; background: none; border: 1px solid var(--line); border-radius: 50%; width: 34px; height: 34px; cursor: pointer; color: var(--ink); font-size: 1.1rem; }
.sum { margin: 18px 0; padding: 14px 16px; border-radius: 12px; background: var(--bg); display: grid; gap: 4px; }
.sum b { font: 600 1.02rem var(--font-display); }
.fld { display: grid; gap: 5px; margin-bottom: 14px; }
.fld label { font-size: 0.86rem; font-weight: 600; }
.chk { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 10px; font-size: 0.9rem; color: var(--muted); margin: 6px 0 16px; cursor: pointer; }
.chk input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--accent); }
.fine { font-size: 0.84rem; color: var(--muted); margin: 4px 0 16px; }
.err { color: var(--risk); font-size: 0.9rem; min-height: 1.3em; margin-bottom: 8px; }
.tg { margin: 18px 0; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--accent); background: var(--accent-soft); font-size: 0.95rem; }
.tg b { display: block; font: 500 0.74rem var(--font-mono); letter-spacing: 0.04em; margin-bottom: 4px; color: var(--accent); }
.done-ico { width: 56px; height: 56px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; margin: 14px 0; }
.done-ico svg { width: 30px; height: 30px; }
.demo { font: 500 0.72rem var(--font-mono); color: var(--ochre); background: var(--ochre-soft); padding: 8px 12px; border-radius: 10px; margin-top: 16px; }
.toast { position: fixed; left: 50%; bottom: max(24px, env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); background: var(--ink); color: var(--bg); padding: 11px 18px; border-radius: 12px; font-size: 0.92rem; z-index: 60; max-width: calc(100% - 32px); }
.toast[hidden] { display: none; }

/* visits */
.visit { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; display: flex; justify-content: space-between; gap: 12px; align-items: center; flex-wrap: wrap; }
.visit b { font: 600 1.05rem var(--font-display); }
.visits { display: grid; gap: 12px; margin-top: 22px; }
.empty { padding: 36px 22px; text-align: center; background: var(--surface); border: 1px dashed var(--line); border-radius: 14px; color: var(--muted); }

/* join form */
.join { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 480px); gap: clamp(28px, 5vw, 72px); align-items: start; }
@media (max-width: 860px) { .join { grid-template-columns: minmax(0, 1fr); } }
.form { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 22px; }
.form .seg { display: grid; margin-bottom: 18px; }
.status { margin-top: 14px; font-size: 0.92rem; min-height: 1.4em; }
.status.err { color: var(--risk); }
.msgbox { margin-top: 12px; padding: 12px 14px; border-radius: 10px; background: var(--bg); border: 1px solid var(--line); font: 400 0.85rem/1.5 var(--font-mono); white-space: pre-wrap; word-break: break-word; user-select: all; }

.foot { margin-left: calc(-1 * var(--gl)); margin-right: calc(-1 * var(--gr)); padding: 40px var(--gr) 48px var(--gl); background: var(--deep); color: var(--deep-ink); }
.foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 24px; }
.foot-grid > div { display: grid; gap: 8px; align-content: start; }
.foot a { color: var(--deep-ink); opacity: 0.85; text-decoration: none; }
.foot a:hover { text-decoration: underline; }
.foot .muted { color: var(--deep-ink); opacity: 0.7; }
.fine-print { margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--deep-line); font-size: 0.86rem; }
@media (max-width: 640px) { .foot-grid { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* ---------- added for the plan's MVP features: safety check, visits, online room, clinic workspace, village assist ---------- */
:root { --sunk: #EBF2F2; --line-2: #C3D3D4; --ok: #1E7A4C; --ok-soft: #DDF3E6; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --sunk: #0F1A1C; --line-2: #2E4449; --ok: #5ED39A; --ok-soft: #12321F; } }
:root[data-theme="dark"] { --sunk: #0F1A1C; --line-2: #2E4449; --ok: #5ED39A; --ok-soft: #12321F; }

.menu a.mid { display: none; }
@media (max-width: 1100px) { .nav a[data-r="dashboard"] { display: none; } .menu a.mid { display: block; } }
.btn.block { width: 100%; }
.btn.danger { background: var(--risk); border-color: var(--risk); color: #fff; }
.badge.ok { background: var(--ok-soft); color: var(--ok); }
.badge.risk { background: var(--risk-soft); color: var(--risk); }
.sechead { display: flex; justify-content: space-between; align-items: end; gap: 16px 32px; flex-wrap: wrap; }
.rnote { font-size: 0.86rem; color: var(--muted); padding-bottom: 12px; }
.icobox { width: 42px; height: 42px; border-radius: 12px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; margin-bottom: 12px; }
.icobox svg { width: 22px; height: 22px; }
.tablewrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.tablewrap table { border: 0; border-radius: 0; }
.cta-band .btns { display: flex; gap: 10px; flex-wrap: wrap; }

/* drawer steps */
.sheet-h { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 12px; }
.sheet-h .x { float: none; flex: none; }
.sheet-h .stepn { font: 500 0.72rem var(--font-mono); text-transform: uppercase; letter-spacing: 0.07em; color: var(--muted); }
.progress { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-bottom: 18px; }
.progress i { height: 4px; border-radius: 4px; background: var(--line); }
.progress i.on { background: var(--accent); }
.rflist { list-style: none; padding: 0; margin: 14px 0 18px; display: grid; gap: 8px; }
.rflist li { padding: 11px 14px 11px 40px; border-radius: 12px; background: var(--risk-soft); position: relative; font-size: 0.95rem; }
.rflist li::before { content: "!"; position: absolute; left: 14px; top: 11px; width: 18px; height: 18px; border-radius: 50%; background: var(--risk); color: #fff; font: 700 0.75rem/18px var(--font-body); text-align: center; }
.stack { display: grid; gap: 10px; }
.em-ico { width: 60px; height: 60px; border-radius: 50%; background: var(--risk); color: #fff; display: grid; place-items: center; font: 700 1.8rem var(--font-display); margin: 6px 0 14px; }
.msg { margin: 12px 0 0; padding: 13px 15px; border-radius: 16px 16px 16px 4px; border: 1px solid var(--accent); background: var(--accent-soft); font-size: 0.94rem; }
.msg b { display: block; font: 500 0.72rem var(--font-mono); letter-spacing: 0.03em; margin-bottom: 4px; color: var(--accent); }
.radio { display: grid; gap: 8px; margin-bottom: 14px; }
.radio label { display: flex; gap: 10px; align-items: center; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; cursor: pointer; }
.radio input { accent-color: var(--accent); width: 18px; height: 18px; margin: 0; }
.radio label:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.fld textarea { font: 400 1rem var(--font-body); padding: 11px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg); color: var(--ink); width: 100%; min-height: 88px; resize: vertical; }
.fld textarea:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 3px var(--accent-soft); }

/* online room */
.room { display: grid; grid-template-rows: auto auto minmax(220px, 1fr) auto; gap: 12px; min-height: calc(100% - 4px); }
.room-modes { display: flex; gap: 8px; flex-wrap: wrap; }
.room-log { overflow-y: auto; border: 1px solid var(--line); border-radius: 12px; padding: 14px; background: var(--bg); display: flex; flex-direction: column; gap: 8px; }
.room-log .me { align-self: flex-end; background: var(--accent); color: var(--accent-ink); padding: 8px 12px; border-radius: 14px 14px 4px 14px; max-width: 80%; word-break: break-word; }
.room-log .sys { align-self: center; font-size: 0.84rem; color: var(--muted); text-align: center; }
.room-send { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }

/* my visits */
.subh { font: 500 0.74rem var(--font-mono); text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); margin: 28px 0 4px; }
.visit { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 14px; align-items: center; }
.visit .date { width: 58px; text-align: center; border-radius: 12px; background: var(--accent-soft); color: var(--accent); padding: 8px 0; line-height: 1.1; }
.visit .date span { display: block; font: 500 0.64rem var(--font-mono); text-transform: uppercase; }
.visit .date b { font: 700 1.35rem var(--font-display); }
.visit h3 { font-size: 1.02rem; }
.visit .acts { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.visit.past { opacity: 0.8; }
.visit.past .date { background: var(--bg); color: var(--muted); }
.confirm-row { grid-column: 1 / -1; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; padding: 12px 14px; border-radius: 12px; background: var(--risk-soft); }
@media (max-width: 640px) { .visit { grid-template-columns: auto minmax(0, 1fr); } .visit .acts { grid-column: 1 / -1; justify-content: flex-start; } }

/* clinic workspace */
.dtop { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; justify-content: space-between; padding-block: 26px 18px; }
.dtop h1 { font-size: clamp(1.6rem, 1.3rem + 1.4vw, 2.3rem); }
.dtop .ctl { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.dtop select { font: 500 0.95rem var(--font-body); padding: 9px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); }
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.kpi { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; }
.kpi span { display: block; font-size: 0.84rem; color: var(--muted); }
.kpi b { display: block; font: 700 1.9rem/1.15 var(--font-display); margin-top: 6px; font-variant-numeric: tabular-nums; }
.kpi small { font-size: 0.82rem; color: var(--muted); }
@media (max-width: 860px) { .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.fresh { margin-top: 14px; display: flex; gap: 14px 20px; align-items: center; justify-content: space-between; flex-wrap: wrap; padding: 16px 18px; border-radius: 14px; background: var(--ochre-soft); }
.fresh.ok { background: var(--ok-soft); }
.fresh b { font-weight: 600; }
.dgrid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 20px; margin-top: 20px; padding-bottom: 72px; align-items: start; }
@media (max-width: 1000px) { .dgrid { grid-template-columns: minmax(0, 1fr); } }
.dcard { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 20px; min-width: 0; }
.dcard + .dcard { margin-top: 20px; }
.dcard h2 { font-size: 1.2rem; margin-bottom: 4px; }
.daytabs { display: flex; gap: 6px; overflow-x: auto; padding: 12px 0 14px; }
.daytabs button { flex: none; border: 1px solid var(--line); background: var(--surface); color: var(--ink); border-radius: 10px; padding: 6px 12px; cursor: pointer; text-align: center; line-height: 1.2; font: inherit; }
.daytabs button span { display: block; font: 500 0.64rem var(--font-mono); text-transform: uppercase; color: var(--muted); }
.daytabs button b { font-weight: 600; }
.daytabs button[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.daytabs button[aria-pressed="true"] span { color: inherit; opacity: 0.85; }
.appt { display: grid; grid-template-columns: 62px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px 0; border-top: 1px solid var(--line); }
.appt .tm { font: 600 0.95rem var(--font-mono); font-variant-numeric: tabular-nums; }
.appt .who2 { min-width: 0; }
.appt .who2 b { font-weight: 600; display: block; }
.appt .who2 span { font-size: 0.86rem; color: var(--muted); }
.appt .acts { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; align-items: center; }
@media (max-width: 640px) { .appt { grid-template-columns: 54px minmax(0, 1fr); } .appt .acts { grid-column: 2; justify-content: flex-start; } }
.pinput { font: 400 1rem var(--font-body); width: 140px; text-align: right; padding: 8px 10px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg); color: var(--ink); font-variant-numeric: tabular-nums; }
.pinput:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 3px var(--accent-soft); }
.report { padding: 12px 0; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.report:first-of-type { border-top: 0; }

/* village assist */
.astep { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 22px; max-width: 720px; }
.astep div { padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); font-size: 0.88rem; color: var(--muted); }
.astep div b { display: block; font: 500 0.64rem var(--font-mono); text-transform: uppercase; letter-spacing: 0.06em; }
.astep div.on { border-color: var(--accent); color: var(--ink); box-shadow: 0 0 0 3px var(--accent-soft); }
.astep div.done { color: var(--accent); }
.aform { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; }
@media (max-width: 640px) { .aform { grid-template-columns: minmax(0, 1fr); } .astep div { font-size: 0.78rem; } }

/* ---------- warmer, more human layer: softer surfaces, rounder shapes, friendly labels, illustrations ---------- */
:root { --mint: #EAF6F3; --peach: #FDEDE4; --r-card: 20px; --soft-shadow: 0 1px 2px rgba(16, 36, 39, 0.04), 0 14px 34px -22px rgba(16, 36, 39, 0.3); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --mint: #0F2427; --peach: #2E211B; --soft-shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 14px 34px -22px rgba(0, 0, 0, 0.8); } }
:root[data-theme="dark"] { --mint: #0F2427; --peach: #2E211B; --soft-shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 14px 34px -22px rgba(0, 0, 0, 0.8); }
body { font-size: 16.5px; }
h1, h2 { letter-spacing: -0.022em; }
.band.alt { background: var(--mint); border-block: 0; }

/* friendly labels instead of technical uppercase */
.eyebrow { display: inline-flex; align-items: center; gap: 6px; font: 600 0.86rem var(--font-body); text-transform: none; letter-spacing: 0; color: var(--accent); background: var(--accent-soft); padding: 5px 12px; border-radius: 99px; margin-bottom: 16px; }
.band.deep .eyebrow, .hero .eyebrow { background: rgba(255, 255, 255, 0.12); color: var(--deep-ink); opacity: 1; }
.plabel { font: 600 0.92rem var(--font-body); text-transform: none; letter-spacing: 0; color: var(--ink); }
.sample { font: 600 0.72rem var(--font-body); text-transform: none; letter-spacing: 0; }
.badge { font: 600 0.72rem var(--font-body); padding: 3px 9px; }
.soon { font: 600 0.78rem var(--font-body); text-transform: none; letter-spacing: 0; }
.sf label { font: 600 0.78rem var(--font-body); text-transform: none; letter-spacing: 0; color: var(--muted); }
.subh { font: 700 1rem var(--font-display); text-transform: none; letter-spacing: 0; color: var(--ink); }
.sheet-h .stepn, .astep div b { font: 600 0.76rem var(--font-body); text-transform: none; letter-spacing: 0; }

/* softer, rounder surfaces */
.btn { border-radius: 12px; }
.btn:not(.ghost):not(.light):not(.danger) { box-shadow: 0 8px 18px -10px rgba(10, 127, 131, 0.75); }
.btn.sm { border-radius: 10px; }
.sform { border-radius: 22px; padding: 16px; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.55); }
.sf input, .sf select { border-radius: 12px; padding: 12px 14px; }
.panel, .tile, .tool, .box, .rcard, .kpi, .dcard, .stick, .form, .visit, .empty { border-radius: var(--r-card); box-shadow: var(--soft-shadow); border-color: color-mix(in srgb, var(--line) 70%, transparent); }
.tile:hover, .rcard:hover { transform: translateY(-2px); box-shadow: 0 2px 4px rgba(16, 36, 39, 0.05), 0 22px 40px -24px rgba(16, 36, 39, 0.4); }
.tile, .rcard { transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s; }
.rcard .cal { background: color-mix(in srgb, var(--mint) 70%, var(--surface)); }
.chip { border-radius: 99px; padding: 8px 16px; }
.panels .panel { padding: 20px 22px; }
.benefit .ico { width: 56px; height: 56px; border-radius: 50%; }
.benefit:nth-child(2) .ico { background: var(--peach); color: #C2613F; }
.benefit:nth-child(4) .ico { background: var(--peach); color: #C2613F; }
.step::before { background: var(--accent-soft); color: var(--accent); font-family: var(--font-display); font-size: 0.95rem; width: 32px; height: 32px; top: -17px; }
.step { border-top-style: dashed; }
.cta-band { border-radius: 28px; }
.faq details { border-bottom-color: var(--line); }

/* hero illustration */
.art { position: relative; max-width: 500px; width: 100%; justify-self: center; }
.art svg { display: block; width: 100%; height: auto; }
.art-chip { position: absolute; display: flex; align-items: center; gap: 10px; background: var(--surface); color: var(--ink); border-radius: 16px; padding: 9px 14px 9px 9px; box-shadow: 0 18px 36px -18px rgba(0, 0, 0, 0.55); font-weight: 600; font-size: 0.9rem; line-height: 1.25; white-space: nowrap; animation: floaty 6s ease-in-out infinite; }
.art-chip i { width: 34px; height: 34px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; flex: none; }
.art-chip small { display: block; font-weight: 500; font-size: 0.76rem; color: var(--muted); }
.art-chip.c1 { top: 18%; left: -6%; }
.art-chip.c2 { top: 2%; right: -4%; animation-delay: -2s; }
.art-chip.c2 i { background: var(--peach); color: #C2613F; }
.art-chip.c3 { bottom: 8%; left: 2%; animation-delay: -4s; }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@media (max-width: 960px) { .art { max-width: 420px; margin-top: 8px; } .art-chip.c1 { left: 0; } .art-chip.c2 { right: 0; } }
@media (max-width: 520px) { .art-chip { font-size: 0.8rem; padding: 7px 11px 7px 7px; } .art-chip i { width: 28px; height: 28px; } .art-chip.c3 { display: none; } }

/* illustrated avatars */
.avatar { position: relative; border-radius: 50%; overflow: visible; background: none; }
.avatar svg { width: 100%; height: 100%; border-radius: 50%; display: block; }
.avatar .lt { position: absolute; right: -3px; bottom: -3px; min-width: 22px; height: 22px; padding: 0 5px; border-radius: 99px; background: var(--accent); color: var(--accent-ink); font: 700 0.72rem/22px var(--font-display); text-align: center; border: 2px solid var(--surface); }
.pf .who .avatar { border-radius: 50%; }

/* Telegram phone */
.how { align-items: center; }
.how .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px 24px; }
.phone-wrap { display: grid; justify-items: center; gap: 18px; }
.phone { width: min(330px, 100%); border-radius: 36px; background: var(--surface); border: 8px solid #13282B; box-shadow: 0 40px 70px -34px rgba(16, 36, 39, 0.55); overflow: hidden; }
.ph-top { display: flex; gap: 10px; align-items: center; padding: 14px 16px; background: #0D4245; color: #F2FAF9; }
.ph-top b { display: block; font-size: 0.95rem; }
.ph-top small { opacity: 0.75; font-size: 0.78rem; }
.ph-av svg { width: 36px; height: 36px; display: block; }
.ph-body { padding: 16px 14px 20px; display: grid; gap: 10px; background: linear-gradient(180deg, var(--mint), var(--surface)); min-height: 300px; align-content: start; }
.bub { max-width: 86%; background: var(--surface); border: 1px solid var(--line); border-radius: 16px 16px 16px 4px; padding: 10px 12px; font-size: 0.88rem; box-shadow: 0 2px 6px rgba(16, 36, 39, 0.06); }
.bub.me { justify-self: end; background: var(--accent); color: var(--accent-ink); border: 0; border-radius: 16px 16px 4px 16px; }
.bub-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: 8px; }
.bub-btns span { text-align: center; padding: 6px 0; border-radius: 10px; background: var(--accent-soft); color: var(--accent); font-weight: 600; font-size: 0.82rem; }
.phone-cap { text-align: center; max-width: 340px; }
.phone-cap h3 { margin: 8px 0 4px; }
.phone-cap p { color: var(--muted); font-size: 0.95rem; }
@media (max-width: 560px) { .how .steps { grid-template-columns: minmax(0, 1fr); } }
@media (prefers-reduced-motion: reduce) { .art-chip { animation: none; } }

/* ---------- state clinic directory ---------- */
.srow4 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) auto; gap: 10px; }
.srow4 .btn { align-self: end; height: 46px; }
.srow-b { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; margin-top: 10px; align-items: end; }
.srow-b .near { height: 46px; }
.near-msg { font-size: 0.86rem; color: var(--muted); min-height: 1.2em; margin-top: 6px; }
@media (max-width: 760px) { .srow4, .srow-b { grid-template-columns: minmax(0, 1fr); } .srow4 .btn, .srow-b .near { width: 100%; } }
.panel.rural { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 16px; align-items: center; }
.panel.rural h3 { margin-bottom: 4px; }
.panel.rural p { color: var(--muted); font-size: 0.95rem; }
.panel.rural .stat { font: 700 0.95rem var(--font-display); color: var(--accent); text-align: right; max-width: 220px; }
@media (max-width: 760px) { .panel.rural { grid-template-columns: minmax(0, 1fr); } .panel.rural .stat { text-align: left; } }
.ebar { margin-left: calc(-1 * var(--gl)); margin-right: calc(-1 * var(--gr)); padding: 8px var(--gr) 8px var(--gl); background: var(--risk-soft); color: var(--risk); font-weight: 600; font-size: 0.92rem; display: flex; gap: 8px; align-items: center; justify-content: center; }
.ebar a { color: inherit; }
.fcard { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 14px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card, 18px); padding: 16px 18px; box-shadow: var(--soft-shadow, none); }
.fcard h3 a { color: var(--ink); text-decoration: none; }
.fcard h3 a:hover { color: var(--accent); text-decoration: underline; }
.fmain { min-width: 0; display: grid; gap: 4px; }
.facts { display: flex; flex-direction: column; gap: 6px; }
@media (max-width: 640px) { .fcard { grid-template-columns: auto minmax(0, 1fr); } .facts { grid-column: 1 / -1; flex-direction: row; } }
.ficon { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); flex: none; }
.ficon svg { width: 24px; height: 24px; }
.ficon.big { width: 72px; height: 72px; } .ficon.big svg { width: 34px; height: 34px; }
.ficon.c-fdp, .ficon.c-fpc { background: var(--peach, #FDEDE4); color: #C2613F; }
.ficon.c-emergency { background: var(--risk-soft); color: var(--risk); }
.note-box { padding: 14px 18px; border-radius: 14px; background: var(--ochre-soft); margin-bottom: 14px; }

/* ownership switch in the clinic search form */
#downs { margin-bottom: 12px; }
@media (max-width: 560px) { #downs { display: grid; width: 100%; } #downs button { padding: 8px 6px; font-size: 0.85rem; } #downs button svg { display: none; } }

/* "Hospitals near me" link in the header */
.nav > a.nearnav { display: inline-flex; align-items: center; gap: 6px; }
.nav > a.nearnav::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #7FE0DC; box-shadow: 0 0 0 3px rgba(127, 224, 220, 0.25); }
@media (max-width: 1240px) { .nav a[data-r="dashboard"] { display: none; } .menu a.mid { display: block; } }

/* ---------- accounts ---------- */
.acct { margin-left: 8px; }
.top .btn.light.acct { background: var(--deep-ink); color: var(--deep); border-color: var(--deep-ink); }
.acc h1 { font-size: clamp(1.8rem, 1.4rem + 2vw, 2.6rem); }
.acc { max-width: 860px; }
.roles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 18px; }
.rolecard { text-align: left; display: grid; gap: 6px; padding: 16px; border-radius: 16px; border: 1.5px solid var(--line); background: var(--surface); cursor: pointer; color: var(--ink); font: inherit; }
.rolecard .icobox { margin-bottom: 4px; }
.rolecard b { font: 600 1.05rem var(--font-display); }
.rolecard span:last-child { color: var(--muted); font-size: 0.9rem; }
.rolecard[aria-pressed="true"] { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
@media (max-width: 640px) { .roles { grid-template-columns: minmax(0, 1fr); } }
.two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 14px; }
@media (max-width: 640px) { .two { grid-template-columns: minmax(0, 1fr); } }
.accsec { border: 0; border-top: 1px solid var(--line); margin: 0 0 6px; padding: 18px 0 6px; min-width: 0; }
.accsec:first-of-type { border-top: 0; padding-top: 0; }
.accsec legend { font: 700 1.1rem var(--font-display); padding: 0 0 10px; }
.flabel { font-size: 0.86rem; font-weight: 600; }
.checks { display: flex; flex-wrap: wrap; gap: 8px 16px; }
.mini { display: inline-flex; align-items: center; gap: 6px; font-size: 0.92rem; cursor: pointer; }
.mini input { accent-color: var(--accent); width: 17px; height: 17px; margin: 0; }
.svcrow { display: grid; grid-template-columns: minmax(0, 1fr) 150px auto auto; gap: 8px; align-items: center; margin-bottom: 8px; }
#wp-list .svcrow { grid-template-columns: minmax(0, 1fr) auto; }
.svcrow input:not([type=checkbox]) { font: 400 1rem var(--font-body); padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg); color: var(--ink); width: 100%; min-width: 0; }
.svcrow input:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 3px var(--accent-soft); }
@media (max-width: 640px) { .svcrow { grid-template-columns: minmax(0, 1fr) 110px; } }
.fld select { font: 400 1rem var(--font-body); }
.pav { width: 76px; height: 76px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; font: 700 1.5rem var(--font-display); flex: none; }
.pav.sm { width: 48px; height: 48px; font-size: 1rem; }
.pre { white-space: pre-line; color: var(--ink-2, var(--ink)); }
.ok-box { background: var(--ok-soft); }
.sechead .btns { display: flex; gap: 8px; flex-wrap: wrap; }

/* ---------- consultations ---------- */
.room-log .them { align-self: flex-start; background: var(--surface); border: 1px solid var(--line); padding: 8px 12px; border-radius: 14px 14px 14px 4px; max-width: 80%; word-break: break-word; }
.room-log .them b { display: block; font-size: 0.78rem; color: var(--accent); }
.room-log small { display: block; font-size: 0.7rem; opacity: 0.7; margin-top: 2px; }
.chatcard { position: sticky; top: 84px; display: grid; gap: 4px; }
.chatcard .room-log { max-height: 52vh; min-height: 240px; }
@media (max-width: 960px) { .chatcard { position: static; } }
.finish { border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; }
.finish summary { padding: 4px 0; font-size: 1rem; }
.finish summary::after { right: 0; }
.callbox { display: grid; place-items: center; gap: 12px; text-align: center; padding: 40px 20px; border-radius: 16px; background: var(--deep); color: var(--deep-ink); }
.callbox svg { width: 46px; height: 46px; }
a.visit.cs-row { color: var(--ink); text-decoration: none; }
a.visit.cs-row:hover { border-color: var(--accent); }
.docsearch { display: grid; gap: 14px; }
.dsrow { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) auto; gap: 10px; align-items: end; }
.dsrow .btn { height: 46px; }
@media (max-width: 760px) { .dsrow { grid-template-columns: minmax(0, 1fr); } }

/* ---------- simple home: four clear actions ---------- */
.acts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-top: 20px; }
.act { display: grid; gap: 6px; align-content: start; padding: 22px 20px; border-radius: var(--r-card, 18px); background: var(--surface); border: 1.5px solid var(--line); color: var(--ink); text-decoration: none; box-shadow: var(--soft-shadow, none); transition: border-color 0.15s, transform 0.15s; }
.act:hover { border-color: var(--accent); transform: translateY(-2px); }
.act-ic { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); margin-bottom: 8px; }
.act-ic svg { width: 26px; height: 26px; }
.act:nth-child(2) .act-ic, .act:nth-child(4) .act-ic { background: var(--peach, #FDEDE4); color: #C2613F; }
.act b { font: 700 1.2rem var(--font-display); }
.act span:last-child { color: var(--muted); font-size: 0.95rem; }
@media (max-width: 960px) { .acts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .acts { grid-template-columns: minmax(0, 1fr); } .act { grid-template-columns: auto minmax(0, 1fr); column-gap: 14px; padding: 16px; } .act-ic { grid-row: span 2; margin: 0; } }
.srow3 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)) auto; gap: 10px; }
.srow3 .btn { align-self: end; height: 48px; }
@media (max-width: 760px) { .srow3 { grid-template-columns: minmax(0, 1fr); } .srow3 .btn { width: 100%; } }
.nearbig { width: 100%; margin-top: 10px; height: 50px; font-size: 1.02rem; }
.hero h1 { margin-top: 0; }
.joinline { margin-top: 30px; color: var(--muted); }
.joinline a { font-weight: 600; }

/* ---------- settings ---------- */
html.big-text { font-size: 112.5%; }
html.big-text body { font-size: 18.5px; }
.setcard { padding: 6px 22px; }
.setrow { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px 24px; align-items: center; padding: 18px 0; border-top: 1px solid var(--line); }
.setrow:first-child { border-top: 0; }
.setrow h3 { font-size: 1.05rem; }
.setrow p { font-size: 0.9rem; margin-top: 2px; }
.setseg { display: inline-grid; }
.setseg button { padding: 8px 12px; }
@media (max-width: 640px) { .setrow { grid-template-columns: minmax(0, 1fr); } .setseg { display: grid; width: 100%; } }
.menu a.setlink { font-weight: 600; }

/* ---------- visit requests ---------- */
.apform .apchips { gap: 8px; }
.apform .apchips .chip { padding: 10px 16px; font-size: 0.95rem; }
.apform .seg { display: inline-grid; margin-bottom: 0; }
.apnote { margin-top: 6px; font-size: 0.92rem; }
.apreply { grid-column: 1 / -1; display: grid; gap: 4px; padding: 14px; border-radius: 12px; background: var(--accent-soft); }
.apreply .btns { display: flex; gap: 10px; flex-wrap: wrap; }
.apreply input, .apreply select { width: 100%; }

/* ---------- unread counts, checks ---------- */
a[data-n]::after { content: attr(data-n); display: inline-block; min-width: 18px; height: 18px; padding: 0 5px; margin-left: 6px; border-radius: 99px; background: var(--risk); color: #fff; font: 700 0.72rem/18px var(--font-body); text-align: center; vertical-align: 1px; }
.admrow + .admrow { margin-top: 12px; }
.admrow h3 { font-size: 1.1rem; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.note-box .ic, .badge .ic { vertical-align: -2px; }
.menu a[hidden] { display: none !important; }

/* ---------- doctor-first home, doctor cards, prices ---------- */
.hfform { margin-top: 26px; background: var(--surface); color: var(--ink); border-radius: var(--r-card, 18px); padding: 18px; box-shadow: var(--soft-shadow); }
.hfform .srow3 { display: grid; grid-template-columns: 1fr 1fr auto; gap: 12px; align-items: end; }
.hfform .sf label { display: block; font: 600 0.85rem var(--font-body); margin-bottom: 6px; color: var(--muted); }
.hfform select { width: 100%; }
.hfmore { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; margin-top: 14px; }
.hfmore .btn.light { background: var(--accent-soft); color: var(--accent); border-color: transparent; }
.hflink { display: inline-flex; gap: 6px; align-items: center; font-weight: 600; color: var(--accent); text-decoration: none; }
.hflink:hover { text-decoration: underline; }
@media (max-width: 720px) { .hfform .srow3 { grid-template-columns: 1fr; } .hfform .btn.big { width: 100%; justify-content: center; } }
.why { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 18px; }
.whyi { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card, 18px); padding: 20px; }
.whyi b { display: block; font: 600 1.1rem var(--font-display); margin: 12px 0 6px; }
.whyi p { margin: 0; color: var(--muted); }
@media (max-width: 760px) { .why { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .why { grid-template-columns: 1fr; } }
.doccard .facts { align-items: flex-end; }
.cpfrom { text-align: right; margin-bottom: 4px; }
.cpfrom small, .cpaside small { display: block; font-size: 0.78rem; color: var(--muted); }
.cpfrom b { font: 700 1.05rem var(--font-display); color: var(--accent); }
.cpaside { margin: 4px 0 14px; }
.cpaside b { display: block; font: 700 1.3rem var(--font-display); color: var(--accent); }
.cpaside span { display: block; font-size: 0.9rem; margin-top: 2px; }
.cpnote { margin: 4px 0 0; padding: 10px 14px; border-radius: 12px; background: var(--accent-soft); font-size: 0.95rem; }
.three { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 640px) { .three { grid-template-columns: 1fr; } .doccard .facts { align-items: stretch; } .cpfrom { text-align: left; } }
.chkf { gap: 8px; }
.prform { padding: 18px; }
.prgrid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 12px; }
.prgrid .fld { margin: 0; }
.prbar { display: flex; justify-content: space-between; gap: 12px; align-items: center; flex-wrap: wrap; margin-top: 12px; }
@media (max-width: 760px) { .prgrid { grid-template-columns: 1fr 1fr; } .prgrid .fld:first-child { grid-column: 1 / -1; } }
.prlist { display: grid; gap: 10px; }
.prow { display: flex; justify-content: space-between; gap: 14px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 14px 18px; box-shadow: var(--soft-shadow); }
.prow h3 { font-size: 1.05rem; margin: 0 0 4px; }
.prow .meta { font-size: 0.92rem; color: var(--muted); }
.prow .fine { margin-top: 4px; }
.prside { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; text-align: right; }
.prside b { font: 700 1.15rem var(--font-display); white-space: nowrap; }
@media (max-width: 560px) { .prow { flex-direction: column; align-items: stretch; } .prside { flex-direction: row; justify-content: space-between; align-items: center; } }

/* ---------- reviews ---------- */
.stars { color: #E0A526; letter-spacing: 1px; white-space: nowrap; }
.stars .off { color: var(--line); }
.rating { display: inline-flex; gap: 4px; align-items: center; font-size: 0.9rem; font-weight: 500; color: var(--muted); white-space: nowrap; }
.rating b { color: var(--ink); }
h2 .rating { font-family: var(--font-body); margin-left: 8px; vertical-align: 3px; }
.rbadge { text-decoration: none; }
.rvstars { display: flex; gap: 6px; }
.rvstars button { font-size: 2rem; line-height: 1; width: 48px; height: 48px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--line); cursor: pointer; }
.rvstars button[aria-pressed="true"] { color: #E0A526; border-color: #E0A526; background: color-mix(in srgb, #E0A526 12%, var(--surface)); }
.rvcard { margin-bottom: 18px; }
.rvinline { grid-column: 1 / -1; }
.rvinline .rvcard { margin: 6px 0 0; box-shadow: none; }
.rvitem { padding: 14px 0; border-top: 1px solid var(--line); }
.rvitem:first-of-type { border-top: 0; }
.rvitem p { margin: 6px 0 0; }
.rvtop { display: flex; flex-wrap: wrap; gap: 6px; align-items: baseline; }
.rvreply { margin-top: 8px; padding: 10px 12px; border-radius: 10px; background: var(--accent-soft); font-size: 0.94rem; }
.rvreplyform { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.rvreplyform input { flex: 1 1 220px; }

/* photos in consultations */
.vh { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.room-send.withph { grid-template-columns: auto minmax(0, 1fr) auto; }
.phbtn { padding-left: 12px; padding-right: 12px; cursor: pointer; }
.phbtn:focus-within, .phadd:focus-within { outline: 2px solid var(--accent); outline-offset: 2px; }
.phpend { grid-column: 1 / -1; display: flex; align-items: center; gap: 10px; padding: 8px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg); font-size: 0.9rem; }
.phpend img { width: 56px; height: 56px; object-fit: cover; border-radius: 8px; flex: none; }
.phpend span { flex: 1; min-width: 0; }
.msgph { display: block; padding: 0; margin: 2px 0 4px; border: 0; background: var(--line); border-radius: 10px; overflow: hidden; cursor: zoom-in; min-width: 120px; min-height: 90px; }
.msgph img { display: block; width: 100%; max-width: 240px; max-height: 240px; object-fit: cover; }
.msgph img:not([src]) { width: 160px; height: 120px; }
.msgph.gone { display: none; }
.room-log .hasph { padding: 6px; }
.room-log .hasph small, .room-log .hasph b { padding: 0 6px; }
.phfld { margin-bottom: 14px; }
.phfld > b { display: block; font-size: 0.86rem; margin-bottom: 6px; }
.phrow { display: flex; flex-wrap: wrap; gap: 10px; }
.phthumb { position: relative; width: 84px; height: 84px; }
.phthumb img { width: 100%; height: 100%; object-fit: cover; border-radius: 10px; border: 1px solid var(--line); }
.phthumb button { position: absolute; top: -8px; right: -8px; width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font-size: 1.1rem; line-height: 1; cursor: pointer; }
.phadd { width: 84px; height: 84px; display: grid; place-content: center; justify-items: center; gap: 4px; border: 1.5px dashed var(--line); border-radius: 10px; font-size: 0.78rem; text-align: center; color: var(--muted); cursor: pointer; padding: 4px; }
.phadd .ic { width: 22px; height: 22px; }
.phview img { display: block; width: 100%; height: auto; border-radius: 12px; margin: 12px 0; background: var(--line); }
/* long Uzbek labels in form toggles wrap on phones instead of running off the screen */
@media (max-width: 520px) { .form .seg button { white-space: normal; text-align: center; padding: 8px 8px; line-height: 1.25; } }

/* audio and video calls: a dark full-screen call, or a small floating box while the patient or doctor uses the chat */
.call { position: fixed; inset: 0; z-index: 58; display: grid; grid-template-rows: auto minmax(0, 1fr) auto auto; grid-template-areas: "top" "stage" "bar" "note"; gap: 10px; padding: max(12px, env(safe-area-inset-top, 0px)) max(12px, env(safe-area-inset-right, 0px)) max(10px, env(safe-area-inset-bottom, 0px)) max(12px, env(safe-area-inset-left, 0px)); background: #0b1d20; color: #fff; }
.call-top { grid-area: top; display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding: 4px 4px 0; }
.call-top h2 { font-size: 1.02rem; margin: 0; color: #fff; }
.call-st { margin: 3px 0 0; font-size: 0.92rem; color: rgba(255, 255, 255, 0.82); max-width: 60ch; }
.call[data-st="err"] .call-st { color: #ffc2b8; }
.call[data-st="on"] .call-st { color: #9be7c4; }
.call-time { font-family: var(--font-mono); font-size: 0.95rem; padding-top: 2px; }
.call-stage { grid-area: stage; position: relative; overflow: hidden; border-radius: 18px; background: #040c0d; }
.call-them { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #040c0d; opacity: 0; }
.call.them-on .call-them { opacity: 1; }
.call-face { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 12px; text-align: center; padding: 16px; }
.call.them-on .call-face { display: none; }
.call-av { width: 104px; height: 104px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, 0.12); }
.call-av svg { width: 52px; height: 52px; }
.call[data-st="wait"] .call-av { animation: callpulse 1.8s ease-in-out infinite; }
@keyframes callpulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(155, 231, 196, 0.45); } 50% { box-shadow: 0 0 0 18px rgba(155, 231, 196, 0); } }
@media (prefers-reduced-motion: reduce) { .call[data-st="wait"] .call-av { animation: none; } }
.call-peer { font-size: 1.15rem; }
.call-me { position: absolute; right: 12px; bottom: 12px; width: clamp(92px, 24%, 190px); aspect-ratio: 3 / 4; object-fit: cover; border-radius: 12px; border: 2px solid rgba(255, 255, 255, 0.55); background: #111; transform: scaleX(-1); }
.call.back .call-me { transform: none; }
.call:not(.is-video) .call-me, .call.me-off .call-me { display: none; }
.call-flag { position: absolute; left: 12px; top: 12px; padding: 6px 10px; border-radius: 8px; background: rgba(0, 0, 0, 0.6); font-size: 0.86rem; }
.call-flag[hidden], .call-tap[hidden] { display: none; }
.call-tap { position: absolute; left: 50%; bottom: 20px; transform: translateX(-50%); padding: 12px 18px; border-radius: 12px; border: 0; background: #fff; color: #0b1d20; font: 600 0.95rem var(--font-body); cursor: pointer; }
.call-bar { grid-area: bar; display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 14px; padding: 4px 0; }
.cb { width: 56px; height: 56px; border-radius: 50%; border: 0; display: grid; place-items: center; background: rgba(255, 255, 255, 0.14); color: #fff; cursor: pointer; }
.cb svg { width: 26px; height: 26px; }
.cb[aria-pressed="true"] { background: #fff; color: #0b1d20; }
.cb.end { width: 66px; background: #d6453a; border-radius: 30px; }
.cb:disabled { opacity: 0.35; cursor: default; }
.cb[hidden], .cb[data-c="full"] { display: none; }
.cb:focus-visible, .call-tap:focus-visible, .call-retry:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
.call-retry { border-color: #fff; background: #fff; color: #0b1d20; }
.call-note { grid-area: note; margin: 0; text-align: center; font-size: 0.8rem; color: rgba(255, 255, 255, 0.66); }
.call.mini { inset: auto max(12px, env(safe-area-inset-right, 0px)) max(12px, env(safe-area-inset-bottom, 0px)) auto; width: min(250px, calc(100% - 24px)); grid-template-rows: auto auto; grid-template-areas: "stage" "bar"; gap: 8px; padding: 8px; border-radius: 18px; box-shadow: 0 18px 40px -12px rgba(0, 0, 0, 0.6); }
.call.mini .call-top, .call.mini .call-note, .call.mini .call-me, .call.mini .cb[data-c="cam"], .call.mini .cb[data-c="flip"], .call.mini .cb[data-c="mini"] { display: none; }
.call.mini .cb[data-c="full"] { display: grid; }
.call.mini .call-stage { height: 150px; border-radius: 12px; }
.call.mini:not(.them-on) .call-stage { height: 84px; }
.call.mini .call-face { grid-auto-flow: column; gap: 10px; }
.call.mini .call-av { width: 44px; height: 44px; }
.call.mini .call-av svg { width: 24px; height: 24px; }
.call.mini .call-peer { font-size: 0.92rem; }
.call.mini .call-bar { gap: 10px; padding: 0; }
.call.mini .cb { width: 44px; height: 44px; }
.call.mini .cb svg { width: 22px; height: 22px; }
.call.mini .cb.end { width: 54px; }
.call.mini .call-tap { bottom: 8px; padding: 8px 12px; font-size: 0.82rem; }
body:has(.call.mini) { padding-bottom: 190px; }
@media (max-width: 520px) { .cb { width: 52px; height: 52px; } .cb.end { width: 62px; } .call-bar { gap: 10px; } }

/* the doctor is calling: shown at the top of the patient's consultation */
.ring { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 14px; padding: 14px 16px; border-radius: 14px; background: var(--accent-soft); border: 1.5px solid var(--accent); }
.ring > div { display: grid; flex: 1 1 180px; }
.ring span { color: var(--muted); font-size: 0.92rem; }
.ring-ic { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: var(--accent-ink) !important; animation: callpulse 1.8s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) { .ring-ic { animation: none; } }

/* paying for a consultation */
.paycard { margin-bottom: 18px; border: 1.5px solid var(--accent); }
.payamt { font: 700 clamp(1.6rem, 1.3rem + 1.2vw, 2.1rem) var(--font-display); margin: 6px 0 4px; }
.paybtns { display: flex; flex-wrap: wrap; gap: 10px; margin: 14px 0 10px; }
.paybtns .btn { flex: 1 1 180px; }
.paycard .note-box { margin-top: 12px; }

/* paying doctors: admin payouts tab and the doctor's earnings card */
.admtabs { margin-bottom: 18px; }
.postats { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; margin: 18px 0 20px; }
.postat { display: grid; gap: 4px; padding: 14px 16px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); }
.postat span { color: var(--muted); font-size: 0.88rem; }
.postat b { font-size: 1.15rem; }
.pobal { display: grid; justify-items: end; text-align: right; }
.pobal span { color: var(--muted); font-size: 0.86rem; }
.pobal b { font-size: 1.25rem; }
.pobal.big { justify-items: start; text-align: left; margin-top: 6px; }
.pobal.big b { font: 700 clamp(1.6rem, 1.3rem + 1.2vw, 2.1rem) var(--font-display); }
.neg { color: var(--risk); }
.porow { display: grid; grid-template-columns: 8.5em minmax(0, 1fr) auto; gap: 4px 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.porow:last-child { border-bottom: 0; }
.porow.wide { grid-template-columns: 8.5em minmax(0, 1.2fr) auto minmax(0, 1fr) auto; }
.poform { margin-top: 12px; }
@media (max-width: 640px) { .porow, .porow.wide { grid-template-columns: minmax(0, 1fr) auto; } .porow .muted { grid-column: 1 / -1; } }

/* importing doctors from a list, and invite links */
.imsteps { margin: 10px 0 14px; padding-left: 1.3em; }
.imsteps li { margin: 4px 0; }
.imcols { margin: 0 0 14px; }
.imcols summary { cursor: pointer; font-weight: 600; }
.imcols code { font-family: var(--font-mono); font-size: 0.88rem; }
.imtable-wrap { overflow-x: auto; margin-top: 10px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.imtable { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
.imtable th, .imtable td { padding: 8px 10px; text-align: left; border-bottom: 1px solid var(--line); white-space: nowrap; }
.imtable th { color: var(--muted); font-weight: 600; }
.imtable tr.bad td:last-child { color: var(--risk); white-space: normal; min-width: 180px; }
.imtable td .ic { width: 16px; height: 16px; vertical-align: -3px; }
.imres { display: grid; gap: 8px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.imres:last-child { border-bottom: 0; }
.imlink { display: flex; gap: 8px; align-items: center; }
.imlink input { flex: 1 1 auto; min-width: 0; font: 0.88rem var(--font-mono); padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); color: var(--ink); }

/* home: why Shifokor exists, "usually" next to "with Shifokor" */
.mission .lead { max-width: 70ch; }
.mis { margin-top: 18px; border: 1px solid var(--line); border-radius: var(--r-card, 18px); overflow: hidden; background: var(--surface); }
.mishead, .misrow { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.mishead span { padding: 12px 20px; font-weight: 600; font-size: 0.9rem; color: var(--muted); }
.mishead span + span { color: var(--accent); }
.misrow { border-top: 1px solid var(--line); }
.misrow p { margin: 0; padding: 14px 20px; }
.misrow .was { color: var(--muted); }
.misrow .now { display: flex; gap: 8px; align-items: flex-start; font-weight: 500; }
.misrow .now .ic { color: var(--accent); flex: none; margin-top: 3px; }
@media (max-width: 640px) {
  .mishead { display: none; }
  .misrow { grid-template-columns: minmax(0, 1fr); }
  .misrow p::before { content: attr(data-l); display: block; font-size: 0.78rem; font-weight: 600; color: var(--muted); margin-bottom: 2px; }
  .misrow .was { padding-bottom: 4px; }
  .misrow .now { display: block; padding-top: 4px; }
  .misrow .now .ic { display: none; }
}

/* care around a consultation: doctor photos, "online now", first available doctor, follow-up, suitable conditions */
img.pimg { object-fit: cover; padding: 0; }
.pav.lg { width: 96px; height: 96px; font-size: 1.8rem; }
.badge.live { background: var(--ok-soft); color: var(--ok); }
.badge.live .dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 3px color-mix(in srgb, currentColor 25%, transparent); }
.roles.two-roles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 520px) { .roles.two-roles { grid-template-columns: minmax(0, 1fr); } }
.livecard h2 { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.livegrid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.photobox { display: flex; gap: 14px; align-items: flex-start; padding-left: 20px; border-left: 1px solid var(--line); }
@media (max-width: 760px) { .livegrid { grid-template-columns: minmax(0, 1fr); } .photobox { padding: 16px 0 0; border-left: 0; border-top: 1px solid var(--line); } }
.carecard { margin-bottom: 18px; border: 1.5px solid var(--accent); }
.carecard.warn { border-color: var(--risk); }
.carecard p { margin: 6px 0 14px; }
.btns { display: flex; flex-wrap: wrap; gap: 10px; }

/* which problems suit an online consultation */
.oc { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 18px; }
.occol { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card, 18px); padding: 18px 20px; }
.occol h3 { display: flex; align-items: center; gap: 8px; font-size: 1.05rem; margin: 0 0 10px; }
.occol h3 .ic { color: var(--accent); }
.occol.not { background: var(--risk-soft); border-color: transparent; }
.occol.not h3 .ic { color: var(--risk); }
.occol ul { margin: 0; padding-left: 18px; display: grid; gap: 4px; }
.ocpromise { display: flex; gap: 8px; align-items: flex-start; margin: 16px 0 0; font-weight: 600; }
.ocpromise .ic { color: var(--accent); flex: none; margin-top: 3px; }
.oc.mini { grid-template-columns: minmax(0, 1fr); gap: 10px; }
.ocmini { margin-top: 12px; border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; }
.ocmini summary { cursor: pointer; font-weight: 600; }
@media (max-width: 760px) { .oc { grid-template-columns: minmax(0, 1fr); } }

/* home: task cards with one next step each, a trust strip and a call-to-action band */
.act .actp { color: var(--muted); font-size: 0.95rem; }
.act .actgo { margin-top: 8px; font-weight: 600; color: var(--accent); font-size: 0.95rem; }
.act .actlive { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 0.88rem; color: var(--muted); }
.act.now { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.act.now .act-ic { background: rgba(255, 255, 255, 0.18); color: var(--accent-ink); }
.act.now .actp, .act.now .actgo, .act.now .actlive { color: var(--accent-ink); }
.act.now .actp { opacity: 0.88; }
.trust { list-style: none; margin: 18px 0 0; padding: 14px 18px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card, 18px); }
.trust li { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 0.92rem; }
.trust .ic { color: var(--accent); flex: none; width: 22px; height: 22px; }
@media (max-width: 900px) { .trust { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .trust { grid-template-columns: minmax(0, 1fr); } }
.ctaband { text-align: center; }
.ctaband h2 { color: var(--deep-ink); }
.ctaband p { opacity: 0.85; margin: 8px auto 20px; max-width: 52ch; }
.ctaband .btns { justify-content: center; }
.ctaband .btn.ghost { color: var(--deep-ink); border-color: var(--deep-line); }
.ctaband .btn.ghost:hover { background: var(--deep-line); }
@media (max-width: 520px) { .act > :not(.act-ic) { grid-column: 2; } }
@media (max-width: 640px) { .facts { flex-wrap: wrap; } .facts .cpfrom { flex-basis: 100%; } }

/* photos (Unsplash, free licence) and the do‘ppi logo */
.logo { width: 32px; height: 32px; }
.art-photo { display: block; width: 100%; aspect-ratio: 1 / 1; object-fit: cover; object-position: 62% center; border-radius: 28px; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.6); }
.act { overflow: hidden; }
.act-media { display: block; margin: -22px -20px 12px; height: 132px; background: var(--accent-soft); color: var(--accent); overflow: hidden; }
.act-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.act-media.plain { display: grid; place-items: center; }
.act-media.plain svg { width: 54px; height: 54px; opacity: 0.85; }
.act:nth-child(4) .act-media.plain { background: var(--peach, #FDEDE4); color: #C2613F; }
.act-media + .act-ic { display: none; }
.act.now .act-media img { opacity: 0.95; }
@media (max-width: 520px) { .act-media { display: none; } .act-media + .act-ic { display: grid; } }
.misgrid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 440px); gap: clamp(20px, 4vw, 44px); align-items: center; }
.shot { margin: 0; position: relative; }
.shot img { display: block; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--r-card, 18px); }
.shot figcaption { position: absolute; left: 12px; bottom: 12px; padding: 4px 10px; border-radius: 99px; background: rgba(0, 0, 0, 0.55); color: #fff; font-size: 0.82rem; }
.shot.wide { margin-bottom: 22px; }
.shot.wide img { aspect-ratio: 3 / 1; }
@media (max-width: 760px) { .misgrid { grid-template-columns: minmax(0, 1fr); } .shot.wide img { aspect-ratio: 2 / 1; } }
.credits { margin-top: 18px; text-align: center; }
.ctagrid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 360px); gap: 28px; align-items: center; text-align: left; }
.ctagrid .btns { justify-content: flex-start; }
.ctagrid p { margin-left: 0; }
.ctaart { width: 100%; height: auto; display: block; }
@media (max-width: 760px) { .ctagrid { grid-template-columns: minmax(0, 1fr); text-align: center; } .ctagrid .btns { justify-content: center; } .ctagrid p { margin-left: auto; } .ctaart { max-width: 280px; margin: 0 auto; } }

/* "Onalar uchun" */
.onapanel { background: var(--peach, #FDEDE4); border-color: transparent; }
.onapanel .icobox { background: #fff; color: #C2613F; }
.onapanel .btns { justify-content: flex-end; }
@media (max-width: 760px) { .onapanel .btns { justify-content: flex-start; } }
.onaweek { display: grid; gap: 6px; margin-bottom: 18px; }
.onaweek > span { color: var(--muted); font-weight: 600; font-size: 0.9rem; }
.onaweek > b { font: 700 clamp(2rem, 1.6rem + 1.6vw, 2.8rem) var(--font-display); line-height: 1.1; }
.onaweek small { color: var(--muted); }
.onabar { height: 10px; border-radius: 99px; background: var(--accent-soft); overflow: hidden; }
.onabar i { display: block; height: 100%; border-radius: 99px; background: var(--accent); }
.onacheck { margin-bottom: 18px; }
.onacheck .signs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px 14px; margin-bottom: 14px; }
@media (max-width: 520px) { .onacheck .signs { grid-template-columns: minmax(0, 1fr); } }
.onaside { display: grid; gap: 18px; align-content: start; }
.sched { list-style: none; margin: 8px 0 10px; padding: 0; display: grid; gap: 6px; }
.sched li { display: grid; grid-template-columns: 6em minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 8px 10px; border-radius: 10px; }
.sched li.past { color: var(--muted); }
.sched li.next { background: var(--ochre-soft); }
.menu a.menuona { font-weight: 600; }

/* search by specialty on the home page */
.specgrid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-top: 18px; }
.specbox { display: flex; flex-direction: column; gap: 2px; padding: 14px 16px; border: 1.5px solid var(--line); border-radius: 14px; background: var(--surface); color: var(--ink); text-decoration: none; transition: border-color .15s, transform .15s; }
.specbox:hover { border-color: var(--accent); transform: translateY(-1px); }
.specbox .muted { font-size: .88rem; }
@media (max-width: 960px) { .specgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 640px) { .specgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* a lighter, friendlier look (after Doctor Anywhere): white top bar, brighter hero, round buttons, big step numbers, review cards */
.top { background: var(--surface); color: var(--ink); border-bottom: 1px solid var(--line); box-shadow: 0 8px 20px -18px rgba(15, 76, 79, 0.55); }
.brand { color: var(--ink); }
.nav a, .ddbtn { color: var(--ink); opacity: 0.78; }
.nav a:hover, .nav a[aria-current="page"], .ddbtn:hover, .ddbtn[aria-expanded="true"], .ddbtn[aria-current="page"] { background: var(--accent-soft); color: var(--accent); opacity: 1; }
.lang { border-color: var(--line); }
.lang button { color: var(--ink); }
.lang button[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); }
.top .btn.light.acct { background: transparent; color: var(--accent); border-color: var(--accent); box-shadow: none; }
.top .btn.light.acct:hover { background: var(--accent-soft); filter: none; }
.btn, .btn.sm { border-radius: 999px; }
.band.deep { background: radial-gradient(circle at 88% 18%, rgba(255, 255, 255, 0.10) 0 140px, transparent 141px), radial-gradient(circle at 96% 92%, rgba(255, 255, 255, 0.07) 0 260px, transparent 261px), linear-gradient(135deg, #17838E 0%, #126670 45%, #0F4C4F 100%); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .band.deep { background: radial-gradient(circle at 88% 18%, rgba(255, 255, 255, 0.05) 0 140px, transparent 141px), linear-gradient(135deg, #0F3F43 0%, #0A2A2C 100%); } }
:root[data-theme="dark"] .band.deep { background: radial-gradient(circle at 88% 18%, rgba(255, 255, 255, 0.05) 0 140px, transparent 141px), linear-gradient(135deg, #0F3F43 0%, #0A2A2C 100%); }
.herotag { display: inline-block; margin: 14px 0 0; padding: 6px 16px; border-radius: 10px; background: var(--deep-ink); color: var(--deep); font: 700 clamp(1.05rem, 0.9rem + 0.8vw, 1.45rem) var(--font-display); transform: rotate(-1.2deg); box-shadow: 0 10px 24px -14px rgba(0, 0, 0, 0.55); }
.bigsteps .steps { gap: 28px; }
.bigsteps .step { border-top: 0; padding-top: 0; }
.bigsteps .step::before { content: "0" counter(s); position: static; display: block; width: auto; height: auto; background: none; color: var(--accent); font: 800 clamp(2.6rem, 2rem + 2vw, 3.6rem)/1 var(--font-display); opacity: 0.4; margin-bottom: 8px; }
.hrv { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 18px; }
.hrvi { margin: 0; display: flex; flex-direction: column; gap: 12px; padding: 22px; border-radius: var(--r-card, 18px); background: linear-gradient(160deg, #1C97A2, #0F6E74); color: #fff; box-shadow: 0 16px 30px -22px rgba(15, 76, 79, 0.9); }
.hrvi .stars { color: #FFD66B; letter-spacing: 2px; }
.hrvi blockquote { margin: 0; flex: 1; font-size: 1.02rem; line-height: 1.55; }
.hrvi figcaption { display: grid; gap: 2px; font-size: 0.9rem; }
.hrvi figcaption a { color: #fff; opacity: 0.85; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .hrvi { background: linear-gradient(160deg, #135F66, #0B3E42); } }
:root[data-theme="dark"] .hrvi { background: linear-gradient(160deg, #135F66, #0B3E42); }
@media (max-width: 860px) { .hrv { grid-template-columns: minmax(0, 1fr); } }
.emline { display: flex; gap: 10px; align-items: flex-start; margin: 4px 0 18px; padding: 10px 14px; border-radius: 12px; background: var(--risk-soft); color: var(--ink); font-size: 0.93rem; }
.emline .ic { color: var(--risk); flex: none; width: 18px; height: 18px; margin-top: 2px; }
.emline a { color: var(--risk); font-weight: 700; }

/* phone pictures of the app */
.hero { grid-template-columns: minmax(0, 1fr) minmax(0, 540px); }
.phones { display: flex; gap: 14px; justify-content: center; align-items: flex-end; }
.phstep { margin: 0; display: grid; gap: 12px; justify-items: center; text-align: center; color: var(--deep-ink); font: 700 0.95rem/1.25 var(--font-display); }
.phstep small { display: block; font: 500 0.78rem var(--font-body); opacity: 0.8; }
.phstep:nth-child(2) { transform: translateY(-18px); }
.phn { width: 168px; aspect-ratio: 9 / 19; border-radius: 28px; background: #10191B; padding: 6px; box-shadow: 0 26px 50px -24px rgba(0, 0, 0, 0.7), inset 0 0 0 1.5px #3A4648; flex: none; text-align: left; }
.phn.big { width: 250px; border-radius: 38px; padding: 8px; }
.phn .scr { position: relative; height: 100%; border-radius: 22px; overflow: hidden; background: #F6FAFA; color: #12262B; font: 400 9px/1.35 var(--font-body); padding: 22px 8px 8px; display: flex; flex-direction: column; gap: 6px; }
.phn.big .scr { border-radius: 31px; font-size: 12px; }
.phn .scr::before { content: ""; position: absolute; top: 6px; left: 50%; width: 46px; height: 10px; margin-left: -23px; border-radius: 99px; background: #10191B; z-index: 2; }
.phn .ic { width: 1.25em; height: 1.25em; }
.pbar { display: flex; align-items: center; gap: 5px; font-size: 1.15em; }
.pbar img { width: 16px; height: 16px; }
.pbar.chat { border-bottom: 1px solid #DDE8E8; padding-bottom: 6px; }
.pbar small, .pdoc small { display: block; color: #5B6F73; font-size: 0.85em; }
.psearch { display: flex; align-items: center; gap: 5px; background: #fff; border: 1px solid #D3E0E1; border-radius: 99px; padding: 5px 8px; color: #5B6F73; }
.pchips { display: flex; gap: 4px; flex-wrap: wrap; }
.pchips span { padding: 2px 7px; border-radius: 99px; background: #E3EEEE; font-size: 0.9em; }
.pchips .on { background: #0A7F83; color: #fff; }
.pdoc { display: flex; gap: 6px; align-items: center; background: #fff; border-radius: 10px; padding: 6px; box-shadow: 0 2px 6px -4px rgba(0, 0, 0, 0.3); }
.pdoc b { display: block; font-size: 1.02em; }
.pav2 { width: 26px; height: 26px; border-radius: 50%; color: #fff; display: grid; place-items: center; font: 700 0.9em var(--font-body); flex: none; }
.pst { font-style: normal; color: #A9680A; font-weight: 700; }
.pbtn { margin-top: auto; text-align: center; background: #0A7F83; color: #fff; border-radius: 99px; padding: 6px; font-weight: 700; }
.pmsgs { display: flex; flex-direction: column; gap: 6px; flex: 1; }
.pb { max-width: 85%; padding: 6px 8px; border-radius: 10px 10px 10px 2px; background: #fff; box-shadow: 0 2px 6px -4px rgba(0, 0, 0, 0.3); }
.pb.me { align-self: flex-end; background: #0A7F83; color: #fff; border-radius: 10px 10px 2px 10px; }
.pmsgph { align-self: flex-end; width: 60%; height: 54px; border-radius: 10px; background: linear-gradient(135deg, #F3C9B5, #E7A98E); display: grid; place-items: center; color: #fff; }
.pin2 { display: flex; justify-content: space-between; align-items: center; background: #fff; border: 1px solid #D3E0E1; border-radius: 99px; padding: 5px 8px; color: #5B6F73; }
.phn.pcall .scr { padding: 0; background: #0F2E30; }
.pphoto { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 30% 50%; }
.ptop { position: absolute; top: 22px; left: 0; right: 0; text-align: center; color: #fff; text-shadow: 0 1px 6px rgba(0, 0, 0, 0.6); }
.ptop b { display: block; font-size: 1.15em; }
.pself { position: absolute; right: 8px; top: 60px; width: 26%; aspect-ratio: 3 / 4; border-radius: 8px; background: linear-gradient(160deg, #6E8B90, #2E4A4E); border: 2px solid #fff; }
.pctl { position: absolute; left: 0; right: 0; bottom: 12px; display: flex; justify-content: center; gap: 7px; }
.pctl i { width: 26px; height: 26px; border-radius: 50%; background: rgba(255, 255, 255, 0.9); color: #12262B; display: grid; place-items: center; }
.phn.big .pctl i { width: 38px; height: 38px; }
.pctl i.end { background: #E5484D; color: #fff; }
.phello { margin: 2px 0 0; font: 700 1.25em var(--font-display); }
.ptiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; text-align: center; font-size: 0.85em; }
.ptiles i { display: grid; place-items: center; width: 26px; height: 26px; margin: 0 auto 3px; border-radius: 50%; background: #DCF0EF; color: #0A7F83; }
.psub { font-size: 1.05em; margin-top: 4px; }
.pcards { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; }
.pcards span { background: #fff; border-radius: 10px; padding: 7px; box-shadow: 0 2px 6px -4px rgba(0, 0, 0, 0.3); color: #0A7F83; }
.pcards b { display: block; color: #12262B; margin-top: 3px; }
.pcards small { color: #5B6F73; }
.pbanner { margin-top: auto; display: flex; gap: 6px; align-items: center; padding: 8px; border-radius: 10px; background: linear-gradient(120deg, #F7C6C0, #EBD0E8); color: #6B2C3A; font-weight: 700; }
@media (max-width: 1100px) { .phn { width: 140px; } .phstep:nth-child(2) { transform: none; } }
@media (max-width: 960px) { .hero { grid-template-columns: minmax(0, 1fr); } .phones { justify-content: flex-start; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 2px 10px; } .phstep { scroll-snap-align: start; } }
@media (max-width: 520px) { .phn { width: 132px; } .phstep { font-size: 0.85rem; } }

/* "see a doctor online" with a big phone, and the trust cards */
.band.soft { background: var(--surface); border-block: 1px solid var(--line); }
.vcgrid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 460px); gap: clamp(24px, 5vw, 64px); align-items: center; }
.vcregs { list-style: none; margin: 16px 0 24px; padding: 0; columns: 2; column-gap: 24px; }
.vcregs li { padding: 3px 0 3px 16px; position: relative; break-inside: avoid; }
.vcregs li::before { content: ""; position: absolute; left: 0; top: 0.75em; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.vcregs a { color: var(--ink); text-decoration: none; }
.vcregs a:hover { color: var(--accent); text-decoration: underline; }
.vcart { position: relative; display: grid; place-items: center; padding: 34px 0; border-radius: 28px; background: radial-gradient(circle at 75% 25%, rgba(255, 255, 255, 0.18) 0 90px, transparent 91px), linear-gradient(140deg, #1C97A2, #0F5E63); }
.tcards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; padding-bottom: clamp(36px, 5vw, 64px); }
.tcard { display: grid; grid-template-columns: 96px minmax(0, 1fr); overflow: hidden; border-radius: 22px; background: var(--bg); border: 1px solid var(--line); }
.tcard > div:last-child { padding: 18px 18px 18px 16px; }
.tcard b { display: block; font: 700 1.05rem/1.3 var(--font-display); margin-bottom: 6px; }
.tcard p { margin: 0; color: var(--muted); font-size: 0.93rem; }
.tcimg { display: grid; place-items: center; color: #fff; }
.tcimg .ic { width: 36px; height: 36px; }
.tcimg.t0 { background: linear-gradient(160deg, #2BA7B4, #0F6E74); }
.tcimg.t1 { background: linear-gradient(160deg, #F0A27E, #C2613F); }
.tcimg.t2 { background: linear-gradient(160deg, #7C8BE0, #4A57B0); }
@media (max-width: 960px) { .vcgrid { grid-template-columns: minmax(0, 1fr); } .tcards { grid-template-columns: minmax(0, 1fr); } }

/* how to use: a phone with a big 01, and numbered steps */
.howgrid { display: grid; grid-template-columns: minmax(0, 420px) minmax(0, 1fr); gap: clamp(24px, 5vw, 72px); align-items: center; }
.howart { position: relative; display: grid; place-items: center; padding: 20px 0; }
.howart::before { content: ""; position: absolute; width: 300px; height: 300px; border-radius: 50%; border: 46px solid var(--accent-soft); }
.howart .phn { position: relative; z-index: 1; width: 220px; }
.howart .phn .scr { font-size: 11px; }
.bignum { position: absolute; left: 0; bottom: 0; z-index: 2; font: 800 clamp(5rem, 4rem + 4vw, 8rem)/0.8 var(--font-display); color: var(--accent); opacity: 0.55; }
.howlist { list-style: none; margin: 22px 0 24px; padding: 0; display: grid; gap: 22px; }
.howlist li { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 12px; align-items: start; }
.hn { font: 800 2.6rem/1 var(--font-display); color: var(--accent); }
.howlist b { display: block; font: 700 1.2rem var(--font-display); margin-bottom: 4px; }
.howlist p { margin: 0; color: var(--muted); }
@media (max-width: 860px) { .howgrid { grid-template-columns: minmax(0, 1fr); } .howart { order: 2; } }

/* the mothers' band, soft pink like Doctor Anywhere's family slide */
.pinkband { background: linear-gradient(110deg, #F6B8A8 0%, #EFC3CC 55%, #E3D3EE 100%); border: 0; padding: clamp(20px, 3vw, 34px); color: #3D1B25; }
.pinkband h3 { font-size: clamp(1.3rem, 1rem + 1.2vw, 1.9rem); color: #3D1B25; }
.pinkband p { color: #5A2E3A; }
.pinkband .icobox { background: rgba(255, 255, 255, 0.75); color: #C2613F; }
.pinkband .btn:not(.ghost) { background: #fff; color: #A3384F; border-color: #fff; box-shadow: none; }
.pinkband .btn.ghost { color: #3D1B25; border-color: rgba(61, 27, 37, 0.35); }

/* doctor search: a clear search button and a result count */
.dfgo { display: flex; gap: 8px; flex-wrap: wrap; }
.dfcount { margin: 0 0 8px; color: var(--muted); font-weight: 600; }

/* "when does an online consultation help?" slider */
.slnav { display: flex; gap: 8px; }
.slbtn { width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid var(--line); background: var(--surface); color: var(--accent); font: 600 1.6rem/1 var(--font-body); cursor: pointer; }
.slbtn:hover { border-color: var(--accent); background: var(--accent-soft); }
.slider { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin-top: 18px; border-radius: 26px; }
.slider::-webkit-scrollbar { display: none; }
.slide { flex: 0 0 100%; scroll-snap-align: start; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: stretch; min-height: 380px; border-radius: 26px; overflow: hidden; }
.slide.s0 { background: linear-gradient(110deg, #F9C9B4, #F3D9D2); }
.slide.s1 { background: linear-gradient(110deg, #BFE6E2, #DDF1EE); }
.slide.s2 { background: linear-gradient(110deg, #F2BFCB, #E6D4EF); }
.slide.s3 { background: linear-gradient(110deg, #C9D4F5, #E1E6FA); }
.sltext { padding: clamp(22px, 4vw, 44px); color: #1E2A30; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.sltext .eyebrow { background: rgba(255, 255, 255, 0.7); color: #1E2A30; margin: 0; }
.sltext h3 { margin: 0; font-size: clamp(1.4rem, 1rem + 1.6vw, 2.2rem); line-height: 1.15; color: #12262B; }
.sltext p { margin: 0; color: #33454B; max-width: 46ch; }
.slex { list-style: none; margin: 4px 0 8px; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 6px 14px; }
.slex li { display: flex; gap: 6px; align-items: flex-start; font-weight: 600; font-size: 0.95rem; color: #1E2A30; }
.slex .ic { color: #0A7F83; flex: none; margin-top: 3px; }
.sltext .btn { margin-top: auto; }
.slimg { width: 100%; height: 100%; object-fit: cover; display: block; }
.sldots { display: flex; justify-content: center; gap: 8px; margin-top: 14px; }
.sldots button { width: 10px; height: 10px; padding: 0; border-radius: 99px; border: 0; background: var(--line); cursor: pointer; transition: width 0.2s, background 0.2s; }
.sldots button[aria-current="true"] { width: 28px; background: var(--accent); }
@media (max-width: 760px) { .slide { grid-template-columns: minmax(0, 1fr); } .slimg { order: -1; height: 200px; } .slex { grid-template-columns: minmax(0, 1fr); } }
.homehero .hero h1 { font-size: clamp(2.1rem, 1.3rem + 2.6vw, 3.5rem); }
.ptop small { white-space: nowrap; }
@media (max-width: 1180px) { .homehero .hero { grid-template-columns: minmax(0, 1fr); } .homehero .phones { justify-content: flex-start; } }
/* the page area gets focus after each page change (for screen readers); it needs no visible ring */
#app:focus { outline: none; }
.homehero .phones { justify-content: center; }
@media (max-width: 640px) { .homehero .phones { justify-content: flex-start; } }

/* menus after Doctor Anywhere: three dropdowns on wide screens, one "Menyu" on narrow ones */
.nav .dd.mob { display: none; }
.menu { max-height: min(78vh, 640px); overflow-y: auto; }
.menu .mh { display: block; padding: 12px 14px 4px; font: 700 0.74rem var(--font-body); text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }
.menu .mh:first-child { padding-top: 6px; }
@media (max-width: 1040px) { .nav .desk { display: none !important; } .nav .dd.mob { display: block; } }
@media (max-width: 1040px) { .nav .dd.mob .menu { min-width: 260px; } }

/* the application panel over the doctors list */
.aplock, .aplock body { overflow: hidden; }
.apov { position: fixed; inset: 0; z-index: 60; background: rgba(8, 26, 28, 0.45); }
.applypanel { position: fixed; z-index: 61; top: 0; right: 0; bottom: 0; width: min(620px, 100%); background: var(--bg); display: flex; flex-direction: column; box-shadow: -24px 0 60px -30px rgba(0, 0, 0, 0.6); animation: apin 0.22s ease-out; }
@keyframes apin { from { transform: translateX(40px); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .applypanel { animation: none; } }
.aphead { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding: calc(16px + env(safe-area-inset-top, 0px)) 20px 14px; background: var(--surface); border-bottom: 1px solid var(--line); }
.aphead small { color: var(--accent); font-weight: 700; font-size: 0.82rem; }
.aphead h2 { margin: 2px 0 0; font-size: 1.3rem; line-height: 1.25; }
.aphead h2:focus { outline: none; }
.apx { flex: none; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-size: 1.6rem; line-height: 1; color: var(--ink); text-decoration: none; border: 1.5px solid var(--line); }
.apx:hover { background: var(--accent-soft); }
.apbody { flex: 1; overflow-y: auto; padding: 16px 20px calc(28px + env(safe-area-inset-bottom, 0px)); overscroll-behavior: contain; }
.apbody .form { max-width: none; }
.apbody .roles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 520px) { .apbody { padding-inline: 14px; } .apbody .roles { grid-template-columns: minmax(0, 1fr); } }
.ocsteps { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 18px 0 0; padding: 0; }
.ocsteps li { display: flex; align-items: center; gap: 8px; font-weight: 600; }
.ocsteps b { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--deep-ink); color: var(--deep); font-size: 0.85rem; }

/* the test-data note: plain text, not code */
.demo { font: 500 0.88rem/1.45 var(--font-body); color: var(--ink); background: var(--ochre-soft); border-left: 3px solid var(--ochre); padding: 10px 14px; border-radius: 10px; }

/* about, specialists, family health, wellness */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 18px; }
.stat1 { padding: 18px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); }
.stat1 b { display: block; font: 800 2rem/1.1 var(--font-display); color: var(--accent); }
.stat1 span { color: var(--muted); }
@media (max-width: 760px) { .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.spcards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.spcard { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 14px; padding: 18px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); }
.spcard h3 { margin: 0; font-size: 1.15rem; }
.spcard p { margin: 4px 0 12px; }
.sptile { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; color: #fff; font: 800 1.4rem var(--font-display); }
.famlist { display: grid; gap: 22px; }
.famrow { min-height: 340px; }
.famrow h2 { margin: 0; font-size: clamp(1.4rem, 1rem + 1.4vw, 2rem); color: #12262B; }
.famrow .btns { margin-top: auto; }
.famrow .btn.ghost { color: #12262B; border-color: rgba(18, 38, 43, 0.3); }
.wlcards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.wlcard { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 22px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); }
.wlcard h2 { margin: 0; font-size: 1.3rem; }
.wlcard .slex li, .wlcard .slex .ic { color: var(--ink); }
.wlcard .slex .ic { color: var(--accent); }
.slex.one { grid-template-columns: minmax(0, 1fr); }
.wlwhen { margin: 0; color: var(--muted); font-size: 0.94rem; }
.wlwhen b { color: var(--ink); }
.wlcard .btn { margin-top: auto; }

/* "Siz uchun tibbiy yordam" cards */
.hcwrap { padding-bottom: 8px; }
.hcgrid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-top: 16px; }
.hccard { display: flex; align-items: center; gap: 16px; padding: 20px; border-radius: 20px; background: var(--surface); border: 1.5px solid var(--line); color: var(--ink); text-decoration: none; transition: border-color 0.15s, transform 0.15s; }
.hccard:hover { border-color: var(--accent); transform: translateY(-2px); }
.hcic { width: 56px; height: 56px; flex: none; fill: none; stroke: #0E4A6E; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; color: #0E4A6E; }
.hcic .fill { fill: #F8D2BE; }
.hccard b { display: block; font: 700 1.1rem var(--font-display); }
.hccard small { display: block; margin-top: 4px; color: var(--muted); font-size: 0.92rem; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .hcic { stroke: #8FD3E8; color: #8FD3E8; } }
:root[data-theme="dark"] .hcic { stroke: #8FD3E8; color: #8FD3E8; }
@media (max-width: 1000px) { .hcgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .hcgrid { grid-template-columns: minmax(0, 1fr); } }
[id^="ab-"] { scroll-margin-top: 76px; }

/* medicines after a consultation, and home delivery */
.rxcard { margin-bottom: 18px; }
.rxlist { margin: 10px 0 14px; padding-left: 22px; display: grid; gap: 8px; }
.rxlist li b { display: block; }
.rxlist li span { color: var(--muted); font-size: 0.93rem; }
.rxrow { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1.6fr) 90px auto; gap: 10px; align-items: end; padding-bottom: 10px; border-bottom: 1px dashed var(--line); margin-bottom: 10px; }
.rxrow .fld { margin: 0; }
.rxrow .linkbtn { padding-bottom: 12px; }
@media (max-width: 700px) { .rxrow { grid-template-columns: minmax(0, 1fr) 90px; } .rxrow .fld:first-child, .rxrow .fld:nth-child(2) { grid-column: 1 / -1; } }
.rxdel { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 16px 0 4px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 1.05rem; }
.rxdel .ic { color: var(--accent); }
.rxsteps { list-style: none; margin: 12px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; counter-reset: rs; }
.rxsteps li { counter-increment: rs; padding-top: 30px; position: relative; font-size: 0.86rem; color: var(--muted); text-align: center; }
.rxsteps li::before { content: counter(rs); position: absolute; top: 0; left: 50%; margin-left: -12px; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--line); color: var(--ink); font: 700 0.8rem var(--font-body); }
.rxsteps li.done::before { content: "✓"; background: var(--accent); color: var(--accent-ink); }
.rxsteps li.now { color: var(--ink); font-weight: 700; }
.rxsteps li.now::before { background: var(--accent); color: var(--accent-ink); box-shadow: 0 0 0 4px var(--accent-soft); }
.vcrx { display: flex; gap: 8px; align-items: flex-start; margin: 16px 0 0; color: var(--muted); font-size: 0.95rem; }
.vcrx .ic { color: var(--accent); flex: none; margin-top: 3px; }

/* sign in and register like a real site */
.top .regbtn { margin-left: 8px; }
.top .regbtn[hidden] { display: none; }
@media (max-width: 520px) { .top .regbtn { display: none; } }
.authgate { padding: 16px 18px; border-radius: 16px; background: var(--accent-soft); margin-bottom: 14px; }
.authgate b { display: block; font: 700 1.08rem var(--font-display); }
.authgate p { margin: 6px 0 12px; color: var(--ink); }
.authalt { display: grid; gap: 8px; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); text-align: center; color: var(--muted); }
.authtop { margin: 0 0 10px; color: var(--muted); }

/* home search: name, language and quick filters */
.hfrow2 { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 12px; margin-top: 12px; }
.hfrow2 .pinput { width: 100%; text-align: left; }
.hfrow2 label { display: block; font: 600 0.85rem var(--font-body); margin-bottom: 6px; color: var(--muted); }
.hfchips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.chipchk { position: relative; display: inline-flex; }
.chipchk input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.chipchk span { padding: 7px 14px; border-radius: 99px; border: 1.5px solid var(--line); font-weight: 600; font-size: 0.9rem; color: var(--ink); background: var(--surface); }
.chipchk input:checked + span { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.chipchk input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
@media (max-width: 640px) { .hfrow2 { grid-template-columns: minmax(0, 1fr); } }

/* voice messages */
.vobar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 10px; padding: 10px 12px; border-radius: 14px; background: var(--accent-soft); }
.vobar audio { flex: 1; min-width: 180px; height: 36px; }
.vobar.rec { background: var(--risk-soft); }
.recdot { width: 12px; height: 12px; border-radius: 50%; background: var(--risk); animation: recblink 1s infinite; }
@keyframes recblink { 50% { opacity: 0.25; } }
@media (prefers-reduced-motion: reduce) { .recdot { animation: none; } }
audio.voice { display: block; width: 240px; max-width: 100%; height: 36px; margin: 2px 0 4px; }
/* on phones the search button comes after all the filters */
@media (max-width: 640px) {
  .hfform { display: flex; flex-direction: column; gap: 12px; }
  .hfform .srow3 { display: contents; }
  .hfform .srow3 > .sf { order: 1; }
  .hfform .hfrow2 { order: 2; margin-top: 0; }
  .hfform .hfchips { order: 3; margin-top: 0; }
  .hfform .srow3 > button { order: 4; }
  .hfform .hfmore { order: 5; }
}

/* booking a time with the doctor */
.slotpick { margin-top: 14px; padding: 14px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); }
.slotpick .flabel { display: block; margin-bottom: 10px; }
.sldays { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: thin; }
.sldays button { flex: none; display: grid; justify-items: center; gap: 1px; min-width: 62px; padding: 8px 6px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--bg); color: var(--ink); cursor: pointer; }
.sldays button b { font: 800 1.25rem/1.1 var(--font-display); }
.sldays button small { font-size: 0.74rem; color: var(--muted); text-transform: capitalize; }
.sldays button[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.sldays button[aria-pressed="true"] small { color: var(--accent-ink); opacity: 0.85; }
.sltimes { display: grid; grid-template-columns: repeat(auto-fill, minmax(74px, 1fr)); gap: 8px; margin: 12px 0 8px; }
.sltimes button { padding: 9px 4px; border-radius: 10px; border: 1.5px solid var(--line); background: var(--bg); color: var(--ink); font-weight: 700; cursor: pointer; }
.sltimes button:hover:not(:disabled) { border-color: var(--accent); }
.sltimes button[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.sltimes button:disabled { opacity: 0.4; text-decoration: line-through; cursor: not-allowed; }
.slotbox { display: flex; gap: 12px; align-items: center; margin: 12px 0 0; padding: 14px 16px; border-radius: 16px; background: var(--accent-soft); }
.slotbox > .ic { width: 28px; height: 28px; color: var(--accent); flex: none; }
.slotbox small { display: block; color: var(--muted); font-weight: 600; }
.slotbox b { display: block; font: 700 1.15rem var(--font-display); }
.slotbox span { color: var(--muted); font-size: 0.9rem; }
.slotbox.soon { background: var(--ochre-soft); }
.wdays { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.applypanel.still { animation: none; }

/* "Onlayn maslahat" stays one click away in the top bar */
.nav a.navcta { margin-left: 6px; background: var(--accent); color: var(--accent-ink); opacity: 1; font-weight: 600; border-radius: 999px; padding: 8px 16px; }
.nav a.navcta:hover, .nav a.navcta[aria-current="page"] { background: var(--accent); color: var(--accent-ink); filter: brightness(1.08); }
.menu a.navcta-m { margin: 2px 6px 8px; text-align: center; background: var(--accent); color: var(--accent-ink); font-weight: 700; border-radius: 999px; }
.menu a.navcta-m:hover { background: var(--accent); color: var(--accent-ink); filter: brightness(1.08); }
/* the top bar fills up: first the register button goes (the sign-in page offers it), then "my visits" moves into the first menu */
@media (max-width: 1200px) { .top .regbtn { display: none; } }
.offcard { border: 2px solid var(--ochre); background: var(--ochre-soft); }
.talkbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 12px 0 0; padding: 12px 14px; border-radius: 16px; background: var(--surface); border: 1.5px solid var(--accent); }
.talkbar > span { font-weight: 700; margin-right: auto; }
@media (max-width: 520px) { .talkbar > span { width: 100%; } .talkbar .btn { flex: 1; } }

/* ---------------- the doctor's panel ---------------- */
.pro { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 28px; max-width: 1240px; margin: 0 auto; padding: 24px 0 60px; }
.pronav { position: sticky; top: 76px; align-self: start; display: flex; flex-direction: column; gap: 14px; padding: 16px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); }
.prome { display: flex; gap: 10px; align-items: center; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.prome b { display: block; line-height: 1.2; }
.prome small { color: var(--muted); }
.pronav nav { display: grid; gap: 2px; }
.pronav nav a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; color: var(--ink); text-decoration: none; font-weight: 600; }
.pronav nav a .ic { color: var(--muted); }
.pronav nav a:hover { background: var(--accent-soft); }
.pronav nav a[aria-current="page"] { background: var(--accent); color: var(--accent-ink); }
.pronav nav a[aria-current="page"] .ic { color: var(--accent-ink); }
.pronum { margin-left: auto; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 99px; background: var(--risk); color: #fff; font-size: 0.78rem; display: grid; place-items: center; }
.profoot { display: grid; gap: 8px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 0.92rem; }
.profoot a { display: flex; gap: 8px; align-items: center; color: var(--muted); text-decoration: none; }
.profoot .linkbtn { justify-self: start; }
.promain { min-width: 0; }
.promain > h1 { font-size: clamp(1.6rem, 1.3rem + 1.2vw, 2.2rem); margin: 0 0 14px; }
.prohello h1 { margin: 0; font-size: clamp(1.6rem, 1.3rem + 1.2vw, 2.2rem); }
.prohello { margin-bottom: 16px; }
.prostats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-bottom: 20px; }
.prostat { padding: 16px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); color: var(--ink); text-decoration: none; transition: border-color 0.15s; }
.prostat:hover { border-color: var(--accent); }
.prostat b { display: block; font: 800 1.9rem/1.1 var(--font-display); color: var(--accent); }
.prostat span { color: var(--muted); font-size: 0.92rem; }
.protodo { margin-bottom: 20px; }
.protodo ul { list-style: none; margin: 12px 0 14px; padding: 0; display: grid; gap: 6px; }
.protodo li { display: flex; gap: 8px; align-items: flex-start; }
.protodo li .ic { color: var(--ochre); flex: none; margin-top: 3px; }
.protodo li.ok { color: var(--muted); text-decoration: line-through; }
.protodo li.ok .ic { color: var(--accent); }
.pbar2 { height: 8px; border-radius: 99px; background: var(--line); overflow: hidden; margin-top: 10px; }
.pbar2 i { display: block; height: 100%; background: var(--accent); border-radius: 99px; }
.progrid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 20px; }
.progrid h2 { font-size: 1.2rem; margin: 0; }
.progrid .sechead { margin-bottom: 10px; align-items: center; }
.protimeline { display: grid; gap: 8px; }
.tlrow { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 12px 14px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.tlrow b { color: var(--accent); font-size: 1.05rem; }
.procards { display: grid; gap: 12px; }
.procard { display: block; padding: 16px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); margin-bottom: 12px; color: var(--ink); }
.procards .procard { margin-bottom: 0; }
.procard.isnew { border-left: 4px solid var(--accent); }
.pchead { display: flex; gap: 10px; align-items: center; }
.pchead > div { flex: 1; min-width: 0; }
.pchead b { display: block; }
.pctype { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); flex: none; }
.pcslot { margin: 10px 0 0; display: flex; gap: 6px; align-items: center; color: var(--accent); }
.pcslot.warn { color: var(--ochre); font-weight: 700; }
.pccompl { margin: 8px 0 0; color: var(--ink); }
.pcfoot { display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; align-items: center; margin-top: 12px; }
.proseg { display: inline-flex; margin-bottom: 14px; }
.proseg a { padding: 8px 14px; text-decoration: none; color: var(--ink); border-radius: 10px; font-weight: 600; }
.proseg a[aria-current="page"] { background: var(--surface); box-shadow: 0 2px 8px -4px rgba(0, 0, 0, 0.25); }
.proseg .cnt { color: var(--muted); font-weight: 500; }
.patrow { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: 12px; align-items: start; text-decoration: none; }
.patrow .pav2 { width: 40px; height: 40px; font-size: 0.95rem; }
.patrow b { display: block; }
.week { display: grid; grid-template-columns: repeat(7, minmax(120px, 1fr)); gap: 8px; overflow-x: auto; padding-bottom: 6px; }
.wday { display: grid; gap: 6px; align-content: start; padding: 10px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); min-width: 120px; }
.wday.today { border-color: var(--accent); }
.wdh { display: flex; gap: 6px; align-items: baseline; margin-bottom: 4px; }
.wdh b { font: 800 1.3rem var(--font-display); }
.wdh small { color: var(--muted); text-transform: capitalize; }
.wslot { display: grid; padding: 6px 8px; border-radius: 10px; border: 1px dashed var(--line); font-size: 0.85rem; color: var(--muted); text-decoration: none; }
.wslot b { color: var(--ink); }
.wslot.busy { border: 0; background: var(--accent); color: var(--accent-ink); }
.wslot.busy b { color: var(--accent-ink); }
.wslot.busy span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wslot.past { opacity: 0.4; }
.wclosed { font-size: 0.88rem; }
.proform .accform { max-width: none; }
@media (max-width: 1000px) { .progrid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 900px) {
  .pro { grid-template-columns: minmax(0, 1fr); gap: 14px; padding-top: 0; }
  .pronav { position: sticky; top: 60px; z-index: 5; flex-direction: row; padding: 6px; margin: 0 calc(-1 * var(--gl)) 0 calc(-1 * var(--gr)); border-radius: 0; border-width: 0 0 1px; overflow-x: auto; scrollbar-width: none; }
  .pronav::-webkit-scrollbar { display: none; }
  .prome, .profoot { display: none; }
  .pronav nav { display: flex; gap: 4px; }
  .pronav nav a { white-space: nowrap; padding: 8px 12px; }
  .week { grid-template-columns: repeat(7, 140px); }
}
.nav a.navcta[data-n]::after, .menu a.navcta-m[data-n]::after { content: attr(data-n); display: inline-grid; place-items: center; min-width: 20px; height: 20px; margin-left: 6px; padding: 0 5px; border-radius: 99px; background: #fff; color: var(--risk); font-size: 0.75rem; font-weight: 800; }

/* next free times on a doctor's card (book in one tap) */
.nxchips { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 10px; }
.nxchips small { color: var(--muted); font-weight: 600; margin-right: 2px; }
.nxchip { padding: 6px 10px; border-radius: 10px; background: var(--accent-soft); color: var(--accent); font-weight: 700; font-size: 0.86rem; text-decoration: none; border: 1.5px solid transparent; }
.nxchip:hover { border-color: var(--accent); }
/* moving or cancelling a booking */
.manage { margin-top: 10px; align-items: center; }
.rsbox { margin-top: 12px; }
.rsbox .slotpick { margin-top: 8px; }
.symhint { display: flex; gap: 8px; align-items: center; margin: 14px 0 0; padding: 10px 14px; border-radius: 12px; background: var(--accent-soft); font-weight: 600; }
/* the online clinic: on phones, and whenever a search is on, results come first */
@media (max-width: 640px) { .ochero .ocsteps, .ochero .sub, .ochero .eyebrow { display: none; } .ochero .bhead { padding-block: 18px 22px; } .ochero h1 { font-size: 1.6rem; } }
.ochero.searching .ocsteps, .ochero.searching .sub { display: none; }
.ochero.searching .bhead { padding-block: 20px 24px; }

/* ================= design pass, Nov 2026: one system for cards, headings, search, tiles, chat and footer ================= */
:root { --sh-sm: 0 1px 2px rgba(16, 40, 44, 0.06), 0 4px 14px -8px rgba(16, 40, 44, 0.18); --sh-md: 0 2px 4px rgba(16, 40, 44, 0.06), 0 14px 30px -14px rgba(16, 40, 44, 0.32); --r-card: 20px; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --sh-sm: 0 1px 2px rgba(0, 0, 0, 0.4); --sh-md: 0 14px 30px -14px rgba(0, 0, 0, 0.7); } }
:root[data-theme="dark"] { --sh-sm: 0 1px 2px rgba(0, 0, 0, 0.4); --sh-md: 0 14px 30px -14px rgba(0, 0, 0, 0.7); }
/* headings: one size per level across the site */
.wrap.pad > h2, .sechead h2, .sliderwrap h2 { font-size: clamp(1.55rem, 1.15rem + 1.5vw, 2.3rem); letter-spacing: -0.02em; line-height: 1.15; }
.lead { max-width: 64ch; }
/* cards: same corners and depth; the ones you can tap lift a little */
.dcard, .doccard, .fcard, .hccard, .specbox, .tcard, .wlcard, .spcard, .procard, .prostat { border-radius: var(--r-card); box-shadow: var(--sh-sm); }
.doccard, .hccard, .specbox, .prostat, .dtile { transition: box-shadow 0.18s, transform 0.18s, border-color 0.18s; }
.doccard:hover, .hccard:hover, .specbox:hover, .prostat:hover, .dtile:hover { box-shadow: var(--sh-md); transform: translateY(-2px); }
@media (prefers-reduced-motion: reduce) { .doccard:hover, .hccard:hover, .specbox:hover, .prostat:hover, .dtile:hover { transform: none; } }
/* top bar: one filled button (register), the consultation shortcut tinted */
.nav a.navcta { background: var(--accent-soft); color: var(--accent); }
.nav a.navcta:hover, .nav a.navcta[aria-current="page"] { background: var(--accent); color: var(--accent-ink); filter: none; }

/* hero search: complaint or name, region, Search; more filters fold away */
.hfmain { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr) auto; gap: 12px; align-items: end; }
.hfmain label, .hfrow2 label { display: block; font: 600 0.85rem var(--font-body); margin-bottom: 6px; color: var(--muted); }
.hfmain select { width: 100%; }
.inico { position: relative; }
.inico .ic { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.inico .pinput { width: 100%; text-align: left; padding-left: 42px; min-height: 48px; font-size: 1rem; }
.hfmain .btn.big { min-height: 48px; }
.hfmorefil { margin-top: 12px; }
.hfmorefil summary { cursor: pointer; color: var(--accent); font-weight: 600; font-size: 0.92rem; list-style: none; display: inline-flex; align-items: center; gap: 6px; }
.hfmorefil summary::-webkit-details-marker { display: none; }
.hfmorefil .hfrow2 { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.hfquick { display: flex; flex-wrap: wrap; gap: 6px 8px; align-items: center; margin-top: 12px; font-size: 0.9rem; }
.hfquick a { padding: 4px 10px; border-radius: 99px; background: var(--bg); border: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.hfquick a:hover { border-color: var(--accent); color: var(--accent); }
@media (max-width: 760px) { .hfmain { grid-template-columns: minmax(0, 1fr); } .hfmorefil .hfrow2 { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 640px) { .hfform { display: block; } }

/* doctor tiles (home) */
.dtgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 16px; }
.dtile { display: flex; flex-direction: column; gap: 12px; padding: 18px; border-radius: var(--r-card); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--sh-sm); }
.dtile > .pav, .dtile > .pimg { width: 64px; height: 64px; }
.dtile h3 { margin: 0; font-size: 1.12rem; }
.dtile h3 a { color: var(--ink); text-decoration: none; }
.dtile h3 a:hover { color: var(--accent); }
.dtile .spec { margin: 2px 0 0; color: var(--muted); font-size: 0.93rem; }
.dtbody { flex: 1; display: grid; gap: 6px; align-content: start; }
.dtmeta { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.dtreg, .dtnext { margin: 0; display: flex; gap: 6px; align-items: center; font-size: 0.9rem; }
.dtnext { color: var(--accent); font-weight: 700; }
.dtfoot { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding-top: 12px; border-top: 1px solid var(--line); }
.dtfoot b { color: var(--accent); }
@media (max-width: 960px) { .dtgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .dtgrid { grid-template-columns: minmax(0, 1fr); } }

/* chat composer like a messenger: camera, microphone, text, send in one row */
.room-send.withph { grid-template-columns: auto auto minmax(0, 1fr) auto; align-items: center; }
.room-send.withph .phbtn { width: 44px; height: 44px; padding: 0; display: grid; place-items: center; border-radius: 50%; }
.room-send.withph .pinput { min-height: 44px; border-radius: 999px; padding-left: 16px; }
@media (max-width: 520px) { .room-send.withph { gap: 6px; } .room-send.withph button[type="submit"] { padding-inline: 14px; } }

/* footer: brand and five clear columns */
.foot-grid { grid-template-columns: minmax(0, 1.6fr) repeat(4, minmax(0, 1fr)); gap: 28px; }
.foot-grid b { font-family: var(--font-display); font-size: 1.02rem; margin-bottom: 2px; }
.foot-brand .brand { display: inline-flex; align-items: center; gap: 10px; }
.foot-brand .logo { width: 32px; height: 32px; }
.foot .foot-cta { justify-self: start; margin-top: 6px; background: var(--deep-ink); color: var(--deep); border-color: var(--deep-ink); opacity: 1; }
.foot .foot-cta:hover { text-decoration: none; filter: brightness(0.95); }
@media (max-width: 960px) { .foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .foot-brand { grid-column: 1 / -1; } }
@media (max-width: 480px) { .foot-grid { grid-template-columns: minmax(0, 1fr); } }
/* the hero column is narrow next to the phones: complaint on its own row, then region and Search */
.hfmain { grid-template-columns: minmax(0, 1fr) auto; }
.hfmain .hfq { grid-column: 1 / -1; }
@media (max-width: 760px) { .hfmain { grid-template-columns: minmax(0, 1fr); } }
.dtile > .pav, .dtile > .pimg { align-self: flex-start; margin: 0; flex: none; }

/* public clinic page: branches */
.brpub { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.brp { display: grid; gap: 4px; padding: 14px; border: 1px solid var(--line); border-radius: 16px; font-size: 0.92rem; }
.brp b { display: flex; align-items: center; gap: 6px; }
.brp b svg { width: 16px; height: 16px; color: var(--accent); flex: none; }

/* sign-up: the doctor's and clinic's details in tinted sections */
.regsec { margin: 6px 0 18px; padding: 18px 18px 6px; border-radius: 18px; background: linear-gradient(180deg, var(--accent-soft), color-mix(in srgb, var(--accent-soft) 35%, var(--surface))); border: 1px solid color-mix(in srgb, var(--accent) 18%, transparent); }
.regsech { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 14px; }
.regsech .icobox { width: 40px; height: 40px; flex: none; margin: 0; background: var(--surface); }
.regsech .icobox svg { width: 20px; height: 20px; }
.regsech h2 { margin: 0; font: 700 1.05rem var(--font-display); }
.regsech p { margin: 2px 0 0; color: var(--muted); font-size: 0.9rem; }
.regsec input, .regsec select, .regsec textarea { background: var(--surface); }
.regsec .checks { display: flex; flex-wrap: wrap; gap: 8px; }
.req { color: var(--risk); }
.regnote { display: flex; gap: 8px; align-items: flex-start; margin: 0 0 14px; }
.regnote svg { width: 18px; height: 18px; flex: none; color: var(--accent); margin-top: 2px; }
.regsec [hidden] { display: none; }

/* ---------- November 2026: simpler header, shorter home page with real photos ---------- */
/* header: Find a doctor, Clinics, More, and the consultation button; it fits down to 900 px */
@media (max-width: 1040px) and (min-width: 901px) { .nav .desk { display: inline-flex !important; } .nav .dd.desk { display: block !important; } .nav .dd.mob { display: none; } }
@media (max-width: 900px) { .nav .desk { display: none !important; } .nav .dd.mob { display: block; } }
@media (max-width: 1200px) and (min-width: 1041px) { .top .regbtn { display: inline-flex; } }
.nav .dd.desk .menu { min-width: 270px; }

/* hero: a real photo with three small cards on it */
.homehero .art { max-width: 520px; }
.homehero .art-photo { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 28px; box-shadow: 0 30px 60px -30px rgba(0, 30, 35, 0.55); }
.homehero .art-chip.c1 { left: -24px; top: 12%; }
.homehero .art-chip.c2 { right: -18px; top: 46%; }
.homehero .art-chip.c3 { left: 8%; bottom: -18px; }
@media (max-width: 900px) { .homehero .art { max-width: 460px; margin-top: 8px; } .homehero .art-photo { aspect-ratio: 4 / 3; } .homehero .art-chip.c1 { left: 8px; } .homehero .art-chip.c2 { right: 8px; } }
@media (max-width: 520px) { .homehero .art-chip.c3 { display: none; } }

/* who needs help: photo cards */
.caregrid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; margin-top: 18px; }
.carecard { display: flex; flex-direction: column; border-radius: 22px; overflow: hidden; background: var(--surface); border: 1px solid var(--line); color: var(--ink); text-decoration: none; box-shadow: var(--shadow-soft, 0 10px 30px -18px rgba(0,0,0,.25)); transition: transform 0.2s, box-shadow 0.2s; }
.carecard:hover { transform: translateY(-3px); box-shadow: 0 22px 40px -22px rgba(0, 40, 45, 0.45); }
@media (prefers-reduced-motion: reduce) { .carecard, .carecard:hover { transition: none; transform: none; } }
.carephoto { position: relative; }
.carephoto img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.carephoto .eyebrow { position: absolute; left: 12px; top: 12px; margin: 0; padding: 4px 10px; border-radius: 99px; background: rgba(255, 255, 255, 0.92); color: var(--accent); font-size: 0.74rem; }
.caretext { display: flex; flex-direction: column; gap: 6px; padding: 16px 18px 18px; flex: 1; }
.caretext h3 { margin: 0; font: 700 1.08rem/1.3 var(--font-display); }
.caretext p { margin: 0; color: var(--muted); font-size: 0.92rem; flex: 1; }
.carego { color: var(--accent); font-weight: 600; font-size: 0.92rem; margin-top: 6px; }
@media (max-width: 1100px) { .caregrid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .caregrid { grid-template-columns: minmax(0, 1fr); } .carephoto img { aspect-ratio: 16 / 9; } }

/* promises under the top doctors */
.homepromise { padding-block: 8px 24px; }

/* for doctors and clinics */
.prosgrid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 64px); align-items: center; }
.prosgrid h2 { margin-top: 6px; }
.prosgrid .slex { grid-template-columns: minmax(0, 1fr); margin: 12px 0 20px; }
.prosgrid .slex li { color: var(--ink); }
.prosgrid .btns { display: flex; flex-wrap: wrap; gap: 10px; }
.prosph img { aspect-ratio: 5 / 4; border-radius: 26px; }
@media (max-width: 860px) { .prosgrid { grid-template-columns: minmax(0, 1fr); } .prosph { order: 2; } }
/* phones: the four quick cards sit two by two, icon above the text */
@media (max-width: 600px) {
  .hcgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .hccard { flex-direction: column; align-items: flex-start; gap: 8px; padding: 14px; }
  .hccard .hcic { width: 36px; height: 36px; }
  .hccard b { font-size: 1rem; }
  .hccard small { font-size: 0.82rem; }
}

/* account menu in the header (signed in) */
.acctdd { margin-left: 8px; }
.acctdd[hidden] { display: none; }
.acctdd .ddbtn.acct { margin-left: 0; display: inline-flex; align-items: center; gap: 4px; }
.menu.menu-r { left: auto; right: 0; }
.menu a .ic, .menu a svg { width: 18px; height: 18px; flex: none; }
.acctdd .menu a, .pacct .menu a { display: flex; align-items: center; gap: 10px; }
.menu .acctout { display: block; width: 100%; text-align: left; background: none; border: 0; padding: 10px 14px; border-radius: 10px; font: 500 0.95rem var(--font-body); color: var(--risk); cursor: pointer; }
.menu .acctout:hover { background: var(--risk-soft); }
.menu .acctout.sep, .menu a.sep { margin-top: 6px; border-top: 1px solid var(--line); border-radius: 0 0 10px 10px; padding-top: 12px; }
.acctdd .menu .mh, .pacct .menu .mh { text-transform: none; letter-spacing: 0; font-size: 0.82rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 260px; }
.top .acct[hidden] { display: none !important; }
.acctdd .menu a, .pacct .menu a { text-decoration: none; color: var(--ink); }
.acctdd .menu a:hover, .pacct .menu a:hover { color: var(--accent); }

/* a forgotten password */
.fgline { margin: -4px 0 12px; text-align: right; font-size: 0.92rem; }
.admrl { margin: 18px 0 8px; }
.admrlrow { display: flex; gap: 8px; flex-wrap: wrap; }
.admrlrow input { flex: 1; min-width: 200px; }
.copyin { width: 100%; margin-top: 6px; font: 0.85rem ui-monospace, monospace; padding: 8px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--ink); }
.sharebtn { margin-left: auto; align-self: flex-start; display: inline-flex; gap: 6px; }
.who { flex-wrap: wrap; }

/* detail review stars */
.rvsubs { border-top: 1px dashed var(--line); margin-top: 12px; }
.rvsubrow { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 2px 0; }
.rvstars.sm button { font-size: 1.15rem; padding: 2px 3px; }
.rvsum { display: grid; gap: 6px; max-width: 420px; margin: 4px 0 16px; }
.rvsumrow { display: grid; grid-template-columns: 130px minmax(0, 1fr) auto; gap: 10px; align-items: center; font-size: 0.92rem; }
.rvbar { height: 8px; border-radius: 99px; background: var(--line); overflow: hidden; }
.rvbar i { display: block; height: 100%; background: var(--accent); border-radius: 99px; }

/* ---- Services on doctor cards + design polish (2026-11) ---- */
.svcchips { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.svcchips li::before { content: none; }
.svcchip { display: inline-flex; align-items: baseline; gap: 8px; max-width: 100%; padding: 5px 11px; border-radius: 999px; background: var(--accent-soft); color: var(--ink); font-size: 0.84rem; line-height: 1.25; }
.svcchip span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.svcchip b { color: var(--accent); font-weight: 700; white-space: nowrap; }
.svcmore { display: inline-flex; align-items: center; padding: 5px 10px; border-radius: 999px; border: 1px dashed var(--line); color: var(--muted, #5b6b6e); font-size: 0.84rem; }
.prnote { margin: 0 0 14px; }
.fcard { align-items: start; }
.fcard > .avatar, .fcard > :first-child.avatar { width: 64px; height: 64px; font-size: 1.2rem; box-shadow: inset 0 0 0 2px var(--accent-soft); }
.doccard { border-radius: 20px; }
.doccard:hover { border-color: var(--accent); }
.doccard .facts { align-self: stretch; justify-content: center; }
.doccard .btn { white-space: nowrap; }
@media (max-width: 640px) {
  .fcard { grid-template-columns: auto minmax(0, 1fr); padding: 16px; }
  .fcard > .facts { grid-column: 1 / -1; align-items: stretch !important; }
  .fcard > .avatar { width: 52px; height: 52px; }
  .svcchip span { white-space: normal; }
}

/* ---- Health services grid (home + #/services), 2026-11 ---- */
.svwrap { padding-top: 12px; }
.svgrid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; margin-top: 18px; }
.svcard { display: flex; flex-direction: column; border-radius: 22px; overflow: hidden; background: var(--surface); border: 1px solid var(--line); color: var(--ink); text-decoration: none; box-shadow: var(--sh-sm); transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s; }
.svcard:hover { transform: translateY(-3px); border-color: var(--accent); box-shadow: var(--sh-md); }
@media (prefers-reduced-motion: reduce) { .svcard, .svcard:hover { transition: none; transform: none; } }
.svphoto img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.svtext { display: flex; flex-direction: column; gap: 6px; padding: 16px 18px 18px; flex: 1; }
.svtext h3 { margin: 0; font: 700 1.08rem/1.3 var(--font-display); }
.svtext p { margin: 0; color: var(--muted); font-size: 0.92rem; flex: 1; }
.svfoot { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-top: 8px; }
.svfoot b { color: var(--accent); font-size: 0.95rem; }
.svfoot .carego { margin-top: 0; white-space: nowrap; }
@media (max-width: 1100px) { .svgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) {
  .svgrid { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .svcard { flex-direction: row; border-radius: 18px; }
  .svphoto { flex: 0 0 116px; }
  .svphoto img { height: 100%; min-height: 116px; aspect-ratio: auto; }
  .svtext { padding: 12px 14px; gap: 4px; }
  .svtext p { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .svfoot { flex-wrap: wrap; }
}
/* how it works: a real photo instead of the drawn phone */
.howphoto { margin: 0; }
.howphoto img { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 24px; box-shadow: var(--sh-md); }
@media (max-width: 760px) { .howphoto img { aspect-ratio: 3 / 2; } }
/* the cabinet link beside "Onlayn maslahat" (November 2026) */
.nav a[hidden], .menu a[hidden] { display: none !important; }
.nav a.navcab { margin-left: 6px; font-weight: 600; border: 1.5px solid var(--line); border-radius: 999px; padding: 7px 14px; }
.nav a.navcab[data-n]::after, .menu a.navcab-m[data-n]::after { content: attr(data-n); display: inline-grid; place-items: center; min-width: 20px; height: 20px; margin-left: 6px; padding: 0 5px; border-radius: 99px; background: var(--risk); color: #fff; font: 700 0.76rem/1 var(--font-body); }
/* the application form: optional details folded away */
.csmore { margin-top: 4px; }
.csmore summary { cursor: pointer; color: var(--accent); font-weight: 600; font-size: 0.95rem; list-style: none; display: inline-flex; gap: 8px; align-items: center; margin-bottom: 12px; }
.csmore summary::-webkit-details-marker { display: none; }
.csmore summary::before { content: "+"; display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--accent-soft); font-weight: 700; }
.csmore[open] summary::before { content: "−"; }
/* the header has more links now: switch to the Menyu button earlier, so the account button always fits */
@media (max-width: 1180px) { .nav .desk, .nav .dd.desk { display: none !important; } .nav .dd.mob { display: block; } }
.nav .dd[hidden], .menu [hidden] { display: none !important; }

/* ---- Shifo_AI: floating helper in the bottom-right corner, 2026-11 ---- */
#shifoai[hidden] { display: none; }
.aifab { position: fixed; right: max(16px, env(safe-area-inset-right, 0px)); bottom: max(16px, env(safe-area-inset-bottom, 0px)); z-index: 45; display: inline-flex; align-items: center; gap: 10px; padding: 8px 18px 8px 8px; border: 0; border-radius: 999px; background: var(--accent); color: var(--accent-ink); font: 700 1rem var(--font-display); box-shadow: 0 14px 30px -12px rgba(0, 40, 45, 0.55); cursor: pointer; transition: transform 0.18s; }
.aifab:hover { transform: translateY(-2px); }
.aifab-ic { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: rgba(255, 255, 255, 0.2); flex: none; }
.aifab-ic .ic { width: 18px; height: 18px; }
.aip { position: fixed; right: max(16px, env(safe-area-inset-right, 0px)); bottom: calc(max(16px, env(safe-area-inset-bottom, 0px)) + 62px); z-index: 46; width: min(380px, calc(100vw - 32px)); height: min(600px, calc(100vh - 110px)); display: flex; flex-direction: column; background: var(--bg); color: var(--ink); border: 1px solid var(--line); border-radius: 22px; box-shadow: 0 30px 60px -24px rgba(0, 30, 35, 0.5); overflow: hidden; }
.aiph { display: flex; align-items: center; gap: 10px; padding: 12px 14px; background: var(--accent); color: var(--accent-ink); }
.aiph div { flex: 1; min-width: 0; }
.aiph b { display: block; font: 700 1.05rem var(--font-display); }
.aiph small { display: block; opacity: 0.85; font-size: 0.8rem; }
.aix { flex: none; width: 32px; height: 32px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, 0.2); color: inherit; font-size: 1.15rem; line-height: 1; cursor: pointer; }
.aimsgs { flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 8px; }
.aimsg { max-width: 88%; padding: 9px 13px; border-radius: 16px; font-size: 0.95rem; line-height: 1.45; white-space: pre-wrap; overflow-wrap: anywhere; }
.aimsg.me { align-self: flex-end; background: var(--accent); color: var(--accent-ink); border-bottom-right-radius: 6px; }
.aimsg.ai { align-self: flex-start; background: var(--surface); border: 1px solid var(--line); border-bottom-left-radius: 6px; }
.aiwait { color: var(--muted); }
.aichips { display: flex; flex-wrap: wrap; gap: 6px; }
.aichips .chip { font-size: 0.85rem; padding: 6px 12px; text-align: left; }
.aihead { margin: 4px 0 0; font-weight: 700; font-size: 0.92rem; }
.aidoc { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); color: var(--ink); text-decoration: none; }
.aidoc:hover { border-color: var(--accent); }
.aidoc > span { flex: 1; min-width: 0; }
.aidoc b { display: block; font-size: 0.92rem; }
.aidoc small { color: var(--muted); font-size: 0.8rem; }
.aidoc .pav, .aidoc .pimg { width: 36px; height: 36px; flex: none; font-size: 0.8rem; }
.aibtns { display: flex; flex-wrap: wrap; gap: 6px; }
.aiem { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 14px; border: 1.5px solid var(--risk); color: var(--risk); font-weight: 600; font-size: 0.92rem; }
.aiem span { flex: 1; }
.aip .aiform { display: flex; gap: 8px; align-items: flex-end; margin: 0; padding: 10px 12px; border-top: 1px solid var(--line); }
.aip .aiform textarea { flex: 1; min-width: 0; max-height: 120px; padding: 10px 12px; border: 1.5px solid var(--line); border-radius: 14px; background: var(--surface); color: var(--ink); font: inherit; resize: none; }
.aip .aiform textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.aifine { margin: 0; padding: 0 12px 10px; color: var(--muted); font-size: 0.74rem; line-height: 1.4; }
.aifine a { color: var(--risk); }
@media (max-width: 600px) {
  .aip { left: 0; right: 0; bottom: 0; width: 100%; height: min(88vh, 100%); border-radius: 22px 22px 0 0; }
  .aifab.on { display: none; }
}
@media (prefers-reduced-motion: reduce) { .aifab, .aifab:hover { transition: none; transform: none; } }

/* ---- test call page (#/calltest), 2026-11 ---- */
.ctstate { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-radius: 14px; font-weight: 600; margin: 0 0 16px; }
.ctstate.ok { background: var(--accent-soft); color: var(--accent); }
.ctstate.bad { border: 1.5px solid var(--risk); color: var(--risk); }
.ctlink { display: flex; gap: 8px; margin-top: 12px; }
.ctlink input { flex: 1; min-width: 0; padding: 10px 12px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--ink); font: 0.92rem var(--font-mono, monospace); }
.ctsteps { margin: 10px 0 0; padding-left: 22px; display: grid; gap: 8px; }
