/* 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); } }

/* Chat: anexos (câmera, foto, PDF) */
.attach { position: relative; }
.icon-btn.on { background: var(--green-tint); border-color: var(--green); color: var(--green-ink); }
.attach-menu {
  position: absolute; bottom: calc(100% + 10px); left: 0; z-index: 30; min-width: 210px;
  display: flex; flex-direction: column; padding: 6px; gap: 2px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0,0,0,.18); animation: menu-up .14s ease-out;
}
.attach-menu button {
  display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 0 12px;
  background: none; border: none; border-radius: 12px; color: var(--ink); font: inherit; font-size: 15px; font-weight: 600; text-align: left; cursor: pointer;
}
.attach-menu button:hover, .attach-menu button:focus-visible { background: var(--green-tint); }
.attach-menu button svg { color: var(--green); flex-shrink: 0; }
@keyframes menu-up { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.pending-image { display: flex; align-items: center; gap: 10px; padding: 8px 12px; background: var(--surface); border-top: 1px solid var(--line); }
.pending-image img { width: 52px; height: 52px; border-radius: 10px; object-fit: cover; }
.bubble-img { align-self: flex-end; max-width: 66%; max-height: 320px; border-radius: 18px 4px 18px 18px; object-fit: cover; border: 1px solid var(--line); }

/* ---------- Onboarding ---------- */
.app.fullscreen { padding-left: 0 !important; }
.auth { position: relative; }
.auth-back { position: absolute; top: max(12px, env(safe-area-inset-top)); left: 8px; }
.onb {
  min-height: 100dvh; max-width: 480px; margin: 0 auto; box-sizing: border-box;
  display: flex; flex-direction: column; padding: max(16px, env(safe-area-inset-top)) 20px calc(20px + var(--safe-b));
  position: relative; overflow: hidden;
}
.onb h1 { font-family: "Space Grotesk", sans-serif; font-size: 26px; line-height: 1.12; letter-spacing: -0.5px; margin: 0 0 6px; }
.onb p { margin: 0; line-height: 1.5; }
.onb-dark { background: #10301F; color: #FFFFFF; max-width: none; }
.onb-dark > * { width: 100%; max-width: 440px; margin-left: auto; margin-right: auto; }
.onb-head { display: flex; align-items: center; gap: 10px; min-height: 48px; }
.onb-skip { font-size: 15px; font-weight: 600; color: var(--green-ink); text-decoration: none; padding: 12px 0 12px 8px; }
.onb-progress { flex: 1; display: flex; gap: 6px; }
.onb-progress span { flex: 1; height: 6px; border-radius: 3px; background: var(--line); transition: background .3s; }
.onb-progress span.on { background: var(--green); }
.onb-body { flex: 1; display: flex; flex-direction: column; gap: 16px; padding: 12px 0 16px; }
.onb-body.center { justify-content: center; }
.onb-footer { padding-top: 12px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 8px; }
.onb-footer .btn { height: 54px; border-radius: 27px; font-size: 16px; width: 100%; }
.onb-note { background: var(--green-tint); color: var(--green-ink); border-radius: 14px; padding: 12px 14px; font-size: 14px; line-height: 1.4; }
.onb-title-row { display: flex; align-items: center; gap: 14px; }
.onb-title-row > span { flex-shrink: 0; display: flex; }
.onb-illus svg { display: block; width: 100%; height: auto; }
.onb-pop { animation: onb-pop .45s both; transform-box: fill-box; transform-origin: center; }
@keyframes onb-pop { from { opacity: 0; transform: scale(.85); } to { opacity: 1; transform: none; } }
.onb-slide { display: flex; flex-direction: column; gap: 12px; animation: onb-rise .35s ease-out; }
@keyframes onb-rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.onb-slide .onb-illus { margin-bottom: 10px; }
.onb-pager { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 12px; }
.onb-dots { display: flex; gap: 8px; }
.onb-dots span { width: 8px; height: 8px; border-radius: 4px; background: var(--line-strong); transition: width .2s, background .2s; }
.onb-dots span.on { width: 24px; background: var(--green); }
.onb-next { height: 54px; border-radius: 27px; padding: 0 28px; font-size: 16px; }

/* Boas-vindas (escuro) */
.onb-ecg { position: absolute; left: 0; right: 0; top: 34%; width: 100%; max-width: none !important; height: 120px; opacity: .2; pointer-events: none; }
.onb-ecg path { fill: none; stroke: #7FE0A6; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 420; animation: onb-ecg 3s linear infinite; }
@keyframes onb-ecg { from { stroke-dashoffset: 420; } to { stroke-dashoffset: 0; } }
.onb-hero { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; position: relative; padding-top: 12px; }
.onb-bubble { position: relative; background: #FFFFFF; color: #10301F; border-radius: 20px; padding: 12px 18px; font-size: 16px; font-weight: 600; box-shadow: 0 8px 24px rgba(0,0,0,.25); animation: onb-bubble .5s .6s both; }
.onb-bubble::after { content: ""; position: absolute; left: 50%; bottom: -8px; width: 16px; height: 16px; background: #FFFFFF; transform: translateX(-50%) rotate(45deg); border-radius: 3px; }
@keyframes onb-bubble { from { opacity: 0; transform: translateY(10px) scale(.9); } to { opacity: 1; transform: none; } }
.onb-circle-wrap { position: relative; width: 280px; height: 280px; display: flex; align-items: center; justify-content: center; }
.onb-ring { position: absolute; inset: 20px; border-radius: 50%; border: 2px solid #7FE0A6; animation: onb-pulse 2.4s ease-out infinite; }
.onb-ring.late { animation-delay: 1.2s; }
@keyframes onb-pulse { from { transform: scale(.92); opacity: .55; } to { transform: scale(1.32); opacity: 0; } }
.onb-orbit { position: absolute; inset: 0; animation: onb-orbit 36s linear infinite; }
@keyframes onb-orbit { to { transform: rotate(360deg); } }
.onb-orbit-icon { position: absolute; width: 40px; height: 40px; border-radius: 20px; background: #1F7A4D; color: #FFFFFF; display: flex; align-items: center; justify-content: center; animation: onb-orbit 36s linear infinite reverse; }
.onb-orbit-icon svg { width: 20px; height: 20px; }
.onb-orbit-icon.top { top: -6px; left: calc(50% - 20px); }
.onb-orbit-icon.right { right: -6px; top: calc(50% - 20px); }
.onb-orbit-icon.bottom { bottom: -6px; left: calc(50% - 20px); }
.onb-orbit-icon.left { left: -6px; top: calc(50% - 20px); }
.onb-circle { position: relative; width: 224px; height: 224px; border-radius: 50%; overflow: hidden; border: 4px solid #7FE0A6; background: #1F7A4D; box-shadow: 0 16px 40px rgba(0,0,0,.35); animation: onb-bob 3.2s ease-in-out infinite; }
.onb-circle video { width: 100%; height: 100%; object-fit: cover; display: block; }
@keyframes onb-bob { 0%,100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-8px) rotate(-1.5deg); } }
.onb-wave { position: absolute; right: 18px; bottom: 34px; width: 52px; height: 52px; border-radius: 26px; background: #7FE0A6; color: #10301F; display: flex; align-items: center; justify-content: center; box-shadow: 0 6px 16px rgba(0,0,0,.3); transform-origin: 70% 80%; animation: onb-wave 2.6s ease-in-out infinite; }
@keyframes onb-wave { 0%,60%,100% { transform: rotate(0); } 10%,30% { transform: rotate(18deg); } 20%,40% { transform: rotate(-8deg); } }
.onb-copy { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; }
.onb-copy h1 { font-size: 34px; letter-spacing: -0.8px; margin: 0; }
.onb-copy p { color: #C9DDD1; font-size: 16px; max-width: 320px; }
.onb-kicker { font-size: 13px; font-weight: 700; letter-spacing: 2px; color: #7FE0A6; }
.onb-actions { display: flex; flex-direction: column; gap: 8px; margin-top: 24px; }
.btn.onb-mint { height: 56px; border-radius: 28px; background: #7FE0A6; border-color: #7FE0A6; color: #10301F; font-size: 17px; font-weight: 700; }
.btn.onb-link { background: transparent; border-color: transparent; color: #7FE0A6; }

/* Áreas */
.onb-areas { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.onb-area { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 14px; min-height: 128px; border-radius: 18px; border: 2px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; text-align: left; font: inherit; }
.onb-area.on { border-color: var(--green); }
.onb-area:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }
.onb-area-top { display: flex; justify-content: space-between; align-items: flex-start; width: 100%; }
.onb-area-icon { width: 44px; height: 44px; border-radius: 14px; background: var(--bg); color: var(--ink-2); display: flex; align-items: center; justify-content: center; }
.onb-area.on .onb-area-icon { background: var(--deep); color: #7FE0A6; }
.onb-check { width: 22px; height: 22px; border-radius: 11px; border: 2px solid var(--line-strong); box-sizing: border-box; display: flex; align-items: center; justify-content: center; color: var(--on-green); }
.onb-area.on .onb-check { background: var(--green); border-color: var(--green); }
.onb-area .t { font-size: 16px; font-weight: 700; }
.onb-area .s { font-size: 13px; line-height: 1.35; color: var(--muted); }

/* Começar rápido */
.onb-option { display: flex; align-items: center; gap: 14px; padding: 12px; border-radius: 18px; border: 2px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; text-align: left; font: inherit; width: 100%; box-sizing: border-box; }
.onb-option:not(.as-div):hover { border-color: var(--green); }
.onb-option.as-div { cursor: default; }
.onb-option[disabled] { opacity: .6; cursor: default; }
.onb-option .txt { display: flex; flex-direction: column; gap: 3px; flex: 1; }
.onb-option .t { font-size: 16px; font-weight: 700; }
.onb-option .s { font-size: 13px; line-height: 1.4; color: var(--muted); }
.onb-option-art { width: 60px; height: 60px; border-radius: 16px; background: #10301F; flex-shrink: 0; position: relative; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.onb-option-art.scan .paper { width: 30px; height: 40px; border-radius: 4px; background: #FFFFFF; box-shadow: inset 0 10px 0 -7px #B9C4BD, inset 0 20px 0 -17px #B9C4BD, inset 0 30px 0 -27px #B9C4BD; }
.onb-option-art.scan .beam { position: absolute; left: 10px; right: 10px; top: 10px; height: 3px; border-radius: 2px; background: #7FE0A6; animation: onb-scan 1.6s ease-in-out infinite alternate; }
@keyframes onb-scan { to { transform: translateY(38px); } }
.onb-option-art.pdf { color: #10301F; font-size: 11px; font-weight: 800; isolation: isolate; }
.onb-option-art.pdf::before { content: ""; position: absolute; width: 30px; height: 40px; border-radius: 4px; background: #FFFFFF; z-index: -1; }
.onb-option-art.wave { gap: 4px; }
.onb-option-art.wave i { display: block; width: 5px; height: 30px; border-radius: 3px; background: #7FE0A6; animation: onb-bars 1s ease-in-out infinite; }
.onb-option-art.wave i:nth-child(2) { animation-delay: .15s; }
.onb-option-art.wave i:nth-child(3) { animation-delay: .3s; }
.onb-option-art.wave i:nth-child(4) { animation-delay: .45s; }
.onb-option-art.wave i:nth-child(5) { animation-delay: .6s; }
@keyframes onb-bars { 0%,100% { transform: scaleY(.35); } 50% { transform: scaleY(1); } }
.onb-result { gap: 10px; animation: onb-rise .3s ease-out; }

/* Permissões */
.onb-slide-notif { animation: onb-notif 3.2s ease-in-out infinite; }
@keyframes onb-notif { 0% { opacity: 0; transform: translateY(-12px); } 15%,85% { opacity: 1; transform: none; } 100% { opacity: 0; transform: translateY(-12px); } }

/* Tudo pronto (escuro) */
.onb-score { width: 180px; height: 180px; }
.onb-score .num { font-family: "Space Grotesk", sans-serif; font-size: 48px; font-weight: 700; line-height: 1; color: #FFFFFF; }
.onb-score .tiny { color: #C9DDD1; }
.onb-fill { transition: stroke-dasharray 1.2s ease-out; }
.onb-tasks { display: flex; flex-direction: column; gap: 10px; width: 100%; text-align: left; margin-top: 8px; }
.onb-task { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 56px; padding: 10px 14px; border-radius: 16px; border: none; background: rgba(255,255,255,0.08); color: #FFFFFF; font: inherit; font-size: 15px; font-weight: 600; cursor: pointer; text-align: left; }
.onb-task:hover { background: rgba(255,255,255,0.14); }
.onb-dark .pill.mint { background: #7FE0A6; color: #10301F; }
.onb-confetti { position: absolute; inset: 0 0 auto 0; height: 300px; pointer-events: none; max-width: none !important; }
.onb-confetti i { position: absolute; top: -20px; width: 8px; height: 12px; border-radius: 2px; background: #7FE0A6; animation: onb-fall 3.4s linear infinite; }
.onb-confetti i:nth-child(1) { left: 10%; }
.onb-confetti i:nth-child(2) { left: 25%; background: #FFF1DD; animation-delay: .6s; }
.onb-confetti i:nth-child(3) { left: 40%; animation-delay: 1.1s; border-radius: 50%; }
.onb-confetti i:nth-child(4) { left: 55%; background: #C9DDD1; animation-delay: .3s; }
.onb-confetti i:nth-child(5) { left: 70%; background: #FFF1DD; animation-delay: 1.6s; }
.onb-confetti i:nth-child(6) { left: 82%; animation-delay: .9s; }
.onb-confetti i:nth-child(7) { left: 92%; background: #C9DDD1; animation-delay: 2s; }
@keyframes onb-fall { 0% { transform: translateY(0) rotate(0); opacity: 0; } 10% { opacity: 1; } 100% { transform: translateY(300px) rotate(320deg); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .onb *, .onb *::before, .onb *::after { animation: none !important; } }

/* Ícone do perfil no onboarding (cores por CSS: atributos SVG não aceitam var()) */
.onb-ico .bg { fill: var(--green-tint); }
.onb-ico .fg { fill: var(--green); }
.onb-ico .tick { stroke: var(--green); }

/* Remédio: horários */
.med-times { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; }
.med-time { display: flex; align-items: center; gap: 2px; }
.med-time .input { flex: 1; min-width: 0; }
.med-every { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 12px; background: var(--green-tint); color: var(--green-ink); }
.med-every .input { width: auto; height: 40px; }
.med-every .input[inputmode] { width: 60px; }

/* Home: indicadores por área */
.score-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.score { display: flex; flex-direction: column; gap: 2px; padding: 10px; border-radius: 14px; background: rgba(255,255,255,0.08); color: #FFFFFF; text-decoration: none; min-width: 0; }
.score:hover { background: rgba(255,255,255,0.14); }
.score-top { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.score-icon { width: 30px; height: 30px; border-radius: 10px; display: flex; align-items: center; justify-content: center; background: rgba(255,255,255,0.12); color: #7FE0A6; flex-shrink: 0; }
.score-icon svg { width: 18px; height: 18px; }
.score-v { font-family: "Space Grotesk", sans-serif; font-size: 20px; font-weight: 700; line-height: 1.15; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.score-top { justify-content: flex-start; }
.score-label { margin-top: 4px; }
.task-ico { width: 28px; height: 28px; border-radius: 9px; display: flex; align-items: center; justify-content: center; background: var(--green-tint); color: var(--green-ink); flex-shrink: 0; }
.task-ico svg { width: 17px; height: 17px; }
.list-row.done .task-ico { background: var(--green); color: var(--on-green); }
.score.good .score-v { color: #7FE0A6; }
.score.mid .score-v { color: #FFD38A; }
.score.low .score-v { color: #FFAB9E; }
.score.none .score-v { color: #C9DDD1; }
.score-label { font-size: 12px; font-weight: 700; color: #C9DDD1; text-transform: uppercase; letter-spacing: .04em; }
.score-hint { font-size: 11px; line-height: 1.3; color: #C9DDD1; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* Dieta: gráfico da semana e foto */
.wk-chart { width: 100%; height: auto; display: block; }
.wk-bar { fill: var(--green); opacity: .55; }
.wk-bar.today { opacity: 1; }
.wk-bar.over { fill: var(--macro-f); opacity: .9; }
.wk-bar.empty { fill: var(--line-strong); opacity: .6; }
.wk-goal { stroke: var(--ink-2); stroke-width: 1.5; stroke-dasharray: 5 5; opacity: .6; }
.wk-goal-label { font-size: 10px; fill: var(--muted); }
.wk-day { font-size: 11px; fill: var(--muted); }
.wk-day.on { fill: var(--ink); font-weight: 700; }
.btn.diet-photo { background: rgba(255,255,255,0.1); color: #FFFFFF; border-color: rgba(255,255,255,0.2); }

/* Consulta: lembretes e autocomplete */
.rem-chip { display: inline-flex; align-items: center; gap: 6px; padding-right: 6px; cursor: default; }
.rem-x { width: 28px; height: 28px; border-radius: 14px; border: 0; background: rgba(255,255,255,0.16); color: inherit; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.rem-x svg { width: 13px; height: 13px; }
.ac { position: relative; }
.ac-list { position: absolute; z-index: 20; left: 0; right: 0; top: calc(100% + 4px); margin: 0; padding: 4px; list-style: none; background: var(--surface); border: 1px solid var(--line-strong); border-radius: 14px; box-shadow: 0 10px 28px rgba(0,0,0,0.18); max-height: 264px; overflow-y: auto; }
.ac-list li { padding: 12px; border-radius: 10px; font-size: 15px; cursor: pointer; color: var(--ink); }
.ac-list li:hover, .ac-list li:active { background: var(--green-tint); color: var(--green-ink); }

/* Assinatura */
.btn.big { height: 56px; border-radius: 28px; font-size: 17px; font-weight: 700; }
.btn.ghost { background: transparent; border-color: transparent; color: var(--green-ink); font-weight: 600; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }
.paywall { min-height: 100vh; display: flex; flex-direction: column; background: var(--bg); }
.paywall-hero { position: relative; background: var(--deep); color: #FFFFFF; padding: 28px 24px 26px; display: flex; flex-direction: column; gap: 14px; }
.paywall-hero h1 { margin: 0; font-family: "Space Grotesk", sans-serif; font-size: 28px; line-height: 1.12; letter-spacing: -0.5px; }
.paywall-close { position: absolute; top: 14px; right: 14px; width: 44px; height: 44px; border-radius: 22px; display: flex; align-items: center; justify-content: center; color: #C9DDD1; }
.paywall-avatar { width: 64px; height: 64px; border-radius: 32px; object-fit: cover; box-shadow: 0 0 0 3px #7FE0A6; background: #1F7A4D; }
.paywall-hero .pill.mint { background: #7FE0A6; color: #10301F; }
.paywall-benefits { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 9px; }
.paywall-benefits li { display: flex; align-items: center; gap: 10px; font-size: 14px; color: #E6F0EA; }
.paywall-benefits .ok { width: 22px; height: 22px; border-radius: 11px; background: rgba(127,224,166,0.18); color: #7FE0A6; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.paywall-benefits .ok svg { width: 12px; height: 12px; }
.paywall-body { flex: 1; display: flex; flex-direction: column; gap: 10px; padding: 18px 20px 24px; width: 100%; max-width: 560px; margin: 0 auto; box-sizing: border-box; }
.plans { border: 0; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.plans legend { font-size: 13px; font-weight: 700; color: var(--ink-2); margin-bottom: 10px; padding: 0; }
.plan-opt { display: flex; align-items: center; gap: 12px; min-height: 64px; padding: 10px 14px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); margin: 1px; cursor: pointer; }
.plan-opt.on { border: 2px solid var(--green); margin: 0; }
.plan-opt input { width: 22px; height: 22px; margin: 0; accent-color: var(--green); flex-shrink: 0; }
.plan-opt .grow { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.plan-name { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 16px; font-weight: 700; }
.plan-badge { font-size: 11px; font-weight: 700; color: var(--green-ink); background: var(--green-tint); padding: 3px 8px; border-radius: 999px; }
.plan-sub { font-size: 13px; color: var(--muted); }
.plan-price { display: flex; flex-direction: column; align-items: flex-end; flex-shrink: 0; }
.plan-price .v { font-family: "Space Grotesk", sans-serif; font-size: 18px; font-weight: 700; }
.plan-price .u { font-size: 11px; color: var(--muted); }
.pay-opt { position: relative; display: flex; flex-direction: column; gap: 4px; padding: 14px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); margin: 1px; cursor: pointer; min-height: 84px; }
.pay-opt.on { border: 2px solid var(--green); margin: 0; }
.pay-opt input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.pay-name { font-size: 15px; font-weight: 700; }
.pay-sub { font-size: 12px; color: var(--muted); }
.meter { height: 8px; border-radius: 4px; background: var(--line); overflow: hidden; }
.meter span { display: block; height: 100%; border-radius: 4px; background: var(--green); }
.meter span.full { background: #D9822B; }
.meter-count { color: var(--ink-2); }
.meter-count.full { color: var(--amber-ink); font-weight: 700; }
.sub-cta { display: flex; align-items: center; gap: 12px; padding: 16px 18px; border-radius: 20px; background: var(--deep); color: #FFFFFF; text-decoration: none; }
.sub-cta .t { font-size: 16px; font-weight: 700; }
.sub-cta .s { font-size: 13px; color: #C9DDD1; }
.sub-cta svg { color: #7FE0A6; }
.offer { position: relative; display: flex; gap: 12px; padding: 14px 44px 14px 14px; border-radius: 20px; background: var(--deep); color: #FFFFFF; }
.offer img { width: 44px; height: 44px; border-radius: 22px; object-fit: cover; flex-shrink: 0; box-shadow: 0 0 0 2px #7FE0A6; }
.offer .t { font-size: 15px; font-weight: 700; }
.offer .s { font-size: 13px; line-height: 1.4; color: #C9DDD1; }
.offer-x { position: absolute; top: 6px; right: 6px; width: 40px; height: 40px; border: 0; border-radius: 20px; background: transparent; color: #C9DDD1; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.sheet-scrim { position: fixed; inset: 0; z-index: 60; background: rgba(16,48,31,0.45); }
.sheet { position: fixed; z-index: 61; left: 0; right: 0; bottom: 0; max-width: 560px; margin: 0 auto; background: var(--surface); color: var(--ink); border-radius: 28px 28px 0 0; padding: 12px 22px calc(24px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 14px; animation: sheet-up .3s ease-out both; box-sizing: border-box; }
.sheet.dark { background: #10301F; color: #FFFFFF; }
.sheet.dark .sheet-body { color: #C9DDD1; }
.sheet.dark .btn.ghost { color: #7FE0A6; }
.sheet.dark .pill.mint { background: #7FE0A6; color: #10301F; }
@keyframes sheet-up { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }
.sheet-grip { align-self: center; width: 40px; height: 5px; border-radius: 3px; background: var(--line-strong); }
.sheet-title { margin: 0; font-family: "Space Grotesk", sans-serif; font-size: 22px; line-height: 1.15; }
.sheet-body { margin: 0; font-size: 15px; line-height: 1.5; color: var(--ink-2); }
.sheet-ico { width: 48px; height: 48px; border-radius: 16px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.sheet-ico.warn { background: var(--amber-tint); color: var(--amber-ink); }
.sheet-meter { display: grid; gap: 6px; }
.sheet-meter span { height: 8px; border-radius: 4px; background: var(--line); }
.sheet-meter span.on { background: #D9822B; }
.sheet-box { background: var(--bg); border-radius: 16px; padding: 12px 14px; display: flex; flex-direction: column; gap: 4px; }
.sheet-box .t { font-size: 14px; font-weight: 700; }
.sheet-box .s { font-size: 13px; line-height: 1.45; color: var(--ink-2); }
.sheet-wave { display: flex; align-items: center; justify-content: center; gap: 5px; height: 56px; }
.sheet-wave span { width: 6px; border-radius: 3px; background: #7FE0A6; animation: sheet-wave 1.1s ease-in-out infinite; }
@keyframes sheet-wave { 0%, 100% { transform: scaleY(.35); } 50% { transform: scaleY(1); } }
.sheet-list { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; }
.sheet-list li { display: flex; align-items: center; gap: 10px; font-size: 14px; color: #E6F0EA; }
.sheet-list svg { color: #7FE0A6; }
