/* MAMBA ENABLEMENT — visual da versão 4 do quadro de opções, com menu lateral: fundo cinza bem claro de ponta a ponta,
   menu lateral branco com nomes preso à borda, cartões brancos e o preto como cor de ação.
   O roxo da marca marca o item ativo, o andamento e os destaques; o dourado (--sun) fica para progresso e conquistas.
   Carrega depois do app.css e do ui2.css e só sobrescreve: tirar este arquivo do index.html volta ao visual anterior. */

:root {
  --bg: #f4f3f7;
  --bg-2: #f4f3f7;
  --panel: #ffffff;
  --panel-2: #f4f3f7;
  --panel-3: #ece9f3;
  --line: #e4e1ec;
  --line-strong: #d3cfdd;
  --text: #16121f;
  --muted: #4b4560;
  --faint: #6b6585;
  --gold: #16121f;
  --gold-dim: #000000;
  --gold-ink: #ffffff;
  --purple: #6d28d9;
  --violet: #6d28d9;
  --hl: 22, 18, 31;
  --sh: 233, 231, 238;
  --gold-rgb: 22, 18, 31;
  --purple-rgb: 109, 40, 217;
  --shadow: none;
  --radius: 18px;
  --radius-sm: 12px;
  --st-ink: #16121f;
  --st-card: #f4f3f7;
  --st-soft: #ede5fb;
  --st-deep: #5b21b6;
}

/* menu lateral: branco, preso à borda, com a mesma paleta clara do resto */
.side, .side-admin {
  --bg: #ffffff; --bg-2: #ffffff; --panel: #f4f3f7; --panel-2: #ece9f3; --panel-3: #e4e1ec; --panel-rgb: 244, 243, 247;
  --line: #e4e1ec; --line-strong: #d3cfdd; --text: #16121f; --muted: #4b4560; --faint: #6b6585;
  --gold: #16121f; --gold-dim: #000000; --gold-ink: #ffffff; --gold-rgb: 22, 18, 31; --hl: 22, 18, 31; --sh: 233, 231, 238;
  background: #ffffff; border-right: 1px solid var(--line); color: var(--text);
}
.nav a { color: var(--muted); }
.nav a:hover { background: var(--st-card); color: var(--text); }
.nav a[aria-current="page"] { background: var(--st-soft); color: var(--st-deep); }
.brand-mark { background: var(--st-ink); box-shadow: none; }

/* ───── botões, campos, cartões ───── */
.btn { border-radius: 12px; font-weight: 800; }
.btn-ghost { border-width: 1.5px; border-color: var(--st-ink); }
.btn-ghost:hover { background: var(--st-ink); color: #ffffff; border-color: var(--st-ink); }
.tabs, .tabs-lite { background: var(--st-card); border-radius: 14px; }
.tabs button, .tabs-lite button, .tabs-lite a { border-radius: 10px; }
.panel { border-radius: var(--radius); }
.bar { background: var(--panel-3); }
.bar > i { background: var(--violet); }
.chip-gold { background: rgba(var(--purple-rgb), .1); border-color: rgba(var(--purple-rgb), .35); color: var(--st-deep); }
h1, h2 { font-weight: 900; }
/* números do painel e módulos em cartões brancos, sem borda */
.stat, .mod-card, .fd-stat { background: #ffffff; border-color: transparent; }
.stat b { font-weight: 900; font-size: 3rem; }
.mod-card:hover, .fd-stat:hover { border-color: var(--st-ink); }
/* funil do painel: a legenda fala em "barra dourada" */
.funnel-bars .bar:not(.b2) > i { background: var(--sun); }
/* fundo liso: sem as linhas da quadra atrás do conteúdo */
.bg-court { display: none; }
body { background: var(--bg); }

/* ───── casca no computador ───── */
@media (min-width: 861px) {
  html:not([data-mode="mobile"]) .top { background: rgba(255, 255, 255, .96); border-bottom-color: var(--line); padding: 10px clamp(16px, 2vw, 32px); }
  html:not([data-mode="mobile"]) .top-search { background: var(--st-card); border-color: transparent; border-radius: 12px; }
  html:not([data-mode="mobile"]) .page { padding: clamp(16px, 2.6vh, 32px) clamp(18px, 2.4vw, 36px) 48px; }
  html:not([data-mode="mobile"]) .page-head { margin-bottom: clamp(14px, 2.4vh, 24px); }
  html:not([data-mode="mobile"]) .page-head h2 { font-size: clamp(1.9rem, 2.2vw + 1vh, 2.6rem); }

  /* menu lateral com nomes */
  html:not([data-mode="mobile"]) .shell { --side: 232px; }
  html:not([data-mode="mobile"]) .side { padding: 20px 14px; gap: 18px; }
  html:not([data-mode="mobile"]) .brand-mark { width: 40px; height: 40px; border-radius: 11px; }
}
@media (min-width: 861px) and (max-width: 1180px) {
  html:not([data-mode="mobile"]) .shell { --side: 208px; }
}

/* ───── celular: barra de baixo branca ───── */
@media (max-width: 860px) {
  .tabbar { background: #ffffff; border-top: 1px solid var(--line); grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .tab[aria-current="page"], .tab[data-on] { color: var(--violet); }
  .side { box-shadow: none; }
}
html[data-mode="mobile"] .tabbar { background: #ffffff; border-top: 1px solid var(--line); grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* ───── Início ─────
   [ faixa preta: Olá · Sua trilha de estudos · progresso · botão ]
   [ Novidades (um vídeo)            ][ Feed (últimas 4)      ]  */
.page:has(.hm), .page:has(.nf) { max-width: 1280px; }
.hm-hero { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(220px, 1fr) auto; align-items: center; gap: clamp(16px, 2vw, 28px); padding: clamp(18px, 2.6vh, 28px) clamp(20px, 2.2vw, 30px); margin-bottom: clamp(12px, 1.6vh, 18px); border-radius: 18px; background: var(--st-ink); color: #ffffff; }
.hm-hello { font-size: .75rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: #a39dba; }
.hm-hero h2 { margin: 4px 0 6px; color: #ffffff; font-size: clamp(2rem, 2.4vw + 1vh, 2.9rem); line-height: .95; }
.hm-next { margin: 0; color: #d7d2e6; }
.hm-next a { color: #ffffff; font-weight: 800; }
.hm-next a:hover { color: var(--sun); }
.hm-hero-prog { display: grid; gap: 8px; }
.hm-go-top { display: flex; justify-content: space-between; font-size: .74rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #a39dba; }
.hm-go-top b { color: var(--sun); }
.hm-hero .bar { background: #2e2840; }
.hm-hero .bar > i { background: var(--sun); }
.hm-meta { font-size: .8rem; color: #a39dba; }
.hm-hero-btn { background: var(--sun); color: var(--sun-ink); white-space: nowrap; }
.hm-hero-btn:hover { background: #ffd04f; color: var(--sun-ink); }
.hm-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: clamp(12px, 1.2vw, 18px); margin-bottom: 18px; }
.hm-videos { grid-column: span 3; }
.hm-feed { grid-column: span 2; }
.hm-box { display: flex; flex-direction: column; gap: 12px; min-width: 0; padding: clamp(12px, 1.2vw, 16px); border-radius: 18px; background: #ffffff; }
.hm-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.hm-head h3 { display: flex; align-items: center; gap: 8px; margin: 0; font-family: var(--body); font-size: .8rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--text); }
.hm-acts { display: flex; gap: 6px; }
.hm-btn { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 0 12px; border-radius: 10px; border: 1.5px solid var(--st-ink); background: #ffffff; color: var(--st-ink); font: 800 .78rem var(--body); text-decoration: none; cursor: pointer; }
.hm-btn:hover { background: var(--st-ink); color: #ffffff; }
.hm-btn[hidden] { display: none; }
.hm-videos-body { display: flex; flex-direction: column; gap: 10px; }
.hm-player { position: relative; width: 100%; max-width: calc(46vh * 16 / 9); aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; background: var(--st-ink); }
.hm-player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.hm-vtitle { font-size: 1rem; line-height: 1.3; }
.hm-edit { display: grid; gap: 10px; }
.hm-edit .field { margin: 0; }
.hm-empty { display: grid; place-items: center; gap: 8px; min-height: clamp(140px, 22vh, 220px); padding: 20px; border-radius: 12px; border: 1.5px dashed var(--line-strong); background: var(--st-card); color: var(--faint); text-align: center; }
.hm-empty p { margin: 0; max-width: 32ch; }
.hm-feed-list { display: grid; gap: 8px; align-content: start; }
.hm-post { display: grid; gap: 4px; padding: 10px 12px; border-radius: 12px; background: var(--st-card); border: 1.5px solid transparent; color: var(--text); text-decoration: none; }
.hm-post:hover { border-color: var(--st-ink); color: var(--text); }
.hm-post-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.hm-when { font-size: .75rem; color: var(--faint); white-space: nowrap; }
.hm-post strong { font-size: .92rem; line-height: 1.3; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hm-post p { margin: 0; font-size: .82rem; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 1100px) {
  .hm-hero { grid-template-columns: minmax(0, 1fr) minmax(200px, .8fr); }
  .hm-hero-btn { grid-column: span 2; justify-self: start; }
  .hm-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hm-videos, .hm-feed { grid-column: span 1; }
}
@media (max-width: 680px) {
  .hm-hero { grid-template-columns: minmax(0, 1fr); }
  .hm-hero-btn { grid-column: auto; justify-self: stretch; }
  .hm-grid { grid-template-columns: minmax(0, 1fr); }
  .hm-player { max-width: none; }
}
html[data-mode="mobile"] .hm-hero, html[data-mode="mobile"] .hm-grid { grid-template-columns: minmax(0, 1fr); }
html[data-mode="mobile"] .hm-videos, html[data-mode="mobile"] .hm-feed, html[data-mode="mobile"] .hm-hero-btn { grid-column: auto; }

/* ───── Feed de notícias ───── */
.nf-layout { display: grid; grid-template-columns: minmax(220px, 280px) minmax(0, 1fr); gap: clamp(14px, 1.6vw, 24px); align-items: start; }
.nf-side { position: sticky; top: 76px; display: grid; gap: 12px; padding: 14px; border-radius: 18px; background: #ffffff; max-height: calc(100dvh - 100px); overflow-y: auto; scrollbar-width: thin; }
.nf-side-h, .nf-main-h { display: flex; align-items: center; gap: 8px; margin: 0; font-family: var(--body); font-size: .8rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--text); }
.nf-vlist { display: grid; gap: 12px; }
.nf-vcard { display: grid; gap: 6px; padding: 8px; border-radius: 14px; background: var(--st-card); }
.nf-vthumb { position: relative; padding: 0; border: 0; border-radius: 10px; overflow: hidden; aspect-ratio: 16 / 9; background: var(--st-ink); cursor: pointer; }
.nf-vthumb img { width: 100%; height: 100%; object-fit: cover; }
.nf-vplay { position: absolute; inset: 0; margin: auto; width: 46px; height: 32px; border-radius: 9px; background: #ff0033; color: #ffffff; display: grid; place-items: center; }
.nf-vmeta { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.nf-vmeta strong { font-size: .86rem; line-height: 1.3; }
.nf-main { display: grid; gap: 14px; min-width: 0; }
.nf-composer { display: grid; gap: 10px; padding: 16px; border-radius: 18px; background: #ffffff; }
.nf-ctext { min-height: 84px; resize: vertical; }
.nf-cbar { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.nf-tool { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 10px; border: 0; border-radius: 10px; background: transparent; color: var(--muted); font: 700 .86rem var(--body); cursor: pointer; }
.nf-tool:hover { background: var(--st-card); color: var(--text); }
.nf-tool[hidden] { display: none; }
.nf-csel { width: auto; min-height: 38px; padding-block: 0; }
.nf-thumbs { display: flex; gap: 8px; flex-wrap: wrap; }
.nf-thumbs:empty { display: none; }
.nf-thumb { position: relative; width: 84px; height: 84px; border-radius: 10px; overflow: hidden; }
.nf-thumb img { width: 100%; height: 100%; object-fit: cover; }
.nf-thumb button { position: absolute; top: 4px; right: 4px; width: 22px; height: 22px; border: 0; border-radius: 50%; background: rgba(22, 18, 31, .8); color: #fff; display: grid; place-items: center; cursor: pointer; }
.nf-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.nf-chip { display: inline-flex; align-items: center; gap: 6px; min-height: 34px; padding: 0 12px; border-radius: 999px; border: 1.5px solid var(--line-strong); background: #ffffff; color: var(--text); font: 700 .82rem var(--body); cursor: pointer; }
.nf-chip[aria-selected="true"] { background: var(--st-ink); border-color: var(--st-ink); color: #ffffff; }
.nf-list { display: grid; gap: 14px; }
.nf-post { display: grid; gap: 10px; padding: 18px 20px 10px; border-radius: 18px; background: #ffffff; min-width: 0; }
.nf-head { display: flex; align-items: center; gap: 12px; }
.nf-who { flex: 1; min-width: 0; display: grid; line-height: 1.25; }
.nf-who strong { font-size: .95rem; }
.nf-when { font-size: .76rem; color: var(--faint); }
.nf-cat { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: 999px; font-size: .68rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; background: var(--st-card); color: var(--text); }
.nf-cat-marketplaces { --c: #8a5a00; --cb: #fff3d6; }
.nf-cat-mercado { --c: #5b21b6; --cb: #ede5fb; }
.nf-cat-dicas { --c: #0c6b45; --cb: #dff3ea; }
.nf-cat-videos { --c: #b4233f; --cb: #fde4ea; }
.nf-cat-links { --c: #1d4ed8; --cb: #e3ebfd; }
.nf-cat[class*="nf-cat-"] { background: var(--cb); color: var(--c); }
.nf-chip[class*="nf-cat-"] { color: var(--c); border-color: var(--cb); background: var(--cb); }
.nf-chip[class*="nf-cat-"][aria-selected="true"] { background: var(--c); border-color: var(--c); color: #ffffff; }
.nf-icon-btn { flex: none; width: 32px; height: 32px; display: grid; place-items: center; border: 0; border-radius: 9px; background: transparent; color: var(--faint); cursor: pointer; }
.nf-icon-btn:hover { background: var(--bad-bg); color: var(--bad); }
.nf-title { margin: 2px 0 0; font-size: clamp(1.25rem, 1.2vw + .6rem, 1.6rem); line-height: 1.1; text-transform: uppercase; overflow-wrap: anywhere; }
.nf-text { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.6; }
.nf-post .media { margin: 4px 0; }
.nf-video { position: relative; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; background: var(--st-ink); }
.nf-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.nf-post .nf-video { max-width: 640px; }
.nf-link { display: inline-flex; align-items: center; gap: 8px; align-self: start; max-width: 100%; padding: 8px 12px; border-radius: 10px; background: var(--st-card); color: var(--text); font-weight: 700; font-size: .9rem; text-decoration: none; }
.nf-link span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nf-link:hover { background: var(--st-soft); color: var(--st-deep); }
.nf-foot { display: flex; align-items: center; gap: 8px; padding-top: 10px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.nf-foot .spacer { flex: 1; }
.nf-reacts { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.nf-react { display: inline-flex; align-items: center; gap: 5px; min-height: 32px; padding: 0 10px; border-radius: 999px; border: 1.5px solid var(--line); background: #ffffff; font: 700 .85rem var(--body); color: var(--text); cursor: pointer; }
.nf-react:hover { border-color: var(--line-strong); }
.nf-react.on { background: var(--st-soft); border-color: #c9b5f3; color: var(--st-deep); }
.nf-react-add { color: var(--faint); padding: 0 8px; }
.nf-picker-wrap { position: relative; display: inline-flex; }
.nf-picker { position: absolute; bottom: calc(100% + 6px); left: 0; z-index: 5; display: flex; gap: 2px; padding: 6px; border-radius: 999px; background: #ffffff; box-shadow: 0 8px 24px rgba(22, 18, 31, .16); border: 1px solid var(--line); }
.nf-picker[hidden] { display: none; }
.nf-emo { width: 36px; height: 36px; border: 0; border-radius: 50%; background: transparent; font-size: 1.2rem; cursor: pointer; transition: transform .12s; }
.nf-emo:hover { background: var(--st-card); transform: scale(1.15); }
.nf-stat { display: inline-flex; align-items: center; gap: 5px; min-height: 32px; padding: 0 8px; border: 0; border-radius: 8px; background: transparent; color: var(--faint); font: 700 .82rem var(--body); }
button.nf-stat { cursor: pointer; }
button.nf-stat:hover { background: var(--st-card); color: var(--text); }
.nf-comments { display: grid; gap: 10px; padding: 4px 0 8px; }
.nf-comments[hidden] { display: none; }
.nf-comment { display: flex; gap: 10px; align-items: flex-start; }
.nf-cbody { flex: 1; min-width: 0; padding: 8px 12px; border-radius: 12px; background: var(--st-card); }
.nf-chead { display: flex; align-items: center; gap: 8px; }
.nf-chead strong { font-size: .86rem; }
.nf-chead .nf-icon-btn { margin-left: auto; width: 26px; height: 26px; }
.nf-cbody p { margin: 2px 0 0; font-size: .9rem; white-space: pre-wrap; overflow-wrap: anywhere; }
.nf-cform { display: flex; gap: 10px; align-items: flex-start; }
.nf-cin { flex: 1; min-height: 40px; resize: vertical; }
.nf-more { justify-self: center; }
.nf-more[hidden] { display: none; }
@media (max-width: 980px) {
  .nf-layout { grid-template-columns: minmax(0, 1fr); }
  .nf-side { position: static; max-height: none; order: 2; }
  .nf-vlist { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
}
html[data-mode="mobile"] .nf-layout { grid-template-columns: minmax(0, 1fr); }
html[data-mode="mobile"] .nf-side { position: static; max-height: none; order: 2; }
/* celular: categoria embaixo do nome e filtros numa linha que rola de lado */
@media (max-width: 680px) {
  .nf-post { padding: 14px 14px 8px; }
  .nf-head { flex-wrap: wrap; }
  .nf-head .nf-who { flex: 1 1 calc(100% - 100px); }
  .nf-head .nf-cat { order: 3; margin-left: 52px; }
  .nf-chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: -16px; padding-inline: 16px; }
  .nf-chip { flex: none; }
}
html[data-mode="mobile"] .nf-head { flex-wrap: wrap; }
html[data-mode="mobile"] .nf-head .nf-who { flex: 1 1 calc(100% - 100px); }
html[data-mode="mobile"] .nf-head .nf-cat { order: 3; margin-left: 52px; }
html[data-mode="mobile"] .nf-chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
html[data-mode="mobile"] .nf-chip { flex: none; }

/* ───── entrada (login, cadastro, ativação): metade preta, metade branca, de ponta a ponta ───── */
.auth-hero {
  --bg: #16121f; --panel: #221d30; --panel-2: #2a2440; --panel-rgb: 34, 29, 48;
  --line: rgba(255, 255, 255, .12); --line-strong: rgba(255, 255, 255, .22);
  --text: #ffffff; --muted: #d7d2e6; --faint: #a39dba; --hl: 255, 255, 255; --sh: 10, 6, 20;
  --gold: #fdb927; --gold-rgb: 253, 185, 39;
  background: var(--st-ink); color: var(--text);
}
.auth-hero .brand-mark { background: var(--violet); }
.auth-hero h1 { font-weight: 900; line-height: .88; font-size: clamp(2.6rem, min(6vw, 10vh), 6rem); }
.auth-card { background: #ffffff; border: 0; backdrop-filter: none; }
@media (min-width: 981px) {
  html:not([data-mode="mobile"]) .auth-hero { padding: clamp(24px, 4vh, 56px) clamp(24px, 3.4vw, 56px); gap: clamp(14px, 2.6vh, 28px); }
  html:not([data-mode="mobile"]) .auth-hero p.lead { font-size: clamp(1rem, 1.6vh, 1.15rem); }
  html:not([data-mode="mobile"]) .auth-card { padding: clamp(18px, 3vh, 28px); }
}
@media (min-width: 981px) and (max-height: 760px) {
  html:not([data-mode="mobile"]) .auth-hero .playbook { display: none; }
}
@media (max-width: 980px) {
  .auth-hero { padding-bottom: clamp(28px, 5vw, 48px); }
}
html[data-mode="mobile"] .auth-hero { padding-bottom: 28px; }
/* lista de quem visualizou um post do Feed */
.nf-viewers { display: grid; gap: 4px; max-height: min(60vh, 460px); overflow-y: auto; margin: 6px 0 12px; }
.nf-viewer { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 10px; }
.nf-viewer:nth-child(odd) { background: var(--st-card); }


/* ───── Processos (modelo 3 do quadro: página do processo) ───── */
.page:has(.pr) { max-width: 1280px; }
.pr { display: grid; gap: 16px; }
.pr-top { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.pr-search { display: flex; align-items: center; gap: 8px; width: min(360px, 100%); height: 44px; padding: 0 14px; border-radius: 12px; background: #ffffff; color: var(--faint); }
.pr-search .input { border: 0; background: transparent; padding: 0; min-height: 0; height: 100%; box-shadow: none; }
.pr-groups { display: grid; gap: 22px; }
.pr-group-h { display: flex; align-items: baseline; gap: 10px; margin-bottom: 10px; }
.pr-group-h h2 { margin: 0; font-size: 1.7rem; }
.pr-group-h span { font-size: .85rem; color: var(--faint); }
.pr-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 12px; }
.pr-card { display: flex; flex-direction: column; gap: 8px; padding: 16px; border-radius: 16px; background: #ffffff; border: 1.5px solid transparent; color: var(--text); text-decoration: none; }
.pr-card:hover { border-color: var(--st-ink); color: var(--text); }
.pr-card b { font-size: 1rem; line-height: 1.3; }
.pr-card.is-draft { opacity: .75; }
.pr-when { font-size: .82rem; color: var(--faint); }
.pr-soon { margin: 0; padding: 14px 16px; border-radius: 14px; border: 1.5px dashed var(--line-strong); }
.pr-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.pr-chip { font-size: .74rem; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: var(--st-card); color: var(--text); }
.pr-chip-warn { align-self: flex-start; background: #fff3d6; color: #8a5a00; }
.pr-hero { display: grid; gap: 16px; padding: clamp(18px, 2.4vh, 26px) clamp(20px, 2vw, 28px); border-radius: 18px; background: var(--st-ink); color: #ffffff; }
.pr-hero-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; }
.pr-tag { display: inline-block; font-size: .7rem; font-weight: 800; letter-spacing: .1em; padding: 4px 10px; border-radius: 999px; background: #2e2840; color: #d7d2e6; }
.pr-hero h1 { margin: 10px 0 0; color: #ffffff; font-size: clamp(2.2rem, 2.6vw + 1vh, 3rem); line-height: .95; }
.pr-check-btn { background: var(--sun); color: var(--sun-ink); }
.pr-check-btn:hover { background: #ffd04f; color: var(--sun-ink); }
.pr-meta { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.pr-meta > div { border-top: 2px solid #3a3350; padding-top: 10px; display: grid; gap: 4px; }
.pr-meta > div.is-when { border-top-color: var(--sun); }
.pr-meta span { font-size: .7rem; font-weight: 800; letter-spacing: .08em; color: #a39dba; }
.pr-meta .is-when span { color: var(--sun); }
.pr-meta b { font-weight: 500; font-size: .95rem; }
.pr-body { display: grid; grid-template-columns: minmax(0, 1fr) clamp(260px, 26vw, 330px); gap: 16px; align-items: start; }
.pr-panel { background: #ffffff; border-radius: 18px; padding: clamp(16px, 1.6vw, 24px); display: grid; gap: 14px; align-content: start; }
.pr-h { margin: 0; font-family: var(--body); font-size: .8rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--text); }
.pr-steps { display: grid; gap: 14px; }
.pr-step { display: flex; gap: 14px; align-items: flex-start; }
.pr-n, .pr-box { flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-size: .82rem; font-weight: 800; }
.pr-n { background: var(--st-ink); color: #ffffff; }
.pr-box { border: 2px solid var(--st-ink); background: #ffffff; color: #ffffff; cursor: pointer; padding: 0; border-radius: 8px; }
.pr-box.on { background: var(--st-ink); }
.pr-sub .pr-box { width: 22px; height: 22px; border-radius: 6px; }
.pr-step-b { flex: 1; min-width: 0; display: grid; gap: 8px; padding-top: 4px; }
.pr-step.is-done > .pr-step-b > b { text-decoration: line-through; color: var(--faint); }
.pr-sub { margin: 0; padding: 0 0 0 4px; list-style: none; display: grid; gap: 6px; }
.pr-sub li { display: flex; gap: 8px; align-items: flex-start; font-size: .92rem; color: var(--muted); }
.pr-sub li::before { content: ""; flex: none; width: 6px; height: 6px; margin-top: .55em; border-radius: 50%; background: var(--line-strong); }
.pr-sub li:has(.pr-box)::before { display: none; }
.pr-sub li.is-done span { text-decoration: line-through; color: var(--faint); }
.pr-links { display: flex; gap: 6px; flex-wrap: wrap; }
.pr-links a { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 8px; background: var(--st-soft); color: var(--st-deep); font-size: .82rem; font-weight: 700; text-decoration: none; }
.pr-links a:hover { background: var(--st-deep); color: #ffffff; }
.pr-branches { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.pr-branch { padding: 12px 14px; border-radius: 12px; }
.pr-branch.is-bad { background: #fde4ea; } .pr-branch.is-bad > span { color: #b4233f; }
.pr-branch.is-good { background: #dff3ea; } .pr-branch.is-good > span { color: #0c6b45; }
.pr-branch > span { font-size: .7rem; font-weight: 800; letter-spacing: .08em; }
.pr-branch ul { margin: 6px 0 0; padding-left: 18px; display: grid; gap: 4px; font-size: .9rem; }
.pr-output { padding: 14px 16px; border-radius: 14px; background: var(--st-soft); }
.pr-output span { font-size: .7rem; font-weight: 800; letter-spacing: .08em; color: var(--st-deep); }
.pr-output p { margin: 4px 0 0; }
.pr-prog { display: grid; gap: 6px; padding: 12px 14px; border-radius: 12px; background: var(--st-card); }
.pr-prog[hidden] { display: none; }
.pr-side { display: grid; gap: 12px; position: sticky; top: 76px; }
.pr-mini { gap: 8px; padding: 16px; }
.pr-flow { background: #ffffff; border-radius: 18px; padding: clamp(14px, 1.4vw, 20px); display: grid; gap: 12px; }
.pr-flow-h { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.pr-flow-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr)); gap: 8px; }
.pr-flow-i { display: flex; gap: 8px; align-items: center; padding: 10px; border-radius: 12px; background: var(--st-card); color: var(--text); text-decoration: none; }
a.pr-flow-i:hover { box-shadow: inset 0 0 0 1.5px var(--st-ink); color: var(--text); }
.pr-flow-i b { font-size: .85rem; font-weight: 600; line-height: 1.25; }
.pr-flow-i.is-draft { opacity: .6; }
.pr-flow-n { flex: none; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: .72rem; font-weight: 800; background: #ffffff; color: var(--muted); }
.pr-flow-i.is-cur { background: var(--st-ink); color: #ffffff; }
.pr-flow-i.is-cur .pr-flow-n { background: var(--sun); color: var(--sun-ink); }
.pr-pager { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 12px; }
.pr-prev, .pr-next { display: grid; gap: 4px; padding: 18px 20px; border-radius: 18px; text-decoration: none; }
.pr-prev { background: #ffffff; color: var(--text); }
.pr-prev:hover { box-shadow: inset 0 0 0 1.5px var(--st-ink); color: var(--text); }
.pr-next { background: var(--st-ink); color: #ffffff; text-align: right; }
.pr-next:hover { background: #2e2840; color: #ffffff; }
.pr-prev span, .pr-next span { font-size: .7rem; font-weight: 800; letter-spacing: .08em; color: var(--faint); }
.pr-next span { color: var(--sun); }
.pr-prev b, .pr-next b { font-size: 1.1rem; line-height: 1.25; }
.pr-err { border-left: 3px solid var(--bad); padding-left: 10px; }
.pr-err b { font-size: .88rem; }
.pr-err p { margin: 2px 0 0; font-size: .86rem; color: var(--muted); }
@media (max-width: 980px) {
  .pr-body { grid-template-columns: minmax(0, 1fr); }
  .pr-side { position: static; }
  .pr-meta { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 680px) { .pr-branches, .pr-meta, .pr-pager { grid-template-columns: minmax(0, 1fr); } }
html[data-mode="mobile"] .pr-body, html[data-mode="mobile"] .pr-branches, html[data-mode="mobile"] .pr-pager { grid-template-columns: minmax(0, 1fr); }
html[data-mode="mobile"] .pr-side { position: static; }
html[data-mode="mobile"] .pr-meta { grid-template-columns: repeat(2, minmax(0, 1fr)); }

/* ───── Trilhas: coleção de selos (opção 5 do quadro) ───── */
.seal { --s: 72px; position: relative; flex: none; width: var(--s); height: var(--s); border-radius: 50%; display: grid; place-items: center;
  background: repeating-conic-gradient(#ffffff 0 5deg, var(--soft) 5deg 10deg); box-shadow: 0 6px 18px color-mix(in srgb, var(--c) 30%, transparent); }
.seal-core { width: 86%; height: 86%; border-radius: 50%; display: grid; place-items: center; background: radial-gradient(circle at 35% 30%, var(--c2), var(--c) 55%, var(--c3)); }
.seal-e { width: 86%; height: 86%; border-radius: 50%; border: 2px dashed rgba(255, 255, 255, .6); box-sizing: border-box; display: grid; place-items: center; font-size: calc(var(--s) * .38); line-height: 1; }
.seal.is-off { filter: grayscale(1); opacity: .38; box-shadow: none; }
.seal.is-going { box-shadow: 0 0 0 3px #ffc533; }
.seal-badge { position: absolute; right: -2px; bottom: -2px; width: max(18px, calc(var(--s) * .26)); height: max(18px, calc(var(--s) * .26)); border-radius: 50%; display: grid; place-items: center; background: #16a34a; color: #ffffff; font-size: max(10px, calc(var(--s) * .14)); font-weight: 900; border: 2px solid #ffffff; box-sizing: border-box; }
.seal-badge.lock { background: #3a3350; }
.seal-ribbon { position: absolute; bottom: -12px; left: 50%; transform: translateX(-50%); white-space: nowrap; background: #16121f; color: #ffc533; font-size: .7rem; font-weight: 900; letter-spacing: .12em; padding: 5px 12px; border-radius: 99px; }

.sl-page { display: grid; gap: 18px; }
.page:has(.sl-page) { max-width: 1280px; }
.sl-back { justify-self: start; }

/* sua coleção */
.sl-coll { display: grid; grid-template-columns: minmax(220px, auto) minmax(0, 1fr) auto; gap: 20px 28px; align-items: center; padding: clamp(18px, 2vw, 26px); border-radius: 22px; background: #16121f; color: #ffffff; }
.sl-eyebrow { font-size: .72rem; font-weight: 800; letter-spacing: .12em; color: #ffc533; }
.sl-coll-h h2 { margin: 4px 0 2px; color: #ffffff; font-size: clamp(2.4rem, 3vw, 3.2rem); line-height: .95; }
.sl-coll-h h2 span { color: #a39dba; }
.sl-coll-h p { margin: 0; font-size: .88rem; color: #c9c4d8; }
.sl-coll-stats { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 10px; font-size: .78rem; color: #c9c4d8; }
.sl-coll-stats span { display: inline-flex; align-items: center; gap: 6px; }
.sl-coll-stats i { width: 8px; height: 8px; border-radius: 50%; }
.dot-done { background: #22c55e; } .dot-going { background: #ffc533; } .dot-new { background: #5b5470; }
.sl-coll-seals { display: flex; flex-wrap: wrap; gap: 8px; min-width: 0; }
.sl-coll-seals a { border-radius: 50%; transition: transform .15s; }
.sl-coll-seals a:hover { transform: translateY(-2px) scale(1.06); }
.sl-coll-seals .seal.is-off { opacity: .3; }
.sl-coll-go { display: grid; gap: 3px; max-width: 260px; padding: 14px 16px; border-radius: 16px; background: #ffc533; color: #16121f; text-decoration: none; }
.sl-coll-go:hover { background: #ffd15c; color: #16121f; }
.sl-coll-go span { font-size: .66rem; font-weight: 900; letter-spacing: .12em; }
.sl-coll-go b { font-size: .95rem; line-height: 1.25; }
.sl-coll-go em { font-style: normal; font-size: .8rem; color: #4b4560; }

/* categorias e ingressos */
.sl-cat { display: grid; gap: 12px; }
.sl-cat-h { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-top: 6px; }
.sl-cat-h h3 { margin: 0; font-size: clamp(1.5rem, 1.6vw, 1.9rem); }
.sl-cat-h span { font-size: .85rem; color: var(--faint); }
.sl-cat-h a { margin-left: auto; font-weight: 800; font-size: .9rem; color: var(--st-deep); text-decoration: none; }
.sl-list { display: grid; gap: 12px; }
.sl-ticket { position: relative; display: flex; min-height: 124px; border-radius: 18px; background: #ffffff; color: var(--text); text-decoration: none; transition: transform .15s, box-shadow .15s; }
a.sl-ticket:hover { color: var(--text); transform: translateY(-2px); box-shadow: 0 10px 26px rgba(22, 18, 31, .08); }
.sl-tk-art { position: relative; flex: none; width: clamp(110px, 11vw, 150px); border-radius: 18px 0 0 18px; display: grid; place-items: center; overflow: hidden; background: radial-gradient(circle at 30% 20%, var(--c2), var(--c) 60%, var(--c3)); }
.sl-tk-art::before { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(135deg, rgba(255, 255, 255, .09) 0 8px, transparent 8px 18px); }
.sl-tk-art .seal { box-shadow: 0 6px 16px rgba(0, 0, 0, .18); }
.sl-tk-body { flex: 1; min-width: 0; display: grid; align-content: center; gap: 4px; padding: 14px 22px; }
.sl-tk-title { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.sl-tk-title b { font-family: var(--display); font-weight: 900; font-size: clamp(1.35rem, 1.5vw, 1.65rem); line-height: 1; }
.sl-tag { font-size: .66rem; font-weight: 800; letter-spacing: .08em; padding: 3px 8px; border-radius: 99px; background: var(--soft); color: var(--deep); }
.sl-ticket.is-done .sl-tag { background: #dcfce7; color: #166534; }
.sl-tk-text { font-size: .9rem; color: var(--muted); }
.sl-tk-sub { font-size: .84rem; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sl-tk-sub b { font-size: .68rem; letter-spacing: .08em; color: var(--c3); }
.sl-tk-meta { font-size: .78rem; font-weight: 600; color: var(--faint); }
.sl-tk-stub { position: relative; flex: none; width: 236px; display: flex; align-items: center; gap: 14px; padding: 14px 18px; box-sizing: border-box; border-left: 2px dashed color-mix(in srgb, var(--c) 35%, #ffffff); border-radius: 0 18px 18px 0; background: var(--soft); }
.sl-tk-stub::before, .sl-tk-stub::after { content: ""; position: absolute; left: -12px; width: 22px; height: 22px; border-radius: 50%; background: var(--bg); }
.sl-tk-stub::before { top: -11px; } .sl-tk-stub::after { bottom: -11px; }
.sl-ring { flex: none; width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(var(--c) calc(var(--p) * 1%), color-mix(in srgb, var(--c) 18%, #ffffff) 0); }
.sl-ring b { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: var(--soft); font-size: .8rem; font-weight: 900; color: var(--deep); }
.sl-tk-act { display: grid; gap: 6px; min-width: 0; }
.sl-tk-lbl { font-size: .68rem; font-weight: 800; letter-spacing: .08em; color: var(--deep); }
.sl-tk-cta { justify-self: start; padding: 8px 14px; border-radius: 10px; font-weight: 800; font-size: .84rem; background: #ffffff; color: #16121f; border: 1.5px solid #16121f; }
.sl-ticket.is-going .sl-tk-cta { background: #ffc533; border-color: #ffc533; }
.sl-ticket.is-done .sl-tk-cta { background: #16121f; color: #ffffff; }
.sl-ticket.is-soon { opacity: .7; }

/* página da trilha */
.sl-hero { position: relative; overflow: hidden; display: grid; gap: 10px; justify-items: center; text-align: center; padding: 20px clamp(18px, 2.4vw, 30px) 26px; border-radius: 22px; color: var(--ink); background: radial-gradient(circle at 50% 38%, var(--c2) 0, var(--c) 40%, var(--c3) 100%); }
.sl-hero::before { content: ""; position: absolute; inset: 0; background: repeating-conic-gradient(from 0deg at 50% 36%, rgba(255, 255, 255, .06) 0 6deg, transparent 6deg 15deg); pointer-events: none; }
.sl-hero > * { position: relative; }
.sl-hero-top { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.sl-hero-back { color: inherit; opacity: .85; font-size: .88rem; font-weight: 600; }
.sl-hero-back:hover { color: inherit; opacity: 1; }
.sl-hero-go { background: #ffc533; color: #16121f; max-width: 100%; }
.sl-hero-go:hover { background: #ffd15c; color: #16121f; }
.sl-hero-mid { width: 100%; display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 20px; padding-bottom: 10px; }
.sl-hero-stat { display: grid; gap: 4px; justify-items: start; text-align: left; padding-left: clamp(0px, 3vw, 48px); }
.sl-hero-stat.is-r { justify-items: end; text-align: right; padding: 0 clamp(0px, 3vw, 48px) 0 0; }
.sl-hero-stat b { font-family: var(--display); font-weight: 900; font-size: clamp(3rem, 4.4vw, 4.2rem); line-height: .9; }
.sl-hero-stat b span { font-size: .55em; opacity: .65; }
.sl-hero-stat small { font-size: .72rem; font-weight: 800; letter-spacing: .1em; opacity: .85; }
.sl-hero-note { font-size: .84rem; opacity: .85; }
.sl-segs { display: flex; gap: 5px; margin-top: 8px; }
.sl-segs i { width: 22px; height: 6px; border-radius: 9px; background: color-mix(in srgb, var(--ink) 28%, transparent); }
.sl-segs i.on { background: var(--ink); }
.sl-hero .seal { box-shadow: 0 16px 40px rgba(0, 0, 0, .28); }
.sl-hero h1 { margin: 14px 0 0; color: inherit; font-size: clamp(2.2rem, 3vw + 1vh, 3.4rem); line-height: .95; }
.sl-hero p { margin: 0; max-width: 68ch; opacity: .92; }
.sl-hero-chips { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin-top: 4px; }
.sl-hero-chips span { font-size: .78rem; font-weight: 700; padding: 5px 12px; border-radius: 99px; background: rgba(22, 18, 31, .22); }

.sl-path { display: grid; gap: 4px; padding: clamp(16px, 2vw, 26px); border-radius: 22px; background: #ffffff; }
.sl-path-h { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 8px; }
.sl-path-h h2 { margin: 0; font-size: clamp(1.6rem, 1.8vw, 2rem); }
.sl-path-h span { font-size: .85rem; color: var(--faint); }
.sl-stage { position: relative; padding: 0 0 22px 58px; }
.sl-stage::before { content: ""; position: absolute; left: 21px; top: 44px; bottom: 0; border-left: 3px dashed var(--line-strong); }
.sl-stage.is-ok::before { border-left-style: solid; border-left-color: var(--c); }
.sl-stage-n { position: absolute; left: 0; top: 0; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; font-family: var(--display); font-weight: 900; font-size: 1.4rem; background: var(--st-card); color: var(--faint); }
.sl-stage.is-ok .sl-stage-n { background: var(--c); color: var(--ink); }
.sl-stage.is-cur .sl-stage-n { background: #ffc533; color: #16121f; box-shadow: 0 0 0 5px color-mix(in srgb, #ffc533 30%, transparent); }
.sl-stage-h > div { display: grid; gap: 2px; padding-top: 2px; }
.sl-stage-h small { font-size: .7rem; font-weight: 800; letter-spacing: .08em; color: var(--c3); }
.sl-stage.is-lock .sl-stage-h small { color: var(--faint); }
.sl-stage-h a, .sl-stage-h b { font-family: var(--display); font-weight: 900; font-size: 1.4rem; line-height: 1.05; color: var(--text); text-decoration: none; }
.sl-stage-h a:hover { color: var(--st-deep); }
.sl-stage-h span { font-size: .86rem; color: var(--muted); }
.sl-stops { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.sl-stop { width: 156px; display: grid; justify-items: center; align-content: start; gap: 4px; padding: 12px 10px; border-radius: 14px; background: #f6f5f9; color: var(--text); text-decoration: none; text-align: center; }
a.sl-stop:hover { color: var(--text); box-shadow: inset 0 0 0 1.5px var(--c); }
.sl-stop-m { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: #ffffff; border: 2px solid var(--line-strong); font-weight: 900; font-size: .9rem; color: var(--muted); }
.sl-stop.is-exam .sl-stop-m { border-radius: 11px; }
.sl-stop.is-ok .sl-stop-m { background: var(--c); border-color: var(--c); color: var(--ink); }
.sl-stop.is-cur { background: var(--soft); box-shadow: inset 0 0 0 2px var(--c); }
.sl-stop.is-cur .sl-stop-m { background: #ffc533; border-color: #ffc533; color: #16121f; }
.sl-stop.is-lock { opacity: .55; }
.sl-stop b { font-size: .84rem; line-height: 1.25; }
.sl-stop small { font-size: .74rem; color: var(--faint); }
.sl-finale { padding: 20px; border-radius: 18px; background: #16121f; color: #ffffff; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 18px; align-items: center; }
.sl-finale::before { display: none; }
.sl-finale-goal small { font-size: .72rem; font-weight: 800; letter-spacing: .1em; color: #ffc533; }
.sl-finale-goal ul { margin: 8px 0 0; padding-left: 18px; display: grid; gap: 4px; font-size: .92rem; color: #e4e1ec; }
.sl-finale-goal p { margin: 6px 0 0; color: #e4e1ec; }
.sl-finale .sl-stops { margin: 0; flex-wrap: nowrap; }
.sl-finale .sl-stop { background: #2a2340; color: #ffffff; }
.sl-finale .sl-stop small { color: #a39dba; }
.sl-finale .sl-stop.is-cur { background: #2a2340; box-shadow: inset 0 0 0 2px #ffc533; }
.sl-stop.is-seal { opacity: 1; }
.sl-stop.is-seal .seal { margin-bottom: 4px; }

/* módulo, aula, prova final e certificado */
.sl-modhead { display: flex; align-items: center; gap: 20px; padding: clamp(16px, 2vw, 24px); margin-bottom: 18px; border-radius: 22px; color: var(--ink); background: radial-gradient(circle at 15% 30%, var(--c2), var(--c) 55%, var(--c3)); }
.sl-modhead > div { display: grid; gap: 4px; min-width: 0; }
.sl-modhead h2 { margin: 0; color: inherit; font-size: clamp(1.9rem, 2.4vw, 2.6rem); line-height: 1; }
.sl-modhead p { margin: 0; opacity: .92; }
.sl-modhead-t { color: inherit; font-size: .84rem; font-weight: 700; opacity: .85; }
.sl-modhead-t:hover { color: inherit; opacity: 1; }
.sl-modhead .sl-modhead-goal { margin-top: 6px; padding: 8px 12px; border-radius: 10px; background: rgba(22, 18, 31, .16); }
.st-ring-seal { background: radial-gradient(circle at 35% 30%, var(--c2), var(--c) 55%, var(--c3)); }
.st-ring-seal b { background: transparent; font-size: 1.15rem; font-family: inherit; }
.sl-unlock { position: relative; overflow: hidden; display: grid; justify-items: center; gap: 14px; text-align: center; padding: 30px 24px 26px; border-radius: 22px; background: radial-gradient(circle at 50% 40%, color-mix(in srgb, var(--c) 55%, #16121f), #16121f 70%); color: #ffffff; }
.sl-unlock::before { content: ""; position: absolute; inset: 0; background: repeating-conic-gradient(from 0deg at 50% 40%, rgba(255, 255, 255, .05) 0 6deg, transparent 6deg 15deg); pointer-events: none; }
.sl-unlock > * { position: relative; }
.sl-unlock-eye { font-size: .78rem; font-weight: 900; letter-spacing: .2em; color: #ffc533; }
.sl-unlock .seal { box-shadow: 0 0 0 10px color-mix(in srgb, #ffc533 22%, transparent), 0 0 60px color-mix(in srgb, #ffc533 45%, transparent); animation: sl-pop .6s cubic-bezier(.2, 1.4, .4, 1) both; }
.sl-unlock h2 { margin: 16px 0 0; color: #ffffff; font-size: clamp(2rem, 3vw, 2.8rem); line-height: 1; }
.sl-unlock p { margin: 0; color: #c9c4d8; }
@keyframes sl-pop { from { transform: scale(.6); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.result-hero.is-under { margin-top: 16px; }
.cert.sl-cert { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 28px; align-items: center; text-align: left; background: #fffaf3; color: #16121f; border-color: var(--c); }
.cert.sl-cert::before { border-color: color-mix(in srgb, var(--c) 40%, transparent); }
.cert.sl-cert h1 { color: var(--c3); font-size: clamp(2.2rem, 5vw, 3.8rem); }
.cert.sl-cert .who { color: #16121f; font-size: clamp(2.2rem, 5vw, 3.8rem); }
.cert.sl-cert .muted, .cert.sl-cert .code { color: #6b6585; }
.sl-cert-eye { display: block; margin-top: 24px; font-size: .78rem; font-weight: 900; letter-spacing: .16em; color: var(--c3); }
.sl-cert-main p { margin: 6px 0; }
.sl-cert-seal { padding: 0 10px 14px; }

@media (max-width: 1100px) { .sl-coll { grid-template-columns: minmax(0, 1fr); } .sl-coll-go { max-width: none; } }
@media (max-width: 760px) {
  .sl-ticket { flex-wrap: wrap; }
  .sl-tk-art { width: 96px; border-radius: 18px 0 0 0; }
  .sl-tk-art .seal { --s: 58px !important; }
  .sl-tk-body { flex: 1 1 calc(100% - 96px); padding: 12px 14px; }
  .sl-tk-sub { white-space: normal; }
  .sl-tk-stub { width: 100%; border-left: 0; border-top: 2px dashed color-mix(in srgb, var(--c) 35%, #ffffff); border-radius: 0 0 18px 18px; }
  .sl-tk-stub::before, .sl-tk-stub::after { display: none; }
  .sl-hero-mid { grid-template-columns: 1fr 1fr; }
  .sl-hero-mid .seal { grid-row: 1; grid-column: 1 / -1; justify-self: center; --s: 120px !important; }
  .sl-hero-stat, .sl-hero-stat.is-r { padding: 0; }
  .sl-stage { padding-left: 0; }
  .sl-stage::before { display: none; }
  .sl-stage-n { position: static; width: 38px; height: 38px; font-size: 1.15rem; flex: none; }
  .sl-stage-h { display: flex; gap: 10px; align-items: flex-start; }
  .sl-stop { width: calc(50% - 5px); box-sizing: border-box; }
  .sl-finale { grid-template-columns: minmax(0, 1fr); }
  .sl-stage.sl-finale { padding: 18px; }
  .sl-finale .sl-stops { flex-wrap: wrap; }
  .cert.sl-cert { grid-template-columns: minmax(0, 1fr); }
  .sl-modhead { flex-direction: column; align-items: flex-start; }
}
html[data-mode="mobile"] .sl-coll { grid-template-columns: minmax(0, 1fr); }
@media print { .cert.sl-cert { background: #fff; } }

.cat-result:has(.sl-cat) { display: grid; gap: 28px; }

/* trilhas: faixa "continue de onde parou" na cor da trilha */
.sl-resume { display: flex; align-items: center; gap: 18px; padding: 16px 20px; border-radius: 20px; color: var(--ink); text-decoration: none; background: radial-gradient(circle at 10% 30%, var(--c2), var(--c) 55%, var(--c3)); }
.sl-resume:hover { color: var(--ink); filter: brightness(1.04); }
.sl-resume-t { flex: 1; min-width: 0; display: grid; gap: 2px; }
.sl-resume-t small { font-size: .7rem; font-weight: 900; letter-spacing: .12em; opacity: .85; }
.sl-resume-t b { font-family: var(--display); font-weight: 900; font-size: clamp(1.4rem, 1.6vw, 1.8rem); line-height: 1.05; }
.sl-resume-t span { font-size: .88rem; opacity: .88; }
.sl-resume-go { flex: none; background: #ffc533; color: #16121f; }
.voce .sl-coll, .page-head + .sl-coll { margin-bottom: 4px; }
@media (max-width: 760px) { .sl-resume { flex-wrap: wrap; } .sl-resume-go { width: 100%; justify-content: center; } }

/* trilha: o caminho serpenteante até o selo */
.sl-track { position: relative; display: grid; gap: 4px; margin-top: 6px; padding: 0 clamp(30px, 4vw, 56px); }
.sl-track-svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.sl-road { fill: none; stroke: #e4e1ec; stroke-width: 12; stroke-linecap: round; stroke-dasharray: 2 22; }
.sl-road-done { fill: none; stroke: var(--c); stroke-width: 12; stroke-linecap: round; }
.sl-road-dash { fill: none; stroke: #ffffff; stroke-width: 2; stroke-linecap: round; stroke-dasharray: 6 10; opacity: .7; }
.sl-row { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); }
.sl-row.is-rev { direction: rtl; }
.sl-row.is-rev > * { direction: ltr; }
.sl-pt { min-width: 0; display: grid; grid-template-rows: 46px auto; justify-items: center; text-align: center; padding: 0 6px; }
.sl-pt-mod { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; max-width: 100%; overflow: hidden; align-self: end; line-height: 1.2; font-size: .8rem; font-weight: 800; color: var(--text); text-decoration: none; }
.sl-pt-mod small { display: block; font-size: .64rem; letter-spacing: .1em; color: var(--c3); }
.sl-pt-mod.is-lock small { color: var(--faint); }
a.sl-pt-mod:hover { color: var(--st-deep); }
.sl-pt-node { display: grid; grid-template-rows: 108px auto; justify-items: center; align-items: center; gap: 4px; padding: 0 2px 16px; color: var(--text); text-decoration: none; }
a.sl-pt-node:hover { color: var(--text); }
a.sl-pt-node:hover .sl-pt-txt b { text-decoration: underline; }
.sl-mk { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; box-sizing: border-box; background: #ffffff; border: 3px solid #e4e1ec; color: var(--muted); font-weight: 900; font-size: 1.05rem; transition: transform .15s; }
.sl-mk b { display: grid; place-items: center; }
.sl-mk.is-ok { background: var(--c); border: 4px solid #ffffff; box-shadow: 0 0 0 2px var(--c); color: var(--ink); }
.sl-mk.is-cur { width: 72px; height: 72px; border: 0; background: #ffc533; color: #16121f; font-size: 1.4rem; box-shadow: 0 0 0 8px rgba(255, 197, 51, .3), 0 0 0 16px rgba(255, 197, 51, .12); }
.sl-mk.is-lock { background: #f4f3f7; color: var(--faint); }
.sl-mk.is-exam, .sl-mk.is-final { width: 54px; height: 54px; border-radius: 16px; transform: rotate(45deg); font-size: .9rem; }
.sl-mk.is-exam b, .sl-mk.is-final b { transform: rotate(-45deg); }
.sl-mk.is-exam.is-cur, .sl-mk.is-final.is-cur { width: 62px; height: 62px; }
.sl-mk.is-final { background: #16121f; border-color: #16121f; color: #ffffff; font-size: .68rem; letter-spacing: .06em; }
.sl-mk.is-final.is-ok { background: var(--c); color: var(--ink); }
.sl-mk.is-final.is-cur { background: #ffc533; color: #16121f; }
.sl-pt-txt { display: grid; gap: 2px; max-width: 170px; }
.sl-pt-txt em { font-style: normal; font-size: .62rem; font-weight: 900; letter-spacing: .12em; color: var(--c3); }
.sl-pt-txt b { font-size: .84rem; line-height: 1.25; }
.sl-pt-txt small { font-size: .74rem; color: var(--faint); }
.sl-pt.is-lock .sl-pt-txt { opacity: .6; }
.sl-pt.is-seal .sl-pt-txt b { font-size: .92rem; }
.sl-goal { margin-top: 8px; padding: 18px 20px; border-radius: 18px; background: #16121f; color: #ffffff; }
.sl-goal small { font-size: .72rem; font-weight: 800; letter-spacing: .1em; color: #ffc533; }
.sl-goal ul { margin: 8px 0 0; padding-left: 18px; display: grid; gap: 4px; font-size: .92rem; color: #e4e1ec; }
.sl-goal p { margin: 6px 0 0; color: #e4e1ec; }

/* ───── Processos: mais contraste (preto, roxo e o amarelo de destaque) ───── */
.pr-top { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 18px 28px; align-items: end; padding: clamp(20px, 2.4vw, 30px); border-radius: 22px; background: #16121f; color: #ffffff; }
.pr-top-t h1 { margin: 10px 0 6px; color: #ffffff; font-size: clamp(2.6rem, 3.4vw, 3.6rem); line-height: .92; }
.pr-top-t p { margin: 0; max-width: 56ch; color: #c9c4d8; }
.pr-top-side { display: grid; gap: 14px; justify-items: end; }
.pr-top-stats { display: flex; gap: 24px; }
.pr-top-stats div { display: grid; text-align: right; }
.pr-top-stats b { font-family: var(--display); font-weight: 900; font-size: 2.6rem; line-height: .9; color: #ffc533; }
.pr-top-stats span { font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #a39dba; }
.pr-top .pr-search { width: min(360px, 100%); background: #2a2340; color: #a39dba; }
.pr-top .pr-search .input { color: #ffffff; }
.pr-top .pr-search .input::placeholder { color: #8d86a3; }
.pr-jump { grid-column: 1 / -1; display: flex; gap: 8px; flex-wrap: wrap; padding-top: 16px; border-top: 1px solid #2e2840; }
.pr-jump a { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: #2a2340; color: #e4e1ec; font-size: .86rem; font-weight: 700; text-decoration: none; }
.pr-jump a b { color: #ffc533; font-size: .74rem; }
.pr-jump a:hover { background: #ffc533; color: #16121f; }
.pr-jump a:hover b { color: #16121f; }

.pr-groups { gap: 30px; }
.pr-group { scroll-margin-top: 80px; }
.pr-group-h { align-items: center; gap: 14px; margin-bottom: 12px; padding-bottom: 10px; border-bottom: 2px solid #16121f; }
.pr-group-n { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: #16121f; color: #ffc533; font-family: var(--display); font-weight: 900; font-size: 1.35rem; }
.pr-group-h h2 { font-size: clamp(1.7rem, 2vw, 2.2rem); }
.pr-group-c { margin-left: auto; font-size: .78rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--st-deep); background: var(--st-soft); padding: 5px 12px; border-radius: 999px; }
.pr-cards { grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.pr-card { flex-direction: row; align-items: flex-start; gap: 14px; padding: 18px; border: 1.5px solid #e4e1ec; transition: background .15s, border-color .15s, transform .15s; }
.pr-card:hover { background: #16121f; border-color: #16121f; color: #ffffff; transform: translateY(-2px); }
.pr-card-n { flex: none; font-family: var(--display); font-weight: 900; font-size: 2rem; line-height: .9; color: var(--st-deep); }
.pr-card:hover .pr-card-n { color: #ffc533; }
.pr-card-b { flex: 1; min-width: 0; display: grid; gap: 8px; }
.pr-card b { font-family: var(--display); font-weight: 900; font-size: 1.35rem; line-height: 1.05; }
.pr-card-meta { display: flex; gap: 6px 14px; flex-wrap: wrap; font-size: .8rem; font-weight: 700; color: var(--text); }
.pr-card-meta span { display: inline-flex; align-items: center; gap: 5px; }
.pr-card-meta svg { color: var(--st-deep); }
.pr-card:hover .pr-card-meta { color: #ffffff; }
.pr-card:hover .pr-card-meta svg { color: #ffc533; }
.pr-card .pr-when { font-size: .82rem; color: var(--muted); }
.pr-card:hover .pr-when { color: #c9c4d8; }
.pr-card-go { flex: none; align-self: center; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--st-card); color: var(--text); }
.pr-card:hover .pr-card-go { background: #ffc533; color: #16121f; }
.pr-card.is-draft { opacity: 1; border-style: dashed; background: transparent; }
.pr-card.is-draft .pr-card-n { color: var(--faint); }

/* página do processo: passo a passo em linha do tempo, resultado em bloco escuro */
.pr-panel > .pr-h { font-family: var(--display); font-weight: 900; font-size: 1.5rem; letter-spacing: 0; text-transform: none; }
.pr-mini > .pr-h { font-size: 1.2rem; }
.pr-steps { gap: 0; }
.pr-step { position: relative; gap: 16px; padding-bottom: 20px; }
.pr-step::before { content: ""; position: absolute; left: 16px; top: 36px; bottom: 0; width: 2px; background: #e4e1ec; }
.pr-step:last-child::before { display: none; }
.pr-n { width: 34px; height: 34px; font-size: .95rem; background: #16121f; color: #ffc533; box-shadow: 0 0 0 4px #ffffff; position: relative; }
.pr-box { width: 34px; height: 34px; position: relative; }
.pr-step-b > b { font-size: 1.05rem; }
.pr-output { background: #16121f; color: #ffffff; padding: 18px 20px; }
.pr-output span { color: #ffc533; }
.pr-output p { color: #ffffff; font-size: 1.02rem; }
.pr-err { border-left-width: 4px; padding: 8px 12px; border-radius: 0 10px 10px 0; background: #fdf2f4; }
.pr-err + .pr-err { margin-top: 6px; }
.pr-mini .pr-chip { background: #16121f; color: #ffffff; }
.pr-flow { border: 1.5px solid #e4e1ec; }

@media (max-width: 860px) {
  .pr-top { grid-template-columns: minmax(0, 1fr); }
  .pr-top-side { justify-items: stretch; }
  .pr-top-stats div { text-align: left; }
  .pr-top .pr-search { width: 100%; }
}
html[data-mode="mobile"] .pr-top { grid-template-columns: minmax(0, 1fr); }
html[data-mode="mobile"] .pr-top-side { justify-items: stretch; }
.pr-card-n { min-width: 2.3ch; }
.pr-card .pr-chip-warn { justify-self: start; }
.pr-group-h .pr-group-n { color: #ffc533; font-size: 1.35rem; }
.pr-group-h .pr-group-c { color: var(--st-deep); font-size: .78rem; }

/* ───── Processos com o design system das Trilhas, em grafite e branco ───── */
.pd-seal-e { color: #ffffff; }
.pd .sl-tk-art .seal-e svg, .pd .sl-hero .seal-e svg { display: block; }
.pd .sl-ticket.is-soon { opacity: .65; }
.pd .sl-tk-lbl { color: var(--muted); }
.pd-detail { display: grid; grid-template-columns: minmax(0, 1fr) clamp(260px, 26vw, 330px); gap: 16px; align-items: start; }
.pd-steps { display: grid; gap: 14px; padding: clamp(16px, 2vw, 26px); border-radius: 22px; background: #ffffff; }
.pd-steps h2 { margin: 0; font-size: clamp(1.6rem, 1.8vw, 2rem); }
.pd-side { display: grid; gap: 12px; position: sticky; top: 76px; }
.pd-box { display: grid; gap: 10px; padding: 18px; border-radius: 18px; background: #ffffff; }
.pd-box h3 { margin: 0; font-size: 1.25rem; }
.pd .pr-n { background: #16121f; color: #ffffff; }
.pd .pr-step { scroll-margin-top: 90px; }
.pd .pr-err { background: #f6f5f9; border-left-color: #16121f; }
.pd .pr-branch.is-bad, .pd .pr-branch.is-good { background: #f6f5f9; }
.pd .pr-branch.is-bad > span, .pd .pr-branch.is-good > span { color: #16121f; }
.pd .pr-branch.is-good { box-shadow: inset 3px 0 0 #16121f; }
.pd .pr-links a { background: #f1eff6; color: #16121f; }
.pd .pr-links a:hover { background: #16121f; color: #ffffff; }
.pd .pr-flow { border: 0; }
.pd .sl-goal { scroll-margin-top: 90px; }
button.sl-pt-node { border: 0; background: none; font: inherit; cursor: pointer; width: 100%; }
button.sl-pt-node:hover .sl-pt-txt b { text-decoration: underline; }
@media (max-width: 980px) { .pd-detail { grid-template-columns: minmax(0, 1fr); } .pd-side { position: static; } }
html[data-mode="mobile"] .pd-detail { grid-template-columns: minmax(0, 1fr); }
html[data-mode="mobile"] .pd-side { position: static; }
.pd .sl-pt { grid-template-rows: auto; }
.pd .sl-pt-mod.is-empty { display: none; }

/* ───── Administração · editor de Processos ───── */
.pd-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; flex-wrap: wrap; }
.pa { display: grid; grid-template-columns: minmax(240px, 320px) minmax(0, 1fr); gap: 16px; align-items: start; margin-top: 16px; }
.pa-list { display: grid; gap: 12px; position: sticky; top: 130px; max-height: calc(100vh - 150px); overflow: auto; }
.pa-group { display: grid; gap: 4px; padding: 12px; border-radius: 16px; background: #ffffff; }
.pa-group-h { display: flex; justify-content: space-between; align-items: baseline; padding: 0 4px 4px; }
.pa-row { display: flex; align-items: center; gap: 4px; border-radius: 10px; }
.pa-row.is-on { background: #16121f; }
.pa-row.is-on .pa-pick { color: #ffffff; }
.pa-row.is-on .icon-btn { color: #ffffff; }
.pa-pick { flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px; padding: 8px; border: 0; background: none; color: var(--text); font: inherit; font-size: .88rem; text-align: left; cursor: pointer; }
.pa-pick > span:nth-child(2) { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pa-n { flex: none; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; background: var(--st-card); font-size: .7rem; font-weight: 800; color: var(--text); }
.pa-add { justify-self: start; margin: 4px 0 0 8px; }
.pa-panel { display: grid; gap: 14px; }
.pa-h { margin: 8px 0 0; font-size: 1.2rem; }
.pa-check { display: flex; align-items: center; gap: 8px; font-size: .9rem; }
.pa-steps { display: grid; gap: 12px; }
.pa-step { display: grid; gap: 8px; padding: 14px; border-radius: 14px; background: #f6f5f9; }
.pa-branch { display: grid; gap: 8px; padding: 10px; border-radius: 10px; background: #ffffff; }
@media (max-width: 900px) { .pa { grid-template-columns: minmax(0, 1fr); } .pa-list { position: static; max-height: none; } }
.pa-pick .chip { flex: none; }
.pa-row.is-on .chip { background: #3a3350; color: #ffffff; border-color: #3a3350; }
.pa-row .ob-tools { flex: none; }
.pa-group { overflow: hidden; }

/* ───── Perfil (opção B do quadro): crachá + evolução + selos + configurações em abas ───── */
.page:has(.me) { max-width: 1280px; }
.me { display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: 32px; align-items: start; }
.me > .cr { position: sticky; top: 70px; }
.cr { display: flex; flex-direction: column; align-items: center; }
.cr-strap { position: relative; width: 300px; height: 64px; }
.cr-strap span { position: absolute; top: -30px; width: 18px; height: 96px; border-radius: 3px; transform-origin: bottom center; }
.cr-strap span:first-child { left: 104px; transform: rotate(-24deg); background: repeating-linear-gradient(45deg, #5b21b6 0 8px, #6d28d9 8px 16px); }
.cr-strap span:nth-child(2) { right: 104px; transform: rotate(24deg); background: repeating-linear-gradient(-45deg, #5b21b6 0 8px, #6d28d9 8px 16px); }
.cr-strap i { position: absolute; left: 50%; bottom: 4px; transform: translateX(-50%); width: 36px; height: 26px; border-radius: 8px 8px 4px 4px; background: linear-gradient(#e4e1ec, #a39dba); border: 1px solid #8f8aa3; box-sizing: border-box; }
.cr-card { position: relative; width: 100%; max-width: 320px; overflow: hidden; border-radius: 22px; background: #ffffff; border: 1px solid #e4e1ec; box-shadow: 0 10px 24px -14px rgba(22, 18, 31, .35); }
.cr-top { position: relative; overflow: hidden; display: flex; align-items: center; justify-content: space-between; padding: 40px 22px 66px; background: #16121f; color: #ffffff; }
.cr-top::before { content: ""; position: absolute; inset: -60%; background: repeating-conic-gradient(from 0deg at 50% 50%, rgba(255, 255, 255, .07) 0 6deg, transparent 6deg 18deg); }
.cr-top > * { position: relative; }
.cr-hole { position: absolute !important; top: 12px; left: 50%; transform: translateX(-50%); width: 64px; height: 12px; border-radius: 999px; background: #f4f3f7; box-shadow: inset 0 2px 3px rgba(0, 0, 0, .4); }
.cr-brand { display: flex; align-items: center; gap: 8px; }
.cr-logo { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; background: #ffffff; color: #16121f; }
.cr-brand b { font-family: var(--display); font-weight: 900; font-size: 1.05rem; line-height: .9; }
.cr-year { padding: 4px 9px; border-radius: 999px; background: #ffc533; color: #16121f; font-size: .64rem; font-weight: 800; letter-spacing: .14em; }
.cr-body { position: relative; display: flex; flex-direction: column; align-items: center; margin-top: -56px; padding: 0 20px 20px; }
.cr-avatar { display: block; border-radius: 50%; border: 5px solid #ffffff; background: #ffffff; }
.cr-body h1 { margin: 12px 0 0; font-size: clamp(1.8rem, 2.2vw, 2.15rem); line-height: .95; text-align: center; }
.cr-role { margin-top: 8px; padding: 4px 12px; border-radius: 999px; background: #ede5fb; color: #5b21b6; font-size: .68rem; font-weight: 800; letter-spacing: .14em; }
.cr-mail { margin-top: 6px; font-size: .82rem; color: var(--muted); overflow-wrap: anywhere; text-align: center; }
.cr-h { width: 100%; margin-top: 18px; font-size: .64rem; font-weight: 800; letter-spacing: .12em; color: var(--muted); }
.cr-pins { width: 100%; display: grid; gap: 12px; margin-top: 10px; }
.cr-pin { position: relative; display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 14px; border: 1px dashed #d9d3e6; background: #f7f5fb; color: var(--text); text-decoration: none; }
.cr-pin::before { content: ""; position: absolute; top: -5px; left: 30px; width: 10px; height: 10px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #ffffff, #8f8aa3 60%, #4b4560); box-shadow: 0 1px 1px rgba(0, 0, 0, .25); }
.cr-pin:hover { color: var(--text); border-color: var(--c); }
.cr-pin-t { flex: 1; min-width: 0; display: grid; gap: 5px; }
.cr-pin-t b { font-size: .8rem; line-height: 1.2; }
.cr-bar { display: block; height: 5px; border-radius: 999px; background: #e4e1ec; overflow: hidden; }
.cr-bar i { display: block; height: 100%; background: var(--c); }
.cr-pin-t small { font-size: .7rem; color: var(--muted); }
.cr-empty { width: 100%; margin: 10px 0 0; padding: 12px; border-radius: 14px; border: 1px dashed #d9d3e6; font-size: .82rem; color: var(--muted); text-align: center; }
.cr-stripe { height: 10px; background: repeating-linear-gradient(90deg, #5b21b6 0 18px, #ffc533 18px 36px); }

.me-main { display: grid; gap: 26px; min-width: 0; }
.me-crumb { display: flex; justify-content: space-between; align-items: center; font-size: .84rem; color: var(--muted); }
.me-sec { display: grid; gap: 12px; }
.me-sec-h { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.me-sec-h h2 { margin: 0; font-size: clamp(2rem, 2.6vw, 2.6rem); line-height: .95; }
.me-sec-h span { font-size: .84rem; color: var(--muted); }
.me-panel { padding: clamp(16px, 2vw, 24px); border-radius: 22px; background: #ffffff; }
.me-evo { display: grid; gap: 10px; }
.me-evo-top { display: flex; justify-content: space-between; align-items: baseline; }
.me-evo-top small { font-size: .7rem; font-weight: 800; letter-spacing: .1em; color: var(--muted); }
.me-evo-top b { font-family: var(--display); font-weight: 900; font-size: 2rem; line-height: 1; }
.me-evo-top b span { font-family: var(--body); font-size: .95rem; font-weight: 600; color: var(--muted); }
.me-evo-bar { height: 10px; background: #ede5fb; }
.me-evo-bar i { background: #5b21b6; }
.me-evo-legend { display: flex; gap: 18px; flex-wrap: wrap; font-size: .8rem; color: var(--muted); }
.me-evo-legend b { color: var(--text); }
.me-evo-row { display: grid; grid-template-columns: 150px 150px minmax(0, 1fr); gap: 12px; margin-top: 6px; }
.me-num { display: grid; align-content: center; gap: 2px; padding: 14px 16px; border-radius: 16px; background: #f6f5f9; }
.me-num b { font-family: var(--display); font-weight: 900; font-size: 2.3rem; line-height: .95; }
.me-num span { font-size: .78rem; font-weight: 600; color: var(--muted); }
.me-go { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: 16px; background: #16121f; color: #ffffff; text-decoration: none; }
.me-go:hover { color: #ffffff; background: #2a2340; }
.me-go > span:first-child { flex: 1; min-width: 0; display: grid; gap: 2px; }
.me-go small { font-size: .66rem; font-weight: 800; letter-spacing: .12em; color: #ffc533; }
.me-go b { font-size: .98rem; line-height: 1.25; }
.me-go em { font-style: normal; font-size: .8rem; color: #a39dba; }
.me-go-btn { flex: none; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: #ffc533; color: #16121f; }
.me-seals { display: grid; grid-template-columns: repeat(auto-fill, minmax(66px, 1fr)); gap: 14px 10px; }
.me-seal { display: grid; justify-items: center; gap: 4px; text-decoration: none; color: var(--muted); }
.me-seal small { font-size: .7rem; font-weight: 800; }
.me-seal:hover .seal { transform: translateY(-2px); }
.me-seal .seal { transition: transform .15s; }
.me-set { padding: 0; overflow: hidden; }
.me-tabs { display: flex; gap: 6px; padding: 0 20px; border-bottom: 1px solid #e4e1ec; }
.me-tab { padding: 14px 14px 12px; border: 0; border-bottom: 3px solid transparent; background: none; font: inherit; font-weight: 700; color: var(--muted); cursor: pointer; }
.me-tab[aria-selected="true"] { color: #5b21b6; border-bottom-color: #5b21b6; }
.me-tab-body { display: grid; }
.me-row { display: flex; align-items: center; justify-content: space-between; gap: 16px 24px; padding: 18px 22px; border-top: 1px solid #f1eff6; flex-wrap: wrap; }
.me-row:first-child { border-top: 0; }
.me-row > div:first-child { flex: 1 1 260px; min-width: 0; }
.me-row b { font-size: .98rem; }
.me-row p { margin: 2px 0 0; font-size: .84rem; color: var(--muted); }
.me-row.is-col { flex-direction: column; align-items: stretch; }
.me-ro { padding: 9px 14px; border-radius: 12px; background: #f4f3f7; font-size: .86rem; color: var(--text); }
.me-pass { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; align-items: end; }
.me-pass .btn { grid-column: 1 / -1; justify-self: start; }
.me-row .avatar-form { margin: 0; }

@media (max-width: 1100px) { .me-evo-row { grid-template-columns: 1fr 1fr; } .me-go { grid-column: 1 / -1; } }
@media (max-width: 960px) {
  .me { grid-template-columns: minmax(0, 1fr); }
  .me > .cr { position: static; }
  .me-pass { grid-template-columns: minmax(0, 1fr); }
}
html[data-mode="mobile"] .me { grid-template-columns: minmax(0, 1fr); }
html[data-mode="mobile"] .me > .cr { position: static; }
html[data-mode="mobile"] .me-pass { grid-template-columns: minmax(0, 1fr); }
.voce > .cr { margin-bottom: 8px; }

.me-row.is-col > div:first-child { flex: none; }

/* ───── Onboarding técnico (opção B do quadro): agenda da semana + dia em foco ───── */
.page:has(.oa) { max-width: 1320px; }
.oa { display: grid; gap: 18px; }
.oa-top { position: relative; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 14px 24px; align-items: center; padding: clamp(18px, 2vw, 26px); border-radius: 22px; background: #16121f; color: #ffffff; }
.oa-top::before { content: ""; position: absolute; inset: -40% -10% auto auto; width: 70%; height: 220%; background: repeating-conic-gradient(from 0deg at 80% 30%, rgba(255, 255, 255, .05) 0 6deg, transparent 6deg 16deg); pointer-events: none; }
.oa-top > * { position: relative; }
.oa-top-t small { font-size: .7rem; font-weight: 800; letter-spacing: .1em; color: #a39dba; }
.oa-top h1 { margin: 6px 0 0; color: #ffffff; font-size: clamp(2rem, 3vw, 2.9rem); line-height: .95; }
.oa-top h1 span { color: #ffffff; }
.oa-top-now { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; justify-content: flex-end; font-size: .88rem; color: #c9c4d8; }
.oa-top-now b { color: #ffffff; }
.oa-go { background: #ffc533; color: #16121f; }
.oa-go:hover { background: #ffd15c; color: #16121f; }
.oa-phases { grid-column: 1 / -1; display: flex; gap: 10px; }
.oa-ph { flex: 1 1 0; min-width: 0; display: grid; gap: 6px; }
.oa-ph-bar { display: block; height: 6px; border-radius: 99px; background: #3a3350; overflow: hidden; }
.oa-ph-bar i { display: block; height: 100%; background: #6d28d9; }
.oa-ph.is-cur .oa-ph-bar i { background: #ffc533; }
.oa-ph-t { display: flex; justify-content: space-between; gap: 8px; font-size: .74rem; color: #a39dba; }
.oa-ph-t b { font-weight: 700; color: #ffffff; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.oa-ph.is-cur .oa-ph-t em { color: #ffc533; }
.oa-ph-t em { font-style: normal; flex: none; }

.oa-cal { padding: clamp(14px, 1.6vw, 22px); border-radius: 22px; background: #ffffff; overflow-x: auto; }
.oa-tabs { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; }
.oa-tab { padding: 8px 14px; border: 0; border-radius: 10px; background: #f4f3f7; font: inherit; font-size: .84rem; font-weight: 700; color: #4b4560; cursor: pointer; }
.oa-tab.is-on { background: #16121f; color: #ffffff; }
.oa-legend { margin-left: auto; display: flex; align-items: center; gap: 6px 10px; flex-wrap: wrap; font-size: .76rem; color: var(--muted); }
.oa-legend i { width: 12px; height: 12px; border-radius: 3px; display: inline-block; margin-left: 6px; }
.lg-trail { border-left: 3px solid #6d28d9; background: #ffffff; box-shadow: inset 0 0 0 1px #e4e1ec; }
.lg-meet { background: #3a3350; }
.lg-train { background: #ffffff; box-shadow: inset 0 0 0 1.5px #16121f; }
.lg-soft { background: #ffffff; box-shadow: inset 0 0 0 1px #b9b3c9; border: 1px dashed #b9b3c9; }
.oa-grid { display: grid; grid-template-columns: 52px minmax(0, 1fr); min-width: 760px; }
.oa-phrow, .oa-heads, .oa-cols { display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); gap: 0 6px; }
.oa-phrow span { padding: 4px 8px; border-radius: 6px; background: #ede5fb; color: #5b21b6; font-size: .64rem; font-weight: 800; letter-spacing: .08em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.oa-heads { margin: 6px 0 4px; }
.oa-head { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border: 0; border-radius: 12px 12px 0 0; background: none; font: inherit; text-align: left; cursor: pointer; color: var(--text); min-width: 0; }
.oa-head > b { font-family: var(--display); font-weight: 900; font-size: 1.9rem; line-height: 1; color: #b9b3c9; }
.oa-head > span { display: grid; min-width: 0; }
.oa-head small { font-size: .62rem; font-weight: 800; letter-spacing: .06em; color: var(--muted); }
.oa-head em { font-style: normal; font-size: .78rem; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.oa-head.is-done em { color: #16a34a; }
.oa-head.is-now { background: #16121f; color: #ffffff; }
.oa-head.is-now > b { color: #ffc533; }
.oa-head.is-now small { color: #ffc533; }
.oa-head.is-focus:not(.is-now) { background: #f4f3f7; }
.oa-axis-wrap { position: relative; }
.oa-axis { position: relative; }
.oa-axis span { position: absolute; left: 0; transform: translateY(-50%); font-size: .7rem; color: var(--faint); }
.oa-nowtag { position: absolute; left: 0; transform: translateY(-50%); padding: 1px 5px; border-radius: 4px; background: #e11d48; color: #ffffff; font-size: .66rem; font-weight: 800; }
.oa-cols { position: relative; background-image: repeating-linear-gradient(to bottom, #f1eff6 0 1px, transparent 1px var(--hour)); }
.oa-col { position: relative; border-left: 1px solid #f1eff6; }
.oa-col.is-now { background: rgba(255, 197, 51, .06); box-shadow: inset 0 0 0 2px #16121f; border-radius: 0 0 12px 12px; }
.oa-blk { position: absolute; left: 4px; right: 4px; display: grid; align-content: start; gap: 1px; padding: 5px 8px; overflow: hidden; border: 0; border-radius: 8px; font: inherit; text-align: left; cursor: pointer; background: #ffffff; box-shadow: inset 0 0 0 1.5px #16121f; color: #16121f; }
.oa-blk small { font-size: .62rem; font-weight: 700; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.oa-blk b { font-size: .76rem; line-height: 1.2; overflow: hidden; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.oa-blk em { font-style: normal; font-size: .64rem; color: var(--muted); }
.oa-blk.is-trail { box-shadow: inset 0 0 0 1px #e4e1ec; border-left: 4px solid var(--c); padding-right: 26px; }
.oa-blk-seal { position: absolute; right: 4px; top: 4px; }
.oa-blk.is-meet { background: #3a3350; box-shadow: none; color: #ffffff; }
.oa-blk.is-meet small, .oa-blk.is-meet em { color: #c9c4d8; }
.oa-blk.is-soft { box-shadow: none; border: 1.5px dashed #b9b3c9; }
.oa-blk.is-quiz { background: #16121f; color: #ffffff; box-shadow: none; }
.oa-blk.is-quiz small, .oa-blk.is-quiz em { color: #ffc533; }
.oa-blk.is-break { background: repeating-linear-gradient(135deg, #f6f5f9 0 6px, #ffffff 6px 12px); box-shadow: none; color: var(--muted); }
.oa-blk.is-done { opacity: .5; }
.oa-blk:hover { z-index: 2; box-shadow: inset 0 0 0 2px #ffc533; }
.oa-untimed { position: absolute; left: 0; right: 0; bottom: 4px; display: grid; gap: 4px; }
.oa-untimed .oa-blk { position: relative; left: auto; right: auto; margin: 0 4px; }
.oa-nowline { position: absolute; left: -6px; right: 0; height: 2px; background: #e11d48; z-index: 3; }
.oa-nowline::before { content: ""; position: absolute; left: 0; top: -3px; width: 8px; height: 8px; border-radius: 50%; background: #e11d48; }
.oa-weeks { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.oa-week { display: grid; gap: 4px; padding: 16px; border: 0; border-radius: 16px; background: #f4f3f7; font: inherit; text-align: left; cursor: pointer; color: var(--text); }
.oa-week small { font-size: .66rem; font-weight: 800; letter-spacing: .08em; color: #5b21b6; }
.oa-week b { font-family: var(--display); font-weight: 900; font-size: 1.3rem; line-height: 1.05; }
.oa-week span { font-size: .78rem; color: var(--muted); }
.oa-week.is-now { background: #16121f; color: #ffffff; }
.oa-week.is-done { opacity: .6; }

.oa-day { display: grid; gap: 14px; scroll-margin-top: 80px; }
.oa-day-top { position: relative; overflow: hidden; display: flex; justify-content: space-between; align-items: flex-end; gap: 14px 24px; flex-wrap: wrap; padding: clamp(18px, 2vw, 26px); border-radius: 22px; background: #16121f; color: #ffffff; }
.oa-day-top::before { content: ""; position: absolute; inset: 0; background: repeating-conic-gradient(from 0deg at 85% 20%, rgba(255, 255, 255, .05) 0 6deg, transparent 6deg 16deg); pointer-events: none; }
.oa-day-top > * { position: relative; }
.oa-day-top small { font-size: .7rem; font-weight: 800; letter-spacing: .1em; color: #ffc533; }
.oa-day-top h2 { margin: 6px 0 0; color: #ffffff; font-size: clamp(2rem, 3vw, 2.8rem); line-height: .95; }
.oa-day-side { display: grid; justify-items: end; gap: 8px; font-size: .84rem; color: #c9c4d8; }
.oa-strip { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.oa-chip { display: grid; justify-items: center; width: 40px; padding: 4px 0; border: 1px solid #3a3350; border-radius: 10px; background: #221c30; color: #ffffff; font: inherit; cursor: pointer; }
.oa-chip small { font-size: .52rem; font-weight: 800; letter-spacing: .06em; color: #a39dba; }
.oa-chip b { font-family: var(--display); font-weight: 900; font-size: 1.1rem; line-height: 1; }
.oa-chip.is-done b { color: #22c55e; }
.oa-chip.is-now { border-color: #ffc533; }
.oa-chip.is-focus { background: #ffc533; border-color: #ffc533; color: #16121f; }
.oa-chip.is-focus small { color: #16121f; }
.oa-day-body { display: grid; grid-template-columns: minmax(0, 1fr) clamp(280px, 26vw, 340px); gap: 16px; align-items: start; }
.oa-agenda { display: grid; gap: 10px; padding: clamp(16px, 2vw, 24px); border-radius: 22px; background: #ffffff; }
.oa-agenda-h { display: flex; justify-content: space-between; align-items: center; }
.oa-agenda-h small, .oa-marks > small, .oa-acc-h small { font-size: .7rem; font-weight: 800; letter-spacing: .1em; color: var(--text); }
.oa-row { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 14px; align-items: center; scroll-margin-top: 100px; }
.oa-hour { display: grid; }
.oa-hour b { font-family: var(--display); font-weight: 900; font-size: 2rem; line-height: .95; }
.oa-hour small { font-size: .72rem; color: var(--faint); }
.oa-hour em { justify-self: start; margin-top: 2px; padding: 1px 6px; border-radius: 4px; background: #e11d48; color: #ffffff; font-style: normal; font-size: .62rem; font-weight: 800; }
.oa-card { display: flex; align-items: center; gap: 14px; padding: 12px 16px; border-radius: 16px; border: 1.5px solid #e4e1ec; background: #ffffff; color: var(--text); text-decoration: none; min-width: 0; }
a.oa-card:hover { color: var(--text); border-color: var(--c); }
.oa-card-t { flex: 1; min-width: 0; display: grid; gap: 3px; }
.oa-card-t small { font-size: .64rem; font-weight: 800; letter-spacing: .08em; color: var(--c3, var(--muted)); }
.oa-card-t b { font-size: 1rem; line-height: 1.25; }
.oa-card-t em { font-style: normal; font-size: .78rem; color: var(--muted); }
.oa-bar { display: block; height: 5px; border-radius: 99px; background: #ede9f6; overflow: hidden; max-width: 320px; }
.oa-bar i { display: block; height: 100%; background: var(--c); }
.oa-card-pct { flex: none; display: grid; justify-items: end; padding-left: 14px; border-left: 2px dashed #e4e1ec; }
.oa-card-pct b { font-family: var(--display); font-weight: 900; font-size: 1.8rem; line-height: 1; }
.oa-card-pct small { font-size: .72rem; font-weight: 700; color: #5b21b6; }
.oa-card.is-done .oa-card-pct b { color: #16a34a; }
.oa-kind { flex: none; padding: 4px 10px; border-radius: 999px; border: 1.5px solid #16121f; font-size: .62rem; font-weight: 800; letter-spacing: .08em; }
.oa-card.is-meet .oa-kind { background: #3a3350; border-color: #3a3350; color: #ffffff; }
.oa-card.is-soft .oa-kind { border-style: dashed; border-color: #b9b3c9; color: var(--muted); }
.oa-card.is-quiz .oa-kind { background: #16121f; color: #ffc533; }
.oa-card.is-now { background: #16121f; border-color: #ffc533; color: #ffffff; box-shadow: 0 0 0 3px rgba(255, 197, 51, .3); }
.oa-card.is-now .oa-kind { border-color: #ffffff; color: #ffffff; background: transparent; }
.oa-card.is-now .oa-card-t em { color: #c9c4d8; }
.oa-now-chip { flex: none; padding: 6px 12px; border-radius: 999px; background: #ffc533; color: #16121f; font-size: .76rem; font-weight: 800; }
.oa-done-chip { flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: #dcfce7; color: #16a34a; }
.oa-row.is-break .oa-card { background: repeating-linear-gradient(135deg, #f6f5f9 0 8px, #ffffff 8px 16px); border-style: dashed; }
.oa-extra { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; }
.oa-vid { width: 100%; }
.oa-vid summary { cursor: pointer; font-size: .84rem; font-weight: 700; display: flex; align-items: center; gap: 6px; }
.oa-vid .video-frame { margin: 8px 0; }
.oa-side { display: grid; gap: 12px; position: sticky; top: 76px; }
.oa-marks { position: relative; overflow: hidden; display: grid; gap: 4px; padding: 18px; border-radius: 22px; background: #16121f; color: #ffffff; }
.oa-marks > small { color: #ffc533 !important; margin-bottom: 4px; }
.oa-mark { display: flex; align-items: center; gap: 14px; padding: 10px 0; border-top: 1px solid #2e2840; }
.oa-mark:first-of-type { border-top: 0; }
.oa-mark > span:first-child { flex: none; width: 48px; display: grid; justify-items: center; }
.oa-mark > span:first-child b { font-family: var(--display); font-weight: 900; font-size: 2rem; line-height: .9; color: #ffc533; }
.oa-mark > span:first-child small { font-size: .58rem; font-weight: 800; color: #a39dba; }
.oa-mark > span:last-child { display: grid; min-width: 0; }
.oa-mark > span:last-child b { font-size: .9rem; line-height: 1.2; }
.oa-mark em { font-style: normal; font-size: .74rem; color: #a39dba; }
.oa-acc { display: grid; gap: 8px; padding: 18px; border-radius: 22px; background: #ffffff; }
.oa-acc-h { display: flex; justify-content: space-between; align-items: center; }
.oa-acc-h span { display: inline-flex; align-items: center; gap: 4px; font-size: .72rem; color: var(--muted); }
.oa-creds { display: grid; }
.oa-cred { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-top: 1px solid #f1eff6; }
.oa-cred:first-child { border-top: 0; }
.oa-cred-ic { flex: none; width: 32px; height: 32px; border-radius: 8px; display: grid; place-items: center; background: #16121f; color: #ffffff; font-size: .7rem; font-weight: 800; }
.oa-cred-t { flex: 1; min-width: 0; display: grid; gap: 1px; }
.oa-cred-t > b, .oa-cred-t > a { font-size: .88rem; font-weight: 700; }
.oa-cred-t > span { font-size: .74rem; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.oa-cred-t code { font-size: .74rem; }
.oa-cred-t em { font-style: normal; font-size: .72rem; color: var(--faint); }
.oa-cred-b { flex: none; display: grid; gap: 2px; justify-items: end; }

@media (max-width: 980px) {
  .oa-top { grid-template-columns: minmax(0, 1fr); }
  .oa-top-now { justify-content: flex-start; }
  .oa-phases { flex-direction: column; }
  .oa-day-body { grid-template-columns: minmax(0, 1fr); }
  .oa-side { position: static; }
  .oa-day-side { justify-items: start; }
  .oa-strip { justify-content: flex-start; }
}
@media (max-width: 640px) {
  .oa-row { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .oa-hour { grid-auto-flow: column; justify-content: start; align-items: baseline; gap: 8px; }
  .oa-hour b { font-size: 1.4rem; }
  .oa-card { flex-wrap: wrap; }
}
html[data-mode="mobile"] .oa-day-body { grid-template-columns: minmax(0, 1fr); }
html[data-mode="mobile"] .oa-side { position: static; }
.oa-day-body > * { min-width: 0; }
.oa-blk.is-tiny { grid-template-columns: minmax(0, 1fr); padding-top: 3px; padding-bottom: 3px; }
.oa-blk.is-tiny small, .oa-blk.is-tiny em { display: none; }
.oa-blk.is-tiny b { -webkit-line-clamp: 1; }
.oa-desc { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; cursor: pointer; }
.oa-desc.is-open { display: block; }
.oa-creds { max-height: 460px; overflow-y: auto; padding-right: 4px; }
.oa-cred-t em { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; overflow-wrap: anywhere; }
.oa-cred-t > a, .oa-cred-t > b { overflow-wrap: anywhere; }

/* ───── Início: card "Seu onboarding hoje" (claro, com a agenda do dia em linha) ───── */
.ho { display: grid; grid-template-columns: 220px minmax(0, 1fr) auto; align-items: stretch; gap: 0; margin-bottom: 16px; border-radius: 22px; background: #ffffff; border: 1.5px solid #e4e1ec; color: var(--text); text-decoration: none; overflow: hidden; }
.ho:hover { color: var(--text); border-color: #16121f; }
.ho-day { display: grid; align-content: center; gap: 6px; padding: 18px 20px; background: #ede5fb; }
.ho-day small { font-size: .66rem; font-weight: 800; letter-spacing: .12em; color: #5b21b6; }
.ho-day > b { font-family: var(--display); font-weight: 900; font-size: 2.6rem; line-height: .9; color: #16121f; }
.ho-day > b i { font-style: normal; font-size: .55em; color: #7c6aa8; }
.ho-segs { display: flex; gap: 4px; }
.ho-segs i { flex: 1; height: 6px; border-radius: 99px; background: #d7c9f3; }
.ho-segs i.is-done { background: #5b21b6; }
.ho-segs i.is-now { background: #ffc533; }
.ho-day em { font-style: normal; font-size: .76rem; font-weight: 600; color: #4b3a75; }
.ho-main { display: grid; align-content: center; gap: 12px; padding: 16px 22px; min-width: 0; }
.ho-head { display: flex; align-items: center; justify-content: space-between; gap: 10px 16px; flex-wrap: wrap; }
.ho-head > b { font-family: var(--display); font-weight: 900; font-size: 1.6rem; line-height: 1; }
.ho-now { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; background: #f4f3f7; font-size: .8rem; font-weight: 700; color: #16121f; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ho-now i { flex: none; width: 8px; height: 8px; border-radius: 50%; background: #b9b3c9; }
.ho-now.is-live { background: #16121f; color: #ffffff; }
.ho-now.is-live i { background: #e11d48; box-shadow: 0 0 0 3px rgba(225, 29, 72, .3); }
.ho-strip { display: flex; gap: 8px; overflow: hidden; }
.ho-act { flex: 1 1 0; min-width: 0; min-height: 58px; display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 6px; align-items: center; padding: 8px 10px; border-radius: 12px; background: #f6f5f9; }
.ho-act small { grid-column: 1 / -1; font-size: .68rem; font-weight: 800; color: var(--muted); }
.ho-act b { grid-column: 2; font-size: .82rem; font-weight: 700; line-height: 1.25; overflow: hidden; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.ho-act > b:first-of-type:nth-child(2) { grid-column: 1 / -1; }
.ho-seal { grid-column: 1; display: flex; }
.ho-act.is-done { opacity: .7; }
.ho-act.is-done b { color: var(--muted); }
.ho-act.is-cur { background: #ffc533; }
.ho-act.is-cur small { color: #16121f; }
.ho-more { flex: none; align-self: center; padding: 0 6px; font-size: .8rem; font-weight: 800; color: var(--muted); }
.ho-go { display: flex; align-items: center; gap: 8px; padding: 0 24px; background: #16121f; color: #ffffff; font-weight: 800; font-size: .92rem; white-space: nowrap; }
.ho:hover .ho-go { background: #2a2340; }
@media (max-width: 1100px) { .ho-strip .ho-act:nth-child(n+4) { display: none; } }
@media (max-width: 860px) {
  .ho { grid-template-columns: minmax(0, 1fr); }
  .ho-go { justify-content: center; padding: 14px; }
  .ho-strip { flex-wrap: wrap; }
  .ho-act { flex: 1 1 140px; }
}
html[data-mode="mobile"] .ho { grid-template-columns: minmax(0, 1fr); }
html[data-mode="mobile"] .ho-go { justify-content: center; padding: 14px; }

/* ───── Processos: materiais (PDF e vídeo) ───── */
.pd-media { display: grid; gap: 12px; padding: clamp(16px, 2vw, 24px); border-radius: 22px; background: #ffffff; }
.pd-media-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 380px), 1fr)); gap: 12px; }
.pd-mc { display: grid; gap: 10px; padding: 12px; border-radius: 16px; background: #f6f5f9; min-width: 0; }
.pd-mc.is-pdf { grid-column: 1 / -1; }
.pd-video { display: block; width: 100%; aspect-ratio: 16 / 9; border-radius: 12px; background: #16121f; }
.pd-mc .video-frame { border-radius: 12px; overflow: hidden; }
.pd-mc-t { display: flex; align-items: center; gap: 8px; min-width: 0; }
.pd-mc-t b { font-size: .95rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pd-mc-t small { font-size: .76rem; color: var(--muted); flex: none; }
.pd-mc-ic { flex: none; width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; background: #16121f; color: #ffffff; }
.pd-mc-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.pd-mc-doc { flex: none; width: 46px; height: 56px; border-radius: 8px; display: grid; place-items: center; background: #16121f; color: #ffffff; font-size: .72rem; font-weight: 900; letter-spacing: .06em; box-shadow: inset -10px -10px 0 -6px #3a3350; }
.pd-mc.is-pdf .pd-mc-t { flex: 1 1 220px; display: grid; gap: 2px; }
.pd-mc-acts { display: flex; gap: 6px; flex-wrap: wrap; }
.pd-pdf iframe { display: block; width: 100%; height: min(80vh, 900px); border: 0; border-radius: 12px; background: #ffffff; }
.pa-media { display: grid; gap: 10px; }
.pa-media-list { display: grid; gap: 8px; }
.pa-mrow { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; background: #f6f5f9; }
.pa-mkind { flex: none; padding: 3px 8px; border-radius: 6px; background: #16121f; color: #ffffff; font-size: .64rem; font-weight: 800; letter-spacing: .06em; }
.pa-mt, .pa-mup { flex: 1; min-width: 0; display: grid; gap: 4px; }
.pa-mt small, .pa-mup small { font-size: .74rem; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pa-mrow .ob-tools { flex: none; }
.pa-links-in { display: grid; gap: 6px; }
.pa-media .hint { font-size: .8rem; color: var(--muted); }

/* ───── Administração · Funções e permissões ───── */
.fn-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 14px; }
.fn-card { position: relative; display: grid; align-content: start; gap: 10px; padding: 18px 18px 16px; border-radius: 18px; background: #ffffff; border: 1.5px solid #e4e1ec; border-top: 5px solid var(--fc); text-align: left; font: inherit; color: var(--text); }
.fn-card.is-system { background: #16121f; color: #ffffff; border-color: #16121f; }
.fn-card.is-system p { color: #c9c4d8; }
.fn-card-h { display: flex; align-items: center; gap: 8px; }
.fn-card-h b { flex: 1; min-width: 0; font-family: var(--display); font-weight: 900; font-size: 1.35rem; line-height: 1.05; }
.fn-dot { flex: none; width: 12px; height: 12px; border-radius: 50%; background: var(--fc); box-shadow: 0 0 0 3px color-mix(in srgb, var(--fc) 20%, transparent); }
.fn-card.is-system .fn-dot { background: #ffc533; }
.fn-card p { margin: 0; font-size: .86rem; color: var(--muted); }
.fn-perms { display: flex; gap: 6px; flex-wrap: wrap; }
.fn-perms span { padding: 3px 9px; border-radius: 999px; background: color-mix(in srgb, var(--fc) 12%, #ffffff); color: color-mix(in srgb, var(--fc) 80%, #16121f); font-size: .74rem; font-weight: 700; }
.fn-perms .fn-all { background: #ffc533; color: #16121f; }
.fn-perms .fn-none { background: #f4f3f7; color: var(--muted); }
.fn-people { display: flex; align-items: center; gap: 4px; padding-top: 8px; border-top: 1px solid #f1eff6; }
.fn-card.is-system .fn-people { border-top-color: #2e2840; }
.fn-people small { margin-left: 6px; font-size: .76rem; color: var(--muted); }
.fn-new { place-items: center; align-content: center; text-align: center; min-height: 200px; border: 2px dashed #d9d3e6; border-top-width: 2px; background: transparent; cursor: pointer; color: var(--muted); }
.fn-new b { color: var(--text); font-size: 1.05rem; }
.fn-new:hover { border-color: #16121f; color: var(--text); }
.fn-colors { display: flex; gap: 8px; }
.fn-sw { width: 30px; height: 30px; border-radius: 50%; border: 3px solid #ffffff; background: var(--fc); box-shadow: 0 0 0 1px #e4e1ec; cursor: pointer; }
.fn-sw.is-on { box-shadow: 0 0 0 3px #16121f; }
.fn-matrix { display: grid; gap: 14px; max-height: 46vh; overflow: auto; padding-right: 4px; }
.fn-matrix section { display: grid; gap: 6px; }
.fn-matrix small { font-size: .68rem; font-weight: 800; letter-spacing: .1em; color: var(--muted); }
.perm-item.is-forced { opacity: .75; }
.fn-del { color: #b91c1c; }
.fn-assign-list { display: grid; gap: 8px; }
.fn-pick { display: flex; align-items: flex-start; gap: 10px; padding: 10px 12px; border-radius: 12px; border: 1.5px solid #e4e1ec; cursor: pointer; }
.fn-pick:has(input:checked) { border-color: var(--fc); background: color-mix(in srgb, var(--fc) 6%, #ffffff); }
.fn-pick .fn-dot { margin-top: 4px; }
.fn-pick > span:last-child { display: grid; gap: 2px; }

/* ───── Processos · editor de temas ───── */
.pa-group-h .icon-btn { margin-left: 4px; }
.pa-group.is-theme-on { box-shadow: inset 0 0 0 2px #16121f; }
.pa-newtheme { width: 100%; justify-content: center; border-style: dashed; }
.pa-icons { display: flex; gap: 6px; flex-wrap: wrap; }
.pa-ic { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; border: 1.5px solid #e4e1ec; background: #ffffff; color: var(--text); cursor: pointer; }
.pa-ic.is-on { background: #16121f; border-color: #16121f; color: #ffffff; }
.pa-group-h { align-items: center; gap: 6px; }
.pa-group-h b { flex: 1; min-width: 0; }
.pa-group-h .icon-btn { flex: none; }
.pa-row { min-width: 0; }
.pa-pick { overflow: hidden; }
.fn-card.is-system .chip { background: #3a3350; color: #ffffff; border-color: #3a3350; }
.fn-card.is-system .fn-people small { color: #a39dba; }

/* quem criou a trilha */
.sl-creator { display: inline-flex; align-items: center; gap: 6px; font-size: .78rem; color: var(--muted); }
.sl-creator b { color: var(--text); font-weight: 700; }
.sl-creator .avatar { flex: none; }
.sl-creator-logo { width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; background: #ede5fb; font-size: .66rem; }
.sl-creator.is-hero { margin-top: 6px; padding: 5px 12px 5px 5px; border-radius: 999px; background: rgba(22, 18, 31, .22); color: inherit; font-size: .84rem; }
.sl-creator.is-hero b { color: inherit; }
.sl-creator.is-hero .sl-creator-logo { width: 26px; height: 26px; font-size: .9rem; background: rgba(255, 255, 255, .85); }

/* ───── Administração · editor de Processos (novo) ───── */
.pa-panel { background: transparent; padding: 0; box-shadow: none; border: 0; }
.pa-edit { display: grid; gap: 14px; }
.pe-card { display: grid; gap: 14px; padding: clamp(16px, 1.8vw, 22px); border-radius: 20px; background: #ffffff; border: 1px solid #ebe8f1; }
.pe-card-h { display: flex; align-items: baseline; justify-content: space-between; gap: 6px 14px; flex-wrap: wrap; }
.pe-card-h h3 { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 1.25rem; }
.pe-card-h small { font-size: .8rem; color: var(--muted); }
.pe-head { gap: 12px; }
.pe-head-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.pe-crumb { display: inline-flex; align-items: center; gap: 6px; font-size: .8rem; font-weight: 700; color: var(--muted); }
.pe-theme { width: auto; min-height: 0; height: 32px; padding: 0 30px 0 10px; font-size: .84rem; font-weight: 700; border-radius: 999px; background-color: #f4f3f7; border-color: transparent; }
.pe-head-act { display: flex; gap: 6px; }
.pe-del { color: #b91c1c; }
.pe-title { width: 100%; border: 0; border-bottom: 2px solid transparent; padding: 4px 0; background: transparent; font-family: var(--display); font-weight: 900; font-size: clamp(1.9rem, 2.6vw, 2.6rem); line-height: 1; color: var(--text); }
.pe-title:hover { border-bottom-color: #ebe8f1; }
.pe-title:focus { outline: none; border-bottom-color: #16121f; }
.pe-vis { justify-self: start; display: inline-flex; align-items: center; gap: 10px; padding: 6px 12px 6px 6px; border: 0; border-radius: 999px; background: #fff3d6; color: #8a5a00; font: inherit; font-size: .84rem; font-weight: 700; cursor: pointer; }
.pe-vis.is-on { background: #dcfce7; color: #166534; }
.pe-switch { position: relative; width: 34px; height: 20px; border-radius: 99px; background: #d6a640; }
.pe-switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 14px; height: 14px; border-radius: 50%; background: #ffffff; transition: left .15s; }
.pe-vis.is-on .pe-switch { background: #16a34a; }
.pe-vis.is-on .pe-switch::after { left: 17px; }
.pe-metas { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.pe-meta { display: grid; gap: 4px; }
.pe-meta > span { display: inline-flex; align-items: center; gap: 5px; font-size: .72rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.pe-meta .input { min-height: 40px; }

.pe-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); gap: 10px; }
.pe-tiles.is-step { grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); }
.pe-tile { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 14px; background: #f6f5f9; min-width: 0; }
.pe-th { flex: none; position: relative; width: 72px; height: 48px; border-radius: 10px; display: grid; place-items: center; background: #16121f center / cover no-repeat; color: #ffffff; font-size: .72rem; font-weight: 900; }
.pe-th i { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: rgba(0, 0, 0, .55); }
.pe-th.is-pdf { background: #b91c1c; }
.pe-tile.is-compact .pe-th { width: 54px; height: 38px; }
.pe-tile-b { flex: 1; min-width: 0; display: grid; gap: 2px; }
.pe-tile-name { width: 100%; border: 0; border-bottom: 1px dashed transparent; background: transparent; padding: 2px 0; font: inherit; font-weight: 700; font-size: .9rem; color: var(--text); }
.pe-tile-name:hover, .pe-tile-name:focus { outline: none; border-bottom-color: #b9b3c9; }
.pe-tile-b small { font-size: .72rem; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pe-tile-act { flex: none; display: flex; }
.pe-add-tile { display: grid; justify-items: center; align-content: center; gap: 2px; min-height: 64px; padding: 10px; border-radius: 14px; border: 2px dashed #d9d3e6; background: #ffffff; font: inherit; color: var(--muted); cursor: pointer; }
.pe-add-tile b { color: var(--text); font-size: .9rem; }
.pe-add-tile small { font-size: .72rem; }
.pe-add-tile:hover { border-color: #16121f; color: var(--text); }

.pe-steps { display: grid; gap: 10px; }
.pe-step { display: flex; gap: 12px; padding: 12px; border-radius: 16px; background: #f8f7fb; border: 1px solid #efedf4; }
.pe-step-n { flex: none; display: grid; justify-items: center; align-content: start; gap: 6px; }
.pe-step-n b { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: #16121f; color: #ffffff; font-size: .9rem; }
.pe-step-move { display: grid; }
.pe-step-b { flex: 1; min-width: 0; display: grid; gap: 10px; }
.pe-step-top { display: flex; align-items: flex-start; gap: 6px; }
.pe-step-t { flex: 1; min-width: 0; resize: vertical; border: 1.5px solid transparent; border-radius: 10px; padding: 8px 10px; background: #ffffff; font: inherit; font-size: 1rem; font-weight: 600; line-height: 1.35; color: var(--text); }
.pe-step-t:focus { outline: none; border-color: #16121f; }
.pe-block { display: grid; gap: 6px; padding: 10px; border-radius: 12px; background: #ffffff; }
.pe-block-h { display: flex; justify-content: space-between; align-items: center; font-size: .76rem; font-weight: 800; color: var(--muted); }
.pe-block-h span { display: inline-flex; align-items: center; gap: 4px; }
.pe-branch { display: grid; gap: 6px; }
.pe-step-adds { display: flex; gap: 6px; flex-wrap: wrap; }
.pe-chip-add { display: inline-flex; align-items: center; gap: 4px; padding: 6px 11px; border-radius: 999px; border: 1.5px dashed #c9c3d8; background: transparent; font: inherit; font-size: .78rem; font-weight: 700; color: #4b4560; cursor: pointer; }
.pe-chip-add:hover { border-style: solid; border-color: #16121f; color: #16121f; background: #ffffff; }
.pe-chip-add.is-video { border-style: solid; border-color: #16121f; background: #16121f; color: #ffffff; }
.pe-chip-add.is-video:hover { background: #2a2340; }
.pe-add-step { display: flex; justify-content: center; align-items: center; gap: 6px; padding: 12px; border-radius: 14px; border: 2px dashed #d9d3e6; background: transparent; font: inherit; font-weight: 800; color: var(--text); cursor: pointer; }
.pe-add-step:hover { border-color: #16121f; background: #ffffff; }
.pe-errs { display: grid; gap: 6px; margin-bottom: 6px; }
.pe-err { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto; gap: 6px; align-items: center; }
.pe-arrow { color: var(--muted); font-weight: 800; }
.pe-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; min-height: 44px; padding: 6px 8px; border-radius: 12px; border: 1.5px solid #e4e1ec; background: #ffffff; }
.pe-tool { display: inline-flex; align-items: center; gap: 4px; padding: 4px 6px 4px 10px; border-radius: 999px; background: #16121f; color: #ffffff; font-size: .8rem; font-weight: 700; }
.pe-tool button { border: 0; background: transparent; color: #a39dba; font-size: 1rem; line-height: 1; cursor: pointer; }
.pe-tool-in { flex: 1; min-width: 160px; border: 0; background: transparent; font: inherit; padding: 4px; }
.pe-tool-in:focus { outline: none; }

/* janela de adicionar vídeo ou PDF */
.pe-pick { display: grid; gap: 10px; }
.pe-drop { display: grid; justify-items: center; gap: 4px; padding: 22px 16px; border-radius: 16px; border: 2px dashed #c9c3d8; background: #f8f7fb; font: inherit; color: var(--muted); cursor: pointer; text-align: center; }
.pe-drop b { color: var(--text); font-size: 1rem; }
.pe-drop small { font-size: .78rem; }
.pe-drop:hover, .pe-drop.is-over { border-color: #16121f; background: #ffffff; color: var(--text); }
.pe-or { text-align: center; font-size: .76rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--faint); }
.pe-linkbox { display: flex; align-items: center; gap: 8px; padding: 0 12px; border-radius: 12px; border: 1.5px solid #e4e1ec; color: var(--muted); }
.pe-linkbox .input { border: 0; box-shadow: none; padding-left: 0; }
.pe-prev { margin-top: 10px; }
.pe-prev:empty { display: none; }
.pe-prev .video-frame { border-radius: 12px; overflow: hidden; }
.pe-prev-pdf { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 12px; background: #f6f5f9; }

/* página do processo: vídeo ou PDF dentro da etapa */
.pr-step-media { display: grid; gap: 6px; }
.pr-sm { border-radius: 12px; background: #f6f5f9; }
.pr-sm summary { display: flex; align-items: center; gap: 8px; padding: 8px 12px; cursor: pointer; list-style: none; font-size: .88rem; }
.pr-sm summary::-webkit-details-marker { display: none; }
.pr-sm summary small { margin-left: auto; font-size: .76rem; font-weight: 700; color: var(--st-deep); }
.pr-sm-ic { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 8px; background: #16121f; color: #ffffff; }
.pr-sm.is-pdf .pr-sm-ic { background: #b91c1c; }
.pr-sm[open] summary small { color: var(--muted); }
.pr-sm .pd-mc { background: transparent; padding: 0 10px 10px; }

@media (max-width: 900px) { .pe-metas { grid-template-columns: repeat(2, minmax(0, 1fr)); } .pe-err { grid-template-columns: minmax(0, 1fr) auto; } .pe-arrow { display: none; } }
.pe-prev .video-frame, .pe-prev .pd-video { max-width: 420px; margin: 0 auto; }
.pr-sm .pd-mc-t { display: none; }
.pr-sm .pd-mc { padding-top: 0; }
.pe-block .textarea { font-family: inherit; font-size: .9rem; }

/* ───── Administração · Painel de bordo (opção C do quadro) ─────
   trilho de ícones à esquerda; Visão geral em blocos; Pessoas em cartões; página da pessoa com crachá escuro */
.side-admin { padding: 18px 10px; gap: 14px; align-items: stretch; }
.adm-mark { display: flex; justify-content: center; padding-bottom: 6px; text-decoration: none; }
.adm-mark .brand-mark { width: 44px; height: 44px; border-radius: 12px; }
.adm-rail { gap: 6px; }
.adm-rail a { position: relative; flex-direction: column; justify-content: center; gap: 6px; padding: 14px 4px; border-radius: 16px; color: #4b4560; font-size: .75rem; font-weight: 700; line-height: 1.15; text-align: center; }
.adm-rail a:hover { background: #f4f3f7; color: #16121f; }
.adm-rail a[aria-current="page"] { background: #16121f; color: #ffffff; font-weight: 800; }
.adm-rail .grp-badge { position: absolute; top: 8px; right: calc(50% - 26px); min-width: 18px; height: 18px; padding: 0 5px; background: #ffc533; color: #16121f; font-size: .68rem; }
.side-admin .side-foot { display: grid; justify-items: center; gap: 4px; }
.side-admin .adm-back { flex-direction: column; justify-content: center; gap: 6px; padding: 10px 4px; margin: 0; background: transparent; color: #6b6585; font-size: .7rem; font-weight: 700; text-align: center; line-height: 1.15; }
.side-admin .adm-back:hover { background: #f4f3f7; color: #16121f; }
.adm-out { width: 36px; height: 36px; display: grid; place-items: center; border: 0; border-radius: 10px; background: transparent; color: #6b6585; cursor: pointer; }
.adm-out:hover { background: #f4f3f7; color: #16121f; }
@media (min-width: 861px) {
  html:not([data-mode="mobile"]) .shell.is-admin { --side: 112px; }
  html:not([data-mode="mobile"]) .side-admin { padding: 18px 10px; gap: 14px; }
}
/* no celular o trilho abre como gaveta: ícone e nome lado a lado */
@media (max-width: 860px) {
  .adm-rail a { flex-direction: row; justify-content: flex-start; gap: 12px; padding: 12px 14px; font-size: .95rem; text-align: left; }
  .adm-rail .grp-badge { position: static; margin-left: auto; }
  .side-admin .side-foot { grid-template-columns: 1fr auto; align-items: center; }
  .side-admin .adm-back { flex-direction: row; justify-content: flex-start; gap: 10px; font-size: .9rem; }
}
html[data-mode="mobile"] .adm-rail a { flex-direction: row; justify-content: flex-start; gap: 12px; padding: 12px 14px; font-size: .95rem; text-align: left; }
html[data-mode="mobile"] .adm-rail .grp-badge { position: static; margin-left: auto; }
html[data-mode="mobile"] .side-admin .side-foot { grid-template-columns: 1fr auto; align-items: center; }
html[data-mode="mobile"] .side-admin .adm-back { flex-direction: row; justify-content: flex-start; gap: 10px; font-size: .9rem; }

/* abas do grupo: sublinhadas, como no mock */
.shell.is-admin .admin-tabs { gap: 14px; margin: 0 0 18px; padding: 0; border: 0; border-bottom: 1px solid #e4e1ec; border-radius: 0; background: transparent; }
.shell.is-admin .at { min-height: 42px; padding: 0 14px; border-radius: 0; border-bottom: 3px solid transparent; margin-bottom: -1px; }
.shell.is-admin .at:hover { background: transparent; color: #16121f; }
.shell.is-admin .at[aria-current="page"] { background: transparent; color: #16121f; font-weight: 800; border-bottom-color: #16121f; }
.shell.is-admin .at-n, .shell.is-admin .at[aria-current="page"] .at-n { background: #ffc533; color: #16121f; }
.shell.is-admin .page-wide { max-width: 1400px; }

/* ── Visão geral ── */
.ab-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; }
.ab-date { margin: 0; font-size: .82rem; font-weight: 600; color: #6b6585; }
.ab-head h2 { margin: 4px 0 0; font-size: clamp(2rem, 2.2vw + 1vh, 2.8rem); line-height: .95; }
.ab-tools { display: flex; gap: 10px; align-items: center; }
.ab-search { display: flex; align-items: center; gap: 8px; width: min(320px, 100%); height: 44px; padding: 0 14px; border-radius: 12px; background: #ffffff; border: 1px solid #e4e1ec; color: #6b6585; box-sizing: border-box; }
.ab-search input { flex: 1; min-width: 0; border: 0; background: transparent; font: inherit; font-size: .9rem; color: #16121f; outline: none; }
.ab-search:focus-within { border-color: #16121f; }
.ab-create { position: relative; }
.ab-create summary { display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 18px; border-radius: 12px; background: #16121f; color: #ffffff; font-weight: 800; font-size: .9rem; cursor: pointer; list-style: none; }
.ab-create summary::-webkit-details-marker { display: none; }
.ab-menu { position: absolute; right: 0; top: calc(100% + 6px); z-index: 10; min-width: 200px; display: grid; padding: 6px; border-radius: 14px; background: #ffffff; border: 1px solid #e4e1ec; box-shadow: 0 12px 30px rgba(22, 18, 31, .14); }
.ab-menu a { padding: 10px 12px; border-radius: 10px; color: #16121f; font-weight: 700; font-size: .9rem; text-decoration: none; }
.ab-menu a:hover { background: #f4f3f7; }

.ab-grid { display: grid; grid-template-columns: 1.15fr 1fr 1fr 1fr; gap: 14px; margin-bottom: 18px; }
.ab { min-width: 0; border-radius: 22px; padding: 20px 22px; box-sizing: border-box; display: flex; flex-direction: column; gap: 12px; }
.ab-lbl { margin: 0; font-family: var(--body); font-size: .7rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: #6b6585; }
.ab-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.ab-open { padding: 0; border: 0; background: none; font: inherit; font-size: .82rem; font-weight: 700; color: #5b21b6; text-decoration: none; cursor: pointer; text-align: left; }
.ab-open:hover { color: #16121f; text-decoration: underline; }
.ab-card { background: #ffffff; border: 1px solid #e4e1ec; }
.ab b { font-family: var(--display); font-weight: 900; }

.ab-week { grid-column: 1 / 3; grid-row: 1 / 3; gap: 18px; background: repeating-conic-gradient(from 0deg at 88% 8%, #1d1829 0deg 6deg, #16121f 6deg 12deg); color: #ffffff; }
.ab-week .ab-lbl { color: #c9c3da; }
.ab-pill { font-size: .76rem; font-weight: 700; padding: 5px 10px; border-radius: 999px; background: #2e2840; color: #d7d2e6; }
.ab-big3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.ab-big3 > div { display: grid; gap: 2px; align-content: start; }
.ab-big3 b { font-size: clamp(3rem, 4.4vw, 4.75rem); line-height: .85; }
.ab-big3 span { margin-top: 6px; font-size: .88rem; color: #d7d2e6; }
.ab-big3 small { font-size: .76rem; color: #a39dba; }
.ab-big3 small.is-up { color: #ffc533; font-weight: 700; }
.ab-chart { flex: 1; min-height: 190px; display: flex; flex-direction: column; gap: 8px; padding: 16px 18px 12px; border-radius: 16px; background: #221c30; }
.ab-chart-h { display: flex; justify-content: space-between; gap: 10px; font-size: .76rem; font-weight: 700; color: #a39dba; }
.ab-bars { flex: 1; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: clamp(6px, 1.2vw, 16px); }
.ab-bar { display: grid; grid-template-rows: 1fr auto; gap: 6px; min-height: 0; }
.ab-col { display: flex; align-items: flex-end; min-height: 110px; padding-top: 22px; box-sizing: border-box; border-bottom: 1px solid #3a3350; }
.ab-col i { position: relative; width: 100%; border-radius: 6px 6px 2px 2px; background: #4b4560; }
.ab-col em { position: absolute; top: -20px; left: 0; right: 0; text-align: center; font-style: normal; font-size: .76rem; font-weight: 800; color: #d7d2e6; }
.ab-bar span { text-align: center; font-size: .78rem; font-weight: 700; color: #a39dba; }
.ab-bar.is-today i { background: #ede5fb; }
.ab-bar.is-today span { color: #ffffff; }
.ab-bar.is-peak i { background: #ffc533; }
.ab-bar.is-peak em, .ab-bar.is-peak span { color: #ffc533; }

.ab-needs { grid-column: 3 / 5; grid-row: 1; background: #ffc533; color: #16121f; gap: 10px; }
.ab-needs h3 { margin: 0; font-size: 1.9rem; line-height: 1; }
.ab-count { font-size: .82rem; font-weight: 800; }
.ab-todo { display: grid; gap: 6px; }
.ab-todo-row { display: flex; align-items: center; gap: 12px; padding: 9px 10px 9px 14px; border-radius: 12px; background: #ffffff; }
.ab-todo-row b { min-width: 22px; font-size: 1.5rem; line-height: 1; }
.ab-todo-row span { flex: 1; min-width: 0; font-size: .88rem; font-weight: 600; }
.ab-act { flex: none; padding: 7px 14px; border-radius: 8px; background: #16121f; color: #ffffff; font-size: .82rem; font-weight: 800; text-decoration: none; }
.ab-act:hover { background: #5b21b6; color: #ffffff; }
.ab-act.is-soft { padding: 5.5px 12.5px; background: transparent; border: 1.5px solid #16121f; color: #16121f; }
.ab-act.is-soft:hover { background: #16121f; color: #ffffff; }
.ab-calm { margin: 0; padding: 14px; border-radius: 12px; background: rgba(255, 255, 255, .6); font-size: .9rem; font-weight: 600; }

.ab-grid > .ab-card:nth-child(3) { grid-column: 3; grid-row: 2; }
.ab-grid > .ab-card:nth-child(4) { grid-column: 4; grid-row: 2; }
.ab-num2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ab-num2 > div, .ab-num1 { display: grid; gap: 2px; }
.ab-num2 b, .ab-num1 b { font-size: 2.75rem; line-height: .9; }
.ab-num2 span, .ab-num1 span { font-size: .82rem; color: #6b6585; }
.ab-links { display: grid; gap: 6px; margin-top: auto; }
.ab-links a { display: flex; justify-content: space-between; gap: 8px; padding: 8px 10px; border-radius: 10px; background: #ede5fb; color: #5b21b6; font-size: .82rem; font-weight: 700; text-decoration: none; }
.ab-links a:hover { background: #5b21b6; color: #ffffff; }
.ab-links a.is-plain { padding: 4px 10px; background: transparent; color: #6b6585; font-weight: 600; }
.ab-links a.is-plain:hover { color: #16121f; text-decoration: underline; }
.ab-faces { display: flex; align-items: center; gap: 10px; color: #16121f; font-size: .82rem; font-weight: 600; text-decoration: none; }
.ab-stack { display: flex; }
.ab-stack .avatar, .ab-more { border: 2px solid #ffffff; }
.ab-stack > * + * { margin-left: -8px; }
.ab-more { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: #e4e1ec; color: #4b4560; font-size: .7rem; font-weight: 800; }
.ab-rows { display: grid; gap: 6px; margin-top: auto; font-size: .82rem; }
.ab-rows > * { display: flex; justify-content: space-between; gap: 8px; padding-top: 7px; border-top: 1px solid #e4e1ec; color: #16121f; text-decoration: none; }
.ab-rows a:hover { color: #5b21b6; }
.ab-rows b { font-family: var(--body); font-weight: 800; }

.ab-top-trail { grid-column: 1; grid-row: 3; gap: 8px; background: #ede5fb; }
.ab-top-trail .ab-lbl { color: #5b21b6; }
.ab-top-trail h3 { margin: 0; font-size: 1.9rem; line-height: .95; }
.ab-top-trail p { margin: 0; font-size: .82rem; color: #4b4560; }
.ab-meter { height: 8px; margin-top: auto; border-radius: 4px; background: #ffffff; overflow: hidden; }
.ab-meter i { display: block; height: 100%; border-radius: 4px; background: #5b21b6; }
.ab-top-trail .ab-open { font-weight: 800; }

.ab-activity { grid-column: 2 / 5; grid-row: 3; gap: 8px; }
.ab-feed { display: grid; grid-template-columns: 1fr 1fr; column-gap: 28px; font-size: .82rem; }
.ab-ev { display: flex; align-items: center; gap: 10px; min-width: 0; padding: 7px 0; border-bottom: 1px solid #f0eef5; }
.ab-ev > span:not(.avatar) { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ab-ev b { font-family: var(--body); font-weight: 800; }
.ab-ev time { flex: none; color: #6b6585; }
.ab-below { scroll-margin-top: 80px; }

@media (max-width: 1180px) {
  .ab-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ab-week, .ab-needs, .ab-activity { grid-column: 1 / -1; grid-row: auto; }
  .ab-grid > .ab-card:nth-child(3), .ab-grid > .ab-card:nth-child(4), .ab-top-trail { grid-column: auto; grid-row: auto; }
}
@media (max-width: 680px) {
  .ab-grid { grid-template-columns: minmax(0, 1fr); }
  .ab-big3 { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .ab-feed { grid-template-columns: minmax(0, 1fr); }
  .ab-search, .ab-tools { width: 100%; }
}

/* ── Pessoas ── */
.pp-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 12px; }
.pp-head h2 { margin: 0; font-size: clamp(2rem, 2vw + 1vh, 2.5rem); line-height: 1; }
.pp-tools { display: flex; gap: 10px; align-items: center; }
.ab-below .row-between { flex-wrap: wrap; gap: 10px; }
.ab-below .row-between .select { max-width: 100%; }
@media (max-width: 680px) { .pp-tools { flex-wrap: wrap; } .pp-tools .input { width: 100%; } }
.pp-tools .input { width: min(280px, 100%); }
.pp-tools .btn { white-space: nowrap; flex: none; }
.pp-new { background: #ffc533; color: #16121f; border: 0; }
.pp-new:hover { background: #16121f; color: #ffffff; }
.pp-tabs { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; border-bottom: 1px solid #e4e1ec; margin-bottom: 12px; }
.pp-tab { display: inline-flex; align-items: center; gap: 6px; flex: none; padding: 9px 14px; border: 0; border-bottom: 3px solid transparent; margin-bottom: -1px; background: none; font: inherit; font-size: .9rem; font-weight: 600; color: #4b4560; text-decoration: none; cursor: pointer; white-space: nowrap; }
.pp-tab:hover { color: #16121f; }
.pp-tab[aria-selected="true"] { font-weight: 800; color: #16121f; border-bottom-color: #16121f; }
.pp-n { color: #6b6585; font-weight: 600; }
.pp-due { padding: 1px 7px; border-radius: 999px; background: #ffc533; color: #16121f; font-size: .7rem; font-weight: 800; }
.pp-bar-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.pp-bar-row label { display: inline-flex; align-items: center; gap: 8px; }
.pp-bar-row .select { width: auto; }
.pp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); gap: 10px; }
.pp-card { display: flex; flex-direction: column; gap: 8px; min-width: 0; padding: 14px; border-radius: 18px; background: #ffffff; border: 1px solid #e4e1ec; color: #16121f; text-decoration: none; transition: border-color .15s, box-shadow .15s; }
.pp-card:hover, .pp-card:focus-visible { border-color: #16121f; box-shadow: 0 6px 18px rgba(22, 18, 31, .12); color: #16121f; }
.pp-card.is-idle { border-style: dashed; border-color: #c9c3da; }
.pp-who { display: grid; gap: 2px; min-width: 0; }
.pp-who b { font-size: .9rem; font-weight: 800; overflow-wrap: anywhere; line-height: 1.2; }
.pp-who > span { font-size: .74rem; color: #6b6585; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pp-chips { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
.pp-chip { font-size: .7rem; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: #f0eef5; color: #4b4560; }
.pp-chip.is-fn { background: #ede5fb; color: #5b21b6; }
.pp-chip.is-off { background: #fde8e8; color: #9b1c1c; }
.pp-bar { height: 6px; margin-top: auto; border-radius: 3px; background: #f0eef5; overflow: hidden; }
.pp-bar i { display: block; height: 100%; border-radius: 3px; background: #5b21b6; }
.pp-foot { display: flex; justify-content: space-between; gap: 6px; flex-wrap: wrap; font-size: .72rem; color: #6b6585; }
.pp-foot time.is-recent { color: #16121f; font-weight: 700; }
.pp-ok { color: #166534; font-weight: 800; }

/* ── página da pessoa: crachá + blocos ── */
.pc-badge { display: grid; grid-template-columns: auto auto minmax(0, 1fr) auto auto; align-items: center; gap: 22px; padding: 20px 24px; margin-bottom: 12px; border-radius: 22px; background: repeating-conic-gradient(from 0deg at 92% 50%, #1d1829 0deg 6deg, #16121f 6deg 12deg); color: #ffffff; }
.pc-back { align-self: start; color: #c9c3da; font-size: .82rem; font-weight: 700; text-decoration: none; white-space: nowrap; }
.pc-back:hover { color: #ffffff; }
.pc-av { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.pc-av > .avatar { border: 4px solid #2e2840; }
.pc-av .btn-ghost { border-color: #4b4560; color: #ffffff; background: transparent; }
.pc-av .btn-ghost:hover { background: #ffffff; color: #16121f; }
.pc-av .linkish { color: #c9c3da; }
.pc-main { min-width: 0; }
.pc-kicker { font-size: .7rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: #a39dba; }
.pc-main h2 { margin: 2px 0 0; color: #ffffff; font-size: clamp(2rem, 2.2vw + 1vh, 2.65rem); line-height: .95; overflow-wrap: anywhere; }
.pc-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.pc-tags span { padding: 3px 10px; border-radius: 999px; background: #2e2840; color: #d7d2e6; font-size: .76rem; font-weight: 700; overflow-wrap: anywhere; }
.pc-tags .is-live { color: #ffc533; }
.pc-tags .is-off { background: #7f1d1d; color: #ffffff; }
.pc-stats { display: flex; gap: 24px; padding: 0 8px; }
.pc-stats > div { display: grid; justify-items: center; text-align: center; }
.pc-stats b { font-family: var(--display); font-weight: 900; font-size: 2.5rem; line-height: .9; }
.pc-stats span { font-size: .76rem; color: #a39dba; }
.pc-acts { display: grid; gap: 8px; }
.pc-btn { padding: 10px 16px; border: 0; border-radius: 10px; background: #ffc533; color: #16121f; font: inherit; font-weight: 800; font-size: .82rem; cursor: pointer; white-space: nowrap; }
.pc-btn:hover { background: #ffffff; }
.pc-btn.is-line { padding: 8.5px 14.5px; background: transparent; border: 1.5px solid #4b4560; color: #ffffff; font-weight: 700; }
.pc-btn.is-line:hover { border-color: #ffffff; background: transparent; }
.pc-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; align-items: start; }
.pc-card { min-width: 0; display: grid; gap: 10px; padding: 16px 20px; border-radius: 20px; background: #ffffff; border: 1px solid #e4e1ec; scroll-margin-top: 80px; transition: box-shadow .3s; }
.pc-card.is-flash { box-shadow: 0 0 0 3px #ffc533; }
.pc-card-h { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.pc-sum { font-size: .8rem; font-weight: 700; color: #6b6585; }
.pc-card[data-k="prog"] { order: 1; }
.pc-card[data-k="funcoes"] { order: 2; background: #ede5fb; border-color: #ede5fb; }
.pc-card[data-k="funcoes"] .ab-lbl { color: #5b21b6; }
.pc-card[data-k="perms"], .pc-card[data-k="trails"] { order: 3; }
.pc-card[data-k="manage"] { order: 5; grid-column: 1 / -1; }
.pc-card[data-k="hist"] { order: 6; grid-column: 1 / -1; }
@media (max-width: 1180px) {
  .pc-badge { grid-template-columns: auto minmax(0, 1fr) auto; }
  .pc-back { grid-column: 1 / -1; }
  .pc-stats { grid-column: 1 / -1; justify-content: flex-start; padding: 0; }
}
@media (max-width: 760px) {
  .pc-badge { grid-template-columns: minmax(0, 1fr); gap: 14px; padding: 18px; }
  .pc-av { align-items: flex-start; }
  .pc-acts { grid-template-columns: 1fr 1fr; }
  .pc-grid { grid-template-columns: minmax(0, 1fr); }
}
