@font-face { font-family: "Archivo Black"; src: url("../fonts/archivo-black-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/inter-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/inter-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/inter-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/inter-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --bg: #F5F1E8;
  --surface: #FFFDF8;
  --surface-2: #EFE9DC;
  --ink: #15142B;
  --muted: #5F5C71;
  --line: #E2DACB;
  --brand: #2F2DB3;
  --peri: #6584F5;
  --dark: #0B0B12;
  --dark-2: #181826;
  --amarelo: #F4E38E;
  --rosa: #F3C6DF;
  --verde: #CFDDA6;
  --azul: #C8D3FB;
  --ok: #3E7C4A;
  --warn: #9A5B00;
  --radius: 22px;
  --radius-sm: 14px;
  --display: "Archivo Black", "Arial Black", system-ui, sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--body); font-size: 16px; line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
#app { max-width: 560px; margin: 0 auto; min-height: 100vh; min-height: 100dvh; position: relative; }
h1, h2, h3 { margin: 0; line-height: 1.12; }
h1, .display { font-family: var(--display); font-weight: 400; letter-spacing: -0.02em; }
h2 { font-family: var(--display); font-weight: 400; font-size: 26px; letter-spacing: -0.015em; }
h3 { font-size: 17px; font-weight: 700; }
p { margin: 0 0 12px; }
a { color: var(--brand); }
button { font: inherit; color: inherit; cursor: pointer; }
input, textarea, select { font: inherit; color: var(--ink); }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.tiny { font-size: 12.5px; }
.mono, code { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 0.92em; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- Layout ---------- */
.page { padding: calc(16px + var(--safe-t)) 16px calc(120px + var(--safe-b)); }
.stack > * + * { margin-top: 14px; }
.stack-lg > * + * { margin-top: 22px; }
.row { display: flex; gap: 10px; align-items: center; }
.row.wrap { flex-wrap: wrap; }
.between { justify-content: space-between; }
.grow { flex: 1; }

/* ---------- Top bar ---------- */
.topbar { display: flex; align-items: center; gap: 10px; padding: calc(12px + var(--safe-t)) 16px 8px; position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.icon-btn { width: 42px; height: 42px; border-radius: 50%; border: 1.5px solid var(--line); background: var(--surface); display: grid; place-items: center; flex: none; }
.icon-btn svg { width: 20px; height: 20px; }
.topbar .label { font-weight: 600; font-size: 14px; color: var(--muted); }
.saved { font-size: 12.5px; color: var(--ok); opacity: 0; transition: opacity .3s; white-space: nowrap; }
.saved.on { opacity: 1; }
.dots { display: flex; gap: 5px; margin-left: auto; }
.dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--line); display: block; }
.dots i.on { background: var(--ink); width: 18px; border-radius: 6px; }
.dots i.past { background: var(--muted); }

/* ---------- Hero / covers ---------- */
.hero {
  position: relative; overflow: hidden; background: var(--dark); color: #fff;
  border-radius: 0 0 32px 32px; padding: calc(28px + var(--safe-t)) 22px 30px; margin: 0 0 6px;
}
.hero .circle { position: absolute; width: 120px; height: 120px; border-radius: 50%; background: var(--peri); top: -38px; right: 34px; }
.hero .tri { position: absolute; right: -60px; top: -40px; width: 160px; height: 260px; background: var(--peri); transform: rotate(-38deg); opacity: .95; }
.hero .waves { position: absolute; inset: auto 0 0 0; width: 100%; height: 70%; opacity: .32; pointer-events: none; }
.hero > *:not(.circle):not(.tri):not(.waves) { position: relative; }
.hero .logo { width: 132px; height: auto; display: block; margin-bottom: 18px; }
.hero h1 { font-size: 30px; }
.hero p { color: #D9DAF0; }
.cover { min-height: 100vh; min-height: 100dvh; border-radius: 0; display: flex; flex-direction: column; padding-bottom: calc(28px + var(--safe-b)); }
.cover .num { font-family: var(--display); font-size: 120px; line-height: .9; color: var(--peri); letter-spacing: -0.04em; margin-top: auto; }
.cover h1 { font-size: 36px; margin: 6px 0 14px; }
.cover .take { background: rgba(24,24,38,.88); border: 1px solid rgba(255,255,255,.14); border-radius: var(--radius-sm); padding: 14px; margin: 8px 0 20px; }
.cover .take b { color: #fff; }
.cover .top { display: flex; align-items: center; justify-content: space-between; }
.cover .top img { width: 72px; }
.cover .icon-btn { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.2); color: #fff; }

/* ---------- Cards ---------- */
.card { background: var(--surface); border: 1.5px solid var(--line); border-radius: var(--radius); padding: 18px; }
.card.flat { background: var(--surface-2); border-color: transparent; }
.card h3 + p, .card h3 + .muted { margin-top: 6px; }
.week-card { text-decoration: none; border: none; border-radius: 26px; padding: 18px 18px 16px; position: relative; overflow: hidden; display: block; width: 100%; text-align: left; color: var(--ink); }
.week-card.amarelo { background: var(--amarelo); }
.week-card.rosa { background: var(--rosa); }
.week-card.verde { background: var(--verde); }
.week-card.azul { background: var(--azul); }
.week-card .n { font-family: var(--display); font-size: 13px; letter-spacing: .04em; text-transform: uppercase; opacity: .75; }
.week-card h3 { font-family: var(--display); font-weight: 400; font-size: 21px; letter-spacing: -0.01em; margin: 6px 0 6px; padding-right: 30px; }
.week-card p { font-size: 14.5px; margin: 0 0 12px; color: #2c2a40; }
.week-card .star { position: absolute; right: -14px; top: -14px; width: 74px; height: 74px; opacity: .35; }
.week-card .foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.status { white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; padding: 5px 10px; border-radius: 999px; background: rgba(255,255,255,.65); }
.status.done { background: var(--ink); color: #fff; }
.go { width: 36px; height: 36px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; flex: none; }
.go svg { width: 18px; height: 18px; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 0 22px; border-radius: 999px; border: none; background: var(--ink); color: #fff; font-weight: 600; font-size: 16px; text-decoration: none; }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn.block { width: 100%; }
.btn.brand { background: var(--brand); }
.btn.peri { background: var(--peri); color: var(--dark); }
.btn.light { background: #fff; color: var(--dark); }
.btn.ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--line); }
.btn.sm { min-height: 40px; padding: 0 16px; font-size: 14px; }
.btn:disabled { opacity: .45; }
.link-btn { background: none; border: none; padding: 6px 0; color: var(--brand); font-weight: 600; font-size: 14.5px; text-decoration: underline; text-underline-offset: 3px; }
.danger { color: #A33; }

/* ---------- Choice chips ---------- */
.q { font-weight: 700; font-size: 17px; margin: 0 0 4px; }
.q-hint { color: var(--muted); font-size: 14px; margin: 0 0 12px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { border: 1.5px solid var(--line); background: var(--surface); border-radius: 999px; padding: 10px 14px; font-size: 14.5px; line-height: 1.25; text-align: left; display: inline-flex; align-items: center; gap: 8px; }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.chip .tick { width: 16px; height: 16px; flex: none; display: none; }
.chip[aria-pressed="true"] .tick { display: block; }
.options { display: grid; gap: 10px; }
.option { border: 1.5px solid var(--line); background: var(--surface); border-radius: var(--radius-sm); padding: 14px 16px; text-align: left; display: block; width: 100%; }
.option b { display: block; font-size: 15.5px; }
.option span { display: block; font-size: 14px; color: var(--muted); margin-top: 2px; }
.option[aria-pressed="true"] { border-color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); background: #fff; }
.option[aria-pressed="true"] b::after { content: " ✓"; }

/* ---------- Fields ---------- */
.field { display: block; }
.field > span { display: block; font-weight: 600; font-size: 15px; margin-bottom: 6px; }
.field > small { display: block; color: var(--muted); font-size: 13.5px; margin: -2px 0 8px; }
.input, textarea.input { width: 100%; border: 1.5px solid var(--line); background: #fff; border-radius: var(--radius-sm); padding: 12px 14px; font-size: 16px; line-height: 1.45; }
textarea.input { resize: vertical; min-height: 84px; }
.input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 18%, transparent); }
.counter { text-align: right; font-size: 12.5px; color: var(--muted); margin-top: 4px; }
.counter.over { color: #A33; }

/* ---------- Info boxes ---------- */
.box { border-radius: var(--radius-sm); padding: 14px 16px; font-size: 14.5px; }
.box p:last-child { margin: 0; }
.box .k { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; display: block; margin-bottom: 4px; }
.box.pronto { background: #E7EFD6; }
.box.pronto .k { color: var(--ok); }
.box.aula { background: #E6EAFD; }
.box.aula .k { color: var(--brand); }
.box.aula ul { margin: 0; padding-left: 18px; }
.box.dica { background: var(--dark); color: #EDEEFB; position: relative; padding-left: 64px; }
.box.dica .k { color: var(--peri); }
.box.dica .av { position: absolute; left: 14px; top: 14px; width: 38px; height: 38px; border-radius: 50%; background: var(--peri); color: var(--dark); display: grid; place-items: center; font-family: var(--display); font-size: 15px; }
.box.exemplo { background: var(--surface-2); }
.box.exemplo .k { color: var(--muted); }
.box.alerta { background: #FBEBD0; }
.box.alerta .k { color: var(--warn); }
.box.regra { background: #F1E6F6; }
.box.regra .k { color: #6B3C86; }

/* ---------- Copy / code ---------- */
.copy { display: flex; align-items: center; gap: 8px; background: #fff; border: 1.5px dashed var(--line); border-radius: var(--radius-sm); padding: 8px 8px 8px 14px; }
.copy code { flex: 1; word-break: break-word; font-size: 14px; }
.copy .actions { display: flex; gap: 6px; flex: none; }
.mini { border: 1.5px solid var(--line); background: var(--surface); border-radius: 999px; padding: 7px 12px; font-size: 13px; font-weight: 600; white-space: nowrap; text-decoration: none; color: var(--ink); display: inline-flex; align-items: center; gap: 5px; }
.mini.dark { background: var(--ink); color: #fff; border-color: var(--ink); }

/* ---------- Term cards ---------- */
.term { background: var(--surface); border: 1.5px solid var(--line); border-radius: var(--radius-sm); padding: 14px; }
.term .name { font-family: var(--display); font-size: 17px; letter-spacing: -0.01em; }
.term p { font-size: 14px; color: var(--muted); margin: 4px 0 10px; }
.term.tested { border-color: var(--ink); }
.badge { display: inline-block; font-size: 11.5px; font-weight: 700; padding: 3px 8px; border-radius: 999px; background: var(--amarelo); vertical-align: middle; margin-left: 6px; letter-spacing: .02em; }

/* ---------- List items ---------- */
.item { background: var(--surface); border: 1.5px solid var(--line); border-radius: var(--radius); padding: 16px; }
.item-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
.item-head b { font-size: 15px; }
.empty { text-align: center; padding: 22px 16px; border: 1.5px dashed var(--line); border-radius: var(--radius); color: var(--muted); font-size: 14.5px; }
.quote { border-left: 3px solid var(--peri); padding: 2px 0 2px 12px; color: var(--muted); font-size: 14px; margin: 0 0 12px; white-space: pre-wrap; }
.pills { display: flex; flex-wrap: wrap; gap: 6px; }
.pill { background: var(--surface-2); border-radius: 999px; padding: 5px 11px; font-size: 13.5px; font-weight: 500; }

/* ---------- Summary ---------- */
.summary { background: var(--surface); border-radius: 26px; border: 1.5px solid var(--line); overflow: hidden; }
.summary .sh { padding: 18px; }
.summary .sh.amarelo { background: var(--amarelo); } .summary .sh.rosa { background: var(--rosa); } .summary .sh.verde { background: var(--verde); } .summary .sh.azul { background: var(--azul); }
.summary .sh .n { font-size: 12.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; opacity: .7; }
.summary .sh h2 { font-size: 23px; margin-top: 4px; }
.summary .sb { padding: 6px 18px 18px; }
.sec { padding: 12px 0; border-bottom: 1px solid var(--line); }
.sec:last-child { border-bottom: none; }
.sec .sl { font-size: 12.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.sec ul { margin: 0; padding-left: 18px; }
.sec li + li { margin-top: 4px; }
.sec .pre { white-space: pre-wrap; font-size: 15px; }
.sec.missing { color: var(--muted); font-size: 14.5px; }
.todo { background: #FBEBD0; border-radius: var(--radius-sm); padding: 12px 14px; font-size: 14.5px; margin-top: 12px; }
.todo b { display: block; margin-bottom: 4px; }

/* ---------- Footer nav ---------- */
.stepnav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; padding: 12px 16px calc(12px + var(--safe-b)); background: linear-gradient(to top, var(--bg) 70%, transparent); }
.stepnav .in { max-width: 528px; margin: 0 auto; display: flex; gap: 10px; }
.stepnav .btn.ghost { background: var(--surface); flex: none; width: 52px; padding: 0; }
.stepnav .btn.next { flex: 1; }
.tabbar { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(14px + var(--safe-b)); z-index: 30; background: var(--dark); border-radius: 999px; padding: 6px; display: flex; gap: 4px; box-shadow: 0 10px 30px rgba(11,11,18,.25); }
.tabbar a { color: #B9BAD0; text-decoration: none; display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 11.5px; font-weight: 600; padding: 8px 10px; border-radius: 999px; min-width: 68px; white-space: nowrap; }
.tabbar a svg { width: 21px; height: 21px; }
.tabbar a.on { background: var(--peri); color: var(--dark); }

/* ---------- Toast ---------- */
.toast { position: fixed; left: 50%; bottom: calc(96px + var(--safe-b)); transform: translateX(-50%) translateY(20px); background: var(--dark); color: #fff; padding: 11px 18px; border-radius: 999px; font-size: 14.5px; font-weight: 500; opacity: 0; transition: .25s; z-index: 60; pointer-events: none; max-width: calc(100% - 32px); text-align: center; }
.toast.on { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---------- Install steps ---------- */
.steps { counter-reset: s; list-style: none; padding: 0; margin: 0; }
.steps li { counter-increment: s; position: relative; padding-left: 38px; margin: 0 0 12px; font-size: 15px; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: -1px; width: 26px; height: 26px; border-radius: 50%; background: var(--ink); color: #fff; font-size: 13px; font-weight: 700; display: grid; place-items: center; }
details { background: var(--surface); border: 1.5px solid var(--line); border-radius: var(--radius-sm); padding: 12px 16px; }
details summary { font-weight: 600; cursor: pointer; list-style: none; }
details summary::-webkit-details-marker { display: none; }
details summary::after { content: "+"; float: right; font-weight: 700; }
details[open] summary::after { content: "–"; }
details[open] summary { margin-bottom: 10px; }

.hint-line { display: flex; gap: 8px; align-items: flex-start; font-size: 14.5px; }
.hint-line::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--peri); margin-top: 8px; flex: none; }

@media (min-width: 600px) {
  .hero { border-radius: 0 0 36px 36px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* ---------- Preparar meu perfil ---------- */
.tool-card { display: flex; align-items: center; gap: 14px; background: var(--dark); color: #fff; border-radius: 26px; padding: 18px; text-decoration: none; }
.tool-card .n { font-family: var(--display); font-size: 13px; letter-spacing: .04em; text-transform: uppercase; color: var(--peri); }
.tool-card h3 { font-family: var(--display); font-weight: 400; font-size: 21px; margin: 6px 0; }
.tool-card p { margin: 0; font-size: 14.5px; color: #D9DAF0; }
.tool-card .go { background: var(--peri); color: var(--dark); }
.sug { color: #6B3C86; font-weight: 600; margin: 8px 0 0; }
.ref { background: var(--surface-2); border-radius: var(--radius-sm); padding: 14px 16px; position: sticky; top: calc(64px + var(--safe-t)); z-index: 5; box-shadow: 0 6px 16px rgba(21,20,43,.06); }
.ref .k { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); display: block; margin-bottom: 4px; }
.ref-text { white-space: pre-wrap; font-size: 14px; color: var(--muted); max-height: 104px; overflow-y: auto; }
details .ref-text { max-height: none; }
.result { border-color: var(--ink); }
.step-tag { display: inline-block; font-size: 11.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; background: var(--amarelo); }
.step-tag.dark { background: var(--dark); color: var(--peri); }
.card.ia { border-color: var(--brand); }
.card.ia .steps { margin: 4px 0 0; }
.card.ia .steps .row.between { margin-top: 6px; }
.prompt-text { white-space: pre-wrap; font-size: 13px; color: var(--muted); max-height: 260px; overflow-y: auto; }
.final-text { white-space: pre-wrap; background: var(--surface-2); border-radius: var(--radius-sm); padding: 14px 16px; font-size: 15px; }
.und-row { border-top: 1px solid var(--line); padding-top: 12px; }
.und-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.und-k { font-size: 12px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.und-v { font-size: 15.5px; font-weight: 600; margin-top: 2px; }
.und-row.falta .und-v { color: var(--warn); }
.und-row:not(:has(.und-v)) {}
.und-row .und-v:empty { display: none; }
.und-ed { margin-top: 10px; }

/* ================= app v2 ================= */
.cap { text-transform: capitalize; }
.sec-l { font-size: 12px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.hint-help { background: #E6EAFD; color: var(--brand); font-weight: 600; border-radius: var(--radius-sm); padding: 10px 14px; margin: 0; }
.badge.cinza { background: var(--surface-2); }
.pill { background: var(--surface); border: 1.5px solid var(--line); }
.fogo { font-size: 20px; font-weight: 700; background: var(--surface); border: 1.5px solid var(--line); border-radius: 999px; padding: 6px 14px; white-space: nowrap; }
/* tabbar com 5 itens */
.tabbar { width: calc(100% - 24px); max-width: 520px; justify-content: space-between; }
.tabbar a { min-width: 0; flex: 1; padding: 8px 4px; }
.tabbar a span { font-size: 11px; }
/* áreas */
.area-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.area-card { position: relative; display: flex; flex-direction: column; gap: 6px; background: var(--surface); border: 1.5px solid var(--line); border-radius: 18px; padding: 14px; text-decoration: none; color: var(--ink); min-height: 150px; }
.area-card.sel { border-color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.area-card .badge { position: absolute; top: 10px; right: 10px; margin: 0; }
.area-ic { font-size: 26px; line-height: 1; }
.area-ic.big { font-size: 40px; }
.area-t { font-family: var(--display); font-size: 15px; line-height: 1.15; letter-spacing: -0.01em; }
.area-d { font-size: 12.5px; color: var(--muted); line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.area-head { display: flex; align-items: center; gap: 12px; }
/* funções */
.func-card { display: block; width: 100%; text-align: left; background: var(--surface); border: 1.5px solid var(--line); border-radius: 18px; padding: 14px 16px; }
.func-card.sel { border-color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); background: #fff; }
.func-t { display: block; font-family: var(--display); font-size: 17px; }
.func-d { display: block; font-size: 14px; color: var(--ink); margin-top: 4px; }
.func-m { display: block; font-size: 12.5px; color: var(--muted); margin-top: 6px; }
/* tarefas do dia */
.task { background: var(--surface); border: 1.5px solid var(--line); border-radius: 18px; padding: 14px 16px; }
.task.ok { border-color: var(--ok); }
.task-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.task-t { font-weight: 700; font-size: 16px; }
.task-m { font-size: 14px; color: var(--muted); }
.task.ok .task-m { color: var(--ok); font-weight: 600; }
.cnt { display: flex; gap: 6px; }
.cnt-b { width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid var(--line); background: #fff; font-size: 18px; font-weight: 700; }
.cnt-b.plus { width: 56px; border-radius: 999px; background: var(--ink); color: #fff; border-color: var(--ink); font-size: 15px; }
.bar { height: 8px; border-radius: 99px; background: var(--surface-2); overflow: hidden; margin-top: 10px; }
.bar i { display: block; height: 100%; background: var(--peri); border-radius: 99px; transition: width .3s; }
.task.ok .bar i { background: var(--ok); }
details.help { border: none; padding: 0; background: none; margin-top: 10px; }
details.help summary { font-size: 14px; color: var(--brand); }
details.help[open] summary { margin-bottom: 10px; }
.prep { display: flex; align-items: center; gap: 12px; padding: 10px 2px; border-top: 1px solid var(--line); color: var(--ink); text-decoration: none; font-size: 15px; }
.prep .ck { width: 24px; height: 24px; border-radius: 50%; border: 1.5px solid var(--line); display: grid; place-items: center; font-size: 13px; flex: none; }
.prep.ok .ck { background: var(--ok); border-color: var(--ok); color: #fff; }
.prep.ok { color: var(--muted); }
.prep.big { background: var(--surface); border: 1.5px solid var(--line); border-radius: 18px; padding: 14px 16px; }
.prep.big .ck { width: 28px; height: 28px; }
/* plano */
.week-row { background: var(--surface); border: 1.5px solid var(--line); border-radius: 16px; padding: 12px 14px; }
.week-row.atual { border-color: var(--ink); }
.week-row.futura { opacity: .85; }
details.week-row summary::after { content: none; }
details.week-row[open] summary { margin-bottom: 0; }
.niveis { display: flex; gap: 4px; }
.niveis span { flex: 1; text-align: center; font-size: 11px; font-weight: 600; padding: 6px 2px; border-radius: 8px; background: var(--surface-2); color: var(--muted); }
.niveis span.on { background: var(--ink); color: #fff; }
.conquista { background: var(--amarelo); border-radius: 16px; padding: 14px 16px; }
.resumo { border-color: var(--peri); }
/* gráfico */
.chart { width: 100%; height: auto; }
.legend { display: flex; flex-wrap: wrap; gap: 10px; font-size: 12.5px; color: var(--muted); }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 5px; vertical-align: middle; }
/* modal de conquista */
.modal { position: fixed; inset: 0; background: rgba(11,11,18,.55); z-index: 80; display: grid; place-items: center; padding: 20px; }
.modal-in { background: var(--surface); border-radius: 26px; padding: 26px 22px; max-width: 380px; width: 100%; text-align: center; }
.modal-in h2 { margin: 8px 0 10px; }
/* login */
.auth .auth-in { background: #fff; }
.auth-msg { background: rgba(255,255,255,.1); border-radius: 12px; padding: 10px 14px; color: #fff; font-size: 14.5px; margin: 0; }
.link-btn.light { color: #D9DAF0; }
.priv h3 { margin-top: 18px; }
.priv ul { padding-left: 20px; }
.prompt-text { white-space: pre-wrap; font-size: 13px; color: var(--muted); max-height: 260px; overflow-y: auto; }
.step-tag { display: inline-block; font-size: 11.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; background: var(--amarelo); align-self: flex-start; }
.step-tag.dark { background: var(--dark); color: var(--peri); }
.card.ia { border-color: var(--brand); }
.btn.danger { color: #A33; }
.copy code { font-family: var(--body); font-size: 13.5px; line-height: 1.45; }

/* barra de comparação e tabela */
.cmpbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; padding: 10px 12px calc(10px + var(--safe-b)); }
.cmpbar-in { max-width: 536px; margin: 0 auto; background: var(--dark); color: #fff; border-radius: 18px; padding: 12px 14px; display: flex; align-items: center; justify-content: space-between; gap: 12px; box-shadow: 0 10px 30px rgba(11,11,18,.25); }
.cmpbar-in .muted { color: #B9BAD0; }
.page:has(+ .cmpbar) { padding-bottom: calc(150px + var(--safe-b)); }
.cmp-row { border-top: 1px solid var(--line); padding-top: 10px; }
.cmp-row:first-child { border-top: none; padding-top: 0; }
.cmp-cols { display: grid; gap: 10px; margin-top: 6px; }
.cv-sec { border-top: 1px solid var(--line); padding-top: 10px; }
.cv-modelo { color: var(--ink); background: var(--surface-2); border-radius: 10px; padding: 10px 12px; }

.badge.verde { background: #CFE5C8; color: #2F6B3A; }
