
* { box-sizing: border-box; margin: 0; padding: 0; min-width: 0; }
html, body { width: 100%; max-width: 100%; overflow-x: hidden; }
body { font-family: 'Tajawal', 'Segoe UI', Tahoma, sans-serif; background: #F5F9FF; color: #40566F; -webkit-text-size-adjust: 100%; }
body[dir="rtl"]{font-family:'Tajawal','Segoe UI',Tahoma,sans-serif;font-weight:400;letter-spacing:0}body[dir="rtl"] h1,body[dir="rtl"] h2,body[dir="rtl"] h3,body[dir="rtl"] h4{font-family:'Tajawal','Segoe UI',Tahoma,sans-serif;font-weight:800;letter-spacing:-.015em}body[dir="rtl"] .nav .logo,body[dir="rtl"] .ss-hero-brand{font-family:'Poppins','Tajawal','Segoe UI',sans-serif}
/* V64 brand gradient — dark medical blue to teal, matching the approved wordmark direction */
.ss-brand-gradient{background:linear-gradient(98deg,#0A376D 0%,#123B70 32%,#0E678C 56%,#11919D 78%,#18A7A5 100%)!important;background-size:100% 100%!important;-webkit-background-clip:text!important;background-clip:text!important;color:transparent!important;-webkit-text-fill-color:transparent!important;text-shadow:none!important}.nav .logo .ss-brand-gradient,.ss-mobile-logo .ss-brand-gradient,.footer .f-brand .ss-brand-gradient{font-family:'Poppins','Tajawal','Segoe UI',sans-serif!important;font-weight:850!important;letter-spacing:-.55px}.ss-brand-icon{color:#187f96!important;-webkit-text-fill-color:initial!important}.f-brand-heart{color:initial!important;-webkit-text-fill-color:initial!important}.first-lang-brand.ss-brand-gradient,.ss-hero-brand.ss-brand-gradient{font-family:'Poppins','Tajawal','Segoe UI',sans-serif!important}.first-lang-brand.ss-brand-gradient .sense,.ss-hero-brand.ss-brand-gradient span{color:transparent!important;-webkit-text-fill-color:transparent!important}
a { text-decoration: none; color: inherit; }
img, svg, video, iframe, canvas { max-width: 100%; height: auto; }
table { max-width: 100%; }
h1, h2, h3, h4, p, span, a, button, label { overflow-wrap: break-word; word-break: break-word; }
button, input, select, textarea { max-width: 100%; font-family: inherit; }
html { scroll-behavior: smooth; }
body { min-height: 100vh; min-height: 100dvh; line-height: 1.65; text-rendering: optimizeLegibility; }
button, .btn, .opt, .fam-chip, .mini-btn, .ss-bnav a { touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, [tabindex]:focus-visible { outline: 3px solid rgba(25,118,210,.35); outline-offset: 3px; }
.nav { background: #FFFFFF; color: #123B70; display: flex; align-items: center; justify-content: space-between; padding: 15px 26px; position: sticky; top: 0; z-index: 50; box-shadow: 0 2px 14px rgba(25,118,210,.05); flex-wrap: wrap; gap: 10px; border-bottom: 1px solid #DCEBFA; }
.nav .logo { font-size: 22px; font-weight: 800; letter-spacing: .3px; color: #123B70; display: flex; align-items: center; gap: 6px; white-space: nowrap; }
.nav .logo span { color: #1F6FAE; }
.nav .links { display: flex; gap: 2px; flex-wrap: wrap; }
.nav .links a { color: #40566F; padding: 8px 14px; border-radius: 999px; font-size: 15px; font-weight: 600; }
.nav .links a:hover { color: #1F6FAE; background: #EAF4FF; }
:root { --bnav-h: 64px; --safe-bottom: env(safe-area-inset-bottom, 0px); --safe-top: env(safe-area-inset-top, 0px); --primary: #1F6FAE; --primary-hover: #1F6FAE; --primary-mid: #64B5F6; --primary-pale: #B8D8F8; --primary-light: #EAF4FF; --primary-dark: #123B70; --text-main: #123B70; --text-body: #40566F; --text-muted: #566A7D; --bg-page: #F5F9FF; --bg-card: #FFFFFF; --border-card: #DCEBFA; --shadow-card: 0 4px 18px rgba(25,118,210,.07); }
.nav .links a.on { background: #EAF4FF; color: #1F6FAE; font-weight: 700; }
.container { width: 100%; max-width: 1080px; margin: 0 auto; padding: clamp(20px, 3vw, 30px) clamp(16px, 3vw, 24px) 38px; }
/* Compact header used on tablets, phones and narrow laptops so links never crowd. */
.ss-mobile-head { display: none; position: sticky; top: 0; z-index: 70; min-height: 62px; align-items: center; justify-content: space-between; gap: 12px; padding: calc(10px + var(--safe-top)) clamp(12px, 3vw, 24px) 10px; background: rgba(255,255,255,.97); backdrop-filter: blur(14px); border-bottom: 1px solid var(--border-card); box-shadow: 0 4px 18px rgba(25,118,210,.07); }
.ss-mobile-logo { display: inline-flex; align-items: center; gap: 7px; color: var(--primary-dark); font-size: clamp(17px, 3.4vw, 21px); font-weight: 900; white-space: nowrap; }
.ss-mobile-logo span { color: var(--primary); }
.ss-mobile-actions { display: flex; align-items: center; justify-content: flex-end; gap: 8px; min-width: 0; }
.ss-mobile-lang, .ss-mobile-account { min-height: 42px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; gap: 5px; font-weight: 800; font-family: inherit; }
.ss-mobile-lang { min-width: 46px; padding: 7px 10px; border: 1px solid var(--border-card); background: var(--primary-light); color: var(--primary-dark); cursor: pointer; }
.ss-mobile-account { max-width: 150px; padding: 7px 11px; border: 1px solid var(--primary-pale); background: var(--primary); color: #fff; }
.ss-mobile-account span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ss-profile-card { background: var(--bg-card); border: 1px solid var(--border-card); border-radius: 18px; padding: 20px; margin-bottom: 16px; box-shadow: var(--shadow-card); }
.ss-profile-card h2 { font-size: 17px; font-weight: 800; color: var(--primary); margin-bottom: 14px; display: flex; align-items: center; gap: 8px; }
.ss-field { display: flex; align-items: flex-start; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--border-card); }
.ss-field:last-child { border-bottom: none; }
.ss-f-icon { font-size: 18px; flex: 0 0 auto; margin-top: 2px; }
.ss-field label { display: block; font-size: 12px; font-weight: 700; color: var(--text-muted); margin-bottom: 2px; text-transform: uppercase; letter-spacing: .3px; }
.ss-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 500px) { .ss-grid2 { grid-template-columns: 1fr; } }
.ss-btn-primary { background: var(--primary); color: #fff; border: none; border-radius: 14px; padding: 13px 24px; font-size: 15px; font-weight: 700; cursor: pointer; font-family: inherit; display: inline-flex; align-items: center; gap: 8px; min-height: 48px; box-shadow: 0 8px 20px rgba(25,118,210,.18); transition: transform .15s, box-shadow .15s; }
.ss-btn-primary:hover { background: #1F6FAE; transform: scale(0.98); }
.ss-btn-danger { background: #FFF0F0; color: #991B1B; border: 1px solid #FECACA; border-radius: 14px; padding: 12px 20px; font-size: 14px; font-weight: 700; cursor: pointer; font-family: inherit; min-height: 48px; }
.ss-btn-row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
.ss-msg { padding: 12px 16px; border-radius: 14px; font-size: 14px; font-weight: 600; margin-top: 10px; }
.ss-msg.success { background: #EAF8F0; color: #166534; border: 1px solid #BBF7D0; }
.ss-msg.error { background: #FFF0F0; color: #991B1B; border: 1px solid #FECACA; }
.hp-account-hero { background: linear-gradient(135deg, #123B70, #1F6FAE); color: #fff; border-radius: 22px; padding: 24px; margin-bottom: 16px; box-shadow: 0 16px 36px rgba(25,118,210,.22); }
.hp-account-head { display: flex; align-items: center; gap: 15px; }
.hp-avatar { width: 64px; height: 64px; flex: 0 0 64px; border-radius: 20px; background: rgba(255,255,255,.18); display: flex; align-items: center; justify-content: center; font-size: 32px; border: 1px solid rgba(255,255,255,.28); }
.hp-account-name { font-size: 22px; font-weight: 800; line-height: 1.35; }
.hp-account-email { font-size: 13px; opacity: .9; direction: ltr; text-align: start; }
.hp-secure { margin-inline-start: auto; align-self: flex-start; background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.25); border-radius: 999px; padding: 6px 11px; font-size: 12px; font-weight: 700; white-space: nowrap; }
.hp-stats { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 10px; margin: 16px 0; }
.hp-stat { background: var(--bg-card); border: 1px solid var(--border-card); border-radius: 16px; padding: 15px 10px; text-align: center; box-shadow: var(--shadow-card); }
.hp-stat-icon { display: block; font-size: 22px; margin-bottom: 3px; }
.hp-stat-value { display: block; font-size: 22px; line-height: 1.2; color: var(--primary-dark); font-weight: 900; }
.hp-stat-label { display: block; color: var(--text-muted); font-size: 11px; font-weight: 700; margin-top: 4px; }
.hp-overview { display: grid; grid-template-columns: 1.15fr .85fr; gap: 14px; margin-bottom: 16px; }
.hp-panel { background: var(--bg-card); border: 1px solid var(--border-card); border-radius: 18px; padding: 18px; box-shadow: var(--shadow-card); }
.hp-panel h3 { color: var(--primary-dark); font-size: 16px; margin-bottom: 11px; display: flex; align-items: center; gap: 7px; }
.hp-chips { display: flex; flex-wrap: wrap; gap: 7px; }
.hp-chip { background: var(--primary-light); color: var(--primary-dark); border: 1px solid var(--border-card); border-radius: 999px; padding: 6px 11px; font-size: 13px; font-weight: 700; }
.hp-meta { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 12px; color: var(--text-muted); font-size: 12px; }
.hp-meta span { background: var(--bg-page); border-radius: 999px; padding: 4px 8px; border: 1px solid var(--border-card); }
.hp-essential { padding: 9px 0; border-bottom: 1px solid var(--border-card); }
.hp-essential:last-child { border-bottom: 0; }
.hp-essential b { color: var(--primary-dark); font-size: 12px; display: block; margin-bottom: 2px; }
.hp-essential span { color: var(--text-body); font-size: 13px; }
.hp-quick-links { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 9px; margin-bottom: 16px; }
.hp-quick-link { min-height: 82px; padding: 12px 8px; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; gap: 5px; background: var(--bg-card); border: 1px solid var(--border-card); border-radius: 15px; color: var(--primary-dark); font-size: 12px; font-weight: 800; box-shadow: var(--shadow-card); }
.hp-quick-link span { font-size: 23px; }
.hp-quick-link:hover { border-color: var(--primary); transform: translateY(-2px); }
/* Mobile Bottom Navigation */
.ss-bnav { display: none; position: fixed; bottom: 0; left: 0; right: 0; z-index: 90; background: rgba(255,255,255,0.96); backdrop-filter: blur(12px); border-top: 1px solid #DCEBFA; box-shadow: 0 -4px 18px rgba(25,118,210,.08); padding: 6px 0 var(--safe-bottom); padding-bottom: calc(6px + var(--safe-bottom)); }
.ss-bnav a { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 4px; text-decoration: none; color: #566A7D; font-size: 10px; font-weight: 700; min-width: 56px; min-height: 48px; justify-content: center; transition: color .2s; border-radius: 12px; }
.ss-bnav a.on { color: #1F6FAE; background: var(--primary-light); }
.ss-bnav a .bn-icon { font-size: 22px; line-height: 1; }
/* Completion bar */
.ss-completion { background: var(--bg-card); border: 1px solid var(--border-card); border-radius: 18px; padding: 18px 20px; margin-bottom: 16px; box-shadow: var(--shadow-card); }
.ss-completion .bar-track { background: var(--border-card); border-radius: 999px; height: 8px; margin: 10px 0 6px; overflow: hidden; }
.ss-completion .bar-fill-green { background: linear-gradient(90deg, var(--primary-dark), var(--primary-mid)); height: 100%; border-radius: 999px; transition: width .6s ease; }
.ss-completion .bar-label { font-size: 13px; color: var(--text-muted); font-weight: 600; }
/* Smart next step card */
.ss-next-step { background: linear-gradient(135deg, var(--primary-light), var(--bg-page)); border: 1.5px solid var(--border-card); border-radius: 18px; padding: 18px 20px; margin-bottom: 16px; }
.ss-next-step h3 { font-size: 16px; font-weight: 800; color: var(--primary-dark); margin-bottom: 6px; }
.ss-next-step p { font-size: 14px; color: var(--text-body); line-height: 1.7; margin-bottom: 12px; }
.manage-card { background:var(--bg-card); border-radius:16px; padding:18px; margin-bottom:12px; border:1px solid var(--border-card); box-shadow: var(--shadow-card); }
.manage-card-head { display:flex; align-items:center; gap:10px; margin-bottom:8px; }
.manage-icon { font-size:22px; }
.manage-label { font-weight:700; color:var(--primary-dark); font-size:15px; }
.manage-val { font-size:15px; color:var(--text-body); padding:8px 12px; background:var(--primary-light); border-radius:10px; margin-bottom:10px; min-height:20px; }
.manage-actions { display:flex; gap:8px; }
.manage-edit-btn { flex:1; padding:10px; border:2px solid var(--border-card); border-radius:10px; background:var(--bg-card); font-weight:600; cursor:pointer; font-size:14px; text-align:center; }
.manage-edit-btn:hover { border-color:var(--primary); color:var(--primary); }
.manage-del-btn { flex:1; padding:10px; border:2px solid #FECACA; border-radius:10px; background:var(--bg-card); color:#c81e1e; font-weight:600; cursor:pointer; font-size:14px; text-align:center; }
.manage-del-btn:hover { background:#FEF2F2; }
.memory-card { background:var(--bg-card); border-radius:16px; padding:18px; margin-bottom:12px; border:1px solid var(--border-card); box-shadow: var(--shadow-card); }
.memory-card-head { display:flex; align-items:center; gap:10px; margin-bottom:8px; }
.memory-icon { font-size:22px; }
.memory-label { font-weight:700; color:var(--primary-dark); font-size:15px; }
.memory-val { font-size:15px; color:var(--text-body); padding:8px 12px; background:var(--primary-light); border-radius:10px; margin-bottom:8px; }
.memory-source { display:inline-block; font-size:12px; font-weight:600; padding:4px 10px; border-radius:20px; margin-bottom:8px; }
.memory-actions { display:flex; gap:8px; }
.memory-legend { display:flex; flex-wrap:wrap; gap:12px; padding:12px 16px; background:var(--primary-light); border-radius:12px; margin-bottom:16px; border:1px solid var(--border-card); }
.memory-legend-item { display:flex; align-items:center; gap:6px; font-size:12px; color:var(--text-muted); }
.memory-dot { width:8px; height:8px; border-radius:50%; }
.res-transparency { background:var(--primary-light); border-radius:14px; padding:18px; margin:12px 0; border:1px solid var(--border-card); }
.res-trans-h { font-weight:800; color:var(--primary-dark); font-size:16px; margin-bottom:4px; }
.res-trans-body { font-size:13px; color:var(--text-body); margin-bottom:14px; }
.trans-card { border-radius:12px; padding:14px; margin-bottom:10px; }
.trans-known { background:#F0FDF4; border:1px solid #BBF7D0; }
.trans-unclear { background:#FFFBEB; border:1px solid #FDE68A; }
.trans-notasked { background:var(--primary-light); border:1px solid var(--border-card); }
.trans-card-h { font-weight:700; font-size:14px; color:var(--primary-dark); margin-bottom:8px; display:flex; align-items:center; gap:8px; }
.trans-dot { width:10px; height:10px; border-radius:50%; display:inline-block; }
.trans-dot-green { background:#16A34A; }
.trans-dot-yellow { background:#F59E0B; }
.trans-dot-gray { background:var(--text-muted); }
.trans-items { display:flex; flex-direction:column; gap:4px; }
.trans-item { font-size:13px; color:var(--text-body); padding:4px 0; }
.trans-item-gray { color:var(--text-muted); }
.trans-add-btn { display:block; width:100%; padding:10px; margin-top:8px; border:2px dashed #FDE68A; border-radius:10px; background:#FFFBEB; color:#92400E; font-weight:600; font-size:13px; cursor:pointer; text-align:center; }
.trans-add-btn:hover { border-color:#F59E0B; background:#FEF3C7; }
.trans-note { font-size:12px; color:var(--text-muted); font-style:italic; margin-top:8px; }
.res-why { background:var(--primary-light); border-radius:14px; padding:18px; margin:12px 0; border:1px solid var(--border-card); }
.res-why-h { font-weight:800; color:var(--primary-dark); font-size:16px; margin-bottom:8px; }
.res-why-body { font-size:14px; line-height:1.8; color:var(--text-body); }
.res-action { border-radius:14px; padding:18px; margin:12px 0; }
.res-action-h { font-weight:800; color:var(--primary-dark); font-size:16px; margin-bottom:4px; }
.res-assess { background:var(--primary-light); border-radius:14px; padding:18px; margin:12px 0; border:1px solid var(--border-card); }
.res-assess-h { font-weight:800; color:var(--primary-dark); font-size:16px; margin-bottom:12px; }
.res-assess-row { display:flex; justify-content:space-between; align-items:center; padding:8px 0; border-bottom:1px solid var(--border-card); }
.res-assess-row:last-child { border-bottom:none; }
.res-assess-label { font-weight:600; color:var(--text-body); font-size:14px; }
.res-questions { background:linear-gradient(135deg,var(--primary-light),var(--bg-page)); border-radius:14px; padding:18px; margin:12px 0; border:1px solid var(--border-card); }
.res-questions-h { font-weight:800; color:var(--primary-dark); font-size:16px; margin-bottom:6px; }
.res-questions-body { font-size:13px; color:var(--text-body); margin-bottom:10px; }
/* Dark mode */
@media (prefers-color-scheme: dark) {
  body { background: #0F172A; color: #E2E8F0; }
  .nav { background: #1E293B; border-bottom-color: #334155; }
  .nav .logo { color: #E2E8F0; }
  .ss-mobile-head { background: rgba(30,41,59,.97); border-bottom-color: #334155; }
  .ss-mobile-logo { color: #E2E8F0; }
  .ss-mobile-lang { background: #172554; border-color: #334155; color: #BFDBFE; }
  .nav .links a { color: #CBD5E1; }
  .nav .links a.on { background: #1E3A5F; color: #60A5FA; }
  .card, .ss-profile-card, .ss-completion { background: #1E293B; border-color: #334155; }
  .card h2, .ss-profile-card h2 { color: #60A5FA; }
  .ss-field { border-bottom-color: #334155; }
  .ss-field label { color: #94A3B8; }
  .ss-next-step { background: linear-gradient(135deg, #1E293B, #172554); border-color: #1E3A5F; }
  .ss-next-step h3 { color: #93C5FD; }
  .ss-next-step p { color: #94A3B8; }
  .bubble.bot { background: #1E293B; border-color: #334155; }
  .chat-body { background: #0F172A; }
  .chat-options { background: #1E293B; border-color: #334155; }
  .opt { background: #1E293B; border-color: #334155; color: #E2E8F0; }
  .chat-input { background: #1E293B; border-color: #334155; }
  .chat-input input { background: #0F172A; border-color: #334155; color: #E2E8F0; }
  .chat-wrap { background: #1E293B; border-color: #334155; }
  .chat-head { background: var(--primary-dark); }
  .container { background: transparent; }
  .ss-bnav { background: #1E293B; border-color: #334155; }
  .ss-bnav a { color: #64748B; }
  .ss-bnav a.on { background: #1E3A5F; color: #60A5FA; }
  .welcome-card { background: #1E293B; border-color: #334155; }
  .ss-msg.success { background: #052E16; color: #4ADE80; border-color: #166534; }
  .ss-msg.error { background: #450A0A; color: #FCA5A5; border-color: #7F1D1D; }
  .ss-btn-danger { background: #450A0A; color: #FCA5A5; border-color: #7F1D1D; }
  .warn { background: #451A03; border-color: #92400E; color: #FCD34D; }
  .footer { background: #0F172A; }
  .asst-panel { background: #1E293B; border-color: #334155; }
  .asst-bot { background: #1E293B; border-color: #334155; color: #E2E8F0; }
  .asst-body { background: #0F172A; }
  .asst-inp { background: #0F172A; border-color: #334155; color: #E2E8F0; }
  .asst-opt { background: #1E293B; border-color: #334155; }
  .asst-opt .ao-t { color: #E2E8F0; }
  .asst-opt .ao-d { color: #94A3B8; }
  .asst-chip { background: #1E293B; border-color: #334155; color: #93C5FD; }
  .svc-card { background: #1E293B; border-color: #334155; }
  .quick-card { background: #1E293B; border-color: #334155; }
  .care-item { background: #1E293B; border-color: #334155; }
  .hh { background: transparent; }
  .hh-l { color: #E2E8F0; }
  .mh-card { background: #1E293B; border-color: #334155; }
  .hist-card { background: #1E293B; border-color: #334155; }
  .rec-card { background: #1E293B; border-color: #334155; }
  .res-card { background: #1E293B; border-color: #334155; }
  input.inp, select.inp, textarea.inp { background: #0F172A; border-color: #334155; color: #E2E8F0; }
  label.lbl { color: #CBD5E1; }
  .em-card { background: #1E293B; border-color: #7F1D1D; }
  .voice-card { background: #1E293B; }
  .expl-modal { background: #1E293B; border-color: #334155; }
  .ex-explain { background: #0F172A; border-color: #334155; }
  .asst-modal { background: #1E293B; border-color: #334155; }
  .res-why { background: #1E293B; border-color: #334155; }
  .res-why-h { color: #93C5FD; }
  .res-why-body { color: #CBD5E1; }
  .res-assess { background: #1E293B; border-color: #334155; }
  .res-assess-h { color: #93C5FD; }
  .res-assess-row { border-color: #334155; }
  .res-assess-label { color: #CBD5E1; }
  .res-questions { background: linear-gradient(135deg, #1E293B, #172554); border-color: #1E3A5F; }
  .res-questions-h { color: #93C5FD; }
  .res-questions-body { color: #94A3B8; }
  .manage-card { background: #1E293B; border-color: #334155; }
  .manage-label { color: #93C5FD; }
  .manage-val { background: #0F172A; color: #CBD5E1; }
  .manage-edit-btn { background: #1E293B; border-color: #334155; color: #E2E8F0; }
  .manage-del-btn { background: #450A0A; border-color: #7F1D1D; color: #FCA5A5; }
  .memory-card { background: #1E293B; border-color: #334155; }
  .memory-label { color: #93C5FD; }
  .memory-val { background: #0F172A; color: #CBD5E1; }
  .memory-legend { background: #0F172A; border-color: #334155; }
  .res-transparency { background: #1E293B; border-color: #334155; }
  .res-trans-h { color: #93C5FD; }
  .res-trans-body { color: #94A3B8; }
  .trans-card { border-color: #334155; }
  .trans-known { background: #052E16; border-color: #166534; }
  .trans-unclear { background: #451A03; border-color: #92400E; }
  .trans-notasked { background: #1E293B; border-color: #334155; }
  .trans-card-h { color: #E2E8F0; }
  .trans-item { color: #CBD5E1; }
  .trans-item-gray { color: #64748B; }
  .trans-note { color: #64748B; }
  .night-calm { background: #0F1729; border-color: #1E293B; }
}
.hero { background: linear-gradient(135deg, var(--primary) 0%, #42A5F5 55%, #64B5F6 100%); color: #fff; border-radius: 20px; padding: 48px 36px; text-align: center; margin-bottom: 30px; }
.hero h1 { font-size: 40px; margin-bottom: 12px; }
.hero p { font-size: 17px; opacity: .95; max-width: 640px; margin: 0 auto 24px; line-height: 1.8; }
.btn { display: inline-block; background: #fff; color: var(--primary); font-weight: 700; padding: 13px 30px; border-radius: 12px; margin: 6px; font-size: 16px; border: none; cursor: pointer; }
.btn.ghost { background: rgba(255,255,255,.15); color: #fff; border: 1px solid rgba(255,255,255,.5); }
.btn:hover { transform: translateY(-1px); }
.btn.small { padding: 7px 14px; font-size: 13px; border-radius: 9px; margin: 3px; }
.btn.ghost.small { background: var(--primary-light); color: var(--primary); border: 1px solid var(--primary); }
.card { background: var(--bg-card); border-radius: 16px; padding: 22px; box-shadow: var(--shadow-card); border: 1px solid var(--border-card); margin-bottom: 20px; }
.card h2 { color: var(--primary); margin-bottom: 12px; font-size: 20px; }
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; margin-bottom: 24px; }
.feature { background: var(--bg-card); border: 1px solid var(--border-card); border-radius: 14px; padding: 20px; }
.feature .ic { font-size: 30px; }
.feature h3 { font-size: 16px; margin: 10px 0 6px; color: var(--primary); }
.feature p { font-size: 14px; color: var(--text-body); line-height: 1.7; }
a.feature.serv { display: block; text-decoration: none; transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease; }
a.feature.serv:hover { transform: translateY(-3px); box-shadow: 0 8px 20px rgba(25,118,210,.14); border-color: var(--primary); }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; margin-bottom: 24px; }
.step { background: var(--bg-card); border: 1px solid var(--border-card); border-radius: 14px; padding: 20px; text-align: center; }
.step .n { width: 34px; height: 34px; border-radius: 50%; background: var(--primary); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-weight: 800; }
.step h3 { margin: 10px 0 6px; font-size: 15px; }
.step p { font-size: 13px; color: var(--text-muted); }
.warn { background: #fff7ed; border: 1px solid #fdba74; color: #7c2d12; border-radius: 12px; padding: 14px 18px; font-size: 14px; margin-bottom: 22px; }
.footer { text-align: center; padding: 40px 22px 30px; color: #B9CCE8; font-size: 13px; background: var(--primary-dark); margin-top: 30px; border-radius: 26px 26px 0 0; }
.footer .f-brand { font-size: 22px; font-weight: 800; color: #FFFFFF; letter-spacing: .3px; }
.footer .f-brand span { color: #90CAF9; }
.footer .f-tag { margin-top: 4px; color: #B9CCE8; font-size: 14px; }
.footer a { color: #90CAF9; }
.footer .f-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 22px; max-width: 860px; margin: 24px auto 8px; text-align: start; }
.footer .f-sec h4 { color: #FFFFFF; font-size: 13px; font-weight: 800; margin: 0 0 8px; letter-spacing: .2px; }
.footer .f-sec p { color: #B9CCE8; line-height: 1.8; font-size: 12.8px; margin: 0; }
.footer .f-sec .f-owner { display: block; font-size: 13.5px; color: #EAF4FF; line-height: 1.9; }
.footer .f-sec .f-owner:hover { color: #FFFFFF; }
.footer .f-tg { display: inline-flex; align-items: center; gap: 8px; background: #1F6FAE; color: #FFFFFF; font-weight: 700; font-size: 13px; padding: 9px 16px; border-radius: 999px; text-decoration: none; margin-top: 2px; }
.footer .f-tg:hover { background: #1F6FAE; color: #FFFFFF; }
.footer .f-links { display: flex; gap: 18px; justify-content: center; flex-wrap: wrap; margin: 18px 0 22px; font-size: 13px; }
.footer .f-links a { color: #EAF4FF; }
.footer .f-links a:hover { color: #FFFFFF; text-decoration: underline; }
.footer .f-love { color: #FFFFFF; font-size: 12px; font-weight: 600; letter-spacing: .1px; margin-top: 10px; }
.footer .f-love b { color: #90CAF9; font-weight: 700; }
.footer .f-copy { color: #8CA7CC; margin-top: 8px; font-size: 12px; }
.chat-wrap { max-width: 900px; margin: 0 auto; background: var(--bg-card); border-radius: 22px; box-shadow: var(--shadow-card); border: 1px solid var(--border-card); overflow: hidden; display: flex; flex-direction: column; height: 78vh; }
.chat-head { background: linear-gradient(135deg, #1F6FAE, #1F6FAE); color: #fff; padding: 14px 18px; display: flex; align-items: center; gap: 10px; }
.chat-head .avatar { width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,.2); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 20px; }
.chat-head h3 { font-size: 16px; }
.chat-head p { font-size: 12px; opacity: 1; }
.chat-head .spk-btn { margin: 0; background: rgba(255,255,255,.15); border: none; border-radius: 10px; padding: 8px 10px; font-size: 13px; cursor: pointer; color: #fff; white-space: nowrap; }
.chat-head-toggles { display: flex; align-items: center; gap: 8px; }
.sr-only{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}
.chat-audio-btn{display:inline-grid!important;place-items:center!important;width:42px;height:42px;min-width:42px;padding:0!important;border:1px solid rgba(255,255,255,.38)!important;border-radius:12px!important;background:rgba(255,255,255,.16)!important;color:#fff!important;line-height:1!important;transition:background .15s ease,border-color .15s ease,transform .15s ease;position:relative;z-index:5;visibility:visible!important;opacity:1!important}.chat-audio-svg{width:22px;height:22px;display:block;overflow:visible}.audio-stroke{fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}.audio-fill{fill:currentColor}.chat-audio-btn .speaker-wave{display:none}.chat-audio-btn.is-on .speaker-wave{display:block}.chat-audio-btn.is-on .speaker-slash{display:none}.chat-audio-btn .mic-stop-icon{display:none}.chat-audio-btn.is-recording .mic-ready-icon{display:none}.chat-audio-btn.is-recording .mic-stop-icon{display:block}.chat-audio-btn.is-on{background:rgba(46,173,104,.30)!important;border-color:rgba(215,255,232,.78)!important}.chat-audio-btn.is-recording{background:rgba(220,62,62,.38)!important;border-color:rgba(255,224,224,.86)!important}.chat-audio-btn:active{transform:scale(.96)}
.chat-body { flex: 1; overflow-y: auto; padding: 18px; background: #F5F9FF; }
.bubble { max-width: 85%; margin-bottom: 10px; padding: 11px 15px; border-radius: 14px; font-size: 15px; line-height: 1.8; white-space: pre-wrap; }
.bubble.bot { background: var(--bg-card); border: 1px solid var(--border-card); border-bottom-right-radius: 4px; }
.bubble.user { background: var(--primary); color: #fff; margin-left: auto; border-bottom-left-radius: 4px; }
.bubble.result { background: var(--bg-card); border: 1px solid #DCEBFA; max-width: 100%; }
.chat-options { padding: 14px; background: var(--bg-card); border-top: 1px solid var(--border-card); display: flex; flex-wrap: wrap; gap: 8px; }
.opt { background: var(--bg-card); border: 1.5px solid #DCEBFA; color: var(--primary-dark); padding: 10px 18px; border-radius: 24px; font-size: 14.5px; font-weight: 600; cursor: pointer; }
.vidbtn { display:inline-block; margin-top:12px; background:var(--primary); color:#fff; border:none; padding:10px 18px; border-radius:24px; font-size:14px; cursor:pointer; }
.vidbtn:hover { background:#1F6FAE; }
.vidwrap iframe { display:block; }
.opt.sel { background: var(--primary); color: #fff; }
.opt.danger { border-color: #c81e1e; color: #c81e1e; background: #fef2f2; }
.opt:hover { opacity: .9; }
.chat-input { display: flex; gap: 8px; padding: 12px 14px; background: var(--bg-card); border-top: 1px solid var(--border-card); }
.chat-input input { flex: 1; border: 1px solid var(--border-card); border-radius: 12px; padding: 12px 14px; font-size: 15px; font-family: inherit; }
.chat-input button { background: var(--primary); color: #fff; border: none; border-radius: 12px; padding: 12px 20px; font-size: 15px; cursor: pointer; }
.urg-low { border-right: 6px solid #16a34a; }
.urg-medium { border-right: 6px solid #d97706; }
.urg-high { border-right: 6px solid #c81e1e; }
.sec-title { font-weight: 800; color: var(--primary); margin: 14px 0 6px; font-size: 15px; }
.res-sec { margin: 10px 0; }
.rec-item { background: var(--primary-light); border: 1px solid var(--border-card); border-radius: 10px; padding: 10px 12px; margin: 8px 0; }
.rec-item .src { color: var(--primary); font-size: 12px; }
.drop { border: 2px dashed var(--primary); border-radius: 16px; padding: 40px; text-align: center; color: var(--primary); cursor: pointer; background: var(--primary-light); margin-bottom: 16px; }
.drop.on { background: #EAF4FF; }
.muted { color: var(--text-muted); font-size: 13px; }
.urg-lbl { display: block; font-size: 13px; font-weight: 700; opacity: .85; }
.urg-val { display: block; font-size: 21px; font-weight: 800; margin-top: 2px; }
.rec-card { background: var(--bg-card); border: 1px solid var(--border-card); border-radius: 14px; padding: 12px 14px; margin: 10px 0; box-shadow: var(--shadow-card); }
.rec-head { display: flex; align-items: center; gap: 8px; color: var(--primary-dark); font-size: 14.5px; }
.rec-num { flex: none; width: 22px; height: 22px; border-radius: 50%; background: var(--primary); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 800; }
.rec-body { color: var(--text-body); font-size: 13.5px; line-height: 1.8; margin-top: 6px; }
.rec-card .src { color: var(--primary); font-size: 12px; margin-top: 6px; }
.ml-row { display: flex; justify-content: space-between; font-size: 13.5px; margin-top: 8px; }
.ml-note { color: var(--text-muted); font-size: 12px; margin-top: 8px; line-height: 1.7; }
.sel-sum { color: var(--text-muted); font-size: 13px; font-weight: 600; margin-top: 6px; }
.res-sec.bullets { white-space: pre-line; line-height: 1.9; color: var(--text-body); }
.card label { display: block; font-size: 13px; font-weight: 700; color: var(--primary); margin-bottom: 4px; }
.card input, .card select { width: 100%; padding: 10px 12px; border: 1px solid var(--border-card); border-radius: 10px; font-size: 14px; font-family: inherit; background: var(--primary-light); color: var(--text-body); }
.pr-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.dash-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 12px; }
.dash-stat { background: var(--primary-light); border: 1px solid var(--border-card); border-radius: 14px; padding: 12px 6px; text-align: center; }
.dash-stat b { display: block; font-size: 22px; color: var(--primary-dark); }
.dash-stat span { font-size: 12px; color: var(--text-muted); }
.tools { max-width: 880px; margin: 30px auto 0; padding: 0 8px; }
.tools-h { text-align: center; font-size: 23px; font-weight: 800; color: var(--primary-dark); }
.tools-sub { text-align: center; color: var(--text-muted); margin-bottom: 16px; font-size: 14px; }
.tools-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.tool { background: var(--bg-card); border: 1.5px solid var(--border-card); border-radius: 16px; padding: 18px 12px; text-align: center; text-decoration: none; color: var(--text-body); transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease; }
.tool:hover { transform: translateY(-3px); box-shadow: 0 10px 22px rgba(25,118,210,.08); border-color: var(--primary); }
.tool .t-ic { font-size: 34px; display: block; margin-bottom: 8px; }
.tool b { display: block; font-size: 15px; color: var(--primary); margin-bottom: 4px; }
.tool p { font-size: 12.5px; color: var(--text-muted); line-height: 1.6; }
@media (max-width: 640px) { .tools-grid { grid-template-columns: repeat(2, 1fr); } }
.cmp-table { width: 100%; border-collapse: collapse; margin-top: 10px; font-size: 13px; }
.cmp-table th, .cmp-table td { border: 1px solid var(--border-card); padding: 8px 10px; text-align: center; }
.cmp-table th { background: var(--primary-light); color: var(--primary-dark); font-size: 12px; }
.hist-card { background: var(--primary-light); border: 1px solid var(--border-card); border-radius: 12px; padding: 14px 16px; margin-bottom: 12px; }
.hist-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.pill { padding: 3px 11px; border-radius: 999px; font-size: 12px; font-weight: 700; }
.pill-hi { background: #fee2e2; color: #b91c1c; }
.pill-med { background: #fef3c7; color: #92400e; }
.pill-low { background: #dcfce7; color: #166534; }
.hist-row { margin-top: 8px; display: flex; gap: 6px; flex-wrap: wrap; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.em-overlay { position: fixed; inset: 0; z-index: 9999; display: none; align-items: center; justify-content: center; background: rgba(15,23,42,.55); backdrop-filter: blur(3px); padding: 18px; }
.blood-banner { margin: 12px auto 0; max-width: 560px; text-align: center; padding: 10px 16px; background: var(--primary-light); border: 1px solid var(--border-card); color: var(--primary-dark); border-radius: 12px; font-size: 13.5px; font-weight: 700; }
.rel-title { text-align: center; font-size: 13px; font-weight: 800; color: var(--primary); margin-top: 14px; }
.rel-chips { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 8px; }
.rel-chip { padding: 8px 14px; border-radius: 999px; border: 1.5px dashed var(--primary); background: var(--bg-card); color: var(--primary); font-size: 13px; font-weight: 700; cursor: pointer; }
.rel-chip:hover { background: #EAF4FF; }
.em-card { background: #FFFFFF; border: 2px solid #c81e1e; border-radius: 22px; padding: 30px 26px; max-width: 460px; width: 100%; text-align: center; box-shadow: 0 26px 70px rgba(153,27,27,.35); animation: emPop .35s cubic-bezier(.34,1.56,.64,1); }
@keyframes emPop { from { transform: scale(.85); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.em-card .em-icon { width: 74px; height: 74px; margin: 0 auto 12px; border-radius: 50%; background: #FEE2E2; display: flex; align-items: center; justify-content: center; font-size: 40px; }
.em-card h3 { font-size: 23px; font-weight: 800; color: #991B1B; margin: 0 0 8px; }
.em-card p { font-size: 15px; color: var(--text-body); line-height: 1.7; margin: 0 0 14px; }
.em-flags { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-bottom: 18px; }
.em-chip { background: #FEF2F2; border: 1px solid #FECACA; color: #991B1B; font-size: 13px; font-weight: 700; padding: 6px 12px; border-radius: 999px; }
.em-btns { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.em-call { background: #c81e1e; color: #FFFFFF; font-weight: 800; padding: 12px 22px; border-radius: 12px; font-size: 15px; text-decoration: none; transition: background .2s ease, transform .15s ease; }
.em-call:hover { background: #B91C1C; transform: translateY(-2px); }
.em-num { margin: 10px 0 2px; font-size: 16px; font-weight: 800; color: #B91C1C; letter-spacing: 1px; cursor: pointer; user-select: all; }
.em-proceed { background: var(--primary-light); color: var(--primary-dark); font-weight: 700; padding: 12px 22px; border-radius: 12px; font-size: 15px; border: 1px solid var(--border-card); cursor: pointer; transition: background .2s ease; }
.em-proceed:hover { background: var(--primary-pale); }
.voice-overlay { position: fixed; inset: 0; z-index: 9999; display: none; align-items: center; justify-content: center; background: rgba(15,23,42,.55); backdrop-filter: blur(3px); padding: 18px; }
.voice-card { background: var(--bg-card); border-radius: 22px; padding: 30px 26px; max-width: 360px; width: 100%; text-align: center; box-shadow: 0 26px 70px rgba(25,118,210,.15); animation: emPop .35s cubic-bezier(.34,1.56,.64,1); }
.v-mic { width: 84px; height: 84px; margin: 0 auto 14px; border-radius: 50%; background: var(--primary-light); border: 3px solid var(--primary); display: flex; align-items: center; justify-content: center; font-size: 42px; animation: vPulse 1.4s ease-in-out infinite; }
@keyframes vPulse { 0%,100% { box-shadow: 0 0 0 0 rgba(25,118,210,.45); transform: scale(1); } 50% { box-shadow: 0 0 0 18px rgba(25,118,210,0); transform: scale(1.06); } }
.v-title { font-size: 16px; font-weight: 800; color: var(--primary-dark); }
.vstop { background: var(--primary); color: #FFFFFF; font-weight: 800; padding: 11px 22px; border-radius: 12px; font-size: 14px; border: none; cursor: pointer; }
.vcnl { background: var(--primary-light); color: var(--text-body); font-weight: 700; padding: 11px 22px; border-radius: 12px; font-size: 14px; border: 1px solid var(--border-card); cursor: pointer; }
.warn { background: #FEF2F2; border: 1px solid #FECACA; color: #991B1B; padding: 10px 14px; border-radius: 12px; font-size: 14px; font-weight: 700; margin: 8px 0; }
.em-disc { font-size: 12px; color: var(--text-muted); margin-top: 12px; }
@media (max-width: 700px) { .grid2 { grid-template-columns: 1fr; } .hero h1 { font-size: 30px; } .chat-wrap { height: 84vh; } }
label.lbl { display: block; font-size: 14px; font-weight: 700; margin: 12px 0 6px; color: var(--text-body); }
input.inp, select.inp, textarea.inp { width: 100%; border: 1px solid var(--border-card); border-radius: 10px; padding: 12px; font-size: 15px; font-family: inherit; }
table.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
table.tbl th, table.tbl td { border: 1px solid var(--border-card); padding: 9px 11px; text-align: right; }
table.tbl th { background: var(--primary); color: #fff; }
.pill { display: inline-block; padding: 3px 12px; border-radius: 20px; font-size: 13px; font-weight: 700; }
.pill.low { background: #dcfce7; color: #166534; }
.pill.medium { background: #fef3c7; color: #92400e; }
.pill.high { background: #fee2e2; color: #991b1b; }
.badge { background: var(--primary); color: #fff; padding: 4px 12px; border-radius: 20px; font-size: 12px; }
.bar-bg { background: var(--border-card); border-radius: 8px; height: 10px; width: 100%; margin: 4px 0; }
.bar-fill { background: var(--primary); height: 10px; border-radius: 8px; }
.spin { display: inline-block; width: 16px; height: 16px; border: 2px solid #DCEBFA; border-top-color: transparent; border-radius: 50%; animation: sp 1s linear infinite; vertical-align: middle; }
@keyframes sp { to { transform: rotate(360deg); } }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.fade { animation: fadeIn .45s ease both; }
.hero, .card, .feature, .step, .welcome-card { animation: fadeIn .5s ease both; }
html[dir="ltr"] .bubble.user { margin-left: 0; margin-right: auto; }
html[dir="ltr"] .urg-low { border-right: none; border-left: 6px solid #16a34a; }
html[dir="ltr"] .urg-medium { border-right: none; border-left: 6px solid #d97706; }
html[dir="ltr"] .urg-high { border-right: none; border-left: 6px solid #c81e1e; }
html[dir="ltr"] table.tbl th, html[dir="ltr"] table.tbl td { text-align: left; }
.welcome-wrap { min-height: 86vh; display: flex; align-items: center; justify-content: center; padding: 26px 18px; }
.welcome-card { background: var(--bg-card); border: 1px solid var(--border-card); border-radius: 22px; box-shadow: 0 10px 30px rgba(25,118,210,.08); padding: 42px 30px; max-width: 560px; width: 100%; text-align: center; }
.welcome-card .logo-big { font-size: 62px; }
.welcome-card h1 { font-size: 30px; color: var(--primary); margin: 14px 0 8px; }
.welcome-card p { color: var(--text-body); font-size: 15px; line-height: 1.8; margin-bottom: 26px; }
.lang-row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.lang-btn { flex: 1; min-width: 200px; background: var(--primary-light); border: 2px solid var(--primary); border-radius: 14px; padding: 22px 14px; cursor: pointer; transition: transform .12s ease, box-shadow .12s ease, background .12s ease; }
.lang-btn:hover { transform: translateY(-3px); box-shadow: 0 8px 20px rgba(25,118,210,.18); background: #EAF4FF; }
.lang-btn .lc { font-size: 34px; display: block; margin-bottom: 8px; }
.lang-btn .lt { font-size: 20px; font-weight: 800; color: var(--primary); display: block; }
.lang-btn .ld { font-size: 13px; color: var(--text-body); display: block; margin-top: 4px; }
.multi-greet { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 0 0 22px; }
.greet-line { display: inline-flex; align-items: center; gap: 7px; background: var(--primary-light); border: 1px solid var(--border-card); border-radius: 999px; padding: 6px 14px; font-size: 13.5px; color: var(--text-body); }
.greet-line .gflag { font-size: 16px; }
.welcome-full { position: fixed; inset: 0; z-index: 60; background: linear-gradient(180deg, #F5F9FF 0%, #EAF4FF 100%); overflow: hidden; transition: opacity .8s ease; }
.welcome-full.fade-out { opacity: 0; }
.w-cloud { position: absolute; inset: 0; }
.gword { position: absolute; display: inline-block; font-family: 'Tajawal', 'Segoe UI', Tahoma, sans-serif; font-weight: 700; color: var(--primary); white-space: nowrap; text-shadow: 0 3px 18px rgba(25,118,210,.20); animation: floaty var(--dur,10s) ease-in-out var(--delay,0s) infinite; }
@keyframes floaty { 0%,100% { transform: rotate(var(--rot,0deg)) translateY(0); } 50% { transform: rotate(var(--rot,0deg)) translateY(-14px); } }
.lang-area { position: absolute; bottom: 30px; left: 0; right: 0; display: flex; flex-direction: column; align-items: center; gap: 12px; z-index: 5; }
.lang-opts { display: flex; gap: 10px; opacity: 0; transform: translateY(14px); pointer-events: none; transition: opacity .45s ease, transform .45s ease; }
.lang-opts.show { opacity: 1; transform: translateY(0); pointer-events: auto; }
.lang-btn { font-family:'Tajawal','Segoe UI',Tahoma,sans-serif; font-size: 15px; font-weight: 700; color: var(--primary); background: rgba(255,255,255,.9); border: 2px solid var(--primary); border-radius: 999px; padding: 10px 30px; cursor: pointer; box-shadow: 0 4px 16px rgba(25,118,210,.18); transition: transform .15s ease, background .15s ease; }
.lang-btn:hover { transform: translateY(-2px); background: #EAF4FF; }
.exit-curtain { position: fixed; z-index: 999; left: 50%; top: 50%; width: 150vmax; height: 150vmax; margin-left: -75vmax; margin-top: -75vmax; border-radius: 50%; background: radial-gradient(circle at center, #64B5F6, var(--primary) 60%, var(--primary-dark)); transform: scale(0); opacity: 0; pointer-events: none; transition: transform .9s cubic-bezier(.65,0,.35,1), opacity .55s ease; }
.exit-curtain.open { transform: scale(1); opacity: 1; }
.welcome-pick { display: none; position: fixed; z-index: 61; top: 50%; left: 50%; transform: translate(-50%, -46%); max-width: 580px; width: 92%; background: var(--bg-card); border: 1px solid var(--border-card); border-radius: 22px; box-shadow: 0 14px 40px rgba(25,118,210,.14); padding: 30px 26px; text-align: center; }
.welcome-pick.show { display: block; animation: pickIn .9s ease forwards; }
@keyframes pickIn { from { opacity: 0; transform: translate(-50%, -46%) scale(.94); } to { opacity: 1; transform: translate(-50%, -46%) scale(1); } }
.welcome-pick .logo-big { font-size: 52px; }
.welcome-pick h1 { font-size: 26px; color: var(--primary); margin: 10px 0 4px; }
.pick-btn { display: inline-block; margin: 4px; padding: 10px 26px; border-radius: 999px; border: 2px solid var(--primary); background: var(--primary); color: #fff; font-family: inherit; font-size: 15px; font-weight: 700; cursor: pointer; transition: transform .12s ease, background .12s ease; }
.pick-btn:hover { transform: translateY(-2px); background: var(--primary-dark); }
body.page-exit { transition: opacity .45s ease, transform .45s ease; opacity: 0; transform: scale(1.02); }
.nav .lang-sw { display: flex; align-items: center; gap: 2px; background: var(--primary-light); border-radius: 999px; padding: 3px; }
.nav .lang-sw a { font-size: 13px; font-weight: 700; padding: 6px 14px; border-radius: 999px; color: var(--primary); }
.nav .lang-sw a:hover { background: #EAF4FF; }
.nav .lang-sw a.on { background: var(--primary); color: #FFFFFF; }
.dd { position: relative; }
.dd-btn { background: var(--primary-light); border: none; color: var(--primary); font-weight: 700; font-family: inherit; font-size: 14.5px; padding: 9px 15px; border-radius: 10px; cursor: pointer; display: inline-flex; align-items: center; gap: 5px; }
.dd-btn:hover { background: #EAF4FF; }
.dd-menu { display: none; position: absolute; top: calc(100% + 8px); right: 0; min-width: 215px; background: var(--bg-card); border: 1px solid var(--border-card); border-radius: 14px; box-shadow: 0 16px 36px rgba(25,118,210,.16); padding: 8px; z-index: 90; }
.dd-menu.open { display: block; }
.dd-menu a { display: block; padding: 10px 13px; border-radius: 10px; color: var(--text-body); font-size: 14px; font-weight: 600; }
.dd-menu a:hover { background: var(--primary-light); color: var(--primary); }
html[dir="ltr"] .dd-menu { right: auto; left: 0; }
.account-dd { display: flex; align-items: center; gap: 2px; padding: 3px; border: 1px solid var(--border-card); border-radius: 14px; background: var(--primary-light); }
.account-profile-link { display: flex; align-items: center; gap: 8px; padding: 3px 7px; border-radius: 10px; color: var(--primary-dark); min-width: 0; }
.account-profile-link:hover { background: var(--bg-card); }
.account-avatar { width: 34px; height: 34px; flex: 0 0 34px; display: grid; place-items: center; border-radius: 11px; background: var(--bg-card); color: var(--primary); border: 1px solid var(--border-card); font-size: 17px; }
.account-btn-copy { min-width: 0; line-height: 1.25; text-align: start; }
.account-name { display: block; max-width: 145px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--primary-dark); font-size: 12.5px; font-weight: 800; }
.account-label { display: block; color: var(--text-muted); font-size: 10px; font-weight: 700; margin-top: 2px; }
.account-menu-toggle { width: 38px; height: 38px; display: grid; place-items: center; border: 0; border-radius: 10px; background: transparent; color: var(--primary); font-size: 12px; cursor: pointer; touch-action: manipulation; transition: background .16s ease, transform .16s ease; }
.account-menu-toggle:hover, .account-menu-toggle[aria-expanded="true"] { background: var(--bg-card); }
.account-menu-toggle[aria-expanded="true"] { transform: rotate(180deg); }
.account-menu-summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 8px; padding: 3px; min-width: 0; user-select: none; -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
.account-menu-summary::-webkit-details-marker { display: none; }
.account-menu-summary::marker { display: none; content: ""; }
.account-menu-summary:focus-visible { outline: 3px solid rgba(25,118,210,.24); outline-offset: 2px; border-radius: 11px; }
.account-menu-arrow { width: 34px; height: 34px; flex: 0 0 34px; display: grid; place-items: center; border-radius: 10px; color: var(--primary); transition: transform .16s ease, background .16s ease; }
.account-native[open] .account-menu-arrow { transform: rotate(180deg); background: var(--bg-card); }
.account-native > .account-menu { display: none; }
.account-native[open] > .account-menu { display: block; }
.account-menu { min-width: 270px; padding: 8px; }
.account-menu-head { display: flex; align-items: center; gap: 10px; padding: 11px; margin-bottom: 6px; border-radius: 11px; background: var(--primary-light); border: 1px solid var(--border-card); }
.account-menu-head .account-avatar { width: 40px; height: 40px; flex-basis: 40px; font-size: 20px; }
.account-menu-head strong { display: block; max-width: 175px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--primary-dark); font-size: 13px; }
.account-menu-head small { display: block; max-width: 175px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text-muted); font-size: 10.5px; direction: ltr; text-align: start; }
.account-menu a { display: flex; align-items: center; gap: 9px; }
.account-menu a.account-logout { color: #B91C1C; border-top: 1px solid var(--border-card); border-radius: 0 0 9px 9px; margin-top: 5px; padding-top: 11px; }
.account-menu a.account-logout:hover { background: #FEF2F2; color: #991B1B; }
@media (prefers-color-scheme: dark) {
  .dd-btn, .account-dd { background: #1E293B; border-color: #334155; color: #93C5FD; }
  .dd-menu { background: #1E293B; border-color: #334155; }
  .dd-menu a { color: #CBD5E1; }
  .dd-menu a:hover { background: #1E3A5F; color: #93C5FD; }
  .account-profile-link:hover, .account-menu-toggle:hover, .account-menu-toggle[aria-expanded="true"] { background: #0F172A; }
  .account-avatar { background: #0F172A; border-color: #334155; color: #60A5FA; }
  .account-name, .account-menu-head strong { color: #E2E8F0; }
  .account-label, .account-menu-head small { color: #94A3B8; }
  .account-menu-head { background: #0F172A; border-color: #334155; }
  .account-menu a.account-logout { border-color: #334155; color: #FCA5A5; }
  .account-menu a.account-logout:hover { background: #450A0A; color: #FCA5A5; }
}
.nav .links a.on { background: var(--primary-light); color: var(--primary); }
.cbc { font-size: 15px; font-weight: 700; color: var(--primary-dark); margin-bottom: 6px; }
.field-box { display: flex; align-items: center; gap: 12px; background: var(--primary-light); border: 1px solid var(--border-card); border-radius: 14px; padding: 14px; }
.field-box .fb-ic { font-size: 24px; width: 46px; height: 46px; min-width: 46px; border-radius: 12px; background: var(--primary-light); display: flex; align-items: center; justify-content: center; }
.field-box .lbl { margin: 0 0 4px; color: var(--primary-dark); }
.field-box input, .field-box select { background: var(--bg-card); }
.hint-note { text-align: center; color: var(--text-muted); font-size: 12.5px; margin: 12px 0 16px; }
.drop { border: 2px dashed var(--primary); border-radius: 18px; padding: 34px 20px; text-align: center; color: var(--primary-dark); cursor: pointer; background: var(--primary-light); margin-bottom: 0; }
.drop .d-icon { font-size: 40px; margin-bottom: 8px; }
.drop .d-text { font-size: 15px; font-weight: 700; color: var(--primary-dark); }
.drop .d-or { color: var(--text-muted); font-size: 13px; margin: 6px 0; }
.drop .d-btn { display: inline-block; background: var(--primary); color: #FFFFFF; font-weight: 700; padding: 9px 22px; border-radius: 999px; font-size: 14px; }
.drop .d-note { color: var(--text-muted); font-size: 12px; margin-top: 10px; }
.drop.on { background: #EAF4FF; border-color: var(--primary); }
.drop.selected { cursor: default; background: #EFF7FF; border-style: solid; border-color: #16a34a; }
.drop.selected .d-file { font-weight: 700; color: var(--primary-dark); font-size: 15px; word-break: break-all; }
.d-del { margin-top: 8px; background: var(--bg-card); color: #c81e1e; border: 1.5px solid #fca5a5; font-weight: 700; padding: 8px 20px; border-radius: 999px; font-size: 13.5px; cursor: pointer; font-family: inherit; }
.d-del:hover { background: #fee2e2; }
.btn.pri.big { font-size: 17px; padding: 15px 44px; border-radius: 999px; }
.bl-table { margin-top: 12px; }
.bl-sum-chips { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin: 10px 0 12px; }
.bl-chip { font-size: 13px; font-weight: 800; padding: 8px 14px; border-radius: 999px; }
.bl-chip.cg { background: #dcfce7; color: #166534; }
.bl-chip.ca { background: #fef3c7; color: #92400e; }
.bl-chip.cr { background: #fee2e2; color: #b91c1c; }
.bl-table .pill2 { font-size: 12.5px; padding: 3px 12px; }
.bl-table .bl-row { cursor: pointer; }
.bl-table .bl-row:hover td { background: var(--primary-light); }
.bl-explain { border: 1px solid #DCEBFA; background: #EAF4FF; color: var(--primary); border-radius: 999px; padding: 2px 9px; font-size: 11px; font-weight: 700; cursor: pointer; font-family: inherit; margin-inline-start: 6px; white-space: nowrap; }
.bl-explain:hover { background: #EAF4FF; }
.bl-detail td { background: var(--primary-light); }
.bl-det-inner { font-size: 14px; line-height: 1.8; color: var(--text-body); }
.bl-det-inner p { margin: 4px 0; }
.bl-det-inner b { color: var(--primary); }
.bl-notes { margin-top: 12px; }
.bl-note { font-size: 12.5px; color: #7A5B00; background: #FFF8E7; border: 1px solid #F5D78E; border-radius: 10px; padding: 10px 13px; margin-top: 10px; }
.p2-green { background: #dcfce7; color: #166534; }
.p2-orange { background: #fef3c7; color: #92400e; }
.p2-red { background: #fee2e2; color: #b91c1c; }
.p2-dark { background: #c81e1e; color: #FFFFFF; }
.search-box { display: flex; align-items: center; gap: 10px; }
.search-box .sb-ic { font-size: 22px; }
.search-box .inp { flex: 1; }
.search-box .sb-btn { margin: 0; white-space: nowrap; }
@media (max-width: 640px) { .search-box { flex-wrap: wrap; } .search-box .sb-btn { flex: 1; } }
.drug-card { background: var(--primary-light); border: 1px solid var(--border-card); border-radius: 14px; padding: 18px; }
.drug-name { font-size: 19px; font-weight: 800; color: var(--primary-dark); margin-bottom: 12px; }
.drug-sec { margin-bottom: 14px; }
.drug-sec-t { font-weight: 800; color: var(--primary); font-size: 14.5px; margin-bottom: 4px; }
.drug-sec-t.wr { color: #b45309; }
.drug-sec-t.wt { color: #c81e1e; }
.drug-sec p { font-size: 14px; color: var(--text-body); line-height: 1.8; }
.drug-note { font-size: 12.5px; color: #7A5B00; background: #FFF8E7; border: 1px solid #F5D78E; border-radius: 10px; padding: 10px 13px; }
.tip-card { background: linear-gradient(180deg, var(--primary-light) 0%, #FFFFFF 70%); border: 1.5px solid var(--border-card); border-radius: 18px; padding: 22px 20px; }
.tip-top { display: flex; align-items: center; gap: 14px; margin-bottom: 12px; }
.tip-icon { font-size: 42px; width: 64px; height: 64px; min-width: 64px; border-radius: 16px; background: var(--primary-light); display: flex; align-items: center; justify-content: center; }
.tip-cat { display: inline-block; font-size: 12px; font-weight: 800; color: var(--primary); background: var(--primary-light); border-radius: 999px; padding: 3px 12px; margin-bottom: 4px; }
.tip-top h3 { font-size: 19px; color: var(--primary-dark); margin: 0; }
.tip-text { font-size: 14.5px; color: var(--text-body); line-height: 1.9; margin-bottom: 12px; }
.tip-tip { font-size: 13.5px; color: #166534; background: #dcfce7; border: 1px solid #bbf7d0; border-radius: 12px; padding: 10px 14px; line-height: 1.8; }
.em-alert { background: #FEF3C7; border: 1.5px solid #F59E0B; color: #92400e; border-radius: 14px; padding: 13px 16px; font-size: 14px; margin: 14px 0 20px; line-height: 1.8; }
.em-grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 14px; }
@media (max-width: 760px) { .em-grid3 { grid-template-columns: 1fr; } }
.em-card { background: var(--bg-card); border: 1.5px solid var(--border-card); border-radius: 18px; padding: 22px 18px; text-align: center; }
.em-card .em-ic { font-size: 34px; }
.em-card h3 { font-size: 16px; color: var(--primary-dark); margin: 10px 0 4px; }
.em-desc { font-size: 13px; color: var(--text-muted); min-height: 42px; line-height: 1.7; }
.em-num { font-size: 34px; font-weight: 800; letter-spacing: 1px; margin: 10px 0; }
.em-num.red { color: #c81e1e; }
.em-num.blue { color: var(--primary); }
.em-call { display: inline-block; background: #c81e1e; color: #FFFFFF; font-weight: 700; padding: 10px 24px; border-radius: 999px; font-size: 14.5px; }
.em-call:hover { opacity: .9; }
.em-call.blue { background: var(--primary); }
.em-call.big { font-size: 17px; padding: 14px 40px; }
.em-mini { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 4px; }
@media (max-width: 640px) { .em-mini { grid-template-columns: 1fr; } }
.em-mini-card { display: flex; align-items: center; gap: 10px; background: var(--primary-light); border: 1px solid var(--border-card); border-radius: 14px; padding: 14px 16px; flex-wrap: wrap; }
.em-mini-card .em-mini-num { margin-inline-start: auto; font-size: 22px; font-weight: 800; color: var(--primary); }
.em-danger { border: 1.5px solid #FECACA; }
.em-danger-h { color: #b91c1c !important; }
.em-signs { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; }
.em-sign { background: #fef2f2; border: 1px solid #fecaca; color: #7f1d1d; border-radius: 12px; padding: 12px 14px; font-size: 13.5px; font-weight: 700; text-align: center; }
.em-24h { display: inline-block; background: var(--primary-light); color: var(--primary); font-weight: 700; font-size: 13px; padding: 7px 16px; border-radius: 999px; }
.em-safety { background: #FEF3C7; border-color: #F59E0B; color: #92400e; }
.hh { display: flex; align-items: center; gap: 30px; background: linear-gradient(120deg, var(--primary-light) 0%, #FFFFFF 78%); border: 1px solid var(--border-card); border-radius: 34px; padding: 48px 44px; box-shadow: 0 18px 50px rgba(25,118,210,.10); margin-bottom: 34px; max-width: 100%; overflow: hidden; }
.hh-badge { display: inline-flex; align-items: center; gap: 8px; background: var(--primary-light); color: var(--primary-dark); font-size: 13px; font-weight: 700; border-radius: 999px; padding: 8px 16px; margin-bottom: 18px; }
.hh-l { flex: 1.2; min-width: 0; }
.hh-l h1 { font-size: clamp(26px, 6vw, 42px); line-height: 1.18; color: var(--primary-dark); margin: 0 0 8px; }
.hh-l h1 .hl { color: var(--primary); }
.hh-sub { font-size: clamp(15px, 3vw, 19px); font-weight: 700; color: var(--primary-dark); margin-bottom: 10px; }
.hh-desc { font-size: clamp(13.5px, 2.6vw, 15.5px); color: var(--text-body); line-height: 1.8; margin-bottom: 26px; max-width: 560px; }
.hh-btns { display: flex; gap: 12px; flex-wrap: wrap; }
.btn.pri { background: var(--primary); color: #FFFFFF; box-shadow: 0 10px 24px rgba(25,118,210,.30); }
.btn.pri:hover { background: #1F6FAE; transform: translateY(-2px); }
.btn.sec { background: #FFFFFF; color: var(--primary-dark); border: 1.5px solid var(--border-card); }
.btn.sec:hover { border-color: var(--primary); color: var(--primary); transform: translateY(-2px); }
.hh-r { flex: 1; display: flex; align-items: center; justify-content: center; position: relative; min-height: 420px; }
.hh-globe { position: absolute; width: 360px; height: 360px; border-radius: 50%; background: radial-gradient(circle, rgba(25,118,210,.14) 0%, rgba(25,118,210,.04) 55%, transparent 70%); }
.hh-globe::before, .hh-globe::after { content: ''; position: absolute; border-radius: 50%; border: 1.5px solid rgba(25,118,210,.18); inset: 12%; }
.hh-globe::after { inset: 26%; }
.hh-ic { position: absolute; font-size: 34px; filter: drop-shadow(0 6px 14px rgba(25,118,210,.25)); animation: floatic 5s ease-in-out infinite; }
.hh-ic.i1 { top: 6%; left: 6%; animation-delay: 0s; }
.hh-ic.i2 { top: 2%; right: 12%; animation-delay: 1.1s; }
.hh-ic.i3 { bottom: 12%; left: 12%; animation-delay: 2s; }
.hh-ic.i4 { bottom: 4%; right: 6%; animation-delay: .6s; }
.hh-ic.i5 { top: 36%; left: 0; animation-delay: 1.6s; }
.hh-ic.i6 { top: 34%; right: 0; animation-delay: .3s; }
.phone { width: 200px; height: 396px; background: var(--primary-dark); border-radius: 40px; padding: 12px; box-shadow: 0 34px 70px rgba(18,59,112,.35), inset 0 0 0 2px rgba(255,255,255,.12); position: relative; z-index: 2; }
.phone-screen { width: 100%; height: 100%; border-radius: 30px; background: linear-gradient(180deg, var(--primary-light) 0%, #FFFFFF 100%); display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 20px; }
.phone-heart { width: 74px; height: 74px; border-radius: 50%; background: #FFFFFF; box-shadow: 0 10px 26px rgba(25,118,210,.30); display: flex; align-items: center; justify-content: center; font-size: 36px; margin-bottom: 18px; }
.phone-screen p { color: var(--primary-dark); font-size: 15px; font-weight: 600; line-height: 1.7; }
.sec-head { text-align: center; color: var(--primary-dark); font-size: 30px; margin: 40px 0 8px; }
.sec-sub { text-align: center; color: var(--text-muted); font-size: 15px; margin-bottom: 26px; }
.feature { transition: transform .14s ease, box-shadow .14s ease, border-color .14s ease; }
.feature .ic { font-size: 38px; width: 64px; height: 64px; display: flex; align-items: center; justify-content: center; background: var(--primary-light); border-radius: 18px; margin-bottom: 12px; }
.feature h3 { font-size: 16.5px; margin: 10px 0 6px; color: var(--primary); }
.feature p { font-size: 14px; color: var(--text-body); line-height: 1.7; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
a.feature.serv:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(25,118,210,.14); border-color: var(--primary); }
#more-services { display: none; }
.more-btn { display: block; margin: 0 auto 24px; background: var(--bg-card); color: var(--primary); border: 1.5px solid var(--primary); font-weight: 700; padding: 12px 30px; border-radius: 999px; font-size: 15px; cursor: pointer; font-family: inherit; }
.more-btn:hover { background: var(--primary-light); }
.how-wrap { display: flex; align-items: center; justify-content: center; gap: 0; flex-wrap: wrap; margin-bottom: 30px; }
.how-step { background: var(--bg-card); border: 1px solid var(--border-card); border-radius: 18px; padding: 26px 22px; text-align: center; flex: 1; min-width: 210px; max-width: 260px; box-shadow: 0 4px 16px rgba(25,118,210,.06); }
.how-step .n { width: 44px; height: 44px; border-radius: 50%; background: linear-gradient(135deg, var(--primary), #1F6FAE); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-weight: 800; font-size: 17px; margin-bottom: 12px; }
.how-step h3 { font-size: 16.5px; color: var(--primary-dark); margin-bottom: 6px; }
.how-step p { font-size: 13.5px; color: var(--text-muted); line-height: 1.7; }
.how-arrow { font-size: 26px; color: var(--primary); padding: 0 10px; font-weight: 800; }
html[dir="ltr"] .how-arrow.ar { display: none; }
html[dir="rtl"] .how-arrow.en { display: none; }
.how-tl { position: relative; max-width: 720px; margin: 0 auto 32px; padding: 0; list-style: none; }
.how-tl::before { content: ''; position: absolute; left: 28px; top: 0; bottom: 0; width: 3px; background: linear-gradient(to bottom, var(--primary), var(--primary-light)); border-radius: 3px; }
html[dir="ltr"] .how-tl::before { left: 28px; }
html[dir="rtl"] .how-tl::before { left: auto; right: 28px; }
.how-tl-item { position: relative; display: flex; align-items: flex-start; gap: 16px; padding-bottom: 28px; }
html[dir="rtl"] .how-tl-item { flex-direction: row-reverse; text-align: right; }
.how-tl-item:last-child { padding-bottom: 0; }
.how-tl-dot { position: relative; z-index: 2; flex: 0 0 56px; height: 56px; border-radius: 50%; background: linear-gradient(135deg, var(--primary), #1F6FAE); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 18px; box-shadow: 0 4px 14px rgba(25,118,210,.25); }
.how-tl-card { flex: 1; background: var(--bg-card); border: 1px solid var(--border-card); border-radius: 16px; padding: 20px 22px; box-shadow: 0 4px 16px rgba(25,118,210,.06); transition: transform .15s ease, box-shadow .15s ease; }
.how-tl-card:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(25,118,210,.10); }
.how-tl-card h3 { font-size: 16px; color: var(--primary-dark); margin: 0 0 6px; font-weight: 800; }
.how-tl-card p { font-size: 14px; color: var(--text-muted); line-height: 1.7; margin: 0; }
@media (max-width: 480px) {
  .how-tl::before { left: 18px; }
  html[dir="rtl"] .how-tl::before { left: auto; right: 18px; }
  .how-tl-dot { flex: 0 0 38px; height: 38px; font-size: 14px; }
  .how-tl-item { gap: 12px; padding-bottom: 20px; }
  .how-tl-card { padding: 16px; }
  .how-tl-card h3 { font-size: 15px; }
  .how-tl-card p { font-size: 13px; }
}
.warn2 { background: #FFF8E7; border: 1px solid #F5D78E; color: #7A5B00; border-radius: 16px; padding: 16px 20px; font-size: 14.5px; line-height: 1.9; margin-bottom: 22px; display: flex; gap: 10px; align-items: flex-start; }
.warn2 .w-ic { font-size: 22px; }
.ab-sub { color: var(--primary); font-size: 17px; margin: 0 0 10px; }
.src-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.src-chips span { background: var(--primary-light); color: var(--primary); font-weight: 800; font-size: 13px; padding: 6px 14px; border-radius: 999px; }
.bubble.q { background: var(--primary-light); border: 1px solid var(--border-card); color: var(--primary-dark); font-weight: 700; font-size: 16px; border-radius: 14px 14px 14px 4px; padding: 13px 16px; }
.bubble.q.start { max-width: 100%; background: linear-gradient(160deg, var(--primary-light) 0%, #FFFFFF 90%); border: 1.5px solid var(--border-card); }
.chat-start { text-align: center; padding: 12px 10px 8px; }
.chat-start .cs-logo { font-size: 46px; margin-bottom: 8px; }
.chat-start .cs-title { font-size: 21px; font-weight: 800; color: var(--primary-dark); margin-bottom: 4px; }
.chat-start .cs-sub { font-size: 15px; font-weight: 700; color: var(--primary); margin-bottom: 10px; }
.chat-start .cs-desc { font-size: 13.5px; color: var(--text-body); line-height: 1.9; }
.start-btn { display: block; width: 100%; margin-top: 10px; background: linear-gradient(135deg, var(--primary), #1F6FAE); color: #FFFFFF; border: none; border-radius: 999px; padding: 14px 20px; font-size: 16px; font-weight: 800; cursor: pointer; font-family: inherit; box-shadow: 0 10px 24px rgba(25,118,210,.30); }
.start-btn:hover { transform: translateY(-1px); box-shadow: 0 14px 30px rgba(25,118,210,.38); }
.start-btn.is-next { order: -1; margin: 0 0 6px; position: sticky; top: 6px; z-index: 3; }
.start-btn:disabled { cursor: not-allowed; opacity: .55; box-shadow: none; transform: none; }
.res-card { background: linear-gradient(180deg, var(--primary-light) 0%, #FFFFFF 70%); border: 1.5px solid var(--border-card); border-radius: 20px; padding: 22px 20px; }
.res-title { text-align: center; font-size: 20px; font-weight: 800; color: var(--primary-dark); margin-bottom: 12px; }
.res-person { text-align: center; background: var(--primary-light); border: 1px solid var(--border-card); color: var(--primary); font-weight: 800; font-size: 13px; border-radius: 999px; padding: 6px 14px; display: inline-block; margin-bottom: 10px; }
.res-urg { text-align: center; margin: 6px 0 10px; }
.res-triage { display: block; margin: 4px auto 4px; width: fit-content; font-size: 16px; font-weight: 800; padding: 8px 22px; border-radius: 999px; background: var(--primary); color: #fff; }
.triage-why { margin: 10px 0 4px; padding: 10px 12px; background: var(--primary-light); border: 1px solid var(--border-card); border-radius: 12px; font-size: 13.5px; color: var(--primary-dark); line-height: 1.8; }
.res-sim-toggle { text-align: center; margin: 10px 0 4px; }
.sim-box { padding: 14px; background: #FFF7ED; border: 1px solid #FDBA74; border-radius: 14px; font-size: 15px; color: #7C2D12; line-height: 1.9; }
.pill2 { display: inline-block; font-size: 20px; font-weight: 800; padding: 10px 26px; border-radius: 999px; }
.pill2.low { background: #dcfce7; color: #166534; }
.pill2.med { background: #fef3c7; color: #92400e; }
.pill2.hi { background: #fee2e2; color: #b91c1c; }
.res-disc { text-align: center; font-size: 12.5px; color: #7A5B00; margin-bottom: 12px; padding: 8px 10px; background: #FFF8E7; border: 1px solid #F5D78E; border-radius: 10px; line-height: 1.7; }
.res-note { font-style: italic; color: var(--text-body); line-height: 1.9; margin-bottom: 10px; font-size: 14px; }
.rc-title { font-weight: 800; color: var(--primary-dark); margin: 14px 0 6px; font-size: 15.5px; }
@media (max-width: 980px) {
  .hh { flex-direction: column; padding: 30px 22px; }
  .hh-r { min-height: 280px; }
}
@media (max-width: 600px) {
  .hh { padding: 24px 18px; border-radius: 24px; gap: 14px; }
  .hh-btns { width: 100%; }
  .hh-btns .btn { flex: 1; text-align: center; }
  .hh-r { min-height: 170px; transform: scale(.72); margin: -22px 0 -18px; }
}
@media (max-width: 480px) {
  .hh { padding: 22px 17px; gap: 10px; }
  .hh-l h1 { margin-bottom: 6px; }
  .hh-sub { margin-bottom: 6px; }
  .hh-desc { margin-bottom: 18px; }
  .hh-r { display: none !important; }
}
/* ---- Smart Account System CSS ---- */
.auth-wrap { min-height: 86vh; display: flex; align-items: center; justify-content: center; padding: 26px 18px; }
.auth-card { background: var(--bg-card); border: 1px solid var(--border-card); border-radius: 22px; box-shadow: 0 10px 30px rgba(25,118,210,.08); padding: 42px 30px; max-width: 460px; width: 100%; text-align: center; animation: fadeIn .5s ease both; }
.auth-card .auth-icon { font-size: 48px; margin-bottom: 12px; }
.auth-card h1 { font-size: 26px; color: var(--primary-dark); margin: 0 0 6px; }
.auth-card .auth-sub { color: var(--text-muted); font-size: 15px; margin-bottom: 24px; }
.auth-card .auth-reason { color:#40566F; opacity:1; font-size:13px; font-weight:700; line-height:1.8; margin:-8px 0 18px; }
.auth-card .auth-consent {
  display:flex; align-items:flex-start; justify-content:flex-start; gap:8px;
  width:100%; margin:14px 0 16px; font-size:13px; line-height:1.8;
  color:#40566F; font-weight:600; text-align:start;
}
[dir="rtl"] .auth-card .auth-consent { direction:rtl; text-align:right; }
[dir="ltr"] .auth-card .auth-consent { direction:ltr; text-align:left; }
.auth-card .auth-consent input[type="checkbox"] {
  width:17px; height:17px; margin:3px 0 0; flex:0 0 17px;
  accent-color:var(--primary); cursor:pointer;
}
.auth-card .auth-consent-text { display:block; flex:1 1 auto; min-width:0; }
.auth-card .auth-legal-link {
  color:#123B70; font-weight:800; text-decoration-line:underline;
  text-decoration-thickness:1px; text-underline-offset:3px;
  cursor:pointer; pointer-events:auto; white-space:normal;
}
.auth-card .auth-legal-link:visited { color:#123B70; }
.auth-card .auth-legal-link:hover { color:#0F5E92; text-decoration-thickness:2px; }
.auth-card .auth-legal-link:focus-visible { outline:2px solid var(--primary); outline-offset:3px; border-radius:3px; }
.auth-card .auth-field { text-align: right; margin-bottom: 14px; }
.auth-card .auth-field label { display: block; font-size: 14px; font-weight: 700; color: var(--primary-dark); margin-bottom: 4px; }
.auth-card .auth-field input { width: 100%; border: 1.5px solid var(--border-card); border-radius: 12px; padding: 12px 14px; font-size: 15px; font-family: inherit; background: var(--primary-light); color: var(--text-body); transition: border-color .2s; }
.auth-card .auth-field input:focus { outline: none; border-color: var(--primary); background: var(--bg-card); }
.auth-card .auth-btn { width: 100%; background: var(--primary); color: #fff; border: none; border-radius: 12px; padding: 14px; font-size: 16px; font-weight: 700; cursor: pointer; font-family: inherit; transition: background .2s, transform .1s; }
.auth-card .auth-btn:hover { background: var(--primary-dark); transform: translateY(-1px); }
.auth-card .auth-link { margin-top: 16px; font-size: 14px; color: var(--text-muted); }
.auth-card .auth-link a { color: var(--primary); font-weight: 700; text-decoration: none; }
.auth-card .auth-link a:hover { text-decoration: underline; }
/* V208: ghost buttons are white-on-transparent for dark surfaces. The login
   card is white, so give the guest action its own high-contrast treatment. */
.auth-card .auth-guest-btn { width:100%; justify-content:center; background:#F7FBFE!important; color:#123B70!important; border:1.5px solid #B8D4E5!important; font-weight:800!important; box-shadow:none!important; }
.auth-card .auth-guest-btn:hover { background:#EAF5FC!important; color:#0F5E92!important; border-color:#7FB8D8!important; }
.auth-card .auth-guest-btn:focus-visible { outline:3px solid rgba(40,127,193,.30)!important; outline-offset:3px!important; }
.auth-card .auth-error { background: #FEF2F2; border: 1px solid #FECACA; color: #991B1B; border-radius: 10px; padding: 10px 14px; font-size: 14px; font-weight: 600; margin-bottom: 14px; display: none; }
.auth-card .auth-error.show { display: block; }
/* Profile page */
.ss-profile-card { background: var(--bg-card); border: 1px solid var(--border-card); border-radius: 18px; padding: 24px; margin-bottom: 18px; box-shadow: var(--shadow-card); }
.ss-profile-card h2 { color: var(--primary); font-size: 18px; margin-bottom: 14px; display: flex; align-items: center; gap: 8px; }
.ss-profile-card .ss-field { display: flex; align-items: center; gap: 12px; background: var(--primary-light); border: 1px solid var(--border-card); border-radius: 14px; padding: 14px; margin-bottom: 10px; }
.ss-profile-card .ss-field .ss-f-icon { font-size: 22px; width: 42px; height: 42px; min-width: 42px; border-radius: 12px; background: var(--primary-light); display: flex; align-items: center; justify-content: center; }
.ss-profile-card .ss-field label { margin: 0 0 2px; color: var(--primary-dark); font-size: 13px; font-weight: 700; }
.ss-profile-card .ss-field input, .ss-profile-card .ss-field select, .ss-profile-card .ss-field textarea { background: var(--bg-card); border: 1px solid var(--border-card); border-radius: 10px; padding: 10px 12px; font-size: 14px; font-family: inherit; width: 100%; }
.ss-profile-card .ss-field textarea { min-height: 60px; resize: vertical; }
.ss-profile-card .ss-field input:focus, .ss-profile-card .ss-field select:focus, .ss-profile-card .ss-field textarea:focus { outline: none; border-color: var(--primary); }
.ss-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 640px) { .ss-grid2 { grid-template-columns: 1fr; } }
.ss-btn-row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
.ss-btn-primary { background: var(--primary); color: #fff; border: none; border-radius: 12px; padding: 12px 24px; font-size: 15px; font-weight: 700; cursor: pointer; font-family: inherit; transition: background .2s; }
.ss-btn-primary:hover { background: var(--primary-dark); }
.ss-btn-danger { background: var(--bg-card); color: #c81e1e; border: 1.5px solid #fca5a5; border-radius: 12px; padding: 12px 24px; font-size: 14px; font-weight: 700; cursor: pointer; font-family: inherit; transition: background .2s; }
.ss-btn-danger:hover { background: #fee2e2; }
.ss-msg { text-align: center; font-weight: 700; color: #16a34a; font-size: 14px; margin-top: 10px; }
.ss-msg.error { color: #c81e1e; }
/* Privacy toggles */
.ss-toggle-row { display: flex; align-items: center; justify-content: space-between; background: var(--primary-light); border: 1px solid var(--border-card); border-radius: 14px; padding: 14px 16px; margin-bottom: 10px; }
.ss-toggle-row .ss-t-label { font-size: 14px; font-weight: 600; color: var(--text-body); flex: 1; }
.ss-toggle { position: relative; width: 48px; height: 26px; flex: 0 0 auto; }
.ss-toggle input { opacity: 0; width: 0; height: 0; }
.ss-toggle .ss-slider { position: absolute; inset: 0; background: var(--primary-pale); border-radius: 999px; cursor: pointer; transition: background .25s; }
.ss-toggle .ss-slider::before { content: ''; position: absolute; width: 20px; height: 20px; left: 3px; bottom: 3px; background: #fff; border-radius: 50%; transition: transform .25s; }
.ss-toggle input:checked + .ss-slider { background: var(--primary); }
.ss-toggle input:checked + .ss-slider::before { transform: translateX(22px); }
/* Smart context modal */
.ss-modal-overlay { position: fixed; inset: 0; z-index: 9998; display: none; align-items: center; justify-content: center; background: rgba(15,23,42,.5); backdrop-filter: blur(3px); padding: 18px; }
.ss-modal-overlay.open { display: flex; }
.ss-modal { background: var(--bg-card); border-radius: 22px; max-width: 440px; width: 100%; padding: 30px 26px; text-align: center; box-shadow: 0 24px 60px rgba(15,23,42,.25); animation: fadeIn .35s ease; }
.ss-modal h3 { font-size: 20px; color: var(--primary-dark); margin-bottom: 8px; }
.ss-modal p { font-size: 14px; color: var(--text-body); line-height: 1.7; margin-bottom: 14px; }
.ss-modal .ss-modal-list { text-align: start; background: var(--primary-light); border: 1px solid var(--border-card); border-radius: 12px; padding: 12px 14px; margin-bottom: 18px; font-size: 13.5px; color: var(--text-body); line-height: 1.8; }
.ss-modal .ss-modal-list b { color: var(--primary); }
.ss-modal .ss-modal-btns { display: flex; flex-direction: column; gap: 8px; }
.ss-modal .ss-modal-btn { border: none; border-radius: 12px; padding: 13px; font-size: 15px; font-weight: 700; cursor: pointer; font-family: inherit; transition: background .2s, transform .1s; }
.ss-modal .ss-modal-btn:hover { transform: translateY(-1px); }
.ss-modal .ss-modal-btn.primary { background: var(--primary); color: #fff; }
.ss-modal .ss-modal-btn.primary:hover { background: var(--primary-dark); }
.ss-modal .ss-modal-btn.secondary { background: var(--primary-light); color: var(--text-body); border: 1px solid var(--border-card); }
.ss-modal .ss-modal-btn.secondary:hover { background: var(--primary-pale); }
.ss-modal .ss-modal-btn.tertiary { background: transparent; color: var(--text-muted); }
/* Account gate used for private, cross-device features. */
.auth-gate-card { border: 1.5px solid var(--border-card); border-radius: 20px; padding: clamp(22px, 4vw, 34px); text-align: center; background: linear-gradient(145deg, var(--primary-light), var(--bg-card)); box-shadow: var(--shadow-card); }
.auth-gate-card .gate-icon { width: 64px; height: 64px; margin: 0 auto 12px; display: grid; place-items: center; border-radius: 18px; background: var(--bg-card); font-size: 30px; box-shadow: 0 8px 22px rgba(25,118,210,.12); }
.auth-gate-card h3 { color: var(--primary-dark); font-size: clamp(18px, 3vw, 22px); margin-bottom: 6px; }
.auth-gate-card p { color: var(--text-body); font-size: 14px; line-height: 1.8; max-width: 540px; margin: 0 auto; }
.auth-gate-actions { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.auth-gate-actions a { min-height: 46px; display: inline-flex; align-items: center; justify-content: center; padding: 11px 22px; border-radius: 12px; font-weight: 800; }
.auth-gate-actions .gate-login { background: var(--primary); color: #fff; }
.auth-gate-actions .gate-register { background: var(--bg-card); color: var(--primary); border: 1.5px solid var(--primary); }
.auth-only.is-locked { display: none !important; }

/* Responsive safety net shared by every page. */
@media (max-width: 1500px) {
  .nav { display: none; }
  .ss-mobile-head { display: flex; }
  .ss-bnav { display: flex; justify-content: space-evenly; align-items: center; }
  .ss-bnav a { flex: 0 1 170px; }
  .container { padding-bottom: calc(var(--bnav-h) + var(--safe-bottom) + 80px); }
  .asst-fab { bottom: calc(var(--bnav-h) + var(--safe-bottom) + 12px); left: 12px; width: 54px; height: 54px; padding: 0; justify-content: center; }
  [dir="rtl"] .asst-fab { left: 12px; right: auto; }
  .asst-fab .asst-fab-lb { display: none; }
  .asst-panel { left: 12px; right: 12px; bottom: calc(var(--bnav-h) + var(--safe-bottom) + 76px); width: auto; height: min(72dvh, 600px); }
  [dir="rtl"] .asst-panel { left: 12px; right: 12px; }
}
@media (max-width: 900px) {
  .hp-overview { grid-template-columns: 1fr; }
  .hp-stats, .hp-quick-links, .dash-stats { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .chat-wrap { height: calc(100dvh - var(--bnav-h) - var(--safe-bottom) - 100px); min-height: 520px; max-height: 780px; }
  .how-arrow { display: none !important; }
  .how-wrap { gap: 12px; align-items: stretch; }
  .how-step { flex: 1 1 calc(50% - 12px); max-width: none; min-width: 220px; }
}
@media (max-width: 640px) {
  .container { padding: 14px 12px; padding-bottom: calc(var(--bnav-h) + var(--safe-bottom) + 24px); }
  .card, .ss-profile-card, .fam-form { padding: 16px; border-radius: 16px; margin-bottom: 14px; }
  .hero { padding: 30px 18px; border-radius: 18px; }
  .hero h1 { font-size: clamp(27px, 9vw, 34px); }
  .grid2, .ss-grid2, .pr-grid { grid-template-columns: 1fr; gap: 10px; }
  input.inp, select.inp, textarea.inp, .card input, .card select, .auth-card .auth-field input { min-height: 48px; font-size: 16px; }
  .btn, .ss-btn-primary, .ss-btn-danger { min-height: 46px; }
  .ss-btn-row > .btn, .ss-btn-row > .ss-btn-primary, .ss-btn-row > .ss-btn-danger { flex: 1 1 100%; justify-content: center; text-align: center; }
  .drop { padding: 26px 14px; }
  table.tbl { display: block; width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; white-space: nowrap; }
  body.ss-chat-page { height: 100dvh; overflow: hidden; overscroll-behavior: none; }
  body.ss-chat-page .container { height: calc(100dvh - 62px - var(--safe-top) - var(--bnav-h) - var(--safe-bottom)); padding: 6px 8px; overflow: hidden; }
  body.ss-chat-page .chat-wrap { height: 100%; min-height: 0; max-height: none; margin: 0; border-radius: 16px; }
  body.ss-chat-page .container > .muted, body.ss-chat-page .blood-banner { display: none !important; }
  .chat-options { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); max-height: 42%; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; padding: 10px; }
  .chat-options .opt { width: 100%; min-height: 48px; padding: 9px 10px; border-radius: 14px; line-height: 1.45; }
  .chat-options .start-btn, .chat-options #relBlock { grid-column: 1/-1; }
  .chat-head { flex-wrap: wrap; padding: 10px 12px; gap: 6px; }
  .chat-head-toggles { display: flex; flex-wrap: nowrap; gap: 6px; margin-inline-start: auto; }
  .chat-head .spk-btn { margin: 0; padding: 6px 8px; font-size: 10.5px; }
  #profileSwitcher { order: 10; flex: 1 1 100%; width: 100%; margin: 0 !important; }
  #famSelect { width: 100%; max-width: none !important; min-height: 42px; }
  .chat-body { padding: 12px; }
  .bubble { max-width: 94%; font-size: 14px; }
  .chat-input { padding: 10px; gap: 6px; }
  .chat-input input { min-height: 46px; font-size: 16px; }
  .chat-input button { min-width: 44px; min-height: 46px; padding: 10px 12px; }
  .auth-wrap { min-height: auto; padding: 10px 0 24px; }
  .auth-card { padding: 28px 18px; border-radius: 18px; }
  .footer { padding: 30px 16px calc(var(--bnav-h) + var(--safe-bottom) + 20px); }
  .auth-gate-actions a { flex: 1 1 150px; }
  .hp-account-hero { padding: 19px 16px; border-radius: 18px; }
  .hp-account-head { align-items: flex-start; }
  .hp-avatar { width: 52px; height: 52px; flex-basis: 52px; border-radius: 16px; font-size: 26px; }
  .hp-account-name { font-size: 18px; }
  .hp-secure { display: none; }
  .hp-stats { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .hp-overview { grid-template-columns: 1fr; }
  .hp-quick-links { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .hp-account-email { overflow-wrap: anywhere; word-break: break-all; }
  .how-step { flex-basis: 100%; min-width: 0; }
  .ss-modal-overlay, .expl-bg, .asst-modal-bg { padding: 10px; }
  .ss-modal, .expl-modal, .asst-modal { padding: 18px 15px; border-radius: 18px; }
}
@media (max-width: 480px) {
  .ss-mobile-head { gap: 8px; padding-inline: 10px; }
  .ss-mobile-account { max-width: 112px; padding-inline: 9px; }
  .ss-mobile-lang { min-width: 42px; padding-inline: 8px; }
  .quick-grid { grid-template-columns: 1fr !important; }
  .care-grid { grid-template-columns: repeat(2, minmax(0,1fr)) !important; }
  .chat-head .avatar { width: 36px; height: 36px; }
  .chat-head h3 { font-size: 14px; }
  .chat-head p { font-size: 10.5px; }
  .bubble { max-width: 100%; }
  .opt { padding: 9px 13px; font-size: 13px; }
  .dash-stats { grid-template-columns: 1fr; }
  .pwa-install-copy { font-size: 12px; }
}
@media (max-width: 360px) {
  .container { padding-inline: 10px; }
  .quick-grid, .care-grid, .tools-grid { grid-template-columns: 1fr !important; }
  .ss-bnav a { min-width: 48px; font-size: 9px; }
  .ss-mobile-account span:last-child { display: none; }
  .ss-mobile-account { width: 42px; padding: 7px; }
  .chat-options { grid-template-columns: 1fr; }
  .chat-options .start-btn, .chat-options #relBlock { grid-column: 1; }
}
@media (orientation: landscape) and (max-height: 560px) {
  body.ss-chat-page { height: 100dvh; overflow: hidden; }
  body.ss-chat-page .container { height: calc(100dvh - var(--bnav-h) - var(--safe-bottom)); min-height: 0; padding: 4px 8px !important; overflow: hidden; }
  body.ss-chat-page .chat-wrap { height: 100% !important; min-height: 0 !important; max-height: none !important; margin: 0 !important; border-radius: 14px !important; }
  body.ss-chat-page .chat-head { padding-block: 6px !important; }
  body.ss-chat-page .chat-body { padding-block: 6px !important; }
  body.ss-chat-page .chat-options { max-height: 34dvh !important; padding-block: 6px !important; }
  body.ss-chat-page .chat-options .opt { min-height: 40px !important; }
  body.ss-chat-page .chat-input { padding-block: 6px !important; }
  .asst-panel { height: calc(100dvh - var(--bnav-h) - var(--safe-bottom) - 16px); max-height: none; }
}
/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
  .auth-card, .ss-modal, .ss-profile-card { animation: none !important; transition: none !important; }
}

/* V267 — print / save-as-PDF: content only, readable black on white */
@media print {
  html body nav, html body .nav, html body .ss-mobile-head, html body .footer, html body .ss-bnav, html body .ss-skip-link, html body .ss-offline-banner, html body .no-print, html body .asst-foot, html body [id^="asst"], html body button, html body .btn { display: none !important; }
  html, body { background: #fff !important; color: #000 !important; }
  body * { box-shadow: none !important; text-shadow: none !important; }
  .container, main { max-width: 100% !important; width: 100% !important; margin: 0 !important; padding: 0 !important; }
  .ss-card, .card, section { break-inside: avoid; border: 1px solid #999 !important; background: #fff !important; }
  h1, h2, h3 { break-after: avoid; }
  a { color: #000 !important; text-decoration: none !important; }
  pre { white-space: pre-wrap !important; }
  @page { margin: 14mm; }
}

/* SymptoSense V2 — one quiet, accessible design system across every page. */
:root{--v2-blue:#1f6fae;--v2-blue-dark:#123B70;--v2-sky:#EAF5FC;--v2-bg:#F7FAFC;
--v2-card:#FFFFFF;--v2-text:#23384A;--v2-muted:#566a7d;--v2-line:#DCE8F0;
--v2-green:#267A52;--v2-green-bg:#EDF8F2;--v2-yellow:#8A651E;--v2-yellow-bg:#FFF8E7;
--v2-red:#A33A3A;--v2-red-bg:#FFF1F1;--v2-radius:16px;--v2-shadow:0 6px 20px rgba(31,86,127,.07)}
html{color-scheme:light}body{background:var(--v2-bg)!important;color:var(--v2-text)!important}
body[dir="ltr"]{font-family:'Poppins','Tajawal','Segoe UI',sans-serif}
.container{max-width:1180px}.card,.ss-profile-card,.welcome-card,.hist-card,.manage-card,.memory-card{
background:var(--v2-card)!important;border:1px solid var(--v2-line)!important;border-radius:var(--v2-radius)!important;
box-shadow:var(--v2-shadow)!important}
.chat-wrap,.chat-options,.asst-panel{background:#fff!important;border-color:var(--v2-line)!important}.chat-body{background:#F7FAFC!important}.bubble.bot{background:#fff!important;border-color:var(--v2-line)!important;color:var(--v2-text)!important}.ss-bnav,.ss-mobile-head{background:rgba(255,255,255,.98)!important;border-color:var(--v2-line)!important}.ss-mobile-logo{color:var(--v2-blue-dark)!important}
h1,h2,h3,h4{color:var(--v2-blue-dark)}.muted{color:var(--v2-muted)!important}
.btn,.ss-btn-primary,.auth-btn{min-height:46px;border-radius:12px!important;box-shadow:none!important;font-weight:700!important}
.btn.pri,.ss-btn-primary,.auth-btn{background:var(--v2-blue)!important;color:#fff!important}
.btn:hover,.ss-btn-primary:hover,.auth-btn:hover{transform:none!important;filter:brightness(.97)}
input,select,textarea{border-color:var(--v2-line)!important;border-radius:12px!important;background:#fff!important;color:var(--v2-text)!important}
.warn{background:var(--v2-yellow-bg)!important;border-color:#EFDAA7!important;color:#6F531B!important}
.nav{padding:12px clamp(16px,3vw,34px);background:#fff!important;color:var(--v2-blue-dark)!important;box-shadow:0 2px 14px rgba(31,86,127,.04)!important;border-color:var(--v2-line)!important}
.nav .logo{color:var(--v2-blue-dark)!important}.nav .links{align-items:center;gap:3px}.nav .links a,.v2-services-btn{min-height:42px;display:inline-flex;align-items:center;color:var(--v2-text)!important}
.nav .links a.on{background:var(--v2-sky)!important;color:var(--v2-blue)!important}
.ss-mobile-lang,.dd-btn,.account-dd{background:var(--v2-sky)!important;border-color:var(--v2-line)!important;color:var(--v2-blue-dark)!important}
.dd-menu{background:#fff!important;border-color:var(--v2-line)!important}.dd-menu a{color:var(--v2-text)!important}.dd-menu a:hover{background:var(--v2-sky)!important;color:var(--v2-blue)!important}
.account-avatar,.account-menu-head{background:var(--v2-bg)!important;border-color:var(--v2-line)!important}.account-name,.account-menu-head strong{color:var(--v2-blue-dark)!important}.account-label,.account-menu-head small{color:var(--v2-muted)!important}
.v2-nav-cta{background:var(--v2-blue)!important;color:#fff!important;padding-inline:17px!important}
.v2-services-menu{min-width:260px}.v2-services-menu a{border-radius:8px!important}
.footer{background:#123B70!important}.f-links{flex-wrap:wrap}
.v2-section-head{display:flex;justify-content:space-between;align-items:end;gap:14px;flex-wrap:wrap;margin:34px 0 16px}
.v2-section-head h2{font-size:clamp(21px,3vw,29px)}
.v2-services-more{border:1px solid var(--v2-line);border-radius:18px;background:#fff;overflow:hidden;margin:20px 0}
.v2-services-more summary{cursor:pointer;padding:16px 19px;color:var(--v2-blue-dark);font-weight:800;list-style:none;display:flex;justify-content:space-between}
.v2-services-more summary:after{content:'＋';color:var(--v2-blue)}.v2-services-more[open] summary:after{content:'−'}
.v2-more-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;padding:0 16px 16px}
.v2-more-link{padding:14px;border:1px solid var(--v2-line);border-radius:13px;color:var(--v2-blue-dark);font-weight:700;background:var(--v2-bg)}
.v2-more-link span{font-size:20px;display:block;margin-bottom:4px}
.v2-info-page{max-width:900px;margin:auto}.v2-info-page>section{background:#fff;border:1px solid var(--v2-line);border-radius:18px;padding:clamp(18px,3vw,28px);margin-bottom:14px;box-shadow:var(--v2-shadow)}
.v2-info-page h1{font-size:clamp(26px,4vw,38px);margin-bottom:10px}.v2-info-page h2{font-size:18px;margin-bottom:8px}.v2-info-page ul{padding-inline-start:22px}
.v2-source-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px}
.v2-source-card{background:linear-gradient(180deg,#fff,#F9FCFE);border:1px solid var(--v2-line);border-radius:18px;padding:18px;box-shadow:var(--v2-shadow);display:flex;flex-direction:column;gap:10px;overflow:hidden;position:relative}.v2-source-card:before{content:'';position:absolute;inset:auto -15% -35% -15%;height:140px;background:radial-gradient(circle at center,rgba(64,168,255,.12),transparent 62%);pointer-events:none}.v2-source-head{display:flex;align-items:flex-start;justify-content:space-between;gap:10px}.v2-source-brand{display:flex;align-items:flex-start;gap:11px}.v2-source-mark{width:46px;height:46px;border-radius:15px;display:grid;place-items:center;background:linear-gradient(180deg,#EAF5FC,#D8EEF9);color:#1F6FAE;font-size:13px;font-weight:900;border:1px solid #CFE1EC;flex:none}.v2-source-title{font-size:17px;font-weight:900;color:var(--v2-blue-dark)}.v2-source-org{font-size:12px;color:var(--v2-muted);margin-top:2px}.v2-source-badges{display:flex;flex-wrap:wrap;gap:6px;justify-content:flex-end}.v2-source-pill{display:inline-flex;align-items:center;min-height:26px;padding:5px 9px;border-radius:999px;font-size:10px;font-weight:900}.v2-source-pill.type{background:var(--v2-sky);color:var(--v2-blue-dark)}.v2-source-pill.verified{background:#EDF8F2;color:#1E6846;border:1px solid #CFE9DA}.v2-source-card .source-type{font-size:11px;background:var(--v2-sky);color:var(--v2-blue-dark);padding:4px 8px;border-radius:999px;align-self:flex-start}
.v2-guest-profile{max-width:620px;margin:30px auto;text-align:center;padding:34px;background:#fff;border:1px solid var(--v2-line);border-radius:20px;box-shadow:var(--v2-shadow)}
.ss-flow{background:#fff;border-bottom:1px solid var(--v2-line);padding:10px 15px}.ss-flow-copy{display:flex;justify-content:space-between;gap:10px;color:var(--v2-muted);font-size:11px;font-weight:700;margin-bottom:6px}.ss-flow-track{height:6px;background:#E8F0F5;border-radius:999px;overflow:hidden}.ss-flow-fill{height:100%;width:14.285%;background:var(--v2-blue);border-radius:999px;transition:width .25s ease}
.asst-source-list{display:flex;flex-wrap:wrap;gap:6px;align-items:center;margin-top:8px}.asst-source-list>b{width:100%;color:var(--v2-blue-dark);font-size:12px}
@media(max-width:900px){.v2-more-grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:700px){.svc-grid[style]{grid-template-columns:1fr!important}}
@media(max-width:600px){.v2-more-grid,.v2-source-grid{grid-template-columns:1fr}.v2-more-grid{padding:0 12px 12px}.container{padding-inline:12px}.v2-section-head{margin-top:24px}}
body.ss-accessibility{font-size:112%;line-height:1.75}body.ss-accessibility .btn,body.ss-accessibility .opt,body.ss-accessibility .ss-btn-primary,body.ss-accessibility button{min-height:52px!important;padding-block:11px!important}body.ss-accessibility .card,body.ss-accessibility .res-card,body.ss-accessibility .hist-card{padding:clamp(20px,3vw,28px)!important}body.ss-accessibility *{scroll-behavior:auto!important}body.ss-accessibility *,body.ss-accessibility *::before,body.ss-accessibility *::after{animation-duration:.001ms!important;animation-iteration-count:1!important;transition-duration:.001ms!important}body.ss-accessibility :focus-visible{outline:3px solid #1f6fae!important;outline-offset:3px!important}
.ss-demo-flow-note{padding:13px 14px;border:1px solid #cfe5f4;border-radius:14px;background:#f5fbff;color:#315b7d;line-height:1.7}.ss-demo-flow-note b{color:#0b5b96}
@media(max-width:600px){body.ss-chat-page .chat-wrap{margin-inline:auto!important;border-radius:18px!important;overflow:hidden}body.ss-chat-page .chat-head{padding:12px 13px!important}body.ss-chat-page .chat-body{padding:12px!important;font-size:14px!important;line-height:1.7!important}body.ss-chat-page .chat-options{padding:10px 12px 14px!important;gap:8px!important}body.ss-chat-page .opt{min-height:46px!important;padding:10px 12px!important;font-size:13px!important}body.ss-chat-page .chat-input{padding:10px 12px!important}body.ss-chat-page .chat-input input{min-height:46px!important;font-size:16px!important}body.ss-chat-page .res-card{padding:14px!important}body.ss-chat-page .res-sec{padding:14px!important}.ss-demo-flow-note{font-size:12.5px}}
/* Unified component layer — calm medical cards, controls, results and footer. */
.card,.auth-card,.res-card,.res-sec,.rec-card,.res-why,.res-action,.res-assess,.res-questions,.res-transparency,.trans-card,.hp-panel,.hp-stat,.hp-quick-link{
  background:var(--v2-card)!important;border:1px solid var(--v2-line)!important;border-radius:var(--v2-radius)!important;box-shadow:var(--v2-shadow)!important}
.res-card{padding:clamp(16px,3vw,24px)!important}.res-sec,.rec-card,.res-why,.res-action,.res-assess,.res-questions,.res-transparency{padding:16px!important;margin-block:10px!important}
.opt,.mini-btn,.dd-btn,.account-dd,.trans-add-btn{border-radius:12px!important;box-shadow:none!important;transition:border-color .18s ease,background .18s ease,color .18s ease!important}
.opt:hover,.mini-btn:hover{transform:none!important;border-color:var(--v2-blue)!important}
.hp-account-hero{background:var(--v2-sky)!important;color:var(--v2-blue-dark)!important;border:1px solid var(--v2-line)!important;box-shadow:var(--v2-shadow)!important}
.hp-account-email{color:var(--v2-muted)!important}.hp-avatar,.hp-secure{background:#fff!important;border-color:var(--v2-line)!important;color:var(--v2-blue-dark)!important}
.footer{background:#fff!important;color:var(--v2-muted)!important;border-top:1px solid var(--v2-line)!important;border-radius:26px 26px 0 0!important;box-shadow:none!important}
.footer .f-brand,.footer .f-sec h4,.footer .f-love{color:var(--v2-blue-dark)!important}.footer .f-tag,.footer .f-sec p,.footer .f-copy{color:var(--v2-muted)!important}.footer a,.footer .f-links a,.footer .f-sec .f-owner{color:var(--v2-blue)!important}.footer .f-tg{background:var(--v2-blue)!important;color:#fff!important}
.v2-symptom-chips{display:flex;gap:7px;flex-wrap:wrap;margin-top:9px}.v2-symptom-chip{display:inline-flex;align-items:center;min-height:34px;padding:6px 10px;border-radius:999px;background:var(--v2-sky);border:1px solid var(--v2-line);color:var(--v2-blue-dark);font-size:12px;font-weight:700}
.v2-low-confidence-card{margin:12px 0;padding:15px;border:1px solid #cfe4f5;border-radius:15px;background:#f7fbff;color:#284764}.v2-low-confidence-card h3{color:#123B70;margin-bottom:7px}.v2-low-confidence-card ul{margin:8px 20px 0;line-height:1.8}
.data-quality-card{margin:12px 0;padding:16px;border:1px solid #CFE3F2;border-radius:17px;background:#F8FCFF;color:#123B70}.dq-head{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:start;gap:12px}.dq-head>div:first-child{min-width:0}.dq-head>div:last-child{min-width:76px;max-width:110px;flex:none}.dq-score{font-size:23px;font-weight:900;color:#123B70;white-space:nowrap;direction:ltr;unicode-bidi:isolate;line-height:1.15}.dq-level{display:inline-flex;align-items:center;justify-content:center;max-width:100%;white-space:normal;word-break:normal;overflow-wrap:normal;font-size:11px;font-weight:800;padding:5px 9px;border-radius:999px;background:#EAF5FC;color:#1F6FAE;line-height:1.35}.dq-track{height:9px;background:#E5EEF5;border-radius:999px;overflow:hidden;margin:11px 0}.dq-fill{height:100%;background:var(--v2-blue);border-radius:inherit;transition:width .28s ease}.dq-grid{display:grid;grid-template-columns:1fr 1fr;gap:7px}.dq-item{padding:8px 10px;border-radius:11px;background:#fff;border:1px solid #E1ECF3;font-size:12px}.dq-item.missing{background:#FFF9ED;border-color:#F6E3B2}.dq-item.clarify{background:#FFF4EA;border-color:#F5D2AE}.dq-item-detail{margin-top:4px;font-size:11px;line-height:1.6;color:#6B7C8C}.dq-suggest{margin-top:8px;font-size:11px;color:#6B7C8C}.dq-chip{display:inline-block;margin:4px 4px 0 0;padding:4px 10px;border-radius:999px;border:1px solid #CFE3F2;background:#fff;color:#1F6FAE;font-size:11px;font-weight:700;cursor:pointer}.dq-chip:hover{background:#EAF5FC}.quick-symptom-chips{display:flex;flex-wrap:wrap;gap:6px}.quick-symptom-chip{padding:6px 12px;border-radius:999px;border:1px solid #CFE3F2;background:#fff;color:#1F6FAE;font-size:12px;font-weight:700;cursor:pointer}.quick-symptom-chip:hover{background:#EAF5FC}.quick-symptom-chip:active{background:#D9EDFA}.symptom-bodymap-inline{width:100%;margin-top:14px}.step-focus-card .smart-body-card{margin-top:0}.smart-body-card{margin-top:12px;border:1px solid #D7E8F2;border-radius:18px;background:linear-gradient(180deg,#FBFEFF,#F4FAFE);padding:14px;box-shadow:0 8px 24px rgba(21,93,139,.06)}@keyframes smartBodyFlash{0%{box-shadow:0 0 0 0 rgba(40,127,193,.16)}100%{box-shadow:0 0 0 18px rgba(40,127,193,0)}}@keyframes smartBodyPulse{0%{box-shadow:0 4px 10px rgba(21,93,139,.05)}50%{box-shadow:0 0 0 7px rgba(40,127,193,.14),0 10px 22px rgba(40,127,193,.16);filter:saturate(1.18)}100%{box-shadow:0 4px 10px rgba(21,93,139,.05);filter:none}}@keyframes smartBodySlide{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}.smart-body-copy b{display:block;color:#123B70;font-size:14px}.smart-body-copy p{margin:5px 0 0}.smart-body-shell{display:grid;grid-template-columns:minmax(240px,320px) minmax(0,1fr);gap:12px;margin-top:12px;align-items:start}.smart-body-stage{position:relative;border:1px solid #DCE8F0;border-radius:18px;background:#fff;padding:12px;min-height:390px;overflow:hidden}.smart-body-stage.flash{animation:smartBodyFlash .45s ease}.smart-body-stage:before{content:'';position:absolute;inset:auto -30% -35% -30%;height:180px;background:radial-gradient(circle at center,rgba(64,168,255,.12),transparent 65%)}.smart-body-toolbar{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;margin-bottom:12px;position:relative;z-index:1}.smart-body-hint{font-size:11px;color:#566a7d;font-weight:800}.smart-body-toggle{display:inline-flex;gap:5px;background:#F3F9FD;border:1px solid #DDEBF3;border-radius:999px;padding:4px}.smart-toggle-btn{border:0;background:transparent;color:#566a7d;border-radius:999px;padding:6px 10px;font-size:11px;font-weight:800;cursor:pointer}.smart-toggle-btn.on{background:#1f6fae;color:#fff}.smart-body-figure-wrap{position:relative;height:315px}.smart-body-figure{position:absolute;left:50%;top:20px;transform:translateX(-50%);width:110px;height:255px}.smart-body-figure .body-head{position:absolute;left:50%;top:0;transform:translateX(-50%);width:46px;height:46px;border-radius:50%;background:linear-gradient(180deg,#D8EEFA,#A9D5F0);border:1px solid #B9D8EA}.smart-body-figure .body-torso{position:absolute;left:50%;top:48px;transform:translateX(-50%);width:70px;height:98px;border-radius:22px;background:linear-gradient(180deg,#E8F5FD,#C6E2F3);border:1px solid #C6DFEE}.smart-body-figure .body-arm{position:absolute;top:58px;width:20px;height:112px;border-radius:18px;background:linear-gradient(180deg,#E6F4FC,#C4E0F1);border:1px solid #C6DFEE}.smart-body-figure .body-arm.left{left:8px;transform:rotate(9deg)}.smart-body-figure .body-arm.right{right:8px;transform:rotate(-9deg)}.smart-body-figure .body-leg{position:absolute;top:146px;width:24px;height:120px;border-radius:18px;background:linear-gradient(180deg,#E6F4FC,#C4E0F1);border:1px solid #C6DFEE}.smart-body-figure .body-leg.left{left:29px}.smart-body-figure .body-leg.right{right:29px}.smart-body-stage[data-view='back'] .smart-body-figure{filter:saturate(.88)}.smart-body-part{position:absolute;border:1px solid #BFD9EA;background:#fff;color:#1F6FAE;border-radius:999px;padding:7px 11px;min-height:34px;font-size:11px;font-weight:800;cursor:pointer;box-shadow:0 4px 10px rgba(21,93,139,.05);transition:transform .18s ease,background .18s ease,border-color .18s ease,box-shadow .18s ease}.smart-body-part.on,.smart-body-part:hover{background:#EAF5FC;border-color:#82BEE3;box-shadow:0 8px 18px rgba(40,127,193,.12)}.smart-body-part.pulse{animation:smartBodyPulse .42s ease}.smart-body-part.head{left:50%;top:34px;transform:translateX(-50%)}.smart-body-part.throat{left:50%;top:92px;transform:translateX(-50%)}.smart-body-part.chest{left:50%;top:137px;transform:translateX(-50%)}.smart-body-part.abdomen{left:50%;top:190px;transform:translateX(-50%)}.smart-body-part.arms{left:18px;top:148px}.smart-body-part.legs{left:50%;bottom:18px;transform:translateX(-50%)}.smart-body-part.skin{right:16px;top:94px}.smart-body-part.back{right:16px;bottom:92px}.smart-body-results{border:1px solid #DCE8F0;border-radius:18px;background:#fff;min-height:390px;padding:14px;display:flex;align-items:flex-start}.smart-body-empty{color:#566a7d;font-size:12px;line-height:1.8}.smart-body-region-card{width:100%;animation:smartBodySlide .28s ease}.smart-body-region-head{display:flex;align-items:flex-start;justify-content:space-between;gap:10px;flex-wrap:wrap;margin-bottom:10px}.smart-body-region-head b{font-size:14px;color:#123B70}.smart-body-region-head small,.smart-body-region-head span{display:block;color:#566a7d;font-size:11px;line-height:1.6}.smart-body-symptom-chips{display:flex;flex-wrap:wrap;gap:8px}.smart-body-symptom{border:1px solid #CFE3F2;background:#F8FCFF;color:#1F6FAE;border-radius:999px;padding:8px 12px;font-size:12px;font-weight:800;cursor:pointer}.smart-body-symptom.on{background:#EAF5FC;border-color:#82BEE3;color:#0E5B8E}.dq-meta{display:flex;gap:10px;flex-wrap:wrap;margin-top:10px;font-size:11px;color:var(--v2-muted)}@media(max-width:860px){.smart-body-shell{grid-template-columns:1fr}.smart-body-results{min-height:0}.smart-body-stage{min-height:350px}}@media(max-width:540px){.symptom-bodymap-inline{margin-top:12px}.step-focus-card .smart-body-card{padding:12px}.smart-body-stage{padding:10px;min-height:315px}.smart-body-figure-wrap{height:270px}.smart-body-part{font-size:10.5px;padding:6px 9px}.smart-body-part.arms{left:10px}.smart-body-part.skin,.smart-body-part.back{right:10px}}@media(prefers-reduced-motion:reduce){.smart-body-stage.flash,.smart-body-part.pulse,.smart-body-region-card{animation:none!important}.smart-body-part{transition:none!important}}.dq-safe-note{margin-top:8px;padding:8px 10px;border-radius:11px;background:#F0F9F0;color:#2E6B3E;font-size:11px;font-weight:700}.xai-card{margin:13px 0;border:1px solid #D4E6F1;border-radius:17px;background:#fff;overflow:hidden}.xai-card summary{cursor:pointer;list-style:none;padding:15px 16px;font-weight:900;color:#123B70;background:#F7FBFE;display:flex;align-items:center;justify-content:space-between;gap:10px}.xai-card summary::-webkit-details-marker{display:none}.xai-body{padding:15px}.xai-basis{display:inline-flex;padding:5px 9px;border-radius:999px;background:#EAF5FC;color:#1F6FAE;font-size:11px;font-weight:800;margin-bottom:10px}.xai-factor{padding:11px 0;border-bottom:1px solid #EDF2F6}.xai-factor:last-child{border-bottom:0}.xai-factor-head{display:flex;justify-content:space-between;gap:10px;align-items:center}.xai-influence{font-size:10px;font-weight:900;border-radius:999px;padding:4px 8px;background:#F1F5F9;color:#475569}.xai-influence.high{background:#EAF5FC;color:#1F6FAE}.xai-influence.medium{background:#FFF7E6;color:#8A5A00}.xai-influence.low{background:#F1F5F9;color:#526477}.xai-detail{font-size:12px;color:var(--v2-muted);line-height:1.7;margin-top:5px}.xai-meter{display:inline-flex;gap:3px;align-items:center;margin-inline-start:7px}.xai-meter i{display:block;width:18px;height:5px;border-radius:999px;background:#DFE7ED}.xai-meter i.on{background:#6EAED3}.xai-note{margin-top:10px;padding:10px 11px;background:#F8FAFC;border-radius:11px;color:#526477;font-size:11px;line-height:1.7}@media(max-width:600px){.dq-grid{grid-template-columns:1fr}.dq-head{grid-template-columns:minmax(0,1fr) 82px;align-items:start}.dq-score{font-size:22px}.dq-level{font-size:10px;padding:5px 6px}.xai-factor-head{align-items:flex-start;flex-direction:column}}.v2-emergency-card{background:var(--v2-red-bg);border:1px solid #F2CACA;border-inline-start:4px solid var(--v2-red);border-radius:16px;padding:16px;margin:12px 0;color:#713434}.v2-emergency-card h3{color:var(--v2-red);font-size:17px;margin-bottom:7px}.v2-emergency-card strong{display:block;color:#713434;margin-top:10px}.v2-emergency-card p{margin:4px 0;line-height:1.75}
.v2-condition-card{border-inline-start:3px solid var(--v2-blue)!important}.v2-match-badge{margin-inline-start:auto;background:var(--v2-sky);color:var(--v2-blue-dark);padding:4px 10px;border-radius:999px;font-size:11px;font-weight:800}.v2-match-list{display:grid;gap:5px;margin-top:8px}.v2-match-item{color:var(--v2-text);font-size:13px}
.v2-redflag-card{background:var(--v2-red-bg)!important;border-color:#F2CACA!important;border-inline-start:3px solid var(--v2-red)!important}.v2-redflag-card .rec-head b{color:var(--v2-red)!important}.v2-safe-note{background:var(--v2-green-bg);border:1px solid #CDE7D8;border-radius:14px;padding:13px 15px;color:var(--v2-green);font-weight:700;margin:8px 0 14px}.v2-disclaimer{background:var(--v2-bg);border:1px solid var(--v2-line);border-radius:14px;padding:13px 15px;color:var(--v2-muted);font-size:12px;line-height:1.75;margin-top:16px;text-align:center}
.v2-result-section-title{font-size:15px!important;color:var(--v2-blue-dark)!important;margin-top:18px!important;margin-bottom:8px!important}.v2-source-link{display:inline-flex;align-items:center;min-height:38px;margin-top:7px}
@keyframes v2FadeUp{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}.res-card,.v2-info-page>section,.card{animation:v2FadeUp .28s ease both}
@media(max-width:600px){.res-card{padding:14px!important}.res-assess-row{align-items:flex-start!important;gap:7px!important;flex-direction:column!important}.rec-head{align-items:flex-start!important;flex-wrap:wrap!important}.v2-match-badge{margin-inline-start:0}.v2-emergency-card{padding:14px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{scroll-behavior:auto!important;animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}}

/* Premium product polish: final, non-functional presentation layer. */
:root{
  --ss-space-1:4px;--ss-space-2:8px;--ss-space-3:12px;--ss-space-4:16px;
  --ss-space-5:24px;--ss-space-6:32px;--ss-space-7:48px;--ss-space-8:64px;
  --ss-radius-sm:10px;--ss-radius-md:14px;--ss-radius-lg:20px;--ss-radius-xl:28px;
  --ss-shadow-sm:0 2px 10px rgba(22,59,92,.045);
  --ss-shadow-md:0 10px 30px rgba(22,59,92,.075);
  --ss-focus:0 0 0 4px rgba(40,127,193,.16);
}
body{background:#F7FAFC!important;color:#23384A!important;font-size:15px;line-height:1.75}
.container{width:min(100%,1180px);padding:clamp(20px,3vw,32px) clamp(14px,3vw,28px) clamp(42px,6vw,72px)}
h1,h2,h3,h4{letter-spacing:-.018em}h1{font-size:clamp(30px,4.6vw,48px);line-height:1.22}h2{font-size:clamp(22px,3vw,31px);line-height:1.3}h3{font-size:clamp(16px,2vw,19px);line-height:1.4}
p{max-width:72ch}.muted{color:#566a7d!important}
.nav{min-height:68px;padding-block:10px!important}.nav .links a{border-radius:10px!important;transition:background-color .2s ease,color .2s ease}.nav .links a:hover{background:#EAF5FC!important;color:#1f6fae!important}
.card,.svc-card,.quick-card,.med-card,.hist-card,.history-card,.detail-card,.hp-panel,.hp-stat,.hp-quick-link,.auth-card{border-color:#DCE8F0!important;box-shadow:var(--ss-shadow-sm)!important}
.card,.svc-card,.med-card,.history-card,.detail-card,.auth-card{border-radius:var(--ss-radius-lg)!important}
.svc-card,.quick-card,.hp-quick-link{transition:transform .2s ease,border-color .2s ease,box-shadow .2s ease!important}
.svc-card:hover,.quick-card:hover,.hp-quick-link:hover{transform:translateY(-2px)!important;border-color:#BFD9EA!important;box-shadow:var(--ss-shadow-md)!important}
.btn,.ss-btn-primary,.ss-btn-danger,.auth-btn,.svc-btn,.mini-action,.med-retry{min-height:46px;border-radius:12px!important;padding:11px 19px;font-size:14px;font-weight:800!important;display:inline-flex;align-items:center;justify-content:center;gap:7px;transition:background-color .2s ease,border-color .2s ease,color .2s ease,transform .16s ease!important}
.btn:active,.ss-btn-primary:active,.auth-btn:active{transform:translateY(1px)!important}.btn[disabled],button[disabled]{cursor:not-allowed!important;opacity:.58!important;transform:none!important}
.btn:focus-visible,.auth-btn:focus-visible,.ss-btn-primary:focus-visible,.mini-action:focus-visible{outline:2px solid #1f6fae!important;outline-offset:3px!important}
input,select,textarea,input.inp,select.inp,textarea.inp{min-height:48px;padding:11px 13px!important;border:1px solid #CADCE8!important;border-radius:12px!important;transition:border-color .18s ease,box-shadow .18s ease!important}
textarea,textarea.inp{min-height:112px;resize:vertical}input:focus,select:focus,textarea:focus{outline:none!important;border-color:#1f6fae!important;box-shadow:var(--ss-focus)!important}
label,.lbl,.auth-field label{color:#29485F!important;font-weight:700!important;margin-bottom:6px!important}
.warn,.warn2,.v2-disclaimer,.privacy-note{border-radius:14px!important;box-shadow:none!important}
.footer{margin-top:clamp(36px,6vw,70px)!important;border-radius:0!important;padding-top:38px!important}
.asst-fab{animation:none!important;background:#1f6fae!important;border:0!important;box-shadow:0 10px 26px rgba(40,127,193,.24)!important}.asst-panel{box-shadow:0 24px 70px rgba(22,59,92,.18)!important}.asst-msg{max-width:min(88%,620px);line-height:1.72}.asst-user{background:#1f6fae!important}.asst-bot{box-shadow:var(--ss-shadow-sm)}
/* The symptom-analysis page already contains its own guided assistant.
   Hide the global floating assistant on every viewport to avoid duplicate-assistant UX. */
body.ss-chat-page .asst-fab,body.ss-chat-page .asst-panel{display:none!important}
.chat-wrap{border-radius:22px!important;box-shadow:var(--ss-shadow-md)!important}.bubble{line-height:1.75}.bubble.bot{box-shadow:var(--ss-shadow-sm)}
.med-hero{background:#F8FCFF!important;border-radius:24px!important;box-shadow:none!important}.drug-card{border-radius:18px!important;box-shadow:var(--ss-shadow-sm)}.drug-name{font-size:20px!important}.drug-sec+ .drug-sec{padding-top:12px;border-top:1px solid #E7EFF4}
table th{color:#123B70;background:#F4F9FC;font-weight:800}table td,table th{padding:12px 14px!important}
.auth-wrap{min-height:min(82vh,760px)}.auth-card{max-width:470px!important;padding:clamp(26px,4vw,38px)!important}.auth-card .auth-icon{font-size:38px!important}.auth-card .auth-sub{line-height:1.75}
.history-card h3{font-weight:800}.risk-pill{border:1px solid currentColor}
.hh{min-height:520px;padding:clamp(34px,5vw,58px)!important;gap:clamp(28px,5vw,62px)!important;background:#FFFFFF!important;border-radius:var(--ss-radius-xl)!important;box-shadow:var(--ss-shadow-md)!important}
.hh-l{flex:1.08}.hh-l h1{max-width:13ch;font-size:clamp(36px,5.2vw,58px)!important;line-height:1.24!important;margin-bottom:14px!important}.hh-sub{font-size:clamp(16px,2vw,20px)!important;margin-bottom:10px!important}.hh-desc{font-size:15px!important;line-height:1.9!important;margin-bottom:26px!important}.hh-badge{padding:0!important;background:transparent!important;border-radius:0!important;color:#1f6fae!important;font-size:13px!important;letter-spacing:.03em;margin-bottom:14px!important}.hh-btns{gap:10px!important}.hh-btns .btn{margin:0!important}
.hh-r{min-height:340px!important}.hh-product-art{display:block;width:min(440px,100%);height:auto;object-fit:contain;filter:saturate(.88)}
.hh-product-visual{position:relative;width:min(440px,100%);aspect-ratio:1;border-radius:32px;border:1px solid #cfe3ef;background:#f4fafe;display:grid;place-items:center;overflow:hidden;box-shadow:0 16px 36px rgba(31,86,127,.10)}.hh-product-visual:before,.hh-product-visual:after{content:'';position:absolute;border:1px solid #c7e0ed;border-radius:50%}.hh-product-visual:before{width:76%;height:76%}.hh-product-visual:after{width:49%;height:49%;background:#fff;box-shadow:0 12px 30px rgba(31,86,127,.08)}.hh-product-core{position:relative;z-index:2;width:96px;height:96px;border-radius:28px;background:#1f6fae;color:#fff;display:grid;place-items:center;font-size:42px;font-weight:900;box-shadow:0 13px 28px rgba(40,127,193,.22)}.hh-product-node{position:absolute;z-index:3;width:66px;height:66px;border-radius:20px;background:#fff;border:1px solid #d6e7f0;display:grid;place-items:center;font-size:28px;box-shadow:0 8px 20px rgba(31,86,127,.08)}.hh-p1{top:10%;left:11%}.hh-p2{top:11%;right:10%}.hh-p3{bottom:10%;left:12%}.hh-p4{bottom:10%;right:11%}
.home-trust{display:grid;justify-items:center;gap:4px;margin:-10px auto 36px;color:#566a7d;font-size:13px;text-align:center}.home-trust a{color:#1f6fae;font-weight:800;text-decoration:none}.home-trust a:hover{text-decoration:underline}
.v2-section-head{margin-top:42px!important}.svc-grid{gap:14px!important}.svc-card{padding:22px!important}.svc-ic{width:48px!important;height:48px!important;border-radius:14px!important;font-size:24px!important}.svc-btn{background:transparent!important;color:#1f6fae!important;padding:5px 0!important;min-height:auto!important}.svc-card:hover .svc-btn{background:transparent!important;color:#123B70!important}
@media(max-width:1180px){.nav{display:none}.ss-mobile-head{display:flex}.ss-bnav{display:flex;justify-content:space-evenly;align-items:center}.ss-bnav a{flex:0 1 170px}.container{padding-bottom:calc(var(--bnav-h) + var(--safe-bottom) + 80px)}.asst-fab{bottom:calc(var(--bnav-h) + var(--safe-bottom) + 12px);left:12px;width:54px;height:54px;padding:0;justify-content:center}.asst-fab .asst-fab-lb{display:none}.asst-panel{left:12px;right:12px;bottom:calc(var(--bnav-h) + var(--safe-bottom) + 76px);width:auto;height:min(72dvh,600px)}[dir="rtl"] .asst-panel{left:12px;right:12px}}
@media(min-width:1181px){.nav{display:flex!important}.ss-mobile-head,.ss-bnav{display:none!important}.container{padding-bottom:clamp(42px,6vw,72px)!important}.asst-fab{bottom:22px!important}}
@media(max-width:900px){.hh{min-height:0;flex-direction:column;padding:30px 24px!important}.hh-l{width:100%}.hh-l h1{max-width:16ch}.hh-r{min-height:230px!important;width:100%}.hh-product-art{width:min(360px,88%)}.home-trust{margin-top:-12px}.svc-grid[style]{grid-template-columns:1fr!important}}
@media(max-width:600px){body{font-size:14px}.container{padding-inline:12px!important}.hh{padding:23px 18px!important;border-radius:22px!important;gap:12px!important}.hh-l h1{font-size:clamp(30px,9.2vw,40px)!important}.hh-r{min-height:170px!important}.hh-btns{display:grid!important;grid-template-columns:1fr}.hh-btns .btn{width:100%}.home-trust{text-align:center;margin-bottom:22px}.v2-section-head{margin-top:26px!important}.svc-card{padding:19px!important}.auth-card{padding:26px 18px!important}.footer{padding-inline:16px!important}.asst-msg{max-width:94%}}
@media(max-width:480px){.hh{padding:20px 16px!important}.hh-r{display:none!important}.hh-desc{margin-bottom:18px!important}.home-trust{margin-top:-4px!important}}
@media(max-width:360px){.container{padding-inline:10px!important}.hh{padding:19px 14px!important}.hh-l h1{font-size:29px!important}.btn,.ss-btn-primary,.auth-btn{width:100%}}

/* Symptom result report — UI/UX only. The API response remains the medical source of truth. */
body.ss-chat-page .chat-body.result-mode{padding:14px!important;background:#F7FAFC!important;overflow-y:auto!important;scroll-behavior:auto!important}
body.ss-chat-page .chat-wrap.report-mode .chat-options{display:none!important}
.ss-report{width:min(960px,100%);margin:0 auto;padding:0 0 8px;animation:none!important;color:var(--v2-text)}
.ss-report *{animation:none!important;min-width:0}
.ss-report-card,.ss-report-details{background:#fff;border:1px solid #DCE8F0;border-radius:17px;padding:17px;margin:0 0 12px;box-shadow:0 4px 14px rgba(31,86,127,.045)}
.ss-report-summary{border-top:4px solid #1f6fae;padding-top:15px}
.ss-report-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;margin-bottom:13px}
.ss-report-heading h2,.ss-report-heading h3{font-size:17px;line-height:1.45;margin:0;color:#123B70}
.ss-report-heading .ss-count{font-size:11px;font-weight:800;color:#526B7E;background:#F1F7FA;border:1px solid #DCE8F0;padding:5px 9px;border-radius:999px}
.ss-risk-row{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;padding:13px 14px;border-radius:14px;margin-bottom:11px}
.ss-risk-row.low{background:#EDF8F2;border:1px solid #CFE9DA;color:#1E6846}.ss-risk-row.med{background:#FFF8E7;border:1px solid #F0DEAF;color:#7B5A18}.ss-risk-row.hi{background:#FFF1F1;border:1px solid #F1CCCC;color:#8E3333}
.ss-risk-label{font-size:12px;font-weight:800;opacity:.86}.ss-risk-value{font-size:20px;font-weight:900;line-height:1.35}
.ss-quality{padding:12px 14px;border-radius:14px;background:#F8FCFF;border:1px solid #D7E8F2;margin-bottom:11px}
.ss-quality-top{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px 10px;font-size:13px}.ss-quality-top strong{color:#123B70}.ss-quality-score{font-weight:900;color:#1f6fae;white-space:normal;max-width:100%;overflow-wrap:anywhere}
.ss-quality-track{height:7px;background:#E4EEF4;border-radius:999px;overflow:hidden;margin-top:8px}.ss-quality-fill{height:100%;background:#1f6fae;border-radius:inherit}
.ss-summary-recommendation{padding:12px 14px;border-radius:14px;background:#F7FAFC;border:1px solid #E1EBF1;font-size:13px;line-height:1.75}.ss-summary-recommendation b{display:block;color:#123B70;margin-bottom:3px}
.ss-input-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.ss-input-item{padding:11px 12px;border:1px solid #E1EBF1;border-radius:13px;background:#FBFDFE}.ss-input-label{display:block;color:#566a7d;font-size:11px;font-weight:800;margin-bottom:3px}.ss-input-value{display:block;color:#23384A;font-size:13px;font-weight:700;line-height:1.65;overflow-wrap:anywhere}
.ss-condition-list{display:grid;grid-template-columns:1fr;gap:9px}.ss-condition{padding:14px;border:1px solid #DDE9F0;border-radius:14px;background:#FBFDFE}.ss-condition-head{display:flex;align-items:flex-start;justify-content:space-between;gap:10px}.ss-condition-name{font-size:15px;font-weight:900;color:#123B70}.ss-match{display:inline-flex;align-items:center;justify-content:center;font-size:10.5px;font-weight:900;padding:5px 8px;border-radius:999px;background:#EAF5FC;color:#1F6FAE;white-space:nowrap}.ss-condition-why{margin-top:8px;font-size:12px;line-height:1.75;color:#526B7E}.ss-condition-source{margin-top:8px;font-size:11.5px;color:#566A7D}.ss-condition-source a{color:#1F6FAE;font-weight:700;text-decoration:none}.ss-condition-source a:hover{text-decoration:underline}.ss-condition-why b{color:#29485F}
.ss-step-list{display:grid;gap:9px}.ss-step{display:grid;grid-template-columns:34px minmax(0,1fr);gap:10px;padding:12px;border:1px solid #E1EBF1;border-radius:14px;background:#FBFDFE}.ss-step-no{width:32px;height:32px;border-radius:10px;display:grid;place-items:center;background:#EAF5FC;color:#1D6D9F;font-weight:900;font-size:12px}.ss-step-body b{display:block;color:#123B70;font-size:13px;margin-bottom:4px}.ss-step-body p{margin:0;color:#40566F;font-size:12.5px;line-height:1.75}.ss-step-source{display:inline-flex;margin-top:7px;color:#1f6fae;font-size:11.5px;font-weight:800}
.ss-flag-list,.ss-care-list{display:grid;gap:7px}.ss-flag,.ss-care{display:flex;align-items:flex-start;gap:8px;padding:10px 11px;border-radius:12px;line-height:1.7;font-size:12.5px}.ss-flag{background:#FFF7F7;border:1px solid #F2DADA;color:#713E3E}.ss-care{background:#F7FBF9;border:1px solid #D8E9DF;color:#315C48}.ss-empty-note{padding:11px 12px;border-radius:12px;background:#F7FAFC;border:1px solid #E1EBF1;color:#566a7d;font-size:12.5px}
.ss-question-chips{display:flex;flex-wrap:wrap;gap:7px}.ss-question-chip{border:1px solid #CFE1EC;background:#F8FCFF;color:#1F6FAE;border-radius:999px;padding:8px 12px;min-height:40px;font-family:inherit;font-size:12px;font-weight:800;cursor:pointer}.ss-question-chip:hover{background:#EAF5FC}.ss-question-answer{margin-top:10px;padding:12px;border:1px solid #DCE8F0;border-radius:13px;background:#F7FAFC;font-size:12.5px;line-height:1.8;white-space:pre-wrap}.ss-question-answer[hidden]{display:none}
.ss-report-details{padding:0;overflow:hidden}.ss-report-details summary{cursor:pointer;list-style:none;padding:15px 17px;display:flex;align-items:center;justify-content:space-between;gap:10px;color:#123B70;font-weight:900;font-size:14px;background:#fff}.ss-report-details summary::-webkit-details-marker{display:none}.ss-report-details summary::after{content:'＋';color:#1f6fae;font-size:18px;line-height:1}.ss-report-details[open] summary::after{content:'−'}.ss-details-body{padding:0 17px 16px;border-top:1px solid #EDF2F5}.ss-details-block{padding-top:12px;font-size:12.5px;line-height:1.8;color:#526B7E}.ss-details-block b{color:#29485F}.ss-factor{padding:9px 0;border-bottom:1px solid #EDF2F5}.ss-factor:last-child{border-bottom:0}.ss-factor strong{color:#29485F}.ss-factor small{display:block;color:#566a7d;line-height:1.7;margin-top:3px}
.ss-source-list{display:grid;gap:10px;padding-top:12px}.ss-source-card{padding:14px;border:1px solid #E1EBF1;border-radius:16px;background:linear-gradient(180deg,#FFFFFF,#F9FCFE);box-shadow:0 6px 18px rgba(22,59,92,.04)}.ss-source-top{display:flex;align-items:flex-start;justify-content:space-between;gap:10px;flex-wrap:wrap}.ss-source-brand{display:flex;align-items:flex-start;gap:10px;min-width:0}.ss-source-mark{width:42px;height:42px;border-radius:14px;display:grid;place-items:center;background:linear-gradient(180deg,#EAF5FC,#D8EEF9);color:#1F6FAE;font-weight:900;font-size:13px;flex:none;border:1px solid #CFE1EC}.ss-source-name{font-weight:900;color:#123B70;font-size:13px}.ss-source-org{margin-top:2px;color:#566a7d;font-size:11px}.ss-source-badges{display:flex;flex-wrap:wrap;gap:6px;justify-content:flex-end}.ss-source-badge{display:inline-flex;align-items:center;min-height:25px;padding:5px 9px;border-radius:999px;font-size:10px;font-weight:900}.ss-source-badge.ss-type{background:#F1F7FA;color:#1F6FAE;border:1px solid #D7E8F2}.ss-source-badge.ss-verified{background:#EDF8F2;color:#1E6846;border:1px solid #CFE9DA}.ss-source-meta{display:flex;gap:6px 10px;flex-wrap:wrap;margin-top:8px;color:#566a7d;font-size:10.5px}.ss-source-title{margin-top:8px;color:#40566F;font-size:12px;line-height:1.7}.ss-source-actions{display:flex;justify-content:flex-start;margin-top:10px}.ss-source-link{display:inline-flex;align-items:center;justify-content:center;min-height:40px;padding:8px 12px;border-radius:12px;background:#EAF5FC;color:#1F6E9F;font-size:11.5px;font-weight:900}
.ss-pattern-card{border-color:#CFE7DC;background:linear-gradient(135deg,#FFFFFF,#F7FCFA)}.ss-pattern-intro{padding:10px 12px;border-radius:12px;background:#F4FBF7;color:#486A5C;font-size:11.5px;line-height:1.7;margin-bottom:9px}.ss-pattern-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.ss-pattern-grid article{display:grid;grid-template-columns:28px minmax(0,1fr);gap:8px;padding:11px;border:1px solid #DBEAE3;border-radius:13px;background:#fff}.ss-pattern-grid article>span{width:27px;height:27px;border-radius:9px;display:grid;place-items:center;background:#EAF7F0;color:#21835D;font-weight:900}.ss-pattern-grid b{display:block;color:#123B70;font-size:12px}.ss-pattern-grid small{display:block;color:#566a7d;font-size:10.5px;line-height:1.6;margin-top:3px}.ss-pattern-foot{margin-top:9px;color:#566a7d;font-size:10.5px;font-weight:700}@media(max-width:640px){.ss-pattern-grid{grid-template-columns:1fr}}
.ss-report-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.ss-report-action{min-height:46px;border-radius:12px;border:1px solid #CFE1EC;background:#fff;color:#1F6FAE;font-family:inherit;font-weight:850;font-size:12.5px;display:flex;align-items:center;justify-content:center;gap:6px;padding:9px 11px;cursor:pointer;text-decoration:none;min-width:0}.ss-user-actions .ss-action-icon{flex:0 0 auto;display:inline-flex;align-items:center;justify-content:center;line-height:1}.ss-user-actions .ss-action-label{min-width:0;line-height:1.35;word-break:normal;overflow-wrap:normal}.ss-report-action.primary{background:#1f6fae;color:#fff;border-color:#1f6fae}.ss-report-action:hover{filter:brightness(.98)}
.ss-feedback{text-align:center}.ss-feedback p{margin:0 0 10px;font-weight:800;color:#29485F}.ss-feedback-btns{display:flex;justify-content:center;gap:8px}.ss-feedback-btn{min-width:96px;min-height:42px;border-radius:12px;border:1px solid #D5E4ED;background:#fff;color:#29485F;font-family:inherit;font-weight:800;cursor:pointer}.ss-feedback-msg{margin-top:8px;color:#1f6fae;font-size:12px;font-weight:800}.ss-star-rating{display:flex;justify-content:center;gap:5px;margin:4px 0 12px;direction:ltr}.ss-star-btn{border:0;background:transparent;color:#D2A037;font-size:30px;cursor:pointer;padding:2px}.ss-star-btn.on{color:#E4A629}.ss-feedback-comment{width:100%;min-height:88px;resize:vertical;border:1px solid #D5E4ED;border-radius:12px;padding:11px 12px;font-family:inherit;line-height:1.6;margin:0 0 9px;background:#fff}.ss-feedback-public{display:flex;align-items:flex-start;gap:8px;text-align:start;font-size:12px;color:#60788B;line-height:1.6;margin:0 0 11px}.ss-feedback-public input{margin-top:3px}.ss-feedback-submit{min-height:42px;border:0;border-radius:12px;background:#1f6fae;color:#fff;padding:9px 20px;font-family:inherit;font-weight:800;cursor:pointer}.ss-feedback-submit:disabled{opacity:.5;cursor:not-allowed}.ss-feedback-reasons{display:flex;flex-wrap:wrap;justify-content:center;gap:7px;margin:2px 0 12px}.ss-feedback-reason{border:1px solid #D5E4ED;background:#fff;color:#49667B;border-radius:999px;padding:7px 11px;font-family:inherit;font-size:12px;font-weight:700;cursor:pointer}.ss-feedback-reason.on{background:#EAF4FF;border-color:#1f6fae;color:#1768A8}.ss-feedback-reason:focus-visible{outline:3px solid rgba(40,127,193,.25);outline-offset:2px}
.ss-report-disclaimer{padding:12px 14px;border-radius:14px;background:#F7FAFC;border:1px solid #DCE8F0;color:#566a7d;font-size:11.5px;line-height:1.75;text-align:center}
@media(min-width:760px){.ss-condition-list{grid-template-columns:repeat(2,minmax(0,1fr))}.ss-condition-list .ss-condition:only-child{grid-column:1/-1}}
@media(max-width:640px){body.ss-chat-page .chat-body.result-mode{padding:9px!important}.ss-report-card{padding:14px;border-radius:15px;margin-bottom:9px}.ss-report-heading{margin-bottom:10px}.ss-report-heading h2,.ss-report-heading h3{font-size:15px}.ss-risk-row{padding:11px 12px}.ss-risk-value{font-size:18px}.ss-input-grid{grid-template-columns:1fr}.ss-condition-head{flex-direction:column;gap:7px}.ss-match{align-self:flex-start}.ss-step{grid-template-columns:30px minmax(0,1fr);padding:10px}.ss-step-no{width:29px;height:29px}.ss-question-chips{display:grid;grid-template-columns:1fr}.ss-question-chip{width:100%;border-radius:12px;text-align:start}.ss-user-actions .ss-report-actions{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px}.ss-user-actions .ss-report-action{width:100%;min-height:52px;padding:8px 7px;font-size:11.5px;display:flex;flex-direction:row;align-items:center;justify-content:center;gap:5px}.ss-user-actions .ss-action-icon{font-size:14px}.ss-user-actions .ss-action-label{display:block;text-align:center}.ss-report-details summary{padding:13px 14px}.ss-details-body{padding:0 14px 14px}.ss-feedback-btn{flex:1;max-width:150px}.ss-report-disclaimer{font-size:11px}}

/* Symptom analysis — mobile-first layout refinement. */
.adaptive-step{display:inline-flex;align-items:center;max-width:100%;padding:4px 9px;border-radius:999px;background:#EAF5FC;color:#1F6FAE;font-size:11px;font-weight:800;line-height:1.4;white-space:normal}
.followup-impact{max-width:760px;margin:2px 0 8px;padding:9px 11px;border:1px solid #D9E8F1;border-radius:13px;background:#F8FCFF;color:#40566F}.followup-impact-title{font-size:11px;font-weight:900;color:#1F628D}.followup-impact-answer{margin-top:3px;font-size:10.5px;font-weight:800;color:#29485F}.followup-impact-detail{margin-top:4px;font-size:11px;line-height:1.6}.followup-impact-note{margin-top:4px;font-size:9.8px;line-height:1.5;color:#718696}
.symptom-path-live{margin-top:12px;border:1px solid #D8E7F0;border-radius:16px;background:linear-gradient(180deg,#FBFEFF,#F6FBFE);padding:12px}.symptom-path-intro{margin:0 0 10px;color:#566a7d;font-size:11px;line-height:1.65}.symptom-path-rail{display:flex;align-items:stretch;gap:6px;width:100%;overflow-x:auto;padding:2px 0 4px}.symptom-path-node{flex:1 0 120px;display:grid;grid-template-columns:27px minmax(0,1fr);gap:7px;align-items:flex-start;padding:9px;border:1px solid #E0EAF0;border-radius:12px;background:#fff}.symptom-path-node.done{border-color:#C9E3EF;background:#F8FCFF}.symptom-path-dot{width:27px;height:27px;display:grid;place-items:center;border-radius:9px;background:#EEF5F9;font-size:12px}.symptom-path-node.done .symptom-path-dot{background:#E4F4FB;color:#156A98}.symptom-path-node b{display:block;color:#29485F;font-size:10.5px;line-height:1.35}.symptom-path-node small{display:block;margin-top:3px;color:#566a7d;font-size:10px;line-height:1.45}.symptom-path-line{width:13px;flex:0 0 13px;align-self:center;height:2px;background:#D5E5EE;border-radius:999px}.symptom-path-picker{margin-top:10px}.symptom-path-picker>b{display:block;margin-bottom:6px;color:#29485F;font-size:11px}.symptom-path-chips{display:flex;flex-wrap:wrap;gap:6px}.symptom-path-chips button{border:1px solid #D3E3EC;background:#fff;color:#49667B;border-radius:999px;padding:6px 9px;font-family:inherit;font-size:10.5px;font-weight:750;cursor:pointer}.symptom-path-chips button.on{background:#EAF5FC;border-color:#79B8DD;color:#1F6FAE}.symptom-path-actions{display:flex;justify-content:flex-end;gap:7px;margin-top:12px}.symptom-path-next,.symptom-path-skip{min-height:38px;padding:7px 13px;border-radius:11px;font-family:inherit;font-size:11px;font-weight:850}.symptom-path-skip{border:1px solid #D5E4ED;background:#fff;color:#566a7d}.symptom-path-next:disabled{opacity:.45;cursor:not-allowed}.symptom-path-rail.compact{overflow:visible}.symptom-path-rail.compact .symptom-path-node{min-width:0;flex:1 1 0}.ss-result-path{overflow:hidden}.ss-next24{border-color:#D5E7DF;background:linear-gradient(180deg,#FFFFFF,#FAFDFC)}.ss-next24-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.ss-next24-grid article{display:grid;grid-template-columns:28px minmax(0,1fr);gap:8px;padding:10px;border:1px solid #DFEAE5;border-radius:13px;background:#fff}.ss-next24-grid article>span{width:27px;height:27px;display:grid;place-items:center;border-radius:9px;background:#EDF8F2;color:#267451;font-size:11px;font-weight:900}.ss-next24-grid article.watch{border-color:#F0DEAF;background:#FFFDF8}.ss-next24-grid article.watch>span{background:#FFF4D8;color:#8A6418}.ss-next24-grid b{display:block;color:#29485F;font-size:11.5px}.ss-next24-grid p{margin:3px 0 0;color:#566a7d;font-size:10.8px;line-height:1.6}.ss-next24.urgent{border-color:#F0CACA;background:#FFF9F9}.ss-next24-alert{padding:11px 12px;border-radius:12px;background:#FFF1F1;border:1px solid #F1CCCC;color:#7B3434;font-size:12px;line-height:1.7;font-weight:750}.doctor-card-overlay{position:fixed;inset:0;z-index:1200;display:flex;align-items:center;justify-content:center;padding:14px;background:rgba(15,35,55,.48);overflow:auto}.doctor-card{width:min(680px,100%);background:#fff;border:1px solid #D8E5ED;border-radius:20px;padding:18px;box-shadow:0 26px 76px rgba(20,50,80,.24)}.doctor-card-head{display:flex;align-items:flex-start;justify-content:space-between;gap:10px}.doctor-card-head h2{margin:0;color:#123B70;font-size:17px}.doctor-card-head p{margin:4px 0 0;color:#566a7d;font-size:10.8px;line-height:1.6}.doctor-card-close{width:38px;height:38px;border:1px solid #D7E5ED;border-radius:11px;background:#fff;color:#526B7E;font-family:inherit;cursor:pointer}.doctor-card-summary{white-space:pre-wrap;margin:12px 0;padding:13px;border:1px solid #DFE9EF;border-radius:14px;background:#F8FBFD;color:#29485F;font-family:inherit;font-size:11px;line-height:1.72;max-height:52vh;overflow:auto}.doctor-card-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.doctor-card-status{margin-top:7px;color:#1f6fae;font-size:10.5px;font-weight:800}
@media(max-width:640px){.symptom-path-live{padding:10px}.symptom-path-rail{gap:5px}.symptom-path-node{flex-basis:105px;padding:8px;grid-template-columns:24px minmax(0,1fr)}.symptom-path-dot{width:24px;height:24px}.symptom-path-node b{font-size:10px}.symptom-path-node small{font-size:9.6px}.symptom-path-line{display:none}.symptom-path-rail.compact{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}.ss-next24-grid{grid-template-columns:1fr}.doctor-card{padding:15px;border-radius:17px}.doctor-card-actions{grid-template-columns:1fr}.doctor-card-head h2{font-size:15px}.doctor-card-summary{font-size:10.5px}.followup-impact{padding:8px 10px}.followup-impact-title{font-size:10.5px}.followup-impact-detail{font-size:10.5px}}
@media(max-width:360px){.symptom-path-rail.compact{grid-template-columns:1fr}.symptom-path-chips button{font-size:10px;padding:6px 8px}.symptom-path-actions{display:grid;grid-template-columns:1fr}.symptom-path-next,.symptom-path-skip{width:100%}}
/* V69 — contextual Symptom Pattern + site-wide visual consistency */
.ss-context-pattern{display:grid;grid-template-columns:44px minmax(0,1fr);gap:11px;align-items:start;border-color:#CFE2ED!important;background:linear-gradient(135deg,#F8FCFF 0%,#F4FAFD 100%)!important;padding:14px!important}
.ss-context-pattern-icon{width:44px;height:44px;border-radius:13px;display:grid;place-items:center;background:#E5F4FB;color:#176A98;font-size:19px;border:1px solid #D2E8F3}
.ss-context-pattern-copy span{display:block;color:#566a7d;font-size:10.5px;font-weight:800;margin-bottom:2px}.ss-context-pattern-copy h3{margin:0!important;color:#173E5E!important;font-size:14px!important;line-height:1.45!important}.ss-context-pattern-copy p{margin:5px 0 0;color:#405B70;font-size:11px;line-height:1.65}.ss-context-pattern-copy small{display:block;margin-top:5px;color:#718696;font-size:9.8px;line-height:1.55}
/* Typography contract: Arabic uses Tajawal, English uses Poppins; controls always inherit. */
html[dir="rtl"] body,html[lang="ar"] body,body[dir="rtl"]{font-family:'Tajawal','Segoe UI',Tahoma,sans-serif!important}
html[dir="ltr"] body,html[lang="en"] body,body[dir="ltr"]{font-family:'Poppins','Tajawal','Segoe UI',sans-serif!important}
button,input,select,textarea,option,.btn,.opt,.ss-btn,.ss-report-action,.ss-question-chip,.sea-btn,.asst-opt,.asst-chip{font-family:inherit!important}
/* Keep the wordmark Latin and preserve the approved blue→teal identity gradient. */
.ss-brand-gradient,.ss-hero-brand,.first-lang-brand,.nav .logo,.ss-mobile-logo,.footer .f-brand,.w-logo{font-family:'Poppins','Tajawal','Segoe UI',sans-serif!important}
/* One control rhythm: avoid tiny or oversized actions while retaining 44px touch targets. */
button,.btn,.opt,.ss-btn,.ss-btn-primary,.ss-btn-secondary,.ss-report-action,.ss-feedback-submit,.sea-btn,.asst-opt,.asst-chip,.rel-chip{min-height:44px}
.btn,.ss-btn,.ss-report-action,.ss-feedback-submit,.sea-btn{border-radius:12px!important}
.card,.ss-card,.ss-report-card,.sea-result,.sea-topic-card,.calc-card{border-radius:16px!important}
/* Focus treatment is consistent across keyboard-accessible actions. */
a:focus-visible,button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,summary:focus-visible{outline:3px solid rgba(40,127,193,.24)!important;outline-offset:2px!important}
/* Prevent labels and buttons from overflowing on compact screens. */
button,.btn,.opt,.ss-report-action,.ss-question-chip,.sea-btn,.asst-opt,.rel-chip{overflow-wrap:anywhere;word-break:normal}
@media(max-width:430px){.ss-context-pattern{grid-template-columns:38px minmax(0,1fr);padding:12px!important}.ss-context-pattern-icon{width:38px;height:38px;border-radius:11px;font-size:17px}.ss-context-pattern-copy h3{font-size:13px!important}.ss-context-pattern-copy p{font-size:10.7px}.ss-context-pattern-copy small{font-size:9.5px}.ss-report-card{padding:13px!important}.ss-report-heading h2{font-size:16px!important}.ss-report-heading h3{font-size:14px!important}}
@media(max-width:340px){.ss-context-pattern{grid-template-columns:1fr;gap:7px}.ss-context-pattern-icon{width:36px;height:36px}.ss-context-pattern-copy h3{font-size:12.5px!important}}
body.ss-chat-page .chat-wrap{isolation:isolate}
body.ss-chat-page .chat-head{flex:0 0 auto}
body.ss-chat-page .ss-flow{flex:0 0 auto}
body.ss-chat-page .chat-body{min-height:0}
body.ss-chat-page .chat-options{flex:0 0 auto}
body.ss-chat-page .chat-input{flex:0 0 auto}
body.ss-chat-page .likely-condition{border-inline-start:4px solid #1f6fae!important;background:#F8FCFF!important}
body.ss-chat-page .smart-next{background:#FBFDFE!important}

@media(max-width:640px){
  body.ss-chat-page{height:100dvh;overflow:hidden;background:#F7FAFC!important}
  body.ss-chat-page .ss-mobile-head{display:none!important}
  body.ss-chat-page .footer{display:none!important}
  body.ss-chat-page .container{height:calc(100dvh - var(--bnav-h) - var(--safe-bottom));padding:8px 8px 6px!important;overflow:hidden}
  body.ss-chat-page .chat-wrap{height:100%!important;min-height:0!important;max-height:none!important;margin:0!important;border-radius:18px!important;border:1px solid #DCE8F0!important;box-shadow:0 8px 24px rgba(22,59,92,.08)!important}
  body.ss-chat-page .chat-head{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:8px 10px;padding:10px 11px!important;background:#1f6fae!important}
  body.ss-chat-page .chat-head .avatar{grid-column:1;grid-row:1;width:36px;height:36px;font-size:18px}
  body.ss-chat-page .chat-head>div:nth-child(2){grid-column:2;grid-row:1;min-width:0}
  body.ss-chat-page .chat-head h3{font-size:15px!important;line-height:1.25;margin:0}
  body.ss-chat-page .chat-head p{font-size:10.5px!important;line-height:1.35;margin:2px 0 0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  body.ss-chat-page .chat-head-toggles{grid-column:3;grid-row:1;display:flex!important;align-items:center;justify-content:flex-end;gap:6px;margin:0!important;position:relative;z-index:8;visibility:visible!important;opacity:1!important}
  body.ss-chat-page .chat-head .spk-btn{width:44px;height:44px;min-width:44px;padding:0!important;display:grid;place-items:center;border:1px solid rgba(255,255,255,.28)!important;border-radius:11px!important;font-size:19px!important;line-height:1!important;background:rgba(255,255,255,.14)!important}
  body.ss-chat-page .chat-access-menu #voiceModeBtn::before{content:none!important}.chat-access{position:relative}.chat-access summary{list-style:none;cursor:pointer;border:1px solid rgba(255,255,255,.35);background:rgba(255,255,255,.13);color:#fff;border-radius:10px;padding:7px 10px;font-size:12px;font-weight:800}.chat-access summary::-webkit-details-marker{display:none}.chat-access-menu{position:absolute;z-index:30;top:calc(100% + 7px);inset-inline-end:0;width:190px;padding:9px;border-radius:14px;background:#fff;border:1px solid #D5E4ED;box-shadow:0 14px 34px rgba(22,59,92,.18);display:grid;gap:7px}.chat-access-menu .spk-btn{width:100%;color:#29485F!important;background:#F7FBFD!important;border:1px solid #D5E4ED!important;text-align:start!important;font-size:12px!important;display:flex!important;align-items:center!important;justify-content:flex-start!important;gap:7px!important;padding:10px 11px!important;min-height:44px!important;line-height:1.45!important}
  body.ss-chat-page .chat-access-menu #spkBtn::before{content:none!important}
  body.ss-chat-page #profileSwitcher{grid-column:1/-1;grid-row:2;width:100%;margin:0!important;display:block!important}
  body.ss-chat-page #famSelect{width:100%!important;max-width:none!important;min-height:44px!important;height:44px;padding:5px 10px!important;border-radius:10px!important;font-size:12px!important;background:rgba(255,255,255,.14)!important;color:#fff!important;border-color:rgba(255,255,255,.28)!important;box-shadow:none!important}
  body.ss-chat-page #famSelect option{color:#1F3345;background:#fff}
  body.ss-chat-page .ss-flow{padding:8px 11px!important;background:#fff!important}
  body.ss-chat-page .ss-flow-copy{font-size:10.5px!important;margin-bottom:5px!important;gap:8px}
  body.ss-chat-page .ss-flow-copy span:last-child{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;text-align:end}
  body.ss-chat-page .ss-flow-track{height:5px!important}
  body.ss-chat-page .chat-body{padding:10px 10px 6px!important;background:#F7FAFC!important;scroll-padding-block:12px;overscroll-behavior:contain;-webkit-overflow-scrolling:touch}
  body.ss-chat-page .bubble{max-width:92%!important;margin-bottom:8px!important;padding:10px 12px!important;border-radius:13px!important;font-size:13.5px!important;line-height:1.65!important;overflow-wrap:anywhere;word-break:normal}
  body.ss-chat-page .bubble.q{max-width:100%!important;font-size:14px!important;font-weight:750!important;background:#F4F9FC!important;box-shadow:none!important}
  body.ss-chat-page .bubble.q.start{padding:12px!important}
  body.ss-chat-page .bubble.user{max-width:88%!important}
  body.ss-chat-page .bubble.result{max-width:100%!important;padding:0!important;border:0!important;background:transparent!important;box-shadow:none!important}
  body.ss-chat-page .chat-start{padding:3px 2px 1px!important}
  body.ss-chat-page .chat-start .cs-logo{font-size:34px!important;margin-bottom:3px!important}
  body.ss-chat-page .chat-start .cs-title{font-size:17px!important;margin-bottom:2px!important}
  body.ss-chat-page .chat-start .cs-sub{font-size:13px!important;margin-bottom:5px!important}
  body.ss-chat-page .chat-start .cs-desc{font-size:12px!important;line-height:1.65!important}
  body.ss-chat-page .chat-options{display:grid!important;grid-template-columns:1fr!important;gap:7px!important;max-height:min(36dvh,310px)!important;padding:9px!important;background:#fff!important;border-top:1px solid #E3EDF3!important;overflow-y:auto!important;overscroll-behavior:contain;-webkit-overflow-scrolling:touch}
  body.ss-chat-page .chat-options.symptom-picker{grid-template-columns:repeat(2,minmax(0,1fr))!important;max-height:min(42dvh,360px)!important}
  body.ss-chat-page .chat-options .opt{width:100%!important;min-height:46px!important;padding:9px 11px!important;border-radius:12px!important;font-size:13px!important;line-height:1.4!important;text-align:center!important;white-space:normal!important;overflow-wrap:anywhere}
  body.ss-chat-page .chat-options.symptom-picker .opt{min-height:50px!important;padding:8px 7px!important;font-size:12.5px!important}
  body.ss-chat-page .chat-options .start-btn{grid-column:1/-1!important;position:sticky!important;top:0!important;z-index:4!important;min-height:48px!important;margin:0 0 2px!important;border-radius:13px!important;padding:11px 14px!important;font-size:14px!important;box-shadow:0 5px 16px rgba(40,127,193,.16)!important}
  body.ss-chat-page .chat-options #relBlock{grid-column:1/-1!important}
  body.ss-chat-page .rel-title{margin-top:7px!important;font-size:11.5px!important}
  body.ss-chat-page .rel-chips{gap:6px!important;margin-top:6px!important}
  body.ss-chat-page .rel-chip{min-height:38px;padding:7px 10px!important;border-radius:11px!important;font-size:11.5px!important;line-height:1.35!important}
  body.ss-chat-page .chat-input{padding:8px!important;gap:6px!important;background:#fff!important;border-top:1px solid #E3EDF3!important;padding-bottom:max(8px,env(safe-area-inset-bottom))!important}
  body.ss-chat-page .chat-input input{min-width:0!important;min-height:46px!important;height:46px;padding:10px 11px!important;font-size:16px!important;border-radius:12px!important}
  body.ss-chat-page .chat-input button{min-width:46px!important;min-height:46px!important;height:46px;padding:0 11px!important;border-radius:12px!important;font-size:13px!important}
  body.ss-chat-page .res-card{padding:13px!important;border-radius:16px!important;box-shadow:none!important}
  body.ss-chat-page .res-title{font-size:17px!important;margin-bottom:9px!important}
  body.ss-chat-page .pill2{font-size:15px!important;padding:8px 16px!important;max-width:100%}
  body.ss-chat-page .urg-lbl{font-size:11.5px!important}
  body.ss-chat-page .urg-val{font-size:18px!important}
  body.ss-chat-page .res-assess{padding:12px!important;margin:8px 0!important;border-radius:13px!important}
  body.ss-chat-page .res-assess-h{font-size:14px!important;margin-bottom:6px!important}
  body.ss-chat-page .likely-condition div[style*='1.28rem']{font-size:1.12rem!important;line-height:1.45!important}
  body.ss-chat-page .warn{font-size:12px!important;line-height:1.65!important;padding:10px 11px!important}
  body.ss-chat-page .xai-card summary{padding:11px 12px!important;font-size:12.5px!important}
  body.ss-chat-page .xai-body{padding:12px!important}
}
@media(max-width:360px){.ss-user-actions .ss-report-actions{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:6px!important}.ss-user-actions .ss-report-action{font-size:10.5px!important;padding:7px 5px!important;min-height:50px!important}.ss-user-actions .ss-action-icon{font-size:13px!important}}
@media(max-width:390px){
  body.ss-chat-page .chat-head{grid-template-columns:minmax(0,1fr) auto}
  body.ss-chat-page .chat-head .avatar{display:none!important}
  body.ss-chat-page .chat-head>div:nth-child(2){grid-column:1;grid-row:1}
  body.ss-chat-page .chat-head-toggles{grid-column:2;grid-row:1}
  body.ss-chat-page #profileSwitcher{grid-column:1/-1}
  body.ss-chat-page .chat-options.symptom-picker{grid-template-columns:1fr!important}
  body.ss-chat-page .chat-options.symptom-picker .opt{min-height:44px!important;font-size:13px!important}
  body.ss-chat-page .bubble{max-width:96%!important}
  body.ss-chat-page .bubble.user{max-width:92%!important}
}
@media(prefers-reduced-motion:reduce){.svc-card,.quick-card,.hp-quick-link,.btn,.auth-btn,input,select,textarea{transition:none!important}.svc-card:hover,.quick-card:hover,.hp-quick-link:hover{transform:none!important}}
/* V248 UI fixes (served here because app-shell-v111.css is not loaded). */
/* 1. "Continue" must always stay reachable while the symptom list scrolls. */
body.ss-chat-page #chatOptions .start-btn.is-next,
body.ss-chat-page[data-chat-step] #chatOptions.chat-options.symptom-picker .start-btn.is-next,
body.ss-chat-page[data-chat-step="symptoms"] #chatOptions.symptom-picker .start-btn.start-btn.is-next{position:sticky!important;top:auto!important;bottom:8px!important;order:999!important;z-index:30!important;min-height:48px!important;box-shadow:0 0 0 8px #F4F8FC,0 12px 24px rgba(25,118,210,.28)!important}
/* 2. "What we understood" card + quick-edit buttons. */
body.ss-chat-page .ss-understood-card{border-color:#cfe4f2!important;background:linear-gradient(180deg,#fbfdff,#f7fbfe)!important}
body.ss-chat-page .ss-understood-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
body.ss-chat-page .ss-understood-grid>div{display:grid;gap:4px;padding:10px 12px;border:1px solid #e0ebf3;border-radius:12px;background:#fff}
body.ss-chat-page .ss-understood-grid>div.wide{grid-column:1/-1}
body.ss-chat-page .ss-understood-grid b{color:#567087;font-size:12px;font-weight:800}
body.ss-chat-page .ss-understood-grid span{color:#173b5f;font-size:14px;line-height:1.5;font-weight:800}
body.ss-chat-page .ss-inline-edit-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-top:12px}
body.ss-chat-page .ss-inline-edit-actions button{min-width:0;min-height:44px;padding:8px 10px;border:1px solid #cfe0ed;border-radius:12px;background:#fff;color:#1F6FAE;font-family:inherit;font-size:13px;font-weight:800;line-height:1.3;cursor:pointer}
body.ss-chat-page .ss-inline-edit-actions button:hover,body.ss-chat-page .ss-inline-edit-actions button:focus-visible{background:#eef7fd;border-color:#7fb7df}
@media(max-width:380px){body.ss-chat-page .ss-understood-grid{grid-template-columns:1fr}body.ss-chat-page .ss-understood-grid>div.wide{grid-column:auto}}
body.ss-chat-page .smart-body-refine{display:grid;gap:8px;padding:10px;border:1px solid #dce9f2;border-radius:12px;background:#fbfdff}
body.ss-chat-page .smart-body-refine>b{color:#123B70;font-size:13px}
body.ss-chat-page .smart-body-refine>div{display:flex;flex-wrap:wrap;gap:8px}
body.ss-chat-page .smart-body-refine button{min-height:44px;border:1px solid #cfe0ed;border-radius:999px;background:#fff;color:#315c7d;padding:6px 12px;font-family:inherit;font-size:13px;font-weight:800;cursor:pointer;white-space:normal}
body.ss-chat-page .smart-body-refine button:hover,body.ss-chat-page .smart-body-refine button:focus-visible{border-color:#2580d7;color:#0f66bc;background:#f1f8ff}
body.ss-chat-page .smart-body-tip{color:#536D83;font-size:13px;line-height:1.65;font-weight:700}
.doctor-card-section{margin-top:12px}
.doctor-card-section>b{display:block;margin-bottom:7px;color:#174f78;font-size:13px}
.doctor-card-section+.doctor-card-section{padding-top:12px;border-top:1px solid #e3edf4}
/* 3. Comfortable touch targets (44px). */
@media(max-width:900px){
  .hl-chip{min-height:44px;display:inline-flex;align-items:center}
  .f-links a{display:inline-flex;align-items:center;min-height:44px;padding:0 8px}
  .f-tg,.ss-mobile-logo,.ss-trust-safety-link,.auth-legal-link,.ss-hero-secondary,.ss-source-more{min-height:44px;display:inline-flex;align-items:center}
  input[type=checkbox],input[type=radio]{min-width:24px;min-height:24px}
}
/* Home hero (tablet/desktop): keep the illustrative result card clear of the floating cards. */
@media(min-width:768px){
  html body.ss-home-page .ss-hero-demo{min-height:830px!important;height:auto!important}
  html body.ss-home-page .ss-tech-data,html body.ss-home-page .ss-tech-ai{top:70px!important;bottom:auto!important}
  html body.ss-home-page .ss-tech-health,html body.ss-home-page .ss-v132-privacy{top:212px!important;bottom:auto!important}
  html body.ss-home-page .ss-result-card{align-self:end!important;margin-top:0!important;margin-bottom:0!important}
}
/* Result page: source links get a proper tap area. */
.ss-step-source,.ss-source-link{display:inline-flex;align-items:center;min-height:44px}
/* 4. Consent page: clear error state + room for the floating save bar. */
.consent-option.consent-invalid{border-color:#D9534F!important;box-shadow:0 0 0 3px rgba(217,83,79,.15)}
@media(max-width:1180px){body .consent-page{padding-bottom:calc(var(--bnav-h,64px) + 110px)}body .consent-sticky-bar{background:#fff}}

/* ===== SymptoSense — ALL DEVICE RESPONSIVE AUDIT 2026-09 ===== */
/* This is a presentation-only override layer. It intentionally comes last. */
html{-webkit-text-size-adjust:100%;text-size-adjust:100%;scroll-padding-top:76px}
body{overflow-x:clip}
main,section,article,header,footer,nav,.container,.card,.chat-wrap,.ss-home-shell{max-width:100%}
img,svg,video,canvas,iframe{max-width:100%;height:auto}
input,select,textarea,button{font-family:inherit}
.ss-modal,.expl-modal,.asst-modal{max-height:min(86dvh,760px);overflow:auto;overscroll-behavior:contain}
.tbl-wrap,.table-wrap,.admin-table-wrap{max-width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch}

/* Desktop / laptop: keep the full navigation and remove mobile chrome. */
@media (min-width:1181px){
  .nav{display:flex!important;flex-wrap:nowrap!important;min-height:68px!important;padding-inline:clamp(18px,3vw,34px)!important}
  .nav .links{flex-wrap:nowrap!important;min-width:0!important}
  .nav .links a{font-size:clamp(13px,1vw,15px)!important;padding-inline:clamp(8px,1vw,14px)!important;white-space:nowrap!important}
  .ss-mobile-head,.ss-bnav{display:none!important}
  .container{width:min(100%,1180px)!important;padding-inline:clamp(20px,3vw,30px)!important;padding-bottom:clamp(44px,6vw,72px)!important}
  .asst-fab{bottom:22px!important}
  .asst-panel{width:min(420px,calc(100vw - 32px))!important;right:18px!important;left:auto!important;bottom:88px!important;height:min(650px,76dvh)!important}
  [dir="rtl"] .asst-panel{right:auto!important;left:18px!important}
}

/* Large desktop: a little more breathing room, never stretch text too wide. */
@media (min-width:1600px){
  .container{max-width:1240px!important}
  .ss-home-shell{width:min(1240px,calc(100% - 56px))!important}
  .footer-inner{max-width:1240px!important;margin-inline:auto!important}
}

/* iPad / tablet / narrow laptop */
@media (min-width:768px) and (max-width:1180px){
  .nav{display:none!important}
  .ss-mobile-head{display:flex!important;min-height:64px!important;padding-inline:clamp(16px,3vw,26px)!important}
  .ss-bnav{display:flex!important;justify-content:space-evenly!important;align-items:center!important}
  .ss-bnav a{flex:1 1 0!important;max-width:180px!important;min-height:52px!important;font-size:11px!important}
  .container{width:min(100%,1000px)!important;padding:22px clamp(18px,3vw,30px) calc(var(--bnav-h) + var(--safe-bottom) + 34px)!important}
  .grid2,.ss-grid2{gap:14px!important}
  .hp-overview{grid-template-columns:1fr!important}
  .hp-stats,.hp-quick-links,.dash-stats{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  .auth-card{max-width:520px!important}
  .footer{padding-bottom:calc(var(--bnav-h) + var(--safe-bottom) + 28px)!important}
  .asst-panel{left:18px!important;right:18px!important;width:auto!important;height:min(68dvh,620px)!important;bottom:calc(var(--bnav-h) + var(--safe-bottom) + 78px)!important}
}

/* Phones */
@media (max-width:767px){
  :root{--bnav-h:62px}
  body{font-size:14px!important;line-height:1.7!important}
  .nav{display:none!important}
  .ss-mobile-head{display:flex!important;min-height:60px!important;padding:calc(8px + var(--safe-top)) 11px 8px!important;gap:8px!important}
  .ss-mobile-logo{font-size:17px!important;min-width:0!important}
  .ss-mobile-actions{gap:6px!important}
  .ss-mobile-lang,.ss-mobile-account{min-height:44px!important}
  .ss-mobile-account{max-width:118px!important}
  .ss-bnav{display:flex!important;justify-content:space-evenly!important;align-items:center!important;padding-bottom:calc(5px + var(--safe-bottom))!important}
  .ss-bnav a{flex:1 1 0!important;min-width:0!important;min-height:50px!important;padding:6px 2px!important;font-size:9.5px!important}
  .ss-bnav a .bn-icon{font-size:20px!important}
  .container{width:100%!important;padding:14px 12px calc(var(--bnav-h) + var(--safe-bottom) + 24px)!important}
  .card,.ss-profile-card,.fam-form,.hp-panel,.manage-card,.memory-card{border-radius:16px!important;padding:16px!important}
  input,select,textarea,input.inp,select.inp,textarea.inp,.card input,.card select,.auth-card input{font-size:16px!important;min-height:48px!important}
  button,.btn,.ss-btn-primary,.ss-btn-danger,.auth-btn{min-height:44px}
  .ss-btn-row{display:grid!important;grid-template-columns:1fr!important;gap:8px!important}
  .ss-btn-row>*{width:100%!important;justify-content:center!important}
  .hp-stats,.hp-quick-links,.dash-stats{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:9px!important}
  .hp-stat{padding:13px 8px!important}
  .hp-stat-value{font-size:20px!important}
  table.tbl,table.admin-table{display:block!important;width:100%!important;max-width:100%!important;overflow-x:auto!important;-webkit-overflow-scrolling:touch!important;white-space:nowrap!important}
  .footer{padding-inline:14px!important;padding-bottom:calc(var(--bnav-h) + var(--safe-bottom) + 22px)!important;text-align:center!important}
  .footer-inner,.footer-links{justify-content:center!important}
  .asst-fab{width:50px!important;height:50px!important;bottom:calc(var(--bnav-h) + var(--safe-bottom) + 10px)!important}
  .asst-panel{left:10px!important;right:10px!important;width:auto!important;height:min(70dvh,590px)!important;bottom:calc(var(--bnav-h) + var(--safe-bottom) + 70px)!important;border-radius:18px!important}
  .ss-modal-overlay,.expl-bg,.asst-modal-bg{padding:10px!important}
  .ss-modal,.expl-modal,.asst-modal{width:100%!important;max-width:520px!important;padding:18px 15px!important;border-radius:18px!important}
}

@media (max-width:330px){
  .container{padding-inline:9px!important}
  .ss-mobile-account span:last-child{display:none!important}
  .ss-mobile-account{width:42px!important;padding-inline:7px!important}
  .hp-stats,.hp-quick-links,.dash-stats{grid-template-columns:1fr!important}
  .ss-bnav a{font-size:8.5px!important}
}

/* Stable chat sizing across iOS Safari, Android Chrome and tablets. */
@media (max-width:900px){
  body.ss-chat-page{height:100dvh!important;min-height:100svh!important;overflow:hidden!important;overscroll-behavior:none!important}
  body.ss-chat-page .container{height:calc(100dvh - 60px - var(--safe-top) - var(--bnav-h) - var(--safe-bottom))!important;min-height:0!important;overflow:hidden!important;padding:6px 8px!important}
  body.ss-chat-page .chat-wrap{height:100%!important;min-height:0!important;max-height:none!important;margin:0!important;border-radius:16px!important;display:flex!important;flex-direction:column!important}
  body.ss-chat-page .chat-body{min-height:0!important;flex:1 1 auto!important;overflow-y:auto!important;-webkit-overflow-scrolling:touch!important}
  body.ss-chat-page .chat-options{flex:0 0 auto!important;max-height:40%!important;overflow-y:auto!important;-webkit-overflow-scrolling:touch!important}
  body.ss-chat-page .chat-input{flex:0 0 auto!important;padding-bottom:max(8px,var(--safe-bottom))!important}
  .bubble{max-width:94%!important;font-size:14px!important;overflow-wrap:anywhere!important}
}

@media (orientation:landscape) and (max-height:560px) and (max-width:1180px){
  .ss-mobile-head{min-height:50px!important;padding-block:5px!important}
  body.ss-chat-page .container{height:calc(100dvh - var(--bnav-h) - var(--safe-bottom))!important;padding-block:4px!important}
  body.ss-chat-page .chat-head{padding-block:6px!important}
  body.ss-chat-page .chat-options{max-height:32dvh!important}
  body.ss-chat-page .chat-input{padding-block:5px!important}
}

/* ===== Focused questionnaire UX: one clear question + previous answer ===== */
body.ss-chat-page .step-focus-card{
  width:100%;max-width:760px;margin:0 auto;padding:14px 15px;border:1px solid #D7E7F1;
  border-radius:16px;background:#FFFFFF;box-shadow:0 4px 14px rgba(22,59,92,.06);text-align:start;
}
body.ss-chat-page .step-focus-kicker{font-size:11px;font-weight:800;color:#1f6fae;margin-bottom:5px}
body.ss-chat-page .step-focus-question{font-size:17px;font-weight:850;line-height:1.55;color:#123B70}
body.ss-chat-page .step-focus-answer{margin-top:10px;padding:9px 11px;border-radius:11px;background:#EFF7FC;border:1px solid #D9EAF4;color:#36556D;font-size:12.5px;line-height:1.55}
body.ss-chat-page .step-focus-answer b{color:#123B70}
body.ss-chat-page .step-answer-summary{margin:8px 12px 4px;border:1px solid #D9EAF4;border-radius:12px;background:#fff;color:#36556D}
body.ss-chat-page .step-answer-summary summary{cursor:pointer;padding:9px 12px;font-size:12.5px;font-weight:800;color:#1f6fae;list-style:none}
body.ss-chat-page .step-answer-summary summary::-webkit-details-marker{display:none}
body.ss-chat-page .step-answer-summary-list{padding:0 12px 9px;display:grid;gap:7px}
body.ss-chat-page .step-answer-summary-row{display:grid;gap:2px;padding-top:7px;border-top:1px solid #EDF3F7;font-size:11.5px;line-height:1.5}
body.ss-chat-page .step-answer-summary-row b{color:#123B70}.step-answer-summary-row span{color:#60788B}
/* V212: real editable answer form after a completed assessment. */
body.ss-chat-page .answer-edit-panel{max-width:860px;margin:10px auto;padding:18px;border:1px solid #D7E6EF;border-radius:20px;background:#fff;box-shadow:0 10px 30px rgba(27,73,108,.08);direction:inherit}
body.ss-chat-page .answer-edit-head{display:flex;justify-content:space-between;gap:12px;align-items:flex-start;margin-bottom:14px}
body.ss-chat-page .answer-edit-head h3{margin:0;color:#123B70;font-size:18px}.answer-edit-head p{margin:5px 0 0;color:#60788B;font-size:12.5px;line-height:1.7}
body.ss-chat-page .answer-edit-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.answer-edit-field{display:grid;gap:6px}.answer-edit-field.wide{grid-column:1/-1}
body.ss-chat-page .answer-edit-field label{font-size:12px;font-weight:900;color:#274D69}.answer-edit-field input,.answer-edit-field select,.answer-edit-field textarea{width:100%;box-sizing:border-box;border:1px solid #CFE0EA;border-radius:12px;background:#FBFDFF;color:#123B70;padding:11px 12px;font:inherit;min-height:44px}.answer-edit-field textarea{min-height:86px;resize:vertical;line-height:1.7}.answer-edit-field input:focus,.answer-edit-field select:focus,.answer-edit-field textarea:focus{outline:2px solid #8CC7E9;outline-offset:1px;border-color:#65AED8;background:#fff}
body.ss-chat-page .answer-edit-actions{display:flex;gap:9px;flex-wrap:wrap;margin-top:15px}.answer-edit-actions .ss-btn-primary,.answer-edit-actions .opt{min-height:44px}.answer-edit-error{min-height:20px;margin-top:8px;color:#A13D3D;font-size:12px;font-weight:800}
@media(max-width:680px){body.ss-chat-page .answer-edit-panel{margin:4px 0;padding:14px;border-radius:16px}.answer-edit-grid{grid-template-columns:1fr!important}.answer-edit-field.wide{grid-column:auto!important}.answer-edit-actions{display:grid!important;grid-template-columns:1fr}.answer-edit-actions button{width:100%}}

@media(max-width:900px){body.ss-chat-page .chat-options.symptom-picker{max-height:none!important;overflow:visible!important}}
@media (max-width:900px){
  body.ss-chat-page .chat-body:not(.result-mode){flex:0 0 auto!important;min-height:108px!important;max-height:29dvh!important;overflow-y:auto!important;padding:9px!important;background:#F7FAFC!important}
  body.ss-chat-page .chat-options{flex:1 1 auto!important;min-height:0!important;max-height:none!important;display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;align-content:start!important;padding:9px!important;gap:8px!important}
  body.ss-chat-page .chat-options.symptom-picker{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  body.ss-chat-page .chat-options .opt{min-height:48px!important;font-size:13.5px!important;font-weight:700!important;padding:10px 9px!important}
  body.ss-chat-page .chat-input{flex:0 0 auto!important}
  body.ss-chat-page .step-focus-card{padding:12px 13px;border-radius:14px}
  body.ss-chat-page .step-focus-question{font-size:16px!important;line-height:1.5!important}
  body.ss-chat-page .step-focus-answer{font-size:12px!important;margin-top:8px!important;padding:8px 10px!important}
}
@media (max-width:360px){
  body.ss-chat-page .chat-options,body.ss-chat-page .chat-options.symptom-picker{grid-template-columns:1fr!important}
  body.ss-chat-page .chat-body:not(.result-mode){max-height:31dvh!important}
  body.ss-chat-page .step-focus-question{font-size:15px!important}
}

/* ===== Home page: device-specific composition ===== */
body.ss-home-page .ss-home-shell{max-width:100%}

@media (min-width:1181px){
  body.ss-home-page .ss-home-shell{width:min(1180px,calc(100% - 44px))!important;gap:24px!important}
  body.ss-home-page .ss-home-hero{grid-template-columns:minmax(390px,.95fr) minmax(460px,1.05fr)!important;gap:clamp(34px,5vw,72px)!important}
  body.ss-home-page .ss-core-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important}
  body.ss-home-page .ss-how-flow{grid-template-columns:repeat(4,minmax(0,1fr))!important}
}

/* iPad/tablet: keep the premium split hero, but scale it instead of stacking too early. */
@media (min-width:768px) and (max-width:1180px){
  body.ss-home-page .ss-home-shell{width:min(100% - 28px,1040px)!important;gap:18px!important}
  body.ss-home-page .ss-home-hero{grid-template-columns:minmax(300px,.9fr) minmax(340px,1.1fr)!important;gap:22px!important;padding:30px 26px!important;min-height:500px!important}
  body.ss-home-page .ss-hero-copy{text-align:right!important}
  body.ss-home-page .ss-hero-rule{margin-inline-start:auto!important;margin-inline-end:0!important}
  body.ss-home-page .ss-hero-lead,body.ss-home-page .ss-hero-desc{margin-inline-start:auto!important;margin-inline-end:0!important}
  body.ss-home-page .ss-hero-actions{justify-content:flex-start!important}
  body.ss-home-page .ss-trust-row{justify-content:flex-start!important}
  body.ss-home-page .ss-hero-copy h1{font-size:clamp(38px,5vw,56px)!important}
  body.ss-home-page .ss-hero-lead{font-size:16px!important}
  body.ss-home-page .ss-hero-demo{min-height:410px!important}
  body.ss-home-page .ss-demo-orbit{width:360px!important;height:360px!important}
  body.ss-home-page .ss-result-card{width:min(315px,80%)!important}
  body.ss-home-page .ss-core-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:14px!important}
  body.ss-home-page .ss-core-card.lab{grid-column:1/-1!important}
  body.ss-home-page .ss-tools-scroll{gap:12px!important}
  body.ss-home-page .ss-tool{flex:0 0 calc((100% - 36px)/4)!important;min-width:150px!important}
  body.ss-home-page .ss-how-flow{grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:10px!important}
  body.ss-home-page .ss-how-step{padding-inline:5px!important}
  body.ss-home-page .ss-how-step b{font-size:13px!important}
  body.ss-home-page .ss-how-step small{font-size:10px!important}
}

/* Normal phones: preserve the requested side-by-side hero, but simplify the preview so text stays legible. */
@media (min-width:390px) and (max-width:767px){
  body.ss-home-page{padding-bottom:calc(var(--bnav-h) + var(--safe-bottom) + 18px)!important}
  body.ss-home-page .ss-home-shell{width:calc(100% - 14px)!important;gap:14px!important}
  body.ss-home-page .ss-home-hero{direction:rtl!important;grid-template-columns:minmax(0,1.08fr) minmax(0,.92fr)!important;align-items:center!important;gap:8px!important;padding:20px 10px 22px!important;min-height:440px!important;border-radius:22px!important;overflow:hidden!important}
  body.ss-home-page .ss-hero-copy{grid-column:1!important;text-align:right!important;padding:0 2px!important}
  body.ss-home-page .ss-hero-kicker{font-size:10px!important;line-height:1.4!important;margin-bottom:7px!important}
  body.ss-home-page .ss-hero-rule{width:42px!important;height:3px!important;margin:0 0 11px auto!important}
  body.ss-home-page .ss-hero-copy h1{font-size:clamp(26px,7vw,31px)!important;line-height:1.17!important;letter-spacing:-.2px!important}
  body.ss-home-page .ss-hero-lead{font-size:12.5px!important;line-height:1.58!important;margin:12px 0 0!important;font-weight:750!important;max-width:none!important}
  body.ss-home-page .ss-hero-desc{font-size:11px!important;line-height:1.55!important;margin:6px 0 0!important;max-width:none!important}
  body.ss-home-page .ss-hero-actions{display:grid!important;grid-template-columns:1fr!important;gap:7px!important;margin-top:13px!important}
  body.ss-home-page .ss-hero-primary,body.ss-home-page .ss-hero-secondary{width:100%!important;min-height:42px!important;border-radius:11px!important;padding:0 8px!important;font-size:11.5px!important;gap:5px!important}
  body.ss-home-page .ss-trust-row{display:grid!important;grid-template-columns:1fr!important;gap:4px!important;margin-top:10px!important;font-size:8.8px!important}
  body.ss-home-page .ss-trust-ic{width:20px!important;height:20px!important;flex:0 0 20px!important}
  body.ss-home-page .ss-hero-demo{grid-column:2!important;min-height:340px!important;height:340px!important;overflow:visible!important}
  body.ss-home-page .ss-demo-orbit{width:210px!important;height:210px!important}
  body.ss-home-page .ss-result-card{width:165px!important;padding:8px!important;border-radius:15px!important;transform:rotate(-1deg)!important}
  body.ss-home-page .ss-result-top strong{font-size:8.5px!important}
  body.ss-home-page .ss-result-back{width:19px!important;height:19px!important;font-size:12px!important}
  body.ss-home-page .ss-result-risk{padding:8px!important;border-radius:10px!important;margin-bottom:6px!important}
  body.ss-home-page .ss-result-risk small{font-size:9px!important}
  body.ss-home-page .ss-result-risk b{font-size:17px!important}
  body.ss-home-page .ss-result-risk em{font-size:8px!important}
  body.ss-home-page .ss-risk-check{width:32px!important;height:32px!important;font-size:18px!important;box-shadow:0 0 0 5px rgba(67,207,130,.12)!important}
  body.ss-home-page .ss-mini-panel{border-radius:9px!important;margin-top:6px!important}
  body.ss-home-page .ss-mini-panel h3{font-size:8px!important;padding:6px!important}
  body.ss-home-page .ss-mini-row{padding:5px 6px!important;gap:4px!important}
  body.ss-home-page .ss-mini-row b{font-size:9px!important}
  body.ss-home-page .ss-mini-row small{font-size:8px!important}
  body.ss-home-page .ss-mini-row:nth-child(4){display:none!important}
  body.ss-home-page .ss-next-panel,body.ss-home-page .ss-source-panel{display:none!important}
  body.ss-home-page .ss-tech-card{width:60px!important;min-height:54px!important;border-radius:10px!important;padding:4px 2px!important}
  body.ss-home-page .ss-tech-card .ic{font-size:15px!important}
  body.ss-home-page .ss-tech-card b{font-size:8px!important;margin-top:2px!important}
  body.ss-home-page .ss-tech-card small{display:none!important}
  body.ss-home-page .ss-tech-data{left:-3px!important;top:19%!important}
  body.ss-home-page .ss-tech-ai{right:-2px!important;top:16%!important}
  body.ss-home-page .ss-tech-health{left:-2px!important;bottom:12%!important}
  body.ss-home-page .ss-demo-note{display:none!important}
}

/* Small phones / iPhone SE: stack only here so nothing becomes microscopic. */
@media (max-width:389px){
  body.ss-home-page .ss-home-shell{width:calc(100% - 12px)!important;gap:12px!important}
  body.ss-home-page .ss-home-hero{grid-template-columns:1fr!important;gap:14px!important;padding:20px 12px 22px!important;min-height:0!important;border-radius:20px!important}
  body.ss-home-page .ss-hero-copy{grid-column:1!important;text-align:center!important}
  body.ss-home-page .ss-hero-rule{margin-inline:auto!important}
  body.ss-home-page .ss-hero-copy h1{font-size:30px!important;line-height:1.2!important}
  body.ss-home-page .ss-hero-lead{font-size:13.5px!important;margin-inline:auto!important}
  body.ss-home-page .ss-hero-desc{font-size:11.5px!important;margin-inline:auto!important}
  body.ss-home-page .ss-hero-actions{display:grid!important;grid-template-columns:1fr!important;gap:8px!important}
  body.ss-home-page .ss-hero-primary,body.ss-home-page .ss-hero-secondary{width:100%!important;min-height:46px!important;font-size:13px!important}
  body.ss-home-page .ss-trust-row{justify-content:center!important;font-size:9.5px!important}
  body.ss-home-page .ss-hero-demo{grid-column:1!important;min-height:300px!important;height:300px!important}
  body.ss-home-page .ss-demo-orbit{width:260px!important;height:260px!important}
  body.ss-home-page .ss-result-card{width:205px!important;padding:10px!important}
  body.ss-home-page .ss-tech-card{width:64px!important;min-height:58px!important}
  body.ss-home-page .ss-next-panel,body.ss-home-page .ss-source-panel{display:none!important}
}

/* Main services: 2 cards + one full-width card on phones, 3 across on desktop. */
@media (max-width:767px){
  body.ss-home-page .ss-home-section{padding:18px 12px!important;border-radius:20px!important}
  body.ss-home-page .ss-section-head{margin-bottom:14px!important;text-align:center!important}
  body.ss-home-page .ss-section-head .eyebrow{font-size:12px!important}
  body.ss-home-page .ss-section-head h2{font-size:clamp(25px,7vw,29px)!important;line-height:1.3!important}
  body.ss-home-page .ss-core-grid{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important}
  body.ss-home-page .ss-core-card{display:flex!important;min-width:0!important;min-height:235px!important;padding:15px 10px 13px!important;border-radius:18px!important;text-align:center!important;align-items:center!important;justify-content:flex-start!important}
  body.ss-home-page .ss-core-card.lab{grid-column:1/-1!important;min-height:170px!important;display:grid!important;grid-template-columns:68px minmax(0,1fr)!important;grid-template-rows:auto auto auto!important;column-gap:12px!important;text-align:right!important;padding:16px!important}
  body.ss-home-page .ss-core-icon{width:55px!important;height:55px!important;min-width:55px!important;font-size:26px!important;margin:0 0 9px!important}
  body.ss-home-page .ss-core-card.lab .ss-core-icon{grid-column:1!important;grid-row:1/span 3!important;margin:0!important;width:62px!important;height:62px!important;font-size:29px!important;align-self:center!important}
  body.ss-home-page .ss-core-card h3{font-size:16.5px!important;line-height:1.35!important;text-align:center!important;margin:0!important}
  body.ss-home-page .ss-core-card p{font-size:11.7px!important;line-height:1.65!important;text-align:center!important;margin:7px 0 11px!important;max-width:23ch!important;color:#607A92!important}
  body.ss-home-page .ss-core-open{width:100%!important;min-height:39px!important;padding:0 7px!important;font-size:12px!important;border-radius:11px!important;margin-top:auto!important}
  body.ss-home-page .ss-core-card.lab h3,body.ss-home-page .ss-core-card.lab p,body.ss-home-page .ss-core-card.lab .ss-core-open{grid-column:2!important;text-align:right!important}
  body.ss-home-page .ss-core-card.lab h3{font-size:18px!important}
  body.ss-home-page .ss-core-card.lab p{font-size:12px!important;max-width:none!important;margin:4px 0 8px!important}
  body.ss-home-page .ss-core-card.lab .ss-core-open{width:min(190px,100%)!important;justify-self:start!important}
}

/* Tools: exactly four visible on phones (2 x 2), horizontal scrolling stays inside the section. */
@media (max-width:767px){
  body.ss-home-page .ss-tools-panel{padding:18px 12px!important;border-radius:20px!important;overflow:hidden!important}
  body.ss-home-page .ss-tools-head{display:block!important;text-align:right!important;margin-bottom:12px!important}
  body.ss-home-page .ss-tools-head h2{font-size:24px!important;line-height:1.35!important}
  body.ss-home-page .ss-tools-head p{font-size:12.5px!important;line-height:1.65!important;margin-top:4px!important}
  body.ss-home-page .ss-tools-all{display:inline-block!important;margin-top:6px!important;font-size:11px!important}
  body.ss-home-page .ss-tools-scroll{display:grid!important;grid-template-rows:repeat(2,112px)!important;grid-auto-flow:column!important;grid-auto-columns:calc((100% - 10px)/2)!important;gap:10px!important;overflow-x:auto!important;overflow-y:hidden!important;scroll-snap-type:x mandatory!important;overscroll-behavior-inline:contain!important;touch-action:pan-x pan-y!important;padding:2px 1px 5px!important}
  body.ss-home-page .ss-tool{width:auto!important;min-width:0!important;min-height:0!important;flex:none!important;scroll-snap-align:start!important;padding:12px 8px!important;border-radius:16px!important;gap:6px!important}
  body.ss-home-page .ss-tool .ic{font-size:26px!important}
  body.ss-home-page .ss-tool b{font-size:12px!important;line-height:1.35!important}
  body.ss-home-page .ss-tool small{font-size:9px!important;line-height:1.35!important}
}

/* How-it-works and sources stay readable without horizontal page scrolling. */
@media (max-width:767px){
  body.ss-home-page .ss-how{padding:18px 12px!important;border-radius:20px!important}
  body.ss-home-page .ss-how-head{text-align:center!important;margin-bottom:15px!important}
  body.ss-home-page .ss-how-head h2{font-size:24px!important}
  body.ss-home-page .ss-how-head p{font-size:12px!important}
  body.ss-home-page .ss-how-flow{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:18px 8px!important}
  body.ss-home-page .ss-how-step{padding:4px!important}
  body.ss-home-page .ss-how-step:after{display:none!important}
  body.ss-home-page .ss-how-icon{width:55px!important;height:55px!important;font-size:25px!important}
  body.ss-home-page .ss-how-step b{font-size:12px!important}
  body.ss-home-page .ss-how-step small{font-size:9px!important;line-height:1.55!important}
  body.ss-home-page .ss-sources-strip{grid-template-columns:1fr!important;gap:12px!important;padding:16px 12px!important;text-align:center!important;border-radius:18px!important}
  body.ss-home-page .ss-sources-logos{justify-content:center!important;gap:9px 13px!important}
  body.ss-home-page .ss-source-badge{font-size:9.5px!important}
}

/* Avoid accidental dark-mode repainting of the competition home cards. */
@media (prefers-color-scheme:dark){
  body.ss-home-page{background:#F7FBFF!important;color:#40566F!important}
  body.ss-home-page .ss-home-hero,body.ss-home-page .ss-home-section,body.ss-home-page .ss-tools-panel,body.ss-home-page .ss-how,body.ss-home-page .ss-core-card,body.ss-home-page .ss-tool,body.ss-home-page .ss-result-card{color:#0B3775!important}
}

/* ===== V66 unified typography + exact small-device pass ===== */
body[dir="rtl"],body[dir="rtl"] input,body[dir="rtl"] select,body[dir="rtl"] textarea,body[dir="rtl"] button{font-family:'Tajawal','Segoe UI',Tahoma,sans-serif!important}
body[dir="ltr"],body[dir="ltr"] input,body[dir="ltr"] select,body[dir="ltr"] textarea,body[dir="ltr"] button{font-family:'Poppins','Tajawal','Segoe UI',sans-serif!important}
body[dir="rtl"] h1,body[dir="rtl"] h2,body[dir="rtl"] h3,body[dir="rtl"] h4{font-weight:800!important;letter-spacing:-.012em!important}
body[dir="ltr"] h1,body[dir="ltr"] h2,body[dir="ltr"] h3,body[dir="ltr"] h4{font-family:'Poppins','Tajawal','Segoe UI',sans-serif!important;font-weight:700!important;letter-spacing:-.018em!important}
.ss-brand-gradient,.ss-hero-brand,.first-lang-brand,.nav .logo,.ss-mobile-logo,.footer .f-brand{font-family:'Poppins','Tajawal','Segoe UI',sans-serif!important}

@media(max-width:430px){
  .container{padding-inline:11px!important}
  .ss-mobile-head{padding-inline:10px!important}
  .ss-mobile-logo{font-size:16.5px!important}
  .ss-mobile-account{max-width:112px!important;padding-inline:9px!important}
  .card,.ss-profile-card,.manage-card,.memory-card,.fam-form{padding:14px!important;border-radius:15px!important}
  .ss-modal,.expl-modal,.asst-modal{width:100%!important;max-width:100%!important;padding:16px 13px!important;border-radius:16px!important}
  .asst-panel{left:7px!important;right:7px!important;border-radius:16px!important}
  .sea-box{gap:7px!important}
  .sea-box .sea-btn{padding-inline:16px!important}
  .ss-user-actions .ss-report-actions{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:7px!important}.ss-user-actions .ss-report-action{padding-inline:6px!important;font-size:11px!important;min-height:52px!important}
  body.ss-home-page .ss-hero-brand{font-size:clamp(42px,13vw,60px)!important}
}
@media(max-width:390px){
  .container{padding-inline:10px!important}
  .ss-mobile-actions{gap:5px!important}
  .ss-mobile-lang{min-width:42px!important;padding-inline:7px!important}
  .ss-mobile-account{max-width:104px!important}
  .hp-stats,.hp-quick-links,.dash-stats{grid-template-columns:1fr!important}
  .ss-trust-row{gap:8px!important}
  body.ss-home-page .ss-core-grid{grid-template-columns:1fr!important}
  body.ss-home-page .ss-core-card,body.ss-home-page .ss-core-card.lab{grid-column:auto!important;min-height:0!important;display:grid!important;grid-template-columns:56px minmax(0,1fr)!important;grid-template-rows:auto auto auto!important;text-align:right!important;padding:14px!important}
  body.ss-home-page .ss-core-card .ss-core-icon,body.ss-home-page .ss-core-card.lab .ss-core-icon{grid-column:1!important;grid-row:1/span 3!important;width:52px!important;height:52px!important;min-width:52px!important;margin:0!important}
  body.ss-home-page .ss-core-card h3,body.ss-home-page .ss-core-card p,body.ss-home-page .ss-core-card .ss-core-open{grid-column:2!important;text-align:right!important;max-width:none!important}
  body.ss-home-page .ss-core-card .ss-core-open{width:min(190px,100%)!important;justify-self:start!important}
}
@media(max-width:375px){
  .ss-mobile-logo{font-size:15.5px!important}
  .ss-mobile-account{max-width:98px!important;font-size:11px!important}
  .ss-bnav a{font-size:8.8px!important}
  .asst-panel{height:min(72dvh,560px)!important}
  .bubble{font-size:13.5px!important}
  .ss-question-chip,.rel-chip{font-size:11.5px!important}
  body.ss-home-page .ss-hero-brand{font-size:43px!important}
}
@media(max-width:320px){
  .container{padding-inline:7px!important}
  .ss-mobile-head{padding-inline:7px!important}
  .ss-mobile-logo{font-size:14.5px!important}
  .ss-mobile-account span:last-child{display:none!important}
  .ss-mobile-account{width:42px!important;max-width:42px!important;padding-inline:6px!important}
  .ss-bnav a{font-size:8px!important;padding-inline:1px!important}
  .ss-bnav a .bn-icon{font-size:18px!important}
  .card,.ss-profile-card,.manage-card,.memory-card,.fam-form{padding:12px!important;border-radius:14px!important}
  .asst-panel{left:4px!important;right:4px!important}
  .ss-modal-overlay,.expl-bg,.asst-modal-bg{padding:5px!important}
  body.ss-home-page .ss-hero-brand{font-size:38px!important}
  body.ss-home-page .ss-home-hero{padding-inline:9px!important}
}

/* ===== Final symptom-chat viewport + audio UX fix 2026-09-08 ===== */
/* Keep the questionnaire complete and scrollable instead of clipping it to 100dvh. */
body.ss-chat-page{overflow-x:hidden!important}
@media (max-width:900px){
  body.ss-chat-page{height:auto!important;min-height:100svh!important;overflow-y:auto!important;overscroll-behavior-y:auto!important;background:#F7FAFC!important}
  body.ss-chat-page .container{height:auto!important;min-height:calc(100svh - var(--bnav-h) - var(--safe-bottom))!important;overflow:visible!important;padding:8px 8px calc(var(--bnav-h) + var(--safe-bottom) + 18px)!important}
  body.ss-chat-page .chat-wrap{width:100%!important;height:auto!important;min-height:calc(100svh - var(--bnav-h) - var(--safe-bottom) - 18px)!important;max-height:none!important;overflow:hidden!important;margin:0 auto!important;display:flex!important;flex-direction:column!important}
  body.ss-chat-page .chat-body{flex:0 0 auto!important;min-height:96px!important;max-height:none!important;overflow:visible!important;padding:10px!important}
  body.ss-chat-page .chat-body.result-mode{flex:0 0 auto!important;max-height:none!important;overflow:visible!important}
  body.ss-chat-page .chat-options{flex:0 0 auto!important;min-height:0!important;max-height:none!important;overflow:visible!important;align-content:start!important}
  body.ss-chat-page .chat-options.symptom-picker{max-height:min(42svh,390px)!important;overflow-y:auto!important;-webkit-overflow-scrolling:touch!important}
  body.ss-chat-page .chat-input{position:relative!important;inset:auto!important;flex:0 0 auto!important;padding-bottom:10px!important}
  body.ss-chat-page #chatSafetyNote{margin:10px 8px calc(var(--bnav-h) + var(--safe-bottom) + 8px)!important}
  body.ss-chat-page .step-focus-card{scroll-margin-top:10px!important}
}
@media (max-width:420px){
  body.ss-chat-page .chat-head{padding:9px 10px!important}
  body.ss-chat-page .chat-head-toggles{gap:7px!important}
  body.ss-chat-page .chat-head .chat-audio-btn{width:44px!important;height:44px!important;min-width:44px!important}
  body.ss-chat-page .chat-options:not(.symptom-picker){grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:9px!important}
  body.ss-chat-page .chat-options:not(.symptom-picker) .opt{min-height:54px!important;font-size:14px!important}
  body.ss-chat-page .chat-input input{font-size:16px!important}
}
@media (max-width:340px){
  body.ss-chat-page .chat-options:not(.symptom-picker){grid-template-columns:1fr!important}
}
@media (min-width:901px){
  body.ss-chat-page{min-height:100vh!important;overflow-y:auto!important}
  body.ss-chat-page .chat-wrap{height:clamp(560px,76vh,760px)!important;min-height:560px!important;max-height:760px!important}
  body.ss-chat-page .chat-body{overflow-y:auto!important}
  body.ss-chat-page .chat-options{max-height:38%!important;overflow-y:auto!important}
}

/* ===== Symptom questionnaire — compact grouped mobile stage 2026-09-09 ===== */
/* Question + previous answer + choices should read as one compact panel, not float in a full-screen empty area. */
@media (max-width:900px){
  body.ss-chat-page{height:auto!important;min-height:100svh!important;overflow-y:auto!important;overflow-x:hidden!important}
  body.ss-chat-page .container{
    height:auto!important;min-height:0!important;overflow:visible!important;
    padding:8px 8px calc(var(--bnav-h) + var(--safe-bottom) + 18px)!important;
  }
  body.ss-chat-page .chat-wrap{
    height:auto!important;min-height:0!important;max-height:none!important;overflow:hidden!important;
    display:block!important;margin:0 auto 10px!important;border-radius:18px!important;
  }
  body.ss-chat-page .chat-head,body.ss-chat-page .ss-flow{position:relative!important;inset:auto!important}
  body.ss-chat-page .chat-body:not(.result-mode){
    display:block!important;flex:none!important;min-height:0!important;max-height:none!important;height:auto!important;
    overflow:visible!important;padding:12px 12px 0!important;background:#F7FAFC!important;
  }
  body.ss-chat-page .step-focus-card{
    width:100%!important;max-width:none!important;margin:0!important;padding:14px 14px 11px!important;
    border:1px solid #D7E7F1!important;border-bottom:0!important;border-radius:16px 16px 0 0!important;
    background:#fff!important;box-shadow:none!important;
  }
  body.ss-chat-page .step-focus-kicker{font-size:12px!important;margin-bottom:4px!important}
  body.ss-chat-page .step-focus-question{font-size:18px!important;line-height:1.5!important;margin:0!important}
  body.ss-chat-page .step-focus-answer{
    display:inline-flex!important;align-items:center!important;gap:4px!important;width:auto!important;max-width:100%!important;
    margin-top:8px!important;padding:6px 10px!important;border-radius:999px!important;
    font-size:12.5px!important;line-height:1.4!important;background:#EFF7FC!important;
  }
  body.ss-chat-page .chat-options,
  body.ss-chat-page .chat-options.symptom-picker{
    display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;align-content:start!important;
    flex:none!important;height:auto!important;min-height:0!important;max-height:none!important;overflow:visible!important;
    margin:0 12px 12px!important;padding:10px!important;gap:9px!important;background:#fff!important;
    border:1px solid #D7E7F1!important;border-top:0!important;border-radius:0 0 16px 16px!important;
  }
  body.ss-chat-page .chat-options .opt{
    min-height:58px!important;padding:11px 10px!important;border-radius:13px!important;
    font-size:15px!important;line-height:1.4!important;font-weight:750!important;
  }
  body.ss-chat-page .chat-options.symptom-picker .opt{min-height:52px!important;font-size:14px!important}
  body.ss-chat-page .chat-input{
    flex:none!important;position:relative!important;inset:auto!important;margin:0 12px 12px!important;
    border:1px solid #D7E7F1!important;border-radius:14px!important;padding:8px!important;
  }
  body.ss-chat-page #chatSafetyNote{margin:8px 12px calc(var(--bnav-h) + var(--safe-bottom) + 8px)!important}
}
@media (max-width:360px){
  body.ss-chat-page .chat-options,body.ss-chat-page .chat-options.symptom-picker{grid-template-columns:1fr!important}
  body.ss-chat-page .step-focus-question{font-size:17px!important}
  body.ss-chat-page .chat-options .opt{min-height:52px!important;font-size:14.5px!important}
}
@media (min-width:901px){
  body.ss-chat-page .step-focus-card{max-width:960px!important}
}

/* ===== Live-review questionnaire stability fix 2026-09-09 ===== */
/* One scroll surface, no page jump, no tall empty stage on phones/tablets. */
@media (max-width:900px){
  body.ss-chat-page{
    height:100svh!important;min-height:100svh!important;max-height:100svh!important;
    overflow:hidden!important;overscroll-behavior:none!important;background:#F7FAFC!important;
  }
  body.ss-chat-page .container{
    height:calc(100svh - var(--bnav-h) - var(--safe-bottom))!important;
    min-height:0!important;max-height:none!important;overflow:hidden!important;
    padding:8px 8px 6px!important;display:flex!important;flex-direction:column!important;align-items:stretch!important;
  }
  body.ss-chat-page .chat-wrap{
    width:100%!important;height:auto!important;max-height:100%!important;min-height:0!important;
    display:block!important;overflow-y:auto!important;overflow-x:hidden!important;
    -webkit-overflow-scrolling:touch!important;overscroll-behavior:contain!important;
    margin:0!important;border-radius:18px!important;scrollbar-gutter:stable both-edges;
  }
  body.ss-chat-page .chat-head{
    position:sticky!important;top:0!important;z-index:22!important;
    margin:0!important;box-shadow:0 5px 14px rgba(22,59,92,.10)!important;
  }
  body.ss-chat-page .ss-flow{position:relative!important;inset:auto!important;z-index:5!important}
  body.ss-chat-page .chat-body,
  body.ss-chat-page .chat-body:not(.result-mode),
  body.ss-chat-page .chat-body.result-mode{
    display:block!important;flex:none!important;height:auto!important;min-height:0!important;max-height:none!important;
    overflow:visible!important;padding:12px 12px 0!important;background:#F7FAFC!important;
  }
  body.ss-chat-page .step-focus-card{
    width:100%!important;max-width:none!important;margin:0!important;padding:13px 14px 11px!important;
    border:1px solid #D7E7F1!important;border-bottom:0!important;border-radius:15px 15px 0 0!important;
    background:#fff!important;box-shadow:none!important;
  }
  body.ss-chat-page .step-answer-summary{margin:7px 0 0!important;border-radius:12px!important}
  body.ss-chat-page .chat-options,
  body.ss-chat-page .chat-options.symptom-picker{
    display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;
    flex:none!important;height:auto!important;min-height:0!important;max-height:none!important;overflow:visible!important;
    margin:0 12px 12px!important;padding:10px!important;gap:9px!important;align-content:start!important;
    background:#fff!important;border:1px solid #D7E7F1!important;border-top:0!important;border-radius:0 0 15px 15px!important;
  }
  body.ss-chat-page .chat-options .opt{min-height:52px!important}
  body.ss-chat-page .chat-input{
    display:flex;flex:none!important;position:relative!important;inset:auto!important;
    margin:0 12px 12px!important;padding:8px!important;border:1px solid #D7E7F1!important;border-radius:14px!important;
  }
  body.ss-chat-page .chat-input[style*="display:none"]{display:none!important}
  body.ss-chat-page #chatSafetyNote{margin:8px 12px 12px!important}
}
@media (max-width:360px){
  body.ss-chat-page .chat-options,body.ss-chat-page .chat-options.symptom-picker{grid-template-columns:1fr!important}
}

/* ===== Full-screen symptom questionnaire on phones/tablets 2026-09-14 ===== */
/* Scope is deliberately limited to the symptom-analysis page. */
@media (max-width:900px){
  body.ss-chat-page .container{
    width:100%!important;
    height:calc(100svh - var(--bnav-h) - var(--safe-bottom))!important;
    min-height:calc(100svh - var(--bnav-h) - var(--safe-bottom))!important;
    padding:0!important;
  }
  body.ss-chat-page .chat-wrap{
    width:100%!important;
    height:100%!important;
    min-height:100%!important;
    max-height:100%!important;
    margin:0!important;
    border:0!important;
    border-radius:0!important;
    box-shadow:none!important;
    display:flex!important;
    flex-direction:column!important;
  }
  body.ss-chat-page .chat-body:not(.result-mode){
    flex:0 0 auto!important;
    display:block!important;
    min-height:0!important;
  }
  body.ss-chat-page .chat-options{flex:0 0 auto!important}
  body.ss-chat-page .chat-input{
    flex:0 0 auto!important;
    margin-top:0!important;
  }
}
@supports (height:100dvh){
  @media (max-width:900px){
    body.ss-chat-page .container{
      height:calc(100dvh - var(--bnav-h) - var(--safe-bottom))!important;
      min-height:calc(100dvh - var(--bnav-h) - var(--safe-bottom))!important;
    }
  }
}

/* ===== Mobile active-question position fix 2026-09-14 ===== */
@media (max-width:900px){
  body.ss-chat-page .chat-body:not(.result-mode){
    padding-top:clamp(22px,4svh,36px)!important;
  }
}
@media (max-height:680px) and (max-width:900px){
  body.ss-chat-page .chat-body:not(.result-mode){padding-top:14px!important}
}

/* ===== Mobile symptom picker — clean non-overlapping layout 2026-09-14 ===== */
@media (max-width:900px){
  /* The blue header must scroll naturally; a sticky header was covering the
     question/summary while the user moved through the symptom grid. */
  body.ss-chat-page .chat-head{
    position:relative!important;top:auto!important;z-index:12!important;
    flex:0 0 auto!important;box-shadow:none!important;
  }
  body.ss-chat-page .ss-flow{position:relative!important;top:auto!important;z-index:11!important}
  body.ss-chat-page .chat-wrap{
    scroll-padding-top:0!important;overflow-y:auto!important;overflow-x:hidden!important;
  }

  /* Give the active question a clear breathing space before the choices. */
  body.ss-chat-page .chat-body:not(.result-mode){padding:14px 12px 0!important}
  body.ss-chat-page .step-focus-card{
    margin:0!important;padding:14px 14px 12px!important;border-radius:16px 16px 0 0!important;
  }
  body.ss-chat-page .step-focus-question{font-size:17px!important;line-height:1.55!important}
  body.ss-chat-page .step-focus-answer{
    display:block!important;width:100%!important;border-radius:11px!important;
    margin-top:9px!important;padding:8px 10px!important;
  }

  /* On the symptom-selection step, the previous age/gender accordion made
     the screen look crowded. The selected symptoms already appear in the
     current-step card, so hide only that duplicated accordion here. */
  body.ss-chat-page[data-chat-step="symptoms"] .step-answer-summary{display:none!important}

  body.ss-chat-page .chat-options.symptom-picker{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    margin:0 12px 14px!important;padding:11px 10px 18px!important;gap:10px!important;
    max-height:none!important;overflow:visible!important;
    border-radius:0 0 16px 16px!important;
  }
  body.ss-chat-page .chat-options.symptom-picker .opt{
    min-height:58px!important;padding:10px 8px!important;border-radius:14px!important;
    font-size:14px!important;line-height:1.45!important;font-weight:800!important;
    display:flex!important;align-items:center!important;justify-content:center!important;
  }
  body.ss-chat-page .chat-options.symptom-picker .opt.sel{
    box-shadow:inset 0 0 0 1px rgba(40,127,193,.18)!important;
  }

  /* Keep Continue as part of the content rather than a floating sticky bar. */
  body.ss-chat-page .chat-options.symptom-picker .start-btn{
    position:static!important;top:auto!important;z-index:auto!important;grid-column:1/-1!important;
    order:-1!important;min-height:54px!important;margin:0 0 2px!important;border-radius:14px!important;
    box-shadow:0 5px 14px rgba(40,127,193,.12)!important;
  }
  body.ss-chat-page .chat-options.symptom-picker #relBlock{grid-column:1/-1!important}
  body.ss-chat-page #chatSafetyNote{margin-bottom:14px!important}
}
@media (max-width:360px){
  body.ss-chat-page .chat-options.symptom-picker{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important}
  body.ss-chat-page .chat-options.symptom-picker .opt{min-height:54px!important;font-size:13px!important;padding:8px 6px!important}
}

/* ===== iPhone questionnaire position — final override 2026-09-14 ===== */
/* Keep the first age / gender question visually centered in the usable area.
   This block intentionally comes after the symptom-picker overrides above,
   which previously reset the spacing back to 14px and made the fix invisible. */
@media (max-width:900px){
  body.ss-chat-page[data-chat-step="age"] .chat-body:not(.result-mode){
    padding:clamp(52px,7svh,82px) 12px 0!important;
  }
  body.ss-chat-page[data-chat-step="gender"] .chat-body:not(.result-mode){
    padding:clamp(42px,6svh,68px) 12px 0!important;
  }
  body.ss-chat-page[data-chat-step="age"] .step-focus-card,
  body.ss-chat-page[data-chat-step="gender"] .step-focus-card{
    border:1px solid #D7E7F1!important;
    border-radius:18px!important;
    padding:17px 16px!important;
  }
  body.ss-chat-page[data-chat-step="age"] .chat-input{
    margin:16px 12px 12px!important;
  }
  body.ss-chat-page[data-chat-step="gender"] .chat-options{
    margin-top:16px!important;
    border-top:1px solid #D7E7F1!important;
    border-radius:16px!important;
  }
}
@media (max-width:900px) and (max-height:700px){
  body.ss-chat-page[data-chat-step="age"] .chat-body:not(.result-mode),
  body.ss-chat-page[data-chat-step="gender"] .chat-body:not(.result-mode){
    padding-top:24px!important;
  }
}

/* Compact mobile questionnaire: one scrolling container and grouped inputs. */
@media(max-width:900px){
  body.ss-chat-page{height:100dvh!important;min-height:0!important;max-height:100dvh!important;overflow:hidden!important;background:#F4F8FC!important}
  body.ss-chat-page .container{display:block!important;height:calc(100dvh - var(--bnav-h) - var(--safe-bottom))!important;min-height:0!important;overflow-y:auto!important;overflow-x:hidden!important;padding:0 0 20px!important;background:#F4F8FC!important;overscroll-behavior:contain}
  body.ss-chat-page .chat-wrap{display:block!important;height:auto!important;min-height:0!important;max-height:none!important;overflow:visible!important;border:0!important;border-radius:0!important;background:#F4F8FC!important;margin:0!important;box-shadow:none!important}
  body.ss-chat-page .chat-head{position:relative!important;top:auto!important;box-shadow:none!important}
  body.ss-chat-page #chatBody{height:auto!important;min-height:0!important;max-height:none!important;overflow:visible!important;padding:20px 12px 0!important;background:transparent!important}
  body.ss-chat-page #chatBody .step-focus-card{height:auto!important;min-height:0!important;padding:18px 16px 12px!important;margin:0!important;border:1px solid #D7E7F1!important;border-bottom:0!important;border-radius:16px 16px 0 0!important;background:#fff!important}
  body.ss-chat-page #chatBody .step-focus-question{font-size:18px!important;line-height:1.6!important}
  body.ss-chat-page #chatOptions{height:auto!important;min-height:0!important;max-height:none!important;overflow:visible!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important;margin:0 12px 14px!important;padding:12px!important;border:1px solid #D7E7F1!important;border-top:0!important;border-radius:0 0 16px 16px!important}
  body.ss-chat-page #chatOptions:empty{display:none!important}
  body.ss-chat-page .chat-wrap.report-mode #chatOptions{display:none!important}
  body.ss-chat-page #chatOptions .opt{min-height:58px!important;height:auto!important;width:100%!important;font-size:14px!important;line-height:1.5!important;padding:10px 8px!important;white-space:normal!important;display:flex!important;align-items:center!important;justify-content:center!important}
  body.ss-chat-page #chatInput{position:relative!important;inset:auto!important;margin:0 12px 14px!important;padding:12px!important;border:1px solid #D7E7F1!important;border-top:0!important;border-radius:0 0 16px 16px!important;gap:8px!important;background:#fff!important}
  body.ss-chat-page #chatInput input{font-size:16px!important;min-height:48px!important}
  body.ss-chat-page #chatSafetyNote{margin:12px!important}
}

/* ===== iPhone / small-phone symptom layout — consolidated final override 2026-09-15 =====
   This is intentionally the last mobile rule-set. It neutralizes older, competing
   questionnaire overrides without changing desktop/tablet logic or analysis behavior. */
@media (max-width:640px){
  body.ss-chat-page{
    --bnav-h:58px;
    height:100svh!important;min-height:100svh!important;max-height:100svh!important;
    overflow:hidden!important;background:#F3F8FC!important;
  }

  /* One reliable scroll surface above the fixed bottom navigation. */
  body.ss-chat-page .container{
    width:100%!important;max-width:none!important;
    height:calc(100svh - var(--bnav-h) - var(--safe-bottom))!important;
    min-height:0!important;max-height:none!important;
    margin:0!important;padding:0!important;
    overflow-y:auto!important;overflow-x:hidden!important;
    -webkit-overflow-scrolling:touch!important;overscroll-behavior-y:contain!important;
    background:#F3F8FC!important;
  }
  body.ss-chat-page .chat-wrap{
    width:100%!important;min-height:100%!important;height:auto!important;max-height:none!important;
    margin:0!important;border:0!important;border-radius:0!important;box-shadow:none!important;
    overflow:visible!important;background:#F3F8FC!important;
  }

  /* Compact one-row app header: title + family + accessibility. */
  body.ss-chat-page .chat-head{
    position:relative!important;top:auto!important;
    display:grid!important;
    grid-template-columns:minmax(0,1fr) minmax(88px,29vw) 44px!important;
    grid-template-rows:auto!important;
    align-items:center!important;gap:8px!important;
    min-height:68px!important;padding:9px 12px!important;
    background:#1f6fae!important;box-shadow:none!important;
  }
  body.ss-chat-page .chat-head .avatar{display:none!important}
  body.ss-chat-page .chat-head>div:nth-child(2){grid-column:1!important;grid-row:1!important;min-width:0!important}
  body.ss-chat-page .chat-head h3{font-size:15.5px!important;line-height:1.2!important;margin:0!important;white-space:nowrap!important}
  body.ss-chat-page .chat-head p{
    max-width:100%!important;margin:3px 0 0!important;font-size:10.5px!important;line-height:1.3!important;
    white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;
  }
  body.ss-chat-page #profileSwitcher{
    grid-column:2!important;grid-row:1!important;width:100%!important;min-width:0!important;
    margin:0!important;display:block!important;
  }
  body.ss-chat-page #famSelect{
    width:100%!important;max-width:none!important;min-width:0!important;
    height:44px!important;min-height:44px!important;margin:0!important;padding:5px 8px!important;
    border-radius:11px!important;font-size:11.5px!important;line-height:1.2!important;
    background:rgba(255,255,255,.14)!important;color:#fff!important;
    border:1px solid rgba(255,255,255,.30)!important;box-shadow:none!important;
    text-overflow:ellipsis!important;
  }
  body.ss-chat-page .chat-access{grid-column:3!important;grid-row:1!important;position:relative!important;margin:0!important}
  body.ss-chat-page .chat-access>summary{
    width:44px!important;height:44px!important;min-width:44px!important;min-height:44px!important;
    padding:0!important;border-radius:11px!important;display:grid!important;place-items:center!important;
    font-size:0!important;line-height:1!important;
    border:1px solid rgba(255,255,255,.30)!important;background:rgba(255,255,255,.14)!important;
  }
  body.ss-chat-page .chat-access>summary::before{content:'🔊';font-size:18px!important;line-height:1!important}
  body.ss-chat-page .chat-access-menu{top:calc(100% + 6px)!important;inset-inline-end:0!important;width:min(205px,78vw)!important}

  /* Progress stays compact and readable instead of becoming a second header. */
  body.ss-chat-page .ss-flow{
    position:relative!important;top:auto!important;z-index:5!important;
    padding:8px 12px 9px!important;background:#fff!important;border-bottom:1px solid #DCE8F0!important;
  }
  body.ss-chat-page .ss-flow-copy{font-size:10.5px!important;line-height:1.25!important;margin-bottom:5px!important}
  body.ss-chat-page .ss-flow-track{height:5px!important}

  /* Active question: one compact grouped card, no detached giant stage. */
  body.ss-chat-page #chatBody:not(.result-mode),
  body.ss-chat-page .chat-body:not(.result-mode){
    display:block!important;height:auto!important;min-height:0!important;max-height:none!important;
    overflow:visible!important;background:transparent!important;
    padding:clamp(24px,4.5svh,42px) 14px 0!important;
  }
  body.ss-chat-page #chatBody .step-focus-card{
    width:100%!important;max-width:none!important;height:auto!important;min-height:0!important;
    margin:0!important;padding:15px 15px 11px!important;
    border:1px solid #D4E5EF!important;border-bottom:0!important;
    border-radius:18px 18px 0 0!important;background:#fff!important;
    box-shadow:0 7px 20px rgba(27,75,111,.055)!important;
  }
  body.ss-chat-page .step-focus-kicker{font-size:11px!important;line-height:1.25!important;margin-bottom:5px!important}
  body.ss-chat-page #chatBody .step-focus-question{
    font-size:17px!important;line-height:1.55!important;font-weight:850!important;color:#123B70!important;
  }
  body.ss-chat-page .step-focus-answer{font-size:11.5px!important;margin-top:7px!important;padding:6px 9px!important}

  /* Text answer and option answer blocks attach directly to the question card. */
  body.ss-chat-page #chatInput{
    position:relative!important;inset:auto!important;
    display:flex;align-items:stretch!important;gap:8px!important;
    width:auto!important;height:auto!important;min-height:0!important;
    margin:0 14px 14px!important;padding:10px 11px 12px!important;
    border:1px solid #D4E5EF!important;border-top:0!important;
    border-radius:0 0 18px 18px!important;background:#fff!important;
    box-shadow:0 7px 20px rgba(27,75,111,.055)!important;
  }
  body.ss-chat-page #chatInput[style*="display:none"]{display:none!important}
  body.ss-chat-page #chatInput input{
    flex:1 1 auto!important;width:auto!important;min-width:0!important;
    height:48px!important;min-height:48px!important;padding:10px 12px!important;
    border-radius:12px!important;font-size:16px!important;background:#fff!important;
  }
  body.ss-chat-page #chatInput button{
    flex:0 0 auto!important;min-width:72px!important;width:auto!important;
    height:48px!important;min-height:48px!important;padding:0 15px!important;
    border-radius:12px!important;font-size:13px!important;font-weight:800!important;
  }
  body.ss-chat-page #chatOptions,
  body.ss-chat-page #chatOptions.symptom-picker{
    display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;
    width:auto!important;height:auto!important;min-height:0!important;max-height:none!important;overflow:visible!important;
    margin:0 14px 14px!important;padding:10px!important;gap:8px!important;
    border:1px solid #D4E5EF!important;border-top:0!important;border-radius:0 0 18px 18px!important;
    background:#fff!important;box-shadow:0 7px 20px rgba(27,75,111,.055)!important;
  }
  body.ss-chat-page #chatOptions:empty{display:none!important}
  body.ss-chat-page .chat-wrap.report-mode #chatOptions{display:none!important}
  body.ss-chat-page #chatOptions .opt{
    min-height:48px!important;height:auto!important;padding:9px 8px!important;
    border-radius:12px!important;font-size:13.5px!important;line-height:1.4!important;
  }
  body.ss-chat-page #chatOptions.symptom-picker .opt{min-height:50px!important;font-size:13px!important}

  /* The first two short steps should feel balanced, not stuck to the top. */
  body.ss-chat-page[data-chat-step="age"] #chatBody:not(.result-mode),
  body.ss-chat-page[data-chat-step="gender"] #chatBody:not(.result-mode){
    padding-top:clamp(30px,5.5svh,52px)!important;
  }

  /* Smaller fixed navigation with safe-area support. */
  body.ss-chat-page .ss-bnav{
    display:flex!important;height:calc(var(--bnav-h) + var(--safe-bottom))!important;
    padding:4px 0 var(--safe-bottom)!important;align-items:stretch!important;
    background:rgba(255,255,255,.985)!important;
  }
  body.ss-chat-page .ss-bnav a{
    flex:1 1 0!important;max-width:none!important;min-width:0!important;min-height:50px!important;
    padding:4px 2px!important;gap:1px!important;border-radius:0!important;
    font-size:9px!important;line-height:1.15!important;
  }
  body.ss-chat-page .ss-bnav a .bn-icon{font-size:19px!important;line-height:1!important}
  body.ss-chat-page .ss-bnav a.on{background:transparent!important;color:#1F6FAE!important}

  body.ss-chat-page #chatSafetyNote{margin:8px 14px 12px!important;font-size:10.5px!important;line-height:1.55!important}
}

@media (max-width:360px){
  body.ss-chat-page .chat-head{grid-template-columns:minmax(0,1fr) 82px 40px!important;padding-inline:10px!important;gap:6px!important}
  body.ss-chat-page .chat-head p{display:none!important}
  body.ss-chat-page .chat-access>summary{width:40px!important;min-width:40px!important}
  body.ss-chat-page #chatBody:not(.result-mode),body.ss-chat-page .chat-body:not(.result-mode){padding-inline:10px!important}
  body.ss-chat-page #chatInput,body.ss-chat-page #chatOptions,body.ss-chat-page #chatOptions.symptom-picker{margin-inline:10px!important}
  body.ss-chat-page #chatOptions,body.ss-chat-page #chatOptions.symptom-picker{grid-template-columns:1fr!important}
}

/* ===== v27 mobile symptom polish: balanced question stage + deterministic result top ===== */
@media (max-width:640px){
  /* Keep the short age/gender step visually balanced in the usable phone area. */
  body.ss-chat-page[data-chat-step="age"] #chatBody:not(.result-mode){
    padding-top:clamp(116px,17svh,152px)!important;
    padding-inline:14px!important;
  }
  body.ss-chat-page[data-chat-step="gender"] #chatBody:not(.result-mode){
    padding-top:clamp(100px,15svh,136px)!important;
    padding-inline:14px!important;
  }

  /* Results must begin as a clean document below the blue header/progress bar. */
  body.ss-chat-page .chat-wrap.report-mode{overflow:visible!important}
  body.ss-chat-page #chatBody.result-mode,
  body.ss-chat-page .chat-body.result-mode{
    display:block!important;width:100%!important;height:auto!important;min-height:0!important;max-height:none!important;
    overflow:visible!important;padding:12px 10px calc(var(--bnav-h) + var(--safe-bottom) + 18px)!important;
    background:#F3F8FC!important;
  }
  body.ss-chat-page .chat-wrap.report-mode .ss-flow{position:relative!important;top:auto!important}
  body.ss-chat-page .ss-report{width:100%!important;max-width:none!important;margin:0!important;padding:0!important}
  body.ss-chat-page .ss-report-card,
  body.ss-chat-page .ss-report-details{border-radius:18px!important;margin-bottom:12px!important;box-shadow:0 5px 18px rgba(26,74,111,.055)!important}
  body.ss-chat-page .ss-report-summary{border-top-width:3px!important;padding:15px 14px!important}
  body.ss-chat-page .ss-report-heading h2{font-size:17px!important}
  body.ss-chat-page .ss-report-heading h3{font-size:16px!important}
  body.ss-chat-page .ss-risk-row{padding:13px 14px!important;margin-bottom:10px!important}
  body.ss-chat-page .ss-risk-value{font-size:20px!important}
  body.ss-chat-page .ss-quality{padding:12px!important}
  body.ss-chat-page .ss-quality-top{display:block!important}
  body.ss-chat-page .ss-quality-score{display:block!important;margin-top:5px!important;line-height:1.45!important}
  body.ss-chat-page .ss-summary-recommendation{font-size:13px!important;line-height:1.8!important}
  body.ss-chat-page .ss-condition{padding:14px!important;border-radius:15px!important}
  body.ss-chat-page .ss-condition-name{font-size:15.5px!important}
  body.ss-chat-page .ss-condition-why{font-size:12.5px!important;line-height:1.85!important}
  body.ss-chat-page .ss-step{grid-template-columns:32px minmax(0,1fr)!important;padding:12px!important}
  body.ss-chat-page .ss-step-body b{font-size:13.5px!important}
  body.ss-chat-page .ss-step-body p{font-size:12.5px!important;line-height:1.8!important}

  body.ss-chat-page[data-chat-step="age"] .step-focus-card,
  body.ss-chat-page[data-chat-step="gender"] .step-focus-card{
    max-width:520px!important;margin-inline:auto!important;border-radius:20px!important;
    border:1px solid #D4E5F1!important;padding:18px 17px!important;
    box-shadow:0 8px 24px rgba(23,91,145,.055)!important;
  }
  body.ss-chat-page[data-chat-step="age"] #chatInput,
  body.ss-chat-page[data-chat-step="gender"] #chatOptions{
    max-width:520px!important;margin-left:auto!important;margin-right:auto!important;
  }
}
@media (max-width:640px) and (max-height:700px){
  body.ss-chat-page[data-chat-step="age"] #chatBody:not(.result-mode),
  body.ss-chat-page[data-chat-step="gender"] #chatBody:not(.result-mode){padding-top:48px!important}
}

/* ===== v30 phone questionnaire layout: full-width age step + Continue below symptoms ===== */
@media (max-width:640px){
  /* Age should start directly below progress and use the phone width instead of
     floating in the middle of a large empty area. */
  body.ss-chat-page[data-chat-step="age"] #chatBody:not(.result-mode),
  body.ss-chat-page[data-chat-step="gender"] #chatBody:not(.result-mode){
    padding:14px 12px 0!important;
  }
  body.ss-chat-page[data-chat-step="age"] .step-focus-card,
  body.ss-chat-page[data-chat-step="gender"] .step-focus-card{
    width:100%!important;max-width:none!important;margin:0!important;
    border-radius:18px 18px 0 0!important;
    padding:18px 16px 14px!important;
    box-shadow:none!important;
  }
  body.ss-chat-page[data-chat-step="age"] #chatInput{
    display:grid!important;grid-template-columns:1fr!important;
    width:auto!important;max-width:none!important;
    margin:0 12px 16px!important;padding:12px!important;
    border:1px solid #D4E5EF!important;border-top:0!important;
    border-radius:0 0 18px 18px!important;background:#fff!important;
    box-shadow:0 7px 20px rgba(27,75,111,.055)!important;
  }
  body.ss-chat-page[data-chat-step="age"] #chatInput input{
    width:100%!important;min-height:54px!important;height:54px!important;
    font-size:18px!important;text-align:start!important;border-radius:14px!important;
  }
  body.ss-chat-page[data-chat-step="age"] #chatInput button{
    width:100%!important;min-height:50px!important;height:50px!important;
    border-radius:14px!important;font-size:15px!important;font-weight:900!important;
  }
  body.ss-chat-page[data-chat-step="gender"] #chatOptions{
    width:auto!important;max-width:none!important;margin:0 12px 16px!important;
  }

  /* Symptom choices first, then the follow-up/Continue action below them. */
  body.ss-chat-page[data-chat-step="symptoms"] #chatOptions.symptom-picker .opt{
    order:0!important;
  }
  body.ss-chat-page[data-chat-step="symptoms"] #chatOptions.symptom-picker #relBlock{
    order:5!important;
  }
  body.ss-chat-page[data-chat-step="symptoms"] #chatOptions.symptom-picker .start-btn{
    order:10!important;position:static!important;top:auto!important;
    grid-column:1/-1!important;width:100%!important;
    min-height:54px!important;margin:6px 0 0!important;
    border-radius:14px!important;font-size:15px!important;font-weight:900!important;
    box-shadow:0 5px 14px rgba(40,127,193,.12)!important;
  }
}

/* ===== v31 phone age/gender page — true full-width form 2026-09-15 =====
   Treat the first demographic step as a full page section, not a floating card.
   The input and action are stacked vertically and use the entire phone width. */
@media (max-width:640px){
  body.ss-chat-page[data-chat-step="age"] .chat-wrap,
  body.ss-chat-page[data-chat-step="gender"] .chat-wrap{
    background:#fff!important;
  }

  body.ss-chat-page[data-chat-step="age"] #chatBody:not(.result-mode),
  body.ss-chat-page[data-chat-step="gender"] #chatBody:not(.result-mode){
    width:100%!important;
    margin:0!important;
    padding:0!important;
    background:#fff!important;
  }

  body.ss-chat-page[data-chat-step="age"] #chatBody .step-focus-card,
  body.ss-chat-page[data-chat-step="gender"] #chatBody .step-focus-card{
    width:100%!important;
    max-width:none!important;
    margin:0!important;
    padding:28px 20px 14px!important;
    border:0!important;
    border-radius:0!important;
    box-shadow:none!important;
    background:#fff!important;
  }

  body.ss-chat-page[data-chat-step="age"] #chatBody .step-focus-kicker,
  body.ss-chat-page[data-chat-step="gender"] #chatBody .step-focus-kicker{
    margin-bottom:8px!important;
  }

  body.ss-chat-page[data-chat-step="age"] #chatBody .step-focus-question,
  body.ss-chat-page[data-chat-step="gender"] #chatBody .step-focus-question{
    width:100%!important;
    font-size:20px!important;
    line-height:1.65!important;
  }

  body.ss-chat-page[data-chat-step="age"] #chatInput{
    display:flex!important;
    flex-direction:column!important;
    align-items:stretch!important;
    gap:12px!important;
    width:100%!important;
    max-width:none!important;
    margin:0!important;
    padding:0 20px 28px!important;
    border:0!important;
    border-radius:0!important;
    box-shadow:none!important;
    background:#fff!important;
  }
  body.ss-chat-page[data-chat-step="age"] #chatInput[style*="display:none"]{display:none!important}
  body.ss-chat-page[data-chat-step="age"] #chatInput input,
  body.ss-chat-page[data-chat-step="age"] #chatInput button{
    display:block!important;
    flex:0 0 auto!important;
    width:100%!important;
    max-width:none!important;
    margin:0!important;
  }
  body.ss-chat-page[data-chat-step="age"] #chatInput input{
    height:58px!important;
    min-height:58px!important;
    padding:12px 16px!important;
    border-radius:15px!important;
    font-size:18px!important;
  }
  body.ss-chat-page[data-chat-step="age"] #chatInput button{
    height:54px!important;
    min-height:54px!important;
    padding:0 16px!important;
    border-radius:15px!important;
    font-size:16px!important;
    font-weight:900!important;
  }

  body.ss-chat-page[data-chat-step="gender"] #chatOptions{
    display:grid!important;
    grid-template-columns:1fr!important;
    gap:12px!important;
    width:100%!important;
    max-width:none!important;
    margin:0!important;
    padding:0 20px 28px!important;
    border:0!important;
    border-radius:0!important;
    box-shadow:none!important;
    background:#fff!important;
  }
  body.ss-chat-page[data-chat-step="gender"] #chatOptions .opt{
    width:100%!important;
    min-height:54px!important;
    border-radius:15px!important;
    font-size:15px!important;
  }

  /* The symptom list stays first; Continue is always the final full-width row. */
  body.ss-chat-page[data-chat-step="symptoms"] #chatOptions.symptom-picker .start-btn{
    order:999!important;
    position:static!important;
    inset:auto!important;
    grid-column:1/-1!important;
    width:100%!important;
    margin:10px 0 0!important;
  }
}

/* ===== v32 mobile age spacing — question first, breathing room, answer field ===== */
@media (max-width:640px){
  /* Keep the age question near the top, then add deliberate vertical breathing
     room before the answer field. The form remains full-width on the phone. */
  body.ss-chat-page[data-chat-step="age"] #chatBody .step-focus-card{
    padding:28px 20px clamp(58px,8svh,74px)!important;
  }
  body.ss-chat-page[data-chat-step="age"] #chatBody .step-focus-question{
    margin:0!important;
  }
  body.ss-chat-page[data-chat-step="age"] #chatInput{
    padding:0 20px 28px!important;
    gap:14px!important;
  }
  body.ss-chat-page[data-chat-step="age"] #chatInput input{
    min-height:58px!important;
    height:58px!important;
  }
}
@media (max-width:640px) and (max-height:700px){
  body.ss-chat-page[data-chat-step="age"] #chatBody .step-focus-card{
    padding-bottom:46px!important;
  }
}

/* ===== v36 symptom flow regression guard — choices first, Continue last on every device ===== */
body.ss-chat-page[data-chat-step="symptoms"] #chatOptions.symptom-picker .start-btn{
  order:999!important;
  position:static!important;
  inset:auto!important;
  grid-column:1/-1!important;
  width:100%!important;
  margin:10px 0 0!important;
}

/* ===== Cross-device responsive hardening — iPhone / Android / iPad / laptop / desktop ===== */
html{
  -webkit-text-size-adjust:100%;text-size-adjust:100%;
  max-width:100%;overflow-x:clip;
}
body{max-width:100%;overflow-x:hidden;}
main,section,article,aside,header,footer,nav,form,fieldset,
.container,.card,.chat-wrap,.ss-home-shell,.v2-info-page,.about-us-page,.au-polished,
.med-shell,.sea-wrap,.ss-checkin-shell,.site-info-page,.community-page,.trust-page,.method-page,
.history-shell,.analysis-detail-shell{min-width:0;max-width:100%;}
img,picture,video,canvas,svg,iframe{max-width:100%;}
pre,code,.audit-json{max-width:100%;overflow-x:auto;overflow-wrap:normal;word-break:normal;}
input,select,textarea,button{min-width:0;}
textarea{resize:vertical;}
fieldset{border:0;}
.table-wrap,.ss-table-wrap,.heatmap-wrap,.bl-table{max-width:100%;-webkit-overflow-scrolling:touch;overscroll-behavior-inline:contain;}
.modal,.ss-modal,.expl-modal,.asst-modal,.voice-card,.em-card{max-width:calc(100vw - 24px);max-height:calc(100dvh - 24px);overflow:auto;-webkit-overflow-scrolling:touch;}
.modal-bg,.ss-modal-overlay,.expl-bg,.asst-modal-bg,.voice-overlay{overflow:auto;-webkit-overflow-scrolling:touch;}
.dd-menu,.account-menu{max-width:min(92vw,320px);}
.hp-account-email,.profile-value,.history-card,.detail-card,.med-card,.drug-card,.sea-result,.site-info-page,.community-comment,.trust-proof-grid article{overflow-wrap:anywhere;}

/* Tablets and narrow laptops: preserve breathing room and avoid 4/5-column squeeze. */
@media (min-width:641px) and (max-width:1100px){
  .container{padding-inline:clamp(16px,2.5vw,24px);}
  .tools-grid,.quick-grid,.care-grid,.hp-stats,.hp-quick-links,.dash-stats,
  .summary-grid,.community-kpis,.trust-kpis,.trust-live-grid,.si-about-grid,.si-flow,
  .method-flow,.v2-more-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;}
  .med-grid,.hp-overview,.method-grid,.trust-boundary,.au-polished .au-split,.about-us-page .au-split{grid-template-columns:1fr!important;}
  .au-polished .au-visual,.about-us-page .au-visual{min-height:0!important;}
  .au-polished .au-message-card,.about-us-page .au-message-card{grid-template-columns:1fr!important;}
}

/* Phones and small tablets. */
@media (max-width:640px){
  body{font-size:15px;}
  .container{width:100%!important;max-width:100%!important;padding-inline:max(12px,env(safe-area-inset-left),env(safe-area-inset-right))!important;}
  .ss-mobile-head{padding-left:max(10px,env(safe-area-inset-left))!important;padding-right:max(10px,env(safe-area-inset-right))!important;}
  .ss-bnav{padding-left:max(4px,env(safe-area-inset-left));padding-right:max(4px,env(safe-area-inset-right));}
  input,select,textarea{font-size:16px!important;}
  .card,.ss-card,.ss-profile-card,.hp-panel,.med-card,.history-card,.detail-card,
  .community-section,.trust-section,.method-grid>article,.si-section{max-width:100%;}
  .tools-grid,.quick-grid,.v2-more-grid,.v2-source-grid,.calc-grid,.med-grid,.med-form-grid,
  .community-comments,.trust-proof-grid,.method-grid,.history-grid,.mini-grid,.si-list-grid,.si-sources{
    grid-template-columns:1fr!important;
  }
  .care-grid,.hp-stats,.hp-quick-links,.summary-grid,.community-kpis,.trust-kpis,.trust-live-grid,
  .method-flow,.si-flow{grid-template-columns:repeat(2,minmax(0,1fr))!important;}
  .ss-btn-row,.auth-gate-actions,.sea-actions,.history-actions,.trust-actions,.data-actions,.form-actions{width:100%;}
  .ss-btn-row>* ,.auth-gate-actions>a,.sea-actions>.btn,.history-actions>* ,.trust-actions>.btn{flex:1 1 100%;width:100%;justify-content:center;text-align:center;}
  .field-box,.pc-hero,.profile-hero,.calc-disc-card{align-items:flex-start;}
  .setting-row,.pc-data-row{align-items:flex-start;}
  .setting-row{flex-wrap:wrap;}
  .sea-result .sr-head{align-items:flex-start;}
  .search-box,.ask-box{flex-wrap:wrap;}
  .search-box .btn,.ask-box .btn{flex:1 1 100%;}
  .cal-row{min-width:0!important;}
  .ss-report,.res-card,.res-sec{max-width:100%!important;}
  .ss-modal,.expl-modal,.asst-modal{width:100%!important;margin:auto;}
  .welcome-pick{width:calc(100% - 24px);padding:22px 16px;}
  .drop{overflow-wrap:anywhere;}
}

/* Compact phones incl. iPhone SE / small Android. */
@media (max-width:430px){
  .container{padding-inline:10px!important;}
  .card,.ss-card,.ss-profile-card,.hp-panel,.med-card,.history-card,.detail-card{padding:14px!important;border-radius:15px!important;}
  .tools-grid,.quick-grid{grid-template-columns:1fr!important;}
  .care-grid,.hp-stats,.hp-quick-links,.summary-grid,.community-kpis,.trust-kpis,.trust-live-grid,
  .method-flow,.si-flow{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important;}
  .btn,.ss-btn-primary,.ss-btn-danger,.auth-btn{max-width:100%;}
  .hp-account-head{flex-wrap:wrap;}
  .hp-account-name{overflow-wrap:anywhere;}
  .consent-option{min-width:0;}
  .consent-option label{min-width:0;}
  .consent-badge{white-space:normal;text-align:center;}
  .dq-head{grid-template-columns:minmax(0,1fr) minmax(70px,84px)!important;}
  .smart-body-stage{max-width:100%;overflow:hidden;}
  .ss-mood-grid{gap:5px!important;}
  .ss-mood-option{min-width:0!important;}
}

/* Very narrow 320–360px screens: prefer legibility over cramped multi-column cards. */
@media (max-width:360px){
  .care-grid,.hp-stats,.hp-quick-links,.summary-grid,.community-kpis,.trust-kpis,.trust-live-grid,
  .method-flow,.si-flow,.pulse-grid,.perf-grid{grid-template-columns:1fr!important;}
  .ss-mobile-logo{font-size:16px!important;}
  .ss-mobile-actions{gap:5px!important;}
  .ss-mobile-lang{min-width:40px!important;padding-inline:7px!important;}
  .ss-bnav a{padding-inline:2px!important;}
  .lang-btn{min-width:0!important;width:100%;}
  .first-lang-options{grid-template-columns:1fr!important;}
}

/* Short landscape phones: keep dialogs and forms usable without clipping. */
@media (orientation:landscape) and (max-height:560px){
  .modal,.ss-modal,.expl-modal,.asst-modal,.voice-card,.em-card{max-height:calc(100dvh - 12px)!important;}
  body:not(.ss-chat-page) .container{padding-top:10px!important;}
}

/* Large desktops: stop content from becoming visually sparse while keeping fluid gutters. */
@media (min-width:1600px){
  .container{max-width:1240px;}
  .ss-home-shell{max-width:1240px!important;}
}

/* ===== Symptom selection — organized inline body-map layout 2026-09-19 ===== */
body.ss-chat-page[data-chat-step="symptoms"] #chatBody .step-focus-card{
  border:1px solid #D7E7F1!important;border-radius:20px!important;
  padding:18px!important;background:#fff!important;
  box-shadow:0 8px 24px rgba(24,78,116,.06)!important;
}
body.ss-chat-page[data-chat-step="symptoms"] .step-focus-question{margin-bottom:2px!important}
body.ss-chat-page .symptom-selected-bar{
  display:grid;gap:3px;margin-top:12px;padding:10px 12px;border-radius:13px;
  background:#EEF7FD;border:1px solid #D4E8F4;color:#123B70;
}
body.ss-chat-page .symptom-selected-bar b{font-size:11px;color:#1f6fae}
body.ss-chat-page .symptom-selected-bar span{font-size:12.5px;line-height:1.65;font-weight:700}
body.ss-chat-page .symptom-entry-card{
  margin-top:14px;padding:14px;border:1px solid #DCEAF3;border-radius:16px;
  background:#F9FCFE;box-shadow:none;
}
body.ss-chat-page .symptom-section-head{display:flex;align-items:flex-start;gap:10px;margin-bottom:10px}
body.ss-chat-page .symptom-section-icon{width:34px;height:34px;flex:0 0 34px;display:grid;place-items:center;border-radius:10px;background:#EAF5FC;font-size:17px}
body.ss-chat-page .symptom-section-head b{display:block;color:#123B70;font-size:14px;line-height:1.4}
body.ss-chat-page .symptom-section-head small{display:block;margin-top:3px;color:#6B7F90;font-size:11.5px;line-height:1.6}
body.ss-chat-page .symptom-main-text{width:100%!important;min-height:86px!important;resize:vertical!important;border-radius:13px!important;background:#fff!important}
body.ss-chat-page .symptom-text-row{display:flex;gap:8px;align-items:flex-start}
body.ss-chat-page .symptom-text-row .symptom-main-text{flex:1}
body.ss-chat-page .symptom-mic-btn{flex:0 0 auto;width:44px;height:44px;min-height:44px;border-radius:12px;border:1px solid var(--border-card,#DCEBFA);background:var(--primary-light,#EAF4FF);font-size:18px;cursor:pointer;display:grid;place-items:center;color:var(--primary,#1F6FAE);transition:background .15s,color .15s}
body.ss-chat-page .symptom-mic-btn:hover{background:var(--primary,#1F6FAE);color:#fff}
body.ss-chat-page .symptom-mic-btn.is-recording{background:#c81e1e;color:#fff;border-color:#c81e1e;animation:symptomMicPulse 1.2s ease-in-out infinite}
@keyframes symptomMicPulse{0%,100%{box-shadow:0 0 0 0 rgba(220,38,38,.35)}50%{box-shadow:0 0 0 8px rgba(220,38,38,0)}}
body.ss-chat-page .symptom-understand-btn{width:100%!important;min-height:44px!important;margin-top:8px!important;border-radius:12px!important}
body.ss-chat-page .symptom-mini-label{margin:12px 0 7px;color:#566a7d;font-size:11px;font-weight:900}
body.ss-chat-page .quick-symptom-chips{gap:7px!important}
body.ss-chat-page .quick-symptom-chip{min-height:44px!important;padding:7px 11px!important;background:#fff!important}

body.ss-chat-page .symptom-bodymap-disclosure{
  margin-top:12px;border:1px solid #D8E8F2;border-radius:16px;background:#fff;overflow:hidden;
}
body.ss-chat-page .symptom-bodymap-header{min-height:58px;padding:10px 12px;display:grid;grid-template-columns:38px minmax(0,1fr);align-items:center;gap:10px;background:#F8FCFF;color:#123B70}
body.ss-chat-page .body-region-conflict-note{display:flex;gap:8px;flex-wrap:wrap;margin-top:12px}body.ss-chat-page .body-region-conflict-note span{padding:7px 10px;border:1px solid #D8E8F2;border-radius:999px;background:#F8FCFF;color:#123B70;font-size:11px;font-weight:800}
body.ss-chat-page .symptom-bodymap-summary-icon{width:36px;height:36px;display:grid;place-items:center;border-radius:11px;background:#EAF5FC;font-size:18px}
body.ss-chat-page .symptom-bodymap-summary-copy b{display:block;font-size:13.5px;line-height:1.4}
body.ss-chat-page .symptom-bodymap-summary-copy small{display:block;margin-top:2px;font-size:11px;line-height:1.5;color:#6A7D8E;font-weight:600}
body.ss-chat-page .smart-body-selected-badge{display:inline-flex;padding:5px 8px;border-radius:999px;background:#EAF7F0;color:#1E6846;font-size:10px;font-weight:900}
body.ss-chat-page .body-region-specific-reminder{margin:0 12px 12px;padding:9px 10px;border-radius:11px;background:#FFF8E7;border:1px solid #F3E1A8;color:#7B5A18;font-size:11px;font-weight:800}
body.ss-chat-page .symptom-bodymap-inline{margin:0!important;padding:0 12px 12px;border-top:1px solid #E6EFF5}
body.ss-chat-page .step-focus-card .smart-body-card{margin:0!important;padding:12px 0 0!important;border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important}
body.ss-chat-page .smart-body-shell{margin-top:0!important;grid-template-columns:minmax(230px,300px) minmax(0,1fr)!important;gap:12px!important}
body.ss-chat-page .smart-body-stage{min-height:340px!important;border-radius:15px!important}
body.ss-chat-page .smart-body-results{min-height:340px!important;border-radius:15px!important}
body.ss-chat-page .smart-body-region-head{gap:6px!important}

body.ss-chat-page[data-chat-step="symptoms"] #chatOptions.symptom-picker{
  margin-top:12px!important;border:1px solid #D7E7F1!important;border-radius:20px!important;
  padding:14px!important;background:#fff!important;box-shadow:0 8px 24px rgba(24,78,116,.05)!important;
}
body.ss-chat-page .symptom-picker-heading{grid-column:1/-1;display:grid;gap:2px;padding:0 2px 7px;border-bottom:1px solid #EDF3F7;margin-bottom:2px}
body.ss-chat-page .symptom-picker-heading b{font-size:13px;color:#123B70}
body.ss-chat-page .symptom-picker-heading small{font-size:11px;color:#6A7D8E}
body.ss-chat-page[data-chat-step="symptoms"] #chatOptions.symptom-picker .start-btn{
  order:999!important;grid-column:1/-1!important;margin:8px 0 0!important;min-height:50px!important;border-radius:13px!important;
}
body.ss-chat-page[data-chat-step="symptoms"] #chatOptions.symptom-picker #relBlock{grid-column:1/-1!important;order:998!important;margin-top:6px!important}

@media(max-width:900px){
  body.ss-chat-page[data-chat-step="symptoms"] #chatBody:not(.result-mode){padding:14px 12px 0!important}
  body.ss-chat-page[data-chat-step="symptoms"] #chatBody .step-focus-card{margin:0!important;padding:15px!important;border:1px solid #D7E7F1!important;border-radius:18px!important}
  body.ss-chat-page[data-chat-step="symptoms"] #chatOptions.symptom-picker{margin:12px 12px 14px!important;padding:11px!important;border:1px solid #D7E7F1!important;border-radius:18px!important;grid-template-columns:repeat(2,minmax(0,1fr))!important}
  body.ss-chat-page .smart-body-shell{grid-template-columns:1fr!important}
  body.ss-chat-page .smart-body-results{min-height:0!important}
}
@media(max-width:540px){
  body.ss-chat-page[data-chat-step="symptoms"] #chatBody:not(.result-mode){padding:10px 8px 0!important}
  body.ss-chat-page[data-chat-step="symptoms"] #chatBody .step-focus-card{padding:12px!important;border-radius:16px!important}
  body.ss-chat-page .symptom-entry-card{padding:12px!important;border-radius:14px!important;margin-top:10px!important}
  body.ss-chat-page .symptom-section-head{margin-bottom:8px!important}
  body.ss-chat-page .symptom-main-text{min-height:78px!important}
  body.ss-chat-page .symptom-bodymap-disclosure{border-radius:14px!important;margin-top:10px!important}
  body.ss-chat-page .symptom-bodymap-header{grid-template-columns:32px minmax(0,1fr);min-height:52px;padding:9px 10px;gap:8px}
  body.ss-chat-page .symptom-bodymap-summary-icon{width:30px;height:30px;font-size:15px}
  body.ss-chat-page .symptom-bodymap-summary-copy b{font-size:12.5px}
  body.ss-chat-page .symptom-bodymap-summary-copy small{font-size:10.25px;line-height:1.45}
  body.ss-chat-page .symptom-bodymap-inline{padding:0 8px 9px!important}
  body.ss-chat-page .smart-body-card{padding-top:9px!important}
  body.ss-chat-page .smart-body-copy{padding:0 2px 8px!important}
  body.ss-chat-page .smart-body-copy b{font-size:13.5px!important}
  body.ss-chat-page .smart-body-copy p{font-size:11px!important;line-height:1.55!important;margin-top:3px!important}
  body.ss-chat-page .smart-body-stage{min-height:0!important;padding:10px!important;overflow:visible!important}
  body.ss-chat-page .smart-body-toolbar{display:grid!important;grid-template-columns:1fr!important;gap:8px!important;margin-bottom:10px!important}
  body.ss-chat-page .smart-body-hint{text-align:center!important;font-size:10.5px!important;line-height:1.45!important}
  body.ss-chat-page .smart-body-toggle{justify-self:center!important;width:min(220px,100%)!important;display:grid!important;grid-template-columns:1fr 1fr!important}
  body.ss-chat-page .smart-toggle-btn{min-height:38px!important;padding:6px 8px!important}
  body.ss-chat-page .smart-body-figure-wrap{height:auto!important;min-height:0!important;display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important;padding-top:178px!important;align-items:stretch!important}
  body.ss-chat-page .smart-body-figure{top:4px!important;width:76px!important;height:168px!important;transform:translateX(-50%) scale(.92)!important;transform-origin:top center!important}
  body.ss-chat-page .smart-body-figure .body-head{width:34px!important;height:34px!important}
  body.ss-chat-page .smart-body-figure .body-torso{top:36px!important;width:52px!important;height:70px!important;border-radius:18px!important}
  body.ss-chat-page .smart-body-figure .body-arm{top:42px!important;width:15px!important;height:80px!important}
  body.ss-chat-page .smart-body-figure .body-arm.left{left:5px!important}
  body.ss-chat-page .smart-body-figure .body-arm.right{right:5px!important}
  body.ss-chat-page .smart-body-figure .body-leg{top:104px!important;width:18px!important;height:72px!important}
  body.ss-chat-page .smart-body-figure .body-leg.left{left:20px!important}
  body.ss-chat-page .smart-body-figure .body-leg.right{right:20px!important}
  body.ss-chat-page .smart-body-part{position:static!important;transform:none!important;width:100%!important;min-height:42px!important;padding:8px 9px!important;border-radius:12px!important;font-size:11px!important;line-height:1.35!important;display:flex!important;align-items:center!important;justify-content:center!important;text-align:center!important;box-shadow:none!important}
  body.ss-chat-page .smart-body-part.head,body.ss-chat-page .smart-body-part.throat,body.ss-chat-page .smart-body-part.chest,body.ss-chat-page .smart-body-part.abdomen,body.ss-chat-page .smart-body-part.arms,body.ss-chat-page .smart-body-part.legs,body.ss-chat-page .smart-body-part.skin,body.ss-chat-page .smart-body-part.back{left:auto!important;right:auto!important;top:auto!important;bottom:auto!important}
  body.ss-chat-page .smart-body-results{min-height:0!important;padding:10px!important;margin-top:8px!important;border-radius:13px!important}
  body.ss-chat-page .smart-body-results:has(.smart-body-empty){display:none!important}
  body.ss-chat-page .smart-body-region-head b{font-size:13px!important}
  body.ss-chat-page .smart-body-region-head small,body.ss-chat-page .smart-body-region-head span{font-size:10.5px!important}
  body.ss-chat-page .smart-body-symptom-chips{gap:6px!important}
  body.ss-chat-page .smart-body-symptom{padding:7px 9px!important;font-size:11px!important}
  body.ss-chat-page[data-chat-step="symptoms"] #chatOptions.symptom-picker{margin:10px 8px 12px!important;padding:9px!important;gap:7px!important;border-radius:16px!important;grid-template-columns:repeat(2,minmax(0,1fr))!important}
  body.ss-chat-page[data-chat-step="symptoms"] #chatOptions.symptom-picker .opt{min-height:44px!important;font-size:12px!important;border-radius:11px!important;padding:8px!important}
  body.ss-chat-page .symptom-more-toggle{grid-column:1/-1!important;min-height:42px!important;border:1px dashed #BFD9EA!important;background:#F8FCFF!important;color:#1F6FAE!important;border-radius:11px!important;font-weight:900!important}
  body.ss-chat-page .quick-symptom-chips{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:6px!important}
  body.ss-chat-page .quick-symptom-chip{font-size:10.5px!important;min-height:40px!important;padding:6px 5px!important}
  body.ss-chat-page .chat-wrap{margin-bottom:calc(86px + env(safe-area-inset-bottom))!important}
}
@media(max-width:360px){
  body.ss-chat-page[data-chat-step="symptoms"] #chatOptions.symptom-picker{grid-template-columns:1fr!important}
  body.ss-chat-page .smart-body-part{font-size:10px!important;padding:6px 8px!important}
}
/* V82 motion hierarchy: ECG stays the signature motion; decorative entrance/float/body-map animations are intentionally quiet. */.smart-body-stage.flash,.smart-body-part.pulse,.smart-body-region-card,.res-card,.v2-info-page>section,.card,.float-ic,.au-reveal,.au-portrait-abstract,.au-story-flow,.au-idea-visual{animation:none!important}

/* ===== V100/V245 symptom entry — one unified layout on every device ===== */
body.ss-chat-page .symptom-method-switcher,
body.ss-chat-page .symptom-body-sheet{display:none}
@media screen{
  body.ss-chat-page[data-chat-step="symptoms"] #chatBody:not(.result-mode){padding:8px 7px 0!important}
  body.ss-chat-page[data-chat-step="symptoms"] #chatBody .step-focus-card{padding:11px!important;border-radius:16px!important}
  body.ss-chat-page .step-focus-kicker{display:none!important}
  body.ss-chat-page .step-focus-question{font-size:15px!important;line-height:1.55!important;margin-bottom:8px!important}
  body.ss-chat-page .symptom-method-switcher{display:grid;gap:10px;margin-top:8px}
  body.ss-chat-page .symptom-method-intro{display:grid;gap:2px}
  body.ss-chat-page .symptom-method-intro b{font-size:13px;color:#123B70}
  body.ss-chat-page .symptom-method-intro small{font-size:10.8px;color:#6A7D8E;line-height:1.5}
  body.ss-chat-page .symptom-method-tabs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;padding:4px;background:#F1F7FB;border:1px solid #DCEAF3;border-radius:14px}
  body.ss-chat-page .symptom-method-btn{border:0;background:transparent;color:#557086;border-radius:11px;min-height:58px;padding:7px 4px;display:grid;place-items:center;align-content:center;gap:3px;font-family:inherit;font-size:10.5px;font-weight:800;cursor:pointer}
  body.ss-chat-page .symptom-method-btn span{font-size:20px;line-height:1}
  body.ss-chat-page .symptom-method-btn.active{background:#fff;color:#1F6FAE;box-shadow:0 4px 12px rgba(21,93,139,.10)}
  body.ss-chat-page .symptom-selected-summary{display:grid;gap:7px;padding:10px;border-radius:13px;background:#F8FCFF;border:1px solid #DCEAF3}
  body.ss-chat-page .symptom-selected-summary.is-empty{padding:8px 10px;background:#FBFDFE}
  body.ss-chat-page .symptom-selected-head{display:flex;align-items:center;justify-content:space-between;gap:8px;color:#123B70;font-size:11px;font-weight:800}
  body.ss-chat-page .symptom-selected-head b{color:#1F6FAE;font-size:11.5px}
  body.ss-chat-page .symptom-selected-chips{display:flex;gap:6px;overflow-x:auto;padding-bottom:2px;scrollbar-width:none}
  body.ss-chat-page .symptom-selected-chips::-webkit-scrollbar{display:none}
  body.ss-chat-page .symptom-selected-chip{flex:0 0 auto;display:inline-flex;align-items:center;gap:5px;max-width:210px;border:1px solid #CFE3F2;background:#fff;color:#123B70;border-radius:999px;padding:6px 9px;font-size:10.5px;font-weight:800}
  body.ss-chat-page .symptom-selected-chip span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  body.ss-chat-page .symptom-selected-chip button{border:0;background:#EEF5F9;color:#566a7d;width:20px;height:20px;border-radius:50%;font-size:12px;line-height:1;display:grid;place-items:center;padding:0;cursor:pointer}
  body.ss-chat-page .symptom-method-pane:empty{display:none}
  body.ss-chat-page .symptom-entry-card{margin:0!important;padding:11px!important;border-radius:14px!important;background:#FBFDFE!important}
  body.ss-chat-page .symptom-entry-card .symptom-mini-label,
  body.ss-chat-page .symptom-entry-card .quick-symptom-chips{display:none!important}
  body.ss-chat-page .symptom-main-text{min-height:90px!important;font-size:14px!important}
  body.ss-chat-page .symptom-understand-btn{min-height:46px!important;margin-top:8px!important}
  body.ss-chat-page .symptom-body-launcher{display:grid;grid-template-columns:42px minmax(0,1fr);gap:10px;align-items:center;padding:12px;border:1px solid #DCEAF3;border-radius:14px;background:#FBFDFE}
  body.ss-chat-page .symptom-body-launcher-icon{width:42px;height:42px;display:grid;place-items:center;border-radius:12px;background:#EAF5FC;font-size:21px}
  body.ss-chat-page .symptom-body-launcher-copy b{display:block;color:#123B70;font-size:13px}
  body.ss-chat-page .symptom-body-launcher-copy small{display:block;color:#6A7D8E;font-size:10.8px;line-height:1.5;margin-top:2px}
  body.ss-chat-page .symptom-body-launcher .ss-btn-primary{grid-column:1/-1;width:100%;min-height:44px;justify-content:center;margin-top:2px;border-radius:12px}
  body.ss-chat-page .symptom-pick-note{padding:9px 10px;border-radius:12px;background:#F8FCFF;border:1px solid #DCEAF3;color:#566a7d;font-size:10.8px;line-height:1.55}
  body.ss-chat-page[data-chat-step="symptoms"] #chatOptions.symptom-picker{margin:8px 7px 12px!important;padding:8px!important;gap:7px!important;border-radius:15px!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;box-shadow:none!important}
  body.ss-chat-page[data-chat-step="symptoms"] #chatOptions.symptom-picker.method-actions-only{grid-template-columns:1fr!important;background:transparent!important;border:0!important;padding:0 7px!important;margin-top:8px!important}
  body.ss-chat-page[data-chat-step="symptoms"] #chatOptions.symptom-picker .start-btn{grid-column:1/-1!important;margin-top:2px!important;min-height:48px!important;border-radius:13px!important}
  body.ss-chat-page .symptom-more-toggle{grid-column:1/-1!important}
  body.ss-chat-page .symptom-bodymap-disclosure{display:none!important}
  body.ss-chat-page .symptom-body-sheet{display:flex;position:fixed;inset:0;z-index:9999;background:rgba(18,59,112,.28);align-items:flex-end;justify-content:center;padding:0}
  body.ss-chat-page .symptom-body-sheet-panel{width:100%;max-width:640px;max-height:min(82dvh,760px);overflow:auto;background:#fff;border-radius:22px 22px 0 0;box-shadow:0 -16px 40px rgba(18,59,112,.18);padding:10px 10px calc(18px + env(safe-area-inset-bottom));animation:ssSheetUp .22s ease-out}
  body.ss-chat-page .symptom-body-sheet-head{position:sticky;top:-10px;z-index:5;display:flex;align-items:center;justify-content:space-between;gap:10px;padding:10px 4px 9px;background:rgba(255,255,255,.96);backdrop-filter:blur(8px);border-bottom:1px solid #EDF3F7}
  body.ss-chat-page .symptom-body-sheet-head b{color:#123B70;font-size:14px}
  body.ss-chat-page .symptom-body-sheet-close{border:1px solid #DCEAF3;background:#F7FBFE;color:#40566F;width:38px;height:38px;border-radius:12px;font-size:18px;display:grid;place-items:center;cursor:pointer}
  body.ss-chat-page .symptom-body-sheet .smart-body-card{margin:10px 0 0!important;padding:0!important;border:0!important;box-shadow:none!important;background:#fff!important}
  body.ss-chat-page .symptom-body-sheet .smart-body-copy{padding:0 2px 8px!important}
  body.ss-chat-page .symptom-body-sheet .smart-body-shell{display:grid!important;grid-template-columns:1fr!important;gap:8px!important;margin-top:0!important}
  body.ss-chat-page .symptom-body-sheet .smart-body-stage{min-height:0!important;padding:9px!important;overflow:visible!important}
  body.ss-chat-page .symptom-body-sheet .smart-body-figure-wrap{height:auto!important;min-height:0!important;display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:7px!important;padding-top:160px!important}
  body.ss-chat-page .symptom-body-sheet .smart-body-figure{top:2px!important;width:72px!important;height:154px!important;transform:translateX(-50%) scale(.88)!important;transform-origin:top center!important}
  body.ss-chat-page .symptom-body-sheet .smart-body-part{position:static!important;transform:none!important;width:100%!important;min-height:40px!important;padding:7px 7px!important;border-radius:11px!important;font-size:10.5px!important;box-shadow:none!important;display:flex!important;align-items:center!important;justify-content:center!important;text-align:center!important}
  body.ss-chat-page .symptom-body-sheet .smart-body-part.head,body.ss-chat-page .symptom-body-sheet .smart-body-part.throat,body.ss-chat-page .symptom-body-sheet .smart-body-part.chest,body.ss-chat-page .symptom-body-sheet .smart-body-part.abdomen,body.ss-chat-page .symptom-body-sheet .smart-body-part.arms,body.ss-chat-page .symptom-body-sheet .smart-body-part.legs,body.ss-chat-page .symptom-body-sheet .smart-body-part.skin,body.ss-chat-page .symptom-body-sheet .smart-body-part.back{left:auto!important;right:auto!important;top:auto!important;bottom:auto!important}
  body.ss-chat-page .symptom-body-sheet .smart-body-results{min-height:0!important;padding:9px!important;margin-top:0!important}
  body.ss-chat-page .symptom-body-sheet .smart-body-results:has(.smart-body-empty){display:none!important}
  body.symptom-sheet-open{overflow:hidden!important}
  @keyframes ssSheetUp{from{transform:translateY(24px);opacity:.65}to{transform:none;opacity:1}}
}
/* V245: same column width on tablet/laptop as on phone */
@media(min-width:641px){
  body.ss-chat-page[data-chat-step="symptoms"] .chat-wrap{width:min(100%,560px)!important;max-width:560px!important;margin-inline:auto!important}
  body.ss-chat-page[data-chat-step="symptoms"] .chat-wrap{height:clamp(600px,86vh,860px)!important;max-height:860px!important}
  body.ss-chat-page[data-chat-step="symptoms"] .assistant-layout,body.ss-chat-page[data-chat-step="symptoms"] .chat-layout{display:block!important}
}
@media(max-width:360px){
  body.ss-chat-page .symptom-method-btn{font-size:9.8px;min-height:54px}
  body.ss-chat-page[data-chat-step="symptoms"] #chatOptions.symptom-picker{grid-template-columns:repeat(2,minmax(0,1fr))!important}
}
@media(prefers-reduced-motion:reduce){body.ss-chat-page .symptom-body-sheet-panel{animation:none!important}}

/* ===== V55 home hero — reference composition + all-device responsive polish ===== */
body.ss-home-page .ss-home-hero{
  direction:rtl!important;
  grid-template-columns:minmax(0,1.05fr) minmax(360px,.95fr)!important;
  align-items:center!important;
  gap:clamp(28px,4.5vw,68px)!important;
  min-height:590px!important;
  padding:clamp(34px,5vw,66px)!important;
  background:linear-gradient(135deg,#ffffff 0%,#fbfdff 48%,#eef9fb 100%)!important;
  border:1px solid #d9e8ef!important;
  border-radius:30px!important;
  overflow:hidden!important;
}
body.ss-home-page .ss-hero-copy{
  grid-column:1!important;
  direction:rtl!important;
  text-align:right!important;
  max-width:650px!important;
  justify-self:end!important;
  padding:0!important;
}
body.ss-home-page .ss-hero-kicker{
  width:max-content!important;
  max-width:100%!important;
  min-height:38px!important;
  padding:8px 13px!important;
  margin:0 0 16px auto!important;
  border:1px solid #d4edf0!important;
  border-radius:999px!important;
  background:linear-gradient(90deg,#f2fbfb,#eaf7f8)!important;
  color:#187a83!important;
  font-size:12px!important;
  line-height:1.35!important;
  font-weight:850!important;
  white-space:normal!important;
}
body.ss-home-page .ss-hero-kicker b{color:inherit!important}
body.ss-home-page .ss-hero-brand{
  margin:0 0 12px!important;
  color:transparent!important;
  -webkit-text-fill-color:transparent!important;
  font-size:clamp(48px,6vw,80px)!important;
  line-height:.98!important;
  letter-spacing:-2.4px!important;
  font-weight:950!important;
  text-align:left!important;
  width:max-content!important;
  max-width:100%!important;
}
body.ss-home-page .ss-hero-brand span{color:inherit!important}
body.ss-home-page .ss-hero-rule{display:none!important}
body.ss-home-page .ss-hero-copy h1{
  margin:0!important;
  max-width:630px!important;
  color:#0a315f!important;
  font-size:clamp(40px,4.8vw,66px)!important;
  line-height:1.22!important;
  letter-spacing:-1.1px!important;
  font-weight:950!important;
}
body.ss-home-page .ss-hero-copy h1 span{display:block!important;white-space:normal!important}
body.ss-home-page .ss-hero-lead{
  max-width:48ch!important;
  margin:22px 0 0 auto!important;
  color:#4e657b!important;
  font-size:clamp(16px,1.45vw,20px)!important;
  line-height:1.85!important;
  font-weight:720!important;
}
body.ss-home-page .ss-hero-desc{
  max-width:56ch!important;
  margin:6px 0 0 auto!important;
  color:#728699!important;
  font-size:13px!important;
  line-height:1.75!important;
}
body.ss-home-page .ss-hero-actions{display:grid!important;grid-template-columns:minmax(0,1fr) minmax(0,.82fr)!important;justify-content:stretch!important;margin-top:22px!important;gap:10px!important;max-width:500px!important;margin-inline-start:auto!important}
body.ss-home-page .ss-hero-primary{grid-column:1/-1!important;width:100%!important}
body.ss-home-page .ss-hero-primary,body.ss-home-page .ss-hero-secondary{min-height:54px!important;border-radius:14px!important;font-size:15px!important}
body.ss-home-page .ss-hero-secondary,body.ss-home-page .ss-hero-demo-cta{width:100%!important}
body.ss-home-page .ss-trust-row{justify-content:flex-start!important;margin-top:18px!important;gap:16px!important;font-size:11px!important}
body.ss-home-page .ss-trust-links{justify-content:flex-start!important;margin-top:9px!important}
body.ss-home-page .ss-trust-safety-link{display:inline-flex;align-items:center;gap:7px;color:#1F6FAE;text-decoration:none;font-size:11.5px;font-weight:850;padding:4px 0;border-bottom:1px solid transparent;transition:color .18s ease,border-color .18s ease}
body.ss-home-page .ss-trust-safety-link:hover{color:#147fc7;border-bottom-color:#8ac8ed}
body.ss-home-page .ss-trust-safety-link b{font-size:13px}
body.ss-home-page .ss-hero-demo{
  grid-column:2!important;
  min-height:490px!important;
  width:100%!important;
  overflow:visible!important;
}
body.ss-home-page .ss-demo-orbit{width:430px!important;height:430px!important;background:radial-gradient(circle,#fff 0 31%,#e7f6f7 32% 63%,transparent 64%)!important;border-color:#9ed7da!important}
body.ss-home-page .ss-result-card{width:min(350px,82%)!important;border-color:#c9dce5!important;box-shadow:0 24px 50px rgba(26,73,104,.14)!important}

@media (min-width:768px) and (max-width:1180px){
  body.ss-home-page .ss-home-hero{grid-template-columns:minmax(0,1fr) minmax(300px,.9fr)!important;gap:24px!important;min-height:530px!important;padding:32px 26px!important}
  body.ss-home-page .ss-hero-brand{font-size:clamp(42px,6.3vw,62px)!important;letter-spacing:-1.8px!important}
  body.ss-home-page .ss-hero-copy h1{font-size:clamp(35px,4.9vw,50px)!important;line-height:1.24!important}
  body.ss-home-page .ss-hero-lead{font-size:15px!important;line-height:1.75!important;margin-top:17px!important}
  body.ss-home-page .ss-hero-demo{min-height:410px!important}
  body.ss-home-page .ss-demo-orbit{width:350px!important;height:350px!important}
  body.ss-home-page .ss-result-card{width:min(300px,82%)!important}
}

@media (max-width:767px){
  body.ss-home-page .ss-home-shell{width:calc(100% - 14px)!important;gap:14px!important}
  body.ss-home-page .ss-home-hero{
    grid-template-columns:1fr!important;
    gap:18px!important;
    min-height:0!important;
    padding:24px 16px 22px!important;
    border-radius:22px!important;
    overflow:hidden!important;
  }
  body.ss-home-page .ss-hero-copy{
    grid-column:1!important;
    width:100%!important;
    max-width:560px!important;
    justify-self:center!important;
    text-align:center!important;
  }
  body.ss-home-page .ss-hero-kicker{
    min-height:32px!important;
    padding:6px 10px!important;
    margin:0 auto 12px!important;
    font-size:9.5px!important;
    text-align:center!important;
  }
  body.ss-home-page .ss-hero-brand{
    width:auto!important;
    max-width:100%!important;
    margin:0 auto 10px!important;
    text-align:center!important;
    font-size:clamp(37px,12vw,55px)!important;
    line-height:1!important;
    letter-spacing:-1.5px!important;
    overflow-wrap:normal!important;
    word-break:keep-all!important;
  }
  body.ss-home-page .ss-hero-copy h1{
    max-width:520px!important;
    margin:0 auto!important;
    font-size:clamp(29px,8.4vw,42px)!important;
    line-height:1.23!important;
    letter-spacing:-.5px!important;
  }
  body.ss-home-page .ss-hero-lead{max-width:39ch!important;margin:15px auto 0!important;font-size:13.5px!important;line-height:1.7!important;text-align:center!important}
  body.ss-home-page .ss-hero-desc{max-width:43ch!important;margin:5px auto 0!important;font-size:11.5px!important;line-height:1.6!important;text-align:center!important}
  body.ss-home-page .ss-hero-actions{display:grid!important;grid-template-columns:1fr 1fr!important;gap:8px!important;margin-top:16px!important;max-width:500px!important;margin-inline:auto!important}
  body.ss-home-page .ss-hero-primary{grid-column:1/-1!important}
  body.ss-home-page .ss-hero-primary,body.ss-home-page .ss-hero-secondary{width:100%!important;min-height:46px!important;padding:0 8px!important;font-size:12.5px!important;border-radius:12px!important}
  body.ss-home-page .ss-hero-demo-cta{grid-column:auto!important;width:100%!important;min-height:46px!important;font-size:11px!important}
  body.ss-home-page .ss-trust-row{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;justify-content:stretch!important;gap:7px!important;margin-top:14px!important;font-size:9px!important;text-align:center!important}
  body.ss-home-page .ss-trust-item{display:grid!important;justify-items:center!important;gap:4px!important;min-width:0!important}
  body.ss-home-page .ss-trust-ic{width:25px!important;height:25px!important;flex:0 0 25px!important}
  body.ss-home-page .ss-trust-links{justify-content:center!important;margin-top:8px!important}
  body.ss-home-page .ss-trust-safety-link{font-size:10.5px!important;justify-content:center!important}
  body.ss-home-page .ss-hero-demo{grid-column:1!important;min-height:340px!important;height:auto!important;width:100%!important;margin-top:0!important}
  body.ss-home-page .ss-demo-orbit{width:290px!important;height:290px!important}
  body.ss-home-page .ss-result-card{width:min(245px,72vw)!important;padding:10px!important;border-radius:19px!important;transform:rotate(-.5deg)!important}
  body.ss-home-page .ss-tech-card{width:68px!important;min-height:59px!important;border-radius:12px!important;padding:5px 3px!important}
  body.ss-home-page .ss-tech-card .ic{font-size:17px!important}
  body.ss-home-page .ss-tech-card b{font-size:8px!important;margin-top:3px!important}
  body.ss-home-page .ss-tech-card small{display:none!important}
  body.ss-home-page .ss-tech-data{left:4%!important;top:15%!important}
  body.ss-home-page .ss-tech-ai{right:4%!important;top:13%!important}
  body.ss-home-page .ss-tech-health{left:5%!important;bottom:10%!important}
  body.ss-home-page .ss-next-panel,body.ss-home-page .ss-source-panel{display:none!important}
  body.ss-home-page .ss-demo-note{display:none!important}
}

@media (max-width:430px){
  body.ss-home-page .ss-home-hero{padding:22px 12px 20px!important}
  body.ss-home-page .ss-hero-brand{font-size:clamp(34px,11.5vw,46px)!important;letter-spacing:-1.2px!important}
  body.ss-home-page .ss-hero-copy h1{font-size:clamp(28px,8.1vw,35px)!important;line-height:1.24!important}
  body.ss-home-page .ss-hero-lead{font-size:12.5px!important}
  body.ss-home-page .ss-hero-actions{grid-template-columns:1fr!important}
  body.ss-home-page .ss-hero-primary,body.ss-home-page .ss-hero-demo-cta{grid-column:auto!important}
  body.ss-home-page .ss-trust-row{grid-template-columns:1fr 1fr!important}
  body.ss-home-page .ss-trust-item:last-child{grid-column:1/-1!important}
  body.ss-home-page .ss-hero-demo{min-height:310px!important}
  body.ss-home-page .ss-demo-orbit{width:260px!important;height:260px!important}
  body.ss-home-page .ss-result-card{width:min(225px,74vw)!important}
  body.ss-home-page .ss-tech-card{width:61px!important;min-height:54px!important}
}

@media (max-width:350px){
  body.ss-home-page .ss-hero-kicker{font-size:8.8px!important}
  body.ss-home-page .ss-hero-brand{font-size:33px!important}
  body.ss-home-page .ss-hero-copy h1{font-size:27px!important}
  body.ss-home-page .ss-hero-lead{font-size:12px!important}
  body.ss-home-page .ss-hero-demo{min-height:285px!important}
  body.ss-home-page .ss-demo-orbit{width:235px!important;height:235px!important}
  body.ss-home-page .ss-result-card{width:205px!important}
}

/* ===== V69 final whole-site size, shape, controls, and typography audit ===== */
/* Controls: consistent touch size without inflating small explanatory text. */
button,.btn,.opt,.auth-btn,.ss-btn,.ss-btn-primary,.ss-btn-danger,.ss-report-action,.ss-feedback-btn,.ss-feedback-submit,.doctor-card-close,.symptom-path-next,.symptom-path-skip,.w-menu-btn,.sea-btn,.retry{min-height:44px!important}
.doctor-card-close,.w-menu-btn{min-width:44px!important;width:44px!important;height:44px!important}
input:not([type="checkbox"]):not([type="radio"]):not([type="range"]),select,textarea{min-height:44px}
/* Primary surfaces use one geometry; nested chips remain pills by design. */
.card,.ss-card,.ss-report-card,.sea-result,.sea-topic-card,.calc-card,.trust-simple-card,.manage-card,.memory-card,.ss-profile-card{border-radius:16px!important}
input:not([type="checkbox"]):not([type="radio"]):not([type="range"]),select,textarea,.btn,.opt,.auth-btn,.ss-btn,.ss-report-action{border-radius:12px!important}
/* Readability floors for real UI copy on compact screens. */
@media(max-width:767px){
  body.ss-home-page .ss-hero-kicker{font-size:10.5px!important}
  body.ss-home-page .ss-trust-row{font-size:10.5px!important}
  body.ss-home-page .ss-tool small{font-size:10.5px!important;line-height:1.45!important}
  body.ss-home-page .ss-how-step small{font-size:10.5px!important;line-height:1.5!important}
  body.ss-home-page .ss-source-badge{font-size:10px!important}
  .ss-bnav a{font-size:9.8px!important;line-height:1.2!important}
  .symptom-path-node b{font-size:10.5px!important}.symptom-path-node small{font-size:10px!important}
}
@media(max-width:390px){
  .ss-bnav a{font-size:9.5px!important}
  body.ss-home-page .ss-hero-kicker{font-size:10px!important}
}
@media(max-width:340px){
  .ss-bnav a{font-size:9.5px!important}
  body.ss-home-page .ss-hero-kicker{font-size:10px!important}
}
/* The answer-impact copy intentionally stays compact, but never unreadable. */
.followup-impact-title{font-size:10.5px!important}.followup-impact-answer{font-size:10.3px!important}.followup-impact-detail{font-size:10.5px!important}.followup-impact-note{font-size:9.6px!important}
/* Keep cards visually quiet and consistent instead of mixing large shadow styles. */
.ss-report-card,.card,.ss-card,.sea-result,.sea-topic-card,.calc-card{box-shadow:0 5px 18px rgba(31,86,127,.055)!important}
/* Modal sizing stays inside the viewport on all small devices. */
.doctor-card,.ss-modal,.expl-modal,.asst-modal{max-width:calc(100vw - 20px)!important}
@media(max-width:430px){.doctor-card,.ss-modal,.expl-modal,.asst-modal{max-width:calc(100vw - 12px)!important}.doctor-card-overlay,.ss-modal-overlay,.expl-bg,.asst-modal-bg{padding:6px!important}}

/* ===== V70 desktop hero + clickability hardening ===== */
body.ss-home-page .ss-hero-copy{position:relative!important;z-index:20!important;min-width:0!important}
body.ss-home-page .ss-hero-actions{position:relative!important;z-index:30!important;pointer-events:auto!important}
body.ss-home-page .ss-hero-actions a,body.ss-home-page .ss-hero-actions button{position:relative!important;z-index:31!important;pointer-events:auto!important}
body.ss-home-page .ss-hero-primary,body.ss-home-page .ss-hero-secondary,body.ss-home-page .ss-hero-demo-cta{box-sizing:border-box!important;max-width:100%!important}
/* The visual result mockup is decorative; it must never sit over real CTA hit areas. */
body.ss-home-page .ss-hero-demo{pointer-events:none!important;z-index:2!important}
body.ss-home-page .ss-hero-demo a,body.ss-home-page .ss-hero-demo button{pointer-events:none!important}

@media (min-width:901px){
  body.ss-home-page .ss-home-shell{width:min(1240px,calc(100% - 40px))!important}
  body.ss-home-page .ss-home-hero{
    direction:ltr!important;
    grid-template-columns:minmax(330px,.88fr) minmax(0,1.12fr)!important;
    gap:clamp(24px,3.2vw,48px)!important;
    padding:clamp(30px,3.8vw,54px)!important;
    min-height:560px!important;
    overflow:hidden!important;
  }
  body.ss-home-page .ss-hero-demo{grid-column:1!important;grid-row:1!important;min-width:0!important;width:100%!important}
  body.ss-home-page .ss-hero-copy{
    grid-column:2!important;grid-row:1!important;direction:rtl!important;
    width:100%!important;max-width:none!important;justify-self:stretch!important;text-align:right!important;
  }
  body.ss-home-page .ss-hero-kicker{margin-inline-start:auto!important;margin-inline-end:0!important}
  body.ss-home-page .ss-hero-brand{
    display:block!important;width:100%!important;max-width:100%!important;margin:0 0 12px!important;
    text-align:right!important;white-space:nowrap!important;overflow:visible!important;
    font-size:clamp(42px,4.7vw,70px)!important;line-height:1.02!important;letter-spacing:-1.8px!important;
  }
  body.ss-home-page .ss-hero-copy h1{
    width:100%!important;max-width:100%!important;font-size:clamp(36px,4vw,58px)!important;
    line-height:1.24!important;letter-spacing:-.8px!important;overflow-wrap:anywhere!important;
  }
  body.ss-home-page .ss-hero-lead,body.ss-home-page .ss-hero-desc{max-width:52ch!important}
  body.ss-home-page .ss-hero-actions{max-width:540px!important;margin-inline-start:auto!important;margin-inline-end:0!important}
}
@media (min-width:901px) and (max-width:1180px){
  body.ss-home-page .ss-home-shell{width:min(1120px,calc(100% - 28px))!important}
  body.ss-home-page .ss-home-hero{grid-template-columns:minmax(300px,.86fr) minmax(0,1.14fr)!important;gap:22px!important;padding:30px 24px!important}
  body.ss-home-page .ss-hero-brand{font-size:clamp(38px,4.9vw,56px)!important;letter-spacing:-1.25px!important}
  body.ss-home-page .ss-hero-copy h1{font-size:clamp(32px,4.3vw,47px)!important}
  body.ss-home-page .ss-hero-lead{font-size:14.5px!important;line-height:1.75!important}
  body.ss-home-page .ss-demo-orbit{width:330px!important;height:330px!important}
  body.ss-home-page .ss-result-card{width:min(292px,82%)!important}
}
@media (min-width:1181px){
  body.ss-home-page .ss-hero-copy{padding-inline-end:4px!important}
}

/* ===== V191 professional mobile + accessibility hardening ===== */
:focus-visible{outline:3px solid #0b5f96!important;outline-offset:3px!important}
a:focus-visible,button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{border-radius:6px}
button,a,.btn,[role="button"],input,select,textarea{touch-action:manipulation}
.em-alert{color:#742020!important;background:#fff6f6!important;border-color:#e8b9b9!important;font-weight:700}
.em-num.red{color:#8a1f1f!important}.em-call{min-height:48px!important;font-weight:850!important}
.drop{min-height:180px!important;cursor:pointer!important}.drop:focus-visible{outline:3px solid #0b5f96!important;outline-offset:4px!important}
#bloodReadBtn{min-height:50px!important}
#bloodRes,#bloodReadStatus{overflow-wrap:anywhere}
.chat-wrap,.chat-body,.chat-input,.ss-flow{min-width:0!important;max-width:100%!important}
.chat-body{overflow-wrap:anywhere}
@media(max-width:767px){
  html{font-size:16px!important}
  body{overflow-x:hidden!important;-webkit-text-size-adjust:100%}
  input:not([type="checkbox"]):not([type="radio"]),select,textarea{font-size:16px!important;max-width:100%!important}
  .container,.wrap,.card,.chat-wrap,.labdash,.labx-section{max-width:100%!important;min-width:0!important}
  img,svg,canvas,video{max-width:100%;height:auto}
  .chat-wrap{width:100%!important;margin-inline:auto!important}
  .chat-body{padding-inline:clamp(10px,3.5vw,16px)!important}
  .chat-input{gap:7px!important;padding-inline:8px!important}
  .chat-input textarea,.chat-input input{min-width:0!important;width:100%!important}
  .drop{min-height:150px!important;padding:20px 14px!important}
  .d-text,.d-note,.d-file{overflow-wrap:anywhere;word-break:break-word}
  .grid2{grid-template-columns:1fr!important}
  .blood-consent-card{align-items:flex-start!important}
  .labx-table-wrap,.table-wrap{max-width:100%!important;overflow-x:auto!important;-webkit-overflow-scrolling:touch}
  .labx-results,.labx-source-grid,.labx-flag-list,.labx-trend{grid-template-columns:1fr!important}
  .labdash-meta .file{max-width:70vw!important}
  .labdash-meta-btn{margin-inline-start:0!important;width:100%!important;justify-content:center!important}
  .em-grid3{grid-template-columns:1fr!important}
  .em-call{width:100%!important;justify-content:center!important}
}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}}

/* V206 — isolate native binary controls from text-field geometry.
   Checkboxes/radios must never inherit the 48px text-input min-height/padding. */
input[type="checkbox"],input[type="radio"]{
  min-height:0!important;
  padding:0!important;
  box-shadow:none!important;
}
.ss-feedback-public input[type="checkbox"],
input[type="checkbox"][data-share],
input[type="checkbox"][data-prev],
.delivery-option input[type="radio"]{
  width:18px!important;
  height:18px!important;
  min-width:18px!important;
  min-height:18px!important;
  max-width:18px!important;
  padding:0!important;
  flex:0 0 18px;
  accent-color:var(--v2-blue);
}

/* ===== V237 iPhone typography + no-overlap hardening =====
   Fixes: oversized symptom-method labels and hero trust text colliding with
   the decorative result preview on narrow Safari/iPhone layouts. */
@media (max-width:640px){
  body.ss-chat-page[data-chat-step="symptoms"] .symptom-method-tabs{
    grid-template-columns:repeat(3,minmax(0,1fr))!important;
    gap:6px!important;
    padding:5px!important;
    overflow:hidden!important;
  }
  body.ss-chat-page[data-chat-step="symptoms"] .symptom-method-btn{
    min-width:0!important;
    width:100%!important;
    min-height:68px!important;
    padding:7px 5px!important;
    gap:4px!important;
    overflow:hidden!important;
    line-height:1.25!important;
    font-size:12px!important;
    text-align:center!important;
  }
  body.ss-chat-page[data-chat-step="symptoms"] .symptom-method-btn>span:first-child{
    display:block!important;
    font-size:18px!important;
    line-height:1!important;
  }
  body.ss-chat-page[data-chat-step="symptoms"] .symptom-method-copy{
    display:grid!important;
    grid-template-columns:1fr!important;
    gap:1px!important;
    width:100%!important;
    min-width:0!important;
    font-size:12px!important;
    line-height:1.3!important;
    text-align:center!important;
  }
  body.ss-chat-page[data-chat-step="symptoms"] .symptom-method-copy>b{
    display:block!important;
    width:100%!important;
    min-width:0!important;
    margin:0!important;
    font-size:12px!important;
    line-height:1.32!important;
    font-weight:850!important;
    white-space:normal!important;
    overflow-wrap:normal!important;
    word-break:keep-all!important;
  }
  body.ss-chat-page[data-chat-step="symptoms"] .symptom-method-copy>small{
    display:block!important;
    width:100%!important;
    margin:0!important;
    font-size:9.5px!important;
    line-height:1.28!important;
    color:#6a7d8e!important;
    white-space:normal!important;
    word-break:keep-all!important;
  }
  body.ss-chat-page[data-chat-step="symptoms"] .symptom-method-intro b{
    font-size:14px!important;
    line-height:1.45!important;
  }
  body.ss-chat-page[data-chat-step="symptoms"] .symptom-method-intro small{
    font-size:11px!important;
    line-height:1.55!important;
  }
  body.ss-chat-page[data-chat-step="symptoms"] .step-focus-question{
    font-size:20px!important;
    line-height:1.45!important;
    overflow-wrap:break-word!important;
  }
}

@media (max-width:767px){
  body.ss-home-page .ss-home-hero{
    overflow:hidden!important;
  }
  body.ss-home-page .ss-hero-demo{
    min-width:0!important;
    max-width:100%!important;
    overflow:hidden!important;
  }
  body.ss-home-page .ss-result-card{
    max-width:100%!important;
    box-sizing:border-box!important;
  }
  body.ss-home-page .ss-trust-row{
    grid-column:1/-1!important;
    width:100%!important;
    max-width:100%!important;
    display:grid!important;
    grid-template-columns:repeat(3,minmax(0,1fr))!important;
    gap:7px!important;
    margin:0!important;
    padding:2px 0 0!important;
    position:relative!important;
    z-index:12!important;
    overflow:visible!important;
    font-size:10.5px!important;
    line-height:1.38!important;
  }
  body.ss-home-page .ss-trust-item,
  body.ss-home-page .ss-trust-item:last-child{
    grid-column:auto!important;
    display:flex!important;
    flex-direction:column!important;
    align-items:center!important;
    justify-content:flex-start!important;
    gap:4px!important;
    width:100%!important;
    min-width:0!important;
    max-width:100%!important;
    padding:5px 3px!important;
    margin:0!important;
    text-align:center!important;
    white-space:normal!important;
    overflow:hidden!important;
    box-sizing:border-box!important;
  }
  body.ss-home-page .ss-trust-item>*:not(.ss-trust-ic){
    display:block!important;
    width:100%!important;
    min-width:0!important;
    max-width:100%!important;
    font-size:10.5px!important;
    line-height:1.38!important;
    white-space:normal!important;
    overflow-wrap:break-word!important;
    word-break:normal!important;
    text-align:center!important;
  }
  body.ss-home-page .ss-trust-ic{
    width:24px!important;
    height:24px!important;
    min-width:24px!important;
    flex:0 0 24px!important;
    font-size:11px!important;
  }
}

@media (max-width:430px){
  body.ss-home-page .ss-trust-row{
    grid-template-columns:repeat(3,minmax(0,1fr))!important;
    gap:5px!important;
    font-size:9.8px!important;
  }
  body.ss-home-page .ss-trust-item>*:not(.ss-trust-ic){
    font-size:9.8px!important;
    line-height:1.35!important;
  }
  body.ss-home-page .ss-trust-ic{
    width:22px!important;
    height:22px!important;
    min-width:22px!important;
    flex-basis:22px!important;
  }
}

@media (max-width:360px){
  body.ss-chat-page[data-chat-step="symptoms"] .symptom-method-btn{
    min-height:64px!important;
    padding-inline:3px!important;
  }
  body.ss-chat-page[data-chat-step="symptoms"] .symptom-method-copy>b{font-size:11px!important}
  body.ss-chat-page[data-chat-step="symptoms"] .symptom-method-copy>small{font-size:9px!important}
  body.ss-home-page .ss-trust-row{grid-template-columns:1fr!important;gap:4px!important}
  body.ss-home-page .ss-trust-item{flex-direction:row!important;justify-content:center!important;padding:3px 6px!important}
  body.ss-home-page .ss-trust-item>*:not(.ss-trust-ic){width:auto!important;font-size:10px!important}
}


/* ===== V238 inline body-map symptom entry =====
   The body map is the default mobile symptom-entry experience. It renders
   directly in the step instead of a second launcher/modal, so tapping a body
   area immediately reveals common symptoms and the custom description field. */
@media screen{
  body.ss-chat-page[data-chat-step="symptoms"] .symptom-method-switcher-v238{display:grid!important;gap:10px!important}
  body.ss-chat-page[data-chat-step="symptoms"] .symptom-method-tabs-compact{
    display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;
    gap:6px!important;padding:4px!important;margin:0!important;
    border:1px solid #d9e8f2!important;border-radius:14px!important;background:#f3f8fc!important;
  }
  body.ss-chat-page[data-chat-step="symptoms"] .symptom-method-tabs-compact .symptom-method-btn{
    min-height:48px!important;height:auto!important;padding:7px 5px!important;gap:4px!important;
    flex-direction:row!important;border:0!important;border-radius:10px!important;
    background:transparent!important;box-shadow:none!important;color:#536f87!important;
  }
  body.ss-chat-page[data-chat-step="symptoms"] .symptom-method-tabs-compact .symptom-method-btn.active{
    background:#fff!important;color:#0f67bf!important;box-shadow:0 3px 10px rgba(18,83,132,.10)!important;
  }
  body.ss-chat-page[data-chat-step="symptoms"] .symptom-method-tabs-compact .symptom-method-btn>span:first-child{
    flex:0 0 auto!important;font-size:16px!important;line-height:1!important;
  }
  body.ss-chat-page[data-chat-step="symptoms"] .symptom-method-tabs-compact .symptom-method-copy{
    display:block!important;width:auto!important;min-width:0!important;text-align:center!important;
  }
  body.ss-chat-page[data-chat-step="symptoms"] .symptom-method-tabs-compact .symptom-method-copy>b{
    display:block!important;width:auto!important;font-size:11.5px!important;line-height:1.25!important;
    white-space:normal!important;word-break:normal!important;overflow-wrap:normal!important;
  }
  body.ss-chat-page[data-chat-step="symptoms"] .symptom-method-pane-body{
    width:100%!important;min-width:0!important;overflow:visible!important;
  }
  body.ss-chat-page[data-chat-step="symptoms"] .symptom-method-pane-body .smart-body-card.v221{
    margin:0!important;padding:10px 8px 12px!important;border:1px solid #d8e7f2!important;
    border-radius:18px!important;background:#fff!important;box-shadow:none!important;
  }
  body.ss-chat-page[data-chat-step="symptoms"] .symptom-method-pane-body .smart-body-copy{
    padding:0 4px 8px!important;text-align:center!important;
  }
  body.ss-chat-page[data-chat-step="symptoms"] .symptom-method-pane-body .smart-body-copy>b{
    font-size:19px!important;line-height:1.35!important;color:#0f365e!important;
  }
  body.ss-chat-page[data-chat-step="symptoms"] .symptom-method-pane-body .smart-body-copy p{
    margin:4px auto 0!important;font-size:11.5px!important;line-height:1.55!important;color:#60788d!important;
  }
  body.ss-chat-page[data-chat-step="symptoms"] .symptom-method-pane-body .smart-body-shell{
    display:grid!important;grid-template-columns:1fr!important;gap:10px!important;margin:0!important;
  }
  body.ss-chat-page[data-chat-step="symptoms"] .symptom-method-pane-body .smart-body-stage{
    width:100%!important;min-width:0!important;padding:9px 6px 10px!important;
    border:0!important;border-radius:16px!important;background:linear-gradient(180deg,#fbfdff,#f6fbff)!important;
    overflow:visible!important;
  }
  body.ss-chat-page[data-chat-step="symptoms"] .symptom-method-pane-body .smart-body-toolbar{margin-bottom:5px!important}
  body.ss-chat-page[data-chat-step="symptoms"] .symptom-method-pane-body .smart-body-hint{display:none!important}
  body.ss-chat-page[data-chat-step="symptoms"] .symptom-method-pane-body .smart-body-toggle{
    width:100%!important;max-width:none!important;min-height:44px!important;margin:0!important;
  }
  body.ss-chat-page[data-chat-step="symptoms"] .symptom-method-pane-body .smart-body-visual{
    width:min(360px,100%)!important;height:clamp(405px,62dvh,515px)!important;
    max-width:100%!important;margin:6px auto 0!important;
  }
  body.ss-chat-page[data-chat-step="symptoms"] .symptom-method-pane-body .smart-body-zone{
    min-width:38px!important;min-height:38px!important;touch-action:manipulation!important;
  }
  body.ss-chat-page[data-chat-step="symptoms"] .symptom-method-pane-body .smart-body-zone>span{width:17px!important;height:17px!important}
  body.ss-chat-page[data-chat-step="symptoms"] .symptom-method-pane-body .smart-body-zone>b{
    min-width:72px!important;max-width:102px!important;padding:6px 7px!important;
    font-size:10.5px!important;line-height:1.25!important;white-space:normal!important;text-align:center!important;
  }
  body.ss-chat-page[data-chat-step="symptoms"] .symptom-method-pane-body .smart-body-selection-note{font-size:10.5px!important}
  body.ss-chat-page[data-chat-step="symptoms"] .symptom-method-pane-body .smart-body-selection-tray{
    width:100%!important;margin:8px 0 0!important;padding:9px!important;
    grid-template-columns:minmax(0,1fr) 104px!important;gap:7px!important;border-radius:14px!important;
  }
  body.ss-chat-page[data-chat-step="symptoms"] .symptom-method-pane-body .smart-body-selection-tray-head{font-size:11px!important}
  body.ss-chat-page[data-chat-step="symptoms"] .symptom-method-pane-body .smart-body-selection-chip{min-height:42px!important;font-size:11px!important;padding:7px!important}
  body.ss-chat-page[data-chat-step="symptoms"] .symptom-method-pane-body .smart-body-next{min-width:104px!important;min-height:42px!important;font-size:12px!important}
  body.ss-chat-page[data-chat-step="symptoms"] .symptom-method-pane-body .smart-body-results{
    min-height:0!important;margin:0!important;padding:11px!important;border:1px solid #dce9f2!important;
    border-radius:16px!important;background:#fff!important;
  }
  body.ss-chat-page[data-chat-step="symptoms"] .symptom-method-pane-body .smart-body-results:has(.smart-body-empty){display:none!important}
  body.ss-chat-page[data-chat-step="symptoms"] .symptom-method-pane-body .smart-body-symptom-chips{
    display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:7px!important;
  }
  body.ss-chat-page[data-chat-step="symptoms"] .symptom-method-pane-body .smart-body-symptom{
    min-height:46px!important;padding:9px 8px!important;font-size:12.5px!important;line-height:1.35!important;
  }
  body.ss-chat-page[data-chat-step="symptoms"] .symptom-method-pane-body .smart-body-other{margin-top:4px!important;padding:11px!important}
  body.ss-chat-page[data-chat-step="symptoms"] .symptom-method-pane-body .smart-body-other>b{font-size:14px!important}
  body.ss-chat-page[data-chat-step="symptoms"] .symptom-method-pane-body .smart-body-other>small{font-size:11.5px!important;line-height:1.55!important}
  body.ss-chat-page[data-chat-step="symptoms"] .symptom-method-pane-body .smart-body-other input{font-size:16px!important;min-height:48px!important}
  body.ss-chat-page[data-chat-step="symptoms"] .symptom-method-pane-body .smart-body-other button{min-height:46px!important;font-size:13px!important}
}
@media (max-width:380px){
  body.ss-chat-page[data-chat-step="symptoms"] .symptom-method-tabs-compact .symptom-method-btn{padding:6px 3px!important;gap:3px!important}
  body.ss-chat-page[data-chat-step="symptoms"] .symptom-method-tabs-compact .symptom-method-copy>b{font-size:10.5px!important}
  body.ss-chat-page[data-chat-step="symptoms"] .symptom-method-pane-body .smart-body-visual{width:min(330px,100%)!important;height:clamp(380px,58dvh,465px)!important}
  body.ss-chat-page[data-chat-step="symptoms"] .symptom-method-pane-body .smart-body-zone>b{min-width:66px!important;max-width:88px!important;font-size:9.6px!important;padding:5px 5px!important}
}



/* ===== V239 reference-matched clinical body map ===== */
body.ss-chat-page .smart-body-static-wrap{position:relative;z-index:1;width:100%;height:100%;display:flex;align-items:center;justify-content:center}
body.ss-chat-page .smart-body-static-art{display:block;width:100%;height:100%;object-fit:contain;filter:drop-shadow(0 10px 20px rgba(26,86,126,.08))}
body.ss-chat-page .smart-body-svg.v239{width:100%;height:100%;overflow:visible;filter:drop-shadow(0 10px 20px rgba(26,86,126,.08))}
body.ss-chat-page .smart-body-svg.v239 .body-zone-glow{fill:#1676e5;opacity:.24}
body.ss-chat-page .smart-body-svg.v239 .body-zone-ring{fill:rgba(22,118,229,.10);stroke:#1676e5;stroke-width:3;opacity:.88}
body.ss-chat-page .smart-body-svg.v239 .anatomy-soft{pointer-events:none}
body.ss-chat-page .smart-body-svg.v239 .muscle-lines{pointer-events:none}
body.ss-chat-page .smart-body-visual{background:radial-gradient(circle at 50% 43%,rgba(225,242,253,.52),rgba(255,255,255,0) 48%)}
body.ss-chat-page .smart-body-zone>span{background:#eaf4ff!important;border-color:#3f8fe5!important;box-shadow:0 0 0 4px rgba(255,255,255,.96),0 2px 8px rgba(27,103,171,.15)!important}
body.ss-chat-page .smart-body-zone>b{border-color:#c8dff2!important;background:rgba(255,255,255,.97)!important;color:#123b70!important;box-shadow:0 5px 15px rgba(21,70,108,.08)!important}
body.ss-chat-page .smart-body-zone>b::before{background:#4c91df!important;height:1.7px!important}
body.ss-chat-page .smart-body-zone.on>span{background:#1474df!important;border-color:#fff!important;box-shadow:0 0 0 4px #1474df,0 0 0 9px rgba(20,116,223,.14)!important}
body.ss-chat-page .smart-body-zone.on>b{background:linear-gradient(135deg,#1479e5,#0868d2)!important;border-color:#1479e5!important;color:#fff!important;box-shadow:0 8px 18px rgba(12,102,209,.24)!important}
body.ss-chat-page .smart-body-card.v221 .smart-body-toggle{background:#eef5fb!important;border:1px solid #d9e8f3!important}
body.ss-chat-page .smart-body-card.v221 .smart-toggle-btn{color:#536f87!important;font-weight:900!important}
body.ss-chat-page .smart-body-card.v221 .smart-toggle-btn.on{color:#0d6bce!important;background:#fff!important;border:1.5px solid #1676df!important;box-shadow:0 0 0 2px rgba(22,118,223,.08),0 5px 14px rgba(18,83,132,.08)!important}
body.ss-chat-page .smart-body-card.v221 .smart-body-stage{background:linear-gradient(180deg,#ffffff 0%,#fafdff 100%)!important}
@media screen{
  body.ss-chat-page[data-chat-step="symptoms"] .symptom-method-pane-body .smart-body-visual{height:clamp(445px,68dvh,575px)!important;width:min(382px,100%)!important}
  body.ss-chat-page[data-chat-step="symptoms"] .symptom-method-pane-body .smart-body-zone>b{min-width:76px!important;max-width:108px!important;font-size:10.2px!important;padding:6px 8px!important}
  body.ss-chat-page[data-chat-step="symptoms"] .symptom-method-pane-body .smart-body-zone.left>b{right:38px!important;left:auto!important}
  body.ss-chat-page[data-chat-step="symptoms"] .symptom-method-pane-body .smart-body-zone.right>b{left:38px!important;right:auto!important}
  body.ss-chat-page[data-chat-step="symptoms"] .symptom-method-pane-body .smart-body-zone>b::before{width:27px!important}
  body.ss-chat-page[data-chat-step="symptoms"] .symptom-method-pane-body .smart-body-zone.left>b::before{right:-27px!important}
  body.ss-chat-page[data-chat-step="symptoms"] .symptom-method-pane-body .smart-body-zone.right>b::before{left:-27px!important}
}
@media(max-width:380px){
  body.ss-chat-page[data-chat-step="symptoms"] .symptom-method-pane-body .smart-body-visual{height:clamp(420px,65dvh,520px)!important;width:min(350px,100%)!important}
  body.ss-chat-page[data-chat-step="symptoms"] .symptom-method-pane-body .smart-body-zone>b{min-width:68px!important;max-width:94px!important;font-size:9.4px!important;padding:5px 6px!important}
}


/* V249 result first screen */
.ss-emergency-strip{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin:12px 0 0;padding:12px 14px;border-radius:14px;background:#FFF8E6;border:1px solid #F1DFA6}
.ss-emergency-strip.urgent{background:#FFF1F1;border-color:#E9A5A5}
.ss-emergency-strip p{margin:0;flex:1 1 220px;font-size:13px;line-height:1.7}
.ss-call-btn{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:48px;padding:0 18px;border-radius:12px;background:#C62828;color:#fff!important;font-weight:800;text-decoration:none}
.ss-disclaimer{margin:10px 2px 0;font-size:12.5px;line-height:1.7;color:#4B6074}
.ss-details-divider{display:flex;align-items:center;gap:10px;margin:18px 0 6px;color:#4B6074;font-size:13px;font-weight:800}
.ss-details-divider:before,.ss-details-divider:after{content:"";flex:1;height:1px;background:#D5E2EA}
/* V249 contrast fixes (WCAG AA) found by the full-flow axe audit */
body.ss-chat-page .chat-head{background:#1F6FAE!important}
body.ss-chat-page #famSelect{background:rgba(0,0,0,.22)!important}
body.ss-chat-page .chat-head h3,body.ss-chat-page .chat-head p{color:#fff!important}
body.ss-chat-page .ss-quality-score,body.ss-chat-page a.ss-step-source{color:#1F6FAE!important}
/* V251 stronger emergency stop */
.em-overlay{background:rgba(127,29,29,.72)!important}
.em-card{max-width:520px!important;text-align:start!important}
.em-card h3,.em-card>p,.em-card .em-icon{text-align:center}
.em-card .em-icon{margin-inline:auto}
.em-card .em-flags,.em-card .em-btns{justify-content:center}
.em-card .em-why{margin:0 0 16px;padding:12px 14px;border-radius:14px;background:#FFF7F7;border:1px solid #FECACA;text-align:start;color:#7F1D1D}.ss-risk-why{margin:10px 0 0;padding:10px 12px;border-radius:12px;background:#FFFBEB;border:1px solid #FDE68A;color:#4B3A06;text-align:start}.ss-risk-why b{display:block;font-size:13.5px;margin-bottom:4px}.ss-risk-why p{margin:3px 0 0;font-size:13.5px;line-height:1.7}
.em-card .em-why-t{font-weight:800;font-size:14px;margin-bottom:6px;color:#991B1B}.em-card .em-why p{margin:4px 0 0;font-size:13.5px;line-height:1.7;color:#4B1D1D}
.em-call-main{font-size:18px!important;min-height:54px;display:inline-flex;align-items:center;padding:0 26px!important;animation:emPulse 1.6s ease-in-out infinite}
.em-call-alt{background:#7F1D1D!important}
.em-back{background:#B91C1C!important}
@keyframes emPulse{0%,100%{box-shadow:0 0 0 0 rgba(220,38,38,.55)}50%{box-shadow:0 0 0 12px rgba(220,38,38,0)}}
@media (prefers-reduced-motion:reduce){.em-call-main{animation:none}}
.em-steps{background:#FEF2F2;border:1px solid #FECACA;border-radius:14px;padding:12px 16px;margin:14px 0}
.em-steps-t{font-weight:800;color:#991B1B;margin-bottom:6px}
.em-steps ol{margin:0;padding-inline-start:22px;line-height:1.9;font-size:14.5px;color:#1F2937}
.em-confirm{margin-top:10px;padding:12px;border:1px dashed #c81e1e;border-radius:12px;text-align:center}
.em-confirm[hidden],.em-exit[hidden]{display:none!important}
.em-ghost{background:transparent!important;color:#4B5563!important;font-weight:600!important;font-size:13px!important}
body.ss-em-open{overflow:hidden}
/* V261 contrast (WCAG AA): later generic rules were overriding these colours on wide screens */
.nav .links a.v2-nav-cta,.nav .links a.v2-nav-cta:hover{background:#1b66a3!important;color:#fff!important}
#famSelect,body.ss-chat-page #famSelect{background:#fff!important;color:#123B70!important;border:1px solid #fff!important;font-weight:700}
.f-tg,.f-tg:hover,.footer .f-tg,.footer .f-tg:hover{background:#1b66a3!important;color:#fff!important}
.footer .f-love b,.footer .f-brand span{color:#1F6FAE!important}
/* V261 legibility floor: no UI text under 12px (safety banner, step label, bottom-nav labels, chat sub-title) */
body #ssOfflineBanner[hidden]{display:none!important}
body #ssOfflineBanner small{font-size:12.5px!important;line-height:1.6!important}
body #ssOfflineBanner a{font-size:13px!important;min-height:44px;display:inline-flex;align-items:center}
body.ss-chat-page #headP{font-size:12px!important;color:#fff!important}
body .ss-flow-copy span,body.ss-chat-page .ss-flow-copy span{font-size:12px!important}
body #ssBnav a span,body .ss-bnav a span{font-size:12px!important;font-weight:700;line-height:1.2}
body.ss-chat-page .chat-access>summary{min-height:44px;display:inline-flex;align-items:center}
.lang-sw a{min-height:40px;display:inline-flex;align-items:center}
body .account-label,body .account-menu-head small{font-size:12px!important}
body .ss-trust-item,body .ss-trust-ic,body .ss-trust-safety-link span,body .ss-hero-kicker b,body .ss-tech-card b,body .ss-v132-privacy b,body .ss-tools-all,body .ss-tool small,body .ss-how-step small,body .ss-source-more,body .ss-source-badge,body .ss-strength-stat span,body .ss-strength-note,body .ss-strength-note a,body .eyebrow{font-size:12px!important}
/* V262 legibility floor, part 2: demo card, privacy notes, medication time labels (>= 12px) */
body .ss-result-risk em,body .ss-result-risk small,body .ss-mini-row small,body .ss-mini-row b,body .ss-next-panel p,body .ss-source-logos span,body .ss-source-panel a,body .ss-tech-card small,body .ss-demo-note{font-size:12px!important;line-height:1.5}
body .ss-tech-card b,body .ss-mini-panel h3{font-size:12.5px!important}
body .ss-demo-note{width:130px}
body .med-time-field>small,body .med-time-field small{font-size:12px!important;font-weight:700;color:#475569}
body label small,body .consent small,body [class*="consent"] small,body [class*="privacy"] small,body .bconsent small,body .form-note,body .field-note{font-size:12px!important;line-height:1.7}
/* V262 part 3: small-viewport media rules were out-specifying the floor above */
html body .ss-mobile-account span,html body .ss-hero-kicker span,html body .ss-hero-kicker b,html body .ss-trust-row .ss-trust-item,html body .ss-tech-card b,html body .ss-v132-privacy b,html body .ss-result-risk em,html body .ss-result-risk small,html body .ss-mini-row small,html body .ss-mini-row span,html body .ss-mini-row b,html body .ss-core-card p,html body .ss-tools-head .ss-tools-all,html body .ss-tool small,html body .ss-strength-stat span,html body .ss-how-step small,html body .ss-how-step .ss-how-num,html body .ss-source-badge,html body .ss-source-logos span,html body .ss-next-panel p{font-size:12px!important;line-height:1.5}
html body .ss-how-step .ss-how-num{min-width:22px}
html body .ss-mini-row span{font-size:14px!important}
html body label.med-time-field small,html body .bconsent small,html body #bloodCollectConsent~label small,html body .consent-note,html body label small{font-size:12px!important}
/* V262 part 4: home inline CSS uses body.ss-home-page + !important; match with a stronger selector */
html body.ss-home-page.ss-home-page .ss-tech-card b,html body.ss-home-page.ss-home-page .ss-v132-privacy b,html body.ss-home-page.ss-home-page .ss-result-risk em,html body.ss-home-page.ss-home-page .ss-result-risk small,html body.ss-home-page.ss-home-page .ss-mini-row small,html body.ss-home-page.ss-home-page .ss-mini-row b,html body.ss-home-page.ss-home-page .ss-core-card p,html body.ss-home-page.ss-home-page .ss-tool small,html body.ss-home-page.ss-home-page .ss-strength-stat span,html body.ss-home-page.ss-home-page .ss-how-step small,html body.ss-home-page.ss-home-page .ss-how-step .ss-how-num,html body.ss-home-page.ss-home-page .ss-source-badge,html body.ss-home-page.ss-home-page .ss-source-logos span,html body.ss-home-page.ss-home-page .ss-next-panel p,html body.ss-home-page.ss-home-page .ss-source-panel a,html body.ss-home-page.ss-home-page .ss-tools-head .ss-tools-all,html body.ss-home-page.ss-home-page .ss-trust-row .ss-trust-item,html body.ss-home-page.ss-home-page .ss-hero-kicker b,html body.ss-home-page.ss-home-page .ss-demo-note{font-size:12px!important;line-height:1.5}
/* V262 part 5: page-local notes */
html body .delivery-note,html body .lab-page-add-note,html body #labPageHint,html body .camera-review small{font-size:12px!important;line-height:1.7}

/* V271 unified footer: one centred container, logo + slogan on top, three balanced columns, links row, soft divider, credits */
html body .footer{padding:26px 20px calc(20px + env(safe-area-inset-bottom,0px))!important;margin-top:clamp(28px,4vw,48px)!important;text-align:center!important}
html body .footer .f-inner{max-width:1040px;margin-inline:auto}
html body .footer .f-brand{display:inline-flex!important;align-items:center;gap:10px;direction:ltr;text-decoration:none!important;font-size:24px!important;line-height:1.2;min-height:44px}
html body .footer .f-logo{display:block;width:40px;height:40px;flex:0 0 40px}
html body .footer .f-brand span{color:transparent!important}
html body .footer .f-tag,html body .footer .f-love,html body .footer .f-copy{display:block;width:100%;max-width:none!important;margin-inline:auto!important;text-align:center!important}
html body .footer .f-tag{margin:2px 0 0!important;font-size:14px!important;font-weight:600;color:#566A7D!important}
html body .footer .f-grid{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:14px 36px!important;max-width:none!important;margin:18px auto 0!important;text-align:start!important;align-items:start}
html body .footer .f-sec{min-width:0}
html body .footer .f-sec h4{font-size:14px!important;margin:0 0 6px!important}
html body .footer .f-sec p,html body .footer .f-sec .f-owner{font-size:13px!important;line-height:1.75!important;margin:0}
html body .footer .f-sec .f-tg{margin-top:4px}
html body .footer .f-links{display:flex!important;flex-wrap:wrap;justify-content:center;gap:0 6px!important;margin:14px 0 0!important;font-size:13.5px!important}
html body .footer .f-links a{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:0 12px;font-weight:700}
html body .footer .f-sep{border:0;height:1px;margin:6px auto 12px;max-width:100%;background:linear-gradient(90deg,transparent,#cfe0ee 15%,#cfe0ee 85%,transparent)}
html body .footer .f-love{margin:0!important;font-size:12.5px!important}
html body .footer .f-copy{margin:4px 0 0!important;font-size:12px!important}
@media (max-width:1180px){html body .footer{padding-bottom:calc(var(--bnav-h,64px) + var(--safe-bottom,0px) + 20px)!important}}
@media (min-width:601px) and (max-width:900px){html body .footer .f-grid{gap:14px 22px!important}html body .footer .f-sec p,html body .footer .f-sec .f-owner{font-size:12.5px!important}}
@media (max-width:600px){html body .footer{padding:22px 16px calc(var(--bnav-h,64px) + var(--safe-bottom,0px) + 16px)!important}html body .footer .f-grid{grid-template-columns:1fr!important;gap:14px!important;margin-top:12px!important}html body .footer .f-sec{padding-bottom:12px;border-bottom:1px solid #e3edf5}html body .footer .f-sec:last-child{border-bottom:0;padding-bottom:0}}

/* V272 home hero on phones/tablets: ONE authoritative flow layout (no fixed heights, no overlap, no grid blow-out).
   The decorative figure keeps its absolute stage, but the stage is reserved with padding so the card and the trust row stay in normal flow. */
@media (max-width:560px){
html body.ss-home-page.ss-home-page .ss-home-hero{grid-template-columns:minmax(0,1fr)!important}
html body.ss-home-page.ss-home-page .ss-home-hero>*,html body.ss-home-page.ss-home-page .ss-hero-copy>*{min-width:0!important;max-width:100%!important;box-sizing:border-box!important}
html body.ss-home-page.ss-home-page .ss-hero-kicker,html body.ss-home-page.ss-home-page .ss-hero-kicker b{white-space:normal!important;text-align:center!important;justify-content:center!important;line-height:1.5!important}
html body.ss-home-page.ss-home-page .ss-hero-demo{height:auto!important;min-height:0!important;padding-top:350px!important;padding-bottom:0!important;display:block!important;overflow:visible!important}
html body.ss-home-page.ss-home-page .ss-result-card{position:relative!important;top:auto!important;left:auto!important;right:auto!important;bottom:auto!important;inset:auto!important;transform:none!important;width:min(100%,380px)!important;height:auto!important;max-height:none!important;margin:0 auto!important}
html body.ss-home-page.ss-home-page .ss-mini-row,html body.ss-home-page.ss-home-page .ss-mini-panel,html body.ss-home-page.ss-home-page .ss-result-risk{height:auto!important;min-height:0!important}
html body.ss-home-page.ss-home-page .ss-mini-row>div{min-width:0;flex:1 1 auto;overflow-wrap:anywhere}
html body.ss-home-page.ss-home-page .ss-trust-row{position:relative!important;z-index:auto!important;display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:6px!important;margin:16px 0 0!important;padding:12px 6px!important;transform:none!important;border:1px solid #d9e8f4;border-radius:16px;background:#f8fbff;align-items:start}
html body.ss-home-page.ss-home-page .ss-tech-data,html body.ss-home-page.ss-home-page .ss-tech-health{left:0!important;right:auto!important}
html body.ss-home-page.ss-home-page .ss-tech-ai,html body.ss-home-page.ss-home-page .ss-v132-privacy{right:0!important;left:auto!important}
html[dir="ltr"] body.ss-home-page.ss-home-page .ss-result-card,html[dir="ltr"] body.ss-home-page.ss-home-page .ss-mini-row,html[dir="ltr"] body.ss-home-page.ss-home-page .ss-result-top{direction:ltr!important}
html[dir="ltr"] body.ss-home-page.ss-home-page .ss-mini-row>span,html[dir="ltr"] body.ss-home-page.ss-home-page .ss-result-back{display:inline-block;transform:scaleX(-1)}
html body.ss-home-page.ss-home-page .ss-trust-item{overflow-wrap:break-word!important;word-break:normal!important}
@media (max-width:480px){html body.ss-home-page.ss-home-page .ss-trust-row{grid-template-columns:minmax(0,1fr)!important;gap:2px!important;padding:6px 14px!important}html body.ss-home-page.ss-home-page .ss-trust-item{flex-direction:row!important;justify-content:flex-start!important;text-align:start!important;gap:10px!important;min-height:44px;font-size:13px!important}}
html body.ss-home-page.ss-home-page .ss-trust-item{grid-column:auto!important;grid-row:auto!important;position:static!important;display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:flex-start!important;gap:6px!important;min-width:0!important;margin:0!important;text-align:center!important;font-size:12px!important;line-height:1.45!important;font-weight:700;overflow-wrap:anywhere}
}

/* V272 possible-conditions rows: one row per condition = name (wraps freely) + match chip; never stacked on top of each other */
html body .ss-condition-head{display:flex!important;flex-direction:row!important;flex-wrap:nowrap!important;align-items:flex-start!important;justify-content:space-between!important;gap:10px!important}
html body .ss-condition-head .ss-condition-name{flex:1 1 0!important;min-width:0!important;overflow-wrap:anywhere!important;line-height:1.5!important}
html body .ss-condition-head .ss-match{flex:0 0 auto!important;align-self:flex-start!important;white-space:nowrap!important;font-size:12px!important;padding:5px 10px!important}
html body .ss-condition-why,html body .ss-condition-source{overflow-wrap:anywhere}
/* V275: English home sections follow LTR (they were hard-coded RTL) */
html[dir="ltr"] body.ss-home-page :is(.ss-strength,.ss-section-head,.ss-tools-head,.ss-how-head,.ss-how-flow){direction:ltr!important}
html[dir="ltr"] body.ss-home-page :is(.ss-section-head,.ss-how-head){text-align:left!important}
html[dir="ltr"] body.ss-home-page .ss-how-step:not(:last-child):after{content:"›"!important;left:auto!important;right:-13px!important}
/* V276: reference organisations as unified text names (no emoji/icons) */
html body .ss-knowledge .ss-sources-logos{direction:ltr!important;display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:10px!important;justify-content:stretch!important;max-width:760px;margin-inline:auto}
html body .ss-knowledge .ss-source-badge{display:flex!important;align-items:center!important;justify-content:center!important;min-height:44px;padding:8px 12px!important;background:#fff;border:1px solid #D9E8F4;border-radius:14px;color:#123B70!important;font-size:13px!important;font-weight:800!important;letter-spacing:.02em;text-align:center;line-height:1.3;white-space:normal}
html body .ss-knowledge .ss-source-badge i{display:none!important}
@media (max-width:560px){html body .ss-knowledge .ss-sources-logos{grid-template-columns:repeat(2,minmax(0,1fr))!important}html body .ss-knowledge .ss-source-badge{font-size:12px!important}}
/* V279: English hero follows LTR; arrows/labels in English */
html[dir="ltr"] body.ss-home-page .ss-home-hero{direction:ltr!important}
html[dir="ltr"] body.ss-home-page :is(.ss-hero-copy,.ss-hero-copy h1,.ss-hero-copy p,.ss-hero-actions,.ss-trust-row){text-align:left!important}
html[dir="ltr"] body.ss-home-page .ss-hero-kicker{justify-content:flex-start!important}
html[dir="ltr"] body.ss-home-page :is(.ss-hero-copy,.ss-hero-copy *,.ss-trust-row,.ss-trust-row *,.ss-trust-safety-link,.ss-hero-demo,.ss-hero-demo *){direction:ltr!important}
@media(min-width:768px){
html[dir="ltr"] body.ss-home-page .ss-hero-copy{grid-column:1!important}
html[dir="ltr"] body.ss-home-page .ss-hero-demo{grid-column:2!important}
}
html[dir="ltr"] body.ss-home-page .ss-hero-demo .ss-demo-note{display:none!important}
html[dir="ltr"] body.ss-home-page .ss-hero-lead{margin-left:0!important;margin-right:auto!important}
html[dir="ltr"] body.ss-home-page .ss-hero-demo :is(.ss-result-top,.ss-result-risk,.ss-possible-card,.ss-result-row){text-align:left!important}
html[lang="en"] body.ss-home-page .ss-result-top strong:after{content:" · Illustrative example"!important}
