/* Dr Fable — estilos. Celular primeiro; no desktop a navegação vira uma barra lateral. */
:root {
  --bg: #F4F6F2;
  --surface: #FFFFFF;
  --ink: #13201A;
  --ink-2: #3F4D45;
  --muted: #5B6B62;
  --line: #E3E7E1;
  --line-strong: #B9C4BD;
  --green: #1F7A4D;
  --green-ink: #1F6A43;
  --green-tint: #E3F2E9;
  --deep: #10301F;
  --mint: #7FE0A6;
  --mint-ink: #C9DDD1;
  --amber-tint: #FFF1DD;
  --amber-ink: #8A4B00;
  --blue-tint: #E6EEF8;
  --blue-ink: #1F4E8A;
  --red: #B3261E;
  --red-tint: #FDE8E6;
  --radius: 16px;
  --nav-h: 72px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --site-recent: #D3DAD5;
  --macro-p: #1F7A4D;
  --macro-c: #2E6FB8;
  --macro-f: #C27A12;
  --on-green: #FFFFFF;
  --on-red: #FFFFFF;
  color-scheme: light;
}

/* Modo escuro (OLED): segue o celular, a menos que o usuário escolha Claro ou Escuro nas configurações. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #000000;
    --surface: #111111;
    --ink: #F2F2F2;
    --ink-2: #CFCFCF;
    --muted: #9A9A9A;
    --line: #232323;
    --line-strong: #3A3A3A;
    --green: #5ED39A;
    --green-ink: #8FE0B2;
    --green-tint: #12291D;
    --deep: #0D2A1B;
    --mint-ink: #C9DDD1;
    --amber-tint: #2A1F0E;
    --amber-ink: #F2C98A;
    --blue-tint: #172638;
    --blue-ink: #9CC3F2;
    --red: #FF8A80;
    --red-tint: #3A1A18;
    --site-recent: #2E2E2E;
    --macro-p: #5ED39A;
    --macro-c: #7FB3F0;
    --macro-f: #F2B45A;
    --on-green: #06140C;
    --on-red: #2A0906;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #000000;
  --surface: #111111;
  --ink: #F2F2F2;
  --ink-2: #CFCFCF;
  --muted: #9A9A9A;
  --line: #232323;
  --line-strong: #3A3A3A;
  --green: #5ED39A;
  --green-ink: #8FE0B2;
  --green-tint: #12291D;
  --deep: #0D2A1B;
  --mint-ink: #C9DDD1;
  --amber-tint: #2A1F0E;
  --amber-ink: #F2C98A;
  --blue-tint: #172638;
  --blue-ink: #9CC3F2;
  --red: #FF8A80;
  --red-tint: #3A1A18;
  --site-recent: #2E2E2E;
  --macro-p: #5ED39A;
  --macro-c: #7FB3F0;
  --macro-f: #F2B45A;
  --on-green: #06140C;
  --on-red: #2A0906;
  color-scheme: dark;}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 15px;
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--green-ink); }
h1, h2, h3, .display { font-family: "Space Grotesk", Inter, sans-serif; letter-spacing: -0.3px; }
h1 { font-size: 26px; font-weight: 600; margin: 0; }
h2 { font-size: 18px; font-weight: 600; margin: 0; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.tiny { font-size: 12px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Estrutura ---------- */
.app { min-height: 100dvh; }
.page {
  max-width: 640px;
  margin: 0 auto;
  padding: 20px 16px calc(var(--nav-h) + var(--safe-b) + 24px);
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.page.with-footer { padding-bottom: calc(96px + var(--safe-b)); }
.page-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.page-header .titles { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.back-header { display: flex; align-items: center; gap: 6px; margin-left: -8px; }
.section { display: flex; flex-direction: column; gap: 8px; }
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.row { display: flex; align-items: center; gap: 12px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.stack { display: flex; flex-direction: column; gap: 12px; }
.spacer { flex: 1; }

/* ---------- Navegação ---------- */
.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
  height: calc(var(--nav-h) + var(--safe-b));
  padding: 6px 6px var(--safe-b);
  background: var(--surface);
  border-top: 1px solid var(--line);
  display: flex; justify-content: space-around; align-items: flex-start;
}
.tab {
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  width: 64px; min-height: 52px; padding-top: 4px;
  text-decoration: none; font-size: 11px; font-weight: 600; color: var(--muted);
}
.tab[aria-current="page"] { color: var(--green); font-weight: 700; }
.tab.center { margin-top: -24px; }
.tab .bubble {
  width: 56px; height: 56px; border-radius: 28px; background: var(--green); color: var(--on-green);
  display: flex; align-items: center; justify-content: center; border: 4px solid var(--bg);
}
.tab.center[aria-current="page"] .bubble { background: var(--deep); color: var(--mint); }
.tabbar .brand { display: none; }

@media (min-width: 900px) {
  :root { --nav-h: 0px; }
  .tabbar {
    top: 0; right: auto; width: 220px; height: 100dvh; padding: 24px 12px;
    flex-direction: column; justify-content: flex-start; gap: 4px;
    border-top: none; border-right: 1px solid var(--line);
  }
  .tab { flex-direction: row; width: 100%; min-height: 48px; padding: 0 12px; gap: 12px; font-size: 15px; border-radius: 12px; }
  .tab[aria-current="page"] { background: var(--green-tint); }
  .tab.center { margin-top: 0; order: -1; }
  .tab .bubble { width: 32px; height: 32px; border: none; }
  .tab .bubble svg { width: 18px; height: 18px; }
  .tabbar .brand { display: block; font-family: "Space Grotesk", sans-serif; font-weight: 700; font-size: 20px; color: var(--ink); padding: 0 12px 16px; }
  .app { padding-left: 220px; }
  .page { padding-top: 32px; padding-bottom: 48px; max-width: 720px; }
  .page.with-footer { padding-bottom: 120px; }
  .footer-bar { left: 220px !important; }
  .sheet-backdrop { left: 220px !important; }
}

.seg { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 4px; background: var(--line); border-radius: 14px; padding: 4px; }
.seg a, .seg button {
  height: 40px; border-radius: 10px; border: none; background: transparent; cursor: pointer;
  display: flex; align-items: center; justify-content: center; text-decoration: none;
  font-size: 14px; font-weight: 600; color: var(--ink-2);
}
.seg [aria-current="page"], .seg .on { background: var(--surface); color: var(--ink); font-weight: 700; box-shadow: 0 1px 2px rgba(0,0,0,.12); }

/* ---------- Componentes ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.card.dark { background: var(--deep); border-color: var(--deep); color: #fff; }
.card.dark .muted { color: var(--mint-ink); }
.card.tight { padding: 12px 14px; gap: 8px; }
.list-row {
  display: flex; align-items: center; gap: 12px; width: 100%;
  min-height: 56px; padding: 10px 12px; text-align: left;
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px;
  text-decoration: none; color: var(--ink); cursor: pointer;
}
.list-row .grow { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.list-row .title { font-size: 15px; font-weight: 600; }
.list-row .sub { font-size: 13px; color: var(--muted); }
.list-row.done .title { color: var(--muted); text-decoration: line-through; }
.list-row.dashed { border-style: dashed; border-color: var(--line-strong); }

.check {
  width: 26px; height: 26px; border-radius: 13px; flex-shrink: 0;
  border: 2px solid var(--line-strong); background: var(--surface);
  display: flex; align-items: center; justify-content: center;
}
.check.on { background: var(--green); border-color: var(--green); color: var(--on-green); }

.pill { font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; white-space: nowrap; }
.pill.green { background: var(--green-tint); color: var(--green-ink); }
.pill.amber { background: var(--amber-tint); color: var(--amber-ink); }
.pill.blue { background: var(--blue-tint); color: var(--blue-ink); }
.pill.gray { background: var(--bg); color: var(--muted); }
.pill.mint { background: var(--mint); color: var(--deep); }

.btn {
  height: 48px; padding: 0 18px; border-radius: 24px; border: 1px solid var(--line);
  background: var(--surface); color: var(--ink); font-size: 15px; font-weight: 600;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  cursor: pointer; text-decoration: none;
}
.btn.primary { background: var(--green); border-color: var(--green); color: var(--on-green); font-weight: 700; }
.btn.dark { background: var(--deep); border-color: var(--deep); color: #fff; font-weight: 700; }
.btn.small { height: 40px; padding: 0 14px; font-size: 14px; border-radius: 20px; }
.btn.danger { color: var(--red); border-color: transparent; background: transparent; }
.btn.dashed { border-style: dashed; border-color: var(--line-strong); color: var(--green-ink); border-radius: 14px; }
.btn[disabled] { opacity: .55; cursor: default; }
.icon-btn {
  width: 44px; height: 44px; border-radius: 22px; border: 1px solid var(--line);
  background: var(--surface); color: var(--ink); display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer; flex-shrink: 0; text-decoration: none; position: relative;
}
.icon-btn.ghost { border-color: transparent; background: transparent; }
.badge { position: absolute; top: -3px; right: -3px; min-width: 18px; height: 18px; border-radius: 9px; background: var(--red); color: var(--on-red); font-size: 11px; font-weight: 700; display: flex; align-items: center; justify-content: center; padding: 0 4px; }

.cta {
  display: flex; align-items: center; gap: 14px; width: 100%; padding: 14px 16px;
  background: var(--deep); color: #fff; border: none; border-radius: 20px; text-align: left; cursor: pointer; text-decoration: none;
}
.cta .ico { width: 48px; height: 48px; border-radius: 14px; background: var(--mint); color: var(--deep); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.cta .t { font-size: 16px; font-weight: 700; }
.cta .s { font-size: 13px; color: var(--mint-ink); }

/* Formulários */
.field { display: flex; flex-direction: column; gap: 6px; }
.field > label, .field > .label { font-size: 13px; font-weight: 600; color: var(--ink-2); }
.input, select.input, textarea.input {
  height: 48px; width: 100%; border-radius: 12px; border: 1px solid var(--line-strong);
  background: var(--surface); padding: 0 12px; font-size: 16px;
}
textarea.input { height: auto; padding: 12px; line-height: 1.45; resize: vertical; }
.input:focus, .btn:focus-visible, .chip:focus-visible, .list-row:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }
.hint { font-size: 12px; color: var(--muted); }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
  height: 40px; padding: 0 14px; border-radius: 20px; border: 1px solid var(--line);
  background: var(--surface); color: var(--ink); font-size: 14px; font-weight: 600; cursor: pointer;
}
.chip.on { background: var(--deep); border-color: var(--deep); color: #fff; }
.toggle-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 52px; padding: 8px 14px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); cursor: pointer; }
.toggle-row input { width: 22px; height: 22px; accent-color: var(--green); }
.stepper { display: flex; align-items: center; gap: 6px; }
.stepper button { width: 40px; height: 40px; border-radius: 20px; border: 1px solid var(--line); background: var(--surface); font-size: 20px; font-weight: 600; cursor: pointer; }
.stepper input { width: 64px; height: 40px; border-radius: 10px; border: 1px solid var(--line-strong); text-align: center; font-weight: 700; background: var(--surface); }

.footer-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 25;
  padding: 12px 16px calc(16px + var(--safe-b)); background: var(--surface); border-top: 1px solid var(--line);
}
.footer-bar .inner { max-width: 640px; margin: 0 auto; display: flex; gap: 10px; }
.footer-bar .btn { flex: 1; }
.footer-bar .btn.primary { flex: 2; }

.status-msg { padding: 10px 12px; border-radius: 12px; font-size: 13px; font-weight: 600; }
.status-msg.error { background: var(--red-tint); color: var(--red); }
.status-msg.info { background: var(--green-tint); color: var(--green-ink); }
.status-msg.future { background: var(--blue-tint); color: var(--blue-ink); }
.empty { text-align: center; padding: 24px 12px; color: var(--muted); font-size: 14px; }
.loading { text-align: center; padding: 32px; color: var(--muted); }

/* ---------- Início ---------- */
.hero { display: flex; align-items: center; gap: 18px; }
.ring { position: relative; width: 116px; height: 116px; flex-shrink: 0; }
.ring .center { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.ring .num { font-family: "Space Grotesk", sans-serif; font-size: 30px; font-weight: 700; line-height: 1; }
.stat { background: rgba(255,255,255,.08); border-radius: 14px; padding: 10px 12px; display: flex; flex-direction: column; gap: 2px; }
.stat .v { font-size: 16px; font-weight: 700; }
.alert-row { display: flex; gap: 12px; align-items: center; padding: 12px 14px; border-radius: 16px; background: var(--amber-tint); color: var(--ink); text-decoration: none; }
.alert-row .t { font-size: 14px; font-weight: 600; }
.alert-row .b { font-size: 13px; color: var(--amber-ink); }

/* ---------- Chat ---------- */
.chat { display: flex; flex-direction: column; height: 100dvh; max-width: 720px; margin: 0 auto; }
.chat-head { display: flex; align-items: center; gap: 12px; padding: 14px 16px; background: var(--surface); border-bottom: 1px solid var(--line); }
.avatar { width: 44px; height: 44px; border-radius: 22px; background: var(--deep); color: var(--mint); display: flex; align-items: center; justify-content: center; font-family: "Space Grotesk", sans-serif; font-weight: 700; flex-shrink: 0; }
.messages { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.bubble-msg { max-width: 86%; padding: 11px 14px; font-size: 15px; line-height: 1.45; white-space: pre-wrap; word-wrap: break-word; }
.bubble-msg.assistant { align-self: flex-start; background: var(--surface); border: 1px solid var(--line); border-radius: 4px 18px 18px 18px; }
.bubble-msg.user { align-self: flex-end; background: var(--green); color: var(--on-green); border-radius: 18px 4px 18px 18px; }
.action-chip { align-self: center; background: var(--deep); color: var(--mint); font-size: 12px; font-weight: 700; padding: 6px 12px; border-radius: 999px; }
.composer { display: flex; align-items: flex-end; gap: 8px; padding: 10px 12px calc(10px + var(--nav-h) + var(--safe-b)); background: var(--bg); }
.composer textarea { flex: 1; min-width: 0; min-height: 44px; max-height: 140px; border-radius: 22px; border: 1px solid var(--line); background: var(--surface); padding: 11px 16px; font-size: 16px; resize: none; }
.mic.recording { background: var(--red); border-color: var(--red); color: var(--on-red); animation: pulse 1.2s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 8px rgba(179,38,30,.18); } }
.stt-status { text-align: center; font-size: 12px; color: var(--muted); padding: 0 16px 4px; }
@media (min-width: 900px) { .chat { height: 100dvh; } .composer { padding-bottom: 16px; } }

/* ---------- Gráficos ---------- */
.chart { width: 100%; height: auto; display: block; }
.chart-labels { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); text-align: center; font-size: 12px; color: var(--muted); }
.chart-labels b { display: block; color: var(--ink); }
.bar { height: 8px; border-radius: 4px; background: var(--line); overflow: hidden; }
.bar > span { display: block; height: 100%; border-radius: 4px; background: var(--green); }

/* ---------- Caneta ---------- */
.ladder { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 6px; align-items: end; min-height: 112px; }
.ladder .step { display: flex; flex-direction: column; gap: 4px; text-align: center; font-size: 12px; }
.ladder .blk { border-radius: 8px; background: var(--mint-ink); }
.ladder .blk.cur { background: var(--green); }
.ladder .blk.fut { background: transparent; border: 2px dashed var(--line-strong); }
.body-map { position: relative; width: 320px; height: 330px; margin: 0 auto; }
.body-map .part { position: absolute; background: var(--line); }
.body-map .site {
  position: absolute; width: 60px; height: 44px; border-radius: 12px; font-size: 12px; font-weight: 700; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1.15;
  background: var(--surface); color: var(--ink); border: 2px solid var(--line-strong);
}
.body-map .site small { font-size: 10px; font-weight: 600; }
.body-map .site.recent { background: var(--site-recent); border-color: var(--site-recent); color: var(--ink-2); }
.body-map .site.sug { border-color: var(--green); color: var(--green-ink); }
.body-map .site.on { background: var(--deep); border-color: var(--deep); color: #fff; }

/* ---------- Modal / folha inferior ---------- */
.sheet-backdrop { position: fixed; inset: 0; z-index: 40; background: rgba(10, 20, 15, .55); display: flex; align-items: flex-end; justify-content: center; }
.sheet { width: 100%; max-width: 640px; max-height: 92dvh; background: var(--surface); border-radius: 28px 28px 0 0; display: flex; flex-direction: column; }
.sheet .grab { align-self: center; width: 40px; height: 5px; border-radius: 3px; background: var(--line-strong); margin: 10px 0 4px; }
.sheet .body { overflow-y: auto; padding: 12px 20px 16px; display: flex; flex-direction: column; gap: 12px; }
.sheet .foot { border-top: 1px solid var(--line); padding: 12px 20px calc(16px + var(--safe-b)); display: flex; flex-direction: column; gap: 10px; }
.item-card { display: flex; flex-direction: column; gap: 10px; padding: 12px; border-radius: 14px; background: var(--bg); }

/* ---------- Autenticação ---------- */
.auth { min-height: 100dvh; display: flex; align-items: center; justify-content: center; padding: 24px 16px; }
.auth .box { width: 100%; max-width: 400px; display: flex; flex-direction: column; gap: 16px; }
.auth .logo { width: 72px; height: 72px; border-radius: 20px; background: var(--deep); color: var(--mint); display: flex; align-items: center; justify-content: center; font-family: "Space Grotesk", sans-serif; font-size: 28px; font-weight: 700; }

/* Configurações */
.radio { width: 22px; height: 22px; border-radius: 11px; border: 2px solid var(--line-strong); flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; }
.radio.on { border-color: var(--green); }
.radio.on::after { content: ""; width: 10px; height: 10px; border-radius: 5px; background: var(--green); }
.list-row.selected { border-color: var(--green); }

/* Consultas: sugestões de agendamento */
.suggest-row { display: flex; align-items: center; gap: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 8px 8px 8px 14px; }
.suggest-row .s { color: var(--muted); }
.suggest-row .go { font-size: 14px; font-weight: 700; color: var(--green-ink); text-decoration: none; padding: 12px 10px; }
.suggest-row.due { background: var(--amber-tint); border-color: var(--amber-tint); }
.suggest-row.due .s, .suggest-row.due .go { color: var(--amber-ink); }
.suggest-card .s { color: var(--muted); }
.suggest-card.due { border-color: var(--amber-ink); }
.suggest-card.due .s { color: var(--amber-ink); font-weight: 600; }

/* Consultas: ilustração de lista vazia */
.empty-illus { align-items: stretch; gap: 10px; padding: 20px 16px; }
.empty-illus .illus { width: 200px; height: 150px; align-self: center; overflow: visible; }
.illus .il-paper { fill: var(--surface); stroke: var(--line-strong); stroke-width: 2; }
.illus .il-band { fill: var(--green-tint); }
.illus .il-ring { fill: var(--deep); }
.illus .il-dots circle { fill: var(--line); }
.illus .il-today { fill: var(--green); animation: today-pulse 2.4s ease-in-out infinite; transform-origin: 108px 94px; }
.illus .il-shadow { fill: var(--line); animation: shadow-breathe 3.2s ease-in-out infinite; transform-origin: 100px 140px; }
.illus .il-float { animation: float 3.2s ease-in-out infinite; }
.illus .il-tube { fill: none; stroke: var(--muted); stroke-width: 3; stroke-linecap: round; }
.illus .il-chest { fill: var(--surface); stroke: var(--muted); stroke-width: 3; }
.illus .il-steth { animation: swing 3.2s ease-in-out infinite; transform-origin: 154px 60px; }
.illus .il-spark { fill: none; stroke: var(--green); stroke-width: 2.5; stroke-linecap: round; animation: twinkle 2.4s ease-in-out infinite; }
.illus .il-spark.il-s2 { animation-delay: .8s; }
.illus .il-spark.il-s3 { animation-delay: 1.6s; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@keyframes shadow-breathe { 0%, 100% { transform: scaleX(1); opacity: .9; } 50% { transform: scaleX(.86); opacity: .55; } }
@keyframes today-pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.25); } }
@keyframes swing { 0%, 100% { transform: rotate(0deg); } 50% { transform: rotate(-6deg); } }
@keyframes twinkle { 0%, 100% { opacity: 0; transform: scale(.6); } 50% { opacity: 1; transform: scale(1); } }
.illus .il-spark { transform-box: fill-box; transform-origin: center; }
@media (prefers-reduced-motion: reduce) { .illus * { animation: none !important; } }

/* Entrar com Google: cores da marca Google (claro e escuro), formato pílula como os outros botões. */
.btn.google { background: #FFFFFF; border-color: #747775; color: #1F1F1F; font-weight: 500; gap: 12px; }
.btn.google .g-logo { flex: none; }
.btn.google:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .btn.google { background: #131314; border-color: #8E918F; color: #E3E3E3; }
}
:root[data-theme="dark"] .btn.google { background: #131314; border-color: #8E918F; color: #E3E3E3; }
.auth .or-sep { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 13px; }
.auth .or-sep::before, .auth .or-sep::after { content: ""; flex: 1; height: 1px; background: var(--line); }

/* Marca: logo e foto do Dr Fable */
.auth .logo-img { width: 180px; height: 180px; align-self: center; border-radius: 36px; object-fit: cover; background: #fff; }
:root[data-theme="dark"] .auth .logo-img { box-shadow: 0 0 0 1px var(--line); }
img.avatar { object-fit: cover; background: var(--deep); }
.msg-row { display: flex; align-items: flex-end; gap: 8px; max-width: 92%; align-self: flex-start; }
.msg-row .bubble-msg { max-width: none; }
.msg-avatar { width: 28px; height: 28px; border-radius: 14px; object-fit: cover; flex-shrink: 0; }
.tab .bubble { overflow: hidden; padding: 0; }
.tab .bubble img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tab.center[aria-current="page"] .bubble { box-shadow: 0 0 0 3px var(--green); }
.cta .ico { overflow: hidden; }
.cta .ico img { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (min-width: 900px) { .tabbar .brand { display: none; } .tab.center { margin-bottom: 12px; font-family: "Space Grotesk", sans-serif; font-size: 18px; color: var(--ink); } }
