/* MEDICARD web app — hub design language on the web.
   Canvas bg100, flat surface cards (radius 22, no border/shadow), tinted icon tiles,
   one spotlight per page. Dark = cool gray-950 navy. */

@font-face { font-family: 'FiraGO'; src: url('/fonts/firago/FiraGO-Regular.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'FiraGO'; src: url('/fonts/firago/FiraGO-Medium.woff2') format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'FiraGO'; src: url('/fonts/firago/FiraGO-SemiBold.woff2') format('woff2'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'FiraGO'; src: url('/fonts/firago/FiraGO-Bold.woff2') format('woff2'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'FiraGO'; src: url('/fonts/firago/FiraGO-ExtraBold.woff2') format('woff2'); font-weight: 800; font-display: swap; }

:root {
  --bg: #f5f7f7;
  --bg2: #eaeeef;
  --bg3: #dde3e4;
  --surface: #ffffff;
  --surface2: #f8fafa;
  --line: #e6ebec;
  --track: #e9eeef;
  --text: #0f1a1c;
  --text2: #46565a;
  --text3: #7b8b8f;
  --brand: #0d9488;
  --brand-ink: #0f766e;
  --brand-soft: #ccfbf1;
  --brand-2: #14b8a6;
  --on-brand: #ffffff;
  --spot: #102c35;
  --spot-text: #e6fffb;
  --ok: #0f8a5f; --ok-bg: #e3f4ec;
  --warn: #b87400; --warn-bg: #fbf0de;
  --danger: #c62b3f; --danger-bg: #fbeaec;
  --ink-teal: #0f766e; --ink-blue: #1d4ed8; --ink-violet: #6b50a0; --ink-rose: #be185d;
  --ink-amber: #b45309; --ink-green: #15803d; --ink-sky: #0369a1; --ink-neutral: #374151;
  --tint: 8%;
  --c1: #0d9488; --c2: #6366f1; --c3: #f59e0b; --c4: #ec4899; --c5: #0ea5e9; --c6: #22c55e;
  --radius: 22px;
  --radius-sm: 14px;
  --shadow-pop: 0 18px 50px -12px rgba(15, 26, 28, .22), 0 2px 6px rgba(15, 26, 28, .06);
  --side: 264px;
  --font: 'FiraGO', system-ui, -apple-system, 'Segoe UI', sans-serif;
  color-scheme: light;
}

:root[data-theme='dark'] {
  --bg: #030712; --bg2: #1f2937; --bg3: #374151;
  --surface: #111827; --surface2: #172033;
  --line: #1f2937; --track: #1f2937;
  --text: #ffffff; --text2: #d1d5db; --text3: #8b95a5;
  --brand: #0d9488; --brand-ink: #5eead4; --brand-soft: #042f2e; --brand-2: #14b8a6;
  --spot: #0b2a2f; --spot-text: #e6fffb;
  --ok: #22c55e; --ok-bg: #052e16; --warn: #f59e0b; --warn-bg: #451a03; --danger: #f43f5e; --danger-bg: #4c0519;
  --ink-teal: #5eead4; --ink-blue: #93c5fd; --ink-violet: #c4b5fd; --ink-rose: #f9a8d4;
  --ink-amber: #fcd34d; --ink-green: #86efac; --ink-sky: #7dd3fc; --ink-neutral: #d1d5db;
  --tint: 15%;
  --c1: #2dd4bf; --c2: #818cf8; --c3: #fbbf24; --c4: #f472b6; --c5: #38bdf8; --c6: #4ade80;
  --shadow-pop: 0 18px 50px -12px rgba(0, 0, 0, .7), 0 0 0 1px rgba(255, 255, 255, .06);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
/* Icons and icon tiles keep their own box whatever a module's `.x span { … }` rule says
   (a descendant `span` rule once turned every tile into a block and knocked icons off centre). */
.ic:not([hidden]) { display: inline-flex !important; align-items: center; justify-content: center; overflow: visible !important; flex: none; }
.tile:not([hidden]) { display: grid !important; place-items: center; flex: none; }
.tile > .ic { margin: 0 !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 15px/1.55 var(--font); -webkit-font-smoothing: antialiased;
  font-feature-settings: 'kern' 1;
}
body.modal-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
img { max-width: 100%; display: block; }
h1, h2, h3, h4 { margin: 0; font-weight: 700; letter-spacing: -.01em; }
p { margin: 0; }
.muted { color: var(--text2); }
.faint { color: var(--text3); }
.ic { display: inline-flex; flex: none; }
.ic svg { display: block; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
:focus-visible { outline: 2px solid var(--brand-2); outline-offset: 2px; border-radius: 8px; }
::selection { background: color-mix(in srgb, var(--brand-2) 30%, transparent); }

/* ── Boot ──────────────────────────────────────────── */
.boot { min-height: 100vh; display: grid; place-items: center; }
.boot-mark { width: 56px; height: 56px; border-radius: 16px; animation: pulse 1.4s ease-in-out infinite; }
@keyframes pulse { 50% { transform: scale(.92); opacity: .7; } }

/* ── Shell ─────────────────────────────────────────── */
.shell { display: grid; grid-template-columns: var(--side) 1fr; min-height: 100vh; }
.side {
  position: sticky; top: 0; height: 100vh; overflow-y: auto; padding: 22px 14px 18px;
  display: flex; flex-direction: column; gap: 4px; background: var(--surface);
  border-right: 1px solid var(--line); scrollbar-width: thin;
}
.side-brand { display: flex; align-items: center; gap: 10px; padding: 4px 10px 18px; font-weight: 800; font-size: 17px; }
.side-brand img { width: 32px; height: 32px; border-radius: 9px; }
.side-brand small { display: block; font-size: 11px; font-weight: 500; color: var(--text3); letter-spacing: .02em; }
.side-group { font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--text3); padding: 16px 12px 6px; }
.nav-item {
  display: flex; align-items: center; gap: 12px; padding: 9px 12px; border-radius: 12px;
  color: var(--text2); font-weight: 500; font-size: 14.5px; transition: background .15s, color .15s;
}
.nav-item:hover { background: var(--bg); color: var(--text); }
.nav-item.on { background: color-mix(in srgb, var(--brand) 11%, transparent); color: var(--brand-ink); font-weight: 600; }
.nav-item.on .ic { color: var(--brand-ink); }
.side-foot { margin-top: auto; padding-top: 14px; display: flex; flex-direction: column; gap: 4px; }
.side-user { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 14px; background: var(--bg); }
.side-user .who { min-width: 0; flex: 1; }
.side-user .who b { display: block; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.side-user .who span { font-size: 12px; color: var(--text3); }

.avatar {
  width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; flex: none;
  background: var(--brand-soft); color: var(--brand-ink); font-weight: 700; font-size: 15px; overflow: hidden;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar.lg { width: 72px; height: 72px; font-size: 26px; }

.main { min-width: 0; display: flex; flex-direction: column; }
.topbar {
  position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 12px;
  padding: 14px 32px; background: color-mix(in srgb, var(--bg) 84%, transparent);
  backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
}
.topbar .crumb { font-weight: 600; font-size: 14px; color: var(--text2); display: flex; align-items: center; gap: 6px; }
.topbar .spacer { flex: 1; }
.topbar .mobile-brand { display: none; }
.content { padding: 8px 32px 64px; width: 100%; max-width: 1360px; margin: 0 auto; }
.content.wide { max-width: none; }

.bottom-nav { display: none; }

@media (max-width: 1080px) {
  :root { --side: 84px; }
  .side { padding: 18px 10px; align-items: center; }
  .side-brand span, .side-group, .nav-item span:not(.ic), .side-user .who { display: none; }
  .side-brand { padding: 4px 0 14px; }
  .nav-item { justify-content: center; padding: 11px; width: 52px; }
  .side-user { padding: 6px; background: none; }
}
@media (max-width: 760px) {
  .shell { grid-template-columns: 1fr; }
  .side { display: none; }
  .topbar { padding: 10px 16px; }
  .topbar .mobile-brand { display: flex; align-items: center; gap: 8px; font-weight: 800; }
  .topbar .mobile-brand img { width: 28px; height: 28px; border-radius: 8px; }
  .topbar .crumb { display: none; }
  .content { padding: 4px 16px 110px; }
  .bottom-nav {
    display: flex; position: fixed; z-index: 30; left: 12px; right: 12px; bottom: calc(10px + env(safe-area-inset-bottom));
    background: color-mix(in srgb, var(--surface) 92%, transparent); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
    border-radius: 24px; padding: 6px; box-shadow: var(--shadow-pop); justify-content: space-around;
  }
  .bottom-nav a { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 7px 2px; border-radius: 18px; font-size: 11px; color: var(--text3); font-weight: 500; }
  .bottom-nav a.on { color: var(--brand-ink); background: color-mix(in srgb, var(--brand) 11%, transparent); }
}

/* ── Page structure ────────────────────────────────── */
.page { animation: pageIn .32s cubic-bezier(.2, .8, .2, 1); }
@keyframes pageIn { from { opacity: 0; transform: translateY(6px); } }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin: 14px 0 26px; flex-wrap: wrap; }
.page-head h1 { font-size: clamp(24px, 3vw, 32px); line-height: 1.2; font-weight: 800; letter-spacing: -.02em; }
.page-head p { margin-top: 6px; color: var(--text2); max-width: 70ch; }
.page-head-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.back { display: inline-flex; align-items: center; gap: 4px; color: var(--text2); font-weight: 500; font-size: 14px; margin-top: 8px; }
.back:hover { color: var(--text); }

.hub-section { margin-bottom: 28px; }
.hub-section-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.hub-section-head h2 { font-size: 17px; line-height: 24px; font-weight: 700; }
.link { display: inline-flex; align-items: center; gap: 2px; color: var(--brand-ink); font-weight: 600; font-size: 13.5px; }
.link:hover { text-decoration: underline; text-underline-offset: 3px; }

.grid { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-auto { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.grid-main { grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); align-items: start; }
.span-2 { grid-column: span 2; }
@media (max-width: 1180px) { .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .grid-main { grid-template-columns: 1fr; } }
@media (max-width: 900px) { .grid-3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } .span-2 { grid-column: auto; } }
.stack { display: flex; flex-direction: column; gap: 12px; }
.hstack { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.between { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

/* ── Cards ─────────────────────────────────────────── */
.card { background: var(--surface); border-radius: var(--radius); padding: 20px; min-width: 0; position: relative; }
.card.pad-lg { padding: 26px; }
.card.flush { padding: 0; overflow: hidden; }
.card.hover { transition: transform .18s ease, box-shadow .18s ease; }
.card.hover:hover { transform: translateY(-2px); box-shadow: 0 10px 30px -14px rgba(15, 26, 28, .25); }
/* Zero specificity: a module's own layout class on a link card (.x { display: flex }) must win. */
:where(a.card) { display: block; }
.card-title { font-size: 15px; font-weight: 600; line-height: 22px; }
.card-sub { font-size: 13px; color: var(--text2); margin-top: 2px; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.spotlight { background: var(--spot); color: var(--spot-text); }
.spotlight .muted, .spotlight .card-sub { color: color-mix(in srgb, var(--spot-text) 72%, transparent); }
.spotlight .tile { background: rgba(255, 255, 255, .1); color: #5eead4; }
.hero-card { position: relative; overflow: hidden; }
.hero-card::after {
  content: ''; position: absolute; right: -80px; top: -80px; width: 280px; height: 280px; border-radius: 50%;
  background: radial-gradient(circle, rgba(94, 234, 212, .22), transparent 65%); pointer-events: none;
}

.tile { display: grid; place-items: center; border-radius: var(--radius-sm); flex: none; }
.ink-teal { --ink: var(--ink-teal); } .ink-blue { --ink: var(--ink-blue); } .ink-violet { --ink: var(--ink-violet); }
.ink-rose { --ink: var(--ink-rose); } .ink-amber { --ink: var(--ink-amber); } .ink-green { --ink: var(--ink-green); }
.ink-sky { --ink: var(--ink-sky); } .ink-neutral { --ink: var(--ink-neutral); }
.tile[class*='ink-'] { color: var(--ink); background: color-mix(in srgb, var(--ink) var(--tint), transparent); }

.feature { display: flex; flex-direction: column; gap: 12px; height: 100%; }
.feature h3 { font-size: 15.5px; font-weight: 600; }
.feature p { font-size: 13.5px; color: var(--text2); line-height: 1.55; }
.feature .cta { margin-top: auto; display: inline-flex; align-items: center; gap: 4px; color: var(--brand-ink); font-weight: 600; font-size: 13.5px; }

/* ── Stats ─────────────────────────────────────────── */
.stat-label { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--text2); font-weight: 500; }
.stat-value { font-size: 26px; font-weight: 700; letter-spacing: -.02em; margin-top: 6px; line-height: 1.15; font-variant-numeric: tabular-nums; }
.stat-value small { font-size: 13px; font-weight: 500; color: var(--text3); letter-spacing: 0; }
.stat-delta { font-size: 12.5px; margin-top: 6px; color: var(--text3); font-weight: 500; }
.stat-delta.up { color: var(--ok); } .stat-delta.down { color: var(--danger); }
.stats-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 16px; }
.stat-value { overflow-wrap: anywhere; }
@media (max-width: 640px) { .stats-row { gap: 12px; } .stats-row .stat-value { font-size: 20px; } }
.kpi { display: flex; flex-direction: column; gap: 10px; }
.kpi .spark { margin-top: auto; }

/* ── Buttons ───────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; cursor: pointer;
  padding: 11px 18px; border-radius: 14px; font-weight: 600; font-size: 14.5px; line-height: 20px;
  transition: background .15s, transform .08s, opacity .15s, box-shadow .15s; white-space: nowrap; position: relative;
}
.btn:active { transform: scale(.98); }
.btn:disabled { opacity: .55; cursor: default; }
.btn-primary { background: var(--brand); color: var(--on-brand); }
.btn-primary:hover { background: #0f766e; }
.btn-secondary { background: color-mix(in srgb, var(--brand) 12%, transparent); color: var(--brand-ink); }
.btn-secondary:hover { background: color-mix(in srgb, var(--brand) 18%, transparent); }
.btn-ghost { background: var(--bg); color: var(--text); }
.card .btn-ghost { background: var(--bg); }
.btn-ghost:hover { background: var(--bg2); }
.btn-outline { background: transparent; color: var(--text); box-shadow: inset 0 0 0 1.5px var(--bg3); }
.btn-outline:hover { box-shadow: inset 0 0 0 1.5px var(--text3); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-light { background: #fff; color: #0f1a1c; }
.btn-sm { padding: 7px 12px; font-size: 13px; border-radius: 11px; }
.btn-lg { padding: 14px 22px; font-size: 15.5px; border-radius: 16px; }
.btn-block { width: 100%; }
.btn.is-busy { color: transparent !important; }
.btn.is-busy::after {
  content: ''; position: absolute; width: 18px; height: 18px; border-radius: 50%;
  border: 2.5px solid currentColor; border-color: rgba(255, 255, 255, .9) rgba(255, 255, 255, .9) transparent transparent;
  animation: spin .7s linear infinite;
}
.btn-ghost.is-busy::after, .btn-secondary.is-busy::after, .btn-outline.is-busy::after { border-color: var(--brand) var(--brand) transparent transparent; }
@keyframes spin { to { transform: rotate(360deg); } }
.icon-btn {
  width: 40px; height: 40px; border-radius: 12px; border: 0; background: transparent; cursor: pointer;
  display: inline-grid; place-items: center; color: var(--text2); transition: background .15s, color .15s;
}
.icon-btn:hover { background: var(--bg2); color: var(--text); }
.card .icon-btn:hover { background: var(--bg); }

/* Language switch in the top bar: ქა | EN, the active one filled. */
.lang-pill {
  display: inline-flex; align-items: center; gap: 2px; height: 34px; padding: 3px; margin-right: 4px;
  border: 1px solid var(--line); border-radius: 999px; background: var(--bg2); cursor: pointer; font: inherit;
}
.lang-pill span {
  min-width: 30px; height: 26px; padding: 0 6px; border-radius: 999px; display: grid; place-items: center;
  font-size: 12px; font-weight: 700; letter-spacing: .02em; color: var(--text2); transition: background .2s, color .2s;
}
.lang-pill span.on { background: var(--surface, #fff); color: var(--text); box-shadow: 0 1px 2px rgba(0,0,0,.08); }
.lang-pill:hover span:not(.on) { color: var(--text); }
.lang-pill:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }

.badge { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 600; padding: 3px 9px; border-radius: 999px; white-space: nowrap; }
.badge-neutral { background: var(--bg); color: var(--text2); }
.badge-brand { background: color-mix(in srgb, var(--brand) 12%, transparent); color: var(--brand-ink); }
.badge-ok { background: var(--ok-bg); color: var(--ok); }
.badge-warn { background: var(--warn-bg); color: var(--warn); }
.badge-danger { background: var(--danger-bg); color: var(--danger); }
.badge-violet { background: color-mix(in srgb, var(--ink-violet) var(--tint), transparent); color: var(--ink-violet); }
.badge-rose { background: color-mix(in srgb, var(--ink-rose) var(--tint), transparent); color: var(--ink-rose); }
.badge-amber { background: color-mix(in srgb, var(--ink-amber) var(--tint), transparent); color: var(--ink-amber); }

/* ── Rows ──────────────────────────────────────────── */
.list { display: flex; flex-direction: column; }
.list > .row + .row { border-top: 1px solid var(--line); }
.row { display: flex; align-items: center; gap: 14px; padding: 12px 4px; text-align: left; width: 100%; background: none; border: 0; }
.row-link { cursor: pointer; border-radius: 14px; transition: background .12s; }
.row-link:hover { background: var(--bg); }
.card .list .row { padding-left: 8px; padding-right: 8px; }
.row-main { flex: 1; min-width: 0; }
.row-title { font-weight: 600; font-size: 14.5px; line-height: 1.35; overflow: hidden; text-overflow: ellipsis; }
.row-sub { font-size: 13px; color: var(--text2); margin-top: 2px; }
.row-trail { flex: none; display: flex; align-items: center; gap: 8px; color: var(--text2); font-size: 13.5px; }
.row-chev { color: var(--text3); }

/* ── Forms ─────────────────────────────────────────── */
.form { display: flex; flex-direction: column; gap: 14px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 6px; }
.field-label { font-size: 13px; font-weight: 600; color: var(--text2); }
.field-hint { font-size: 12px; color: var(--text3); }
.input {
  width: 100%; font: inherit; font-size: 15px; color: var(--text); background: var(--bg);
  border: 1.5px solid transparent; border-radius: 14px; padding: 12px 14px; outline: none;
  transition: border-color .15s, background .15s, box-shadow .15s;
}
.modal .input, .card .input { background: var(--bg); }
.input:hover { border-color: var(--bg3); }
.input:focus { border-color: var(--brand-2); background: var(--surface); box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand-2) 16%, transparent); }
.input::placeholder { color: var(--text3); }
.textarea { min-height: 96px; resize: vertical; line-height: 1.5; }
.select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%237b8b8f' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 38px; }
.form-error { background: var(--danger-bg); color: var(--danger); padding: 10px 14px; border-radius: 12px; font-size: 13.5px; font-weight: 500; }
/* Declined / closed AI disclosure — a calm choice, never an error (App Review 2026-09-22). aiConsent.js aiDeclinedNote */
.ai-declined { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 10px 14px; border-radius: 12px; background: var(--bg); color: var(--text2); font-size: 13.5px; line-height: 1.45; }
.ai-declined[hidden] { display: none; }
.ai-declined > span { flex: 1; min-width: 180px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px; border: 0; cursor: pointer;
  background: var(--bg); color: var(--text2); font-size: 13.5px; font-weight: 500; transition: background .15s, color .15s;
}
.chip:hover { background: var(--bg2); color: var(--text); }
.chip.on { background: var(--brand); color: #fff; }

.segmented { display: inline-flex; background: var(--bg2); border-radius: 14px; padding: 4px; gap: 2px; max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.card .segmented { background: var(--bg); }
.segmented button { border: 0; background: transparent; padding: 8px 14px; border-radius: 10px; font-size: 13.5px; font-weight: 600; color: var(--text2); cursor: pointer; white-space: nowrap; transition: background .15s, color .15s; }
.segmented button.on { background: var(--surface); color: var(--text); box-shadow: 0 1px 3px rgba(15, 26, 28, .1); }
:root[data-theme='dark'] .segmented button.on { background: var(--bg3); }

.toggle { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; user-select: none; }
.toggle input { position: absolute; opacity: 0; pointer-events: none; }
.toggle-track { width: 42px; height: 24px; border-radius: 999px; background: var(--bg3); position: relative; transition: background .18s; flex: none; }
.toggle-thumb { position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .2); transition: transform .18s; }
.toggle input:checked + .toggle-track { background: var(--brand); }
.toggle input:checked + .toggle-track .toggle-thumb { transform: translateX(18px); }
.toggle input:focus-visible + .toggle-track { outline: 2px solid var(--brand-2); outline-offset: 2px; }

/* ── Progress / meters ─────────────────────────────── */
.progress { height: 8px; border-radius: 999px; background: var(--track); overflow: hidden; }
.progress span { display: block; height: 100%; border-radius: inherit; background: var(--ink, var(--brand)); transition: width .6s cubic-bezier(.2, .8, .2, 1); }
.meters { display: flex; flex-direction: column; gap: 14px; }
.meter-top { display: flex; justify-content: space-between; font-size: 13px; color: var(--text2); margin-bottom: 6px; }
.meter-top b { color: var(--text); font-weight: 600; font-variant-numeric: tabular-nums; }
.meter-track { height: 8px; border-radius: 999px; background: var(--track); overflow: hidden; }
.meter-track span { display: block; height: 100%; border-radius: inherit; animation: grow .8s cubic-bezier(.2, .8, .2, 1) both; transform-origin: left; }
@keyframes grow { from { transform: scaleX(0); } }

/* ── Charts ────────────────────────────────────────── */
.chart { position: relative; width: 100%; user-select: none; }
.chart svg { display: block; overflow: visible; }
.chart .grid { stroke: var(--line); stroke-width: 1; }
.chart .axis { fill: var(--text3); font-size: 11px; font-family: var(--font); }
.chart .goal { stroke: var(--text3); stroke-width: 1.2; stroke-dasharray: 4 5; }
.chart .goal-label { fill: var(--text3); font-size: 11px; font-weight: 600; }
.chart .hover-guide { stroke: var(--text3); stroke-width: 1; stroke-dasharray: 3 3; }
.chart .draw { stroke-dasharray: 2000; stroke-dashoffset: 2000; animation: draw 1.1s cubic-bezier(.3, .7, .2, 1) forwards; }
.chart .draw[stroke-dasharray='5 5'] { animation: none; stroke-dashoffset: 0; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.chart .bar { transform-box: fill-box; transform-origin: bottom; animation: barUp .6s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes barUp { from { transform: scaleY(0); } }
.chart .bar-g { transition: opacity .15s; }
.chart .bar-g.dim { opacity: .35; }
.chart .bar-empty { fill: var(--track); }
.chart-tip {
  position: absolute; z-index: 5; pointer-events: none; background: var(--text); color: var(--bg);
  border-radius: 12px; padding: 8px 11px; font-size: 12px; line-height: 1.45; min-width: 90px; box-shadow: var(--shadow-pop); white-space: nowrap;
}
:root[data-theme='dark'] .chart-tip { background: #f9fafb; color: #0f1a1c; }
.tip-title { font-weight: 600; opacity: .7; margin-bottom: 2px; }
.tip-big { font-size: 16px; font-weight: 700; }
.tip-big small { font-size: 11px; opacity: .7; font-weight: 500; }
.tip-row { display: flex; align-items: center; gap: 6px; }
.tip-row i { width: 8px; height: 8px; border-radius: 3px; }
.tip-row b { margin-left: auto; padding-left: 12px; }
.ring { position: relative; flex: none; }
.ring-svg { display: block; }
.ring-arc { animation: ringIn 1.2s cubic-bezier(.3, .7, .2, 1) forwards; }
@keyframes ringIn { to { stroke-dashoffset: var(--to); } }
.donut-seg { animation: fade .6s ease both; }
@keyframes fade { from { opacity: 0; } }
.ring-center { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; line-height: 1.1; }
.ring-center strong { font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.ring-center > div { display: flex; flex-direction: column; align-items: center; }
.ring-center strong, .ring-center span:not(.ic) { display: block; }
.ring-center span { font-size: 12px; color: var(--text2); margin-top: 3px; }
.spotlight .ring-center span { color: color-mix(in srgb, var(--spot-text) 70%, transparent); }
.legend { display: flex; flex-wrap: wrap; gap: 14px; font-size: 12.5px; color: var(--text2); }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.chart-heat { overflow-x: auto; }

/* ── Empty / error / skeleton ──────────────────────── */
.empty { text-align: center; padding: 40px 20px; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.empty-art { width: 64px; height: 64px; border-radius: 20px; display: grid; place-items: center; background: color-mix(in srgb, var(--brand) 10%, transparent); color: var(--brand-ink); margin-bottom: 6px; }
.empty h3 { font-size: 16px; }
.empty p { color: var(--text2); font-size: 14px; max-width: 42ch; }
.empty .btn { margin-top: 10px; }
.error-box { display: flex; align-items: center; gap: 12px; padding: 16px; border-radius: 16px; background: var(--danger-bg); color: var(--danger); }
.error-box p { font-size: 13px; opacity: .9; }
.error-box > div { flex: 1; }
.skeleton-card { background: var(--surface); border-radius: var(--radius); padding: 20px; display: flex; flex-direction: column; gap: 12px; }
.sk { height: 14px; border-radius: 8px; background: linear-gradient(90deg, var(--track) 0%, var(--bg) 50%, var(--track) 100%); background-size: 200% 100%; animation: shimmer 1.3s linear infinite; }
.sk:first-child { height: 20px; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* ── Modal ─────────────────────────────────────────── */
.modal-wrap { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 20px; }
.modal-scrim { position: absolute; inset: 0; background: rgba(3, 7, 18, .5); backdrop-filter: blur(3px); opacity: 0; transition: opacity .22s; }
.modal {
  position: relative; background: var(--surface); border-radius: 26px; width: 100%; max-height: calc(100vh - 40px);
  display: flex; flex-direction: column; box-shadow: var(--shadow-pop); opacity: 0; transform: translateY(12px) scale(.98);
  transition: opacity .22s, transform .22s cubic-bezier(.2, .8, .2, 1);
}
.modal-sm { max-width: 420px; } .modal-md { max-width: 560px; } .modal-lg { max-width: 820px; }
.modal-wrap.in .modal-scrim { opacity: 1; }
.modal-wrap.in .modal { opacity: 1; transform: none; }
.modal-wrap.out .modal-scrim, .modal-wrap.out .modal { opacity: 0; }
.modal-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 20px 20px 4px 24px; }
.modal-head h2 { font-size: 19px; }
.modal-body { padding: 14px 24px 20px; overflow-y: auto; overscroll-behavior: contain; }
.modal-foot { display: flex; justify-content: flex-end; gap: 10px; padding: 14px 24px 20px; border-top: 1px solid var(--line); flex-wrap: wrap; }
@media (max-width: 560px) {
  .modal-wrap { place-items: end center; padding: 0; }
  .modal { border-radius: 26px 26px 0 0; max-height: 92vh; transform: translateY(40px); }
  .modal-foot { padding-bottom: calc(20px + env(safe-area-inset-bottom)); }
  .modal-foot .btn { flex: 1; }
}

/* ── Toast ─────────────────────────────────────────── */
.toast-host { position: fixed; z-index: 200; left: 50%; bottom: 24px; transform: translateX(-50%); display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; }
@media (max-width: 760px) { .toast-host { bottom: calc(96px + env(safe-area-inset-bottom)); } }
.toast {
  pointer-events: auto; display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-radius: 16px;
  background: var(--text); color: var(--bg); font-size: 14px; font-weight: 500; box-shadow: var(--shadow-pop);
  opacity: 0; transform: translateY(10px); transition: opacity .22s, transform .22s;
}
:root[data-theme='dark'] .toast { background: #f9fafb; color: #0f1a1c; }
.toast.in { opacity: 1; transform: none; }
.toast.out { opacity: 0; transform: translateY(6px); }
.toast-ok .ic { color: #34d399; } .toast-error .ic { color: #fb7185; } .toast-info .ic { color: #7dd3fc; }
:root[data-theme='dark'] .toast-ok .ic { color: var(--ok); }
.toast-action { border: 0; background: none; color: #5eead4; font-weight: 700; cursor: pointer; padding: 0 0 0 6px; }

/* ── Markdown ──────────────────────────────────────── */
.md p { margin: 0 0 10px; }
.md p:last-child { margin-bottom: 0; }
.md ul, .md ol { margin: 0 0 10px; padding-left: 20px; }
.md li { margin: 3px 0; }
.md h3, .md h4 { margin: 14px 0 6px; font-size: 15.5px; }
.md code { background: var(--bg); padding: 1px 6px; border-radius: 6px; font-size: 13px; }
.md a { color: var(--brand-ink); text-decoration: underline; }

/* ── Auth ──────────────────────────────────────────── */
.auth { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); }
.auth-art {
  position: relative; overflow: hidden; background: #0b2a2f; color: #e6fffb; padding: 48px;
  display: flex; flex-direction: column; justify-content: space-between;
}
.auth-art::before {
  content: ''; position: absolute; inset: -30%;
  background: radial-gradient(circle at 30% 30%, rgba(45, 212, 191, .35), transparent 45%),
              radial-gradient(circle at 75% 70%, rgba(99, 102, 241, .28), transparent 45%);
  animation: drift 18s ease-in-out infinite alternate;
}
@keyframes drift { to { transform: translate(6%, -4%) rotate(8deg); } }
.auth-art > * { position: relative; }
.auth-art .brand { display: flex; align-items: center; gap: 12px; font-weight: 800; font-size: 19px; }
.auth-art .brand img { width: 40px; height: 40px; border-radius: 12px; }
.auth-art h2 { font-size: clamp(30px, 3.4vw, 46px); line-height: 1.12; font-weight: 800; letter-spacing: -.025em; max-width: 14ch; }
.auth-art p { color: rgba(230, 255, 251, .75); font-size: 16px; max-width: 42ch; margin-top: 16px; }
.auth-points { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 32px; max-width: 520px; }
.auth-point { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 16px; background: rgba(255, 255, 255, .06); backdrop-filter: blur(6px); font-size: 14px; font-weight: 500; }
.auth-point .ic { color: #5eead4; }
.auth-foot { font-size: 12.5px; color: rgba(230, 255, 251, .55); display: flex; gap: 16px; flex-wrap: wrap; }
.auth-foot a:hover { color: #fff; }
.auth-panel { display: flex; align-items: center; justify-content: center; padding: 40px 24px; background: var(--surface); }
.auth-box { width: 100%; max-width: 400px; }
.auth-box h1 { font-size: 28px; font-weight: 800; letter-spacing: -.02em; }
.auth-box .lead { color: var(--text2); margin: 8px 0 26px; }
.auth-switch { margin-top: 22px; text-align: center; color: var(--text2); font-size: 14px; }
.auth-switch button, .text-btn { border: 0; background: none; color: var(--brand-ink); font-weight: 600; cursor: pointer; padding: 0; font-size: inherit; }
.text-btn:hover { text-decoration: underline; }
.otp-input { text-align: center; font-size: 30px; font-weight: 700; letter-spacing: .7em; text-indent: .7em; padding: 14px 0; font-variant-numeric: tabular-nums; }
.otp-input::placeholder { letter-spacing: .7em; color: var(--bg3); }
.phone-wrap { display: flex; align-items: center; gap: 0; background: var(--bg); border-radius: 14px; border: 1.5px solid transparent; transition: border-color .15s, box-shadow .15s; }
.phone-wrap:focus-within { border-color: var(--brand-2); box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand-2) 16%, transparent); background: var(--surface); }
.phone-wrap span { padding: 0 4px 0 14px; font-weight: 600; color: var(--text2); }
.phone-wrap .input { border: 0; box-shadow: none !important; background: transparent !important; padding-left: 6px; }
.divider { display: flex; align-items: center; gap: 12px; color: var(--text3); font-size: 12.5px; margin: 18px 0; }
.divider::before, .divider::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.legal-note { font-size: 12px; color: var(--text3); margin-top: 18px; text-align: center; line-height: 1.5; }
.social-block { display: grid; gap: 12px; }
.social-block[hidden] { display: none; }
.social-block:not([hidden]) + .btn { margin-top: 10px; }
.social-block .divider { margin: 6px 0; }
.social-block > .divider:first-child { margin-top: 14px; }
.social-buttons { display: grid; gap: 10px; }
/* Apple: black on light, white on dark (Apple HIG); sized like Google's large pill button. */
.social-btn {
  position: relative; display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; height: 40px;
  border: 0; border-radius: 20px; cursor: pointer; font: inherit; font-size: 14px; font-weight: 500; letter-spacing: .01em;
  transition: opacity .15s, transform .08s;
}
.social-btn:active { transform: scale(.98); }
.social-btn:disabled { cursor: default; }
.social-btn .social-logo { display: inline-flex; margin-top: -2px; }
.social-apple { background: #000; color: #fff; }
[data-theme="dark"] .social-apple { background: #fff; color: #000; }
.social-btn.is-busy > * { visibility: hidden; }
.social-btn.is-busy::after, .social-google.is-busy::after {
  content: ''; position: absolute; left: 50%; top: 50%; width: 18px; height: 18px; margin: -9px 0 0 -9px; border-radius: 50%;
  border: 2.5px solid currentColor; border-right-color: transparent; animation: spin .7s linear infinite;
}
.social-google { position: relative; min-height: 40px; display: flex; justify-content: center; color: var(--text2); }
.social-google.is-busy > * { opacity: .35; pointer-events: none; }
/* Account conflict (accountLinks.js): two choices, the recommended one filled. */
.conflict-choice {
  display: grid; gap: 3px; width: 100%; text-align: left; border: 0; cursor: pointer; font: inherit;
  padding: 12px 16px; border-radius: 16px; background: var(--bg); color: var(--text); transition: background .15s, transform .08s;
}
.conflict-choice:hover { background: var(--bg2); }
.conflict-choice:active { transform: scale(.99); }
.conflict-choice.primary { background: var(--brand); color: var(--on-brand); }
.conflict-choice.primary:hover { background: #0f766e; }
.conflict-choice .conflict-title { font-weight: 700; font-size: 15px; }
.conflict-choice .conflict-hint { font-size: 12.5px; line-height: 1.45; opacity: .85; }
.conflict-choice.is-busy { opacity: .6; pointer-events: none; }
.auth-method { display: grid; grid-template-columns: 1fr 1fr; padding: 4px; border-radius: 14px; background: var(--bg); margin-bottom: 16px; }
.auth-method button { border: 0; background: transparent; padding: 9px 12px; border-radius: 11px; font: inherit; font-size: 14px; font-weight: 600; color: var(--text2); cursor: pointer; }
.auth-method button.on { background: var(--surface); color: var(--text); font-weight: 700; box-shadow: 0 1px 2px rgba(15, 26, 28, .08); }
.legal-note a { color: var(--text2); text-decoration: underline; }
@media (max-width: 900px) {
  .auth { grid-template-columns: 1fr; }
  .auth-art { padding: 28px 24px; min-height: auto; }
  .auth-art h2 { font-size: 28px; }
  .auth-points, .auth-art p, .auth-foot { display: none; }
  .auth-art .brand { margin-bottom: 18px; }
  .auth-panel { padding: 28px 20px 48px; align-items: flex-start; }
}

/* ── Onboarding ────────────────────────────────────── */
.onb { min-height: 100vh; display: grid; place-items: center; padding: 32px 16px; }
.onb-box { width: 100%; max-width: 560px; }
.onb-steps { display: flex; gap: 6px; margin-bottom: 26px; }
.onb-steps i { flex: 1; height: 5px; border-radius: 999px; background: var(--bg3); transition: background .3s; }
.onb-steps i.on { background: var(--brand); }
.choice-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.choice {
  display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 16px; border-radius: 18px;
  background: var(--surface); border: 2px solid transparent; cursor: pointer; text-align: left; font-weight: 600; transition: border-color .15s, transform .1s;
}
.choice:hover { border-color: var(--bg3); }
.choice.on { border-color: var(--brand); }
.policy-scroll { max-height: 46vh; overflow-y: auto; padding: 18px; background: var(--bg); border-radius: 16px; font-size: 13.5px; color: var(--text2); line-height: 1.6; }

/* ── Chat (shared by Medi) ─────────────────────────── */
.chat { display: flex; flex-direction: column; height: calc(100vh - 150px); min-height: 480px; }
.chat-log { flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 14px; padding: 8px 2px 16px; scroll-behavior: smooth; }
.bubble { max-width: min(760px, 88%); padding: 12px 16px; border-radius: 20px; font-size: 14.5px; line-height: 1.6; animation: pageIn .25s ease; }
.bubble.me { align-self: flex-end; background: var(--brand); color: #fff; border-bottom-right-radius: 6px; white-space: pre-wrap; }
.bubble.ai { align-self: flex-start; background: var(--surface); border-bottom-left-radius: 6px; }
.chat-input { display: flex; gap: 10px; align-items: flex-end; background: var(--surface); border-radius: 20px; padding: 8px 8px 8px 16px; }
.chat-input textarea { flex: 1; border: 0; background: transparent; resize: none; outline: none; font: inherit; font-size: 15px; color: var(--text); max-height: 180px; padding: 8px 0; line-height: 1.5; }
.typing { display: inline-flex; gap: 4px; padding: 4px 0; }
.typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--text3); animation: blink 1.2s infinite; }
.typing i:nth-child(2) { animation-delay: .15s; } .typing i:nth-child(3) { animation-delay: .3s; }
@keyframes blink { 50% { opacity: .25; transform: translateY(-2px); } }

/* ── Misc ──────────────────────────────────────────── */
.kbd { font-size: 11px; padding: 2px 6px; border-radius: 6px; background: var(--bg2); color: var(--text2); font-weight: 600; }
.divider-line { height: 1px; background: var(--line); margin: 14px 0; }
.num { font-variant-numeric: tabular-nums; }
.disclaimer { font-size: 12px; color: var(--text3); display: flex; gap: 8px; align-items: flex-start; margin-top: 18px; line-height: 1.5; }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { text-align: left; font-size: 12px; font-weight: 600; color: var(--text3); padding: 8px 10px; border-bottom: 1px solid var(--line); text-transform: uppercase; letter-spacing: .04em; }
.table td { padding: 12px 10px; border-bottom: 1px solid var(--line); }
.table tr:last-child td { border-bottom: 0; }
.table-wrap { overflow-x: auto; }
.pill-tabs { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.dropzone { border: 2px dashed var(--bg3); border-radius: 18px; padding: 28px; text-align: center; color: var(--text2); cursor: pointer; transition: border-color .15s, background .15s; }
.dropzone:hover, .dropzone.over { border-color: var(--brand-2); background: color-mix(in srgb, var(--brand-2) 6%, transparent); }
.cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.cal-h { font-size: 11.5px; color: var(--text3); text-align: center; font-weight: 600; padding-bottom: 4px; }
.cal-d { aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; font-size: 13.5px; font-weight: 500; position: relative; border: 0; background: transparent; cursor: default; font-variant-numeric: tabular-nums; }
.cal-d.out { color: var(--text3); opacity: .45; }
.cal-d.today { box-shadow: inset 0 0 0 2px var(--text); font-weight: 700; }
.menu-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.menu-tile { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 16px 6px; border-radius: 16px; background: var(--bg); font-size: 12.5px; font-weight: 600; text-align: center; color: var(--text2); }
.menu-tile .ic { color: var(--brand-ink); }
.menu-tile:hover { background: var(--bg2); color: var(--text); }
@media (max-width: 640px) { .grid-stats { grid-template-columns: 1fr 1fr; } .grid-stats .stat-value { font-size: 22px; } }
.menu-pop { position: absolute; z-index: 60; background: var(--surface); border-radius: 16px; box-shadow: var(--shadow-pop); padding: 6px; min-width: 220px; }
.menu-pop button, .menu-pop a { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 12px; border: 0; background: none; border-radius: 10px; cursor: pointer; font-size: 14px; text-align: left; }
.menu-pop button:hover, .menu-pop a:hover { background: var(--bg); }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .chart .draw { stroke-dashoffset: 0; }
}

/* ── MEDI module wordmarks (mobile ModuleWordmark): upright „MEDI“ + the module part skewed −16° in its colour ── */
@font-face { font-family: 'Exo 2 Wordmark'; src: url('/fonts/exo2/Exo2-ExtraBold.ttf') format('truetype'); font-weight: 800; font-display: swap; }
.wm { display: inline-flex; align-items: baseline; font-family: 'Exo 2 Wordmark', 'FiraGO', sans-serif; font-weight: 800; letter-spacing: .01em; line-height: 1; white-space: nowrap; font-size: .92em; }
.wm-medi { color: var(--text); }
.wm-suffix { display: inline-block; transform: skewX(-16deg); color: var(--wm-ink, var(--brand)); margin-left: .02em; }
.wm-run { --wm-ink: #0d9488; } .wm-cycle { --wm-ink: #c92a55; } .wm-food { --wm-ink: #047857; } .wm-pill { --wm-ink: #1d4ed8; }
.wm-quest { --wm-ink: #6d28d9; } .wm-vet { --wm-ink: #0369a1; } .wm-coach { --wm-ink: #475569; } .wm-scan { --wm-ink: #22d3ee; } .wm-lab { --wm-ink: #4f46e5; }
:root[data-theme=dark] .wm-run { --wm-ink: #2dd4bf; } :root[data-theme=dark] .wm-cycle { --wm-ink: #ff8fa8; } :root[data-theme=dark] .wm-food { --wm-ink: #34d399; }
:root[data-theme=dark] .wm-pill { --wm-ink: #93c5fd; } :root[data-theme=dark] .wm-quest { --wm-ink: #c4b5fd; } :root[data-theme=dark] .wm-vet { --wm-ink: #7dd3fc; }
:root[data-theme=dark] .wm-coach { --wm-ink: #cbd5e1; } :root[data-theme=dark] .wm-scan { --wm-ink: #67e8f9; } :root[data-theme=dark] .wm-lab { --wm-ink: #a5b4fc; }

/* ── Home (layouts, „არ გამოგრჩეს“, MEDISCAN) ── */
.home-attn { display: flex; align-items: center; gap: 14px; padding: 14px 16px; }
.home-attn .row-main { flex: 1; min-width: 0; }
.home-attn > .ic:last-child { color: var(--text3); }
.home-scan {
  position: relative; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 22px 24px; overflow: hidden; isolation: isolate;
  background: linear-gradient(135deg, #083344 0%, #0891b2 62%, #22d3ee 100%); color: #e6fdff;
}
.home-scan::before { content: ""; position: absolute; right: -60px; top: -80px; width: 260px; height: 260px; border-radius: 50%; background: rgba(103, 232, 249, .35); filter: blur(30px); z-index: -1; }
.home-scan-text { display: flex; flex-direction: column; gap: 8px; max-width: 520px; }
.home-scan-title .wm { font-size: 24px; }
.home-scan-title .wm-medi { color: #fff; }
.home-scan-title .wm-suffix { color: #cffafe; }
.home-scan p { font-size: 14px; line-height: 1.55; color: rgba(230, 253, 255, .86); }
.home-scan .cta { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: 14px; color: #fff; }
.home-scan-lens { position: relative; flex: none; width: 76px; height: 76px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: rgba(255, 255, 255, .14); box-shadow: inset 0 0 0 1.5px rgba(207, 250, 254, .55); }
.home-scan-lens i { position: absolute; inset: -6px; border-radius: 50%; border: 2px solid transparent; border-top-color: #cffafe; animation: scanOrbit 3.2s linear infinite; }
@keyframes scanOrbit { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .home-scan-lens i { animation: none; } }
@media (max-width: 520px) { .home-scan-lens { display: none; } }
.home-layout-opt { width: 100%; display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1.5px solid transparent; border-radius: 16px; background: var(--bg); font: inherit; color: var(--text); text-align: left; cursor: pointer; }
.home-layout-opt.on { border-color: var(--brand); }
.home-layout-opt:disabled { opacity: .5; cursor: default; }
.home-layout-opt .row-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.home-layout-opt .row-main span { font-size: 12.5px; color: var(--text3); }
.home-layout-opt > .ic { color: var(--brand); }
