/* ==========================================================
   Bússola · Guia de Sobrevivência: estilos
   Temas: claro (padrão do sistema), escuro e noturno vermelho
   ========================================================== */

:root {
  --bg: #f3efe4;
  --bg-2: #ebe5d6;
  --surface: #fffcf5;
  --surface-2: #f2ecdf;
  --surface-3: #e8e0cf;
  --line: #ddd4c0;
  --line-2: #c9bda4;
  --text: #1b251f;
  --text-2: #3f4c43;
  --muted: #6e786c;
  --accent: #c0561a;
  --accent-ink: #ffffff;
  --brand: #234a35;
  --ok: #2e8049;
  --warn: #a86a12;
  --danger: #c4352b;
  --info: #276f9f;
  --hero-bg: #1d3a2a;
  --hero-bg-2: #2c5a3f;
  --hero-fg: #f3ecd9;
  --logo-bg: #1d3a2a;
  --logo-fg: #f3ecd9;
  --logo-accent: #ec8a3d;
  --shadow: 0 1px 2px rgba(50, 38, 12, .06), 0 8px 24px -10px rgba(50, 38, 12, .14);
  --shadow-lg: 0 18px 40px -16px rgba(30, 24, 10, .35);
  --nav-bg: color-mix(in srgb, var(--surface) 86%, transparent);
  --radius: 18px;
  --radius-sm: 12px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
  --nav-h: 68px;
  --rail-w: 252px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]):not([data-theme="night"]) {
    --bg: #0d120f;
    --bg-2: #111813;
    --surface: #151d18;
    --surface-2: #1b251f;
    --surface-3: #223027;
    --line: #253229;
    --line-2: #334437;
    --text: #ece8dc;
    --text-2: #c4cabd;
    --muted: #8b968a;
    --accent: #ee8b3e;
    --accent-ink: #1b1108;
    --brand: #9cc79c;
    --ok: #5fc27e;
    --warn: #e9b44c;
    --danger: #f2635b;
    --info: #5cb0e3;
    --hero-bg: #142a1e;
    --hero-bg-2: #1f4430;
    --hero-fg: #efe7d2;
    --logo-bg: #1d3a2a;
    --shadow: 0 1px 0 rgba(255, 255, 255, .02) inset, 0 10px 28px -14px rgba(0, 0, 0, .6);
    --shadow-lg: 0 20px 44px -18px rgba(0, 0, 0, .7);
    color-scheme: dark;
  }
}

:root[data-theme="dark"] {
  --bg: #0d120f;
  --bg-2: #111813;
  --surface: #151d18;
  --surface-2: #1b251f;
  --surface-3: #223027;
  --line: #253229;
  --line-2: #334437;
  --text: #ece8dc;
  --text-2: #c4cabd;
  --muted: #8b968a;
  --accent: #ee8b3e;
  --accent-ink: #1b1108;
  --brand: #9cc79c;
  --ok: #5fc27e;
  --warn: #e9b44c;
  --danger: #f2635b;
  --info: #5cb0e3;
  --hero-bg: #142a1e;
  --hero-bg-2: #1f4430;
  --hero-fg: #efe7d2;
  --logo-bg: #1d3a2a;
  --shadow: 0 1px 0 rgba(255, 255, 255, .02) inset, 0 10px 28px -14px rgba(0, 0, 0, .6);
  --shadow-lg: 0 20px 44px -18px rgba(0, 0, 0, .7);
  color-scheme: dark;
}

/* Modo noturno: só vermelho, preserva a visão no escuro */
:root[data-theme="night"] {
  --bg: #000000;
  --bg-2: #050000;
  --surface: #0b0101;
  --surface-2: #130303;
  --surface-3: #1c0505;
  --line: #2a0707;
  --line-2: #3d0b0b;
  --text: #ff4a3a;
  --text-2: #e03a2c;
  --muted: #a3291f;
  --accent: #ff3b2e;
  --accent-ink: #000000;
  --brand: #ff3b2e;
  --ok: #ff4a3a;
  --warn: #ff5a3a;
  --danger: #ff2a1f;
  --info: #e03a2c;
  --hero-bg: #120202;
  --hero-bg-2: #220404;
  --hero-fg: #ff4a3a;
  --logo-bg: #1a0303;
  --logo-fg: #ff4a3a;
  --logo-accent: #ff2a1f;
  --shadow: none;
  --shadow-lg: none;
  color-scheme: dark;
}
:root[data-theme="night"] [style*="--c"] { --c: #ff3b2e !important; }

/* Tamanho do texto */
:root[data-fs="sm"] { font-size: 15px; }
:root[data-fs="md"] { font-size: 16px; }
:root[data-fs="lg"] { font-size: 18px; }
:root[data-fs="xl"] { font-size: 20px; }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 72px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  min-height: 100dvh;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; }
img, svg { display: block; }
h1, h2, h3, h4 { font-family: var(--font-display); margin: 0; line-height: 1.15; letter-spacing: -.015em; }
p { margin: 0; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--accent) 70%, transparent); outline-offset: 2px; border-radius: 8px; }
::selection { background: color-mix(in srgb, var(--accent) 30%, transparent); }

.i { width: 1.25em; height: 1.25em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.i.fill { fill: currentColor; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Estrutura ---------- */
.topbar {
  position: sticky; top: 0; z-index: 30;
  display: flex; align-items: center; gap: 8px;
  height: calc(58px + env(safe-area-inset-top));
  padding: env(safe-area-inset-top) 10px 0 10px;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
.topbar.scrolled { border-bottom-color: var(--line); }
.tb-brand { display: flex; align-items: center; gap: 10px; padding: 4px 6px; font-weight: 800; font-size: 1.06rem; letter-spacing: -.01em; }
.tb-brand small { display: block; white-space: nowrap; font-size: .6rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.tb-back { display: none; width: 42px; height: 42px; border-radius: 12px; align-items: center; justify-content: center; }
.tb-back:hover { background: var(--surface-2); }
.tb-title { flex: 1; min-width: 0; font-weight: 700; font-size: 1rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar.deep .tb-back { display: inline-flex; }
.topbar.deep .tb-brand { display: none; }
.topbar:not(.deep) .tb-title { visibility: hidden; }
.tb-actions { display: flex; gap: 2px; }
.icon-btn { width: 42px; height: 42px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; color: var(--text-2); }
.icon-btn:hover { background: var(--surface-2); color: var(--text); }
.icon-btn .i { width: 22px; height: 22px; }

main#view {
  max-width: 1100px;
  margin: 0 auto;
  padding: 8px 16px calc(var(--nav-h) + 36px + env(safe-area-inset-bottom));
  outline: none;
}

.nav {
  position: fixed; z-index: 40; left: 0; right: 0; bottom: 0;
  display: flex; justify-content: space-around; align-items: stretch;
  height: calc(var(--nav-h) + env(safe-area-inset-bottom));
  padding: 6px 6px env(safe-area-inset-bottom);
  background: var(--nav-bg);
  -webkit-backdrop-filter: saturate(1.4) blur(16px);
  backdrop-filter: saturate(1.4) blur(16px);
  border-top: 1px solid var(--line);
}
.nav a.nav-brand { display: none; }
.nav a {
  flex: 1; max-width: 120px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  font-size: .7rem; font-weight: 650; color: var(--muted);
  border-radius: 14px; position: relative;
}
.nav a .i { width: 24px; height: 24px; transition: transform .2s; }
.nav a.active { color: var(--text); }
.nav a.active .i { color: var(--accent); }
.nav a.active::before {
  content: ""; position: absolute; top: 2px; width: 44px; height: 30px; border-radius: 10px;
  background: color-mix(in srgb, var(--accent) 14%, transparent); z-index: -1;
}
.nav a.nav-sos { color: var(--danger); }
.nav a.nav-sos .i { color: var(--danger); }
.nav a.nav-sos.active::before { background: color-mix(in srgb, var(--danger) 16%, transparent); }

@media (min-width: 960px) {
  body { padding-left: var(--rail-w); }
  .nav {
    top: 0; right: auto; width: var(--rail-w); height: auto;
    flex-direction: column; justify-content: flex-start; gap: 4px;
    padding: 20px 14px; border-top: 0; border-right: 1px solid var(--line);
    background: var(--bg-2);
  }
  .nav a.nav-brand { display: flex; flex: none; max-width: none; flex-direction: row; justify-content: flex-start; align-items: center; gap: 12px; padding: 4px 10px 22px; font-weight: 800; font-size: 1.15rem; color: var(--text); }
  .nav-brand small { display: block; font-size: .66rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
  .nav a:not(.nav-brand) { flex: none; max-width: none; flex-direction: row; justify-content: flex-start; gap: 12px; padding: 11px 12px; font-size: .95rem; }
  .nav a.active::before { inset: 0; top: 0; width: auto; height: auto; }
  .nav a:not(.active):not(.nav-brand):hover { background: var(--surface-2); color: var(--text); }
  .nav .nav-foot { margin-top: auto; font-size: .75rem; color: var(--muted); padding: 10px 12px; line-height: 1.4; }
  .topbar .tb-brand { visibility: hidden; }
  main#view { padding: 12px 32px 64px; }
}
.nav .nav-foot { display: none; }
@media (min-width: 960px) { .nav .nav-foot { display: block; } }

/* ---------- Tipografia utilitária ---------- */
.eyebrow { font-size: .7rem; font-weight: 750; letter-spacing: .13em; text-transform: uppercase; color: var(--muted); }
.lead { color: var(--text-2); font-size: 1.04rem; }
.muted { color: var(--muted); }
.mono { font-family: var(--mono); }
.page-head { padding: 14px 2px 18px; }
.page-head h1 { font-size: clamp(1.7rem, 5.5vw, 2.3rem); font-weight: 800; margin: 6px 0 8px; }
.sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 30px 2px 12px; }
.sec-head h2 { font-size: 1.18rem; font-weight: 780; }
.sec-head a { font-size: .86rem; font-weight: 650; color: var(--accent); white-space: nowrap; }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 0 18px; border-radius: 14px;
  font-weight: 700; font-size: .95rem; letter-spacing: -.005em;
  background: var(--surface); color: var(--text); border: 1px solid var(--line);
  transition: transform .12s, background .15s, border-color .15s;
  user-select: none; -webkit-user-select: none;
}
.btn:active { transform: scale(.97); }
.btn:hover { border-color: var(--line-2); }
.btn-primary { background: var(--accent); color: var(--accent-ink); border-color: transparent; }
.btn-primary:hover { border-color: transparent; filter: brightness(1.05); }
.btn-sos { background: var(--danger); color: #fff; border-color: transparent; }
:root[data-theme="night"] .btn-sos { color: #000; }
.btn-ghost { background: transparent; }
.btn-sm { min-height: 36px; padding: 0 12px; font-size: .85rem; border-radius: 11px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .5; pointer-events: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; }

/* ---------- Cartões ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); }
.card + .card { margin-top: 12px; }
.card h3 { font-size: 1.05rem; font-weight: 750; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  margin-top: 8px; border-radius: 26px; color: var(--hero-fg);
  background:
    radial-gradient(120% 90% at 100% 0%, var(--hero-bg-2) 0%, transparent 60%),
    linear-gradient(160deg, var(--hero-bg) 0%, color-mix(in srgb, var(--hero-bg) 80%, #000) 100%);
  box-shadow: var(--shadow-lg);
}
.hero .topo { position: absolute; inset: -10% -20% -10% auto; width: 120%; height: 120%; z-index: -1; opacity: .16; stroke: var(--hero-fg); }
.hero-in { padding: 26px 22px 22px; }
.hero .eyebrow { color: color-mix(in srgb, var(--hero-fg) 70%, transparent); display: flex; align-items: center; gap: 8px; }
.hero h1 { font-size: clamp(1.75rem, 7vw, 2.75rem); font-weight: 820; letter-spacing: -.025em; margin: 10px 0 10px; max-width: 16ch; }
.hero .lead { color: color-mix(in srgb, var(--hero-fg) 82%, transparent); max-width: 44ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.hero .btn-ghost { color: var(--hero-fg); border-color: color-mix(in srgb, var(--hero-fg) 28%, transparent); }
.hero .btn-ghost:hover { background: color-mix(in srgb, var(--hero-fg) 10%, transparent); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 999px;
  font-size: .76rem; font-weight: 650; border: 1px solid var(--line); background: var(--surface-2); color: var(--text-2);
}
.chip .i { width: 14px; height: 14px; }
.hero .chip { background: color-mix(in srgb, var(--hero-fg) 10%, transparent); border-color: color-mix(in srgb, var(--hero-fg) 18%, transparent); color: var(--hero-fg); }
.chip.ok .i { color: var(--ok); }
.hero .chip.ok .i { color: #8ee0a4; }
:root[data-theme="night"] .hero .chip.ok .i { color: var(--hero-fg); }

/* ---------- Regra dos 3 ---------- */
.rule3 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.r3 {
  background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 14px 10px 12px;
  text-align: center; box-shadow: var(--shadow); position: relative; overflow: hidden;
}
.r3 .n { font-family: var(--font-display); font-size: 2rem; font-weight: 850; line-height: 1; color: var(--c); letter-spacing: -.03em; }
.r3 .u { font-size: .72rem; font-weight: 750; text-transform: uppercase; letter-spacing: .08em; color: var(--text-2); margin-top: 4px; }
.r3 .l { font-size: .8rem; color: var(--muted); margin-top: 6px; display: flex; align-items: center; justify-content: center; gap: 4px; }
.r3 .l .i { width: 14px; height: 14px; color: var(--c); }
@media (max-width: 380px) { .rule3 { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Preparo ---------- */
.prep { display: flex; align-items: center; gap: 18px; }
.ring { width: 84px; height: 84px; flex: none; position: relative; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring .track { stroke: var(--surface-3); }
.ring .bar { stroke: var(--accent); transition: stroke-dashoffset .6s cubic-bezier(.2,.8,.2,1); }
.ring .val { position: absolute; inset: 0; display: grid; place-items: center; font-weight: 820; font-size: 1.2rem; letter-spacing: -.02em; }
.prep h3 { margin-bottom: 4px; }
.prep p { color: var(--text-2); font-size: .92rem; }
.prep .btn { margin-top: 12px; }

/* ---------- Grade de categorias ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(156px, 1fr)); gap: 12px; }
.tile {
  display: flex; flex-direction: column; gap: 10px; min-height: 132px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 15px; box-shadow: var(--shadow); position: relative; overflow: hidden;
  transition: transform .15s, border-color .15s;
}
.tile:hover { border-color: color-mix(in srgb, var(--c) 45%, var(--line)); transform: translateY(-2px); }
.tile:active { transform: scale(.98); }
.tile::after {
  content: ""; position: absolute; right: -30px; top: -30px; width: 90px; height: 90px; border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--c) 18%, transparent), transparent 70%);
}
.ico {
  width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; flex: none;
  background: color-mix(in srgb, var(--c) 16%, transparent);
  color: color-mix(in srgb, var(--c) 78%, var(--text));
}
.ico .i { width: 23px; height: 23px; }
.tile h3 { font-size: 1rem; font-weight: 760; }
.tile .meta { font-size: .78rem; color: var(--muted); margin-top: auto; }
.tile p.s { font-size: .82rem; color: var(--text-2); line-height: 1.35; display: none; }
@media (min-width: 640px) { .tile p.s { display: block; } .cat-grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); } }

/* ---------- Ferramentas rápidas ---------- */
.hscroll { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 2px 16px 8px; margin: 0 -16px; scrollbar-width: none; }
.hscroll::-webkit-scrollbar { display: none; }
.qtool {
  scroll-snap-align: start; flex: none; width: 112px;
  display: flex; flex-direction: column; align-items: flex-start; gap: 10px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 13px; box-shadow: var(--shadow);
  font-weight: 700; font-size: .86rem; line-height: 1.2;
}
.qtool .ico { width: 38px; height: 38px; border-radius: 11px; }

.tool-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.tool-card { display: flex; gap: 14px; align-items: flex-start; }
.tool-card h3 { font-size: 1rem; margin-bottom: 3px; }
.tool-card p { font-size: .86rem; color: var(--text-2); line-height: 1.4; }

/* ---------- Dica ---------- */
.tip-card { display: flex; gap: 14px; align-items: flex-start; border-left: 4px solid var(--warn); }
.tip-card .i { color: var(--warn); width: 26px; height: 26px; margin-top: 2px; }
.tip-card p { font-weight: 600; font-size: 1rem; line-height: 1.45; }

/* ---------- Listas de linhas ---------- */
.rows { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.row { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-top: 1px solid var(--line); transition: background .12s; }
.row:first-child { border-top: 0; }
.row:hover { background: var(--surface-2); }
.row .num {
  width: 30px; height: 30px; flex: none; border-radius: 9px; display: grid; place-items: center;
  font-weight: 800; font-size: .82rem; color: color-mix(in srgb, var(--c, var(--accent)) 80%, var(--text));
  background: color-mix(in srgb, var(--c, var(--accent)) 14%, transparent);
}
.row .txt { flex: 1; min-width: 0; }
.row .t { font-weight: 700; line-height: 1.3; }
.row .s { font-size: .85rem; color: var(--muted); line-height: 1.35; margin-top: 2px; }
.row > .i:last-child { color: var(--muted); width: 18px; height: 18px; }

/* ---------- Cabeçalho de categoria/artigo ---------- */
.cat-head {
  margin: 4px -16px 6px; padding: 18px 18px 22px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--c) 15%, var(--bg)) 0%, var(--bg) 100%);
}
@media (min-width: 960px) { .cat-head { margin: 4px 0 6px; border-radius: 24px; padding: 26px; } }
.cat-head .ico { width: 54px; height: 54px; border-radius: 16px; }
.cat-head .ico .i { width: 28px; height: 28px; }
.cat-head h1 { font-size: clamp(1.7rem, 6vw, 2.3rem); font-weight: 820; margin: 14px 0 6px; }

.art { max-width: 760px; margin: 0 auto; }
.art-head { margin: 4px -16px 0; padding: 20px 18px 22px; background: linear-gradient(180deg, color-mix(in srgb, var(--c) 14%, var(--bg)) 0%, var(--bg) 100%); }
@media (min-width: 800px) { .art-head { margin: 4px 0 0; border-radius: 24px; padding: 28px; } }
.cat-link { display: inline-flex; align-items: center; gap: 7px; color: color-mix(in srgb, var(--c) 75%, var(--text)); }
.cat-link .i { width: 16px; height: 16px; }
.art-head h1 { font-size: clamp(1.75rem, 6.4vw, 2.5rem); font-weight: 830; margin: 12px 0 10px; letter-spacing: -.025em; }
.art-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 16px; }
.fav-btn.on { color: var(--accent); border-color: color-mix(in srgb, var(--accent) 40%, var(--line)); }
.fav-btn.on .i { fill: currentColor; }

/* ---------- Prosa (conteúdo dos guias) ---------- */
.prose { font-size: 1.04rem; line-height: 1.68; color: var(--text); padding: 6px 2px 0; }
.prose > * + * { margin-top: 14px; }
.prose h2 {
  font-size: 1.32rem; font-weight: 800; margin-top: 34px; padding-top: 2px;
  display: flex; align-items: center; gap: 10px;
}
.prose h2::before { content: ""; width: 6px; height: 1.05em; border-radius: 3px; background: var(--c, var(--accent)); flex: none; }
.prose h3 { font-size: 1.08rem; font-weight: 760; margin-top: 24px; color: var(--text-2); }
.prose p { color: var(--text); }
.prose strong { font-weight: 750; }
.prose a.ilink { color: var(--accent); font-weight: 650; text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 3px; text-decoration-color: color-mix(in srgb, var(--accent) 40%, transparent); }
.prose ul, .prose ol { padding: 0; margin-left: 0; list-style: none; }
.prose ul > li { position: relative; padding-left: 22px; }
.prose ul > li + li, .prose ol > li + li { margin-top: 7px; }
.prose ul > li::before { content: ""; position: absolute; left: 6px; top: .68em; width: 6px; height: 6px; border-radius: 2px; background: color-mix(in srgb, var(--c, var(--accent)) 75%, var(--text)); transform: rotate(45deg); }
.prose ol { counter-reset: s; }
.prose ol > li { counter-increment: s; position: relative; padding-left: 42px; min-height: 30px; }
.prose ol > li::before {
  content: counter(s); position: absolute; left: 0; top: .05em; width: 28px; height: 28px; border-radius: 50%;
  display: grid; place-items: center; font-weight: 800; font-size: .85rem;
  background: color-mix(in srgb, var(--c, var(--accent)) 16%, transparent); color: color-mix(in srgb, var(--c, var(--accent)) 80%, var(--text));
}
.prose ol > li:not(:last-child)::after { content: ""; position: absolute; left: 13.5px; top: 32px; bottom: -6px; width: 1px; background: var(--line); }
.dd { border-radius: 14px; padding: 12px 14px; border: 1px solid; }
.dd.do { background: color-mix(in srgb, var(--ok) 7%, transparent); border-color: color-mix(in srgb, var(--ok) 25%, transparent); }
.dd.dont { background: color-mix(in srgb, var(--danger) 7%, transparent); border-color: color-mix(in srgb, var(--danger) 25%, transparent); }
.dd .dd-h { font-size: .7rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 6px; display: flex; align-items: center; gap: 6px; }
.dd.do .dd-h { color: var(--ok); }
.dd.dont .dd-h { color: var(--danger); }
.dd ul > li { padding-left: 28px; }
.dd ul > li::before { display: none; }
.dd ul > li > .i { position: absolute; left: 0; top: .2em; width: 20px; height: 20px; stroke-width: 2.6; }
.dd.do ul > li > .i { color: var(--ok); }
.dd.dont ul > li > .i { color: var(--danger); }
.callout { display: flex; gap: 12px; padding: 14px 15px; border-radius: 14px; border: 1px solid; font-size: .98rem; line-height: 1.55; }
.callout > .i { width: 22px; height: 22px; margin-top: 1px; }
.callout .cb > * + * { margin-top: 6px; }
.callout .ct { font-size: .7rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; display: block; margin-bottom: 2px; }
.callout.warn { background: color-mix(in srgb, var(--danger) 8%, transparent); border-color: color-mix(in srgb, var(--danger) 30%, transparent); }
.callout.warn > .i, .callout.warn .ct { color: var(--danger); }
.callout.tip { background: color-mix(in srgb, var(--info) 8%, transparent); border-color: color-mix(in srgb, var(--info) 28%, transparent); }
.callout.tip > .i, .callout.tip .ct { color: var(--info); }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); -webkit-overflow-scrolling: touch; }
.table-wrap table { width: 100%; border-collapse: collapse; font-size: .9rem; line-height: 1.4; min-width: 420px; }
.table-wrap th { text-align: left; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 800; background: var(--surface-2); padding: 10px 12px; border-bottom: 1px solid var(--line); }
.table-wrap td { padding: 10px 12px; border-top: 1px solid var(--line); vertical-align: top; }
.table-wrap tr:first-child td { border-top: 0; }
.table-wrap td:first-child { font-weight: 650; }

.sources { margin-top: 30px; padding: 16px; border-radius: 16px; background: var(--surface-2); }
.sources ul { list-style: none; padding: 0; margin: 8px 0 0; display: flex; flex-wrap: wrap; gap: 6px; }
.sources li { font-size: .8rem; padding: 4px 10px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); color: var(--text-2); }
.art-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 22px; }
.art-nav a { display: flex; flex-direction: column; gap: 4px; padding: 14px; border-radius: 16px; border: 1px solid var(--line); background: var(--surface); min-width: 0; }
.art-nav a.next { text-align: right; align-items: flex-end; }
.art-nav a .t { font-weight: 700; font-size: .92rem; line-height: 1.3; }
.art-nav a:hover { border-color: var(--line-2); }
.read-progress { position: fixed; top: 0; left: 0; height: 3px; background: var(--c, var(--accent)); z-index: 60; width: 0; transition: width .1s linear; }
@media (min-width: 960px) { .read-progress { left: var(--rail-w); } }
.disclaimer { margin-top: 18px; font-size: .82rem; color: var(--muted); display: flex; gap: 8px; align-items: flex-start; }
.disclaimer .i { width: 16px; height: 16px; margin-top: 2px; }

/* ---------- Progresso / kits ---------- */
.bar { height: 8px; border-radius: 99px; background: var(--surface-3); overflow: hidden; }
.bar > span { display: block; height: 100%; border-radius: 99px; background: var(--accent); transition: width .4s cubic-bezier(.2,.8,.2,1); }
.bar.done > span { background: var(--ok); }
.kit-card { display: flex; gap: 14px; align-items: center; }
.kit-card .txt { flex: 1; min-width: 0; }
.kit-card .t { font-weight: 750; }
.kit-card .s { font-size: .84rem; color: var(--muted); margin: 2px 0 10px; }
.kit-card .pc { font-size: .78rem; font-weight: 750; color: var(--text-2); margin-top: 6px; }
.kit-list { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.kit-head-prog { margin-top: 16px; display: flex; align-items: center; gap: 12px; }
.kit-head-prog .bar { flex: 1; height: 10px; }
.kit-head-prog b { font-size: .95rem; min-width: 64px; text-align: right; }
.check-sec { margin-top: 22px; }
.check-sec h2 { font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 800; margin: 0 4px 8px; display: flex; justify-content: space-between; }
.check {
  display: flex; align-items: center; gap: 14px; padding: 13px 16px; border-top: 1px solid var(--line); cursor: pointer;
  user-select: none; -webkit-user-select: none; transition: background .12s;
}
.check:first-child { border-top: 0; }
.check:hover { background: var(--surface-2); }
.check input { position: absolute; opacity: 0; pointer-events: none; }
.check .box {
  width: 24px; height: 24px; border-radius: 8px; border: 2px solid var(--line-2); flex: none; display: grid; place-items: center;
  transition: background .15s, border-color .15s, transform .15s;
}
.check .box .i { width: 16px; height: 16px; stroke-width: 3.2; color: var(--accent-ink); opacity: 0; transform: scale(.4); transition: .18s; }
.check input:checked + .box { background: var(--ok); border-color: var(--ok); }
:root[data-theme="night"] .check input:checked + .box { background: var(--accent); border-color: var(--accent); }
.check input:checked + .box .i { opacity: 1; transform: none; color: #fff; }
:root[data-theme="night"] .check input:checked + .box .i { color: #000; }
.check input:focus-visible + .box { outline: 3px solid color-mix(in srgb, var(--accent) 70%, transparent); outline-offset: 2px; }
.check .lbl { flex: 1; line-height: 1.35; }
.check input:checked ~ .lbl { color: var(--muted); text-decoration: line-through; text-decoration-color: var(--line-2); }
.check .del { color: var(--muted); padding: 6px; border-radius: 8px; }
.check .del:hover { color: var(--danger); background: var(--surface-3); }
.add-row { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--line); }
.add-row input { flex: 1; }

/* ---------- Formulários ---------- */
.field { display: flex; flex-direction: column; gap: 6px; }
.field > span { font-size: .78rem; font-weight: 750; color: var(--text-2); letter-spacing: .01em; }
.input, .field input, .field select, .field textarea, .add-row input {
  width: 100%; min-height: 46px; padding: 10px 13px; border-radius: 12px;
  border: 1px solid var(--line-2); background: var(--surface); color: var(--text);
  outline: none; transition: border-color .15s, box-shadow .15s;
}
.field textarea { min-height: 84px; resize: vertical; line-height: 1.45; }
.input:focus, .field input:focus, .field select:focus, .field textarea:focus, .add-row input:focus {
  border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 20%, transparent);
}
.form-grid { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .form-grid.two { grid-template-columns: 1fr 1fr; } .form-grid .full { grid-column: 1 / -1; } }
fieldset { border: 0; padding: 0; margin: 0; }
.fs-title { font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 800; margin: 26px 2px 10px; }

.seg { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line); }
.seg button { padding: 8px 13px; border-radius: 10px; font-weight: 700; font-size: .86rem; color: var(--text-2); display: inline-flex; align-items: center; gap: 6px; }
.seg button .i { width: 16px; height: 16px; }
.seg button[aria-pressed="true"] { background: var(--surface); color: var(--text); box-shadow: var(--shadow); }
:root[data-theme="night"] .seg button[aria-pressed="true"] { background: var(--surface-3); }

.stepper { display: flex; align-items: center; gap: 8px; }
.stepper button { width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--surface); font-size: 1.3rem; font-weight: 700; display: grid; place-items: center; }
.stepper input { width: 70px; text-align: center; font-weight: 800; font-size: 1.1rem; }

/* ---------- Estatísticas ---------- */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 14px; }
.stat .k { font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 800; display: flex; align-items: center; gap: 6px; }
.stat .k .i { width: 15px; height: 15px; }
.stat .v { font-size: 1.6rem; font-weight: 830; letter-spacing: -.02em; margin-top: 6px; line-height: 1.1; }
.stat .v small { font-size: .9rem; font-weight: 700; color: var(--text-2); }
.stat .d { font-size: .8rem; color: var(--muted); margin-top: 3px; }

/* ---------- SOS ---------- */
.sos-head { margin: 4px -16px 0; padding: 22px 18px 24px; background: linear-gradient(180deg, color-mix(in srgb, var(--danger) 16%, var(--bg)), var(--bg)); }
@media (min-width: 960px) { .sos-head { margin: 4px 0 0; border-radius: 24px; padding: 28px; } }
.sos-head h1 { font-size: clamp(1.9rem, 7vw, 2.6rem); font-weight: 850; margin: 8px 0 8px; }
.call-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.call {
  display: flex; flex-direction: column; gap: 2px; padding: 14px; border-radius: 16px;
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); position: relative;
}
.call .n { font-family: var(--font-display); font-weight: 860; font-size: 1.9rem; letter-spacing: -.03em; line-height: 1; color: var(--tone); }
.call .n.sm { font-size: 1.15rem; padding: 6px 0 5px; }
.call .nm { font-weight: 750; margin-top: 6px; }
.call .ds { font-size: .78rem; color: var(--muted); line-height: 1.3; }
.call .i { position: absolute; top: 14px; right: 14px; width: 18px; height: 18px; color: var(--tone); }
.call.big { border-color: color-mix(in srgb, var(--tone) 40%, var(--line)); background: color-mix(in srgb, var(--tone) 7%, var(--surface)); }
.stop-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.stop-grid div { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 12px 8px; text-align: center; }
.stop-grid b { display: block; font-size: 1.6rem; font-weight: 860; color: var(--accent); line-height: 1; }
.stop-grid span { font-size: .78rem; font-weight: 700; color: var(--text-2); }
.alert-card { display: flex; gap: 12px; align-items: flex-start; border-color: color-mix(in srgb, var(--warn) 45%, var(--line)); background: color-mix(in srgb, var(--warn) 8%, var(--surface)); }
.alert-card .i { color: var(--warn); width: 22px; height: 22px; margin-top: 1px; }

/* ---------- Busca ---------- */
.search-box { position: relative; margin: 10px 0 6px; }
.search-box .i { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.search-box input { width: 100%; min-height: 54px; padding: 0 16px 0 46px; border-radius: 16px; border: 1px solid var(--line-2); background: var(--surface); font-size: 1.05rem; outline: none; box-shadow: var(--shadow); }
.search-box input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 20%, transparent); }
mark { background: color-mix(in srgb, var(--accent) 28%, transparent); color: inherit; border-radius: 3px; padding: 0 1px; }
.res-cat { font-size: .72rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: color-mix(in srgb, var(--c) 75%, var(--text)); }
.suggest { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.suggest button { padding: 8px 13px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); font-size: .86rem; font-weight: 650; color: var(--text-2); }
.empty { text-align: center; padding: 40px 20px; color: var(--muted); }
.empty .i { width: 40px; height: 40px; margin: 0 auto 12px; opacity: .6; }

/* ---------- Toast ---------- */
#toast {
  position: fixed; left: 50%; bottom: calc(var(--nav-h) + 18px + env(safe-area-inset-bottom)); z-index: 80;
  transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  background: var(--text); color: var(--bg); padding: 11px 16px; border-radius: 14px; font-weight: 650; font-size: .9rem;
  box-shadow: var(--shadow-lg); transition: .25s; max-width: calc(100vw - 32px); display: flex; gap: 10px; align-items: center;
}
#toast.show { transform: translate(-50%, 0); opacity: 1; pointer-events: auto; }
#toast button { color: var(--accent); font-weight: 800; }
@media (min-width: 960px) { #toast { bottom: 24px; left: calc(50% + var(--rail-w) / 2); } }

/* ---------- Overlay (lanterna, cartão) ---------- */
#overlay {
  position: fixed; inset: 0; z-index: 100; display: none; align-items: center; justify-content: center; flex-direction: column;
  background: #fff; color: #000; text-align: center; padding: 24px; touch-action: manipulation;
}
#overlay.show { display: flex; }
#overlay .ov-hint { position: absolute; bottom: calc(26px + env(safe-area-inset-bottom)); left: 0; right: 0; font-size: .85rem; font-weight: 700; opacity: .55; }
#overlay.scroll { display: none; align-items: stretch; justify-content: flex-start; overflow-y: auto; text-align: left; background: var(--bg); color: var(--text); }
#overlay.scroll.show { display: block; }

/* ---------- Ferramentas específicas ---------- */
.tool-hero { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 10px 0 6px; }
.big-readout { font-family: var(--font-display); font-size: clamp(3rem, 16vw, 4.6rem); font-weight: 860; letter-spacing: -.04em; line-height: 1; }
.big-readout small { font-size: .38em; font-weight: 750; letter-spacing: 0; color: var(--text-2); margin-left: 6px; }

.compass-wrap { position: relative; width: min(82vw, 340px); aspect-ratio: 1; margin: 18px auto 10px; }
.compass-wrap .dial { width: 100%; height: 100%; transition: transform .12s linear; }
.compass-wrap .lubber { position: absolute; left: 50%; top: -6px; transform: translateX(-50%); width: 0; height: 0; border-left: 11px solid transparent; border-right: 11px solid transparent; border-top: 18px solid var(--danger); z-index: 2; }
.compass-wrap .target-mark { position: absolute; inset: 0; pointer-events: none; transition: transform .12s linear; }
.dial text { font-family: var(--font-display); font-weight: 800; fill: var(--text); }
.dial .tick { stroke: var(--text-2); }
.dial .tick.major { stroke: var(--text); }

.pulse-wrap { display: grid; place-items: center; margin: 18px auto; width: min(70vw, 260px); aspect-ratio: 1; position: relative; }
.pulse {
  width: 100%; height: 100%; border-radius: 50%; display: grid; place-items: center; text-align: center;
  background: radial-gradient(circle at 50% 40%, color-mix(in srgb, var(--danger) 30%, var(--surface)), var(--surface));
  border: 2px solid color-mix(in srgb, var(--danger) 40%, var(--line));
  transition: transform .09s ease-out, box-shadow .09s;
}
.pulse.beat { transform: scale(.94); box-shadow: 0 0 0 14px color-mix(in srgb, var(--danger) 15%, transparent); }
.pulse .cnt { font-family: var(--font-display); font-size: 4.2rem; font-weight: 870; line-height: 1; letter-spacing: -.04em; }
.pulse .sub { font-size: .8rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--text-2); margin-top: 4px; }
.pulse.breath { background: radial-gradient(circle at 50% 40%, color-mix(in srgb, var(--info) 30%, var(--surface)), var(--surface)); border-color: color-mix(in srgb, var(--info) 40%, var(--line)); }

.morse-out { font-family: var(--mono); font-size: 1.25rem; letter-spacing: .08em; line-height: 1.8; word-break: break-word; min-height: 3.6em; padding: 14px 16px; border-radius: 14px; background: var(--surface-2); border: 1px dashed var(--line-2); }
.morse-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 8px; }
.morse-grid button { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 6px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); }
.morse-grid b { font-size: 1.15rem; font-weight: 820; }
.morse-grid span { font-family: var(--mono); font-size: .95rem; letter-spacing: .1em; color: var(--text-2); }
.morse-grid button.on { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, var(--surface)); }
.range { width: 100%; accent-color: var(--accent); }

.light-opts { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.light-opt { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; padding: 16px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); text-align: left; box-shadow: var(--shadow); }
.light-opt .sw { width: 34px; height: 34px; border-radius: 10px; border: 1px solid var(--line-2); }
.light-opt b { font-weight: 760; }
.light-opt span { font-size: .8rem; color: var(--muted); line-height: 1.3; }

.coord { font-family: var(--mono); font-size: 1.35rem; font-weight: 700; letter-spacing: -.01em; word-break: break-all; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; font-size: .95rem; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; font-weight: 650; text-align: right; }

.exp-item { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-top: 1px solid var(--line); }
.exp-item:first-child { border-top: 0; }
.exp-item .txt { flex: 1; min-width: 0; }
.exp-item .t { font-weight: 700; }
.exp-item .s { font-size: .82rem; color: var(--muted); }
.badge { display: inline-flex; align-items: center; padding: 3px 9px; border-radius: 999px; font-size: .74rem; font-weight: 800; white-space: nowrap; }
.badge.ok { background: color-mix(in srgb, var(--ok) 15%, transparent); color: var(--ok); }
.badge.warn { background: color-mix(in srgb, var(--warn) 18%, transparent); color: var(--warn); }
.badge.danger { background: color-mix(in srgb, var(--danger) 15%, transparent); color: var(--danger); }

.id-card { background: #fff; color: #111; border-radius: 20px; padding: 22px; max-width: 520px; margin: 0 auto; border: 3px solid #c4352b; }
.id-card h2 { color: #c4352b; font-size: 1.1rem; letter-spacing: .1em; text-transform: uppercase; display: flex; gap: 8px; align-items: center; }
.id-card .nm { font-size: 1.6rem; font-weight: 850; margin: 8px 0 14px; }
.id-card dl { display: grid; grid-template-columns: 1fr; gap: 10px; margin: 0; }
.id-card dt { font-size: .7rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: #666; }
.id-card dd { margin: 0; font-size: 1.05rem; font-weight: 650; white-space: pre-wrap; }
.id-card .blood { display: inline-block; background: #c4352b; color: #fff; font-weight: 900; padding: 2px 10px; border-radius: 8px; }

.install-card { display: flex; gap: 14px; align-items: center; }
.install-card .txt { flex: 1; }

.ref-list { list-style: none; padding: 0; margin: 0; }
.ref-list li { padding: 12px 0; border-top: 1px solid var(--line); }
.ref-list li:first-child { border-top: 0; }
.ref-list a { font-weight: 700; color: var(--accent); }
.ref-list span { display: block; font-size: .84rem; color: var(--muted); }

.footer-note { margin: 34px 2px 0; font-size: .8rem; color: var(--muted); line-height: 1.5; text-align: center; }
.footer-note a { color: var(--accent); font-weight: 650; }

/* Animações de entrada */
.view-enter { animation: enter .28s cubic-bezier(.2,.8,.2,1); }
@keyframes enter { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- Impressão ---------- */
@media print {
  body { padding: 0 !important; background: #fff; color: #000; }
  .nav, .topbar, #toast, .no-print, .art-nav, .read-progress, .add-row, .check .del { display: none !important; }
  main#view { padding: 0 !important; max-width: none; }
  .card, .rows, .tile { box-shadow: none !important; }
  .check { padding: 6px 0; }
  .prose { font-size: 11pt; }
}

/* ---------- Entrada (login com Google) ---------- */
body.logged-out { padding-left: 0 !important; }
body.logged-out .topbar, body.logged-out .nav, body.logged-out main#view { display: none !important; }
.login { min-height: 100dvh; display: grid; grid-template-columns: minmax(0, 1fr); background: var(--bg); }
.login-hero {
  position: relative; overflow: hidden; isolation: isolate; color: var(--hero-fg);
  background: radial-gradient(100% 80% at 100% 0%, var(--hero-bg-2) 0%, transparent 60%), linear-gradient(160deg, var(--hero-bg) 0%, color-mix(in srgb, var(--hero-bg) 75%, #000) 100%);
  padding: calc(28px + env(safe-area-inset-top)) 22px 30px;
}
.login-hero .topo { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; opacity: .14; stroke: var(--hero-fg); }
.login-brand { display: flex; align-items: center; gap: 12px; font-weight: 820; font-size: 1.15rem; }
.login-brand small { display: block; font-size: .64rem; letter-spacing: .13em; text-transform: uppercase; opacity: .7; font-weight: 750; }
.login-hero h1 { font-size: clamp(1.7rem, 6vw, 2.8rem); font-weight: 840; letter-spacing: -.025em; margin: 26px 0 16px; max-width: 14ch; }
.login-hero h1 em { font-style: normal; color: var(--logo-accent); }
.login-hero ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.login-hero li { display: flex; gap: 10px; align-items: center; font-weight: 600; color: color-mix(in srgb, var(--hero-fg) 88%, transparent); }
.login-hero li .i { color: var(--logo-accent); stroke-width: 3; width: 18px; height: 18px; }
.login-panel { padding: 22px 18px calc(28px + env(safe-area-inset-bottom)); display: flex; justify-content: center; }
.login-panel-in { width: 100%; max-width: 440px; }
.login-card { padding: 24px 22px; margin-top: -2px; }
.login-card h2 { font-size: 1.55rem; font-weight: 820; margin: 18px 0 6px; }
.login-card .lead { font-size: .98rem; }
.login-tabs { display: flex; width: 100%; }
.login-tabs button { flex: 1; justify-content: center; }
.gbtn {
  display: flex; align-items: center; justify-content: center; gap: 12px; width: 100%; min-height: 54px; margin-top: 20px;
  border-radius: 14px; border: 1px solid var(--line-2); background: #fff; color: #1f1f1f; font-weight: 750; font-size: 1rem;
  box-shadow: 0 1px 2px rgba(0,0,0,.08); transition: transform .12s, box-shadow .15s;
}
.gbtn:hover { box-shadow: 0 4px 14px -6px rgba(0,0,0,.25); }
.gbtn:active { transform: scale(.98); }
.gbtn[disabled] { opacity: .65; pointer-events: none; }
.login-err { margin-top: 12px; color: var(--danger); font-weight: 650; font-size: .92rem; }
.login-note { margin-top: 12px; font-size: .84rem; color: var(--muted); text-align: center; }
.login-switch { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); font-size: .92rem; color: var(--text-2); text-align: center; }
.inline-link, .link-btn { color: var(--accent); font-weight: 750; text-decoration: underline; text-underline-offset: 3px; }
.link-btn { display: block; margin: 12px auto 0; font-size: .86rem; }
.trust { list-style: none; padding: 0; margin: 18px 4px 0; display: grid; gap: 10px; }
.trust li { display: flex; gap: 10px; align-items: flex-start; font-size: .88rem; color: var(--text-2); }
.trust .i { width: 18px; height: 18px; color: var(--ok); margin-top: 1px; }
.login-foot { margin: 18px 4px 0; font-size: .78rem; color: var(--muted); line-height: 1.5; }
.login-foot a { color: var(--accent); font-weight: 650; }
@media (min-width: 900px) {
  .login { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .login-hero { display: flex; align-items: center; padding: 48px 56px; }
  .login-hero-in { max-width: 480px; margin-left: auto; }
  .login-panel { align-items: center; padding: 48px; }
}
:root[data-theme="night"] .gbtn { background: #000; color: var(--text); border-color: var(--line-2); }

/* Conta nos Ajustes */
.account { display: flex; align-items: center; gap: 14px; }
.account img, .account i { width: 46px; height: 46px; border-radius: 50%; flex: none; object-fit: cover; }
.account i { display: grid; place-items: center; font-style: normal; font-weight: 800; background: color-mix(in srgb, var(--accent) 18%, transparent); color: var(--accent); }
.account .txt { flex: 1; min-width: 0; }
.account b { display: block; }
.account span { display: block; font-size: .86rem; color: var(--muted); overflow: hidden; text-overflow: ellipsis; }
