/* =====================================================================
   Pillvera global design system
   One stylesheet for every surface: landing page, free consumer tools,
   developer (client) portal, manufacturer portal and admin console.
   Brand color comes from Admin -> Branding as CSS variables
   (--brand-primary, --brand-rgb ...) emitted by includes/branding.php.
   ===================================================================== */

:root {
    --brand-primary: #0e9f8c;
    --brand-primary-dark: #0a6f62;
    --brand-primary-darker: #064038;
    --brand-primary-light: #e3f6f3;
    --brand-on-primary: #ffffff;
    --brand-rgb: 14, 159, 140;

    --ink: #0b2230;
    --ink-2: #33495a;
    --ink-3: #66798a;
    --line: #e2eaee;
    --line-2: #eef3f5;
    --bg: #f4f8f8;
    --surface: #ffffff;
    --mint: #34d399;
    --sky: #38bdf8;
    --violet: #8b5cf6;
    --danger: #e5484d;
    --danger-bg: #fdecec;
    --warn: #d98a00;
    --warn-bg: #fff4dc;
    --ok: #12945a;
    --ok-bg: #e3f7ec;

    --radius: 16px;
    --radius-sm: 10px;
    --shadow-sm: 0 1px 2px rgba(11, 34, 48, .05), 0 1px 3px rgba(11, 34, 48, .06);
    --shadow: 0 6px 24px -8px rgba(11, 34, 48, .14), 0 2px 6px rgba(11, 34, 48, .05);
    --shadow-lg: 0 30px 60px -20px rgba(11, 34, 48, .28);
    --font: "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --mono: ui-monospace, SFMono-Regular, "JetBrains Mono", Menlo, Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: var(--font);
    font-size: 15px;
    line-height: 1.6;
    color: var(--ink);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; }
a { color: var(--brand-primary-dark); text-decoration: none; transition: color .15s; }
a:hover { color: var(--brand-primary); }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.25; letter-spacing: -.02em; margin: 0 0 .6em; font-weight: 750; }
h1 { font-size: clamp(24px, 3vw, 30px); }
h2 { font-size: 20px; }
h3 { font-size: 17px; }
p { margin: 0 0 1em; }
code { font-family: var(--mono); font-size: .88em; background: var(--line-2); padding: 2px 6px; border-radius: 6px; color: var(--ink); word-break: break-all; }
pre { font-family: var(--mono); font-size: 13px; background: #0b2230; color: #d6f5ef; padding: 16px 18px; border-radius: var(--radius-sm); overflow-x: auto; line-height: 1.55; }
pre code { background: none; padding: 0; color: inherit; }
hr { border: 0; border-top: 1px solid var(--line); margin: 22px 0; }
.muted { color: var(--ink-3); font-size: 13.5px; }
.small { font-size: 13px; }
.text-center { text-align: center; }
.nowrap { white-space: nowrap; }
.mono { font-family: var(--mono); }
.icon { width: 18px; height: 18px; flex: none; vertical-align: middle; }

/* ---------------------------------------------------------------------
   Buttons
   --------------------------------------------------------------------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 11px 18px; border-radius: 12px; border: 1px solid transparent;
    background: linear-gradient(135deg, var(--brand-primary), var(--brand-primary-dark));
    color: var(--brand-on-primary); font: 650 14.5px/1.2 var(--font);
    cursor: pointer; text-decoration: none; white-space: nowrap;
    box-shadow: 0 6px 16px -6px rgba(var(--brand-rgb), .55);
    transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
}
.btn:hover { color: var(--brand-on-primary); transform: translateY(-1px); filter: brightness(1.05); box-shadow: 0 10px 22px -8px rgba(var(--brand-rgb), .6); }
.btn:active { transform: translateY(0); }
.btn:disabled, .btn[disabled] { opacity: .5; cursor: not-allowed; transform: none; }
.btn-secondary, .btn-ghost { background: var(--surface); color: var(--ink); border-color: var(--line); box-shadow: var(--shadow-sm); }
.btn-secondary:hover, .btn-ghost:hover { color: var(--ink); background: #f7fafa; }
.btn-outline { background: transparent; color: var(--brand-primary-dark); border-color: rgba(var(--brand-rgb), .45); box-shadow: none; }
.btn-outline:hover { background: var(--brand-primary-light); color: var(--brand-primary-darker); }
.btn-danger { background: linear-gradient(135deg, #f05a5f, #c9353a); box-shadow: 0 6px 16px -6px rgba(229, 72, 77, .55); color: #fff; }
.btn-danger:hover { color: #fff; }
.btn-warn { background: linear-gradient(135deg, #f6b13c, #d98a00); color: #fff; box-shadow: 0 6px 16px -6px rgba(217, 138, 0, .5); }
.btn-dark { background: var(--ink); color: #fff; box-shadow: none; }
.btn-dark:hover { color: #fff; }
.btn-white { background: #fff; color: var(--ink); box-shadow: var(--shadow); }
.btn-white:hover { color: var(--ink); }
.btn-sm { padding: 7px 12px; font-size: 13px; border-radius: 9px; }
.btn-lg { padding: 15px 24px; font-size: 16px; border-radius: 14px; }
.btn-block { width: 100%; }
.link-btn { background: none; border: 0; padding: 0; font: inherit; color: var(--brand-primary-dark); cursor: pointer; font-weight: 600; }
.link-btn:hover { color: var(--brand-primary); }
.link-btn.danger { color: var(--danger); }
form.inline { display: inline; }

/* ---------------------------------------------------------------------
   Forms
   --------------------------------------------------------------------- */
.form-group { margin-bottom: 16px; }
.form-group label, label.label { display: block; font-size: 13px; font-weight: 650; color: var(--ink-2); margin-bottom: 6px; }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=tel],
input[type=url], input[type=search], input[type=date], input[type=month], input[type=datetime-local], input[type=time], select, textarea {
    width: 100%; padding: 11px 14px; border: 1.5px solid var(--line); border-radius: 12px;
    font: 500 15px/1.4 var(--font); color: var(--ink); background: #fff;
    transition: border-color .15s, box-shadow .15s; outline: none; appearance: none; -webkit-appearance: none;
}
select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%2366798a' stroke-width='2'%3E%3Cpath d='M1 1.5l5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 38px; }
textarea { min-height: 96px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--brand-primary); box-shadow: 0 0 0 4px rgba(var(--brand-rgb), .14); }
input[type=checkbox], input[type=radio] { width: 18px; height: 18px; accent-color: var(--brand-primary); vertical-align: middle; }
input[type=color] { width: 56px; height: 42px; padding: 3px; border: 1.5px solid var(--line); border-radius: 10px; background: #fff; }
.input-group { display: flex; gap: 10px; }
.input-group > * { flex: 1; }
.input-group > .btn { flex: none; }
.form-hint { font-size: 12.5px; color: var(--ink-3); margin-top: 5px; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 0 16px; }
.check-row { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 14px; color: var(--ink-2); }

/* ---------------------------------------------------------------------
   Cards, stats, layout helpers
   --------------------------------------------------------------------- */
.card {
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
    padding: 24px; margin-bottom: 22px; box-shadow: var(--shadow-sm);
}
.card > h2:first-child, .card > h3:first-child { margin-top: 0; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.card-head h2, .card-head h3 { margin: 0; }
.card-soft { background: linear-gradient(180deg, #fff, #f9fcfc); }
.card-accent { border-color: rgba(var(--brand-rgb), .35); box-shadow: 0 0 0 4px rgba(var(--brand-rgb), .07); }
.card-danger { border-color: #f5c2c4; background: #fffafa; }

.grid { display: grid; gap: 20px; }
.grid-2 { display: grid; gap: 20px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { display: grid; gap: 20px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { display: grid; gap: 20px; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.flex { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.between { justify-content: space-between; }
.mt-0 { margin-top: 0 !important; } .mb-0 { margin-bottom: 0 !important; }
.mt { margin-top: 16px; } .mb { margin-bottom: 16px; }

.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 18px; margin-bottom: 24px; }
.stat-box {
    position: relative; overflow: hidden; background: var(--surface); border: 1px solid var(--line);
    border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow-sm);
}
.stat-box::after {
    content: ""; position: absolute; right: -30px; top: -30px; width: 110px; height: 110px; border-radius: 50%;
    background: radial-gradient(circle, rgba(var(--brand-rgb), .14), transparent 70%);
}
.stat-box .label { font-size: 12.5px; font-weight: 650; color: var(--ink-3); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 8px; display: flex; align-items: center; gap: 8px; }
.stat-box .value { font-size: 28px; font-weight: 800; letter-spacing: -.03em; color: var(--ink); }
.stat-box .sub { font-size: 12.5px; color: var(--ink-3); margin-top: 4px; }
.stat-ico { width: 34px; height: 34px; border-radius: 10px; display: inline-grid; place-items: center; background: var(--brand-primary-light); color: var(--brand-primary-dark); }
.stat-ico.sky { background: #e3f4fd; color: #0b7bb0; } .stat-ico.violet { background: #efe9fe; color: #6d3fd6; }
.stat-ico.warn { background: var(--warn-bg); color: var(--warn); } .stat-ico.danger { background: var(--danger-bg); color: var(--danger); }

/* ---------------------------------------------------------------------
   Alerts + badges
   --------------------------------------------------------------------- */
.alert { display: flex; gap: 10px; align-items: flex-start; padding: 13px 16px; border-radius: 12px; margin-bottom: 18px; font-size: 14px; font-weight: 550; border: 1px solid transparent; }
.alert::before { content: ""; flex: none; width: 18px; height: 18px; margin-top: 1px; border-radius: 50%; background: currentColor; -webkit-mask: var(--alert-icon) center/contain no-repeat; mask: var(--alert-icon) center/contain no-repeat; }
.alert-success { background: var(--ok-bg); color: #0d6b41; border-color: #bfe9d2; --alert-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M7.5 12.5l3 3 6-6.5'/%3E%3C/svg%3E"); }
.alert-error { background: var(--danger-bg); color: #a3242c; border-color: #f6c8ca; --alert-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M12 7v6M12 16.5v.5'/%3E%3C/svg%3E"); }
.alert-info { background: var(--brand-primary-light); color: var(--brand-primary-darker); border-color: rgba(var(--brand-rgb), .25); --alert-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M12 11v6M12 7.5v.5'/%3E%3C/svg%3E"); }
.alert-warn { background: var(--warn-bg); color: #8a5800; border-color: #f6dfa8; --alert-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M12 3l10 18H2z'/%3E%3Cpath d='M12 10v5M12 18v.5'/%3E%3C/svg%3E"); }

.badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 11px; border-radius: 999px; font-size: 12px; font-weight: 700; line-height: 1.4; text-transform: capitalize; background: var(--line-2); color: var(--ink-2); white-space: nowrap; }
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .85; }
.badge-active, .badge-approved, .badge-ok, .badge-success, .badge-credit, .badge-live, .badge-wallet { background: var(--ok-bg); color: var(--ok); }
.badge-inactive, .badge-withdrawn, .badge-rejected, .badge-blocked, .badge-falsified, .badge-danger, .badge-debit, .badge-cancelled { background: var(--danger-bg); color: #c22f35; }
.badge-suspended, .badge-pending, .badge-warn, .badge-substandard, .badge-expired, .badge-stale { background: var(--warn-bg); color: #a86a00; }
.badge-unknown, .badge-other, .badge-none { background: var(--line-2); color: var(--ink-3); }
.badge-subscription, .badge-info, .badge-superadmin { background: #e8f1fe; color: #2563c9; }
.badge-staff { background: #efe9fe; color: #6d3fd6; }

.verified-badge { display: flex; gap: 8px; align-items: center; background: linear-gradient(135deg, var(--brand-primary-light), #effbf8); color: var(--brand-primary-darker); padding: 10px 14px; border-radius: 12px; font-size: 13.5px; font-weight: 650; margin-top: 12px; border: 1px solid rgba(var(--brand-rgb), .2); }

/* ---------------------------------------------------------------------
   Tables (rx.js wraps every table in .table-wrap for mobile scrolling)
   --------------------------------------------------------------------- */
.table-wrap { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: 12px; }
table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 14px; }
th, td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
th { color: var(--ink-3); font-weight: 700; font-size: 11.5px; text-transform: uppercase; letter-spacing: .07em; background: #f8fbfb; white-space: nowrap; }
thead th:first-child { border-top-left-radius: 10px; } thead th:last-child { border-top-right-radius: 10px; }
tbody tr { transition: background .12s; }
tbody tr:hover { background: #f8fcfb; }
tbody tr:last-child td { border-bottom: 0; }
td .muted { font-size: 12.5px; }
.table-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.row-title { font-weight: 700; color: var(--ink); }
.empty { text-align: center; padding: 36px 16px; color: var(--ink-3); }
.empty .icon { width: 36px; height: 36px; color: var(--brand-primary); opacity: .6; margin-bottom: 8px; }

/* Tabs / segmented */
.nav-tabs, .tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 20px; padding: 5px; background: #fff; border: 1px solid var(--line); border-radius: 14px; width: fit-content; max-width: 100%; }
.nav-tabs a, .tabs a { padding: 8px 14px; border-radius: 10px; font-weight: 650; font-size: 13.5px; color: var(--ink-3); }
.nav-tabs a:hover, .tabs a:hover { color: var(--ink); background: var(--line-2); }
.nav-tabs a.active, .tabs a.active { color: var(--brand-on-primary); background: var(--brand-primary); border: 0; padding-bottom: 8px; }

/* Definition list (detail pages) */
.dl { display: grid; grid-template-columns: minmax(120px, 170px) 1fr; gap: 10px 18px; margin: 0; font-size: 14px; }
.dl dt { color: var(--ink-3); font-weight: 600; }
.dl dd { margin: 0; color: var(--ink); font-weight: 600; word-break: break-word; }

/* Avatar */
.avatar { width: 40px; height: 40px; border-radius: 12px; display: inline-grid; place-items: center; font-weight: 800; font-size: 15px; color: #fff; background: linear-gradient(135deg, var(--brand-primary), var(--sky)); flex: none; text-transform: uppercase; }
.avatar-lg { width: 64px; height: 64px; border-radius: 18px; font-size: 24px; }

/* Collapsible panels (replaces old inline onclick toggles, CSP-safe) */
details.panel { border: 1px solid var(--line); border-radius: 12px; background: #fff; }
details.panel > summary { cursor: pointer; list-style: none; padding: 12px 16px; font-weight: 700; display: flex; align-items: center; justify-content: space-between; }
details.panel > summary::-webkit-details-marker { display: none; }
details.panel > summary::after { content: "+"; font-size: 18px; color: var(--ink-3); }
details.panel[open] > summary::after { content: "–"; }
details.panel > div { padding: 0 16px 16px; }

/* =====================================================================
   Pill loader — a capsule that spins, cracks open and drops granules.
   Shown on first paint, then on every form submit / internal navigation.
   ===================================================================== */
#rx-loader {
    position: fixed; inset: 0; z-index: 9999; display: grid; place-items: center;
    background: radial-gradient(circle at 50% 40%, rgba(255,255,255,.96), rgba(240,249,247,.97));
    backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
    transition: opacity .35s ease, visibility .35s ease;
}
#rx-loader.is-hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.rx-pill-stage { display: flex; flex-direction: column; align-items: center; gap: 22px; }
.rx-pill-wrap { position: relative; width: 120px; height: 120px; display: grid; place-items: center; }
.rx-pill-ring { position: absolute; inset: 0; border-radius: 50%; border: 3px solid rgba(var(--brand-rgb), .12); border-top-color: var(--brand-primary); animation: rx-spin 1.1s linear infinite; }
.rx-pill-ring.r2 { inset: 12px; border-width: 2px; border-color: rgba(56, 189, 248, .14); border-bottom-color: var(--sky); animation-duration: 1.6s; animation-direction: reverse; }
.rx-pill { position: relative; width: 62px; height: 26px; animation: rx-pill-turn 2.2s cubic-bezier(.65,.05,.36,1) infinite; }
.rx-pill span { position: absolute; top: 0; width: 31px; height: 26px; }
.rx-pill .left { left: 0; border-radius: 13px 0 0 13px; background: linear-gradient(160deg, #ffffff, #dfe9ec); box-shadow: inset 0 -3px 6px rgba(0,0,0,.08); animation: rx-pill-left 2.2s ease-in-out infinite; }
.rx-pill .right { right: 0; border-radius: 0 13px 13px 0; background: linear-gradient(160deg, var(--brand-primary), var(--brand-primary-dark)); box-shadow: inset 0 -3px 6px rgba(0,0,0,.18); animation: rx-pill-right 2.2s ease-in-out infinite; }
.rx-pill .left::after, .rx-pill .right::after { content: ""; position: absolute; top: 5px; left: 8px; width: 14px; height: 5px; border-radius: 4px; background: rgba(255,255,255,.65); }
.rx-granules { position: absolute; left: 50%; top: 50%; width: 0; height: 0; }
.rx-granules i { position: absolute; width: 6px; height: 6px; border-radius: 50%; background: var(--brand-primary); opacity: 0; animation: rx-granule 2.2s ease-in infinite; }
.rx-granules i:nth-child(2) { background: var(--sky); animation-delay: .08s; --dx: -14px; }
.rx-granules i:nth-child(3) { background: var(--mint); animation-delay: .16s; --dx: 12px; }
.rx-granules i:nth-child(4) { background: var(--brand-primary-dark); animation-delay: .24s; --dx: -4px; }
.rx-granules i:nth-child(5) { background: var(--sky); animation-delay: .3s; --dx: 18px; }
.rx-loader-text { font-weight: 750; font-size: 14px; color: var(--ink-2); letter-spacing: .02em; display: flex; align-items: center; gap: 10px; }
.rx-ecg { width: 120px; height: 24px; }
.rx-ecg path { fill: none; stroke: var(--brand-primary); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 160; stroke-dashoffset: 160; animation: rx-ecg 1.6s linear infinite; }

@keyframes rx-spin { to { transform: rotate(360deg); } }
@keyframes rx-pill-turn { 0% { transform: rotate(-35deg); } 45% { transform: rotate(325deg); } 100% { transform: rotate(325deg); } }
@keyframes rx-pill-left { 0%, 50% { transform: translateX(0); } 65%, 85% { transform: translateX(-7px); } 100% { transform: translateX(0); } }
@keyframes rx-pill-right { 0%, 50% { transform: translateX(0); } 65%, 85% { transform: translateX(7px); } 100% { transform: translateX(0); } }
@keyframes rx-granule { 0%, 55% { opacity: 0; transform: translate(-3px, -3px); } 62% { opacity: 1; } 100% { opacity: 0; transform: translate(calc(var(--dx, 6px) - 3px), 48px) scale(.6); } }
@keyframes rx-ecg { 0% { stroke-dashoffset: 160; } 70% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: -160; } }

/* top navigation progress bar */
#rx-progress { position: fixed; left: 0; top: 0; height: 3px; width: 0; z-index: 10000; background: linear-gradient(90deg, var(--brand-primary), var(--sky), var(--mint)); box-shadow: 0 0 10px rgba(var(--brand-rgb), .6); transition: width .4s ease; }
#rx-progress.go { width: 85%; transition: width 8s cubic-bezier(.1,.7,.2,1); }

/* button busy state */
.btn.is-busy { pointer-events: none; opacity: .85; }
.btn.is-busy::after { content: ""; width: 14px; height: 14px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: rx-spin .7s linear infinite; }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}

/* =====================================================================
   App shell (admin, developer portal, manufacturer portal)
   ===================================================================== */
.rx-app { background: var(--bg); }
.rx-sidebar {
    position: fixed; inset: 0 auto 0 0; width: 268px; z-index: 50; display: flex; flex-direction: column;
    background: radial-gradient(120% 60% at 0% 0%, rgba(var(--brand-rgb), .35), transparent 60%), linear-gradient(180deg, #082630 0%, #061b23 100%);
    color: #c9dce0; transition: transform .25s ease;
}
.rx-brand { display: flex; align-items: center; gap: 12px; padding: 22px 22px 18px; color: #fff; }
.rx-brand:hover { color: #fff; }
.rx-brand strong { display: block; font-size: 17px; font-weight: 800; letter-spacing: -.02em; line-height: 1.1; }
.rx-brand small { display: block; font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: rgba(var(--brand-rgb), 1); filter: brightness(1.6); margin-top: 3px; }
.rx-logo { width: 40px; height: 40px; flex: none; }
.rx-nav { flex: 1; overflow-y: auto; padding: 6px 14px 20px; scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.15) transparent; }
.rx-nav-label { font-size: 10.5px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: #6f8c94; padding: 16px 12px 8px; }
.rx-nav a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; margin: 2px 0; border-radius: 11px; color: #b7cbd0; font-weight: 600; font-size: 14px; position: relative; }
.rx-nav a .icon { width: 18px; height: 18px; opacity: .85; }
.rx-nav a:hover { background: rgba(255,255,255,.06); color: #fff; }
.rx-nav a.active { background: linear-gradient(90deg, rgba(var(--brand-rgb), .35), rgba(var(--brand-rgb), .08)); color: #fff; }
.rx-nav a.active::before { content: ""; position: absolute; left: -14px; top: 9px; bottom: 9px; width: 4px; border-radius: 0 4px 4px 0; background: var(--brand-primary); box-shadow: 0 0 12px var(--brand-primary); }
.rx-nav .count { margin-left: auto; background: var(--danger); color: #fff; font-size: 11px; font-weight: 800; padding: 1px 7px; border-radius: 999px; }
.rx-side-foot { padding: 14px; border-top: 1px solid rgba(255,255,255,.07); }
.rx-user { display: flex; align-items: center; gap: 11px; padding: 10px; border-radius: 12px; background: rgba(255,255,255,.05); }
.rx-user .who { min-width: 0; flex: 1; }
.rx-user .who strong { display: block; color: #fff; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rx-user .who span { display: block; font-size: 11.5px; color: #86a2a9; text-transform: capitalize; }
.rx-user a { color: #9fb9bf; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; }
.rx-user a:hover { background: rgba(255,255,255,.08); color: #fff; }
.rx-user .avatar { width: 36px; height: 36px; border-radius: 10px; font-size: 14px; }

.rx-main { margin-left: 268px; min-height: 100vh; display: flex; flex-direction: column; }
.rx-topbar {
    position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 14px;
    padding: 14px 32px; background: rgba(244, 248, 248, .82); backdrop-filter: saturate(160%) blur(12px); -webkit-backdrop-filter: saturate(160%) blur(12px);
    border-bottom: 1px solid rgba(226, 234, 238, .8);
}
.rx-topbar .crumbs { font-size: 12.5px; color: var(--ink-3); font-weight: 600; }
.rx-topbar h1 { font-size: 21px; margin: 0; }
.rx-topbar .spacer { flex: 1; }
.rx-burger { display: none; width: 42px; height: 42px; border-radius: 12px; border: 1px solid var(--line); background: #fff; color: var(--ink); cursor: pointer; place-items: center; }
.rx-chip { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-size: 13px; font-weight: 650; color: var(--ink-2); }
.rx-chip .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 4px var(--ok-bg); }
.rx-content { padding: 28px 32px 60px; width: 100%; max-width: 1320px; }
.rx-content > h1:first-child { display: none; } /* the topbar already shows the page title */
.rx-overlay { display: none; }

.page-hero { position: relative; overflow: hidden; border-radius: 20px; padding: 26px 28px; margin-bottom: 24px; color: #fff; background: radial-gradient(90% 140% at 100% 0%, rgba(56, 189, 248, .45), transparent 55%), linear-gradient(135deg, var(--brand-primary-dark), var(--brand-primary-darker)); box-shadow: var(--shadow); }
.page-hero h2 { color: #fff; font-size: 22px; margin: 0 0 6px; }
.page-hero p { margin: 0; color: rgba(255,255,255,.85); max-width: 640px; }
.page-hero .hero-pill { position: absolute; right: 26px; top: 50%; transform: translateY(-50%) rotate(-30deg); width: 120px; height: 46px; border-radius: 23px; overflow: hidden; display: flex; opacity: .9; box-shadow: 0 18px 40px rgba(0,0,0,.25); }
.page-hero .hero-pill i { flex: 1; } .page-hero .hero-pill i:first-child { background: linear-gradient(160deg, #fff, #d7e6ea); } .page-hero .hero-pill i:last-child { background: linear-gradient(160deg, var(--mint), var(--brand-primary)); }

@media (max-width: 1080px) {
    .rx-sidebar { transform: translateX(-100%); box-shadow: var(--shadow-lg); }
    body.nav-open .rx-sidebar { transform: none; }
    body.nav-open .rx-overlay { display: block; position: fixed; inset: 0; background: rgba(6, 27, 35, .45); z-index: 40; }
    .rx-main { margin-left: 0; }
    .rx-burger { display: inline-grid; }
    .rx-topbar { padding: 12px 16px; }
    .rx-content { padding: 20px 16px 50px; }
    .page-hero .hero-pill { display: none; }
}
@media (max-width: 860px) {
    .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
    .rx-topbar .rx-chip { display: none; }
    .dl { grid-template-columns: 1fr; gap: 2px 0; }
    .dl dd { margin-bottom: 10px; }
    .card { padding: 18px; }
}

/* =====================================================================
   Auth screens (split layout with an animated medical panel)
   ===================================================================== */
.rx-auth { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); background: #fff; }
.rx-auth-art {
    position: relative; overflow: hidden; padding: 44px; display: flex; flex-direction: column; justify-content: space-between; color: #fff;
    background: radial-gradient(70% 60% at 85% 10%, rgba(56, 189, 248, .45), transparent 60%), radial-gradient(60% 50% at 10% 95%, rgba(52, 211, 153, .35), transparent 60%), linear-gradient(150deg, var(--brand-primary-dark), #062a33 70%);
}
.rx-auth-art .rx-brand { padding: 0; }
.rx-auth-art h2 { color: #fff; font-size: clamp(26px, 3vw, 38px); max-width: 460px; letter-spacing: -.03em; }
.rx-auth-art p { color: rgba(255,255,255,.8); max-width: 440px; font-size: 15.5px; }
.rx-auth-points { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 12px; }
.rx-auth-points li { display: flex; gap: 12px; align-items: center; font-weight: 600; color: rgba(255,255,255,.92); }
.rx-auth-points li span { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: rgba(255,255,255,.12); }
.rx-auth-form { display: grid; place-items: center; padding: 40px 24px; background: radial-gradient(60% 40% at 100% 0%, rgba(var(--brand-rgb), .06), transparent 70%); }
.rx-auth-box { width: 100%; max-width: 420px; }
.rx-auth-box h1 { font-size: 28px; margin-bottom: 6px; }
.rx-auth-box .lead { color: var(--ink-3); margin-bottom: 26px; }
.rx-auth-box .card { box-shadow: none; border: 0; padding: 0; background: transparent; max-width: none !important; margin: 0 !important; }
.rx-auth-box .card > h2:first-child { display: none; }
.rx-auth-box .btn[type=submit] { width: 100%; padding: 13px; }
.rx-auth-switch { margin-top: 22px; text-align: center; font-size: 14px; color: var(--ink-3); }
.rx-auth-mobile-brand { display: none; margin-bottom: 26px; }
.rx-auth-mobile-brand .rx-brand { color: var(--ink); padding: 0; }
.rx-auth-mobile-brand .rx-brand small { color: var(--brand-primary); filter: none; }

/* floating pills on art panels */
.float-pills { position: absolute; inset: 0; pointer-events: none; }
.float-pills .fp { position: absolute; display: flex; border-radius: 999px; overflow: hidden; opacity: .9; box-shadow: 0 20px 40px rgba(0,0,0,.25); animation: rx-float 7s ease-in-out infinite; }
.float-pills .fp i { display: block; }
.float-pills .fp i:first-child { background: linear-gradient(160deg, #fff, #d6e5e9); }
.float-pills .fp i:last-child { background: linear-gradient(160deg, var(--mint), var(--brand-primary)); }
.float-pills .fp.p1 { width: 120px; height: 46px; right: 12%; top: 26%; transform: rotate(-28deg); }
.float-pills .fp.p1 i { width: 60px; }
.float-pills .fp.p2 { width: 76px; height: 30px; right: 34%; top: 54%; transform: rotate(35deg); animation-delay: -2s; opacity: .7; }
.float-pills .fp.p2 i { width: 38px; } .float-pills .fp.p2 i:last-child { background: linear-gradient(160deg, var(--sky), #2563c9); }
.float-pills .fp.p3 { width: 56px; height: 56px; right: 10%; top: 62%; border-radius: 50%; animation-delay: -4s; background: linear-gradient(160deg, #fff, #dce8ec); }
.float-pills .fp.p3::after { content: ""; position: absolute; left: 50%; top: 10px; bottom: 10px; width: 2px; background: #b8cad0; transform: translateX(-50%); }
@keyframes rx-float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -18px; } }

@media (max-width: 900px) {
    .rx-auth { grid-template-columns: 1fr; }
    .rx-auth-art { display: none; }
    .rx-auth-mobile-brand { display: block; }
}

/* =====================================================================
   Public site: nav, footer, landing page, tool pages, legal pages
   ===================================================================== */
.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.site-header { position: sticky; top: 0; z-index: 60; background: rgba(255,255,255,.82); backdrop-filter: saturate(170%) blur(14px); -webkit-backdrop-filter: saturate(170%) blur(14px); border-bottom: 1px solid rgba(226,234,238,.7); }
.site-header .container { display: flex; align-items: center; gap: 22px; height: 72px; }
.site-header .rx-brand { padding: 0; color: var(--ink); }
.site-header .rx-brand small { color: var(--brand-primary); filter: none; }
.site-links { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.site-links a { padding: 9px 13px; border-radius: 10px; font-weight: 650; font-size: 14px; color: var(--ink-2); }
.site-links a:hover, .site-links a.active { color: var(--ink); background: var(--line-2); }
.site-cta { display: flex; gap: 10px; align-items: center; }
.site-menu-btn { display: none; margin-left: auto; width: 42px; height: 42px; border-radius: 12px; border: 1px solid var(--line); background: #fff; color: var(--ink); place-items: center; cursor: pointer; }
@media (max-width: 980px) {
    .site-menu-btn { display: inline-grid; }
    .site-links, .site-cta { display: none; }
    body.menu-open .site-links, body.menu-open .site-cta { display: flex; }
    body.menu-open .site-header .container { height: auto; flex-wrap: wrap; padding-top: 14px; padding-bottom: 14px; }
    body.menu-open .site-links { flex-direction: column; align-items: stretch; width: 100%; order: 3; margin: 8px 0 0; }
    body.menu-open .site-cta { width: 100%; order: 4; }
    body.menu-open .site-cta .btn { flex: 1; }
}

.site-footer { background: #061b23; color: #9fb6bc; padding: 64px 0 28px; margin-top: 40px; position: relative; overflow: hidden; }
.site-footer::before { content: ""; position: absolute; inset: 0; background: radial-gradient(50% 80% at 100% 0%, rgba(var(--brand-rgb), .25), transparent 60%); pointer-events: none; }
.site-footer .container { position: relative; }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 36px; }
.site-footer h4 { color: #fff; font-size: 13px; text-transform: uppercase; letter-spacing: .12em; margin-bottom: 14px; }
.site-footer a { color: #9fb6bc; display: block; padding: 4px 0; font-size: 14px; }
.site-footer a:hover { color: #fff; }
.site-footer .rx-brand { color: #fff; padding: 0; margin-bottom: 14px; }
.site-footer .legal { border-top: 1px solid rgba(255,255,255,.08); margin-top: 40px; padding-top: 22px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 13px; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-grid > :first-child { grid-column: 1 / -1; } }

/* Landing */
.lp-hero { position: relative; overflow: hidden; padding: 64px 0 86px; background: radial-gradient(50% 60% at 85% 20%, rgba(56, 189, 248, .16), transparent 70%), radial-gradient(45% 55% at 5% 80%, rgba(52, 211, 153, .16), transparent 70%), linear-gradient(180deg, #f8fcfb, var(--bg)); }
.lp-hero::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(11,34,48,.07) 1px, transparent 1px); background-size: 22px 22px; mask-image: radial-gradient(70% 60% at 50% 30%, #000, transparent); -webkit-mask-image: radial-gradient(70% 60% at 50% 30%, #000, transparent); }
.lp-hero .container { position: relative; display: grid; grid-template-columns: 1.08fr 1fr; gap: 50px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 6px; border-radius: 999px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm); font-size: 13px; font-weight: 700; color: var(--ink-2); margin-bottom: 22px; }
.eyebrow b { background: var(--brand-primary-light); color: var(--brand-primary-dark); padding: 3px 10px; border-radius: 999px; font-size: 12px; }
.lp-hero h1 { font-size: clamp(36px, 5.2vw, 60px); line-height: 1.05; letter-spacing: -.045em; font-weight: 800; margin-bottom: 20px; }
.grad-text { background: linear-gradient(100deg, var(--brand-primary) 10%, #2b9fd8 60%, var(--mint)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lp-hero .lead { font-size: 18px; color: var(--ink-2); max-width: 560px; margin-bottom: 30px; }
.lp-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.lp-trust { display: flex; gap: 22px; margin-top: 34px; flex-wrap: wrap; }
.lp-trust div { display: flex; align-items: center; gap: 9px; font-size: 13.5px; font-weight: 650; color: var(--ink-2); }
.lp-trust .icon { color: var(--brand-primary); }

.lp-search { margin-top: 30px; background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 8px; display: flex; gap: 8px; box-shadow: var(--shadow); max-width: 560px; }
.lp-search input { border: 0; box-shadow: none !important; font-size: 16px; }
.lp-search select { border: 0; max-width: 170px; background-color: var(--line-2); font-weight: 650; font-size: 14px; }

/* hero visual: phone-like verification card with scanning beam */
.lp-visual { position: relative; min-height: 540px; }
.lp-card { position: absolute; background: #fff; border-radius: 22px; box-shadow: var(--shadow-lg); border: 1px solid var(--line); }
.lp-card.main { left: 8%; right: 8%; top: 48px; padding: 22px; z-index: 1; animation: rx-float 8s ease-in-out infinite; }
.lp-card .scan { position: relative; height: 150px; border-radius: 16px; overflow: hidden; background: linear-gradient(135deg, #eaf7f5, #e8f3fb); display: grid; place-items: center; }
.lp-card .scan .box { position: relative; width: 170px; height: 90px; border-radius: 12px; background: #fff; box-shadow: var(--shadow); display: flex; align-items: center; padding: 12px; gap: 12px; }
.lp-card .scan .box .mini-pill { width: 54px; height: 22px; border-radius: 11px; overflow: hidden; display: flex; transform: rotate(-20deg); flex: none; }
.lp-card .scan .box .mini-pill i { flex: 1; } .lp-card .scan .box .mini-pill i:first-child { background: #e6eef0; } .lp-card .scan .box .mini-pill i:last-child { background: var(--brand-primary); }
.lp-card .scan .box .lines i { display: block; height: 7px; border-radius: 4px; background: var(--line); margin: 6px 0; width: 70px; } .lp-card .scan .box .lines i:nth-child(2) { width: 50px; }
.lp-card .scan .beam { position: absolute; left: 0; right: 0; height: 46px; background: linear-gradient(180deg, transparent, rgba(var(--brand-rgb), .28), transparent); border-bottom: 2px solid var(--brand-primary); animation: rx-scan 2.6s ease-in-out infinite; }
@keyframes rx-scan { 0% { top: -46px; } 60% { top: 150px; } 100% { top: 150px; } }
.lp-card .res { display: flex; align-items: center; gap: 12px; margin-top: 16px; }
.lp-card .res .ok { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--ok-bg); color: var(--ok); }
.lp-card .res strong { display: block; font-size: 15px; }
.lp-card .res span { font-size: 12.5px; color: var(--ink-3); }
.lp-card .rows { margin-top: 14px; display: grid; gap: 8px; }
.lp-card .rows div { display: flex; justify-content: space-between; font-size: 13px; padding: 9px 12px; border-radius: 10px; background: #f6fafa; }
.lp-card .rows div span { color: var(--ink-3); } .lp-card .rows div b { color: var(--ink); }
.lp-card.float1 { right: -2%; top: 0; z-index: 2; padding: 12px 14px; display: flex; align-items: center; gap: 10px; animation: rx-float 6s ease-in-out infinite; animation-delay: -1.5s; }
.lp-card.float2 { left: 0; bottom: -6px; z-index: 2; padding: 12px 14px; display: flex; align-items: center; gap: 10px; animation: rx-float 7s ease-in-out infinite; animation-delay: -3s; }
.lp-card.float3 { right: 2%; bottom: -6px; z-index: 2; padding: 12px 16px; animation: rx-float 9s ease-in-out infinite; animation-delay: -4s; }
.lp-card .ic { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; }
.lp-card small { display: block; font-size: 11.5px; color: var(--ink-3); font-weight: 600; } .lp-card b { font-size: 14px; }

.lp-section { padding: 84px 0; }
.lp-section.alt { background: #fff; border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); }
.lp-head { text-align: center; max-width: 680px; margin: 0 auto 48px; }
.lp-head .kicker { display: inline-block; font-size: 12.5px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--brand-primary); margin-bottom: 12px; }
.lp-head h2 { font-size: clamp(28px, 3.6vw, 40px); letter-spacing: -.035em; }
.lp-head p { color: var(--ink-2); font-size: 16.5px; }

.lp-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; background: #fff; border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow); margin-top: -36px; position: relative; z-index: 2; }
.lp-stats div { padding: 24px; text-align: center; border-right: 1px solid var(--line-2); }
.lp-stats div:last-child { border-right: 0; }
.lp-stats b { display: block; font-size: 30px; font-weight: 800; letter-spacing: -.03em; color: var(--ink); }
.lp-stats span { font-size: 13.5px; color: var(--ink-3); font-weight: 600; }

.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature { position: relative; background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 26px; transition: transform .2s ease, box-shadow .2s ease, border-color .2s; overflow: hidden; }
.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: rgba(var(--brand-rgb), .3); }
.feature .f-ico { width: 52px; height: 52px; border-radius: 15px; display: grid; place-items: center; margin-bottom: 18px; color: #fff; background: linear-gradient(135deg, var(--brand-primary), var(--brand-primary-dark)); box-shadow: 0 10px 20px -8px rgba(var(--brand-rgb), .6); }
.feature .f-ico .icon { width: 24px; height: 24px; }
.feature.sky .f-ico { background: linear-gradient(135deg, #38bdf8, #1d7fc4); box-shadow: 0 10px 20px -8px rgba(56,189,248,.6); }
.feature.violet .f-ico { background: linear-gradient(135deg, #a78bfa, #6d3fd6); box-shadow: 0 10px 20px -8px rgba(139,92,246,.6); }
.feature.red .f-ico { background: linear-gradient(135deg, #fb7185, #d9363e); box-shadow: 0 10px 20px -8px rgba(229,72,77,.6); }
.feature.amber .f-ico { background: linear-gradient(135deg, #fbbf24, #d98a00); box-shadow: 0 10px 20px -8px rgba(217,138,0,.55); }
.feature.mint .f-ico { background: linear-gradient(135deg, #34d399, #0f9468); box-shadow: 0 10px 20px -8px rgba(52,211,153,.6); }
.feature h3 { font-size: 18px; margin-bottom: 8px; }
.feature p { color: var(--ink-2); font-size: 14.5px; margin: 0; }
.feature .tag { position: absolute; top: 22px; right: 22px; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; padding: 4px 10px; border-radius: 999px; background: var(--ok-bg); color: var(--ok); }
.feature a.more { display: inline-flex; gap: 6px; align-items: center; margin-top: 16px; font-weight: 700; font-size: 14px; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; counter-reset: step; }
.step { position: relative; padding: 28px; border-radius: 20px; background: linear-gradient(180deg, #fff, #f8fcfb); border: 1px solid var(--line); }
.step::before { counter-increment: step; content: counter(step, decimal-leading-zero); font-size: 44px; font-weight: 800; letter-spacing: -.04em; color: transparent; -webkit-text-stroke: 1.5px rgba(var(--brand-rgb), .55); display: block; margin-bottom: 8px; }
.step h3 { font-size: 18px; } .step p { color: var(--ink-2); margin: 0; font-size: 14.5px; }

.pricing { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: stretch; }
.price-card { position: relative; background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 30px; display: flex; flex-direction: column; }
.price-card.featured { background: radial-gradient(80% 60% at 100% 0%, rgba(56,189,248,.35), transparent 60%), linear-gradient(160deg, var(--brand-primary-dark), #062a33); color: #fff; border: 0; box-shadow: var(--shadow-lg); transform: translateY(-10px); }
.price-card.featured h3, .price-card.featured .amt { color: #fff; }
.price-card.featured p, .price-card.featured li { color: rgba(255,255,255,.85); }
.price-card .ribbon { position: absolute; top: 18px; right: 18px; font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; padding: 5px 11px; border-radius: 999px; background: var(--mint); color: #053c2b; }
.price-card h3 { font-size: 16px; color: var(--ink-2); font-weight: 700; margin-bottom: 14px; }
.price-card .amt { font-size: 40px; font-weight: 800; letter-spacing: -.04em; color: var(--ink); line-height: 1; }
.price-card .amt small { font-size: 15px; font-weight: 600; letter-spacing: 0; opacity: .7; }
.price-card p { color: var(--ink-3); font-size: 14px; margin: 12px 0 20px; }
.price-card ul { list-style: none; padding: 0; margin: 0 0 26px; display: grid; gap: 11px; flex: 1; }
.price-card li { display: flex; gap: 10px; font-size: 14.5px; color: var(--ink-2); }
.price-card li .icon { color: var(--brand-primary); width: 18px; height: 18px; margin-top: 2px; }
.price-card.featured li .icon { color: var(--mint); }

.faq { max-width: 820px; margin: 0 auto; display: grid; gap: 12px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 4px 22px; transition: box-shadow .2s; }
.faq details[open] { box-shadow: var(--shadow); border-color: rgba(var(--brand-rgb), .3); }
.faq summary { list-style: none; cursor: pointer; padding: 16px 0; font-weight: 700; font-size: 16px; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; background: var(--brand-primary-light); color: var(--brand-primary-dark); font-size: 18px; }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--ink-2); padding-bottom: 14px; margin: 0; }

.cta-band { position: relative; overflow: hidden; border-radius: 28px; padding: 56px; color: #fff; text-align: center; background: radial-gradient(60% 90% at 0% 0%, rgba(52,211,153,.35), transparent 60%), radial-gradient(60% 90% at 100% 100%, rgba(56,189,248,.4), transparent 60%), linear-gradient(135deg, var(--brand-primary-dark), #062a33); box-shadow: var(--shadow-lg); }
.cta-band h2 { color: #fff; font-size: clamp(26px, 3.4vw, 38px); }
.cta-band p { color: rgba(255,255,255,.85); max-width: 600px; margin: 0 auto 26px; font-size: 16.5px; }
.cta-band .lp-actions { justify-content: center; }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

@media (max-width: 980px) {
    .lp-hero .container { grid-template-columns: 1fr; }
    .lp-visual { min-height: 420px; }
    .feature-grid, .steps, .pricing { grid-template-columns: 1fr 1fr; }
    .price-card.featured { transform: none; }
    .lp-stats { grid-template-columns: 1fr 1fr; }
    .lp-stats div:nth-child(2) { border-right: 0; }
    .lp-stats div:nth-child(-n+2) { border-bottom: 1px solid var(--line-2); }
}
@media (max-width: 640px) {
    .feature-grid, .steps, .pricing { grid-template-columns: 1fr; }
    .lp-hero { padding: 48px 0 60px; }
    .lp-section { padding: 60px 0; }
    .cta-band { padding: 38px 22px; }
    .lp-visual { min-height: 400px; }
    .lp-card.main { left: 0; right: 0; }
    .lp-search { flex-wrap: wrap; }
    .lp-search select { max-width: none; }
}

/* Tool pages (free consumer tools) */
.tool-hero { padding: 54px 0 120px; background: radial-gradient(50% 80% at 90% 10%, rgba(56,189,248,.35), transparent 60%), radial-gradient(50% 80% at 0% 100%, rgba(52,211,153,.25), transparent 60%), linear-gradient(150deg, var(--brand-primary-dark), #062a33); color: #fff; position: relative; overflow: hidden; }
.tool-hero h1 { color: #fff; font-size: clamp(28px, 4vw, 42px); letter-spacing: -.035em; max-width: 720px; }
.tool-hero p { color: rgba(255,255,255,.85); max-width: 640px; font-size: 16.5px; margin: 0; }
.tool-hero .float-pills .fp.p1 { top: 30%; right: 8%; }
.tool-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 24px; }
.tool-tabs a { display: inline-flex; align-items: center; gap: 8px; padding: 9px 15px; border-radius: 999px; font-weight: 700; font-size: 13.5px; color: rgba(255,255,255,.85); background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.14); }
.tool-tabs a:hover { color: #fff; background: rgba(255,255,255,.18); }
.tool-tabs a.active { background: #fff; color: var(--brand-primary-darker); }
.tool-body { margin-top: -84px; position: relative; z-index: 2; padding-bottom: 40px; }
.tool-layout { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.tool-layout .card { padding: 28px; box-shadow: var(--shadow); }
.tool-layout .card .btn[type=submit] { width: 100%; padding: 14px; font-size: 15.5px; }
.result-row { display: flex; justify-content: space-between; gap: 14px; padding: 11px 0; border-bottom: 1px dashed var(--line); }
.result-row:last-of-type { border-bottom: 0; }
.result-row .label { font-size: 12px; color: var(--ink-3); text-transform: uppercase; letter-spacing: .06em; font-weight: 700; }
.result-banner { display: flex; gap: 14px; align-items: center; padding: 16px; border-radius: 14px; margin: 18px 0 8px; }
.result-banner .ic { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; flex: none; }
.result-banner.ok { background: var(--ok-bg); } .result-banner.ok .ic { background: var(--ok); color: #fff; }
.result-banner.bad { background: var(--danger-bg); } .result-banner.bad .ic { background: var(--danger); color: #fff; }
.result-banner.warn { background: var(--warn-bg); } .result-banner.warn .ic { background: var(--warn); color: #fff; }
.result-banner strong { display: block; font-size: 16px; }
.result-banner span { font-size: 13.5px; color: var(--ink-2); }
.disclaimer { font-size: 12.5px; color: var(--ink-3); border-top: 1px solid var(--line-2); margin-top: 18px; padding-top: 14px; }
.side-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.side-list li { display: flex; gap: 12px; font-size: 14px; color: var(--ink-2); }
.side-list li .icon { color: var(--brand-primary); margin-top: 3px; }
@media (max-width: 900px) { .tool-layout { grid-template-columns: 1fr; } }

/* Legacy wrappers still used by older templates */
.wrap { max-width: 1180px; margin: 0 auto; padding: 24px 20px 60px; }
.legal-content { max-width: 860px; margin: 0 auto; padding: 48px 20px 60px; line-height: 1.75; font-size: 15.5px; color: var(--ink-2); }
.legal-content h1 { color: var(--ink); }
.legal-content h2 { margin-top: 36px; font-size: 21px; }
.legal-content .card { line-height: 1.6; }
.page-banner { padding: 56px 0 44px; background: radial-gradient(50% 80% at 90% 0%, rgba(56,189,248,.15), transparent 60%), linear-gradient(180deg, #f8fcfb, var(--bg)); border-bottom: 1px solid var(--line-2); margin-bottom: 30px; }
.page-banner h1 { font-size: clamp(30px, 4vw, 44px); letter-spacing: -.04em; margin-bottom: 8px; }
.page-banner p { color: var(--ink-2); max-width: 680px; margin: 0; font-size: 16.5px; }
.step-num { flex: none; width: 24px; height: 24px; border-radius: 8px; display: grid; place-items: center; font-size: 12px; font-weight: 800; background: var(--brand-primary-light); color: var(--brand-primary-dark); }
.rx-auth-box .card > h2:first-child + p.muted { display: none; }

/* =====================================================================
   Consumer tools: live widget, trust meter, gates, sharing
   ===================================================================== */
.rx-widget { position: relative; }
.rx-wtabs { display: grid; grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); gap: 4px; padding: 5px; margin-bottom: 16px; background: var(--line-2); border-radius: 14px; }
.rx-wtabs::-webkit-scrollbar { display: none; }
.rx-wtabs button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; border: 0; background: transparent; color: var(--ink-2); font: 700 13px/1 var(--font); padding: 10px 8px; border-radius: 10px; cursor: pointer; white-space: nowrap; transition: background .15s, color .15s; }
.rx-wtabs button .icon { width: 16px; height: 16px; }
.rx-wtabs button:hover { color: var(--ink); background: rgba(255,255,255,.6); }
.rx-wtabs button.active { background: #fff; color: var(--brand-primary-darker); box-shadow: var(--shadow-sm); }
.rx-wfields { display: flex; gap: 10px; align-items: flex-end; flex-wrap: wrap; }
.rx-wfield { display: flex; flex-direction: column; gap: 6px; min-width: 150px; }
.rx-wfield.grow { flex: 1 1 220px; }
.rx-wfield span { font-size: 12.5px; font-weight: 700; color: var(--ink-2); }
.rx-wfield em { font-style: normal; color: var(--ink-3); font-weight: 500; }
.rx-wfield input { padding: 14px 16px; font-size: 16px; border-radius: 14px; }
.rx-wfields .btn-lg { padding: 15px 22px; }
.rx-wfoot { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
.rx-wfoot .icon { width: 14px; height: 14px; }
.quota-chip { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 750; padding: 6px 12px; border-radius: 999px; background: var(--brand-primary-light); color: var(--brand-primary-darker); }
.rx-wresult { margin-top: 18px; padding-top: 18px; border-top: 1px dashed var(--line); animation: rx-fade .35s ease; }
@keyframes rx-fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.mini-loader { display: flex; align-items: center; gap: 16px; padding: 18px; border-radius: 14px; background: linear-gradient(90deg, var(--line-2), #fff, var(--line-2)); background-size: 200% 100%; animation: rx-shimmer 1.4s linear infinite; font-weight: 700; color: var(--ink-2); }
.mini-loader .rx-pill { transform: scale(.7); }
@keyframes rx-shimmer { to { background-position: -200% 0; } }
.tool-card { padding: 26px; }

.scan-head { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; }
.gauge { position: relative; width: 120px; height: 120px; flex: none; }
.gauge svg { width: 120px; height: 120px; }
.gauge-arc { animation: rx-gauge 1.1s cubic-bezier(.2,.8,.2,1) both; }
@keyframes rx-gauge { from { stroke-dashoffset: 326.73; } }
.gauge-num { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.gauge-num b { font-size: 32px; font-weight: 800; letter-spacing: -.04em; line-height: 1; }
.gauge-num span { font-size: 10.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3); margin-top: 4px; }
.verdict { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; font-weight: 800; font-size: 13.5px; }
.verdict::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 4px rgba(0,0,0,.05); }
.verdict-ok { background: var(--ok-bg); color: var(--ok); } .verdict-warn { background: var(--warn-bg); color: #a86a00; } .verdict-bad { background: var(--danger-bg); color: #c22f35; }
.check-list { list-style: none; padding: 0; margin: 18px 0 8px; display: grid; gap: 8px; }
.check-list li { display: flex; gap: 12px; align-items: flex-start; padding: 11px 14px; border-radius: 12px; background: #f8fbfb; border: 1px solid var(--line-2); }
.check-list li strong { display: block; font-size: 14px; }
.check-list li span:not(.ck-ic) { font-size: 12.5px; color: var(--ink-3); }
.ck-ic { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; flex: none; }
.ck-ic .icon { width: 15px; height: 15px; }
.ck-ok .ck-ic { background: var(--ok-bg); color: var(--ok); } .ck-bad .ck-ic { background: var(--danger-bg); color: var(--danger); }
.ck-warn .ck-ic { background: var(--warn-bg); color: var(--warn); } .ck-info .ck-ic { background: var(--line-2); color: var(--ink-3); }
.ck-bad { border-color: #f6c8ca !important; background: #fffafa !important; }
.alert-link { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); margin-top: 8px; color: var(--ink); font-size: 14px; }
.alert-link span:not(.badge) { flex: 1; }
.alert-link:hover { border-color: rgba(var(--brand-rgb), .4); background: #fbfefd; color: var(--ink); }
.share-bar { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line-2); }
.share-label { display: block; font-size: 13px; font-weight: 700; color: var(--ink-2); margin-bottom: 8px; }
.share-list { display: flex; flex-wrap: wrap; gap: 8px; }
.share-btn { display: inline-flex; align-items: center; gap: 6px; min-height: 38px; padding: 8px 13px; border-radius: 999px; border: 1px solid var(--line); background: #fff; font: 700 13px/1 var(--font); color: var(--ink-2); cursor: pointer; text-decoration: none; }
.share-btn .icon { width: 17px; height: 17px; flex: 0 0 auto; }
.share-btn:hover { color: var(--ink); border-color: var(--ink-3); }
.share-btn.wa { background: #25d366; border-color: #25d366; color: #fff; }
.share-btn.fb { color: #1877f2; } .share-btn.tg { color: #229ed9; } .share-btn.in { color: #0a66c2; } .share-btn.x { color: #111; }
.share-btn.wa:hover { color: #fff; filter: brightness(1.05); }
.share-btn.native { display: none; background: var(--brand-primary); border-color: var(--brand-primary); color: #fff; }
.can-share .share-btn.native { display: inline-flex; }
@media (max-width: 560px) {
  .share-list { gap: 10px; }
  .share-btn { width: 46px; height: 46px; min-height: 0; padding: 0; justify-content: center; border-radius: 50%; }
  .share-btn .icon { width: 21px; height: 21px; }
  .share-btn span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .share-btn.wa, .share-btn.native { width: auto; padding: 0 16px; border-radius: 999px; }
  .share-btn.wa span, .share-btn.native span { position: static; width: auto; height: auto; clip: auto; }
}
.next-tools { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.next-tools a { display: inline-flex; align-items: center; gap: 7px; padding: 8px 12px; border-radius: 10px; background: var(--brand-primary-light); color: var(--brand-primary-darker); font-weight: 700; font-size: 13px; }
.next-tools a .icon { width: 15px; height: 15px; }
.facts-head { display: flex; gap: 14px; align-items: center; margin-bottom: 14px; }
.facts { display: grid; gap: 8px; }
.fact { border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.fact summary { cursor: pointer; list-style: none; padding: 12px 14px; font-weight: 750; display: flex; align-items: center; gap: 10px; }
.fact summary::-webkit-details-marker { display: none; }
.fact summary .icon { color: var(--brand-primary); width: 17px; height: 17px; }
.fact summary::after { content: "+"; margin-left: auto; color: var(--ink-3); }
.fact[open] summary::after { content: "–"; }
.fact p { margin: 0; padding: 0 14px 14px 41px; font-size: 14px; color: var(--ink-2); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { padding: 7px 12px; border-radius: 10px; background: var(--ok-bg); color: #0d6b41; font-size: 13px; font-weight: 650; }
.chip-brand { background: var(--line-2); color: var(--ink-2); }
.chip small { color: var(--ink-3); font-weight: 600; margin-left: 4px; }
.excerpt { margin: 10px 0; padding: 12px 16px; border-left: 4px solid var(--danger); background: #fffafa; border-radius: 0 10px 10px 0; font-size: 13.5px; color: var(--ink-2); }
.gate { text-align: center; padding: 10px 6px; }
.gate h3 { font-size: 19px; margin-bottom: 6px; }
.gate p { max-width: 520px; margin-left: auto; margin-right: auto; }
.gate-ic { width: 56px; height: 56px; margin: 0 auto 12px; border-radius: 16px; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, var(--brand-primary), var(--sky)); box-shadow: 0 12px 24px -10px rgba(var(--brand-rgb), .7); }
.gate-ic .icon { width: 26px; height: 26px; }
.gate-form { max-width: 440px; margin: 16px auto 0; }
.gate-msg { margin-top: 8px; min-height: 18px; }
.gate-plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; margin-top: 16px; }
.gate-plan { display: flex; flex-direction: column; gap: 4px; padding: 16px; border-radius: 14px; border: 1.5px solid var(--line); color: var(--ink); background: #fff; transition: transform .15s, border-color .15s; }
.gate-plan:hover { transform: translateY(-2px); border-color: var(--brand-primary); color: var(--ink); }
.gate-plan strong { font-size: 14px; } .gate-plan span { font-size: 22px; font-weight: 800; letter-spacing: -.03em; }
.gate-plan span small { font-size: 12px; font-weight: 600; color: var(--ink-3); }
.gate-plan > small { font-size: 11.5px; font-weight: 700; color: var(--brand-primary-dark); text-transform: uppercase; letter-spacing: .06em; }
.gate-plan.featured { border-color: var(--brand-primary); background: linear-gradient(180deg, var(--brand-primary-light), #fff); }

/* Landing hero with live widget */
.lp-hero.live .container { grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); align-items: start; }
.hero-widget { position: relative; background: #fff; border: 1px solid var(--line); border-radius: 24px; padding: 22px; box-shadow: var(--shadow-lg); }
.hero-widget::before { content: "Try it free"; position: absolute; top: -13px; left: 22px; padding: 4px 12px; border-radius: 999px; font-size: 11.5px; font-weight: 800; letter-spacing: .04em; color: #053c2b; background: var(--mint); box-shadow: 0 6px 14px -6px rgba(52,211,153,.8); }
.live-ticker { display: inline-flex; align-items: center; gap: 8px; margin-top: 22px; font-size: 13.5px; font-weight: 650; color: var(--ink-2); }
.live-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 0 rgba(18,148,90,.6); animation: rx-pulse 1.8s infinite; }
@keyframes rx-pulse { 70% { box-shadow: 0 0 0 10px rgba(18,148,90,0); } 100% { box-shadow: 0 0 0 0 rgba(18,148,90,0); } }
.aud-toggle { display: inline-flex; padding: 5px; border-radius: 14px; background: #fff; border: 1px solid var(--line); margin: 0 auto 30px; }
.aud-toggle button { border: 0; background: transparent; padding: 10px 18px; border-radius: 10px; font: 750 14px/1 var(--font); color: var(--ink-3); cursor: pointer; }
.aud-toggle button.active { background: var(--brand-primary); color: #fff; }
.use-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.use-card { padding: 18px; border-radius: 16px; background: #fff; border: 1px solid var(--line); }
.use-card .icon { color: var(--brand-primary); width: 22px; height: 22px; margin-bottom: 8px; }
.use-card strong { display: block; font-size: 15px; margin-bottom: 4px; }
.use-card span { font-size: 13.5px; color: var(--ink-3); }
@media (max-width: 980px) { .lp-hero.live .container { grid-template-columns: 1fr; } .use-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) {
    .rx-wfields { flex-direction: column; align-items: stretch; }
    .rx-wfields .btn-lg { width: 100%; }
    .rx-wtabs button span { font-size: 12.5px; }
    .hero-widget { padding: 18px 14px; }
    .scan-head { justify-content: center; text-align: center; }
    .use-grid { grid-template-columns: 1fr; }
}

/* Drug A–Z & product pages */
.az { display: flex; flex-wrap: wrap; gap: 6px; margin: 14px 0 20px; }
.az a { min-width: 36px; text-align: center; padding: 7px 8px; border-radius: 9px; background: #fff; border: 1px solid var(--line); font-weight: 750; font-size: 13px; color: var(--ink-2); }
.az a.active, .az a:hover { background: var(--brand-primary); color: #fff; border-color: var(--brand-primary); }
.drug-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
.drug-item { display: flex; gap: 12px; align-items: center; padding: 14px; border-radius: 14px; background: #fff; border: 1px solid var(--line); color: var(--ink); }
.drug-item:hover { border-color: rgba(var(--brand-rgb), .45); color: var(--ink); box-shadow: var(--shadow-sm); }
.drug-item strong { display: block; font-size: 14px; line-height: 1.3; }
.drug-item span.muted { font-size: 12px; }
.crumbs-nav { font-size: 13px; color: rgba(255,255,255,.75); margin-bottom: 14px; }
.crumbs-nav a { color: rgba(255,255,255,.9); }
.plan-pick { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; }
.plan-opt { position: relative; cursor: pointer; }
.plan-opt input { position: absolute; opacity: 0; }
.plan-opt .po-body { display: flex; flex-direction: column; gap: 4px; padding: 18px; border-radius: 16px; border: 2px solid var(--line); background: #fff; height: 100%; transition: border-color .15s, box-shadow .15s; }
.plan-opt.featured .po-body { background: linear-gradient(180deg, var(--brand-primary-light), #fff); }
.plan-opt input:checked + .po-body { border-color: var(--brand-primary); box-shadow: 0 0 0 4px rgba(var(--brand-rgb), .14); }
.plan-opt input:focus-visible + .po-body { outline: 2px solid var(--brand-primary); }
.po-price { font-size: 26px; font-weight: 800; letter-spacing: -.03em; }
.plan-opt small { color: var(--ink-3); font-size: 12.5px; }

/* API docs */
.docs-layout { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 36px; padding-bottom: 50px; }
.docs-nav { position: sticky; top: 92px; align-self: start; display: flex; flex-direction: column; gap: 2px; max-height: calc(100vh - 110px); overflow-y: auto; }
.docs-nav a { padding: 7px 12px; border-radius: 9px; font-size: 13.5px; font-weight: 600; color: var(--ink-2); }
.docs-nav a:hover { background: var(--line-2); color: var(--ink); }
.docs-nav span { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .12em; color: var(--ink-3); padding: 14px 12px 6px; }
.docs-sec { padding: 28px 0; border-bottom: 1px solid var(--line-2); scroll-margin-top: 90px; }
.docs-sec h2 { display: flex; align-items: center; gap: 10px; }
.docs-steps { grid-template-columns: repeat(3, 1fr); margin-bottom: 20px; }
.ep-line { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 12px 0; }
.ep-line .method { font: 800 11.5px/1 var(--mono); padding: 6px 9px; border-radius: 7px; background: var(--ok-bg); color: var(--ok); }
.code-tabs { border-radius: var(--radius-sm); overflow: hidden; background: #0b2230; }
.code-tabstrip { display: flex; gap: 2px; padding: 6px 6px 0; background: #071a24; }
.code-tabstrip button { border: 0; background: transparent; color: #8fb3bb; font: 700 12px/1 var(--font); padding: 9px 12px; border-radius: 8px 8px 0 0; cursor: pointer; }
.code-tabstrip button.active { background: #0b2230; color: #fff; }
.code-tabstrip .code-copy { margin-left: auto; border-radius: 8px; margin-bottom: 6px; background: rgba(255,255,255,.08); color: #d6f5ef; }
.code-tabs pre { margin: 0; border-radius: 0; }
.sandbox-out { margin-top: 16px; }
.j-key { color: #7dd3fc; } .j-str { color: #86efac; } .j-num { color: #fcd34d; } .j-bool { color: #f9a8d4; } .j-null { color: #94a3b8; }
@media (max-width: 900px) { .docs-layout { grid-template-columns: 1fr; } .docs-nav { position: static; flex-direction: row; flex-wrap: wrap; max-height: none; } .docs-nav span { width: 100%; } .docs-steps { grid-template-columns: 1fr; } }
@media (max-width: 640px) {
    .lp-hero.live { padding-top: 28px; }
    .lp-hero.live .eyebrow { margin-bottom: 14px; }
    .lp-hero.live h1 { font-size: 34px; margin-bottom: 12px; }
    .lp-hero.live .lead { font-size: 15.5px; margin-bottom: 0; }
    .lp-hero.live .lp-trust { display: none; }
    .lp-hero.live .live-ticker { margin-top: 12px; }
    .lp-hero.live .container { gap: 30px; }
}

/* =====================================================================
   v10 — Reckopay, PWA, reviews, growth & health components
   ===================================================================== */
.rx-hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }
.text-ok { color: var(--ok); }
.text-warn { color: var(--warn); }
.legend-dot { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.code-block { background: #0b2230; color: #b9f5e8; padding: 14px; border-radius: var(--radius-sm); font: 12px/1.55 var(--mono); white-space: pre; }

/* Personal funding account (Reckopay) */
.va-card { margin: 12px 0; padding: 18px; border-radius: var(--radius); color: #fff; background: radial-gradient(120% 140% at 100% 0%, rgba(255,255,255,.18), transparent 50%), linear-gradient(135deg, var(--brand-primary-dark), var(--brand-primary)); box-shadow: var(--shadow); }
.va-card .va-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 13px; font-weight: 600; opacity: .95; }
.va-card .va-top .icon { width: 16px; height: 16px; vertical-align: -3px; }
.va-card .va-num { font-size: clamp(24px, 5vw, 30px); font-weight: 800; letter-spacing: .06em; margin: 10px 0 2px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.va-card .va-num .btn { color: #fff; border-color: rgba(255,255,255,.4); background: rgba(255,255,255,.12); }
.va-card .va-meta { font-size: 14px; opacity: .9; margin-bottom: 10px; }
.va-card p { color: rgba(255,255,255,.88); }
.va-card .badge { background: rgba(255,255,255,.18); color: #fff; }
.pay-buttons { display: grid; gap: 10px; }

/* Install banner (PWA) */
.rx-install-banner { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 900; max-width: 520px; margin: 0 auto; display: flex; align-items: center; gap: 12px; padding: 12px 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow-lg); transform: translateY(140%); transition: transform .35s cubic-bezier(.2,.9,.3,1.2); }
.rx-install-banner.in { transform: none; }
.rx-install-banner img { border-radius: 12px; flex: none; }
.rx-install-banner .rib-text { flex: 1; min-width: 0; font-size: 13px; line-height: 1.4; }
.rx-install-banner .rib-text strong { display: block; font-size: 14px; }
.rx-install-banner .rib-text span { color: var(--ink-3); }
.rx-install-banner .rib-x { border: 0; background: none; font-size: 24px; line-height: 1; color: var(--ink-3); cursor: pointer; padding: 4px 6px; }

/* Tiny bar charts */
.bar { height: 8px; border-radius: 6px; background: var(--line-2); overflow: hidden; margin-top: 5px; }
.bar > div { height: 100%; border-radius: 6px; background: linear-gradient(90deg, var(--brand-primary), var(--sky)); }
.spark-bars { display: flex; align-items: flex-end; gap: 4px; height: 140px; padding-top: 18px; }
.spark-bars > span { flex: 1; position: relative; min-width: 0; background: linear-gradient(180deg, var(--brand-primary), rgba(var(--brand-rgb), .55)); border-radius: 5px 5px 2px 2px; }
.spark-bars > span i { position: absolute; top: -17px; left: 0; right: 0; text-align: center; font-size: 10px; font-style: normal; color: var(--ink-3); }
.spark-bars.dual > span { background: none; height: 100%; display: flex; align-items: flex-end; gap: 1px; }
.spark-bars.dual b { flex: 1; background: var(--sky); border-radius: 3px 3px 1px 1px; opacity: .8; }
.spark-bars.dual em { flex: 1; background: var(--brand-primary); border-radius: 3px 3px 1px 1px; }
@media (max-width: 600px) { .spark-bars { gap: 2px; height: 110px; } .spark-bars > span i { display: none; } }

/* Tabs / segmented controls */
.tabs-bar { display: flex; gap: 6px; flex-wrap: wrap; border-bottom: 1px solid var(--line); }
.tabs-bar a { padding: 10px 14px; border-bottom: 2px solid transparent; color: var(--ink-2); font-weight: 600; font-size: 14px; margin-bottom: -1px; }
.tabs-bar a.on { color: var(--brand-primary-dark); border-color: var(--brand-primary); }
.tabs-bar .count { display: inline-block; min-width: 20px; padding: 0 6px; border-radius: 10px; background: var(--danger); color: #fff; font-size: 11px; text-align: center; }
.seg { display: inline-flex; background: var(--line-2); border-radius: 10px; padding: 3px; }
.seg a { padding: 5px 12px; border-radius: 8px; font-size: 13px; font-weight: 600; color: var(--ink-2); }
.seg a.on { background: var(--surface); box-shadow: var(--shadow-sm); color: var(--ink); }

/* Health checklist */
.check-line { display: flex; gap: 10px; align-items: flex-start; padding: 10px 0; border-bottom: 1px solid var(--line-2); }
.check-line:last-child { border-bottom: 0; }
.check-line .icon { flex: none; width: 20px; height: 20px; margin-top: 1px; }
.check-line.ok .icon { color: var(--ok); }
.check-line.no .icon { color: var(--warn); }

/* Stars & reviews */
.stars { position: relative; display: inline-block; font-size: 16px; line-height: 1; letter-spacing: 2px; color: #d6dee3; vertical-align: -2px; }
.stars::before { content: "★★★★★"; }
.stars .stars-fill { position: absolute; inset: 0 auto 0 0; overflow: hidden; white-space: nowrap; color: #f5a524; }
.stars .stars-fill::before { content: "★★★★★"; }
.stars.lg { font-size: 22px; }
.rv-summary { display: grid; grid-template-columns: 170px 1fr; gap: 24px; align-items: center; padding: 6px 0 18px; border-bottom: 1px solid var(--line-2); margin-bottom: 16px; }
.rv-score { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.rv-score strong { font-size: 40px; line-height: 1; letter-spacing: -.03em; }
.rv-dist > div { display: grid; grid-template-columns: 28px 1fr 28px; align-items: center; gap: 8px; font-size: 13px; }
.rv-dist .bar { margin: 0; }
.rv-dist .bar > div { background: #f5a524; }
.rv-cta { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 14px 16px; border-radius: var(--radius-sm); background: var(--brand-primary-light); margin-bottom: 14px; font-size: 14px; }
.rv-form { margin-bottom: 16px; }
.rv-item { padding: 16px 0; border-top: 1px solid var(--line-2); }
.rv-item:first-of-type { border-top: 0; }
.rv-item p { margin: 8px 0 6px; color: var(--ink-2); }
.rv-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.rv-meta { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; margin-top: 2px; }
.rv-meta .badge .icon { width: 12px; height: 12px; vertical-align: -2px; }
.rv-votes { display: flex; gap: 14px; }
.rv-votes .link-btn { font-size: 13px; }
.rv-votes .icon { width: 14px; height: 14px; vertical-align: -2px; }
.star-input { border: 0; padding: 0; margin: 0 0 14px; display: inline-flex; flex-direction: row-reverse; gap: 4px; }
.star-input legend { float: left; width: 100%; font-weight: 600; font-size: 14px; margin-bottom: 6px; }
.star-input input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.star-input label { font-size: 32px; line-height: 1; color: #d6dee3; cursor: pointer; transition: transform .1s, color .1s; }
.star-input label:hover, .star-input label:hover ~ label, .star-input input:checked ~ label { color: #f5a524; }
.star-input input:focus-visible + label { outline: 2px solid var(--brand-primary); outline-offset: 2px; border-radius: 4px; }
.rv-admin { padding: 16px 0; border-bottom: 1px solid var(--line-2); }
.rv-admin:last-child { border-bottom: 0; }
@media (max-width: 600px) { .rv-summary { grid-template-columns: 1fr; gap: 12px; } }

/* Commentary */
.commentary { list-style: none; padding: 0; margin: 0 0 12px; display: grid; gap: 10px; }
.commentary li { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: var(--radius-sm); background: var(--line-2); font-size: 14px; line-height: 1.55; }
.commentary li .icon { flex: none; width: 18px; height: 18px; margin-top: 2px; }
.commentary .c-ok { background: var(--ok-bg); } .commentary .c-ok .icon { color: var(--ok); }
.commentary .c-warn { background: var(--warn-bg); } .commentary .c-warn .icon { color: var(--warn); }
.commentary .c-bad { background: var(--danger-bg); } .commentary .c-bad .icon { color: var(--danger); }
.commentary .c-info .icon { color: var(--brand-primary); }
.editorial { border-left: 4px solid var(--brand-primary); background: var(--brand-primary-light); padding: 12px 16px; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; margin-bottom: 14px; }
.editorial .ed-head { font-size: 14px; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.editorial .ed-head .icon { width: 16px; height: 16px; color: var(--brand-primary-dark); }
.editorial p { margin: 6px 0 0; }
.rx-onboard a { font-weight: 700; }
.site-footer .footer-install { margin-top: 14px; display: inline-flex; }
@media (min-width: 900px) { .dl.dl-2 { grid-template-columns: 150px 1fr 150px 1fr; } }

/* v11 — registry results: NAFDAC notices, international reference */
.notices { margin: 16px 0 6px; }
.notices h4 { display: flex; align-items: center; gap: 8px; font-size: 15px; margin: 0 0 10px; }
.notices h4 .icon { width: 18px; height: 18px; color: var(--warn); }
.notice { display: flex; flex-direction: column; gap: 4px; padding: 12px 14px; margin-bottom: 8px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); color: var(--ink); transition: border-color .15s, box-shadow .15s; }
.notice:hover { border-color: var(--brand-primary); box-shadow: var(--shadow-sm); color: var(--ink); }
.notice strong { font-size: 14px; line-height: 1.4; }
.notice .small { color: var(--ink-2); line-height: 1.5; }
.notice.hit { border-color: var(--danger); background: var(--danger-bg); }
.notice .badge { align-self: flex-start; }
.ref-card { margin: 14px 0; padding: 14px 16px; border-radius: var(--radius-sm); background: var(--brand-primary-light); border: 1px solid rgba(var(--brand-rgb), .25); }
.ref-card .ref-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 6px; font-size: 14px; }
.ref-card .ref-head .icon { width: 18px; height: 18px; color: var(--brand-primary-dark); }
.result-banner.info { background: var(--brand-primary-light); }
.reg-list { margin: 10px 0 14px; }
.reg-list .alert-link { justify-content: space-between; }

/* v12 — updater */
.upd-log { margin: 0; padding-left: 20px; line-height: 1.7; }
.stat-grid.mini { grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); margin: 14px 0; }
.stat-grid.mini .stat-box { padding: 12px 14px; }
.stat-grid.mini .value { font-size: 22px; }
.upd-files { max-height: 260px; overflow: auto; line-height: 1.8; }
.btn-danger { background: var(--danger); border-color: var(--danger); color: #fff; }

/* v12 — medication reminders */
.js-on [data-med-extra]:not(.shown) { display: none; }
.med-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 640px) { .med-grid-3 { grid-template-columns: 1fr 1fr; } }
.med-times { display: flex; flex-wrap: wrap; gap: 8px; }
.med-times input { width: auto; min-width: 120px; flex: 0 0 auto; }
.med-days { display: flex; flex-wrap: wrap; gap: 6px 14px; }
.med-swatches { display: flex; flex-wrap: wrap; gap: 8px; }
.med-swatches label { cursor: pointer; }
.med-swatches input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.med-swatches span { display: block; width: 30px; height: 18px; border-radius: 10px; border: 2px solid var(--line); box-shadow: inset -4px -3px 0 rgba(0,0,0,.08); }
.med-swatches input:checked + span { border-color: var(--brand-primary); box-shadow: 0 0 0 3px rgba(var(--brand-rgb), .25); }
.med-swatches input:focus-visible + span { outline: 2px solid var(--brand-primary); outline-offset: 2px; }
.med-pill-dot { display: inline-block; width: 22px; height: 12px; border-radius: 8px; border: 1px solid var(--line); vertical-align: middle; margin-right: 4px; }
.med-hero { display: flex; align-items: center; justify-content: space-between; gap: 20px; background: linear-gradient(135deg, var(--brand-primary-light), var(--surface)); }
.med-hero h2 { font-size: 22px; margin: 6px 0; }
.med-hero .eyebrow { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--brand-primary-dark); }
.med-hero .eyebrow .icon { width: 14px; height: 14px; }
.med-ring { flex: 0 0 auto; width: 112px; height: 112px; border-radius: 50%; display: grid; place-items: center; background: var(--surface); box-shadow: 0 0 0 8px rgba(var(--brand-rgb), .12), var(--shadow-sm); position: relative; }
.med-ring strong { font-size: 18px; margin-top: 30px; }
.med-ring-pill { position: absolute; top: 24px; width: 40px; height: 18px; border-radius: 10px; background: linear-gradient(90deg, var(--brand-primary) 50%, #fff 50%); border: 1px solid var(--line); animation: med-sway 3s ease-in-out infinite; }
@keyframes med-sway { 0%, 100% { transform: rotate(-12deg); } 50% { transform: rotate(12deg); } }
@media (max-width: 560px) { .med-hero { flex-direction: column; align-items: flex-start; } .med-ring { display: none; } }
.med-list { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 8px; }
.med-dose { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--line-2); border-radius: 12px; background: var(--surface); flex-wrap: wrap; }
.med-dose.is-due { border-color: var(--warn); background: var(--warn-bg); }
.med-dose.is-taken { opacity: .72; }
.med-dose.is-taken .med-state { color: var(--ok); }
.med-dose.is-missed .med-state, .med-dose.is-skipped .med-state { color: var(--danger); }
.med-time { min-width: 52px; font-weight: 800; font-size: 17px; font-variant-numeric: tabular-nums; }
.med-time small { font-size: 11px; font-weight: 600; margin-left: 2px; color: var(--ink-3); }
.med-pill { flex: 0 0 auto; width: 30px; height: 15px; border-radius: 9px; background: var(--pill, #fff); border: 1px solid var(--line); box-shadow: inset -5px -3px 0 rgba(0,0,0,.07); }
.med-pill.sm { width: 22px; height: 11px; }
.med-what { flex: 1 1 180px; min-width: 0; display: flex; flex-direction: column; }
.med-what span { font-size: 13px; color: var(--ink-2); }
.med-acts { display: flex; align-items: center; gap: 6px; margin: 0; }
.med-state { font-size: 13px; font-weight: 700; display: inline-flex; align-items: center; gap: 4px; }
.med-state .icon { width: 16px; height: 16px; }
.med-overdue { border-color: var(--warn); }
.med-rx { padding: 12px 0; border-top: 1px solid var(--line-2); }
.med-rx:first-of-type { border-top: 0; }
.med-rx.is-off { opacity: .6; }
.med-items { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 8px; }
.med-items li { display: flex; align-items: flex-start; gap: 10px; }
.med-items li > div { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.med-items li.is-off { opacity: .5; text-decoration: line-through; }
.med-items .badge { align-self: flex-start; }
.med-items .med-pill { margin-top: 4px; }
.med-tips { padding-left: 18px; line-height: 1.7; margin: 0; }
.med-alarm hr { border: 0; border-top: 1px solid var(--line-2); margin: 16px 0; }
.med-alarm-modal { position: fixed; inset: 0; z-index: 9999; display: grid; place-items: center; padding: 16px; background: rgba(6, 26, 30, .62); backdrop-filter: blur(4px); animation: med-fade .2s ease-out; }
.med-alarm-box { width: 100%; max-width: 420px; background: var(--surface); border-radius: 22px; padding: 26px 22px 20px; text-align: center; box-shadow: var(--shadow-lg); animation: med-pop .35s cubic-bezier(.2, 1.4, .4, 1); }
.med-alarm-box h2 { margin: 12px 0 10px; font-size: 22px; }
.med-alarm-pill { width: 96px; height: 96px; margin: 0 auto; border-radius: 50%; display: grid; place-items: center; background: var(--brand-primary-light); box-shadow: 0 0 0 0 rgba(var(--brand-rgb), .5); animation: med-pulse 1.4s infinite; }
.med-alarm-pill span { width: 54px; height: 24px; border-radius: 14px; background: linear-gradient(90deg, var(--brand-primary) 50%, #fff 50%); border: 1px solid var(--line); animation: med-shake .5s ease-in-out infinite; }
.med-al-list { list-style: none; padding: 0; margin: 0 0 16px; text-align: left; display: grid; gap: 8px; }
.med-al-list li { display: flex; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 12px; background: var(--bg); }
.med-al-list li div { display: flex; flex-direction: column; font-size: 13px; color: var(--ink-2); }
.med-al-list li strong { font-size: 15px; color: var(--ink); }
.med-al-actions { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.med-al-actions .btn { min-width: 120px; }
.med-toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 10000; max-width: calc(100% - 32px); background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 12px; font-size: 14px; box-shadow: var(--shadow); transition: opacity .5s, transform .5s; }
.med-toast.out { opacity: 0; transform: translateX(-50%) translateY(10px); }
@keyframes med-fade { from { opacity: 0; } }
@keyframes med-pop { from { transform: scale(.85); opacity: 0; } }
@keyframes med-pulse { 70% { box-shadow: 0 0 0 22px rgba(var(--brand-rgb), 0); } 100% { box-shadow: 0 0 0 0 rgba(var(--brand-rgb), 0); } }
@keyframes med-shake { 0%, 100% { transform: rotate(-14deg); } 50% { transform: rotate(14deg); } }
@media (prefers-reduced-motion: reduce) { .med-alarm-pill, .med-alarm-pill span, .med-ring-pill { animation: none; } }
.med-sheet { max-width: 1000px; margin: 0 auto; padding: 24px 16px; background: #fff; color: #111; }
.med-sheet h2 { margin-top: 24px; }
.med-print-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.med-print-table th, .med-print-table td { border: 1px solid #bbb; padding: 6px 8px; vertical-align: top; }
.med-print-table .c { text-align: center; white-space: nowrap; }
.med-print-table .ticks span { display: block; font-size: 11px; }
@media print { .no-print, #rx-loader, #rx-progress { display: none !important; } body { background: #fff; } .med-sheet { padding: 0; } }
@media (max-width: 700px) { .med-sheet { overflow-x: auto; } }
.med-cta { display: flex; align-items: center; gap: 14px; color: var(--ink); text-decoration: none; border-color: rgba(var(--brand-rgb), .3); background: linear-gradient(135deg, var(--brand-primary-light), var(--surface)); }
.med-cta:hover { color: var(--ink); box-shadow: var(--shadow); }
.med-cta > span:nth-child(2) { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.med-alarm .btn-block { white-space: normal; height: auto; line-height: 1.3; }
.med-times input[type=time] { width: 130px; min-width: 0; }


/* v12.1 — phones and app webviews: everything fits the screen, nothing scrolls sideways */
html, body { max-width: 100%; overflow-x: hidden; }
body { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
img, svg, video, canvas, iframe { max-width: 100%; }
td, dd, dt, p, li, h1, h2, h3, h4, .row-title, .result-row, .alert, .badge-wrap, .mono, code { overflow-wrap: anywhere; word-break: normal; }
.grid-2 > *, .tool-layout > *, .form-grid > *, .stat-grid > *, .rx-main, .rx-content, .flex > * { min-width: 0; }
.rx-content { padding-left: max(16px, env(safe-area-inset-left)); padding-right: max(16px, env(safe-area-inset-right)); }
.rx-main { min-height: 100vh; min-height: 100dvh; }
input, select, textarea { max-width: 100%; }

@media (max-width: 640px) {
    /* the main search field no longer grows into a tall empty gap */
    .rx-wfield.grow { flex: 0 0 auto; }
    .rx-wfield { min-width: 0; }

    /* numbers side by side, compact */
    .stat-grid { grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 16px; }
    .stat-box { padding: 14px; border-radius: 14px; }
    .stat-box::after { display: none; }
    .stat-box .label { font-size: 11px; letter-spacing: .03em; gap: 6px; margin-bottom: 4px; }
    .stat-box .label .stat-ico { display: none; }
    .stat-box .value { font-size: 22px; }
    .stat-box .sub { font-size: 12px; }

    .card { padding: 16px; border-radius: 16px; }
    .card-head { flex-wrap: wrap; gap: 8px; }
    .grid-2 { grid-template-columns: 1fr !important; }
    .page-hero { padding: 20px 18px; }
    .page-hero h2 { font-size: 21px; }
    .tool-hero .float-pills, .page-banner .float-pills { display: none; }
    .tool-hero { padding: 34px 0 96px; }
    .container { padding-left: 16px; padding-right: 16px; }

    /* tables become cards */
    .table-wrap { overflow: visible; }
    table.rx-stack, table.rx-stack tbody, table.rx-stack tr, table.rx-stack td { display: block; width: 100%; }
    table.rx-stack thead { display: none; }
    table.rx-stack tr { border: 1px solid var(--line-2); border-radius: 12px; padding: 8px 12px; margin-bottom: 10px; background: var(--surface); }
    table.rx-stack tbody tr:hover { background: var(--surface); }
    table.rx-stack td { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding: 7px 0; border: 0; border-bottom: 1px dashed var(--line-2); text-align: right; white-space: normal !important; }
    table.rx-stack td:last-child { border-bottom: 0; }
    table.rx-stack td::before { content: attr(data-label); flex: 0 0 38%; text-align: left; font-size: 11.5px; font-weight: 700; color: var(--ink-3); text-transform: uppercase; letter-spacing: .04em; padding-top: 2px; }
    table.rx-stack td.no-label { justify-content: flex-start; text-align: left; }
    table.rx-stack td.no-label::before { display: none; }
    table.rx-stack td > * { max-width: 62%; }
    table.rx-stack td.no-label > *, table.rx-stack td.table-actions > * { max-width: none; }
    table.rx-stack td.table-actions { justify-content: flex-end; flex-wrap: wrap; }
    table.rx-stack td .input-group, table.rx-stack td form { max-width: 100%; }

    .result-row { flex-wrap: wrap; gap: 6px; }
    .table-actions { flex-wrap: wrap; }
    .tabs { overflow-x: auto; flex-wrap: nowrap; scrollbar-width: none; }
    .tabs::-webkit-scrollbar { display: none; }
    .tabs a { white-space: nowrap; }
    .btn { white-space: normal; }
    .med-alarm .btn-block { font-size: 14px; }
    dl.dl { grid-template-columns: 1fr; }
    dl.dl dt { margin-top: 8px; }
    .input-group { flex-wrap: wrap; }
    .input-group > * { flex: 1 1 100%; }
    .rx-topbar { gap: 10px; }
    .rx-topbar h1 { font-size: 19px; }
    .rx-chip { display: none; }
}
.docs-layout > * { min-width: 0; }
@media (max-width: 640px) {
    .stat-box .value { font-size: clamp(16px, 5.4vw, 22px); overflow-wrap: anywhere; }
    .stat-box .label, .stat-box .muted, .stat-box div { overflow-wrap: anywhere; }
    table.rx-stack td:has(form, details, .input-group, textarea) { flex-direction: column; align-items: stretch; text-align: left; }
    table.rx-stack td:has(form, details, .input-group, textarea) > * { max-width: 100%; }
    table.rx-stack td:has(form, details, .input-group, textarea)::before { flex: none; }
    .docs-main pre { white-space: pre-wrap; word-break: break-all; }
}
@media (max-width: 640px) { .badge { white-space: normal; } }
