/* Diagnify Patient — component styles on top of the Tailwind tokens (Stitch "Clinical Clarity"). */
:root { --line: #e2e8f0; --blue: #0066ff; --blue-ink: #0050cb; --ink: #0b1c30; --muted: #424656; --safe-b: env(safe-area-inset-bottom, 0px); --safe-t: env(safe-area-inset-top, 0px); }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { min-height: 100dvh; margin: 0; }
.material-symbols-outlined { font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24; line-height: 1; user-select: none; }
.material-symbols-outlined.fill { font-variation-settings: 'FILL' 1, 'wght' 400, 'GRAD' 0, 'opsz' 24; }

/* forms */
.form-label { display: block; font: 600 12px/16px Inter, system-ui, sans-serif; letter-spacing: .02em; color: var(--muted); margin-bottom: 6px; }
.form-input { display: block; width: 100%; min-height: 46px; border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; font: 400 16px/24px Inter, system-ui, sans-serif; color: var(--ink); background: #fff; outline: none; box-shadow: none; appearance: none; -webkit-appearance: none; }
.form-input:focus { border-color: var(--blue); box-shadow: 0 0 0 1px var(--blue); }
.form-input::placeholder { color: #9aa3b5; }
.form-input[readonly] { background: #f5f7fb; color: var(--muted); }
textarea.form-input { min-height: 84px; resize: vertical; }
select.form-input { background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23727687' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 16px; padding-right: 40px; }
input[type="date"].form-input { min-height: 46px; }
.form-error { color: #93000a; background: #ffdad6; border-radius: 10px; padding: 10px 12px; font: 500 14px/20px Inter, system-ui, sans-serif; }
.form-ok { color: #1e7a46; background: #dcf5e6; border-radius: 10px; padding: 10px 12px; font: 500 14px/20px Inter, system-ui, sans-serif; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 20px; border-radius: 12px; font: 600 15px/1 Inter, system-ui, sans-serif; border: 1px solid transparent; cursor: pointer; transition: transform .1s ease, background-color .15s ease, opacity .15s ease; white-space: nowrap; }
.btn:active { transform: scale(.98); }
.btn:disabled { opacity: .55; cursor: default; transform: none; }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover:not(:disabled) { background: #0059e0; }
.btn-secondary { background: #fff; color: var(--blue-ink); border-color: var(--line); }
.btn-secondary:hover:not(:disabled) { background: #eff4ff; }
.btn-ghost { background: transparent; color: var(--blue-ink); min-height: 40px; padding: 0 10px; }
.btn-danger { background: #fff; color: #93000a; border-color: #ffdad6; }
.btn-block { width: 100%; }
.btn-sm { min-height: 38px; padding: 0 14px; font-size: 13px; }
.btn:focus-visible, .chip:focus-visible, .tab:focus-visible, .form-input:focus-visible, .cal-day:focus-visible, .slot:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }

/* chips */
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 9999px; border: 1px solid var(--line); background: #fff; color: var(--muted); font: 500 14px/20px Inter, system-ui, sans-serif; cursor: pointer; transition: background-color .15s ease; }
.chip:hover { background: #eff4ff; }
.chip-on { border-color: var(--blue); background: #eff4ff; color: var(--blue-ink); }
.tag { display: inline-flex; align-items: center; gap: 4px; padding: 3px 8px; border-radius: 6px; font: 600 11px/16px Inter, system-ui, sans-serif; letter-spacing: .02em; }
.tag-clinic { background: #d3e4fe; color: #003fa4; }
.tag-you { background: #eff4ff; color: #424656; border: 1px solid var(--line); }
.tag-ok { background: #dcf5e6; color: #1e7a46; }
.tag-warn { background: #fff1d6; color: #8a5a00; }
.tag-err { background: #ffdad6; color: #93000a; }

/* cards + list items */
.card { background: #fff; border: 1px solid var(--line); border-radius: 12px; }
.card-tint { background: #f0f7ff; }
.item { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 12px; border-radius: 10px; border: 1px solid var(--line); background: #fff; }
.item-danger { border-color: #ba1a1a; background: rgba(255, 218, 214, .12); }
.item-ico { width: 40px; height: 40px; border-radius: 9999px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }

/* shell */
.app-header { position: sticky; top: 0; z-index: 40; height: calc(56px + var(--safe-t)); padding-top: var(--safe-t); background: #f8f9ff; border-bottom: 1px solid var(--line); }
.tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; background: #f8f9ff; border-top: 1px solid var(--line); height: calc(64px + var(--safe-b)); padding-bottom: var(--safe-b); display: flex; justify-content: space-around; align-items: center; }
.tab { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; padding: 6px 14px; border-radius: 12px; color: var(--muted); font: 600 12px/16px Inter, system-ui, sans-serif; min-width: 72px; }
.tab.on { background: #d3e4fe; color: var(--blue-ink); }
.tab.on .material-symbols-outlined { font-variation-settings: 'FILL' 1, 'wght' 400, 'GRAD' 0, 'opsz' 24; }
.screen { padding: 16px; padding-bottom: calc(96px + var(--safe-b)); max-width: 720px; margin: 0 auto; }
.screen-bare { padding: 16px; min-height: 100dvh; max-width: 560px; margin: 0 auto; }
.avatar { width: 32px; height: 32px; border-radius: 9999px; background: #dce9ff; color: var(--blue-ink); display: flex; align-items: center; justify-content: center; font: 700 12px/1 Inter, system-ui, sans-serif; border: 1px solid #c2c6d8; }

/* progress */
.progress { height: 6px; background: #d3e4fe; border-radius: 9999px; overflow: hidden; }
.progress > div { height: 100%; background: var(--blue); border-radius: 9999px; transition: width .25s ease; }

/* otp */
.otp-wrap { position: relative; }
.otp-cells { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; }
.otp-cell { height: 56px; border: 1px solid var(--line); border-radius: 12px; background: #fff; display: flex; align-items: center; justify-content: center; font: 600 24px/1 Inter, system-ui, sans-serif; color: var(--ink); }
.otp-cell.on { border-color: var(--blue); box-shadow: 0 0 0 1px var(--blue); }
.otp-input { position: absolute; inset: 0; opacity: 0; font-size: 24px; letter-spacing: 1em; }

/* calendar + slots */
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; text-align: center; }
.cal-head { font: 700 11px/16px Inter, system-ui, sans-serif; letter-spacing: .05em; color: var(--muted); padding: 4px 0; }
.cal-day { aspect-ratio: 1; border-radius: 9999px; border: 0; background: transparent; font: 500 14px/1 Inter, system-ui, sans-serif; color: var(--ink); cursor: pointer; }
.cal-day:hover:not(:disabled) { background: #eff4ff; }
.cal-day:disabled { color: #9aa3b5; cursor: default; }
.cal-day.muted { opacity: .35; }
.cal-day.on { background: var(--blue); color: #fff; font-weight: 700; }
.cal-day.free { position: relative; }
.cal-day.free::after { content: ""; position: absolute; left: 50%; bottom: 4px; width: 4px; height: 4px; border-radius: 9999px; background: var(--blue); transform: translateX(-50%); }
.cal-day.on.free::after { background: #fff; }
.slot { padding: 12px 8px; border: 1px solid var(--line); border-radius: 10px; background: #fff; font: 500 14px/20px Inter, system-ui, sans-serif; color: var(--ink); cursor: pointer; text-align: center; }
.slot:hover:not(:disabled) { border-color: var(--blue); background: #eff4ff; }
.slot:disabled { opacity: .45; cursor: not-allowed; }
.slot.on { border: 2px solid var(--blue); background: #eff4ff; color: var(--blue-ink); font-weight: 700; padding: 11px 7px; }

/* chat */
.chat-bar { position: fixed; left: 0; right: 0; bottom: calc(64px + var(--safe-b)); z-index: 40; padding: 12px 16px; background: linear-gradient(to top, #f8f9ff 70%, rgba(248, 249, 255, 0)); }
.chat-box { max-width: 720px; margin: 0 auto; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 8px; display: flex; align-items: center; gap: 8px; box-shadow: 0 10px 25px rgba(0, 0, 0, .05); }
.chat-box input { flex: 1; min-width: 0; height: 40px; border: 0; background: transparent; font: 400 16px/24px Inter, system-ui, sans-serif; color: var(--ink); outline: none; padding: 0 6px; }
.ico-btn { width: 40px; height: 40px; border-radius: 12px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; border: 1px solid transparent; cursor: pointer; }
.ico-btn.soft { background: #dce9ff; color: var(--muted); border-color: rgba(194, 198, 216, .5); }
.ico-btn.solid { background: var(--blue); color: #fff; }
.ico-btn:disabled { opacity: .5; cursor: default; }
.bubble-user { align-self: flex-end; max-width: 85%; background: var(--blue); color: #fff; border-radius: 16px 16px 4px 16px; padding: 10px 14px; font: 400 15px/22px Inter, system-ui, sans-serif; white-space: pre-wrap; }
.bubble-ai { align-self: flex-start; max-width: 100%; width: 100%; background: #fff; border: 1px solid var(--line); border-radius: 16px 16px 16px 4px; padding: 14px 16px; }
.md { font: 400 15px/23px Inter, system-ui, sans-serif; color: var(--ink); overflow-wrap: anywhere; }
.md h1, .md h2, .md h3, .md h4, .md h5 { font: 700 16px/22px "Hanken Grotesk", Inter, system-ui, sans-serif; margin: 14px 0 6px; color: var(--ink); }
.md h1:first-child, .md h2:first-child, .md h3:first-child, .md h4:first-child { margin-top: 0; }
.md p { margin: 0 0 10px; }
.md ul, .md ol { margin: 0 0 10px 18px; padding: 0; }
.md li { margin: 4px 0; }
.md strong { font-weight: 600; }
.md table { border-collapse: collapse; width: 100%; font-size: 14px; margin: 8px 0; display: block; overflow-x: auto; }
.md th, .md td { border: 1px solid var(--line); padding: 6px 8px; text-align: left; vertical-align: top; }
.md hr { border: 0; border-top: 1px solid var(--line); margin: 12px 0; }
.md code { background: #eff4ff; padding: 1px 5px; border-radius: 4px; font-size: 13px; }
.cursor::after { content: "▍"; color: var(--blue); animation: blink 1s steps(2) infinite; }
.diagram { margin: 10px 0; overflow-x: auto; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 8px; }
.diagram svg { max-width: 100%; height: auto; }

/* misc */
.dpa-spin { width: 24px; height: 24px; border: 3px solid #dce9ff; border-top-color: var(--blue); border-radius: 9999px; animation: spin .8s linear infinite; display: inline-block; }
#toast { position: fixed; left: 50%; bottom: calc(84px + var(--safe-b)); transform: translateX(-50%); z-index: 100; background: #213145; color: #eaf1ff; padding: 10px 16px; border-radius: 12px; font: 500 14px/20px Inter, system-ui, sans-serif; box-shadow: 0 10px 25px rgba(0, 0, 0, .15); max-width: 92vw; }
#toast[hidden] { display: none; }
.intake-frame { width: 100%; height: calc(100dvh - 56px - var(--safe-t) - 52px - var(--safe-b)); border: 0; background: #070a12; display: block; }
.intake-top { position: sticky; top: 0; z-index: 40; height: calc(56px + var(--safe-t)); padding-top: var(--safe-t); background: #f8f9ff; border-bottom: 1px solid var(--line); }
.intake-foot { position: fixed; left: 0; right: 0; bottom: 0; height: calc(52px + var(--safe-b)); padding-bottom: var(--safe-b); background: #f8f9ff; border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: center; gap: 8px; font: 500 13px/18px Inter, system-ui, sans-serif; color: var(--muted); }
.fade-in { animation: fade .25s ease; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes blink { 50% { opacity: 0; } }
@keyframes fade { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

/* medication table (records): one row per medicine — Medication (form · who recorded it) · Dose · How often · What for.
   Cards on a phone (name → dose · how often → what for → who recorded it); a real table from 600px. */
.rx { width: 100%; border-collapse: collapse; }
.rx thead { display: none; }
.rx tbody { display: flex; flex-direction: column; gap: 8px; }
.rx tbody tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "name act" "sig act" "for act" "src act"; column-gap: 10px; padding: 12px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.rx td { display: block; padding: 0; font: 400 14px/20px Inter, system-ui, sans-serif; color: var(--muted); overflow-wrap: anywhere; }
.rx .rx-name { grid-area: name; }
.rx .rx-n { font: 600 16px/22px Inter, system-ui, sans-serif; color: var(--ink); }
.rx .rx-form { display: inline-block; margin-left: 6px; padding: 1px 6px; border-radius: 6px; background: #eff4ff; border: 1px solid var(--line); color: var(--muted); font: 600 11px/16px Inter, system-ui, sans-serif; vertical-align: 2px; white-space: nowrap; }
.rx .rx-tag { display: none; }
.rx .rx-dose, .rx .rx-freq { display: none; }
.rx .rx-sig { grid-area: sig; margin-top: 2px; color: var(--ink); font-weight: 500; }
.rx .rx-for { grid-area: for; margin-top: 2px; }
.rx .rx-for::before { content: "For "; color: #727687; }
.rx .rx-src { grid-area: src; margin-top: 8px; }
.rx .is-empty { display: none; }
.rx .rx-act { grid-area: act; display: flex; gap: 2px; align-self: start; margin: -6px -6px 0 0; }
.rx-btn { width: 36px; height: 36px; border: 0; border-radius: 10px; background: transparent; color: var(--blue-ink); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.rx-btn:hover { background: #eff4ff; }
.rx-btn.rx-del { color: #727687; }
.rx-btn.rx-del:hover { color: #93000a; background: #fff1f0; }
.rx-none { color: #9aa3b5; }
.rx-hint { display: flex; align-items: center; gap: 6px; font: 400 13px/18px Inter, system-ui, sans-serif; color: var(--muted); }
@media (min-width: 600px) {
  .rx thead { display: table-header-group; }
  .rx tbody { display: table-row-group; }
  .rx tbody tr { display: table-row; padding: 0; border: 0; border-radius: 0; background: transparent; }
  .rx th { text-align: left; padding: 0 8px 8px; font: 700 11px/16px Inter, system-ui, sans-serif; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); border-bottom: 1px solid var(--line); }
  .rx th:first-child, .rx td:first-child { padding-left: 2px; }
  .rx td { display: table-cell; padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
  .rx tbody tr:last-child td { border-bottom: 0; }
  .rx .rx-name { width: 34%; }
  .rx .rx-dose { width: 15%; }
  .rx .rx-freq { width: 20%; }
  .rx .rx-tag { display: block; margin-top: 6px; }
  .rx .rx-dose, .rx .rx-freq, .rx .rx-for.is-empty { display: table-cell; }
  .rx .rx-sig, .rx .rx-src { display: none; }
  .rx .rx-for::before { content: none; }
  .rx .rx-act { display: table-cell; width: 76px; white-space: nowrap; text-align: right; }
  .rx .rx-n { font-size: 15px; }
}

/* measurements: latest value per metric with its date, change since last reading and a sparkline; then the dated history */
.ms { display: flex; flex-direction: column; gap: 2px; }
.ms-v { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; margin-top: 2px; }
.ms-v p { font-variant-numeric: tabular-nums; }
.ms-delta { font: 600 11px/16px Inter, system-ui, sans-serif; color: #727687; white-space: nowrap; font-variant-numeric: tabular-nums; }
.ms-foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 6px; margin-top: auto; }
.ms-date { font: 500 11px/16px Inter, system-ui, sans-serif; color: #727687; white-space: nowrap; }
.ms-none { color: #9aa3b5; }
.spark { flex: 0 0 auto; max-width: 55%; height: auto; }
.spark path { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linejoin: round; stroke-linecap: round; }
.spark circle { fill: currentColor; }
.spark .s1 { color: var(--blue); }
.spark .s2 { color: #6063ee; opacity: .65; }
.ml-head { display: flex; align-items: baseline; justify-content: space-between; margin-top: 6px; }
.ml { display: flex; flex-direction: column; gap: 6px; }
.ml-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 8px 6px 8px 12px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.ml-when { min-width: 60px; }
.ml-d { display: block; font: 600 14px/18px Inter, system-ui, sans-serif; color: var(--ink); white-space: nowrap; }
.ml-t { display: block; font: 500 11px/16px Inter, system-ui, sans-serif; color: #727687; white-space: nowrap; }
.ml-vals { display: flex; flex-wrap: wrap; gap: 6px; }
.ml-v { padding: 2px 8px; border-radius: 6px; background: #eff4ff; border: 1px solid var(--line); font: 500 13px/18px Inter, system-ui, sans-serif; color: var(--ink); white-space: nowrap; font-variant-numeric: tabular-nums; }
.ml-more { align-self: center; }

/* inbox: unread badge on the bell + tab, one row per document the doctor sent */
.nbell { position: relative; }
.nbadge { position: absolute; top: 2px; right: 2px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 9999px; background: #ba1a1a; color: #fff; font: 700 10px/16px Inter, system-ui, sans-serif; text-align: center; pointer-events: none; }
.nbadge[hidden] { display: none; }
.tab { position: relative; }
.tab .nbadge { top: 0; left: 50%; right: auto; margin-left: 6px; }
@media (max-width: 430px) { .tab { min-width: 0; padding: 6px 6px; font-size: 11px; } .tabbar { padding: 0 2px; } }
.ib-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 4px; padding: 0 4px 0 0; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.ib-row.is-new { border-color: #b3c5ff; background: #f8faff; }
.ib-open { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px; width: 100%; padding: 12px; border: 0; background: transparent; text-align: left; cursor: pointer; border-radius: 12px; }
.ib-open:hover { background: #eff4ff; }
.ib-open:focus-visible { outline: 2px solid var(--blue); outline-offset: -2px; }
.ib-main { min-width: 0; }
.ib-t { display: flex; align-items: center; gap: 8px; font: 600 15px/20px Inter, system-ui, sans-serif; color: var(--ink); overflow-wrap: anywhere; }
.ib-row.is-new .ib-t { font-weight: 700; }
.ib-new { padding: 1px 6px; border-radius: 6px; background: var(--blue); color: #fff; font: 700 10px/14px Inter, system-ui, sans-serif; letter-spacing: .04em; text-transform: uppercase; flex: 0 0 auto; }
.ib-s { display: block; font: 400 13px/18px Inter, system-ui, sans-serif; color: var(--muted); margin-top: 1px; }
.ib-m { display: block; font: 400 13px/18px Inter, system-ui, sans-serif; color: var(--muted); margin-top: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ib-pdf { display: flex; flex-direction: column; align-items: center; gap: 1px; color: #727687; font: 500 10px/12px Inter, system-ui, sans-serif; }
.ib-del { flex: 0 0 auto; }
.home-inbox { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 9999px; background: #eff4ff; border: 1px solid #b3c5ff; color: var(--blue-ink); font: 600 14px/20px Inter, system-ui, sans-serif; }

/* sign-in: Mobile | Email switch, country picker beside the number */
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; border-radius: 12px; background: #e5eeff; }
.seg-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 40px; border: 0; border-radius: 9px; background: transparent; color: var(--muted); font: 600 14px/20px Inter, system-ui, sans-serif; cursor: pointer; }
.seg-btn.on { background: #fff; color: var(--blue-ink); box-shadow: 0 1px 2px rgba(11, 28, 48, .08); }
.seg-btn:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.phone-row { display: grid; grid-template-columns: minmax(0, 132px) minmax(0, 1fr); gap: 8px; }
.phone-cc { padding-left: 10px; padding-right: 28px; font-size: 14px; background-position: right 8px center; }

/* address field: search with suggestions, or the manual fields */
.addr { display: flex; flex-direction: column; gap: 10px; }
.addr-search { position: relative; }
.addr-list { position: absolute; left: 0; right: 0; top: calc(100% + 4px); z-index: 30; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 12px 30px rgba(11, 28, 48, .12); overflow: hidden; }
.addr-list[hidden] { display: none; }
.addr-item { display: flex; flex-direction: column; align-items: flex-start; gap: 1px; width: 100%; padding: 10px 14px; border: 0; border-top: 1px solid var(--line); background: #fff; text-align: left; cursor: pointer; font: 400 14px/20px Inter, system-ui, sans-serif; color: var(--ink); }
.addr-item:first-child { border-top: 0; }
.addr-item:hover { background: #eff4ff; }
.addr-item strong { font-weight: 600; }
.addr-item span { font-size: 12px; color: var(--muted); }
.addr-item.is-manual { flex-direction: row; align-items: center; gap: 6px; color: var(--blue-ink); font-weight: 600; background: #f8faff; }
.addr-picked { display: flex; align-items: flex-start; gap: 6px; margin: 0; font: 500 13px/18px Inter, system-ui, sans-serif; color: var(--ink); }
.addr-toggle { align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; padding: 4px 0; border: 0; background: transparent; color: var(--blue-ink); font: 600 13px/18px Inter, system-ui, sans-serif; cursor: pointer; }

/* video consult (#/call) */
.call-ring { animation: call-ring 1.1s ease-in-out infinite; }
@keyframes call-ring { 0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(0, 102, 255, .35); } 50% { transform: scale(1.06); box-shadow: 0 0 0 18px rgba(0, 102, 255, 0); } }
.call-stage { position: fixed; inset: 0; background: #05080f; color: #fff; overflow: hidden; }
.call-remote { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.call-remote-video { width: 100%; height: 100%; object-fit: cover; }
.call-waiting { display: flex; align-items: center; gap: 10px; color: #c9d4e4; font: 500 15px/20px Inter, system-ui, sans-serif; padding: 0 24px; text-align: center; }
.call-local { position: absolute; right: 12px; top: calc(60px + var(--safe-t)); width: 108px; height: 150px; border-radius: 14px; overflow: hidden; background: #111a2b; border: 1px solid rgba(255, 255, 255, .18); }
.call-local-video { width: 100%; height: 100%; object-fit: cover; transform: scaleX(-1); }
.call-top { position: absolute; left: 12px; right: 12px; top: calc(12px + var(--safe-t)); display: flex; align-items: center; justify-content: space-between; }
.call-clock { font: 600 14px/20px Inter, system-ui, sans-serif; color: #fff; font-variant-numeric: tabular-nums; background: rgba(0, 0, 0, .35); padding: 4px 10px; border-radius: 999px; }
.call-bar { position: absolute; left: 0; right: 0; bottom: calc(28px + var(--safe-b)); display: flex; justify-content: center; gap: 18px; }
.call-btn { width: 60px; height: 60px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .16); color: #fff; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.call-btn .material-symbols-outlined { font-size: 28px; }
.call-btn.is-off { background: #fff; color: #0b1c30; }
.call-btn.is-end { background: #ba1a1a; }

/* incoming urgent video call — shown over any screen while the doctor is ringing */
.incoming { position: fixed; inset: 0; z-index: 90; background: #05080f; color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 18px; padding: 24px; }
.incoming .inc-av { width: 88px; height: 88px; border-radius: 50%; background: rgba(0, 102, 255, .25); display: flex; align-items: center; justify-content: center; animation: call-ring 1.1s ease-in-out infinite; }
.incoming .inc-av .material-symbols-outlined { font-size: 40px; color: #fff; }
.incoming h2 { margin: 0; font: 700 22px/1.25 Inter, system-ui, sans-serif; }
.incoming p { margin: 0; color: #c9d4e4; font: 500 15px/1.4 Inter, system-ui, sans-serif; max-width: 320px; }
.incoming .inc-btns { display: flex; gap: 22px; margin-top: 10px; }
.incoming .inc-btn { width: 68px; height: 68px; border-radius: 50%; border: 0; cursor: pointer; display: flex; align-items: center; justify-content: center; color: #fff; }
.incoming .inc-btn .material-symbols-outlined { font-size: 30px; }
.incoming .inc-answer { background: #1f9d55; }
.incoming .inc-later { background: rgba(255, 255, 255, .16); }
.incoming .inc-lbl { display: block; margin-top: 8px; font: 600 12px/1 Inter, system-ui, sans-serif; color: #c9d4e4; }

/* store-readiness: legal links (the existing .btn-danger is used for account deletion) */
.legal-links { display: inline-flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.legal-links a { color: #0050cb; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
