:root {
  --brand: #0f766e;
  --brand-dark: #115e59;
  --brand-soft: #e7f5f3;
  --brand-line: #b9e1db;
  --text: #17212b;
  --muted: #5b6673;
  --line: #e1e5ea;
  --bg: #f5f7f9;
  --card: #fff;
  --danger: #b42318;
  --danger-soft: #fdeeec;
  --danger-line: #f6cbc6;
  --warn: #7a5600;
  --warn-soft: #fff7e3;
  --warn-line: #f3dfa4;
  --info: #1d4ed8;
  --info-soft: #eef3fe;
  --info-line: #c9d8fb;
  --ok: #0f6b45;
  --ok-soft: #e8f6ee;
  --ok-line: #bfe5cf;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 1px 3px rgba(16, 24, 40, .05);
  --tabbar-h: 64px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; min-height: 100vh; line-height: 1.5; font-size: 16px; display: flex; flex-direction: column; }
a { color: var(--brand); text-underline-offset: 2px; }
h1, h2, h3 { line-height: 1.25; margin: 0 0 10px; letter-spacing: -.01em; }
h1 { font-size: 26px; }
h2 { font-size: 19px; display: flex; align-items: center; gap: 8px; }
h3 { font-size: 16px; }
p { margin: 0 0 10px; }
fieldset { border: 0; padding: 0; margin: 0 0 14px; min-width: 0; }
:focus-visible { outline: 3px solid #5eb3a9; outline-offset: 2px; }
.icon { width: 20px; height: 20px; flex: none; }
.icon-lg { width: 28px; height: 28px; color: var(--brand); }
.skip { position: absolute; left: -9999px; top: 0; background: #fff; padding: 10px 14px; z-index: 100; }
.skip:focus { left: 8px; top: 8px; }

/* Frame */
/* Phones with a notch: keep content below the status bar (env() is 0 on other screens). */
body { padding-top: env(safe-area-inset-top); }
body::before { content: ""; position: fixed; top: 0; left: 0; right: 0; height: env(safe-area-inset-top); background: #fff; z-index: 40; }
.sandbox-note { margin: 0; padding: 7px 16px; background: var(--warn-soft); border-bottom: 1px solid var(--warn-line); color: var(--warn); font-size: 13px; line-height: 1.45; text-align: center; }
.app-header { position: sticky; top: env(safe-area-inset-top); z-index: 20; background: rgba(255, 255, 255, .96); backdrop-filter: saturate(1.4) blur(8px); border-bottom: 1px solid var(--line); }
.header-inner { max-width: 1120px; margin: 0 auto; display: flex; align-items: center; gap: 16px; padding: 8px 16px; min-height: 60px; }
.brand { display: flex; align-items: center; gap: 9px; font-weight: 700; font-size: 18px; color: var(--text); text-decoration: none; min-height: 44px; white-space: nowrap; }
.top-nav { display: flex; gap: 2px; flex: 1; min-width: 0; }
.top-link { position: relative; display: inline-flex; align-items: center; gap: 7px; min-height: 44px; padding: 0 12px; border-radius: 10px; color: var(--muted); text-decoration: none; font-weight: 600; font-size: 15px; white-space: nowrap; }
.top-link:hover { background: var(--bg); color: var(--text); }
.top-link.active { color: var(--brand-dark); background: var(--brand-soft); }
.header-actions { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.lang-switch { font: inherit; font-size: 14px; font-weight: 700; letter-spacing: .04em; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 12px; margin-left: 6px; border: 1px solid var(--line); border-radius: 99px; background: #fff; color: var(--muted); cursor: pointer; transition: border-color .15s, color .15s; }
.lang-switch:hover { border-color: var(--brand); color: var(--brand-dark); }
.lang-switch .icon { width: 17px; height: 17px; }
.page { width: 100%; max-width: 1120px; margin: 0 auto; padding: 24px 16px 40px; flex: 1; outline: none; }
.tabbar { display: none; }
.badge { min-width: 19px; height: 19px; padding: 0 5px; border-radius: 99px; background: var(--danger); color: #fff; font-size: 12px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; line-height: 1; }

/* Buttons */
.btn, .btn-secondary, .btn-ghost, .btn-danger, .btn-danger-solid, .btn-link {
  font: inherit; font-weight: 600; border-radius: 10px; cursor: pointer; min-height: 46px; padding: 0 18px;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none; border: 1px solid transparent;
  transition: background-color .15s, border-color .15s, color .15s; white-space: nowrap;
}
.btn { background: var(--brand); color: #fff; }
.btn:hover { background: var(--brand-dark); }
.btn-secondary { background: var(--card); color: var(--brand-dark); border-color: var(--brand-line); }
.btn-secondary:hover { background: var(--brand-soft); }
.btn-ghost { background: transparent; color: var(--brand-dark); }
.btn-ghost:hover { background: var(--brand-soft); }
.btn-danger { background: var(--card); color: var(--danger); border-color: var(--danger-line); }
.btn-danger:hover { background: var(--danger-soft); }
.btn-danger-solid { background: var(--danger); color: #fff; }
.btn-link { background: none; color: var(--brand); padding: 0 8px; }
.btn-link.inline { min-height: 44px; padding: 0 4px; text-decoration: underline; }
button:disabled, .btn[aria-disabled=true] { opacity: .55; cursor: default; }
[aria-busy=true] { cursor: progress; }
.btn-small { min-height: 44px; padding: 0 12px; font-size: 14px; }
.btn-lg { min-height: 50px; padding: 0 22px; font-size: 17px; }
.btn-block { width: 100%; }
.back { padding-left: 4px; margin: -8px 0 6px -4px; }

/* Layout helpers */
.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.row.end { justify-content: flex-end; }
.center-row { justify-content: center; }
.actions { display: flex; gap: 10px; justify-content: space-between; align-items: center; margin-top: 4px; flex-wrap: wrap; }
.grid-2 { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); margin-bottom: 16px; }
.grid-2.tight { gap: 0 16px; margin-bottom: 0; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.grid-3 { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); margin-bottom: 16px; }
.page-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.page-head h1 { margin-bottom: 2px; }
.page-head p { margin: 0; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; margin-bottom: 16px; box-shadow: var(--shadow); min-width: 0; }
.card-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 4px; }
.card-head h2 { margin: 0; }
.card-head a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.tiny { font-size: 13px; }
.block { display: block; }
.center { text-align: center; }
.mt { margin-top: 14px; }
.pre { white-space: pre-wrap; overflow-wrap: anywhere; }

/* Landing */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.page.page-wide { max-width: none; padding: 0; }
.lp-inner { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.faq { max-width: 820px; }
.eyebrow { color: var(--brand); font-weight: 700; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 8px; }
.eyebrow-pill { display: inline-flex; align-items: center; gap: 8px; background: #fff; border: 1px solid var(--brand-line); color: var(--brand-dark); font-weight: 600; font-size: 14px; border-radius: 99px; padding: 5px 14px 5px 10px; margin-bottom: 18px; }
.eyebrow-pill .icon { width: 18px; height: 18px; color: var(--brand); }
.lp-hero { background: radial-gradient(900px 420px at 85% -10%, #d3efea 0%, transparent 70%), radial-gradient(700px 380px at -10% 110%, #e6f1fb 0%, transparent 70%), linear-gradient(180deg, #f7fbfa 0%, var(--bg) 100%); padding: 48px 0 56px; border-bottom: 1px solid var(--line); }
.lp-hero-grid { display: grid; gap: 32px; align-items: center; }
.hero h1 { font-size: clamp(31px, 4.4vw, 50px); line-height: 1.12; letter-spacing: -.025em; margin-bottom: 16px; }
.lead { color: var(--muted); font-size: 18px; line-height: 1.6; margin-bottom: 24px; max-width: 580px; }
.hero .btn .icon, .lp-service .btn .icon, .lp-cta .icon, #try-continue .icon { width: 18px; height: 18px; }
.lp-assure { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 8px; }
.lp-assure li { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; color: #344050; }
.lp-assure .icon { width: 20px; height: 20px; color: #fff; background: var(--brand); border-radius: 50%; padding: 3px; margin-top: 1px; }
.lp-try { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 24px; box-shadow: 0 24px 48px -16px rgba(15, 60, 70, .18), 0 2px 6px rgba(16, 24, 40, .05); }
.lp-try h2 { font-size: 20px; margin-bottom: 4px; }
.lp-try h2 .icon { color: var(--brand); }
.lp-try textarea { min-height: 112px; margin: 6px 0 4px; }
.lp-try .error:empty { display: none; }
.lp-try-note { display: flex; gap: 6px; align-items: center; margin: 12px 0 0; }
.lp-try-note .icon { width: 15px; height: 15px; }
.lp-try-result { margin-top: 16px; padding: 16px; border-radius: 14px; background: var(--brand-soft); border: 1px solid var(--brand-line); }
.lp-try-result p { margin: 0 0 6px; }
.lp-try-dept { font-size: 22px; font-weight: 700; color: var(--brand-dark); letter-spacing: -.01em; }
.lp-try-result .btn { margin: 10px 0 8px; }
#try-result .alert { margin: 16px 0 0; }
.lp-section { padding: 64px 0; }
.lp-alt { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.lp-head { max-width: 680px; margin-bottom: 28px; }
.lp-head h2 { font-size: clamp(25px, 3vw, 34px); letter-spacing: -.02em; display: block; margin-bottom: 8px; }
.lp-head p.muted { font-size: 17px; margin: 0; }
.lp-services { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.lp-service { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 28px; display: flex; flex-direction: column; gap: 10px; box-shadow: var(--shadow); transition: box-shadow .2s, transform .2s; }
.lp-service:hover { box-shadow: 0 16px 32px -16px rgba(15, 60, 70, .22); transform: translateY(-2px); }
.lp-service h3 { font-size: 22px; margin: 6px 0 0; }
.lp-service p { margin: 0; }
.lp-service .btn { align-self: flex-start; margin-top: auto; }
.lp-service-icon, .lp-trust-icon { width: 48px; height: 48px; border-radius: 14px; background: var(--brand-soft); color: var(--brand); display: inline-flex; align-items: center; justify-content: center; flex: none; }
.lp-service-icon .icon, .lp-trust-icon .icon { width: 24px; height: 24px; }
.ticks { list-style: none; padding: 0; margin: 4px 0 10px; flex: 1; }
.ticks li { display: flex; gap: 8px; align-items: flex-start; padding: 4px 0; font-size: 15px; }
.ticks .icon { color: var(--brand); width: 18px; height: 18px; margin-top: 3px; }
.lp-steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 28px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); counter-reset: none; }
.lp-steps li { position: relative; }
.lp-steps .step-num { width: 44px; height: 44px; font-size: 18px; background: var(--brand); color: #fff; margin-bottom: 14px; box-shadow: 0 0 0 6px var(--brand-soft); }
.lp-steps strong { display: block; font-size: 18px; margin-bottom: 4px; }
.lp-steps p { margin: 0; font-size: 15px; }
.step-num, .sec-num { width: 30px; height: 30px; flex: none; border-radius: 50%; background: var(--brand-soft); color: var(--brand-dark); font-weight: 700; display: inline-flex; align-items: center; justify-content: center; font-size: 15px; }
.lp-depts { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.lp-depts li { background: #fff; border: 1px solid var(--line); border-radius: 99px; padding: 8px 16px; font-size: 15px; font-weight: 500; box-shadow: var(--shadow); }
.lp-doctors { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.lp-doctor { border: 1px solid var(--line); border-radius: 16px; padding: 18px; background: var(--bg); display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.lp-doctor p { margin: 0; flex: 1; }
.lp-doctor-head { display: flex; gap: 12px; align-items: center; min-width: 0; }
.lp-doctor-head strong { display: block; overflow-wrap: anywhere; }
.avatar { width: 48px; height: 48px; border-radius: 50%; flex: none; background: linear-gradient(135deg, var(--brand), #14a090); color: #fff; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; font-size: 16px; }
.lp-doctor-foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: 10px; }
.lp-doctor .price { font-weight: 700; font-size: 17px; }
.lp-trust { display: grid; gap: 28px 32px; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); }
.lp-trust-item { display: flex; gap: 16px; align-items: flex-start; }
.lp-trust-item h3 { margin: 2px 0 4px; font-size: 17px; }
.lp-trust-item p { margin: 0; font-size: 15px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; min-height: 60px; display: flex; align-items: center; justify-content: space-between; gap: 16px; font-weight: 600; font-size: 17px; padding: 10px 0; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 24px; font-weight: 400; color: var(--brand); flex: none; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 18px; max-width: 700px; }
.lp-cta { background: linear-gradient(135deg, #0f766e 0%, #115e59 55%, #134e4a 100%); color: #fff; border-radius: 24px; padding: 36px; display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; margin-bottom: 20px; box-shadow: 0 24px 48px -24px rgba(15, 80, 75, .5); }
.lp-cta h2 { font-size: clamp(24px, 3vw, 32px); display: block; letter-spacing: -.02em; }
.lp-cta p { margin: 0; color: #d4efeb; font-size: 17px; max-width: 560px; }
.btn-light { background: #fff; color: var(--brand-dark); }
.btn-light:hover { background: #e9f6f4; }
.lp-doctor-cta { display: flex; gap: 16px; align-items: flex-start; flex-wrap: wrap; background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 22px 24px; margin-bottom: 20px; }
.lp-doctor-cta h3 { margin: 0 0 2px; font-size: 18px; }
.lp-doctor-cta p { margin: 0; }
.lp-doctor-cta .grow { flex: 1; min-width: 220px; }
.lp-section .alert { margin: 0; }
@media (min-width: 900px) {
  .lp-hero { padding: 72px 0 84px; }
  .lp-hero-grid { grid-template-columns: 1.1fr .9fr; gap: 56px; }
  .lp-section { padding: 88px 0; }
  .lp-steps li:not(:last-child)::after { content: ""; position: absolute; top: 22px; left: 62px; right: -14px; height: 2px; background: linear-gradient(90deg, var(--brand-line), transparent); }
}
@media (max-width: 560px) {
  #hdr-start { display: none; }
  .lp-hero { padding: 32px 0 40px; }
  .lp-section { padding: 48px 0; }
  .lp-try, .lp-service, .lp-cta { padding: 20px; border-radius: 18px; }
  .lp-cta .btn { width: 100%; }
  .lead { font-size: 17px; }
}
.trust { margin: 0; }

/* Auth */
.auth { max-width: 460px; margin: 0 auto; }
.demo-box h3 { margin-bottom: 4px; }

/* Forms */
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; min-width: 0; }
.field label, .label { font-weight: 600; font-size: 15px; }
.label { display: block; margin-bottom: 8px; }
.hint { font-size: 13px; color: var(--muted); margin: 0; }
.counter { font-size: 13px; color: var(--muted); align-self: flex-end; margin-top: -2px; }
input[type=text], input[type=email], input[type=password], input[type=number], select, textarea {
  font: inherit; width: 100%; min-height: 48px; padding: 11px 13px; border: 1px solid #c8cfd7; border-radius: 10px; background: #fff; color: var(--text);
}
input:disabled, select:disabled, textarea:disabled { background: #f1f3f5; color: var(--muted); }
textarea { min-height: 130px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 3px solid #b9e1db; outline-offset: 0; border-color: var(--brand); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; margin-bottom: 14px; cursor: pointer; min-height: 44px; }
.check.inline { margin: 0 14px 0 0; align-items: center; }
.check input { width: 22px; height: 22px; margin: 1px 0 0; flex: none; accent-color: var(--brand); }
.check a { display: inline; }
.segmented { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 16px; }
.segmented button { font: inherit; min-height: 48px; border-radius: 10px; border: 1px solid var(--line); background: #fff; cursor: pointer; font-weight: 600; color: var(--text); }
.segmented button[aria-pressed=true] { border-color: var(--brand); background: var(--brand-soft); color: var(--brand-dark); box-shadow: inset 0 0 0 1px var(--brand); }
.file-input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.upload { cursor: pointer; margin-bottom: 8px; }
.upload.busy { opacity: .6; pointer-events: none; }
.upload-row { display: flex; gap: 12px; align-items: flex-end; flex-wrap: wrap; }
.upload-row .field { flex: 1; min-width: 200px; margin-bottom: 8px; }
.inline-form { display: flex; gap: 12px; align-items: flex-end; flex-wrap: wrap; }
.inline-form .field { margin-bottom: 0; max-width: 220px; }
.inline-form .error { flex-basis: 100%; margin: 0; }
.checklist { background: var(--warn-soft); border: 1px solid var(--warn-line); color: var(--warn); border-radius: 12px; padding: 12px 16px; margin-bottom: 14px; }
.checklist ul { margin: 0; padding-left: 20px; }
.switch { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-weight: 600; min-height: 44px; }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch .track { width: 46px; height: 28px; border-radius: 99px; background: #c8cfd7; position: relative; transition: background .15s; flex: none; }
.switch .track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; transition: transform .15s; box-shadow: 0 1px 2px rgba(0, 0, 0, .2); }
.switch input:checked + .track { background: var(--brand); }
.switch input:checked + .track::after { transform: translateX(18px); }
.switch input:focus-visible + .track { outline: 3px solid #5eb3a9; outline-offset: 2px; }

/* Wizard */
.stepper { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 0 0 18px; padding: 0; list-style: none; }
.stepper li { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); padding-top: 8px; border-top: 4px solid var(--line); min-width: 0; }
.stepper .n { width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--line); display: inline-flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; flex: none; background: #fff; }
.stepper .n .icon { width: 14px; height: 14px; }
.stepper .l { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.stepper li.done, .stepper li.active { border-color: var(--brand); color: var(--brand-dark); font-weight: 600; }
.stepper li.done .n { background: var(--brand); border-color: var(--brand); color: #fff; }
.stepper li.active .n { border-color: var(--brand); }
.choice { display: flex; gap: 12px; align-items: flex-start; border: 1px solid var(--line); border-radius: 12px; padding: 14px; margin-bottom: 10px; cursor: pointer; background: #fff; transition: border-color .15s, background .15s; }
.choice:hover { border-color: var(--brand-line); }
.choice:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); box-shadow: inset 0 0 0 1px var(--brand); }
.choice input { width: 22px; height: 22px; margin-top: 2px; flex: none; accent-color: var(--brand); }
.choice .grow { flex: 1; min-width: 0; }
.choice .sub, .list-item .sub { display: block; color: var(--muted); font-size: 14px; }
.choice .bio { display: block; font-size: 14px; margin-top: 6px; }
.choice .price { font-weight: 700; white-space: nowrap; text-align: right; }
.choice .price .sub { font-weight: 400; font-size: 13px; }
.avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--brand-soft); color: var(--brand-dark); font-weight: 700; display: inline-flex; align-items: center; justify-content: center; flex: none; }

/* Alerts */
.alert { display: flex; gap: 10px; align-items: flex-start; border-radius: 12px; padding: 13px 15px; margin-bottom: 16px; font-size: 15px; border: 1px solid; }
.alert .icon { margin-top: 1px; }
.alert.danger { background: var(--danger-soft); color: var(--danger); border-color: var(--danger-line); }
.alert.danger-soft { background: #fff; color: var(--muted); border-color: var(--line); }
.alert.danger-soft .icon { color: var(--danger); }
.alert.info { background: var(--info-soft); color: #1e3a8a; border-color: var(--info-line); }
.alert.warn { background: var(--warn-soft); color: var(--warn); border-color: var(--warn-line); }
.alert.ok { background: var(--ok-soft); color: var(--ok); border-color: var(--ok-line); }
.alert.muted { background: #f1f3f5; color: var(--muted); border-color: var(--line); }
.alert.small { font-size: 14px; }
.error { color: var(--danger); font-size: 14px; margin: 0 0 12px; font-weight: 500; }
.error:empty { display: none; }

/* Lists */
.list { list-style: none; margin: 0; padding: 0; }
.list > li + li { border-top: 1px solid var(--line); }
.list-item { display: flex; gap: 12px; justify-content: space-between; align-items: center; padding: 13px 4px; text-decoration: none; color: inherit; min-height: 60px; border-radius: 8px; }
a.list-item:hover { background: #fafbfc; }
.list-item .grow { flex: 1; min-width: 0; }
.list-item .title { font-weight: 600; overflow-wrap: anywhere; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.list-item .amount { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; font-weight: 700; white-space: nowrap; }
.list-item .title.nowrap { flex-wrap: nowrap; align-items: baseline; }
.notif.unread .title { color: var(--text); }
.notif:not(.unread) .title { font-weight: 500; color: var(--muted); }
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--danger); display: inline-block; flex: none; }
.empty { text-align: center; padding: 26px 10px; color: var(--muted); }
.empty .icon { width: 36px; height: 36px; color: #a3adb8; }
.empty p { margin: 8px 0 0; }
.action { display: flex; align-items: center; gap: 14px; text-decoration: none; color: inherit; margin: 0; min-height: 88px; }
.action:hover { border-color: var(--brand-line); background: #fbfefd; }
.action .grow { flex: 1; min-width: 0; }
.action strong { display: block; font-size: 17px; }
.action .sub { color: var(--muted); font-size: 14px; }
.action > .icon:last-child { color: var(--brand); }

/* Chips */
.chip { display: inline-flex; align-items: center; font-size: 13px; font-weight: 600; border-radius: 99px; padding: 2px 10px; white-space: nowrap; background: #eef0f3; color: var(--muted); line-height: 1.5; }
.chip-brand { background: var(--brand-soft); color: var(--brand-dark); }
.chip-sample { background: #f1f3f5; color: #6b7480; font-weight: 500; }
.st-awaiting_payment, .ds-pending, .po-pending, .ds-draft { background: var(--warn-soft); color: var(--warn); }
.st-waiting_doctor, .st-in_review { background: var(--info-soft); color: var(--info); }
.st-answered, .ds-approved, .pay-paid, .po-paid { background: var(--ok-soft); color: var(--ok); }
.st-cancelled, .pay-refunded, .po-none { background: #eef0f3; color: var(--muted); }
.ds-rejected, .ds-suspended { background: var(--danger-soft); color: var(--danger); }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; margin-bottom: 16px; }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; box-shadow: var(--shadow); }
.stat .value { font-size: 24px; font-weight: 700; letter-spacing: -.01em; }
.stat .label { font-size: 13px; color: var(--muted); font-weight: 500; margin: 0; }
.stat.highlight { border-color: var(--brand-line); background: var(--brand-soft); }

/* Tabs */
.tabs { display: flex; gap: 6px; overflow-x: auto; margin-bottom: 14px; padding-bottom: 2px; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs a, .tabs button { font: inherit; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 14px; border-radius: 99px; border: 1px solid var(--line); background: #fff; color: var(--muted); text-decoration: none; font-weight: 600; font-size: 14px; white-space: nowrap; }
.tabs a.active, .tabs button.active { background: var(--text); border-color: var(--text); color: #fff; }
.tabs .count { font-size: 12px; opacity: .8; }

/* Files */
.files { list-style: none; padding: 0; margin: 0 0 12px; }
.files li { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); min-height: 52px; }
.files li .icon { color: var(--muted); }
.files .grow { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.files a.grow { min-height: 44px; display: flex; align-items: center; }

/* Case page */
.case-head .chip { margin-top: 6px; }
.case-actions { margin-bottom: 16px; }
.case-layout { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); }
.opinion { border-color: var(--ok-line); }
.opinion h2 .icon { color: var(--ok); }
.thread { display: flex; flex-direction: column; gap: 10px; margin-bottom: 14px; }
.msg { max-width: 85%; padding: 10px 13px; border-radius: 14px; background: #f1f3f5; border-bottom-left-radius: 4px; }
.msg.mine { align-self: flex-end; background: var(--brand-soft); border-bottom-left-radius: 14px; border-bottom-right-radius: 4px; }
.msg .meta { font-size: 13px; color: var(--muted); margin-bottom: 2px; }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 8px 16px; margin: 0; }
.kv dt { color: var(--muted); font-size: 15px; }
.kv dd { margin: 0; overflow-wrap: anywhere; }
.timeline { list-style: none; padding: 0; margin: 0; }
.timeline li { display: flex; gap: 12px; padding-bottom: 14px; position: relative; font-size: 15px; }
.timeline li:not(:last-child)::before { content: ""; position: absolute; left: 4px; top: 14px; bottom: 0; width: 2px; background: var(--line); }
.timeline .dot { background: var(--brand); margin-top: 7px; width: 10px; height: 10px; }

/* Rating & access log */
.stars { color: #d99a06; font-size: 22px; letter-spacing: 2px; }
.stars .off { color: #d5dbe1; }
.star-row { display: flex; gap: 6px; margin-bottom: 14px; }
.star { width: 48px; height: 48px; border-radius: 10px; border: 1px solid var(--line); background: #fff; font-size: 24px; color: #c9d0d7; cursor: pointer; }
.star[aria-pressed=true] { color: #d99a06; border-color: #f0d48a; background: #fffaeb; }
.access { list-style: none; margin: 0; padding: 0; font-size: 14px; }
.access li { display: flex; flex-direction: column; padding: 7px 0; border-bottom: 1px solid var(--line); }
.access li:last-child { border-bottom: 0; }

/* Checkout & receipt */
.checkout { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); }
.total { display: flex; justify-content: space-between; align-items: baseline; border-top: 1px solid var(--line); margin-top: 14px; padding-top: 14px; font-size: 17px; }
.total strong { font-size: 24px; }
.total.refund { border-top: 0; margin-top: 0; padding-top: 4px; color: var(--muted); }
.total.refund strong { font-size: 18px; }
.receipt { max-width: 640px; margin: 0 auto; }
.print-bar { max-width: 640px; margin: 0 auto 12px; justify-content: space-between; }
.receipt-head { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--line); padding-bottom: 14px; margin-bottom: 16px; }
.brand-line { display: flex; align-items: center; gap: 8px; font-size: 18px; }
.receipt-head .right { text-align: right; }

/* Tables (become cards on phones) */
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 15px; }
.table th { text-align: left; font-size: 13px; color: var(--muted); font-weight: 600; padding: 8px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table td { padding: 12px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table .num { text-align: right; white-space: nowrap; }
.actions-cell { text-align: right; white-space: nowrap; }
.actions-cell .btn-small + .btn-small { margin-left: 6px; }

/* Legal */
.legal { max-width: 820px; margin: 0 auto; padding: 32px 36px; line-height: 1.7; }
.legal-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 4px; }
.legal h1 { font-size: 28px; letter-spacing: -.02em; margin: 0; }
.legal-intro { font-size: 17px; color: var(--muted); margin: 14px 0 8px; padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.legal section { padding: 18px 0 4px; }
.legal h2 { display: flex; align-items: center; gap: 10px; font-size: 19px; margin-bottom: 8px; }
.legal-num { flex: none; display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--brand-soft); color: var(--brand-dark); font-size: 14px; font-weight: 700; }
.legal p { margin: 0 0 10px; }
.legal ul { padding-left: 22px; margin: 0 0 10px; }
.legal li { margin-bottom: 8px; }
.legal li::marker { color: var(--brand); }
.legal-links { max-width: 820px; margin: 16px auto 0; }
@media (max-width: 560px) { .legal { padding: 22px 18px; } .legal h1 { font-size: 23px; } .legal-intro { font-size: 16px; } }
.legal-links { display: flex; flex-wrap: wrap; gap: 4px 18px; }
.legal-links a { display: inline-flex; align-items: center; min-height: 44px; }

/* Dialog */
.modal-backdrop { position: fixed; inset: 0; background: rgba(15, 23, 32, .45); display: flex; align-items: center; justify-content: center; padding: 16px; z-index: 60; }
.modal { background: #fff; border-radius: 16px; padding: 22px; width: 100%; max-width: 460px; box-shadow: 0 20px 50px rgba(0, 0, 0, .2); }
.modal h2 { margin-bottom: 8px; }

.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: #17212b; color: #fff; padding: 12px 18px; border-radius: 12px; font-size: 15px; max-width: calc(100% - 32px); z-index: 70; box-shadow: 0 8px 24px rgba(0, 0, 0, .2); }
.toast[data-kind=error] { background: var(--danger); }

@media (min-width: 900px) {
  .case-layout { grid-template-columns: minmax(0, 1fr) 320px; align-items: start; }
  .checkout { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); align-items: start; }
}

/* Phones: bottom tab bar instead of the top menu, tables as stacked cards. */
@media (max-width: 760px) {
  .top-nav { display: none; }
  body.has-tabbar .page { padding-bottom: calc(var(--tabbar-h) + 32px + env(safe-area-inset-bottom)); }
  body.has-tabbar .app-footer { padding-bottom: calc(var(--tabbar-h) + 24px + env(safe-area-inset-bottom)); }
  body.has-tabbar .toast { bottom: calc(var(--tabbar-h) + 16px + env(safe-area-inset-bottom)); }
  .tabbar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; background: #fff; border-top: 1px solid var(--line); padding: 0 4px env(safe-area-inset-bottom); height: calc(var(--tabbar-h) + env(safe-area-inset-bottom)); }
  .tab { position: relative; flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; color: var(--muted); text-decoration: none; font-size: 12px; font-weight: 600; }
  .tab span:not(.badge) { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .tab.active { color: var(--brand-dark); }
  .tab .badge { position: absolute; top: 6px; left: calc(50% + 4px); }
  .header-inner { min-height: 56px; }
  .hero h1 { font-size: 28px; }
  h1 { font-size: 23px; }
  .card { padding: 16px; }
  .kv { grid-template-columns: 1fr; gap: 2px; }
  .kv dd { margin-bottom: 8px; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats.stats-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .stats.stats-3 .stat { padding: 12px; }
  .stat .value { font-size: 20px; }
  .msg { max-width: 92%; }
  .stepper .l { font-size: 12px; }
  .stepper li { flex-direction: column; align-items: flex-start; gap: 4px; }
  .table thead { display: none; }
  .table, .table tbody, .table tr, .table td { display: block; width: 100%; }
  .table tr { border-bottom: 1px solid var(--line); padding: 8px 0; }
  .table td { border: 0; padding: 4px 0; display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: 4px 8px; text-align: right; }
  .table td::before { margin-right: auto; }
  .table td::before { content: attr(data-label); color: var(--muted); font-size: 13px; text-align: left; }
  .table td.actions-cell { justify-content: flex-end; }
  .table td.actions-cell::before { content: none; }
  .table .num { text-align: right; }
  .actions { flex-direction: column-reverse; align-items: stretch; }
  .actions .btn, .actions .btn-secondary, .actions .btn-ghost { width: 100%; }
}

@media print {
  .print-doc h2 { font-size: 16px; margin-top: 14px; }
  .app-header, .tabbar, .app-footer, .no-print, .toast { display: none !important; }
  body, .page { background: #fff; padding: 0; }
  .card { border: 0; box-shadow: none; }
}
.app-footer .credit { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; margin-top: 8px; padding: 8px 14px 8px 8px; border-radius: 999px; background: #141414; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1); color: #eae6df; font-size: 12.5px; letter-spacing: .02em; text-decoration: none; transition: transform .2s, box-shadow .2s; }
.credit .gem { width: 22px; height: 22px; border-radius: 50%; background: radial-gradient(circle at 30% 30%, #6b6b6b, #0b0b0b 60%); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .15); }
.credit b { font-weight: 700; background: linear-gradient(90deg, #f0d9b5, #c9b8f0, #9fd8e0); -webkit-background-clip: text; background-clip: text; color: transparent; }
.credit span { opacity: .6; }
a.credit:hover { transform: translateY(-2px); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .18), 0 10px 24px -12px rgba(0, 0, 0, .6); }

/* Voice typing */
.dictate-bar { display: flex; align-items: center; gap: 8px; margin: 10px 0 20px; }
.field .dictate-bar { margin: 2px 0 0; }
.field:has(> .dictate-bar) { margin-bottom: 22px; }
.field .dictate-bar ~ .hint { margin-top: 6px; }
.upload-row .pills { min-height: 48px; align-items: center; }
.compose-actions { display: flex; align-items: center; justify-content: flex-end; gap: 12px; flex-wrap: wrap; }
.compose-actions .dictate-bar { margin: 0 auto 0 0; }
.btn-mic { font: inherit; font-size: 14px; font-weight: 600; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 14px 0 10px; border-radius: 99px; border: 1px solid var(--brand-line); background: #fff; color: var(--brand-dark); cursor: pointer; }
.btn-mic .icon { width: 18px; height: 18px; }
.btn-mic:hover { background: var(--brand-soft); }
.btn-mic.starting { background: var(--warn-soft); border-color: var(--warn-line); color: var(--warn); cursor: progress; }
.btn-mic.listening { background: var(--danger); border-color: var(--danger); color: #fff; animation: mic-pulse 1.4s ease-out infinite; }
@keyframes mic-pulse { 0% { box-shadow: 0 0 0 0 rgba(180, 35, 24, .45); } 100% { box-shadow: 0 0 0 12px rgba(180, 35, 24, 0); } }
@media (prefers-reduced-motion: reduce) { .btn-mic.listening { animation: none; } }
.field .dictate-bar + .counter { margin-top: -38px; }

/* Login, doctors, outbox */
.forgot-link { align-self: flex-end; display: inline-flex; align-items: center; min-height: 44px; font-size: 14px; font-weight: 600; }
.alert.ok { background: var(--ok-soft); border: 1px solid var(--ok-line); color: var(--ok); }
a.lp-doctor { color: inherit; text-decoration: none; transition: box-shadow .2s, transform .2s, border-color .2s; }
a.lp-doctor:hover { border-color: var(--brand-line); box-shadow: 0 12px 24px -14px rgba(15, 60, 70, .3); transform: translateY(-2px); }
.lp-doctor > div { min-width: 0; }
.doctors-filter { max-width: 340px; }
.doctor-profile h1 { font-size: 24px; margin-bottom: 2px; }
.avatar-lg { width: 96px; height: 96px; font-size: 28px; }
.avatar.has-photo { background: #eef2f5; overflow: hidden; padding: 0; }
.avatar.has-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.facts { display: grid; gap: 12px 24px; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); margin: 20px 0; padding: 16px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.facts dt { font-size: 13px; color: var(--muted); }
.facts dd { margin: 2px 0 0; font-weight: 500; }
.mail details summary { list-style: none; cursor: pointer; display: flex; min-height: 56px; align-items: center; padding: 8px 0; }
.mail details summary::-webkit-details-marker { display: none; }
.mail-body { background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 12px; font-size: 14px; margin: 0 0 12px; }
@media (max-width: 760px) { #hdr-doctors { display: none; } }

/* Choices (js/picker.js): pills for short lists, a searchable panel for long ones. The real <select> is hidden. */
.select-hidden { position: absolute !important; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pills button { font: inherit; font-size: 15px; font-weight: 600; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 16px; border-radius: 99px; border: 1px solid #c8cfd7; background: #fff; color: var(--text); cursor: pointer; transition: border-color .15s, background .15s, color .15s; }
.pills button:hover:not(:disabled) { border-color: var(--brand); color: var(--brand-dark); }
.pills button[aria-checked=true] { border-color: var(--brand); background: var(--brand); color: #fff; }
.pills button .icon { width: 16px; height: 16px; margin-left: -4px; }
.pills button:disabled { cursor: default; opacity: .6; }
.pills button:focus-visible, .picker-btn:focus-visible, .picker li:focus { outline: 3px solid var(--brand-line); outline-offset: 1px; }
.picker { position: relative; }
.picker-btn { font: inherit; width: 100%; min-height: 48px; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 0 14px; border: 1px solid #c8cfd7; border-radius: 10px; background: #fff; color: var(--text); cursor: pointer; text-align: left; transition: border-color .15s, box-shadow .15s; }
.picker-btn:hover:not(:disabled), .picker-btn[aria-expanded=true] { border-color: var(--brand); }
.picker-btn[aria-expanded=true] { box-shadow: 0 0 0 3px var(--brand-soft); }
.picker-btn.is-placeholder .picker-value { color: var(--muted); }
.picker-btn:disabled { background: #f1f3f5; color: var(--muted); cursor: default; }
.picker-value { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.picker-caret { flex: none; width: 18px; height: 18px; color: var(--muted); transition: transform .15s; }
.picker-btn[aria-expanded=true] .picker-caret { transform: rotate(180deg); }
.picker-panel { position: absolute; z-index: 40; top: calc(100% + 6px); left: 0; right: 0; min-width: 240px; }
.picker-sheet { background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 20px 40px -12px rgba(16, 24, 40, .25), 0 2px 6px rgba(16, 24, 40, .06); padding: 6px; }
.picker-head { display: none; }
.picker-search { display: flex; align-items: center; gap: 8px; margin: 4px 4px 6px; padding: 0 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); }
.picker-search .icon { width: 18px; height: 18px; color: var(--muted); flex: none; }
.picker-search input[type=text] { border: 0; background: transparent; padding: 0; min-height: 44px; outline: none; }
.picker ul { list-style: none; margin: 0; padding: 0; max-height: 300px; overflow-y: auto; overscroll-behavior: contain; }
.picker li { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 44px; padding: 0 12px; border-radius: 9px; cursor: pointer; }
.picker li:hover, .picker li:focus { background: var(--bg); outline: none; }
.picker li[aria-selected=true] { color: var(--brand-dark); font-weight: 600; background: var(--brand-soft); }
.picker li .icon { width: 18px; height: 18px; color: var(--brand); flex: none; }
.picker-none { margin: 8px 12px 10px; color: var(--muted); font-size: 14px; }
/* Phones: the list slides up from the bottom of the screen. */
@media (max-width: 640px) {
  .picker-panel { position: fixed; inset: 0; top: 0; min-width: 0; background: rgba(15, 23, 32, .4); display: flex; align-items: flex-end; z-index: 200; animation: picker-fade .15s ease-out; }
  .picker-sheet { width: 100%; max-height: 78vh; display: flex; flex-direction: column; border-radius: 20px 20px 0 0; padding: 8px 10px calc(14px + env(safe-area-inset-bottom)); animation: picker-up .2s ease-out; }
  .picker-head { display: flex; align-items: center; justify-content: space-between; padding: 6px 6px 8px 10px; font-size: 17px; }
  .picker-close { font: inherit; font-size: 26px; line-height: 1; width: 44px; height: 44px; border: 0; border-radius: 99px; background: var(--bg); color: var(--muted); cursor: pointer; }
  .picker ul { max-height: none; flex: 1; }
  .picker li { min-height: 50px; font-size: 16px; }
}
@keyframes picker-up { from { transform: translateY(24px); opacity: .6; } }
@keyframes picker-fade { from { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .picker-panel, .picker-sheet { animation: none; } }

/* Doctors page: departments as chips (scroll sideways on phones). */
.filter-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 20px; }
.filter-chips a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 99px; border: 1px solid var(--line); background: #fff; color: var(--text); font-weight: 600; font-size: 15px; text-decoration: none; white-space: nowrap; transition: border-color .15s, color .15s, background .15s; }
.filter-chips a:hover { border-color: var(--brand); color: var(--brand-dark); }
.filter-chips a[aria-current=true] { background: var(--brand); border-color: var(--brand); color: #fff; }
@media (max-width: 640px) {
  .filter-chips { flex-wrap: nowrap; overflow-x: auto; margin: 0 -16px 18px; padding: 2px 16px 6px; scrollbar-width: none; }
  .filter-chips::-webkit-scrollbar { display: none; }
}

/* Footer: brand + link columns, then a bottom bar with the studio badge on the right. */
.app-footer { width: 100%; background: #fff; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.footer-inner { max-width: 1120px; margin: 0 auto; padding: 40px 16px 24px; }
.footer-top { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 32px 48px; padding-bottom: 28px; }
.footer-logo { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; color: var(--text); text-decoration: none; }
.footer-logo strong { font-size: 19px; letter-spacing: -.01em; }
.footer-brand p { margin: 4px 0 0; max-width: 34ch; }
.footer-112 { display: flex; align-items: center; gap: 8px; margin-top: 14px !important; color: var(--text); font-weight: 600; }
.footer-112 .icon { width: 17px; height: 17px; color: var(--danger); flex: none; }
.footer-col { display: flex; flex-direction: column; align-items: flex-start; }
.footer-col h2 { font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--text); margin: 12px 0 6px; }
.footer-col a { display: inline-flex; align-items: center; min-height: 36px; color: var(--muted); text-decoration: none; }
.footer-col a:hover { color: var(--brand-dark); text-decoration: underline; }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap; padding-top: 20px; border-top: 1px solid var(--line); font-size: 13px; }
.footer-bottom p { margin: 0; }
.footer-bottom .credit { margin-top: 0; }
@media (max-width: 760px) {
  .footer-top { grid-template-columns: 1fr; gap: 20px; }
  .footer-col a { min-height: 44px; }
  .footer-bottom { flex-direction: column-reverse; align-items: flex-start; }
}

/* e-Nabız guide next to report uploads */
.enabiz { border: 1px solid var(--info-line); background: var(--info-soft); border-radius: 12px; padding: 14px 16px; margin-bottom: 14px; }
.enabiz-head { display: flex; align-items: center; gap: 8px; color: var(--info); }
.enabiz-head .icon { width: 20px; height: 20px; flex: none; }
.enabiz ol { margin: 8px 0 12px; padding-left: 22px; }
.enabiz li { margin-bottom: 4px; }
.enabiz-foot { display: flex; align-items: center; gap: 8px 14px; flex-wrap: wrap; }
.enabiz-foot .btn-secondary .icon { width: 16px; height: 16px; }

/* Doctor profile photo */
.photo-row { display: flex; align-items: center; gap: 20px; padding: 4px 0 20px; margin-bottom: 18px; border-bottom: 1px solid var(--line); }
.photo-actions { min-width: 0; }
.photo-actions .label { margin-bottom: 6px; }
.photo-actions .upload { margin: 0; }
.photo-actions .hint { margin-top: 6px; max-width: 52ch; }
.photo-actions .error:empty { display: none; }
@media (max-width: 560px) { .photo-row { align-items: flex-start; gap: 14px; } .photo-row .avatar-lg { width: 72px; height: 72px; } }

/* Admin: doctor search and filters */
.toolbar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin: 4px 0 8px; }
.search-box { flex: 1 1 320px; display: flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 14px; border: 1px solid #c8cfd7; border-radius: 10px; background: #fff; }
.search-box:focus-within { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.search-box .icon { width: 18px; height: 18px; color: var(--muted); flex: none; }
.search-box input[type=search] { font: inherit; flex: 1; min-width: 0; border: 0; outline: none; background: transparent; min-height: 46px; padding: 0; }
.toolbar-pickers { display: flex; gap: 10px; flex: 1 1 360px; }
.toolbar-pickers .picker { flex: 1; min-width: 0; }
.doctor-row { align-items: center; }
.doctor-row .avatar { margin-right: 4px; }
.doctor-head { display: flex; align-items: center; gap: 16px; }
.privacy-card h2 { display: flex; align-items: center; gap: 8px; }
.privacy-card h2 .icon { color: var(--brand); }
@media (max-width: 560px) {
  .toolbar-pickers { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .toolbar-pickers > div.picker:last-of-type:nth-of-type(odd) { grid-column: 1 / -1; }
  .doctor-head .avatar-lg { width: 64px; height: 64px; }
}

/* Data tables: requests and payments. A grid with a header on wide screens; a compact card per row on phones. */
.dt-card { padding: 6px 8px; }
.dt { --cols: minmax(0, 1.5fr) minmax(0, 1.5fr) 132px 150px 20px; }
.dt.with-patient { --cols: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1.4fr) 124px 150px 20px; }
.dt.no-doctor { --cols: minmax(0, 1.5fr) minmax(0, 1.5fr) 132px 150px 20px; }
.dt.dt-pay { --cols: minmax(0, 1.6fr) minmax(0, 1.4fr) 124px 100px 120px 20px; }
.dt-head, .dt .dt-row { display: grid; grid-template-columns: var(--cols); gap: 16px; align-items: center; }
.dt-head { padding: 10px 12px; font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); border-bottom: 1px solid var(--line); }
.dt-head .num, .dt-row .num { text-align: right; }
.dt-body { list-style: none; margin: 0; padding: 0; }
.dt-body > li + li { border-top: 1px solid var(--line); }
.dt .dt-row { padding: 12px; min-height: 68px; border-radius: 10px; text-decoration: none; color: inherit; transition: background .12s; }
.dt .dt-row:hover { background: #f7f9fa; }
.dt .dt-row:hover .dt-go { color: var(--brand); transform: translateX(2px); }
.dt-main, .dt-person { display: flex; align-items: center; gap: 12px; min-width: 0; }
.dt-text { display: flex; flex-direction: column; min-width: 0; }
.dt-text > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dt-strong { font-weight: 600; display: flex; align-items: center; gap: 6px; }
.dt .sub { color: var(--muted); font-size: 13.5px; }
.dt-date { font-size: 14.5px; }
.dt-patient { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dt-label { display: none; }
.dt-amount { font-weight: 700; white-space: nowrap; }
.dt-amount.is-refunded { color: var(--muted); text-decoration: line-through; font-weight: 600; }
.dt-go { color: #a3adb8; display: flex; justify-content: flex-end; transition: color .12s, transform .12s; }
.dt-go .icon { width: 18px; height: 18px; }
.dt-ic { width: 40px; height: 40px; border-radius: 12px; flex: none; display: inline-flex; align-items: center; justify-content: center; background: var(--brand-soft); color: var(--brand-dark); }
.dt-ic .icon { width: 20px; height: 20px; }
.dt-ic.ic-second { background: var(--info-soft); color: var(--info); }
.dt-ic.ic-pay { background: #f1f3f5; color: var(--muted); }
.avatar.avatar-sm { width: 34px; height: 34px; font-size: 13px; }
@media (max-width: 760px) {
  .dt-card { padding: 4px 6px; }
  .dt-head { display: none; }
  .dt .dt-row { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "main status" "doctor date"; gap: 8px 12px; padding: 14px 8px; }
  .dt.with-patient .dt-row { grid-template-areas: "main status" "patient patient" "doctor date"; }
  .dt.no-doctor .dt-row { grid-template-areas: "main status" "patient date"; }
  .dt.no-doctor .dt-patient { white-space: nowrap; }
  .dt.dt-pay .dt-row { grid-template-areas: "main amount" "doctor status"; }
  .dt-main { grid-area: main; }
  .dt-status { grid-area: status; justify-self: end; }
  .dt-doctor { grid-area: doctor; min-width: 0; padding-left: 52px; }
  .dt-patient { grid-area: patient; padding-left: 52px; font-size: 14px; }
  .dt-label { display: inline; color: var(--muted); margin-right: 6px; }
  .dt-label::after { content: ':'; }
  .dt-date { grid-area: date; justify-self: end; text-align: right; font-size: 13.5px; color: var(--muted); }
  .dt-date .dt-text { flex-direction: row; gap: 6px; }
  .dt-date .sub { font-size: inherit; }
  .dt.dt-pay .dt-date { display: none; }
  .dt-amount { grid-area: amount; justify-self: end; }
  .dt-go { display: none; }
  .dt-doctor .avatar-sm { width: 26px; height: 26px; font-size: 11px; }
  .dt-doctor .dt-person { gap: 8px; }
  .dt-doctor .sub { display: none; }
  .dt-doctor .dt-strong { font-weight: 500; font-size: 14px; }
}

/* Notifications: grouped by day, an icon per kind, unread ones tinted. */
.notif-card { padding: 8px 10px; }
.notif-group + .notif-group { margin-top: 6px; border-top: 1px solid var(--line); padding-top: 4px; }
.group-title { font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); margin: 10px 10px 4px; }
.notif-card .list > li + li { border-top: 0; }
.notif-card .list-item.notif { padding: 12px 10px; gap: 14px; justify-content: flex-start; }
.notif.unread { background: var(--brand-soft); }
.notif.unread:hover { background: #dcf0ed; }
.notif .title { font-weight: 600; }
.notif:not(.unread) .title { font-weight: 500; color: var(--text); }
.notif-ic { width: 40px; height: 40px; border-radius: 50%; flex: none; display: inline-flex; align-items: center; justify-content: center; background: #fff; border: 1px solid var(--line); color: var(--brand-dark); }
.notif-ic .icon { width: 19px; height: 19px; }
.notif-ic.ok { color: var(--ok); background: var(--ok-soft); border-color: var(--ok-line); }
.notif-ic.warn { color: var(--warn); background: var(--warn-soft); border-color: var(--warn-line); }
.notif-ic.danger { color: var(--danger); background: var(--danger-soft); border-color: var(--danger-line); }

/* Admin and earnings tables: same header look as the data tables. */
.table th { font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; padding: 10px 12px; }
.table td { padding: 14px 12px; vertical-align: middle; }
.table tbody tr:hover { background: #f7f9fa; }
.table tbody tr:last-child td { border-bottom: 0; }
.duration-own { margin-top: 10px; }
.privacy-strip { display: flex; gap: 10px; align-items: flex-start; margin: 0 0 16px; padding: 10px 14px; border-radius: 10px; background: var(--brand-soft); color: var(--brand-dark); font-size: 14px; line-height: 1.45; }
.privacy-strip .icon { width: 18px; height: 18px; flex: none; margin-top: 1px; }
.notif-card .list > li + li { margin-top: 4px; }
.notif-card .list-item.notif { border-radius: 10px; }
@media (max-width: 760px) { .dt-main .dt-text > span { white-space: normal; overflow-wrap: anywhere; } }

/* Checkout: order summary with assurances, and a card panel with a live card picture. */
.sum-doctor { display: flex; align-items: center; gap: 12px; padding: 12px; margin: 4px 0 12px; border: 1px solid var(--line); border-radius: 12px; background: #fafbfc; }
.sum-doctor strong { font-weight: 600; }
.sum-doctor .sub { color: var(--muted); font-size: 14px; }
.assure { list-style: none; margin: 14px 0 0; padding: 14px 0 0; border-top: 1px solid var(--line); display: grid; gap: 10px; }
.assure li { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--muted); line-height: 1.45; }
.assure .icon { width: 18px; height: 18px; flex: none; color: var(--brand); margin-top: 1px; }
.pay-card { position: relative; }
.pay-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.pay-head h2 { margin: 0; }
.secure-badge { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; color: var(--ok); background: var(--ok-soft); border: 1px solid var(--ok-line); border-radius: 99px; padding: 4px 10px; }
.secure-badge .icon { width: 15px; height: 15px; }
.cc-preview { position: relative; overflow: hidden; aspect-ratio: 1.586; max-width: 340px; margin: 0 auto 20px; border-radius: 16px; padding: 20px 22px; color: #fff; display: flex; flex-direction: column; justify-content: space-between;
  background: linear-gradient(135deg, #0f3d3a 0%, #115e59 55%, #14806f 100%); box-shadow: 0 10px 28px rgba(15, 61, 58, .28); font-family: ui-monospace, "SF Mono", Menlo, monospace; }
.cc-preview::after { content: ""; position: absolute; right: -60px; top: -60px; width: 200px; height: 200px; border-radius: 50%; background: rgba(255, 255, 255, .07); }
.cc-preview[data-brand=mastercard] { background: linear-gradient(135deg, #1f2430 0%, #3a3f4d 100%); }
.cc-preview[data-brand=troy] { background: linear-gradient(135deg, #0b3b6e 0%, #1663a8 100%); }
.cc-top { display: flex; justify-content: space-between; align-items: center; }
.cc-chip { width: 40px; height: 30px; border-radius: 6px; background: linear-gradient(135deg, #e9d48b, #c8a94b); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .12); }
.cc-brand { font: 800 18px/1 system-ui, sans-serif; letter-spacing: .04em; font-style: italic; min-height: 18px; }
.cc-num { font-size: 20px; letter-spacing: .08em; white-space: nowrap; }
.cc-bottom { display: flex; justify-content: space-between; gap: 12px; }
.cc-bottom span { display: flex; flex-direction: column; min-width: 0; }
.cc-bottom small { font: 600 12px/1.4 system-ui, sans-serif; letter-spacing: .08em; text-transform: uppercase; opacity: .7; }
.cc-bottom b { font-weight: 600; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.input-icon { position: relative; }
.input-icon > .icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: #8b96a3; pointer-events: none; }
.input-icon input { padding-left: 44px !important; padding-right: 96px !important; letter-spacing: .04em; }
.cc-brand-tag { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); font-size: 12px; font-weight: 800; letter-spacing: .04em; padding: 3px 8px; border-radius: 6px; background: #eef2f5; color: #1a1f71; }
.cc-brand-tag[data-brand=mastercard] { color: #c2410c; }
.cc-brand-tag[data-brand=troy] { color: #0b4f8a; }
input.invalid { border-color: var(--danger) !important; }
.field-error { display: block; color: var(--danger); font-size: 13.5px; margin-top: 6px; font-weight: 500; }
.field-error:empty { display: none; }
.test-hint { background: #f7f9fa; border: 1px dashed var(--line); border-radius: 10px; padding: 8px 12px; }
#pay { margin-top: 4px; }
.pay-foot { display: flex; gap: 8px; align-items: flex-start; justify-content: center; text-align: left; font-size: 13px; color: var(--muted); margin: 14px 0 0; }
.pay-foot .icon { width: 16px; height: 16px; flex: none; color: var(--ok); margin-top: 1px; }
@media (max-width: 420px) { .cc-preview { padding: 16px 18px; } .cc-num { font-size: 17px; } }

/* Visitors: doctors without names or photos. */
.avatar.avatar-hidden { background: #eef2f5; color: #8b96a3; }
.avatar.avatar-hidden .icon { width: 22px; height: 22px; }
.preview-lock { display: flex; align-items: center; gap: 6px; }
.preview-lock .icon { width: 14px; height: 14px; }
.preview-note { display: flex; gap: 14px; align-items: flex-start; border-color: var(--brand-line); background: var(--brand-soft); }
.preview-note .icon-lg { color: var(--brand); flex: none; }
.preview-note p { margin: 4px 0 12px; }

/* Help assistant: avatar button in the corner, chat-style panel with FAQ answers. */
.help { position: fixed; right: 20px; bottom: 20px; z-index: 40; display: flex; flex-direction: column; align-items: flex-end; gap: 12px; }
.help-fab { display: inline-flex; align-items: center; gap: 10px; padding: 6px 18px 6px 6px; border: 0; border-radius: 99px; background: #fff; color: var(--text); font: inherit; font-weight: 700; cursor: pointer; box-shadow: 0 6px 22px rgba(23, 33, 43, .18); min-height: 52px; }
.help-fab:hover { box-shadow: 0 8px 26px rgba(23, 33, 43, .24); }
.help.is-open .help-fab span { display: none; }
.help.is-open .help-fab { padding: 6px; }
.help-avatar { width: 40px; height: 40px; border-radius: 50%; display: block; flex: none; }
.help-avatar.sm { width: 30px; height: 30px; }
.help-panel { order: -1; width: min(380px, calc(100vw - 32px)); max-height: min(600px, calc(100vh - 120px)); display: flex; flex-direction: column; background: #fff; border-radius: 18px; box-shadow: 0 18px 50px rgba(23, 33, 43, .25); overflow: hidden; }
.help-panel[hidden] { display: none; }
.help-head { display: flex; align-items: center; gap: 12px; padding: 14px 14px 14px 16px; background: var(--brand); color: #fff; }
.help-head div { flex: 1; display: flex; flex-direction: column; }
.help-head span { font-size: 13px; opacity: .85; }
.help-head .help-avatar { box-shadow: 0 0 0 2px rgba(255, 255, 255, .5); }
.help-x { width: 44px; height: 44px; border: 0; border-radius: 50%; background: transparent; color: #fff; font-size: 26px; line-height: 1; cursor: pointer; }
.help-x:hover { background: rgba(255, 255, 255, .15); }
.help-log { flex: 1; overflow-y: auto; padding: 16px 14px; display: flex; flex-direction: column; gap: 12px; background: #f7f9fa; }
.help-msg { display: flex; gap: 8px; align-items: flex-end; }
.help-msg.me { justify-content: flex-end; }
.help-msg .bubble { max-width: 85%; padding: 10px 13px; border-radius: 14px; font-size: 14.5px; line-height: 1.5; }
.help-msg.bot .bubble { background: #fff; border: 1px solid var(--line); border-bottom-left-radius: 4px; }
.help-msg.me .bubble { background: var(--brand); color: #fff; border-bottom-right-radius: 4px; }
.help-msg .bubble p { margin: 4px 0 0; }
.help-msg .bubble p:first-child { margin-top: 0; }
.help-msg .bubble .btn { margin-top: 10px; }
.help-chips { display: flex; flex-direction: column; gap: 6px; margin-top: 10px; }
.help-chips button { text-align: left; font: inherit; font-size: 14px; font-weight: 600; color: var(--brand-dark); background: var(--brand-soft); border: 1px solid var(--brand-line); border-radius: 10px; padding: 9px 12px; min-height: 44px; cursor: pointer; }
.help-chips button:hover { background: #dcf0ed; }
.help-form { display: flex; gap: 8px; padding: 10px; border-top: 1px solid var(--line); }
.help-form input { flex: 1; min-width: 0; min-height: 44px !important; }
.help-form .btn { min-width: 48px; padding: 0 12px; }
.help-note { display: flex; align-items: center; gap: 6px; margin: 0; padding: 0 12px 10px; font-size: 12px; color: var(--muted); }
.help-note .icon { width: 13px; height: 13px; }
@media (max-width: 760px) {
  .help { right: 12px; bottom: 12px; }
  body.has-tabbar .help { bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom) + 12px); }
  .help-fab span { display: none; }
  .help-fab { padding: 5px; min-height: 0; }
  .help-avatar { width: 46px; height: 46px; }
  .help-head .help-avatar, .help.is-open .help-fab .help-avatar { width: 40px; height: 40px; }
  .help-panel { max-height: calc(100vh - 170px); }
}
@media print { .help { display: none !important; } }

/* Doctor verification (admin) and the verified badge on profiles. */
.verify-card { border-color: var(--brand-line); }
.verify-card h2 { display: flex; align-items: center; gap: 8px; }
.verify-card h2 .icon { color: var(--brand); }
.barcode-box { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 12px 14px; border: 1px dashed var(--line); border-radius: 12px; background: #fafbfc; margin: 12px 0; }
.barcode-box strong { font-family: ui-monospace, Menlo, monospace; font-size: 16px; letter-spacing: .04em; margin-right: auto; }
.verify-list { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 4px; }
.verify-list li { border: 1px solid var(--line); border-radius: 12px; padding: 4px 12px; }
.verify-list li:has(input:checked) { border-color: var(--ok-line); background: var(--ok-soft); }
.verified-badge { display: inline-flex; align-items: center; gap: 6px; margin: 8px 0 0; font-size: 13.5px; font-weight: 600; color: var(--ok); background: var(--ok-soft); border: 1px solid var(--ok-line); border-radius: 99px; padding: 4px 12px; }
.verified-badge .icon { width: 16px; height: 16px; }
#approve-locked { display: flex; align-items: center; gap: 6px; }
#approve-locked .icon { width: 15px; height: 15px; }
@media (max-width: 560px) {
  .files li { flex-wrap: wrap; row-gap: 2px; }
  .files li .chip { white-space: normal; }
  .barcode-box strong { width: 100%; overflow-wrap: anywhere; }
}

/* Earnings: fixed columns so amounts line up; numbers in equal-width digits. */
.table.earnings { table-layout: fixed; }
.table.earnings .c-date { width: 16%; } .table.earnings .c-service { width: 20%; } .table.earnings .c-num { width: 14%; } .table.earnings .c-status { width: 22%; }
.table .num { font-variant-numeric: tabular-nums; }
.table .amount { font-variant-numeric: tabular-nums; white-space: nowrap; }

/* Doctor dashboard: the card patients see in the list, next to the profile details. */
.profile-preview .card-head p { margin: 4px 0 0; }
.preview-grid { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: 24px; align-items: start; margin-top: 8px; }
.preview-card .lp-doctor { pointer-events: none; box-shadow: 0 6px 20px rgba(23, 33, 43, .08); }
.preview-side .kv { margin-top: 0; }
.clamp { display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
@media (max-width: 760px) { .preview-grid { grid-template-columns: minmax(0, 1fr); } }

/* Footer legal links: short names in two columns instead of one long list. */
.footer-links { display: grid; grid-template-columns: repeat(2, auto); column-gap: 28px; justify-content: start; }
.footer-links a { white-space: nowrap; }

.picker-prefix { color: var(--muted); font-weight: 500; margin-right: 6px; white-space: nowrap; }
.picker-prefix::after { content: ':'; }

/* Notifications: new ones stand out (accent bar, tint, bold, "New"); time in its own column on the right. */
.notif-card .list-item.notif { position: relative; display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; align-items: center; }
.notif.unread { background: var(--brand-soft); }
.notif.unread::before { content: ""; position: absolute; left: 0; top: 8px; bottom: 8px; width: 4px; border-radius: 4px; background: var(--brand); }
.notif.unread .title { font-weight: 700; color: var(--text); }
.notif.is-read { background: transparent; }
.notif.is-read .title { font-weight: 400; color: var(--muted); }
.notif.is-read .notif-ic { opacity: .65; }
.new-tag { display: inline-block; margin-top: 4px; font-size: 12px; font-weight: 700; letter-spacing: .02em; color: #fff; background: var(--brand); border-radius: 99px; padding: 1px 8px; }
.notif-time { text-align: right; font-size: 13.5px; color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; min-width: 64px; display: flex; flex-direction: column; }
.notif.unread .notif-time { color: var(--brand-dark); font-weight: 600; }
.notif-time .sub { font-size: 12.5px; font-weight: 400; }

.referral-card { border-color: var(--info-line); }
.referral-card h2 { display: flex; align-items: center; gap: 8px; }
.referral-card h2 .icon { color: var(--info); }

/* Two-step sign-in */
#twofa-card h2 { display: flex; align-items: center; gap: 8px; }
#twofa-card h2 .icon { color: var(--brand); }
#twofa-card .row { align-items: flex-end; }
#twofa-card .field.grow { flex: 1; min-width: 200px; margin-bottom: 0; }
.steps-list { padding-left: 20px; display: grid; gap: 10px; margin: 0 0 14px; }
.secret-box { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 8px; }
.secret-box code { font-size: 17px; letter-spacing: .06em; padding: 8px 12px; border: 1px dashed var(--line); border-radius: 10px; background: #fafbfc; overflow-wrap: anywhere; }
.backup-codes { list-style: none; padding: 0; margin: 0 0 14px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.backup-codes code { display: block; text-align: center; padding: 8px; border: 1px solid var(--line); border-radius: 8px; font-size: 15px; letter-spacing: .05em; }
#twofa-card .row { flex-wrap: wrap; }
#twofa-card .error.full { flex-basis: 100%; margin: 0; }
#account-payments { margin-bottom: 16px; }
.help { transition: transform .15s ease-out; }
