/* =====================================================================
   Escala Sem Fronteiras — identidade do app
   Fundo quase preto com arcos de luz ciano, vidro escuro, ciano da logo
   para o Operador e laranja das capas para o Operador 7x.
   ===================================================================== */
:root {
  --bg: #020607;
  --bg-2: #071113;
  --card: rgba(12, 21, 23, .95);
  --card-solid: #0b1517;
  --card-hi: rgba(20, 34, 36, .9);
  --line: rgba(255, 255, 255, .1);
  --line-2: rgba(255, 255, 255, .16);
  --fg: #f4fafa;
  --muted: #9db0b2;
  --dim: #6c7f81;
  --cyan: #01d8e4;
  --cyan-ink: #021112;
  --orange: #ff6a13;
  --orange-ink: #1a0800;
  --danger: #ff4961;
  --accent: var(--cyan);
  --accent-ink: var(--cyan-ink);
  --display: "Bricolage Grotesque", "Arial Black", Arial, sans-serif;
  --body: "Geist", system-ui, Arial, sans-serif;
  --r: 16px;
  --r-sm: 11px;
  --nav-h: 68px;
  --side-w: 248px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  background: var(--bg);
  color: var(--fg);
  font: 15px/1.5 var(--body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
/* arcos de luz, como no fundo das peças da marca */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(circle at 112% 34%, transparent 61%, rgba(1, 216, 228, .30) 61.15%, transparent 61.6%),
    radial-gradient(circle at -6% -4%, transparent 25%, rgba(1, 216, 228, .38) 25.2%, transparent 25.7%),
    radial-gradient(60% 40% at 100% 30%, rgba(1, 216, 228, .07), transparent 70%),
    radial-gradient(50% 35% at 0% 100%, rgba(1, 216, 228, .05), transparent 70%);
  /* os arcos ficam fortes só nas bordas e somem no meio, onde está o conteúdo */
  -webkit-mask-image: linear-gradient(90deg, #000 0%, rgba(0, 0, 0, .18) 22%, rgba(0, 0, 0, .1) 50%, rgba(0, 0, 0, .18) 78%, #000 100%);
  mask-image: linear-gradient(90deg, #000 0%, rgba(0, 0, 0, .18) 22%, rgba(0, 0, 0, .1) 50%, rgba(0, 0, 0, .18) 78%, #000 100%);
}
@media (min-width: 920px) {
  body::before {
    -webkit-mask-image: linear-gradient(90deg, rgba(0, 0, 0, .15) 0%, rgba(0, 0, 0, .1) 60%, #000 100%);
    mask-image: linear-gradient(90deg, rgba(0, 0, 0, .15) 0%, rgba(0, 0, 0, .1) 60%, #000 100%);
  }
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
input, textarea, select { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
img { display: block; max-width: 100%; height: auto; }
svg.i { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.t-op { --accent: var(--cyan); --accent-ink: var(--cyan-ink); }
.t-7x { --accent: var(--orange); --accent-ink: var(--orange-ink); }

/* ---------- tipografia ---------- */
.h1, .h2, .h3 { font-family: var(--display); margin: 0; letter-spacing: -.035em; line-height: 1; }
.h1 { font-size: clamp(30px, 8.4vw, 44px); font-weight: 800; }
.h2 { font-size: 22px; font-weight: 760; letter-spacing: -.025em; }
.h3 { font-size: 16.5px; font-weight: 720; letter-spacing: -.01em; line-height: 1.2; }
.eyebrow {
  display: flex; align-items: center; gap: 10px;
  margin: 0 0 10px; color: var(--accent);
  font-size: 11.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
}
.eyebrow::before { content: ""; width: 24px; height: 1px; background: currentColor; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.accent { color: var(--accent); }

/* ---------- layout ---------- */
.shell { min-height: 100svh; }
.topbar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: calc(env(safe-area-inset-top) + 12px) 16px 12px;
  background: linear-gradient(180deg, rgba(2, 6, 7, .94), rgba(2, 6, 7, .7));
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, .05);
}
.topbar .logo { width: 150px; height: auto; }
.avatar-btn {
  width: 38px; height: 38px; border-radius: 50%;
  display: grid; place-items: center;
  border: 1px solid var(--line-2); background: var(--card);
  font-family: var(--display); font-weight: 760; font-size: 15px; color: var(--cyan);
}
.main {
  width: 100%; max-width: 1080px; margin: 0 auto;
  padding: 18px 16px calc(var(--nav-h) + env(safe-area-inset-bottom) + 28px);
}
.view { animation: rise .35s cubic-bezier(.2, .7, .2, 1) both; }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  display: grid; grid-template-columns: repeat(5, 1fr);
  height: calc(var(--nav-h) + env(safe-area-inset-bottom));
  padding: 6px 6px env(safe-area-inset-bottom);
  background: rgba(4, 10, 11, .92);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  border-top: 1px solid var(--line);
}
.tab {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  border-radius: 12px; color: var(--dim);
  font-size: 11px; font-weight: 600; letter-spacing: .01em;
  transition: color .2s;
}
.tab svg.i { width: 22px; height: 22px; }
.tab.on { color: var(--cyan); }
.tab.on svg.i { filter: drop-shadow(0 0 8px rgba(1, 216, 228, .55)); }
.sidebar { display: none; }

@media (min-width: 920px) {
  .shell { display: grid; grid-template-columns: var(--side-w) 1fr; }
  .tabbar { display: none; }
  .topbar { display: none; }
  .sidebar {
    display: flex; flex-direction: column; gap: 4px;
    position: sticky; top: 0; height: 100vh;
    padding: 28px 16px 20px;
    border-right: 1px solid var(--line);
    background: rgba(3, 9, 10, .72);
  }
  .sidebar .logo { width: 176px; margin: 0 8px 28px; }
  .side-link {
    display: flex; align-items: center; gap: 12px;
    padding: 11px 12px; border-radius: 12px;
    color: var(--muted); font-weight: 600; font-size: 14.5px;
    transition: background .2s, color .2s;
  }
  .side-link:hover { background: rgba(255, 255, 255, .04); color: var(--fg); }
  .side-link.on { background: rgba(1, 216, 228, .09); color: var(--cyan); box-shadow: inset 0 0 0 1px rgba(1, 216, 228, .2); }
  .side-foot { margin-top: auto; }
  .main { padding: 40px 40px 60px; }
}

/* ---------- blocos ---------- */
.card {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background:
    radial-gradient(circle at 8% 0%, color-mix(in srgb, var(--accent) 8%, transparent), transparent 40%),
    linear-gradient(120deg, rgba(17, 28, 30, .97), var(--card));
  box-shadow: 0 18px 50px -34px rgba(0, 0, 0, .95), inset 0 1px rgba(255, 255, 255, .06);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
}
.pad { padding: 18px; }
.stack { display: grid; gap: 12px; }
.stack-lg { display: grid; gap: 22px; }
.row { display: flex; align-items: center; gap: 12px; }
.between { justify-content: space-between; }
.wrap { flex-wrap: wrap; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin: 30px 0 12px; }
.section-head:first-child { margin-top: 0; }
.link-more { color: var(--muted); font-size: 13px; font-weight: 600; display: inline-flex; align-items: center; gap: 4px; }
.link-more:hover { color: var(--fg); }

.grid-2 { display: grid; gap: 12px; }
@media (min-width: 700px) { .grid-2 { grid-template-columns: 1fr 1fr; } }

/* botões */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 0 18px; border-radius: 12px;
  font-weight: 700; font-size: 14.5px; letter-spacing: .005em;
  border: 1px solid var(--line-2); background: rgba(255, 255, 255, .04);
  transition: transform .15s, background .2s, border-color .2s, box-shadow .2s;
}
.btn:active { transform: scale(.98); }
.btn:hover { border-color: color-mix(in srgb, var(--accent) 55%, transparent); }
.btn-primary {
  border-color: transparent; color: var(--accent-ink);
  background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 70%, white) 0%, var(--accent) 55%, color-mix(in srgb, var(--accent) 80%, black) 100%);
  box-shadow: 0 16px 40px -20px var(--accent), inset 0 1px rgba(255, 255, 255, .45);
}
.btn-primary:hover { box-shadow: 0 18px 44px -16px var(--accent), inset 0 1px rgba(255, 255, 255, .45); }
.btn-block { width: 100%; }
.btn-sm { min-height: 36px; padding: 0 12px; font-size: 13px; border-radius: 10px; }
.btn[disabled] { opacity: .5; pointer-events: none; }

.chip {
  display: inline-flex; align-items: center; gap: 6px;
  height: 26px; padding: 0 10px; border-radius: 999px;
  font-size: 11.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent);
  background: color-mix(in srgb, var(--accent) 10%, transparent);
  color: var(--accent);
  white-space: nowrap;
}
.chip svg.i { width: 14px; height: 14px; }
.chip.ghost { border-color: var(--line); background: rgba(255, 255, 255, .03); color: var(--muted); }

/* ---------- login ---------- */
.login {
  min-height: 100svh;
  display: grid; align-items: center;
  padding: calc(env(safe-area-inset-top) + 32px) 16px calc(env(safe-area-inset-bottom) + 24px);
}
.login-box { width: 100%; max-width: 420px; margin: 0 auto; }
.login .logo { width: min(250px, 66vw); margin-bottom: 40px; }
.login .h1 { margin-bottom: 12px; }
.login p.lead { color: var(--muted); margin: 0 0 26px; font-size: 15.5px; }
.field { display: grid; gap: 7px; margin-bottom: 14px; }
.field label { font-size: 12.5px; font-weight: 600; color: var(--muted); letter-spacing: .02em; }
.input {
  width: 100%; min-height: 50px; padding: 0 15px;
  border-radius: 12px; border: 1px solid var(--line-2);
  background: rgba(5, 12, 13, .82); color: var(--fg);
  font-size: 16px; outline: none;
  transition: border-color .2s, box-shadow .2s;
}
.input:focus { border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 16%, transparent); }
textarea.input { padding: 12px 14px; min-height: 90px; resize: vertical; line-height: 1.45; }
.input.code { letter-spacing: .5em; text-align: center; font-family: var(--display); font-weight: 760; font-size: 24px; }
.seg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; padding: 4px; border-radius: 13px; border: 1px solid var(--line); background: rgba(5, 12, 13, .7); }
.seg button { min-height: 40px; border-radius: 9px; font-size: 13px; font-weight: 650; color: var(--muted); }
.seg button.on { background: rgba(1, 216, 228, .12); color: var(--cyan); box-shadow: inset 0 0 0 1px rgba(1, 216, 228, .28); }
.seg.two { grid-template-columns: 1fr 1fr; }
.seg.two button.on.t-7x { background: rgba(255, 106, 19, .12); color: var(--orange); box-shadow: inset 0 0 0 1px rgba(255, 106, 19, .3); }
.demo-note {
  margin-top: 18px; padding: 12px 14px; border-radius: 12px;
  border: 1px dashed rgba(1, 216, 228, .3); color: var(--muted); font-size: 12.5px;
}
.form-error { color: var(--danger); font-size: 13px; min-height: 20px; margin: 4px 0 8px; }
.login-foot { margin-top: 30px; color: var(--dim); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }

/* ---------- início ---------- */
.hello { margin: 4px 0 22px; }
.hello .h1 span { color: var(--cyan); }
.plans { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }

.progress-card { display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: center; }
.ring { --p: 0; width: 86px; height: 86px; border-radius: 50%; display: grid; place-items: center;
  background: conic-gradient(var(--accent) calc(var(--p) * 1%), rgba(255, 255, 255, .07) 0);
  -webkit-mask: radial-gradient(circle, transparent 58%, #000 59%); mask: radial-gradient(circle, transparent 58%, #000 59%); }
.ring-wrap { position: relative; width: 86px; height: 86px; }
.ring-num { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--display); font-weight: 800; font-size: 22px; letter-spacing: -.03em; }
.bars { display: grid; gap: 10px; }
.bar-label { display: flex; justify-content: space-between; font-size: 12.5px; font-weight: 600; color: var(--muted); margin-bottom: 5px; }
.bar { height: 6px; border-radius: 99px; background: rgba(255, 255, 255, .07); overflow: hidden; }
.bar > i { display: block; height: 100%; border-radius: inherit; background: var(--accent); box-shadow: 0 0 12px var(--accent); transition: width .5s; }

.next-card { display: grid; gap: 12px; }
.next-card .h2 { font-size: 21px; line-height: 1.1; }

.quick { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
@media (min-width: 700px) { .quick { grid-template-columns: repeat(4, 1fr); } }
.quick a, .quick button {
  display: grid; gap: 10px; align-content: start; text-align: left;
  min-height: 108px; padding: 14px;
}
.q-ico { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center;
  color: var(--accent); background: color-mix(in srgb, var(--accent) 11%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 26%, transparent); }
.quick .h3 { font-size: 15px; }
.quick .small { font-size: 12px; line-height: 1.35; }

.upsell { overflow: hidden; }
.upsell::after {
  content: ""; position: absolute; right: -60px; top: -60px; width: 220px; height: 220px; border-radius: 50%;
  border: 1px solid rgba(255, 106, 19, .45); box-shadow: 0 0 40px rgba(255, 106, 19, .18); pointer-events: none;
}
.upsell .big { font-family: var(--display); font-weight: 800; font-size: 34px; letter-spacing: -.04em; line-height: .95; }
.upsell .big b { color: var(--orange); }

/* ---------- jornada ---------- */
.track-switch { margin: 0 0 18px; }
.phase { margin-bottom: 18px; }
.phase-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 0 2px 8px; }
.phase-title { font-family: var(--display); font-weight: 720; font-size: 15px; letter-spacing: -.01em; display: flex; align-items: center; gap: 10px; }
.phase-num { width: 24px; height: 24px; border-radius: 7px; display: grid; place-items: center; font-size: 12px; font-weight: 800;
  color: var(--accent); border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent); background: color-mix(in srgb, var(--accent) 9%, transparent); }
.phase-count { font-size: 12px; color: var(--dim); font-weight: 600; }
.steps { display: grid; gap: 1px; overflow: hidden; padding: 0; }
.step { display: grid; grid-template-columns: 44px 1fr; gap: 4px; padding: 14px 14px 14px 8px; background: rgba(255, 255, 255, .012); }
.step + .step { border-top: 1px solid rgba(255, 255, 255, .055); }
.check {
  width: 30px; height: 30px; margin: 1px auto 0; border-radius: 50%;
  display: grid; place-items: center;
  border: 1.6px solid var(--line-2); color: transparent;
  transition: background .2s, border-color .2s, transform .15s;
}
.check:active { transform: scale(.9); }
.check svg.i { width: 16px; height: 16px; stroke-width: 2.6; }
.step.done .check { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); box-shadow: 0 0 14px color-mix(in srgb, var(--accent) 60%, transparent); }
.step.done .step-title { color: var(--muted); text-decoration: line-through; text-decoration-color: rgba(255, 255, 255, .25); }
.step-title { font-weight: 650; font-size: 15px; line-height: 1.3; }
.step-detail { color: var(--muted); font-size: 13px; line-height: 1.45; margin-top: 3px; }
.step-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.step-actions .btn-sm { min-height: 32px; font-size: 12.5px; padding: 0 11px; gap: 6px; }
.step-actions svg.i { width: 15px; height: 15px; }

.locked {
  display: grid; gap: 14px; justify-items: start;
  padding: 22px;
}
.lock-ico { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; color: var(--accent);
  background: color-mix(in srgb, var(--accent) 11%, transparent); border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent); }

/* ---------- aulas ---------- */
.modules { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (min-width: 640px) { .modules { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1000px) { .modules { grid-template-columns: repeat(4, 1fr); } }
.module {
  position: relative; overflow: hidden; border-radius: 14px;
  border: 1px solid var(--line); background: var(--card-solid);
  aspect-ratio: 960 / 1358;
  transition: transform .2s, border-color .2s, box-shadow .2s;
}
.module img { width: 100%; height: 100% !important; object-fit: cover; }
.module::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(0, 0, 0, .85)); }
.module .m-foot { position: absolute; left: 10px; right: 10px; bottom: 10px; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.module .m-foot span { font-size: 12px; font-weight: 700; color: rgba(255, 255, 255, .85); }
.module .go { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: var(--accent-ink); }
.module .go svg.i { width: 16px; height: 16px; stroke-width: 2.4; }
.module:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--accent) 60%, transparent); box-shadow: 0 18px 40px -22px var(--accent); }
.module.is-locked img { filter: grayscale(1) brightness(.45); }
.module.is-locked .go { background: rgba(255, 255, 255, .14); color: #fff; }
.area-card { display: flex; align-items: center; gap: 14px; padding: 16px; margin-bottom: 14px; }
.area-card .grow { flex: 1; min-width: 0; }

/* ---------- prompts ---------- */
.search { position: relative; margin-bottom: 12px; }
.search svg.i { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--dim); }
.search .input { padding-left: 44px; }
.chips { display: flex; gap: 6px; overflow-x: auto; padding: 2px 0 10px; margin: 0 -16px 8px; padding-inline: 16px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chips button { flex: none; height: 34px; padding: 0 13px; border-radius: 999px; border: 1px solid var(--line); background: rgba(255, 255, 255, .025); color: var(--muted); font-size: 13px; font-weight: 600; }
.chips button.on { color: var(--accent-ink); background: var(--cyan); border-color: var(--cyan); }
.chips button.on.t-7x { background: var(--orange); border-color: var(--orange); }
.prompt-list { display: grid; gap: 10px; }
@media (min-width: 760px) { .prompt-list { grid-template-columns: 1fr 1fr; } }
.prompt { display: grid; gap: 8px; padding: 15px 15px 13px; text-align: left; width: 100%; transition: border-color .2s, transform .15s; }
.prompt:hover { border-color: color-mix(in srgb, var(--accent) 45%, transparent); }
.prompt:active { transform: scale(.995); }
.prompt .h3 { font-size: 15.5px; }
.prompt .meta { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.prompt .fav { margin-left: auto; color: var(--dim); }
.prompt .fav.on { color: #ffd34d; }
.prompt .fav.on svg.i { fill: currentColor; }
.prompt.is-locked { opacity: .62; }
.empty { padding: 30px 10px; text-align: center; color: var(--muted); }

/* ---------- sheet (detalhe de prompt / modais) ---------- */
.sheet-root { position: fixed; inset: 0; z-index: 60; display: none; }
.sheet-root.open { display: block; }
.sheet-backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, .62); backdrop-filter: blur(3px); animation: fade .2s both; }
@keyframes fade { from { opacity: 0; } }
.sheet {
  position: absolute; left: 0; right: 0; bottom: 0;
  max-height: 92svh; overflow: auto; overscroll-behavior: contain;
  padding: 10px 16px calc(env(safe-area-inset-bottom) + 18px);
  border-radius: 22px 22px 0 0; border: 1px solid var(--line-2); border-bottom: 0;
  background: linear-gradient(180deg, #0d191b, #060d0e);
  animation: up .28s cubic-bezier(.2, .8, .2, 1) both;
}
@keyframes up { from { transform: translateY(40px); opacity: 0; } }
.sheet-grab { width: 42px; height: 4px; border-radius: 9px; background: rgba(255, 255, 255, .2); margin: 2px auto 14px; }
@media (min-width: 760px) {
  .sheet { left: 50%; top: 50%; bottom: auto; width: min(720px, calc(100% - 48px)); max-height: 86vh; transform: translate(-50%, -50%); border-radius: 20px; border-bottom: 1px solid var(--line-2); padding: 24px; animation: pop .22s ease both; }
  @keyframes pop { from { opacity: 0; transform: translate(-50%, -48%); } }
  .sheet-grab { display: none; }
}
.sheet-close { position: absolute; right: 14px; top: 14px; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .06); color: var(--muted); }
.prompt-text {
  white-space: pre-wrap; word-break: break-word;
  font: 13.5px/1.6 var(--body); color: #dce7e8;
  padding: 14px; border-radius: 12px; border: 1px solid var(--line);
  background: rgba(0, 0, 0, .35); max-height: 46svh; overflow: auto;
}
.prompt-text mark { background: color-mix(in srgb, var(--accent) 18%, transparent); color: var(--accent); border-radius: 4px; padding: 0 3px; font-weight: 600; }
.prompt-text mark.filled { background: rgba(255, 255, 255, .08); color: #fff; }
.vars { display: grid; gap: 10px; }
.vars .field { margin: 0; }
.vars .input { min-height: 44px; font-size: 15px; }
.sticky-actions { position: sticky; bottom: -18px; padding: 12px 0 2px; margin-top: 12px; background: linear-gradient(180deg, transparent, #060d0e 30%); display: flex; gap: 8px; }
.sticky-actions .btn-primary { flex: 1; }

/* ---------- ferramentas ---------- */
.tool { padding: 18px; }
.tool-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.calc { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.calc .field { margin: 0; }
.calc .input { min-height: 46px; }
.result {
  margin-top: 14px; padding: 16px; border-radius: 14px;
  border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent);
  background: color-mix(in srgb, var(--accent) 7%, rgba(0, 0, 0, .3));
}
.result .big { font-family: var(--display); font-size: clamp(30px, 9vw, 40px); font-weight: 800; letter-spacing: -.04em; line-height: 1; color: var(--accent); }
.result-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 14px; }
.result-grid b { display: block; font-family: var(--display); font-size: 19px; letter-spacing: -.02em; }
.result-grid span { font-size: 12px; color: var(--muted); }
.gloss { display: grid; gap: 0; padding: 4px 16px; }
.gloss details { border-bottom: 1px solid rgba(255, 255, 255, .06); }
.gloss details:last-child { border-bottom: 0; }
.gloss summary { list-style: none; display: flex; align-items: center; justify-content: space-between; padding: 13px 0; font-weight: 650; cursor: pointer; }
.gloss summary::-webkit-details-marker { display: none; }
.gloss summary svg.i { color: var(--dim); transition: transform .2s; }
.gloss details[open] summary svg.i { transform: rotate(90deg); color: var(--accent); }
.gloss p { margin: 0 0 14px; color: var(--muted); font-size: 14px; }
.list-links { display: grid; gap: 0; padding: 4px 0; }
.list-links a, .list-links button { display: flex; align-items: center; gap: 12px; padding: 14px 16px; text-align: left; width: 100%; }
.list-links > * + * { border-top: 1px solid rgba(255, 255, 255, .06); }
.list-links .grow { flex: 1; min-width: 0; }

/* ---------- perfil ---------- */
.kv { display: grid; gap: 0; }
.kv div { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid rgba(255, 255, 255, .06); font-size: 14px; }
.kv div:last-child { border-bottom: 0; }
.kv span { color: var(--muted); }
.status-ok { color: var(--cyan); font-weight: 700; }
.status-no { color: var(--danger); font-weight: 700; }

/* ---------- avisos ---------- */
.banner-demo {
  display: inline-flex; align-items: center; gap: 6px; margin-bottom: 12px;
  padding: 4px 10px; border-radius: 99px; font-size: 11.5px; color: var(--muted);
  border: 1px dashed rgba(1, 216, 228, .3); background: rgba(1, 216, 228, .04);
}
.banner-demo b { color: var(--cyan); }
.toast {
  position: fixed; left: 50%; bottom: calc(var(--nav-h) + env(safe-area-inset-bottom) + 14px); z-index: 80;
  transform: translate(-50%, 16px); opacity: 0; pointer-events: none;
  padding: 11px 16px; border-radius: 12px; width: max-content; max-width: calc(100% - 32px);
  background: rgba(4, 12, 13, .96); border: 1px solid rgba(1, 216, 228, .35);
  font-size: 13.5px; font-weight: 600; box-shadow: 0 18px 40px rgba(0, 0, 0, .6);
  transition: opacity .2s, transform .2s;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
@media (min-width: 920px) { .toast { bottom: 28px; } }

.loading { min-height: 100svh; display: grid; place-items: center; }
.loading img { width: 120px; opacity: .9; animation: pulse 1.4s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .35; } }

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

/* =====================================================================
   v2 — instalação, avisos, Hall da Vitória, painel admin, IA ESF
   ===================================================================== */
select.input { appearance: none; -webkit-appearance: none; padding-right: 36px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239db0b2' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; background-size: 18px; }
select.input option { background: #0b1517; }
.btn-lg { min-height: 54px; font-size: 16px; }
.empty svg.i { width: 30px; height: 30px; color: var(--dim); margin: 0 auto 8px; display: block; }
.empty p { margin: 0; }
.empty.card { padding: 34px 16px; }

/* badge de avisos */
.bell { position: relative; color: var(--fg); }
.bell svg.i { width: 19px; height: 19px; }
.badge { min-width: 18px; height: 18px; padding: 0 5px; border-radius: 99px; background: var(--orange); color: #fff;
  font: 700 10.5px/18px var(--body); text-align: center; }
.bell .badge { position: absolute; top: -4px; right: -4px; box-shadow: 0 0 0 2px var(--bg); }
.side-link .badge { margin-left: auto; }
.badge[hidden] { display: none; }

/* instalação */
.install-banner { width: 100%; display: flex; align-items: center; gap: 12px; text-align: left;
  margin-bottom: 16px; padding: 10px 10px 10px 12px; border-radius: 14px;
  border: 1px solid rgba(1, 216, 228, .35); background: linear-gradient(110deg, rgba(1, 216, 228, .14), rgba(1, 216, 228, .03)); }
.install-banner img { border-radius: 10px; flex: none; }
.install-banner > span:nth-child(2) { flex: 1; display: grid; gap: 1px; }
.install-banner b { font-size: 14.5px; }
.install-banner > span:nth-child(2) span { color: var(--muted); font-size: 12.5px; }
.install-hero { display: flex; align-items: center; gap: 14px; margin: 4px 40px 16px 0; }
.install-hero img { border-radius: 18px; box-shadow: 0 12px 30px -10px rgba(1, 216, 228, .55); flex: none; }
.install-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.install-steps li { display: grid; grid-template-columns: 22px 38px 1fr; align-items: center; gap: 10px;
  padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line); background: rgba(255, 255, 255, .025); font-size: 14px; }
.install-steps .n { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 800; color: var(--cyan-ink); background: var(--cyan); }
.install-push { margin-top: 14px; padding: 14px; border-radius: 14px; border: 1px dashed rgba(1, 216, 228, .3); background: rgba(1, 216, 228, .04); }

/* avisos */
.aviso p { color: #dce7e8; font-size: 14.5px; }

/* Hall da Vitória */
.hall-cta { --accent: #ffcf4a; }
.hall-hero { position: relative; padding: 22px 18px; border-radius: 20px; overflow: hidden;
  border: 1px solid rgba(255, 207, 74, .25);
  background: radial-gradient(80% 120% at 100% 0%, rgba(255, 207, 74, .16), transparent 60%), linear-gradient(140deg, #0e1a1c, #060d0e); }
.hall-hero .eyebrow { color: #ffcf4a; }
.hall-hero .h1 span { color: #ffcf4a; }
.hall-hero .btn-primary { --accent: #ffcf4a; --accent-ink: #1d1400; }
.hall-grid { display: grid; gap: 12px; }
@media (min-width: 700px) { .hall-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) { .hall-grid { grid-template-columns: 1fr 1fr 1fr; } }
.conquista { overflow: hidden; display: flex; flex-direction: column; }
.c-img { display: block; width: 100%; max-height: 360px; overflow: hidden; background: #000; border-bottom: 1px solid var(--line); }
.c-img img { width: 100%; height: 100%; max-height: 360px; object-fit: cover; object-position: top; }
.c-body { padding: 14px; }
.c-texto { margin: 10px 0 12px; font-size: 14.5px; line-height: 1.5; white-space: pre-wrap; color: #e3eced; }
.c-autor { display: flex; align-items: center; gap: 8px; font-size: 13.5px; }
.c-av { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 800; color: #1d1400; background: #ffcf4a; }
.conquista .chip { --accent: #ffcf4a; }
.status-pill { font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 99px; }
.s-pendente { color: #ffd34d; background: rgba(255, 211, 77, .1); }
.s-aprovado { color: var(--cyan); background: rgba(1, 216, 228, .1); }
.s-recusado { color: var(--danger); background: rgba(255, 73, 97, .1); }
.zoom-img { width: 100%; height: auto; max-height: 80svh; object-fit: contain; border-radius: 12px; margin-top: 30px; }
.upload { display: grid; place-items: center; min-height: 150px; border-radius: 14px; cursor: pointer; overflow: hidden;
  border: 1.5px dashed rgba(255, 207, 74, .45); background: rgba(255, 207, 74, .04); }
.upload-empty { display: grid; justify-items: center; gap: 4px; padding: 20px; text-align: center; }
.upload-empty svg.i { width: 30px; height: 30px; color: #ffcf4a; }
.upload img { width: 100%; max-height: 260px; object-fit: contain; }
.warn { display: flex; gap: 8px; align-items: flex-start; margin: 0; color: #ffd34d; }
.warn svg.i { width: 16px; height: 16px; margin-top: 2px; }
.wrap-chips { flex-wrap: wrap; overflow: visible; margin: 0; padding: 0; }
.wrap-chips button.on { color: #1d1400; background: #ffcf4a; border-color: #ffcf4a; }

/* painel admin */
.seg-a { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; border-radius: 9px; font-size: 13.5px; font-weight: 650; color: var(--muted); }
.seg-a svg.i { width: 17px; height: 17px; }
.seg-a.on { background: rgba(1, 216, 228, .12); color: var(--cyan); box-shadow: inset 0 0 0 1px rgba(1, 216, 228, .28); }
.push-preview { display: flex; gap: 12px; align-items: center; padding: 12px; border-radius: 14px; background: rgba(255, 255, 255, .92); color: #111; }
.push-preview img { border-radius: 8px; }
.push-preview div { display: grid; gap: 1px; min-width: 0; }
.push-preview b { font-size: 14px; }
.push-preview span { font-size: 13px; color: #444; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }

/* IA ESF */
.chat { display: flex; flex-direction: column; min-height: calc(100svh - 170px - env(safe-area-inset-bottom)); }
.chat-head { padding: 14px; position: sticky; top: calc(env(safe-area-inset-top) + 66px); z-index: 5; background: #0b1618; backdrop-filter: none; -webkit-backdrop-filter: none; }
.chat-head::before { content: ""; position: absolute; left: -16px; right: -16px; bottom: 100%; height: 20px; background: var(--bg); }
@media (min-width: 920px) { .chat { min-height: calc(100vh - 100px); } .chat-head { top: 16px; } }
.ia-ico { background: linear-gradient(135deg, rgba(1, 216, 228, .3), rgba(1, 216, 228, .06)); }
.creditos { margin-top: 12px; padding-top: 12px; border-top: 1px solid rgba(255, 255, 255, .06); }
.creditos .bar { margin-top: 7px; }
.creditos .link-more { color: var(--cyan); }
.creditos .link-more svg.i { width: 14px; height: 14px; }
.hide-sm { margin-left: 6px; }
@media (max-width: 480px) { .hide-sm { display: none; } }
.chat-msgs { flex: 1; display: flex; flex-direction: column; gap: 10px; padding: 16px 0; }
.msg { max-width: 88%; padding: 11px 14px; border-radius: 16px; font-size: 14.5px; line-height: 1.55; position: relative; word-wrap: break-word; }
.msg.user { align-self: flex-end; background: var(--cyan); color: var(--cyan-ink); border-bottom-right-radius: 5px; font-weight: 500; }
.msg.assistant { align-self: flex-start; background: var(--card-hi); border: 1px solid var(--line); border-bottom-left-radius: 5px; }
.msg p { margin: 0 0 8px; } .msg p:last-child { margin-bottom: 0; }
.msg ul { margin: 4px 0 8px; padding-left: 18px; } .msg li { margin: 3px 0; }
.msg b { color: #fff; }
.custo { display: block; margin-top: 6px; font-size: 11px; color: var(--dim); }
.dots { display: inline-flex; gap: 4px; padding: 4px 0; }
.dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--muted); animation: pulse 1s infinite; }
.dots i:nth-child(2) { animation-delay: .15s; } .dots i:nth-child(3) { animation-delay: .3s; }
.chat-vazio { padding: 18px 2px; }
.chat-vazio .h2 { margin-bottom: 6px; }
.sugestoes { display: grid; gap: 8px; margin-top: 14px; }
.sugestoes button { text-align: left; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); background: rgba(255, 255, 255, .03); font-size: 14px; color: #dce7e8; transition: border-color .2s; }
.sugestoes button:hover { border-color: rgba(1, 216, 228, .45); }
.sem-credito { border-color: rgba(255, 106, 19, .4); --accent: var(--orange); --accent-ink: var(--orange-ink); }
.composer { position: sticky; bottom: calc(var(--nav-h) + env(safe-area-inset-bottom) + 8px); display: flex; gap: 8px; align-items: flex-end;
  padding: 8px; border-radius: 18px; border: 1px solid var(--line-2); background: rgba(8, 16, 17, .95); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
@media (min-width: 920px) { .composer { bottom: 16px; } }
.composer textarea { flex: 1; min-height: 42px; max-height: 140px; resize: none; border: 0; outline: none; background: none; padding: 10px 8px; font-size: 16px; line-height: 1.4; color: var(--fg); }
.composer textarea:disabled { opacity: .5; }
.send { width: 44px; min-height: 44px; padding: 0; border-radius: 13px; flex: none; }
.chat-foot { text-align: center; font-size: 11.5px; color: var(--dim); margin: 8px 0 0; }
/* =====================================================================
   v3 — over-delivery
   ===================================================================== */
@media (min-width: 920px) { .sidebar { overflow-y: auto; scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, .12) transparent; } }
.side-grupo { margin: 14px 12px 4px; font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--dim); }
.seg.quatro { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 520px) { .seg.quatro { grid-template-columns: 1fr 1fr; } }
.icon-btn { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 8px; color: var(--muted); }
.icon-btn:hover { background: rgba(255, 255, 255, .06); color: var(--fg); }

/* números (tiles) */
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (min-width: 760px) { .tiles { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1000px) { #adm .tiles { grid-template-columns: repeat(4, 1fr); } }
.tile { padding: 14px; border-radius: 14px; border: 1px solid var(--line); background: var(--card); display: grid; gap: 4px; }
.tile span { font-size: 12px; color: var(--muted); font-weight: 600; }
.tile b { font-family: var(--display); font-size: 22px; letter-spacing: -.02em; line-height: 1.1; }
.tile em { font-style: normal; font-size: 11.5px; color: var(--dim); }

/* gráfico de lucro */
.grafico { position: relative; margin-top: 12px; }
.grafico svg { width: 100%; height: auto; display: block; overflow: visible; }
.g-base { stroke: rgba(255, 255, 255, .18); stroke-width: 1; }
.b-pos { fill: var(--cyan); }
.b-neg { fill: #ff7a85; }
.g-eixo { fill: var(--dim); font: 500 10px var(--body); text-anchor: middle; }
.g-hit { fill: transparent; cursor: pointer; }
.g-hit.on { fill: rgba(255, 255, 255, .05); }
.g-tip { position: absolute; top: -6px; transform: translate(-50%, -100%); pointer-events: none; z-index: 2;
  display: grid; gap: 2px; padding: 8px 10px; border-radius: 10px; white-space: nowrap;
  background: #0e1b1d; border: 1px solid var(--line-2); box-shadow: 0 10px 30px rgba(0, 0, 0, .5); font-size: 12px; color: var(--muted); }
.g-tip b { color: var(--fg); font-size: 12.5px; }
.g-tip strong { color: var(--fg); }

/* tabelas */
.tabela { overflow-x: auto; padding: 4px 0; }
.tabela table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.tabela th { text-align: left; font-size: 11.5px; font-weight: 700; color: var(--dim); text-transform: uppercase; letter-spacing: .06em; padding: 10px 12px; }
.tabela td { padding: 10px 12px; border-top: 1px solid rgba(255, 255, 255, .06); white-space: nowrap; }
@media (max-width: 480px) { .tabela th, .tabela td { padding: 9px 7px; font-size: 12.5px; } }
.tabela td.pos { color: var(--cyan); font-weight: 650; }
.tabela td.neg { color: #ff7a85; font-weight: 650; }

/* diário */
.streak { display: flex; align-items: center; gap: 16px; }
.streak-num { width: 64px; height: 64px; border-radius: 18px; display: grid; place-items: center; flex: none;
  font: 800 30px var(--display); color: var(--cyan-ink); background: linear-gradient(135deg, #5af5fc, var(--cyan)); box-shadow: 0 12px 30px -12px var(--cyan); }
.streak b { display: block; font-size: 17px; }
.diario-item p { margin: 6px 0 0; white-space: pre-wrap; }

/* medalhas */
.medalhas { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
@media (min-width: 640px) { .medalhas { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1000px) { .medalhas { grid-template-columns: repeat(4, 1fr); } }
.medalha-card { display: grid; justify-items: center; gap: 4px; padding: 16px 10px; text-align: center; border-radius: 16px;
  border: 1px solid var(--line); background: var(--card); transition: transform .15s, border-color .2s; }
.medalha-card:hover { transform: translateY(-2px); border-color: rgba(1, 216, 228, .4); }
.medalha-card b { font-size: 14px; margin-top: 6px; }
.medalha-card span { font-size: 12px; color: var(--muted); line-height: 1.35; }
.medalha-card.bloq b { color: var(--muted); }
.medalha { width: 84px; height: 84px; }
.m-anel { fill: none; stroke: rgba(255, 255, 255, .12); stroke-width: 5; }
.m-fundo { fill: rgba(255, 255, 255, .03); }
.m-icone { fill: none; stroke: var(--dim); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.m-cadeado circle { fill: #1a2527; stroke: none; }
.m-cadeado path, .m-cadeado rect { fill: none; stroke: var(--muted); stroke-width: 2.2; }
.medalha.on .m-anel { stroke: var(--cyan); filter: drop-shadow(0 0 6px rgba(1, 216, 228, .7)); }
.medalha.on .m-fundo { fill: rgba(1, 216, 228, .1); }
.medalha.on .m-icone { stroke: var(--cyan); }
.medalha.on.m7x .m-anel, .medalha.on.m7x .m-icone { stroke: var(--orange); }
.medalha.on.m7x .m-fundo { fill: rgba(255, 106, 19, .1); }
.card-preview { width: 100%; max-height: 56svh; object-fit: contain; border-radius: 14px; border: 1px solid var(--line); }

/* criativos */
.chips button.on.t-7x { color: var(--orange-ink); }

/* agenda */
.evento { display: flex; gap: 14px; align-items: flex-start; }
.ev-data { width: 56px; flex: none; border-radius: 12px; padding: 8px 0; text-align: center; display: grid;
  border: 1px solid rgba(1, 216, 228, .3); background: rgba(1, 216, 228, .07); }
.ev-data b { font: 800 22px/1 var(--display); color: var(--cyan); }
.ev-data span { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-top: 3px; }
.evento.ao-vivo { border-color: rgba(255, 73, 97, .5); }

/* certificado */
.cert-wrap { overflow-x: auto; }
.certificado { position: relative; aspect-ratio: 1.414; min-width: 560px; padding: 5% 7%; border-radius: 6px; text-align: center;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  background: radial-gradient(60% 70% at 100% 0%, rgba(1, 216, 228, .14), transparent 60%), #040a0b;
  border: 2px solid var(--accent); box-shadow: inset 0 0 0 8px #040a0b, inset 0 0 0 9px rgba(255, 255, 255, .12); color: #f4fafa; }
.cert-logo { width: 34%; margin-bottom: 4%; }
.cert-tit { margin: 0; font: 700 13px var(--body); letter-spacing: .2em; text-transform: uppercase; color: var(--accent); }
.cert-txt { margin: 0; color: #c9d6d7; font-size: 14px; line-height: 1.6; }
.cert-nome { margin: 6px 0 8px; font: 800 clamp(26px, 4vw, 40px)/1.1 var(--display); letter-spacing: -.02em; }
.cert-rodape { width: 100%; margin-top: 7%; display: grid; grid-template-columns: 1fr 1fr 1fr; align-items: end; font-size: 12px; color: #8ea1a3; }
.cert-ass { border-top: 1px solid rgba(255, 255, 255, .3); padding-top: 6px; color: #f4fafa; font-weight: 700; }
.cert-ass em { font-style: normal; font-weight: 500; color: #8ea1a3; }
@media print {
  @page { size: A4 landscape; margin: 0; }
  body.imprimir-cert { background: #040a0b !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  body.imprimir-cert::before, body.imprimir-cert .sidebar, body.imprimir-cert .topbar, body.imprimir-cert .tabbar,
  body.imprimir-cert .toast, body.imprimir-cert #view > *:not(.cert-wrap) { display: none !important; }
  body.imprimir-cert .main { padding: 0 !important; max-width: none; }
  body.imprimir-cert .shell { display: block; }
  body.imprimir-cert .certificado { width: 100vw; height: 100vh; min-width: 0; border-radius: 0; aspect-ratio: auto; }
}

/* indique e ganhe */
.indique { border-color: rgba(1, 216, 228, .3); background: radial-gradient(80% 120% at 100% 0%, rgba(1, 216, 228, .18), transparent 60%), linear-gradient(140deg, #0e1a1c, #060d0e); }
.indique .eyebrow, .indique .h1 span { color: var(--cyan); }
.codigo { font: 800 30px var(--display); letter-spacing: .04em; color: var(--cyan); margin: 4px 0 12px; }
.link-box { padding: 10px 12px; border-radius: 10px; border: 1px dashed var(--line-2); font-size: 12.5px; color: var(--muted); word-break: break-all; }

/* pesquisa semanal */
.pesquisa { display: grid; gap: 10px; }
.notas { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.notas button { height: 46px; border-radius: 12px; border: 1px solid var(--line-2); font: 800 18px var(--display); color: var(--muted); }
.notas button.on { background: var(--cyan); color: var(--cyan-ink); border-color: var(--cyan); }

/* upsell */
.lista-check { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.lista-check li { display: flex; gap: 10px; align-items: center; font-weight: 600; }
.lista-check svg.i { color: var(--orange); flex: none; }

/* destaque do mês */
.destaque { margin-bottom: 14px; }
.destaque .conquista { border-color: rgba(255, 207, 74, .55); box-shadow: 0 0 0 1px rgba(255, 207, 74, .25), 0 20px 50px -30px rgba(255, 207, 74, .6); }
.destaque .eyebrow { color: #ffcf4a; }
.destaque .eyebrow svg.i { width: 14px; height: 14px; }
.top-mes { margin-bottom: 14px; }
.top-mes ol { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 8px; }
.top-mes li { display: grid; grid-template-columns: 28px 1fr auto; align-items: center; gap: 10px; }
.top-mes .pos { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 13px; color: #1d1400; background: #ffcf4a; }
.top-mes li:nth-child(n+2) .pos { background: rgba(255, 207, 74, .18); color: #ffcf4a; }

/* IA: anexar print */
.composer { flex-wrap: wrap; }
.anexar { width: 40px; height: 42px; display: grid; place-items: center; border-radius: 12px; color: var(--muted); cursor: pointer; flex: none; }
.anexar:hover { color: var(--cyan); background: rgba(1, 216, 228, .08); }
.anexo { position: relative; width: 100%; display: flex; }
.anexo img { height: 64px; border-radius: 10px; border: 1px solid var(--line-2); }
.anexo button { position: absolute; left: 4px; top: 4px; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: rgba(0, 0, 0, .7); }
.anexo button svg.i { width: 13px; height: 13px; }
.anexo[hidden] { display: none; }
.tag-anexo { display: inline-flex; align-items: center; gap: 4px; font-size: 11.5px; font-weight: 700; opacity: .75; margin-bottom: 4px; }
.tag-anexo svg.i { width: 14px; height: 14px; }
.msg.user .tag-anexo { display: flex; }
.ouvir { margin: -4px 0 14px; }
/* =====================================================================
   v4 — Início mais limpo + tutorial guiado
   ===================================================================== */
.hello { margin: 2px 0 16px; }
.hello .h1 { font-size: clamp(28px, 7.6vw, 40px); }
.hello-prog { display: grid; gap: 10px; margin-top: 14px; }
.next-card { padding: 20px 18px; border-color: color-mix(in srgb, var(--accent) 35%, transparent); }
.atalhos { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 14px; }
.atalhos a, .atalhos button { display: grid; justify-items: center; gap: 7px; padding: 12px 4px; border-radius: 14px;
  border: 1px solid var(--line); background: var(--card); font-size: 12.5px; font-weight: 650; color: #dce7e8; }
.atalhos a:hover, .atalhos button:hover { border-color: rgba(1, 216, 228, .4); }
.hoje a { padding: 12px 14px; }
.upsell-mini { width: 100%; display: flex; align-items: center; gap: 12px; padding: 12px 14px; margin-top: 14px; text-align: left; }
.upsell-mini .grow { display: grid; }
.upsell-mini b { color: var(--orange); }
.passo-de { margin: 12px 0 0; text-align: center; font-size: 12px; color: var(--dim); }

/* convite */
.tour-convite { text-align: center; padding: 10px 4px 4px; }
.tour-ico { width: 64px; height: 64px; border-radius: 20px; margin: 6px auto 0; }
.tour-ico svg.i { width: 28px; height: 28px; }
.tour-convite .eyebrow { justify-content: center; }
.tour-convite .eyebrow::before { display: none; }

/* tour */
.tour { position: fixed; inset: 0; z-index: 100; }
.tour-bloq { position: absolute; inset: 0; }
.tour-luz { position: fixed; border-radius: 16px; pointer-events: none; border: 2px solid var(--cyan);
  box-shadow: 0 0 0 9999px rgba(1, 4, 5, .8), 0 0 24px rgba(1, 216, 228, .55);
  transition: top .35s cubic-bezier(.2, .8, .2, 1), left .35s cubic-bezier(.2, .8, .2, 1), width .35s, height .35s; }
.tour-luz.sem-alvo { top: 50% !important; left: 50% !important; width: 0 !important; height: 0 !important; border-color: transparent; box-shadow: 0 0 0 9999px rgba(1, 4, 5, .82); }
.tour-card { position: fixed; z-index: 2; padding: 16px; border-radius: 18px; background: #0d1a1c; border: 1px solid rgba(1, 216, 228, .35);
  box-shadow: 0 24px 60px rgba(0, 0, 0, .6); transition: top .35s cubic-bezier(.2, .8, .2, 1), left .35s cubic-bezier(.2, .8, .2, 1); animation: fade .25s both; }
.tour-card.centro { top: 50% !important; left: 50% !important; width: min(360px, calc(100% - 32px)) !important; transform: translate(-50%, -50%); }
.tour-card .h3 { font-size: 18px; margin: 6px 0 6px; }
.tour-card p { margin: 0; color: #c9d6d7; font-size: 14.5px; line-height: 1.5; }
.tour-topo { display: flex; justify-content: space-between; align-items: center; }
.tour-n { font-size: 11.5px; font-weight: 700; letter-spacing: .08em; color: var(--cyan); }
.tour-x { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; color: var(--muted); }
.tour-x svg.i { width: 16px; height: 16px; }
.tour-pontos { display: flex; gap: 5px; margin: 14px 0 12px; }
.tour-pontos i { width: 6px; height: 6px; border-radius: 9px; background: rgba(255, 255, 255, .18); transition: width .25s; }
.tour-pontos i.on { width: 18px; background: var(--cyan); }
.tour-acoes { display: flex; justify-content: space-between; gap: 8px; }
/* =====================================================================
   v5 — Comunidade: perfil, pontos, ranking, contribuições, tira-dúvidas
   ===================================================================== */
/* avatares */
.av { display: inline-grid; place-items: center; flex: none; border-radius: 50%; object-fit: cover; background: #12242a; }
.av-letra { font: 800 14px var(--display); color: var(--cyan); border: 1px solid rgba(1, 216, 228, .3); background: rgba(1, 216, 228, .08); }
.av-sm { width: 34px; height: 34px; font-size: 13px; }
.av-top { width: 36px; height: 36px; }
.avatar-btn:has(img.av-top) { padding: 0; overflow: hidden; }
.av-lg { width: 64px; height: 64px; font-size: 24px; }
.av-xl { width: 112px; height: 112px; font-size: 40px; }
.av-podio { width: 56px; height: 56px; font-size: 20px; border: 2px solid var(--line-2); }
.av.gui { color: #1d1400; background: #ffcf4a; border-color: #ffcf4a; }

/* perfil */
.perfil-form { text-align: center; }
.perfil-form .eyebrow { justify-content: center; }
.perfil-form .eyebrow::before { display: none; }
.perfil-form .field { text-align: left; }
.foto-up { position: relative; display: inline-block; cursor: pointer; }
.foto-circ .av-xl { box-shadow: 0 0 0 3px #0d191b, 0 0 0 5px rgba(1, 216, 228, .55); }
.foto-btn { position: absolute; right: 2px; bottom: 2px; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center;
  background: var(--cyan); color: var(--cyan-ink); box-shadow: 0 6px 16px rgba(0, 0, 0, .5); }
.foto-btn svg.i { width: 18px; height: 18px; }
.perfil-topo { display: flex; align-items: center; gap: 14px; margin: 4px 0 16px; }

/* pontos */
.pts-chip { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; padding: 6px 10px 6px 8px; border-radius: 99px;
  font-size: 13px; color: var(--fg); border: 1px solid rgba(255, 207, 74, .35); background: rgba(255, 207, 74, .07); }
.pts-chip svg.i { width: 16px; height: 16px; color: #ffcf4a; }
.pts-chip b { color: #ffcf4a; }
.step-pts { display: inline-block; margin-left: 4px; padding: 1px 6px; border-radius: 99px; font-size: 11px; font-weight: 700; color: #ffcf4a; background: rgba(255, 207, 74, .1); vertical-align: 1px; }
.step.done .step-pts { opacity: .5; }

/* abas da Comunidade e do admin */
.com-abas { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; padding: 4px; margin: 0 0 18px; border-radius: 14px; border: 1px solid var(--line); background: rgba(5, 12, 13, .85); }
.com-abas a { display: grid; justify-items: center; gap: 3px; padding: 8px 2px; border-radius: 10px; font-size: 11.5px; font-weight: 650; color: var(--muted); }
.com-abas a svg.i { width: 19px; height: 19px; }
.com-abas a.on { background: rgba(1, 216, 228, .12); color: var(--cyan); box-shadow: inset 0 0 0 1px rgba(1, 216, 228, .28); }
.adm-abas { grid-template-columns: repeat(5, 1fr); }
.com-hero { padding: 18px; border-radius: 18px; border: 1px solid rgba(1, 216, 228, .25); background: radial-gradient(80% 120% at 100% 0%, rgba(1, 216, 228, .14), transparent 60%), #0b1618; }

/* ranking */
.podio-card { padding-bottom: 0; overflow: hidden; }
.podio { display: grid; grid-template-columns: 1fr 1.1fr 1fr; align-items: end; gap: 8px; margin-top: 14px; }
.podio-item { display: grid; justify-items: center; gap: 4px; text-align: center; min-width: 0; }
.podio-item b { font-size: 13px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.podio-item .pts { font-size: 12px; color: #ffcf4a; font-weight: 700; }
.degrau { width: 100%; margin-top: 6px; border-radius: 12px 12px 0 0; display: grid; place-items: center; font: 800 20px var(--display);
  color: var(--muted); background: linear-gradient(180deg, rgba(255, 255, 255, .08), rgba(255, 255, 255, .02)); border: 1px solid var(--line); border-bottom: 0; }
.p1 .degrau { height: 84px; color: #1d1400; background: linear-gradient(180deg, #ffd96b, #e0a923); border-color: transparent; }
.p2 .degrau { height: 62px; }
.p3 .degrau { height: 46px; }
.p1 .av-podio { width: 68px; height: 68px; border-color: #ffcf4a; box-shadow: 0 0 22px rgba(255, 207, 74, .45); }
.podio-item.eu b { color: var(--cyan); }
.podio-item.vazio .degrau { opacity: .4; }
.eu-card { display: flex; align-items: center; gap: 12px; margin: 12px 0; padding: 12px 14px; border-radius: 14px;
  border: 1px solid rgba(1, 216, 228, .4); background: rgba(1, 216, 228, .08); }
.eu-card .grow { display: grid; }
.premios { margin-bottom: 12px; border-color: rgba(255, 207, 74, .35); }
.premios .h3 { display: flex; align-items: center; gap: 8px; color: #ffcf4a; }
.premios ul { margin: 10px 0 0; padding-left: 18px; display: grid; gap: 6px; }
.rank-lista { padding: 4px 0; margin-bottom: 12px; }
.rank-linha { display: flex; align-items: center; gap: 12px; padding: 10px 14px; }
.rank-linha + .rank-linha { border-top: 1px solid rgba(255, 255, 255, .05); }
.rank-linha .pos { width: 30px; font-weight: 800; color: var(--muted); font-size: 13px; }
.rank-linha .pts { font-weight: 800; color: #ffcf4a; font-size: 14px; }
.rank-linha.eu { background: rgba(1, 216, 228, .07); }
.rank-linha .grow { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; }
.como-pontuar summary { list-style: none; display: flex; justify-content: space-between; align-items: center; cursor: pointer; }
.como-pontuar summary::-webkit-details-marker { display: none; }
.como-pontuar[open] summary svg.i { transform: rotate(90deg); }
.como-pontuar ul { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 8px; }
.como-pontuar li { display: flex; justify-content: space-between; gap: 10px; font-size: 14px; color: #c9d6d7; }
.como-pontuar li b { color: #ffcf4a; }

/* contribuições e dúvidas */
.autor { display: flex; align-items: center; gap: 10px; }
.autor .grow { display: grid; min-width: 0; flex: 1; }
.autor .grow b { font-size: 14px; }
.contrib-txt { margin: 0; white-space: pre-wrap; color: #dce7e8; font-size: 14.5px; line-height: 1.55; }
.util { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; border-radius: 99px; border: 1px solid var(--line-2); font-size: 13px; font-weight: 650; color: var(--muted); }
.util svg.i { width: 15px; height: 15px; }
.util.on { color: var(--cyan-ink); background: var(--cyan); border-color: var(--cyan); }
.util[disabled] { opacity: .55; cursor: default; }
.pergunta { margin: 12px 0 0; font-size: 15.5px; font-weight: 600; line-height: 1.45; }
.duvida.respondida { border-color: rgba(255, 207, 74, .28); }
.resposta-audio { margin-top: 12px; padding: 12px; border-radius: 14px; background: rgba(255, 207, 74, .06); border: 1px solid rgba(255, 207, 74, .2); }
.resposta-audio audio { width: 100%; height: 40px; }
.resposta-texto { margin-top: 10px; }
.resposta-texto summary { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; font-size: 13.5px; font-weight: 650; color: var(--cyan); list-style: none; }
.resposta-texto summary::-webkit-details-marker { display: none; }
.resposta-texto summary svg.i { width: 16px; height: 16px; }
.md { margin-top: 10px; font-size: 14.5px; line-height: 1.6; color: #dce7e8; }
.md p { margin: 0 0 8px; } .md ul { margin: 4px 0 8px; padding-left: 18px; }

/* gravador (admin) */
.pergunta-grande { margin: 6px 0 6px; font: 700 18px/1.35 var(--display); letter-spacing: -.01em; }
.gravador { display: flex; align-items: center; gap: 16px; padding: 14px; border-radius: 16px; border: 1px solid var(--line-2); background: rgba(0, 0, 0, .25); }
.gravador > div { display: grid; }
.gravador b { font: 800 26px var(--display); letter-spacing: -.02em; }
.rec-btn { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; flex: none; border: 3px solid rgba(255, 73, 97, .5); }
.rec-btn span { width: 26px; height: 26px; border-radius: 50%; background: var(--danger); transition: border-radius .2s, transform .2s; }
.rec-btn.on { animation: pulso 1.4s infinite; }
.rec-btn.on span { border-radius: 6px; transform: scale(.85); }
@keyframes pulso { 50% { box-shadow: 0 0 0 10px rgba(255, 73, 97, .15); } }
#rec-prev { width: 100%; margin-top: 12px; }
.arquivo-audio { display: block; margin-top: 10px; cursor: pointer; }
/* ---------- v6: login só com e-mail + Acessos (admin) ---------- */
.form-aviso { margin: 0 0 14px; padding: 11px 13px; border-radius: var(--r-sm); border: 1px solid rgba(1, 216, 228, .35); background: rgba(1, 216, 228, .07); font-size: 14px; color: var(--fg); }
.ellipsis { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acesso-item { width: 100%; text-align: left; color: inherit; font: inherit; cursor: pointer; }
.acesso-item:hover { border-color: rgba(1, 216, 228, .35); }
.tag-st { flex: none; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; border: 1px solid var(--line); color: var(--muted); }
.tag-st.ok { color: var(--cyan); border-color: rgba(1, 216, 228, .4); background: rgba(1, 216, 228, .08); }
.tag-st.no { color: var(--danger); border-color: rgba(255, 73, 97, .4); background: rgba(255, 73, 97, .08); }
.linha-tempo { display: grid; gap: 2px; border-left: 2px solid var(--line); margin-left: 4px; }
.lt-item { position: relative; padding: 6px 0 6px 14px; display: grid; gap: 2px; font-size: 13.5px; }
.lt-item::before { content: ""; position: absolute; left: -6px; top: 11px; width: 10px; height: 10px; border-radius: 50%; background: var(--dim); }
.lt-item.ok::before { background: var(--cyan); }
.lt-item.no::before { background: var(--danger); }
.lt-item .muted { font-size: 12.5px; }
/* ---------- v7: Materiais (mapas mentais, ferramentas, arquivos) ---------- */
.mat-lista .mat-item { display: flex; align-items: center; gap: 12px; width: 100%; padding: 14px 16px; background: none; border: 0; border-bottom: 1px solid var(--line); color: inherit; font: inherit; text-align: left; cursor: pointer; }
.mat-lista .mat-item:last-child { border-bottom: 0; }
.mat-lista .mat-item:hover { background: rgba(255, 255, 255, .03); }
.mat-desc { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ferr-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.ferr { display: flex; flex-direction: column; }
.ferr .btn { margin-top: auto; }
.ferr .small svg.i { width: 13px; height: 13px; vertical-align: -2px; }