/* MAMBA ENABLEMENT — sistema de design v2, direção "Dia": página clara, cards brancos, roxo como cor de ação
   e o roxo escuro no menu. Tokens primeiro; o resto só os usa.
   --gold é a COR DE AÇÃO (botões, links, foco, seleção): no claro é roxo; nas áreas escuras volta a ser dourado.
   --sun é o dourado de verdade, para o que pede atenção (dia de hoje, contadores, conquistas).
   Os *-rgb e --hl/--sh são as mesmas cores em "r, g, b", para usar com transparência: rgba(var(--hl), .08). */
:root {
  --bg: #e9e4f2;
  --bg-2: #f1edf7;
  --panel: #ffffff;
  --panel-2: #f6f3fb;
  --panel-3: #ede7fb;
  --line: #d6cee6;
  --line-strong: #c9bfdf;
  --text: #1b1233;
  --muted: #5c5275;
  --faint: #6b6185;
  --gold: #6d28d9;
  --gold-dim: #5b21b6;
  --gold-ink: #ffffff;
  --sun: #fdb927;
  --sun-ink: #1a0f2e;
  --purple: #2b1260;
  --violet: #6d28d9;
  --good: #0c6b45;
  --good-bg: rgba(12, 107, 69, .09);
  --bad: #c0264b;
  --bad-bg: rgba(192, 38, 75, .08);
  --warn: #8a5a00;
  --hl: 43, 18, 96;
  --sh: 233, 228, 242;
  --panel-rgb: 255, 255, 255;
  --gold-rgb: 109, 40, 217;
  --good-rgb: 12, 107, 69;
  --bad-rgb: 192, 38, 75;
  --purple-rgb: 109, 40, 217;
  --shadow: 0 1px 2px rgba(27, 18, 51, .06), 0 8px 20px rgba(27, 18, 51, .06);
  --radius: 14px;
  --radius-sm: 9px;
  --display: "Big Shoulders Display", "Arial Narrow", Impact, sans-serif;
  --body: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --side: 248px;
}
/* Áreas que continuam escuras: o player de aulas (stories), a prévia do construtor e o menu lateral.
   Elas recebem a paleta escura original; tudo dentro delas segue funcionando como antes. */
.stories, .bd-stage, .theme-dark, .side, .next-card {
  --bg: #150b2b;
  --bg-2: #1c0f3a;
  --panel: #241448;
  --panel-2: #2c195a;
  --panel-3: #35206d;
  --line: rgba(255, 255, 255, .13);
  --line-strong: rgba(255, 255, 255, .26);
  --text: #f5f1ff;
  --muted: #bcb0dc;
  --faint: #8f82b6;
  --gold: #fdb927;
  --gold-dim: #c58f12;
  --gold-ink: #1a0f2e;
  --purple: #552583;
  --violet: #9b7bff;
  --good: #52e0a3;
  --good-bg: rgba(82, 224, 163, .11);
  --bad: #ff7a97;
  --bad-bg: rgba(255, 122, 151, .11);
  --warn: #ffc15e;
  --hl: 255, 255, 255;
  --sh: 10, 4, 28;
  --panel-rgb: 36, 20, 72;
  --gold-rgb: 253, 185, 39;
  --good-rgb: 82, 224, 163;
  --bad-rgb: 255, 122, 151;
  --purple-rgb: 85, 37, 131;
  --shadow: none;
  color: var(--text);
}
/* o menu lateral é o roxo escuro da marca, não o fundo noturno */
.side, .next-card {
  --bg: #2b1260;
  --bg-2: #2b1260;
  --panel: #3a1c7a;
  --panel-2: #43228a;
  --panel-3: #4c2a99;
  --muted: #d4c8f0;
  --faint: #c3b5e6;
  --line: rgba(255, 255, 255, .16);
  --panel-rgb: 58, 28, 122;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; min-height: 100vh; background: var(--bg); color: var(--text);
  font-family: var(--body); font-size: 17px; line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, svg, video { max-width: 100%; display: block; }
figure { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--gold); text-underline-offset: 3px; }
a:hover { color: var(--gold-dim); }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 800; line-height: 1.02; letter-spacing: .005em; margin: 0; }
h1 { font-size: clamp(2.6rem, 6vw, 4.4rem); }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.7rem); }
h3 { font-size: 1.6rem; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--gold); color: var(--gold-ink); padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ───── fundo vivo ───── */
.bg { position: fixed; inset: 0; z-index: -1; overflow: hidden; background: var(--bg); }
/* no claro o fundo é liso: os brilhos ficam só nas áreas escuras */
.bg-glow { position: absolute; border-radius: 50%; filter: blur(90px); opacity: 0; will-change: transform; }
.bg-glow-a { width: 520px; height: 520px; background: #5b2a98; left: -140px; top: -120px; animation: drift-a 38s ease-in-out infinite alternate; }
.bg-glow-b { width: 460px; height: 460px; background: #7a4a00; right: -160px; bottom: -160px; animation: drift-b 46s ease-in-out infinite alternate; }
.bg-court { position: absolute; inset: 0; width: 100%; height: 100%; color: rgba(var(--hl), .055); animation: court-pan 90s linear infinite alternate; }
@keyframes drift-a { to { transform: translate(260px, 190px); } }
@keyframes drift-b { to { transform: translate(-300px, -160px); } }
@keyframes court-pan { from { transform: scale(1.08) translateX(-2%); } to { transform: scale(1.08) translateX(2%); } }

/* ───── botões e campos ───── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 10px 20px; border-radius: 999px; border: 2px solid transparent;
  font-weight: 700; font-size: 1rem; cursor: pointer; text-decoration: none;
  transition: transform .12s ease, background .15s ease, border-color .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-gold { background: var(--gold); color: var(--gold-ink); }
.btn-gold:hover { background: var(--gold-dim); color: var(--gold-ink); }
.btn-ghost { background: transparent; border-color: var(--line-strong); color: var(--text); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); }
.btn-danger { background: transparent; border-color: rgba(var(--bad-rgb), .5); color: var(--bad); }
.btn-danger:hover { background: var(--bad-bg); color: var(--bad); }
.btn-sm { min-height: 36px; padding: 6px 14px; font-size: .9rem; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .45; cursor: not-allowed; transform: none; }

.field { display: grid; gap: 6px; margin-bottom: 16px; }
.field label { font-weight: 600; font-size: .95rem; }
.field .hint { color: var(--muted); font-size: .88rem; }
.input, .select, .textarea {
  width: 100%; min-height: 48px; padding: 10px 14px; border-radius: var(--radius-sm);
  background: rgba(var(--sh), .55); border: 1.5px solid var(--line-strong); color: var(--text);
}
.textarea { min-height: 140px; resize: vertical; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: .92rem; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(var(--gold-rgb), .22); }
.input::placeholder { color: var(--faint); }
.form-error { background: var(--bad-bg); border: 1px solid rgba(var(--bad-rgb), .45); color: #ffc1cf; padding: 10px 14px; border-radius: var(--radius-sm); margin-bottom: 16px; font-size: .95rem; }

/* ───── auth ───── */
.auth { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(360px, .9fr); }
.auth-hero { padding: clamp(28px, 5vw, 64px); display: flex; flex-direction: column; justify-content: center; gap: 28px; }
.auth-hero h1 { max-width: 12ch; }
.auth-hero p.lead { color: var(--muted); font-size: 1.15rem; max-width: 44ch; }
.auth-hero .playbook { margin-top: 4px; }
.auth-card-wrap { display: grid; place-items: center; padding: 28px; }
.auth-card { width: 100%; max-width: 440px; background: rgba(var(--panel-rgb), .82); border: 1px solid var(--line); border-radius: 20px; padding: 28px; backdrop-filter: blur(10px); }
.tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; background: rgba(var(--sh), .55); border-radius: 999px; margin-bottom: 22px; }
.tabs button { min-height: 42px; border-radius: 999px; border: 0; background: transparent; cursor: pointer; font-weight: 700; color: var(--muted); }
.tabs button[aria-selected="true"] { background: var(--gold); color: var(--gold-ink); }

/* ───── marca ───── */
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--text); }
.brand-mark { width: 40px; height: 40px; border-radius: 11px; background: #552583; display: grid; place-items: center; flex: none; font-size: 24px; line-height: 1; box-shadow: 0 0 0 1px rgba(255,255,255,.18); }
.brand-name { font-family: var(--display); font-weight: 900; font-size: 1.55rem; letter-spacing: .01em; line-height: 1; }
.brand-name small { display: block; font-family: var(--body); font-weight: 600; font-size: .72rem; color: var(--muted); letter-spacing: 0; margin-top: 3px; }

/* ───── casca do app ───── */
.shell { display: grid; grid-template-columns: var(--side) minmax(0, 1fr); min-height: 100vh; }
.side {
  position: sticky; top: 0; height: 100vh; padding: 22px 16px; display: flex; flex-direction: column; gap: 22px;
  background: var(--bg); border-right: 1px solid var(--line);
}
.nav { display: grid; gap: 4px; }
.nav a {
  display: flex; align-items: center; gap: 12px; padding: 11px 14px; border-radius: 11px;
  color: var(--muted); text-decoration: none; font-weight: 600;
}
.nav a:hover { background: rgba(var(--hl), .06); color: var(--text); }
.nav a[aria-current="page"] { background: #ffffff; color: #2b1260; font-weight: 700; }
.nav-sep { margin: 10px 14px 4px; font-size: .78rem; font-weight: 700; color: var(--faint); }
.side-foot { margin-top: auto; display: grid; gap: 10px; }
.me-card { padding: 12px 14px; border-radius: 12px; background: var(--panel); border: 1px solid var(--line); font-size: .9rem; }
.me-card strong { display: block; line-height: 1.25; overflow-wrap: anywhere; }
.me-card span { color: var(--muted); font-size: .82rem; overflow-wrap: anywhere; }
.main { min-width: 0; }
.top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 14px; padding: 12px clamp(16px, 3vw, 36px); background: rgba(var(--panel-rgb), .96); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.top .menu-btn { display: none; }
.top .crumbs { color: var(--muted); font-size: .95rem; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.top .crumbs a { color: var(--muted); }
.top .spacer { flex: 1; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px; background: var(--panel-2); border: 1px solid var(--line); font-size: .88rem; font-weight: 700; white-space: nowrap; }
.chip-gold { background: rgba(var(--gold-rgb), .14); border-color: rgba(var(--gold-rgb), .5); color: var(--gold); }
.chip-good { background: var(--good-bg); border-color: rgba(var(--good-rgb), .45); color: var(--good); }
.chip-bad { background: var(--bad-bg); border-color: rgba(var(--bad-rgb), .45); color: var(--bad); }
.chip-warn { background: rgba(255, 193, 94, .12); border-color: rgba(255, 193, 94, .45); color: var(--warn); }
.page { max-width: 1060px; margin: 0 auto; padding: clamp(22px, 4vw, 48px) clamp(16px, 3vw, 36px) 96px; }
.page-wide { max-width: 1240px; }
.page-head { margin-bottom: 30px; display: grid; gap: 10px; }
.page-head p { color: var(--muted); max-width: 60ch; margin: 0; }

/* ───── painéis ───── */
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.panel + .panel { margin-top: 18px; }
.panel h3 { margin-bottom: 12px; }
.grid { display: grid; gap: 16px; }
.grid-2, .grid-3, .grid-4 { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.stat { padding: 18px 20px; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--line); }
.stat b { display: block; font-family: var(--display); font-size: 2.7rem; line-height: 1; color: var(--text); }
.stat b.txt { font-size: 2rem; padding-top: .45rem; }
.stat span { color: var(--muted); font-size: .92rem; }
.bar { height: 10px; border-radius: 999px; background: rgba(var(--hl), .1); overflow: hidden; }
.bar > i { display: block; height: 100%; background: var(--gold); border-radius: 999px; transition: width .5s ease; }
.muted { color: var(--muted); }
.small { font-size: .88rem; }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.row-between { justify-content: space-between; }

/* ───── playbook ───── */
.playbook { width: 100%; }
.playbook svg { width: 100%; height: auto; overflow: visible; }
.pb-scroll { overflow-x: auto; padding-bottom: 6px; }
.pb-scroll svg { min-width: 520px; }
.pb-court { fill: none; stroke: rgba(var(--hl), .14); stroke-width: 2; }
.pb-path { fill: none; stroke: rgba(var(--hl), .3); stroke-width: 3; stroke-dasharray: 3 9; stroke-linecap: round; }
.pb-path.done { stroke: var(--gold); stroke-dasharray: none; }
.pb-node circle.base { fill: var(--panel-2); stroke: var(--line-strong); stroke-width: 3; }
.pb-node.avail circle.base { stroke: var(--gold); }
.pb-node.done circle.base { fill: var(--gold); stroke: var(--gold); }
.pb-node.locked { opacity: .55; }
.pb-node text.num { font-family: var(--display); font-weight: 900; font-size: 26px; fill: var(--text); text-anchor: middle; dominant-baseline: central; }
.pb-node.done text.num { fill: var(--gold-ink); }
.pb-node text.lab { font-family: var(--body); font-weight: 700; font-size: 14px; fill: var(--text); text-anchor: middle; }
.pb-node text.sub { font-family: var(--body); font-size: 12px; fill: var(--muted); text-anchor: middle; }
.pb-node a { cursor: pointer; }
.pb-node.locked a { cursor: not-allowed; }
.pb-pulse { fill: none; stroke: var(--gold); stroke-width: 2; opacity: .8; transform-box: fill-box; transform-origin: center; animation: pb-pulse 2.4s ease-out infinite; }
@keyframes pb-pulse { from { transform: scale(1); opacity: .8; } to { transform: scale(1.7); opacity: 0; } }
.pb-ring { fill: none; stroke: var(--gold); stroke-width: 5; stroke-linecap: round; transform: rotate(-90deg); transform-origin: center; transform-box: fill-box; }
.pb-ball { fill: #f58a1f; stroke: #7a3a00; stroke-width: 1.5; }

/* ───── cartões de módulo e aula ───── */
.next-card { display: grid; grid-template-columns: 1fr auto; gap: 18px; align-items: center; border-color: var(--bg); background: var(--bg); color: var(--text); box-shadow: 0 10px 30px rgba(43, 18, 96, .25); }
.next-card h3 { font-size: 2rem; }
.mod-list { display: grid; gap: 14px; }
/* menu de trilhas */
.trail-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 18px; }
.trail-card { display: flex; flex-direction: column; gap: 12px; padding: 22px; border-radius: 18px; text-decoration: none; color: var(--text);
  background: var(--panel); border: 1px solid var(--line); transition: transform .15s ease, border-color .15s ease; }
.trail-card:hover { border-color: var(--gold); color: var(--text); transform: translateY(-2px); }
.trail-card h3 { font-size: 2.1rem; }
.trail-card .trail-tag { margin: 0; color: var(--muted); font-size: 1rem; flex: 1; }
.trail-card .chip-tag { background: var(--panel-3); border-color: #d6c8f5; color: #5b21b6; }
.trail-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; color: var(--faint); font-size: .9rem; font-weight: 600; }
.trail-prog { display: grid; gap: 8px; }
.trail-cta { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; color: var(--gold); margin-top: 4px; }
.trail-card.is-done { border-color: rgba(var(--good-rgb), .5); }
.trail-card.is-soon { background: rgba(var(--panel-rgb), .45); border-style: dashed; opacity: .8; }
.trail-card.is-soon .trail-cta { color: var(--faint); }
.page:focus { outline: none; }
.trail-card.is-soon:hover { transform: none; border-color: var(--line-strong); }
.mod-card { display: grid; grid-template-columns: 74px minmax(0, 1fr) auto; gap: 18px; align-items: center; padding: 18px 20px; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--line); text-decoration: none; color: var(--text); }
.mod-card:hover { border-color: var(--gold); color: var(--text); }
.mod-card.locked { opacity: .6; }
.mod-card.locked:hover { border-color: var(--line); }
.mod-n { font-family: var(--display); font-weight: 900; font-size: 3.4rem; line-height: 1; color: var(--gold); text-align: center; }
.mod-card h3 { font-size: 1.7rem; }
.mod-card p { margin: 4px 0 8px; color: var(--muted); font-size: .98rem; }
.lesson-list { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.lesson-row { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 14px 16px; border-radius: 12px; background: var(--panel); border: 1px solid var(--line); text-decoration: none; color: var(--text); }
.lesson-row:hover { border-color: var(--gold); color: var(--text); }
.lesson-row .dot { width: 36px; height: 36px; border-radius: 50%; border: 2px solid var(--line-strong); display: grid; place-items: center; font-family: var(--display); font-weight: 900; font-size: 1.2rem; }
.lesson-row.done .dot { background: var(--gold); border-color: var(--gold); color: var(--gold-ink); }
.lesson-row .meta { color: var(--muted); font-size: .88rem; }
.lesson-row.locked { opacity: .55; pointer-events: none; }

.exam-card { border-width: 2px; }
.exam-card.ready { border-color: var(--gold); }
.exam-card.ok { border-color: rgba(var(--good-rgb), .6); }
.exam-card.warn { border-color: rgba(255, 193, 94, .6); }
.exam-card.bad { border-color: rgba(var(--bad-rgb), .6); }
.bands { display: grid; gap: 10px; margin: 16px 0 0; padding: 0; list-style: none; }
.bands li { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 14px; padding: 12px 14px; border-radius: 11px; background: rgba(var(--sh), .5); border: 1px solid var(--line); align-items: baseline; }
.bands b { font-family: var(--display); font-size: 1.5rem; }
.bands .b-bad b { color: var(--bad); } .bands .b-warn b { color: var(--warn); } .bands .b-good b { color: var(--good); }

/* ───── aula ───── */
.lesson { max-width: 780px; }
.lesson-head { margin-bottom: 28px; display: grid; gap: 14px; }
.goal { border-left: 4px solid var(--gold); padding: 6px 0 6px 18px; font-size: 1.12rem; }
.goal b { display: block; font-family: var(--display); font-size: 1.15rem; color: var(--gold); margin-bottom: 2px; }
.lesson-body > * + * { margin-top: 22px; }
.lesson-body h3 { margin-top: 38px; font-size: 1.9rem; }
.lesson-body p, .lesson-body li { max-width: 68ch; }
.lesson-body ul { padding-left: 1.2em; display: grid; gap: 10px; margin-bottom: 0; }
.lesson-body strong { color: #fff; }
.callout { padding: 16px 20px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--panel); }
.callout .c-title { display: block; font-family: var(--display); font-weight: 800; font-size: 1.25rem; margin-bottom: 4px; }
.callout > div { font-size: .98rem; }
.callout.dica { border-color: rgba(155, 123, 255, .55); } .callout.dica .c-title { color: var(--violet); }
.callout.atencao { border-color: rgba(255, 193, 94, .6); background: rgba(255, 193, 94, .07); } .callout.atencao .c-title { color: var(--warn); }
.callout.regra { border-color: rgba(var(--gold-rgb), .6); background: rgba(var(--gold-rgb), .07); } .callout.regra .c-title { color: var(--gold); }
.callout.exemplo { border-color: rgba(var(--good-rgb), .5); background: var(--good-bg); } .callout.exemplo .c-title { color: var(--good); }
.terms { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.term { padding: 14px 16px; border-radius: 12px; background: var(--panel-2); border: 1px solid var(--line); }
.term b { font-family: var(--display); font-size: 1.35rem; line-height: 1.1; display: block; }
.term i { display: block; color: var(--faint); font-size: .8rem; font-style: normal; margin: 2px 0 8px; }
.term p { margin: 0; font-size: .93rem; color: var(--muted); }
.terms-title { font-family: var(--display); font-weight: 800; font-size: 1.1rem; color: var(--muted); margin-bottom: 8px; }
.video { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--bg); }
.video-frame { position: relative; aspect-ratio: 16 / 9; background: #000; }
.video-frame button.play { position: absolute; inset: 0; width: 100%; border: 0; padding: 0; background: #000 center / cover no-repeat; cursor: pointer; }
.video-frame button.play::after { content: ""; position: absolute; left: 50%; top: 50%; width: 76px; height: 76px; margin: -38px; border-radius: 50%; background: var(--gold) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%231a0f2e' d='M8 5v14l11-7z'/%3E%3C/svg%3E") center / 38px no-repeat; transition: transform .15s; }
.video-frame button.play:hover::after { transform: scale(1.08); }
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-cap { padding: 14px 18px; display: grid; gap: 4px; }
.video-cap b { font-weight: 700; }
.video-cap span { color: var(--muted); font-size: .92rem; }
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.compare > div { padding: 16px 18px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--panel); }
.compare .good { border-color: rgba(var(--good-rgb), .5); } .compare .bad { border-color: rgba(var(--bad-rgb), .45); }
.compare h4 { font-size: 1.4rem; margin-bottom: 8px; }
.compare .good h4 { color: var(--good); } .compare .bad h4 { color: var(--bad); }
.compare ul { margin: 0; padding-left: 1.1em; display: grid; gap: 8px; font-size: .96rem; }
ol.steps { list-style: none; counter-reset: s; margin: 0; padding: 0; display: grid; gap: 12px; }
ol.steps li { counter-increment: s; display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 14px; align-items: start; padding: 14px 16px; border-radius: 12px; background: rgba(var(--panel-rgb), .85); border: 1px solid var(--line); }
ol.steps li::before { content: counter(s); width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; background: var(--gold); color: var(--gold-ink); font-family: var(--display); font-weight: 900; font-size: 1.25rem; }
ol.steps b { display: block; }
ol.steps span { color: var(--muted); font-size: .95rem; }
.say { padding: 18px 22px; border-radius: var(--radius); background: linear-gradient(135deg, rgba(var(--purple-rgb), .7), rgba(var(--panel-rgb), .85)); border: 1px solid rgba(155, 123, 255, .5); }
.say .c-title { display: block; font-family: var(--display); font-weight: 800; font-size: 1.2rem; color: var(--violet); margin-bottom: 6px; }
.say p { margin: 0; font-size: 1.05rem; font-style: italic; }
.ruler { padding: 14px 18px 8px; border-radius: var(--radius); background: rgba(var(--panel-rgb), .85); border: 1px solid var(--line); }
.ruler svg { width: 100%; height: auto; }
.ruler figcaption { color: var(--muted); font-size: .92rem; margin-top: 6px; }
.rl-track { fill: rgba(var(--hl), .08); } .rl-zone { fill: rgba(var(--gold-rgb), .28); } .rl-out { fill: rgba(var(--bad-rgb), .18); }
.rl-gold { fill: var(--gold); font-weight: 700; }
.rl-text { font-family: var(--body); font-size: 13px; fill: var(--muted); } .rl-strong { font-weight: 700; fill: var(--text); }

/* ───── quiz ───── */
.quiz { padding: 20px 22px; border-radius: var(--radius); background: var(--panel-2); border: 1px solid var(--line-strong); }
.quiz .q-tag { font-family: var(--display); font-weight: 800; font-size: 1.05rem; color: var(--gold); display: block; margin-bottom: 4px; }
.quiz .q-text { font-weight: 700; font-size: 1.08rem; margin-bottom: 14px; }
.opts { display: grid; gap: 9px; margin: 0; padding: 0; list-style: none; }
.opt { display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 12px; align-items: start; padding: 12px 14px; border-radius: 11px; border: 1.5px solid var(--line-strong); background: rgba(var(--sh), .4); cursor: pointer; }
.opt:hover { border-color: var(--gold); }
.opt input { position: absolute; opacity: 0; pointer-events: none; }
.opt .mark { width: 24px; height: 24px; border: 2px solid var(--faint); display: grid; place-items: center; margin-top: 1px; }
.opt .mark.r { border-radius: 50%; } .opt .mark.c { border-radius: 6px; }
.opt input:checked + .mark { border-color: var(--gold); background: var(--gold); box-shadow: inset 0 0 0 4px var(--panel-2); }
.opt input:focus-visible + .mark { outline: 3px solid var(--gold); outline-offset: 3px; }
.opt.right input:checked + .mark, .opt.wrong input:checked + .mark { background: transparent; box-shadow: none; }
.opt.sel { border-color: var(--gold); background: rgba(var(--gold-rgb), .08); }
.opt.right { border-color: var(--good); background: var(--good-bg); }
.opt.wrong { border-color: var(--bad); background: var(--bad-bg); }
.opt.right .mark, .opt.wrong .mark { border-color: transparent; }
.opt.right .mark::after { content: "✓"; color: var(--good); font-weight: 900; }
.opt.wrong .mark::after { content: "✕"; color: var(--bad); font-weight: 900; }
.quiz.done .opt { cursor: default; }
.quiz-foot { margin-top: 14px; display: grid; gap: 10px; }
.quiz .why { padding: 12px 14px; border-radius: 10px; background: rgba(var(--sh), .5); font-size: .96rem; border-left: 4px solid var(--faint); }
.quiz .why.ok { border-left-color: var(--good); } .quiz .why.no { border-left-color: var(--bad); }
.lesson-foot { margin-top: 44px; padding-top: 24px; border-top: 1px solid var(--line); display: grid; gap: 16px; }
.lesson-foot .need { color: var(--warn); font-size: .95rem; }

/* ───── prova ───── */
.exam { max-width: 820px; }
.exam-bar { position: sticky; top: 58px; z-index: 10; padding: 10px 0 14px; background: linear-gradient(var(--bg) 75%, transparent); }
.dots { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.dots button { width: 34px; height: 34px; border-radius: 9px; border: 1.5px solid var(--line-strong); background: transparent; cursor: pointer; font-family: var(--display); font-weight: 800; font-size: 1.05rem; color: var(--muted); }
.dots button.answered { background: var(--panel-3); color: var(--text); border-color: var(--violet); }
.dots button[aria-current="true"] { background: var(--gold); color: var(--gold-ink); border-color: var(--gold); }
.q-topic { display: inline-block; margin-bottom: 10px; }
.exam-q h3 { font-family: var(--body); font-weight: 700; font-size: 1.28rem; line-height: 1.45; margin-bottom: 18px; }
.exam-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 22px; flex-wrap: wrap; }
.score-big { font-family: var(--display); font-weight: 900; font-size: clamp(5rem, 16vw, 9rem); line-height: .9; }
.result-hero { display: grid; gap: 14px; padding: 28px; border-radius: 20px; border: 2px solid var(--line-strong); background: var(--panel); }
.result-hero.ok { border-color: var(--good); } .result-hero.warn { border-color: var(--warn); } .result-hero.bad { border-color: var(--bad); }
.result-hero.ok .score-big { color: var(--good); } .result-hero.warn .score-big { color: var(--warn); } .result-hero.bad .score-big { color: var(--bad); }
.topics { display: flex; flex-wrap: wrap; gap: 8px; }
.review { display: grid; gap: 14px; margin-top: 18px; }
.review-item { padding: 18px 20px; border-radius: var(--radius); background: rgba(var(--panel-rgb), .85); border: 1px solid var(--line); }
.review-item h4 { font-family: var(--body); font-weight: 700; font-size: 1.06rem; line-height: 1.45; margin-bottom: 12px; }
.review-item .opt { cursor: default; }
.tag-mini { display: inline-block; font-size: .78rem; font-weight: 700; margin-left: 8px; padding: 1px 8px; border-radius: 999px; }
.tag-mini.yours { background: var(--bad-bg); color: var(--bad); } .tag-mini.correct { background: var(--good-bg); color: var(--good); }

/* ───── certificado ───── */
.cert { max-width: 920px; margin: 0 auto; padding: 56px clamp(24px, 6vw, 72px); text-align: center; border: 3px solid var(--gold); border-radius: 22px; background: linear-gradient(160deg, #2a1257, #170a33); position: relative; }
.cert::before { content: ""; position: absolute; inset: 12px; border: 1px solid rgba(var(--gold-rgb), .4); border-radius: 14px; pointer-events: none; }
.cert h1 { color: var(--gold); font-size: clamp(2.8rem, 8vw, 5.2rem); margin: 18px 0 10px; }
.cert .who { font-family: var(--display); font-weight: 900; font-size: clamp(2.4rem, 7vw, 4.6rem); line-height: 1.05; margin: 16px 0; overflow-wrap: anywhere; }
.cert .code { font-family: ui-monospace, Menlo, Consolas, monospace; letter-spacing: .08em; color: var(--muted); }

/* ───── admin ───── */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }
table.tbl { width: 100%; border-collapse: collapse; min-width: 760px; font-size: .94rem; }
.tbl th { text-align: left; padding: 12px 14px; font-weight: 700; color: var(--muted); font-size: .86rem; border-bottom: 1px solid var(--line); background: rgba(var(--sh), .35); white-space: nowrap; }
.tbl td { padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl .who b { display: block; line-height: 1.25; } .tbl .who span { color: var(--muted); font-size: .86rem; overflow-wrap: anywhere; }
.tbl .acts { display: flex; gap: 6px; flex-wrap: wrap; }
.toolbar { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin-bottom: 16px; }
.toolbar .input, .toolbar .select { width: auto; min-width: 210px; min-height: 42px; }
.funnel { display: grid; gap: 14px; }
.funnel-row { display: grid; grid-template-columns: 150px minmax(0, 1fr) 90px; gap: 14px; align-items: center; font-size: .94rem; }
.funnel-bars { display: grid; gap: 5px; }
.funnel-bars .bar { height: 12px; } .funnel-bars .bar.b2 > i { background: var(--violet); }
.log-meta { color: var(--muted); font-size: .82rem; overflow-wrap: anywhere; max-width: 360px; }
.q-admin { padding: 16px 18px; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--line); }
.q-admin h4 { font-family: var(--body); font-weight: 700; font-size: 1rem; line-height: 1.45; margin-bottom: 10px; }
.q-admin ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; font-size: .94rem; }
.q-admin li { padding: 7px 10px; border-radius: 8px; border: 1px solid var(--line); }
.q-admin li.right { border-color: var(--good); background: var(--good-bg); }

/* ───── modal e aviso ───── */
dialog { max-width: min(640px, 94vw); width: 100%; padding: 0; border: 1px solid var(--line-strong); border-radius: 18px; background: var(--panel); color: var(--text); }
dialog::backdrop { background: rgba(8, 3, 20, .72); backdrop-filter: blur(3px); }
.dlg { padding: 24px; display: grid; gap: 16px; max-height: 88vh; overflow-y: auto; }
.dlg h3 { font-size: 1.9rem; }
.dlg-actions { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; }
.toasts { position: fixed; right: 18px; bottom: 18px; z-index: 200; display: grid; gap: 10px; max-width: min(380px, calc(100vw - 36px)); }
.toast { padding: 12px 16px; border-radius: 12px; background: var(--panel-3); border: 1px solid var(--line-strong); box-shadow: 0 10px 30px rgba(0, 0, 0, .4); font-size: .95rem; }
.toast.ok { border-color: var(--good); } .toast.err { border-color: var(--bad); }
.empty { padding: 36px 20px; text-align: center; color: var(--muted); border: 1.5px dashed var(--line-strong); border-radius: var(--radius); }
.loading { padding: 80px 20px; text-align: center; color: var(--muted); }
.pw-box { font-family: ui-monospace, Menlo, Consolas, monospace; background: rgba(var(--sh), .6); padding: 2px 8px; border-radius: 6px; user-select: all; }

/* ───── responsivo ───── */
@media (max-width: 980px) {
  .auth { grid-template-columns: minmax(0, 1fr); }
  .auth-hero { padding-bottom: 0; }
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .shell { grid-template-columns: minmax(0, 1fr); }
  .side { position: fixed; z-index: 60; left: 0; top: 0; width: min(290px, 86vw); transform: translateX(-102%); transition: transform .22s ease; }
  .side.open { transform: none; box-shadow: 0 0 0 100vmax rgba(8, 3, 20, .7); }
  .top .menu-btn { display: inline-flex; }
}
@media (max-width: 680px) {
  body { font-size: 16.5px; }
  .auth-hero .playbook { display: none; }
  .grid-2, .grid-3, .compare { grid-template-columns: minmax(0, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat b { font-size: 2.1rem; } .stat b.txt { font-size: 1.5rem; padding-top: .35rem; }
  .next-card { grid-template-columns: minmax(0, 1fr); }
  .mod-card { grid-template-columns: 52px minmax(0, 1fr); }
  .mod-card .chips { grid-column: 1 / -1; }
  .mod-n { font-size: 2.6rem; }
  .trail-card h3 { font-size: 1.8rem; }
  .bands li { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .funnel-row { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .top .crumbs { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
@media print {
  .bg, .side, .top, .no-print, .toasts { display: none !important; }
  body { background: #fff; color: #000; }
  .shell { display: block; }
  .page { padding: 0; max-width: none; }
  .cert { border-color: var(--purple); background: #fff; color: var(--gold-ink); }
  .cert h1 { color: var(--purple); } .cert .code, .cert .muted { color: #555; }
  .cert::before { border-color: var(--gold); }
}

/* ───── telas anotadas e exercício "ache na tela" ───── */
.shot { display: grid; gap: 12px; }
.shot-title { font-family: var(--display); font-weight: 800; font-size: 1.35rem; }
.stage { position: relative; line-height: 0; border-radius: 10px; border: 1px solid var(--line-strong); background: #fff; }
.stage img { width: 100%; height: auto; border-radius: 9px; user-select: none; -webkit-user-drag: none; }
.stage.natural { max-width: none; }
.stage.natural img { max-width: none; width: 100%; }
.mark-box { position: absolute; padding: 0; border: 2px solid #7a2cff; background: rgba(122, 44, 255, .09); border-radius: 4px; cursor: pointer; }
.mark-box:hover { background: rgba(122, 44, 255, .2); }
.mark-box.on { border-color: var(--gold); background: rgba(var(--gold-rgb), .3); box-shadow: 0 0 0 3px var(--gold-ink); z-index: 2; }
.mark-n { position: absolute; left: -9px; top: -9px; min-width: 20px; height: 20px; padding: 0 4px; display: grid; place-items: center; border-radius: 999px; background: #7a2cff; color: #fff; font: 800 12px/1 var(--body); box-shadow: 0 0 0 2px #fff; }
.mark-box.on .mark-n { background: var(--gold); color: var(--gold-ink); }
.stage.bare .mark-box { display: none; }
.shot-tools { display: flex; flex-wrap: wrap; gap: 8px 14px; justify-content: space-between; align-items: center; }
.shot-tools .row { display: flex; gap: 8px; flex-wrap: wrap; }
.shot figcaption { color: var(--muted); font-size: .95rem; }
.shot-legend { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.shot-legend li { max-width: none; }
.shot-legend .leg { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 12px; width: 100%; text-align: left; padding: 10px 12px; border-radius: 11px; border: 1.5px solid var(--line); background: rgba(var(--sh), .35); cursor: pointer; }
.shot-legend .leg:hover { border-color: var(--violet); }
.shot-legend .n { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: #7a2cff; color: #fff; font-weight: 800; font-size: .85rem; }
.shot-legend .t { display: grid; gap: 2px; font-size: .96rem; }
.shot-legend .t b { color: #fff; }
.shot-legend .t span { color: var(--muted); }
.shot-legend li.on .leg { border-color: var(--gold); background: rgba(var(--gold-rgb), .1); }
.shot-legend li.on .n { background: var(--gold); color: var(--gold-ink); }

dialog.zoom { max-width: 96vw; width: 96vw; }
.zoom-in { display: grid; grid-template-rows: auto minmax(0, 1fr); max-height: 92vh; }
.zoom-bar { display: flex; gap: 12px; align-items: flex-start; justify-content: space-between; padding: 12px 16px; border-bottom: 1px solid var(--line); font-size: .95rem; min-height: 64px; }
.zoom-bar b { color: var(--gold); }
.zoom-scroll { overflow: auto; padding: 14px; background: var(--bg-2); max-height: calc(92vh - 64px); }

.find .q-text { margin-bottom: 8px; }
.find-prog { display: flex; justify-content: space-between; align-items: center; color: var(--muted); font-size: .92rem; margin-bottom: 6px; }
.find-prog .dots { display: inline-flex; gap: 6px; }
.find-prog .dots i { width: 10px; height: 10px; border-radius: 50%; border: 2px solid var(--faint); }
.find-prog .dots i.d { background: var(--gold); border-color: var(--gold); }
.find-prog .dots i.c { border-color: var(--gold); }
.stage.clickable { cursor: crosshair; }
.stage.judged { cursor: default; }
.hit { position: absolute; border-radius: 5px; pointer-events: none; }
.hit.ok { border: 3px solid #1aa66f; background: rgba(26, 166, 111, .25); }
.hit.show { border: 3px solid var(--gold); background: rgba(var(--gold-rgb), .3); box-shadow: 0 0 0 3px var(--gold-ink); }
.miss { position: absolute; width: 22px; height: 22px; margin: -11px 0 0 -11px; border-radius: 50%; border: 3px solid #e0345a; background: rgba(224, 52, 90, .25); pointer-events: none; }
.find .alt { margin-top: 10px; font-size: .92rem; color: var(--muted); }
.find .alt summary { cursor: pointer; }
.find .alt .row { display: flex; gap: 8px; margin-top: 8px; flex-wrap: wrap; }
.find .alt select { min-width: 260px; }
.find-score { font-family: var(--display); font-weight: 800; font-size: 2.6rem; line-height: 1; margin: 6px 0; }
.find-score span { font-family: var(--body); font-weight: 600; font-size: 1rem; color: var(--muted); }

/* ───── simulações numéricas (bloco sim) ───── */
.sim .sim-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 4px 0 10px; }
.sim .sim-in { width: min(220px, 100%); font-size: 1.15rem; font-weight: 700; }
.sim .sim-unit { color: var(--muted); font-weight: 600; }
.sim .sim-list { margin: 10px 0 12px; padding-left: 20px; display: grid; gap: 4px; font-weight: 500; }
.sim .q-text b { color: var(--gold); }

[hidden] { display: none !important; }

/* ═════════ FEED, XP, RANKING E BUSCA ═════════ */
.feed { max-width: 700px; margin: 0 auto; display: grid; gap: 16px; }
.feed > .page-head { margin-bottom: 4px; }
.feed-list { display: grid; gap: 16px; }
.feed .panel + .panel { margin-top: 0; }
.spacer { flex: 1; }
.bad { color: var(--bad); }

/* botões e links pequenos */
.icon-btn { display: inline-grid; place-items: center; width: 36px; height: 36px; flex: none; border-radius: 10px; border: 1px solid transparent; background: transparent; color: var(--muted); cursor: pointer; }
.icon-btn:hover { background: rgba(var(--hl), .08); color: var(--text); }
.linkish { background: none; border: 0; padding: 0; color: var(--gold); cursor: pointer; font-weight: 600; font-size: .92rem; text-decoration: underline; text-underline-offset: 3px; }
.chip-xs { padding: 2px 9px; font-size: .74rem; }
.chk { display: inline-flex; align-items: center; gap: 6px; font-size: .88rem; color: var(--muted); white-space: nowrap; }
.chk input { width: 18px; height: 18px; accent-color: var(--gold); }
.avatar { display: inline-grid; place-items: center; flex: none; border-radius: 50%; font-family: var(--display); font-weight: 800; color: #fff; text-transform: uppercase; letter-spacing: .02em; border: 2px solid rgba(var(--hl), .18); }
.avatar.is-admin { border-color: var(--gold); }
.hint.ok { color: var(--good); } .hint.bad { color: var(--bad); }
.tabs-lite { display: flex; gap: 6px; padding: 4px; background: rgba(var(--sh), .55); border-radius: 999px; width: fit-content; max-width: 100%; }
.tabs-lite button { min-height: 38px; padding: 0 18px; border-radius: 999px; border: 0; background: transparent; cursor: pointer; font-weight: 700; color: var(--muted); }
.tabs-lite button[aria-selected="true"] { background: var(--gold); color: var(--gold-ink); }

/* topo: busca e XP */
.top-search { display: flex; align-items: center; gap: 8px; width: min(340px, 36vw); min-height: 40px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line-strong); background: rgba(var(--sh), .5); color: var(--muted); }
.top-search:focus-within { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(var(--gold-rgb), .2); }
.top-search input { flex: 1; min-width: 0; border: 0; background: transparent; outline: none; font-size: .95rem; color: var(--text); }
.top-search input::placeholder { color: var(--faint); }
.xp-btn { cursor: pointer; min-height: 40px; }
.xp-btn:hover { background: rgba(var(--gold-rgb), .24); }
.xp-btn:empty, .xp-btn .xp-val:empty { display: none; }
.nav-badge { margin-left: auto; min-width: 22px; height: 22px; padding: 0 6px; display: inline-grid; place-items: center; border-radius: 999px; background: var(--gold); color: var(--gold-ink); font-size: .78rem; font-weight: 800; }

/* avisos no topo da home */
.nick-banner { display: flex; gap: 16px; align-items: center; justify-content: space-between; flex-wrap: wrap; border-color: rgba(var(--gold-rgb), .45); }
.nick-banner .nick-form { flex: 1 1 300px; }
.nick-form { display: flex; gap: 10px; align-items: flex-start; flex-wrap: wrap; }
.nick-form .field { flex: 1 1 220px; margin: 0; }
.nick-form:not(.compact) { display: grid; }
.at-wrap { position: relative; }
.at-wrap .at { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--gold); font-weight: 800; pointer-events: none; }
.pending-banner { display: flex; gap: 12px; align-items: center; text-decoration: none; color: var(--text); border-color: rgba(255, 193, 94, .5); }
.pending-banner > span { flex: 1; }
.pending-banner:hover { border-color: var(--warn); color: var(--text); }
.checkin { display: flex; gap: 14px; align-items: center; border-color: rgba(var(--gold-rgb), .4); background: linear-gradient(120deg, rgba(var(--purple-rgb), .7), rgba(var(--panel-rgb), .8)); }
.checkin > div { flex: 1; min-width: 0; }
.checkin.is-done { border-color: rgba(var(--good-rgb), .4); background: var(--panel); }
.ck-ico { width: 40px; height: 40px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--gold); color: var(--gold-ink); }
.checkin.is-done .ck-ico, .xp-card .ck-ico { background: var(--good-bg); color: var(--good); border: 1px solid rgba(var(--good-rgb), .45); }

/* publicar */
.composer { display: grid; gap: 12px; transition: border-color .15s; }
.composer.drop { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(var(--gold-rgb), .25); }
.composer-top { display: flex; gap: 12px; align-items: flex-start; }
.composer-text { flex: 1; min-height: 76px; font-family: var(--body); font-size: 1rem; }
.composer-bar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.tools { display: flex; gap: 6px; flex-wrap: wrap; }
.tool-btn { display: inline-flex; align-items: center; gap: 7px; min-height: 40px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--line); background: rgba(var(--sh), .35); color: var(--muted); cursor: pointer; font-weight: 600; font-size: .92rem; }
.tool-btn:hover:not([disabled]) { border-color: var(--gold); color: var(--gold); }
.tool-btn[disabled] { opacity: .45; cursor: not-allowed; }
.att-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.att-list:empty { display: none; }
.att { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border-radius: 12px; border: 1px solid var(--line); background: rgba(var(--sh), .4); }
.att.bad { border-color: rgba(var(--bad-rgb), .5); background: var(--bad-bg); color: inherit; }
.att img { width: 48px; height: 48px; object-fit: cover; border-radius: 8px; flex: none; }
.att-ico { width: 48px; height: 48px; flex: none; border-radius: 8px; display: grid; place-items: center; background: var(--panel-3); color: var(--gold); }
.att-info { flex: 1; min-width: 0; display: grid; gap: 4px; }
.att-info strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .95rem; }
.link-row { display: flex; gap: 8px; }
.link-row .input { flex: 1; min-width: 0; }

/* post */
.post { background: var(--panel); border: 1px solid var(--line-strong); box-shadow: 0 2px 14px rgba(0, 0, 0, .28); border-radius: var(--radius); padding: 18px 18px 8px; }
.post.is-pending { border-color: rgba(255, 193, 94, .5); }
.post.is-rejected { border-color: rgba(var(--bad-rgb), .5); }
.post-head { display: flex; gap: 12px; align-items: center; margin-bottom: 12px; }
.post-who { flex: 1; min-width: 0; }
.post-name { color: var(--text); font-weight: 700; text-decoration: none; }
.post-name:hover { color: var(--gold); }
.post-who a.muted { text-decoration: none; }
.post-who a.muted:hover { color: var(--gold); text-decoration: underline; }
.post-text { margin: 0 0 12px; white-space: pre-wrap; overflow-wrap: anywhere; }
.post-text.clamp { display: -webkit-box; -webkit-line-clamp: 6; -webkit-box-orient: vertical; overflow: hidden; }
.post > .linkish { margin: -4px 0 12px; display: block; }
.post-reason { margin: 12px 0 0; padding: 10px 14px; border-radius: 10px; background: var(--bad-bg); border: 1px solid rgba(var(--bad-rgb), .4); color: #ffc1cf; font-size: .95rem; }
.post-actions { display: flex; align-items: center; gap: 8px; margin: 12px -8px 0; padding: 6px 0 8px; border-top: 1px solid var(--line); padding-inline: 8px; }
.act-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 12px; border-radius: 10px; border: 0; background: transparent; color: var(--muted); cursor: pointer; font-weight: 600; font-size: .95rem; }
.act-btn:hover { background: rgba(var(--hl), .07); color: var(--text); }
.act-n { color: var(--text); font-variant-numeric: tabular-nums; }
.act-n:empty { display: none; }
.mod-bar { padding: 12px 0 8px; margin-top: 12px; border-top: 1px solid var(--line); }

/* hype: foguete */
.hype-wrap { position: relative; display: inline-flex; align-items: center; gap: 10px; }
.hype-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px; border-radius: 999px; border: 1.5px solid var(--line-strong); background: transparent; color: var(--muted); cursor: pointer; font-weight: 800; letter-spacing: .02em; }
.hype-btn:hover { border-color: var(--gold); color: var(--gold); }
.hype-btn.on { background: rgba(var(--gold-rgb), .16); border-color: var(--gold); color: var(--gold); }
.hype-btn svg { transition: transform .2s; }
.hype-btn:hover svg { transform: translate(2px, -2px) rotate(-6deg); }
.hype-n { font-variant-numeric: tabular-nums; }
.hype-line { display: inline-flex; align-items: center; }
.hype-line:empty { display: none; }
.mini-rocket { display: inline-grid; color: var(--gold); margin-left: -3px; opacity: calc(1 - var(--i) * .12); transform: translateY(calc(var(--i) * -2px)) rotate(8deg); }
.rocket-fly { position: absolute; left: 14px; bottom: 6px; z-index: 5; pointer-events: none; color: var(--gold); display: grid; place-items: center; animation: rocket-up 1.15s cubic-bezier(.3, .1, .4, 1) forwards; filter: drop-shadow(0 0 8px rgba(var(--gold-rgb), .7)); }
.rocket-fly svg { transform: rotate(0deg); }
.rocket-fly .trail { position: absolute; right: 62%; top: 62%; width: 90px; height: 5px; border-radius: 999px; transform-origin: right center; transform: rotate(-45deg); background: linear-gradient(90deg, transparent, rgba(var(--gold-rgb), .85)); animation: trail-fade 1.15s ease-out forwards; }
@keyframes rocket-up {
  0% { transform: translate(0, 0) scale(.7); opacity: 0; }
  12% { opacity: 1; }
  100% { transform: translate(190px, -170px) scale(1.25); opacity: 0; }
}
@keyframes trail-fade { 0% { opacity: 0; width: 10px; } 30% { opacity: 1; } 100% { opacity: 0; width: 120px; } }

/* comentários */
.comments { border-top: 1px solid var(--line); padding: 12px 0 8px; display: grid; gap: 12px; }
.c-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.c-item { display: flex; gap: 10px; align-items: flex-start; }
.c-body { flex: 1; min-width: 0; padding: 8px 12px; border-radius: 12px; background: rgba(var(--sh), .4); }
.c-head { display: flex; gap: 6px; flex-wrap: wrap; align-items: baseline; }
.c-name { color: var(--text); font-weight: 700; text-decoration: none; font-size: .95rem; }
.c-text { margin: 2px 0 0; font-size: .96rem; overflow-wrap: anywhere; }
.c-form { display: flex; gap: 8px; }
.c-form .input { flex: 1; min-width: 0; }

/* texto rico */
.rich-link { overflow-wrap: anywhere; }
.rich-mention, .rich-tag { color: var(--violet); font-weight: 600; text-decoration: none; }
.rich-mention:hover, .rich-tag:hover { color: var(--gold-dim); text-decoration: underline; }
mark { background: rgba(var(--sun-rgb, 253, 185, 39), .45); color: var(--text); border-radius: 3px; padding: 0 2px; }

/* mídia */
.media { display: grid; gap: 10px; margin-bottom: 4px; }
.m-grid { display: grid; gap: 4px; border-radius: 12px; overflow: hidden; }
.m-grid.n2, .m-grid.n3, .m-grid.n4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.m-grid.n3 .m-img:first-child { grid-row: span 2; }
.m-img { padding: 0; border: 0; background: var(--bg); cursor: zoom-in; display: block; line-height: 0; }
.m-img img { width: 100%; height: 100%; object-fit: cover; max-height: 520px; }
.m-grid.n1 .m-img { text-align: center; }
.m-grid.n1 .m-img img { width: auto; max-width: 100%; height: auto; max-height: 560px; object-fit: contain; margin: 0 auto; }
.m-grid.n2 .m-img img, .m-grid.n3 .m-img img, .m-grid.n4 .m-img img { aspect-ratio: 1 / 1; }
.m-grid.n3 .m-img:first-child img { aspect-ratio: auto; }
.m-big { max-width: 100%; max-height: 78vh; margin: 0 auto; border-radius: 8px; }
.m-video { width: 100%; max-height: 560px; border-radius: 12px; background: #000; }
.m-embed-wrap { border-radius: 12px; overflow: hidden; border: 1px solid var(--line); background: rgba(var(--sh), .5); }
.m-embed { position: relative; width: 100%; background: var(--bg); }
.m-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.m-face { position: absolute; inset: 0; width: 100%; border: 0; cursor: pointer; display: grid; place-items: center; background: linear-gradient(135deg, var(--purple), var(--bg-2)) center / cover; color: #fff; }
.m-play { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: rgba(21, 11, 43, .75); border: 2px solid var(--gold); color: var(--gold); transition: transform .15s; }
.m-face:hover .m-play { transform: scale(1.1); }
.m-prov { position: absolute; left: 10px; bottom: 10px; padding: 3px 10px; border-radius: 999px; background: rgba(21, 11, 43, .85); font-size: .8rem; font-weight: 700; }
.m-embed-bar { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 8px 12px; flex-wrap: wrap; }
.m-embed-bar a { font-size: .92rem; font-weight: 600; }
.m-link, .m-file { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); background: rgba(var(--sh), .4); text-decoration: none; color: var(--text); }
a.m-link:hover { border-color: var(--gold); color: var(--text); }
.m-link-ico { width: 42px; height: 42px; flex: none; border-radius: 10px; display: grid; place-items: center; background: var(--panel-3); color: var(--gold); }
.m-link-txt { flex: 1; min-width: 0; display: grid; }
.m-link-txt strong, .m-link-txt span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.m-pdf { width: 100%; height: 76vh; border: 0; border-radius: 8px; background: #fff; }
dialog:has(.viewer) { max-width: min(1100px, 96vw); }
.viewer { padding: 16px; display: grid; gap: 12px; }

/* menu de XP, à direita */
.xp-overlay { position: fixed; inset: 0; z-index: 80; background: rgba(8, 3, 20, .6); opacity: 0; transition: opacity .2s; }
.xp-overlay.in { opacity: 1; }
.xp-drawer { position: fixed; top: 0; right: 0; bottom: 0; z-index: 81; width: min(400px, 100vw); display: flex; flex-direction: column; background: var(--panel); border-left: 1px solid var(--line-strong); box-shadow: -20px 0 50px rgba(0, 0, 0, .45); transform: translateX(102%); transition: transform .22s ease; }
.xp-drawer.in { transform: none; }
.xp-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px 14px 20px; border-bottom: 1px solid var(--line); }
.xp-head strong { font-family: var(--display); font-size: 1.7rem; font-weight: 800; }
.xp-body { flex: 1; overflow-y: auto; padding: 18px 20px 28px; display: grid; gap: 18px; align-content: start; }
.xp-hero { padding: 18px; border-radius: var(--radius); background: linear-gradient(135deg, var(--purple), var(--panel-2)); border: 1px solid rgba(var(--gold-rgb), .4); }
.xp-big { display: flex; align-items: baseline; gap: 10px; }
.xp-big b { font-family: var(--display); font-size: 3.6rem; line-height: 1; color: var(--gold); font-weight: 900; }
.xp-big span { color: var(--muted); font-weight: 600; }
.xp-split { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 8px; font-size: .9rem; color: var(--muted); }
.xp-split b { color: var(--text); }
.xp-card { padding: 14px; border-radius: var(--radius); background: rgba(var(--sh), .4); border: 1px solid var(--line); }
.xp-h { font-family: var(--body); font-size: .8rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--faint); margin: 0 0 10px; }
.goals { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.goal { display: grid; gap: 8px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); background: rgba(var(--sh), .4); }
.goal.done { border-color: rgba(var(--good-rgb), .4); background: var(--good-bg); }
.g-title { font-weight: 700; line-height: 1.3; }
.goal.done .bar > i { background: var(--good); }
.earn { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; color: var(--muted); font-size: .94rem; }
.earn b { color: var(--gold); display: inline-block; min-width: 2.2em; }
.xp-log { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: .92rem; color: var(--muted); }
.xp-log li { display: flex; justify-content: space-between; gap: 10px; }
.xp-log b { color: var(--gold); }
.xp-links { display: flex; gap: 8px; flex-wrap: wrap; }

/* ranking */
.rank-me { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.podium { display: flex; justify-content: center; gap: 12px; align-items: flex-end; padding-top: 18px; }
.podium .pod { flex: 1 1 0; max-width: 220px; min-width: 0; }
.pod { position: relative; display: grid; justify-items: center; gap: 4px; padding: 26px 8px 14px; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--line); color: var(--text); text-decoration: none; text-align: center; }
.pod:hover { border-color: var(--gold); color: var(--text); }
.pod.p1 { padding-top: 34px; padding-bottom: 22px; border-color: rgba(var(--gold-rgb), .6); background: linear-gradient(180deg, rgba(var(--gold-rgb), .16), rgba(var(--panel-rgb), .8)); }
.pod strong { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pod-medal { position: absolute; top: -14px; left: 50%; transform: translateX(-50%); width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font-family: var(--display); font-weight: 900; font-size: 1.2rem; color: var(--gold-ink); background: #c9c3d9; border: 2px solid var(--bg); }
.pod.p1 .pod-medal { background: var(--gold); } .pod.p3 .pod-medal { background: #d08a4e; }
.rank-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.rank-row { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-radius: 12px; border: 1px solid var(--line); background: rgba(var(--panel-rgb), .6); }
.rank-row.me { border-color: var(--gold); background: rgba(var(--gold-rgb), .1); }
.rank-pos { width: 30px; text-align: center; font-family: var(--display); font-weight: 900; font-size: 1.5rem; color: var(--muted); }
.rank-row.top .rank-pos { color: var(--gold); }
.rank-who { flex: 1; min-width: 0; display: grid; line-height: 1.3; }
.rank-who a { color: var(--text); font-weight: 700; text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rank-xp { color: var(--gold); font-variant-numeric: tabular-nums; white-space: nowrap; }

/* perfil */
.profile-head { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.profile-info { flex: 1; min-width: 200px; }
.profile-info h2 { font-size: 2.2rem; margin-bottom: 4px; }

/* busca */
.search-form { display: flex; gap: 10px; }
.search-form .input { flex: 1; min-width: 0; }
.search-out { display: grid; gap: 22px; }
.s-h { font-size: 1.5rem; margin-bottom: 10px; }
.s-people, .s-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.s-person, .s-item { display: flex; gap: 12px; align-items: center; padding: 10px 14px; border-radius: 12px; border: 1px solid var(--line); background: rgba(var(--panel-rgb), .6); color: var(--text); text-decoration: none; }
.s-item { display: grid; gap: 4px; }
.s-person:hover, .s-item:hover { border-color: var(--gold); color: var(--text); }
.s-snip { margin: 2px 0 0; color: var(--muted); font-size: .94rem; overflow-wrap: anywhere; }

/* admin: metas */
.goal-edit { display: grid; gap: 10px; }
.goal-row { display: grid; grid-template-columns: minmax(180px, 2fr) minmax(130px, 1.2fr) 76px minmax(110px, 1fr) 84px auto auto; gap: 8px; align-items: center; padding: 10px; border-radius: 12px; border: 1px solid var(--line); background: rgba(var(--sh), .35); }
.goal-row.off { opacity: .55; }
.goal-row .input.num { padding-inline: 10px; }

@media (max-width: 980px) {
  .goal-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .goal-row > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 680px) {
  .top-search { width: auto; flex: 1; min-width: 0; padding: 0 10px; }
  .top-search svg { display: none; }
  .top .spacer { display: none; }
  .post { padding: 14px 14px 6px; }
  .composer-bar .btn { flex: 1 1 100%; }
  .composer-bar .spacer { display: none; }
  .checkin > div { flex: 1 1 150px; }
  .checkin .btn { flex: 1 1 100%; }
  .tool-btn span { display: none; }
  .tool-btn { padding: 0 12px; }
  .podium { gap: 8px; }
  .search-form { flex-direction: column; }
  .rocket-fly { animation-name: rocket-up-sm; }
  .m-grid.n3 .m-img:first-child { grid-row: auto; }
  .checkin { flex-wrap: wrap; }
}
@keyframes rocket-up-sm { 0% { transform: translate(0, 0) scale(.7); opacity: 0; } 12% { opacity: 1; } 100% { transform: translate(110px, -120px) scale(1.2); opacity: 0; } }

.panel .grid { align-items: start; }
.panel .grid .field { margin-bottom: 0; }
.panel + .row { margin-top: 18px; }

.feed-top { display: grid; gap: 16px; }
.feed-top:empty { display: none; }
.composer-bar .btn { white-space: nowrap; }

/* foto de perfil */
.avatar { position: relative; overflow: hidden; }
.avatar.has-img { background: var(--bg-2) !important; }
.avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.avatar-form { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.avatar-actions { display: grid; gap: 8px; min-width: 0; }
.avatar-form.compact { gap: 12px; }
.nick-banner { display: grid; gap: 14px; }
.nick-banner .nick-form { flex: none; }
.me-card { display: grid; gap: 2px; }
.me-av { justify-self: start; margin-bottom: 6px; text-decoration: none; }
.m-gif { cursor: pointer; }

/* tipo de tela: celular ou computador */
.auth-stack { width: 100%; max-width: 440px; display: grid; gap: 16px; }
.mode-switch { display: grid; gap: 8px; justify-items: start; }
.auth-stack .mode-switch { justify-items: center; }
.mode-label { font-size: .85rem; font-weight: 700; color: var(--muted); }
.mode-btns { display: inline-flex; gap: 4px; padding: 4px; border-radius: 999px; background: rgba(var(--sh), .55); border: 1px solid var(--line); }
.mode-opt { display: inline-flex; align-items: center; gap: 8px; min-height: 38px; padding: 0 14px; border-radius: 999px; border: 0; background: transparent; color: var(--muted); cursor: pointer; font-weight: 700; font-size: .9rem; }
.mode-opt:hover { color: var(--text); }
.mode-opt[aria-pressed="true"] { background: var(--gold); color: var(--gold-ink); }
.mode-auto { font-size: .82rem; }
.side-foot .mode-btns { width: 100%; }
.side-foot .mode-opt { flex: 1; justify-content: center; padding: 0 8px; }

/* campos com 16 px: o iPhone não dá zoom sozinho ao digitar */
@media (max-width: 680px) { input, select, textarea, .top-search input { font-size: 16px; } }

/* ───── comunidade: @ com lista, emojis, tags, enquetes, sino, menu do post ───── */
.mention-host { position: relative; flex: 1; min-width: 0; }
.mention-host > .input, .mention-host > .textarea { width: 100%; }
.mention-list { position: absolute; left: 0; right: 0; top: calc(100% + 4px); z-index: 40; list-style: none; margin: 0; padding: 4px; max-height: 270px; overflow-y: auto; background: var(--panel-2); border: 1px solid var(--line-strong); border-radius: 12px; box-shadow: 0 14px 34px rgba(0, 0, 0, .45); }
.mention-list li button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 7px 10px; border: 0; border-radius: 8px; background: transparent; color: var(--text); text-align: left; cursor: pointer; }
.mention-list li.on button, .mention-list li button:hover { background: rgba(var(--gold-rgb), .16); }
.mention-who { display: grid; min-width: 0; }
.mention-who strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .95rem; }
.mention-who small { color: var(--muted); font-size: .8rem; }
.mention-all { width: 28px; height: 28px; flex: none; border-radius: 50%; display: grid; place-items: center; background: rgba(var(--gold-rgb), .2); color: var(--gold); }
.tool-btn.on { border-color: var(--gold); color: var(--gold); background: rgba(var(--gold-rgb), .12); }
.emoji-wrap { position: relative; display: inline-block; }
.emoji-pop { position: absolute; left: 0; top: calc(100% + 6px); z-index: 45; width: min(330px, calc(100vw - 32px)); padding: 8px; background: var(--panel-2); border: 1px solid var(--line-strong); border-radius: 14px; box-shadow: 0 14px 34px rgba(0, 0, 0, .45); }
.emoji-pop.up { top: auto; bottom: calc(100% + 6px); left: auto; right: 0; }
.emoji-tabs { display: flex; gap: 4px; overflow-x: auto; padding-bottom: 6px; }
.emoji-tabs button { flex: none; padding: 4px 10px; border-radius: 999px; border: 0; background: transparent; color: var(--muted); font-weight: 700; font-size: .82rem; cursor: pointer; }
.emoji-tabs button[aria-selected="true"] { background: var(--gold); color: var(--gold-ink); }
.emoji-grid { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 2px; max-height: 210px; overflow-y: auto; }
.emoji-opt { min-height: 38px; border: 0; border-radius: 8px; background: transparent; font-size: 1.35rem; line-height: 1; cursor: pointer; }
.emoji-opt:hover { background: rgba(var(--hl), .12); }
.c-form .emoji-btn { padding: 0 10px; min-height: 40px; }

.tag-gold { --tc: 253, 185, 39; } .tag-purple { --tc: 178, 140, 255; } .tag-green { --tc: 82, 224, 163; } .tag-red { --tc: 255, 122, 151; }
.tag-blue { --tc: 98, 176, 255; } .tag-orange { --tc: 255, 152, 64; } .tag-pink { --tc: 255, 128, 200; } .tag-gray { --tc: 190, 184, 210; }
.tag-chip { display: inline-flex; align-items: center; gap: 5px; padding: 2px 10px; border-radius: 999px; font-size: .76rem; font-weight: 700; text-decoration: none; white-space: nowrap; color: rgb(var(--tc)); background: rgba(var(--tc), .14); border: 1px solid rgba(var(--tc), .5); }
a.tag-chip:hover { background: rgba(var(--tc), .26); }
.tag-bar { display: flex; flex-wrap: wrap; gap: 8px; margin: 2px 0 14px; }
.tag-pill { display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px; border-radius: 999px; border: 1px solid var(--line-strong); background: rgba(var(--sh), .35); color: var(--muted); font-weight: 700; font-size: .9rem; text-decoration: none; }
.tag-pill:is(.tag-gold,.tag-purple,.tag-green,.tag-red,.tag-blue,.tag-orange,.tag-pink,.tag-gray) { color: rgb(var(--tc)); border-color: rgba(var(--tc), .5); }
.tag-pill:hover { border-color: var(--gold); }
.tag-pill.on { background: var(--gold); border-color: var(--gold); color: var(--gold-ink); }
.tag-pill.on:is(.tag-gold,.tag-purple,.tag-green,.tag-red,.tag-blue,.tag-orange,.tag-pink,.tag-gray) { background: rgb(var(--tc)); border-color: rgb(var(--tc)); color: var(--gold-ink); }
.tag-pill.search-pill { margin-left: auto; color: var(--text); }
.tag-select { width: auto; min-width: 190px; }
.composer-meta { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.composer-meta .select { width: auto; min-width: 170px; min-height: 38px; padding-block: 4px; }
.composer-meta label { display: inline-flex; align-items: center; gap: 6px; }
.check-inline { cursor: pointer; margin-left: auto; color: var(--muted); }
.check-inline input, .check-row input { accent-color: var(--gold); width: 18px; height: 18px; }
.check-row { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; }
.check-row input { margin-top: 4px; }

.pop-wrap { position: relative; }
.pop-menu { position: absolute; right: 0; top: calc(100% + 4px); z-index: 45; min-width: 220px; list-style: none; margin: 0; padding: 6px; background: var(--panel-2); border: 1px solid var(--line-strong); border-radius: 12px; box-shadow: 0 14px 34px rgba(0, 0, 0, .45); }
.pop-menu button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 12px; border: 0; border-radius: 8px; background: transparent; color: var(--text); font-weight: 600; text-align: left; cursor: pointer; }
.pop-menu button:hover, .pop-menu button:focus-visible { background: rgba(var(--hl), .09); }
.pop-menu button.danger { color: var(--bad); }
.post.is-pinned { border-color: rgba(var(--gold-rgb), .55); box-shadow: inset 3px 0 0 var(--gold); }
.post-who .row { flex-wrap: wrap; row-gap: 4px; }

.poll-builder { display: grid; gap: 12px; padding: 14px; border: 1px dashed var(--line-strong); border-radius: 14px; background: rgba(var(--sh), .3); }
.pb-modes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.pb-mode { display: grid; gap: 2px; padding: 10px 12px; text-align: left; border-radius: 12px; border: 1px solid var(--line); background: transparent; color: var(--text); cursor: pointer; }
.pb-mode span { color: var(--muted); }
.pb-mode.on { border-color: var(--gold); background: rgba(var(--gold-rgb), .1); }
.pb-q { display: grid; gap: 8px; min-width: 0; margin: 0; padding: 12px; border: 1px solid var(--line); border-radius: 12px; }
.pb-q-head { display: flex; justify-content: space-between; gap: 8px; }
.pb-opts { display: grid; gap: 6px; }
.pb-opt { display: flex; gap: 6px; align-items: center; }
.pb-opt .input { flex: 1; min-width: 0; }
.poll { display: grid; gap: 16px; margin: 4px 0 12px; padding: 14px; border-radius: 14px; border: 1px solid var(--line); background: rgba(var(--sh), .35); }
.poll-q { min-width: 0; margin: 0; padding: 0; border: 0; }
.poll-q legend { padding: 0; margin: 0 0 8px; font-weight: 700; overflow-wrap: anywhere; }
.poll-opts { display: grid; gap: 8px; }
.poll-opt { position: relative; overflow: hidden; display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 44px; padding: 8px 14px; text-align: left; border-radius: 12px; border: 1px solid var(--line-strong); background: rgba(var(--sh), .45); color: var(--text); font-weight: 600; cursor: pointer; }
.poll-opt:disabled { cursor: default; }
.poll-opt:not(:disabled):hover { border-color: var(--gold); }
.poll-opt.mine { border-color: var(--gold); }
.poll-fill { position: absolute; inset: 0 auto 0 0; z-index: 0; background: rgba(var(--gold-rgb), .2); transition: width .45s ease; }
.poll-opt.mine .poll-fill { background: rgba(var(--gold-rgb), .38); }
.poll-t, .poll-n { position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 6px; overflow-wrap: anywhere; }
.poll-n { flex: none; color: var(--muted); font-variant-numeric: tabular-nums; }
.poll-note { margin: 6px 0 0; }

.bell-wrap { position: relative; }
.bell-btn { position: relative; }
.bell-n { position: absolute; top: -3px; right: -3px; min-width: 18px; height: 18px; padding: 0 5px; display: grid; place-items: center; border-radius: 999px; background: var(--gold); color: var(--gold-ink); font-size: .7rem; font-weight: 800; }
.notif-panel { position: absolute; right: 0; top: calc(100% + 10px); z-index: 60; width: min(380px, calc(100vw - 24px)); max-height: min(70vh, 520px); overflow-y: auto; background: var(--panel); border: 1px solid var(--line-strong); border-radius: 14px; box-shadow: 0 18px 44px rgba(0, 0, 0, .5); }
.notif-head { padding: 12px 16px; border-bottom: 1px solid var(--line); }
.notif-list { list-style: none; margin: 0; padding: 0; }
.notif-item { display: flex; gap: 12px; padding: 12px 16px; color: var(--text); text-decoration: none; border-bottom: 1px solid var(--line); }
.notif-item:hover { background: rgba(var(--hl), .05); }
.notif-item.unread { background: rgba(var(--gold-rgb), .09); }
.notif-txt { display: grid; gap: 2px; min-width: 0; }
.notif-snip { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.notif-ico { width: 34px; height: 34px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--panel-3); color: var(--gold); }

.swatches { display: flex; gap: 6px; flex-wrap: wrap; }
.swatch { width: 24px; height: 24px; padding: 0; border-radius: 50%; border: 2px solid transparent; background: rgb(var(--tc)); cursor: pointer; }
.swatch.on { border-color: #fff; box-shadow: 0 0 0 2px var(--bg); }
.tag-new { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.tag-new .input { flex: 1 1 220px; min-width: 0; }
.tag-rows { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 10px; }
.tag-row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; padding: 10px; border: 1px solid var(--line); border-radius: 12px; }
.tag-row .input { flex: 1 1 140px; min-width: 0; }
.good { color: var(--good); } .bad { color: var(--bad); }
@media (max-width: 680px) {
  .emoji-pop, .emoji-pop.up { position: fixed; left: 8px; right: 8px; top: auto; bottom: 8px; width: auto; }
  .notif-panel { position: fixed; left: 12px; right: 12px; top: 64px; width: auto; }
  .tag-pill.search-pill { margin-left: 0; }
  .pb-modes { grid-template-columns: minmax(0, 1fr); }
  .tag-select { width: 100%; }
  .check-inline { margin-left: 0; }
  .c-form { flex-wrap: wrap; }
  .c-form .mention-host { flex: 1 1 100%; }
  .c-form .btn { flex: 1; }
  .tag-row .swatches { flex: 1 1 100%; }
}

/* ───── código de ativação (entregue pelo gestor) ───── */
.handoff { display: grid; gap: 14px; }
.handoff h3 { margin: 0; }
.handoff p { margin: 0; }
.copy-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 14px 16px; border: 1px dashed var(--gold); border-radius: 14px; background: rgba(var(--gold-rgb), .08); }
.big-code { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 2.2rem; font-weight: 800; letter-spacing: .28em; color: var(--gold); line-height: 1; padding-left: .28em; }
.code-input { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 1.5rem; letter-spacing: .4em; text-align: center; }
.code-input::placeholder { letter-spacing: .4em; }
@media (max-width: 680px) { .big-code { font-size: 1.8rem; letter-spacing: .2em; } }

/* ───── aviso de post novo (feed ao vivo) ───── */
.live-wrap { position: sticky; top: 76px; z-index: 5; display: flex; justify-content: center; pointer-events: none; }
.live-wrap[hidden], .live-bar[hidden] { display: none; }
.live-bar { pointer-events: auto; display: inline-flex; align-items: center; gap: 8px; padding: 9px 18px; border-radius: 999px; border: 0; background: var(--gold); color: var(--gold-ink); font: inherit; font-weight: 800; font-size: .92rem; cursor: pointer; box-shadow: 0 8px 24px rgba(0, 0, 0, .45); animation: live-in .28s ease-out; }
.live-bar:hover { background: #ffd04f; }
@keyframes live-in { from { transform: translateY(-8px); opacity: 0; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .live-bar { animation: none; } }

/* ───── revisão de UI/UX ───── */
/* menu lateral: o rodapé nunca é cortado; só a lista de links rola */
.side { overflow: hidden; }
@supports (height: 100dvh) { .side { height: 100dvh; } }
.side .nav { flex: 1 1 auto; min-height: 0; overflow-y: auto; align-content: start; scrollbar-width: thin; scrollbar-color: rgba(var(--hl), .18) transparent; }
.side-foot { flex: none; gap: 8px; }
.me-card { display: flex; align-items: center; gap: 10px; padding: 9px 9px 9px 11px; }
.me-av { margin: 0; flex: none; }
.me-txt { min-width: 0; flex: 1; display: grid; }
.me-txt strong, .me-txt span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; overflow-wrap: normal; }
.me-out { flex: none; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 10px; border: 1px solid var(--line-strong); background: transparent; color: var(--muted); cursor: pointer; }
.me-out:hover { color: var(--text); border-color: var(--gold); }

/* feed: o publicador fecha quando não está em uso e os avisos do topo ficam finos */
.composer.is-compact { gap: 0; padding-block: 14px; cursor: text; }
.composer.is-compact > :not(.composer-top) { display: none; }
.composer.is-compact .composer-text { min-height: 48px; height: 48px; resize: none; overflow: hidden; }
.feed-top { display: grid; gap: 12px; }
.nick-banner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 18px; padding: 14px 18px; }
.nick-banner .nick-intro { flex: 1 1 260px; min-width: 0; }
.nick-banner .nick-form { flex: 1 1 280px; }
.checkin { padding: 12px 18px; }

.nav a { padding: 8px 14px; line-height: 1.4; }
.nav-sep { margin-top: 8px; }
@media (min-width: 981px) { .funnel-row { grid-template-columns: 230px minmax(0, 1fr) 84px; } }
.nick-banner .nick-form { flex: 1 1 100%; flex-wrap: nowrap; align-items: flex-start; }
.nick-banner .nick-form .field { flex: 1 1 auto; min-width: 0; }
.nick-banner .nick-form .btn { flex: none; }
@media (max-width: 560px) { .nick-banner .nick-form { flex-wrap: wrap; } .nick-banner .nick-form .btn { width: 100%; } }

/* ───── Stories: aula em cards de tela cheia ───── */
.stories { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; overflow: hidden; overscroll-behavior: contain;
  background: radial-gradient(120% 90% at 50% 0%, #2a1255 0%, #0e0620 72%); }
.st-frame { --ink: var(--text); --ink-2: #cdc2ee; --cta-bg: var(--gold); --cta-ink: var(--gold-ink); --st-bg: linear-gradient(170deg, var(--panel), var(--bg));
  position: relative; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; width: min(100vw, 460px); height: 100vh; height: min(100dvh, 880px);
  background: var(--st-bg); color: var(--ink); overflow: hidden; }
.st-frame[data-mood="night"] { --st-bg: linear-gradient(170deg, var(--panel), var(--bg)); }
.st-frame[data-mood="plum"] { --st-bg: linear-gradient(170deg, #3a1a72, var(--bg-2)); }
.st-frame[data-mood="violet"] { --st-bg: linear-gradient(160deg, #6a2fd0 0%, #35146e 58%, var(--bg-2)); }
.st-frame[data-mood="pink"] { --st-bg: linear-gradient(160deg, #b02fd0 0%, #4b1673 62%, var(--bg-2)); }
.st-frame[data-mood="mint"] { --st-bg: linear-gradient(170deg, #0f3d38, #0b1f2e); }
.st-frame[data-mood="amber"] { --st-bg: linear-gradient(170deg, #55300a, #1f0f1f); }
.st-frame[data-mood="dark"] { --st-bg: linear-gradient(180deg, #1f1140, var(--bg)); }
.st-frame[data-mood="gold"] { --st-bg: linear-gradient(160deg, var(--gold) 0%, #ff9a2e 100%); --ink: var(--gold-ink); --ink-2: #3b2a55; --cta-bg: var(--gold-ink); --cta-ink: var(--gold); }
@media (min-width: 700px) {
  .st-frame { height: min(94vh, 880px); height: min(94dvh, 880px); border-radius: 32px; box-shadow: 0 30px 90px rgba(0, 0, 0, .6), 0 0 0 1px rgba(var(--hl), .12); }
}

.st-top { display: grid; gap: 12px; padding: max(12px, env(safe-area-inset-top)) 16px 4px; }
.st-bars { display: flex; gap: 4px; }
.st-seg { flex: 1; height: 4px; border-radius: 4px; background: color-mix(in srgb, var(--ink) 26%, transparent); overflow: hidden; }
.st-seg i { display: block; height: 100%; width: 0; background: var(--ink); border-radius: 4px; transition: width .3s ease; }
.st-seg.on i, .st-seg.cur i { width: 100%; }
.st-head { display: grid; grid-template-columns: 40px minmax(0, 1fr) 40px; gap: 12px; align-items: center; }
.st-ring { width: 40px; height: 40px; border-radius: 50%; padding: 2.5px; background: conic-gradient(from 200deg, var(--gold), #ff6bd6, var(--violet), var(--gold)); display: grid; place-items: center; }
.st-ring b { width: 100%; height: 100%; border-radius: 50%; display: grid; place-items: center; background: var(--bg); color: var(--gold); font-family: var(--display); font-size: 1.25rem; line-height: 1; }
.st-who { display: grid; min-width: 0; line-height: 1.25; }
.st-who b { font-size: .98rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.st-who span { font-size: .78rem; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.st-x { width: 40px; height: 40px; border-radius: 50%; border: 0; background: color-mix(in srgb, var(--ink) 14%, transparent); color: var(--ink); display: grid; place-items: center; cursor: pointer; }
.st-x:hover { background: color-mix(in srgb, var(--ink) 24%, transparent); }

.st-card { overflow-y: auto; overflow-x: hidden; display: flex; flex-direction: column; padding: 8px 22px 14px; scrollbar-width: none; overscroll-behavior: contain; outline: none; }
.st-card::-webkit-scrollbar { display: none; }
.st-card > .slide { margin-block: auto; width: 100%; display: grid; gap: 16px; align-content: center; min-width: 0; }
.st-card.in-next > .slide { animation: st-in-r .26s ease-out; }
.st-card.in-prev > .slide { animation: st-in-l .26s ease-out; }
.st-card.nope > .slide { animation: st-nope .4s ease; }
@keyframes st-in-r { from { opacity: 0; transform: translateX(26px); } to { opacity: 1; transform: none; } }
@keyframes st-in-l { from { opacity: 0; transform: translateX(-26px); } to { opacity: 1; transform: none; } }
@keyframes st-nope { 20%, 60% { transform: translateX(-7px); } 40%, 80% { transform: translateX(7px); } }

.st-foot { display: grid; grid-template-columns: 46px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 8px 16px max(14px, env(safe-area-inset-bottom)); }
.st-nav { width: 46px; height: 46px; border-radius: 50%; border: 0; display: grid; place-items: center; cursor: pointer; background: color-mix(in srgb, var(--ink) 14%, transparent); color: var(--ink); }
.st-nav[hidden] { display: block; visibility: hidden; }
.st-count { text-align: center; font-size: .82rem; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.st-next { min-height: 46px; padding: 0 24px; border: 0; border-radius: 999px; background: var(--cta-bg); color: var(--cta-ink); font-weight: 800; font-size: 1rem; cursor: pointer; }
.st-next:disabled { opacity: .55; cursor: not-allowed; }
.st-frame.is-end .st-foot { display: none; }
.st-arrow { position: absolute; top: 50%; translate: 0 -50%; width: 52px; height: 52px; border-radius: 50%; border: 0; display: none; place-items: center; cursor: pointer; background: rgba(var(--hl), .13); color: #fff; }
.st-arrow:hover:not(:disabled) { background: rgba(var(--hl), .24); }
.st-arrow:disabled { opacity: .35; cursor: not-allowed; }
.st-arrow[hidden] { display: none; }
.st-arrow-l { left: max(10px, calc(50% - var(--fw, 460px) / 2 - 70px)); } .st-arrow-r { right: max(10px, calc(50% - var(--fw, 460px) / 2 - 70px)); }
@media (min-width: 700px) { .st-arrow { display: grid; } .st-arrow[hidden] { display: none; } }

/* tipografia dos cards */
.stories .slide p { margin: 0; max-width: none; font-size: clamp(1.14rem, 4.5vw, 1.4rem); line-height: 1.5; }
.stories .slide strong, .stories .slide b { color: inherit; }
.stories .slide .txt { display: grid; gap: 12px; }
.stories .slide .txt h3, .stories .recap h3 { font-size: clamp(1.9rem, 8vw, 2.5rem); margin: 0; color: var(--gold); }
.st-frame[data-mood="gold"] .slide .txt h3 { color: var(--ink); }
.stories .sticker { display: block; font-size: clamp(3.4rem, 16vw, 5rem); line-height: 1; rotate: -6deg; width: fit-content; filter: drop-shadow(0 8px 14px rgba(0, 0, 0, .25)); }
.hook { display: grid; gap: 14px; }
.hook-title { font-size: clamp(2.8rem, 14.5vw, 4.6rem); line-height: .94; text-wrap: balance; }
.stories .slide .hook-text { font-size: clamp(1.15rem, 4.6vw, 1.4rem); color: var(--ink-2); font-weight: 600; }
.big { display: grid; gap: 14px; }
.stories .slide .big-text { font-family: var(--display); font-weight: 800; font-size: clamp(2.3rem, 11.5vw, 3.7rem); line-height: 1; text-wrap: balance; }
.stories .slide .big-text b { color: var(--gold); }
.stories .slide .big-sub { color: var(--ink-2); }
.tag { width: fit-content; padding: 5px 12px; border-radius: 999px; background: color-mix(in srgb, var(--ink) 15%, transparent); font-size: .86rem; font-weight: 700; }
.jargon { display: grid; gap: 14px; }
.jargon-term { font-family: var(--display); font-weight: 900; font-size: clamp(3.2rem, 17vw, 5.2rem); line-height: .92; color: var(--gold); overflow-wrap: anywhere; }
.stories .slide .jargon-means { font-weight: 700; font-size: clamp(1.3rem, 5.6vw, 1.7rem); line-height: 1.3; }
.stories .slide .jargon-ex { color: var(--ink-2); font-style: italic; }
.conta { display: grid; gap: 14px; padding: 20px 18px; border-radius: 22px; background: rgba(var(--hl), .07); border: 1.5px dashed rgba(var(--hl), .28); }
.conta-rows { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.conta-rows li { display: flex; justify-content: space-between; gap: 14px; padding: 9px 0; border-bottom: 1px dashed rgba(var(--hl), .16); font-size: clamp(1.02rem, 4.1vw, 1.2rem); }
.conta-rows li b { font-variant-numeric: tabular-nums; white-space: nowrap; }
.conta-rows li.neg b { color: var(--bad); } .conta-rows li.pos b { color: var(--good); }
.conta-total { display: flex; justify-content: space-between; align-items: baseline; gap: 14px; font-weight: 800; }
.conta-total b { font-family: var(--display); font-size: clamp(2.2rem, 10vw, 3rem); line-height: 1; color: var(--gold); font-variant-numeric: tabular-nums; }
.stories .slide .conta-note { font-size: 1rem; color: var(--ink-2); }
.recap { display: grid; gap: 14px; }
.recap ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.recap li { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 10px; font-size: clamp(1.08rem, 4.3vw, 1.3rem); line-height: 1.4; }
.recap li::before { content: "✓"; width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; background: var(--gold); color: var(--gold-ink); font-weight: 900; font-size: .9rem; }

/* blocos antigos dentro de card */
.stories .slide ul:not(.opts):not(.shot-legend):not(.conta-rows):not(.recap ul) { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.stories .slide ul:not(.opts):not(.shot-legend):not(.conta-rows) > li { padding: 13px 16px; border-radius: 16px; background: rgba(var(--hl), .09); font-size: clamp(1.05rem, 4.2vw, 1.25rem); line-height: 1.4; max-width: none; }
.stories .recap li { padding: 0; background: none; border-radius: 0; }
.stories .compare { grid-template-columns: minmax(0, 1fr); gap: 12px; }
.stories .compare > div { background: rgba(var(--hl), .08); border-radius: 18px; padding: 14px 16px; }
.stories .compare h4 { font-size: 1.6rem; }
.stories .compare ul { padding: 0; font-size: 1rem; }
.stories .compare li { padding: 0 !important; background: none !important; font-size: 1.05rem !important; }
.stories ol.steps { gap: 10px; }
.stories ol.steps li { background: rgba(var(--hl), .08); border-color: transparent; border-radius: 16px; padding: 12px 14px; }
.stories ol.steps b { font-size: 1.1rem; }
.stories ol.steps span { color: var(--ink-2); font-size: 1rem; }
.stories .callout { background: rgba(var(--hl), .07); border: 0; border-left: 5px solid var(--violet); border-radius: 18px; padding: 18px 18px; }
.stories .callout .c-title { font-size: 1.7rem; margin-bottom: 6px; }
.stories .callout > div { font-size: clamp(1.1rem, 4.4vw, 1.3rem); line-height: 1.5; }
.stories .callout.atencao { border-left-color: var(--warn); } .stories .callout.exemplo { border-left-color: var(--good); } .stories .callout.regra { border-left-color: var(--gold); }
.stories .say { background: rgba(var(--hl), .11); border: 0; border-radius: 24px 24px 24px 6px; padding: 18px 20px; }
.stories .say .c-title { font-size: 1.35rem; }
.stories .slide .say p { font-size: clamp(1.15rem, 4.6vw, 1.4rem); font-style: normal; font-weight: 600; }
.stories .terms { grid-template-columns: minmax(0, 1fr); }
.stories .term { background: rgba(var(--hl), .08); border-radius: 16px; }
.stories .quiz, .stories .quiz.sim { background: none; border: 0; padding: 0; }
.stories .quiz .q-text { font-size: clamp(1.15rem, 4.6vw, 1.4rem); line-height: 1.35; }
.stories .quiz input, .stories .quiz select { font-size: 16px; }
.stories .shot-legend .leg { background: rgba(var(--hl), .08); }
.stories .shot-title { font-size: 1.6rem; }
.stories .video-frame { border-radius: 16px; overflow: hidden; }

.endcard { display: grid; gap: 14px; justify-items: start; }
.endcard h2 { font-size: clamp(3rem, 15vw, 4.6rem); line-height: .94; }
.stories .slide .endcard p { color: var(--ink-2); font-weight: 600; }
.end-actions { display: grid; gap: 10px; width: 100%; margin-top: 6px; }
.end-actions .btn { width: 100%; justify-content: center; }
.st-frame[data-mood="gold"] .end-actions .btn-gold { background: var(--gold-ink); color: var(--gold); }
.st-frame[data-mood="gold"] .end-actions .btn-ghost { color: var(--ink); border-color: rgba(26, 15, 46, .35); }
.stories .slide .end-next { font-size: .98rem; }
@media (prefers-reduced-motion: reduce) { .st-card > .slide, .st-seg i { animation: none !important; transition: none !important; } }

/* módulo em formato de stories */
.reel-cta { margin-top: 6px; justify-self: start; }
.lesson-reel { list-style: none; margin: 26px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(98px, 1fr)); gap: 22px 10px; }
.reel-item { display: grid; justify-items: center; align-content: start; gap: 8px; text-align: center; text-decoration: none; color: var(--text); }
.reel-item .ring { width: 80px; height: 80px; border-radius: 50%; padding: 3px; display: grid; place-items: center; background: rgba(var(--hl), .2); }
.reel-item .ring b { width: 100%; height: 100%; border-radius: 50%; display: grid; place-items: center; background: var(--bg-2); font-family: var(--display); font-size: 2rem; line-height: 1; color: var(--text); }
.reel-item.cur .ring { background: conic-gradient(from 200deg, var(--gold), #ff6bd6, var(--violet), var(--gold)); }
.reel-item.done .ring { background: var(--gold); }
.reel-item.done .ring b { color: var(--gold); }
.reel-item strong { font-size: .92rem; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.reel-item .meta { font-size: .8rem; color: var(--muted); }
.reel-item:hover .ring { filter: brightness(1.12); }

/* ───── Destaques: bolinhas no Feed e player ───── */
.dst-bar { display: block; margin: 0; }
.dst-row { list-style: none; margin: 0; padding: 6px 2px 12px; display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none; }
.dst-row::-webkit-scrollbar { display: none; }
.dst-item { position: relative; display: grid; justify-items: center; gap: 7px; width: 78px; padding: 0; border: 0; background: none; color: var(--text); font: inherit; cursor: pointer; scroll-snap-align: start; }
.dst-ring { width: 74px; height: 74px; border-radius: 50%; padding: 3px; display: grid; place-items: center; background: rgba(var(--hl), .24); transition: transform .15s; }
.dst-item:hover .dst-ring { transform: scale(1.04); }
.dst-item.is-new .dst-ring { background: conic-gradient(from 200deg, var(--gold), #ff6bd6, var(--violet), var(--gold)); animation: dst-glow 2.6s ease-in-out infinite; }
@keyframes dst-glow { 0%, 100% { box-shadow: 0 0 0 0 rgba(var(--gold-rgb), .45); } 50% { box-shadow: 0 0 0 7px rgba(var(--gold-rgb), 0); } }
.dst-disc { width: 100%; height: 100%; border-radius: 50%; border: 3px solid var(--bg); display: grid; place-items: center; color: #fff; background: linear-gradient(160deg, #6a2fd0, #35146e) center / cover no-repeat; }
.dst-disc[data-mood="gold"] { background-image: linear-gradient(160deg, var(--gold), #ff9a2e); color: var(--gold-ink); }
.dst-disc[data-mood="pink"] { background-image: linear-gradient(160deg, #b02fd0, #4b1673); }
.dst-disc[data-mood="mint"] { background-image: linear-gradient(160deg, #0f6b5f, #0b1f2e); }
.dst-disc[data-mood="dark"] { background-image: linear-gradient(160deg, #2c1a58, var(--bg)); }
.dst-new { position: absolute; top: 58px; left: 50%; translate: -50% 0; padding: 1px 9px; border-radius: 999px; background: #ff4d79; color: #fff; border: 2px solid var(--bg); font-style: normal; font-size: .68rem; font-weight: 800; line-height: 1.5; }
.dst-name { max-width: 78px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .8rem; font-weight: 700; }
.dst-item.is-seen .dst-name { color: var(--muted); font-weight: 600; }
.dst-item.is-add .dst-ring { background: none; border: 2px dashed var(--line-strong); padding: 0; }
.dst-item.is-add .dst-disc { background: rgba(var(--hl), .06); border-color: transparent; color: var(--gold); }

.dst-overlay { z-index: 80; }
.st-head.has-del { grid-template-columns: 40px minmax(0, 1fr) 40px 40px; }
.dst-wait { text-align: center; color: var(--ink-2); }
.stories .slide.k-dst { display: grid; gap: 18px; justify-items: center; align-content: center; }
.dst-img { width: 100%; max-height: 58vh; object-fit: contain; border-radius: 18px; background: rgba(0, 0, 0, .25); }
.dst-video { width: 100%; max-height: 58vh; border-radius: 18px; background: #000; }
.stories .slide .dst-text { width: 100%; font-family: var(--display); font-weight: 800; font-size: clamp(2.1rem, 10vw, 3.3rem); line-height: 1.04; text-wrap: balance; white-space: pre-wrap; overflow-wrap: anywhere; }
.stories .slide .dst-text.has-media { font-family: var(--body); font-weight: 600; font-size: clamp(1.05rem, 4.2vw, 1.25rem); line-height: 1.4; }
.dst-text a { color: inherit; }

.dst-compose { display: grid; gap: 14px; }
.dst-slides { display: grid; gap: 12px; }
.dst-slide { display: grid; gap: 10px; padding: 14px; border-radius: 14px; border: 1px solid var(--line); background: rgba(var(--sh), .4); }
.dst-moods { display: flex; gap: 8px; }
.dst-mood { width: 30px; height: 30px; border-radius: 50%; border: 2px solid transparent; cursor: pointer; background: #35146e; }
.dst-mood[data-m="violet"] { background: linear-gradient(160deg, #6a2fd0, #35146e); }
.dst-mood[data-m="gold"] { background: linear-gradient(160deg, var(--gold), #ff9a2e); }
.dst-mood[data-m="pink"] { background: linear-gradient(160deg, #b02fd0, #4b1673); }
.dst-mood[data-m="mint"] { background: linear-gradient(160deg, #0f6b5f, #0b1f2e); }
.dst-mood[data-m="dark"] { background: linear-gradient(160deg, #2c1a58, var(--bg)); border-color: var(--line-strong); }
.dst-mood[aria-pressed="true"] { border-color: #fff; box-shadow: 0 0 0 2px var(--gold); }

/* ───── Fórum dos gestores ───── */
.forum-form { display: grid; gap: 12px; }
.forum-form .textarea, .dst-slide .textarea { font-family: var(--body); }
.dst-slide .tool-btn span { display: inline; }
.forum-form .field { margin: 0; }
.forum-list { display: grid; gap: 12px; }
.forum-title { display: block; margin-top: 6px; font-family: var(--display); font-weight: 800; font-size: 1.5rem; line-height: 1.1; color: var(--text); text-decoration: none; overflow-wrap: anywhere; }
.forum-title:hover { color: var(--gold); }
.forum-snip { margin: 8px 0 0; overflow-wrap: anywhere; }
.forum-body p { margin: 0 0 1em; white-space: pre-wrap; overflow-wrap: anywhere; }
.forum-body p:last-child { margin-bottom: 0; }

/* ───── menu de baixo e feed estilo Instagram (celular) ───── */
.tabbar, .top-brand { display: none; }
@media (max-width: 860px) {
  .tabbar { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); background: rgba(21, 11, 43, .95); border-top: 1px solid var(--line); backdrop-filter: blur(12px); }
  .tab { display: grid; justify-items: center; gap: 1px; padding: 4px 0; border: 0; background: none; color: var(--muted); text-decoration: none; font: inherit; font-size: .7rem; font-weight: 700; cursor: pointer; min-width: 0; }
  .tab:hover { color: var(--text); }
  .tab[aria-current="page"], .tab[data-on] { color: var(--gold); }
  .tab-ico { position: relative; display: grid; place-items: center; height: 30px; }
  .tab-dot { position: absolute; top: -3px; right: -9px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 999px; background: #ff4d79; color: #fff; font-style: normal; font-size: .64rem; font-weight: 800; display: grid; place-items: center; line-height: 1; border: 2px solid var(--bg); }
  .tab-me .avatar { border-width: 2px; }
  .tab[data-on] .avatar, .tab-me[aria-expanded="true"] .avatar { border-color: var(--gold); }
  .top .menu-btn { display: none; }
  .top .crumbs { display: none; }
  .top .top-search { display: none; }
  .top .spacer { display: block; }
  .top-brand { display: inline-flex; align-items: center; gap: 9px; color: var(--text); text-decoration: none; font-family: var(--display); font-weight: 900; font-size: 1.55rem; line-height: 1; }
  .top-brand .brand-mark { width: 32px; height: 32px; border-radius: 9px; font-size: 19px; }
  .page { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
  .toasts { bottom: calc(84px + env(safe-area-inset-bottom)); }
}
@media (max-width: 680px) {
  .page { padding-left: 16px; padding-right: 16px; padding-top: 14px; }
  .dst-bar { margin-left: -16px; margin-right: -16px; }
  .dst-row { padding-left: 16px; padding-right: 16px; }
  .feed-list { gap: 14px; margin-left: 0; margin-right: 0; }
  .post { display: flex; flex-direction: column; padding: 0 0 6px; border-radius: 18px; border-width: 1px; background: var(--panel); overflow: hidden; }
  .post-head { order: 0; margin: 0; padding: 12px 14px 10px; }
  .post-head .avatar { width: 38px !important; height: 38px !important; }
  .post .media { order: 3; margin: 0; gap: 0; }
  .post .m-grid { border-radius: 0; }
  .post .m-img img, .post .m-grid.n1 .m-img img { max-height: none; width: 100%; }
  .post .m-video { border-radius: 0; max-height: none; }
  .post .m-embed-wrap { border-radius: 0; border-left: 0; border-right: 0; }
  .post .poll { order: 4; margin: 10px 14px 0; }
  .post-actions { order: 5; border-top: 0; margin: 0; padding: 4px 6px 0; }
  .post-text { order: 1; margin: 0 0 10px; padding: 0 14px; }
  .post > .linkish { order: 2; margin: -4px 0 10px; padding: 0 14px; align-self: flex-start; }
  .post-reason { order: 6; margin: 8px 14px 0; }
  .post .comments { order: 7; padding: 0 14px 10px; }
  .hype-label { display: none; }
  .act-btn > span:nth-child(2) { display: none; }
  .hype-btn { border: 0; padding: 0 8px; min-height: 44px; }
  .hype-btn.on { background: none; }
  .composer.panel { border-radius: 14px; }
}
html[data-mode="mobile"] .tabbar { left: 50%; right: auto; width: min(100%, 480px); transform: translateX(-50%); }


/* ───── Gráficos, diagramas e simuladores das aulas (viz.js) ───── */
.viz { display: grid; gap: 12px; min-width: 0; }
.viz svg { display: block; width: 100%; height: auto; overflow: visible; }
.viz-title { font-family: var(--display); font-weight: 800; font-size: clamp(1.5rem, 6.6vw, 1.95rem); line-height: 1.05; color: var(--gold); margin: 0; }
.stories .slide .viz-cap { font-size: .98rem; line-height: 1.45; color: var(--ink-2); }
.vz-t { fill: var(--ink-2); font-size: 11.5px; }
.vz-sm { font-size: 10.5px; }
.vz-l { fill: var(--ink); font-size: 12.5px; font-weight: 600; }
.vz-v { fill: var(--ink); font-size: 12.5px; font-weight: 800; }
.vz-v.vz-sm { font-size: 11px; }
.vz-c { fill: var(--ink); font-family: var(--display); font-weight: 800; font-size: 22px; }
.vz-q { fill: color-mix(in srgb, var(--ink) 60%, transparent); font-size: 11px; font-weight: 700; }
.vz-pn { fill: var(--gold-ink); font-weight: 800; font-size: 12px; }
.vz-bar-t { fill: var(--gold-ink); font-weight: 800; font-size: 13px; }
.vz-unit { opacity: .8; }
.vz-axis { stroke: color-mix(in srgb, var(--ink) 40%, transparent); stroke-width: 1.5; }
.vz-grid { stroke: color-mix(in srgb, var(--ink) 14%, transparent); stroke-width: 1; }
.vz-grid.dashed { stroke: color-mix(in srgb, var(--ink) 38%, transparent); stroke-dasharray: 4 4; }
.vz-conn { stroke: color-mix(in srgb, var(--ink) 45%, transparent); stroke-dasharray: 2 3; }
.vz-track { fill: color-mix(in srgb, var(--ink) 12%, transparent); }
.vz-bar.dim { opacity: .35; }
.vz-line { stroke-width: 3; stroke-linejoin: round; stroke-linecap: round; }
.vz-line.dashed { stroke-dasharray: 7 6; }
.vz-mark { fill: var(--ink); }
.vz-quad { fill: color-mix(in srgb, var(--ink) 6%, transparent); stroke: color-mix(in srgb, var(--ink) 22%, transparent); }
.vz-quad.q0 { fill: rgba(var(--good-rgb), .12); }
.viz-legend { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 0 0 6px; }
.viz-legend .lg { display: inline-flex; align-items: center; gap: 7px; font-size: .92rem; color: var(--ink-2); }
.viz-legend .lg i { width: 12px; height: 12px; border-radius: 4px; flex: none; }
.viz-legend .lg b { color: var(--ink); font-variant-numeric: tabular-nums; }
.viz-donut, .viz-stack { display: grid; gap: 10px; justify-items: stretch; }
.viz-donut svg { width: min(210px, 64%); margin: 0 auto; }
.viz-donut .viz-legend, .viz-stack .viz-legend { display: grid; gap: 6px; }
.viz-donut .viz-legend .lg, .viz-stack .viz-legend .lg { display: grid; grid-template-columns: 14px minmax(0, 1fr) auto; font-size: 1rem; }
.viz-keys { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 6px; }
.viz-keys li { display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 10px; align-items: center; font-size: 1rem; }
.viz-keys i { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-weight: 800; font-size: .85rem; color: var(--gold-ink); }
.viz-funnel { display: grid; gap: 4px; }
.fn-row { display: grid; gap: 5px; justify-items: center; }
.fn-lab { width: 100%; display: flex; justify-content: space-between; gap: 10px; font-size: 1.02rem; }
.fn-lab b { font-variant-numeric: tabular-nums; }
.fn-bar { height: 16px; border-radius: 9px; }
.fn-conv { text-align: center; font-size: .86rem; color: var(--ink-2); padding: 2px 0; }
.viz-flow { list-style: none; margin: 0; padding: 0; display: grid; gap: 22px; }
.viz-flow li { position: relative; display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 12px; align-items: center; padding: 11px 14px; border-radius: 16px; background: rgba(var(--hl), .09); }
.viz-flow li + li::before { content: "↓"; position: absolute; left: 24px; top: -21px; font-weight: 800; color: var(--gold); font-size: 1.15rem; line-height: 1; }
.viz-flow .fl-ico { font-size: 1.9rem; line-height: 1; text-align: center; }
.viz-flow b, .viz-timeline b, .viz-stairs b { display: block; font-size: 1.08rem; }
.viz-flow li span:not(.fl-ico), .viz-timeline li span:not(.tl-when), .viz-stairs li span:not(.st-tag) { display: block; color: var(--ink-2); font-size: .98rem; line-height: 1.35; }
.fl-loop { margin-top: 10px; padding: 8px 14px; border-radius: 999px; border: 1.5px dashed var(--gold); color: var(--gold); font-weight: 700; justify-self: center; font-size: .95rem; }
.viz-table-wrap { overflow-x: auto; border-radius: 16px; background: rgba(var(--hl), .07); }
.viz-table { width: 100%; border-collapse: collapse; font-size: .98rem; line-height: 1.35; }
.viz-table th, .viz-table td { padding: 10px 11px; text-align: left; vertical-align: top; border-bottom: 1px solid rgba(var(--hl), .12); }
.viz-table thead th { background: rgba(var(--gold-rgb), .18); color: var(--gold); font-size: .92rem; }
.viz-table tbody th { font-weight: 800; }
.viz-table tr:last-child th, .viz-table tr:last-child td { border-bottom: 0; }
.viz-table .hl { background: rgba(var(--gold-rgb), .12); }
.viz-tree { display: grid; gap: 12px; }
.tr-root { justify-self: center; padding: 11px 18px; border-radius: 999px; background: var(--gold); color: var(--gold-ink); font-weight: 800; font-size: 1.1rem; text-align: center; }
.tr-branches { display: grid; gap: 10px; margin-left: 14px; padding-left: 14px; border-left: 2px dashed rgba(var(--hl), .35); }
.tr-branch { padding: 12px 14px; border-radius: 16px; background: rgba(var(--hl), .09); display: grid; gap: 6px; }
.tr-branch > b { font-size: 1.08rem; color: var(--gold); }
.tr-items { display: grid; gap: 4px; }
.tr-item { font-size: 1rem; line-height: 1.35; padding-left: 14px; position: relative; }
.tr-item::before { content: "›"; position: absolute; left: 2px; color: var(--gold); font-weight: 800; }
.viz-timeline { list-style: none; margin: 0 0 0 8px; padding: 0 0 0 18px; border-left: 3px solid rgba(var(--hl), .25); display: grid; gap: 14px; }
.viz-timeline li { position: relative; display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 12px; align-items: start; }
.viz-timeline li::before { content: ""; position: absolute; left: -28px; top: 7px; width: 13px; height: 13px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 4px rgba(var(--gold-rgb), .22); }
.tl-when { padding: 4px 8px; border-radius: 999px; background: rgba(var(--gold-rgb), .2); color: var(--gold); font-weight: 800; font-size: .85rem; text-align: center; }
.viz-stairs { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.viz-stairs li { display: grid; grid-template-columns: 46px minmax(0, 1fr); gap: 12px; align-items: center; padding: 11px 14px; border-radius: 16px; margin-left: calc(var(--i) * 16px);
  background: color-mix(in srgb, var(--gold) calc(6% + var(--i) * 8%), rgba(var(--hl), .08)); }
.st-tag { display: grid; place-items: center; height: 36px; border-radius: 10px; background: var(--gold); color: var(--gold-ink); font-family: var(--display); font-weight: 900; font-size: 1.1rem; }
.viz-anno { display: grid; gap: 12px; }
.viz-anno svg { border-radius: 14px; }
.an-d { font-size: 11px; fill: #2a1d4a; } .an-b { font-weight: 800; } .an-s { font-size: 9.5px; fill: #6b5c8f; } .an-big { font-size: 20px; font-weight: 800; } .an-big2 { font-size: 13px; font-weight: 800; }
.an-m { cursor: pointer; transition: opacity .15s; }
.an-m circle { fill: var(--gold); stroke: var(--gold-ink); stroke-width: 2; }
.an-m text { fill: var(--gold-ink); font-weight: 800; font-size: 12px; }
.viz-anno[data-on] .an-m:not(.on) { opacity: .3; }
.an-m.on circle { fill: #fff; stroke-width: 3; }
.an-keys { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
.an-key { width: 100%; display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 10px; align-items: start; text-align: left; padding: 9px 12px; border-radius: 14px; border: 1.5px solid transparent; background: rgba(var(--hl), .09); color: var(--ink); font: inherit; cursor: pointer; }
.an-key i { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-weight: 800; background: var(--gold); color: var(--gold-ink); font-size: .9rem; }
.an-key b { display: block; font-size: 1.02rem; }
.an-key em { display: block; font-style: normal; color: var(--ink-2); font-size: .95rem; line-height: 1.35; margin-top: 1px; }
.an-keys li.on .an-key { border-color: var(--gold); background: rgba(var(--gold-rgb), .14); }
.viz-lab { gap: 12px; }
.lab-intro { color: var(--ink-2); }
.lab-tiles { display: grid; gap: 6px; }
.lab-tile { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 9px 14px; border-radius: 14px; background: rgba(var(--hl), .09); }
.lab-tile span { color: var(--ink-2); font-size: .95rem; }
.lab-tile b { font-family: var(--display); font-size: 1.45rem; line-height: 1; font-variant-numeric: tabular-nums; text-align: right; }
.lab-tile.good b { color: var(--good); } .lab-tile.bad b { color: var(--bad); } .lab-tile.warn b { color: var(--warn); }
.lab-chart { min-height: 120px; }
.lab-verdict { padding: 11px 14px; border-radius: 14px; font-weight: 700; font-size: 1rem; line-height: 1.35; background: rgba(var(--hl), .09); }
.lab-verdict.good { background: var(--good-bg); color: var(--good); } .lab-verdict.bad { background: var(--bad-bg); color: var(--bad); } .lab-verdict.warn { background: rgba(255, 193, 94, .13); color: var(--warn); }
.lab-ctrls { display: grid; gap: 12px; padding-top: 4px; }
.lab-row { display: grid; gap: 4px; }
.lab-l { display: flex; justify-content: space-between; gap: 12px; font-size: .98rem; }
.lab-val { font-weight: 800; color: var(--gold); font-variant-numeric: tabular-nums; white-space: nowrap; }
.lab-row input[type="range"] { width: 100%; height: 30px; accent-color: var(--gold); margin: 0; }
.lab-more { display: grid; gap: 12px; }
.lab-more > summary { cursor: pointer; color: var(--gold); font-weight: 700; padding: 6px 0; }
.lab-more[open] > summary { margin-bottom: 8px; }
.lab-more > .lab-row + .lab-row { margin-top: 12px; }

/* ───── Cards do construtor: estilo livre, imagem, vídeo e card livre ───── */
.st-frame[data-custom] { --ink: var(--text); --ink-2: #cdc2ee; --cta-bg: var(--gold); --cta-ink: var(--gold-ink); }
.st-frame[data-custom][data-light] { --ink: var(--gold-ink); --ink-2: #3b2a55; --cta-bg: var(--gold-ink); --cta-ink: var(--gold); --gold: #7a4300; }
.st-frame[data-light] .st-ring b { color: var(--gold); }
.stories .slide.u-font, .stories .slide.u-font * { font-family: var(--u-font) !important; }
.stories .slide.u-color :is(h2, h3, .big-text, .jargon-term, .hook-title) { color: inherit; }
.stories .slide[data-align="center"] :is(.hook, .big, .jargon, .endcard) { justify-items: center; }
.stories .slide[data-align="right"] :is(.hook, .big, .jargon) { justify-items: end; }

.cd-img { margin: 0; display: grid; gap: 12px; justify-items: center; }
.cd-img img { width: 100%; max-height: min(66dvh, 620px); object-fit: cover; border-radius: 20px; box-shadow: 0 10px 40px rgba(0, 0, 0, .4); background: rgba(var(--hl), .06); }
.cd-img.is-contain img { object-fit: contain; background: transparent; box-shadow: none; }
.cd-img figcaption, .cd-vid figcaption { font-size: 1.05rem; line-height: 1.45; text-align: center; color: var(--ink-2); font-weight: 600; }
.cd-empty { display: grid; place-items: center; min-height: 220px; width: 100%; border: 2px dashed rgba(var(--hl), .4); border-radius: 20px; color: var(--ink-2); font-weight: 700; }
.cd-vid { margin: 0; display: grid; gap: 12px; }
.vid-node { position: relative; width: 100%; border-radius: 18px; overflow: hidden; background: #000; min-height: 160px; max-height: min(66dvh, 620px); }
.vid-node .vid-el { width: 100%; height: 100%; max-height: min(66dvh, 620px); display: block; background: #000; }
.vid-face { position: absolute; inset: 0; width: 100%; border: 0; background: var(--gold-ink) center / cover no-repeat; display: grid; place-items: center; cursor: pointer; color: #fff; }
.vid-unmute { position: absolute; left: 10px; bottom: 56px; border: 0; border-radius: 99px; padding: 8px 14px; font-weight: 700; background: rgba(0, 0, 0, .66); color: #fff; cursor: pointer; }

.stories .slide.k-free { margin: 0; height: 100%; width: 100%; display: block; }
.st-card:has(> .slide.k-free) { padding: 0; }
.cd-free-wrap { container-type: size; width: 100%; height: 100%; display: grid; place-items: center; }
.cd-free { --r: .5625; position: relative; width: min(100cqw, calc(100cqh * var(--r))); aspect-ratio: var(--r); container-type: inline-size; overflow: hidden; }
.cd-free .fl { position: absolute; box-sizing: border-box; overflow-wrap: anywhere; transform-origin: center; }
.cd-free .fl-text { white-space: pre-wrap; }
.cd-free .fl-text.has-bg { padding: .35em .6em; border-radius: .4em; width: auto; }
.cd-free .fl-img img, .cd-free .fl-video .vid-node, .cd-free .fl-video .vid-el { width: 100%; height: 100%; max-height: none; display: block; border-radius: inherit; }
.cd-free .fl-img { overflow: hidden; }
.cd-free .fl-video { overflow: hidden; }
.cd-free .fl-video .vid-node { min-height: 0; border-radius: inherit; }
.cd-free .fl-video .vid-el { object-fit: cover; }
.cd-free .fl-vid-ico { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(0, 0, 0, .55); color: #fff; }
.cd-free .fl.is-empty { background: rgba(var(--hl), .12); border: 2px dashed rgba(var(--hl), .4); }

/* ───── Construtor de trilhas e gestão ───── */
.tr-admin { display: flex; gap: 16px; align-items: center; justify-content: space-between; flex-wrap: wrap; border-style: dashed; }
.tr-admin p { margin: 4px 0 0; }
.tm-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; }
.tm-card { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 18px; display: grid; gap: 10px; align-content: start; }
.tm-card.is-off { opacity: .72; border-style: dashed; }
.tm-card h3 { font-size: 1.7rem; margin: 0; }
.tm-card p { margin: 0; }
.tm-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 4px; }
.tm-del { color: var(--bad); }
.tm-state { font-weight: 800; font-size: .86rem; color: var(--bad); }
.tm-state.on { color: var(--good); }
.bd-switch { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; }
.bd-switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.bd-switch-ui { width: 44px; height: 26px; border-radius: 99px; background: var(--panel-3); border: 1px solid var(--line-strong); position: relative; transition: background .2s; flex: none; }
.bd-switch-ui::after { content: ""; position: absolute; top: 2px; left: 2px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: transform .2s; }
.bd-switch input:checked + .bd-switch-ui { background: var(--good); border-color: var(--good); }
.bd-switch input:checked + .bd-switch-ui::after { transform: translateX(18px); }
.bd-switch input:focus-visible + .bd-switch-ui { outline: 3px solid var(--gold); outline-offset: 2px; }

.page:has(> .bd) { max-width: none; }
.bd { display: grid; gap: 10px; }
.bd-bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; position: sticky; top: 56px; z-index: 8; background: var(--bg); padding: 8px 0; border-bottom: 1px solid var(--line); }
.bd-bar .spacer { flex: 1; }
.bd-title { font-family: var(--display); font-size: 1.5rem; max-width: 34ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bd-status { font-size: .85rem; color: var(--faint); }
.bd-status.is-dirty { color: var(--warn); } .bd-status.is-busy { color: var(--muted); } .bd-status.is-err { color: var(--bad); }
.bd-tabs { display: none; gap: 6px; }
.bd-tabs button { flex: 1; min-height: 40px; border-radius: 10px; border: 1px solid var(--line); background: var(--panel); color: var(--muted); font-weight: 700; cursor: pointer; }
.bd-tabs button.on { background: var(--gold); color: var(--gold-ink); border-color: var(--gold); }
/* A prévia do meio é larga (mesma moldura do aluno no PC), então as laterais cedem espaço. */
.bd-body { display: grid; grid-template-columns: 250px minmax(420px, 1fr) 330px; gap: 12px; align-items: start; }
.bd-pane { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 12px; max-height: calc(100dvh - 150px); overflow: auto; scrollbar-width: thin; }
.bd-stage { display: grid; place-items: start center; background: radial-gradient(120% 80% at 50% 0, #2a1255, var(--bg)); position: sticky; top: 118px; }
@media (max-width: 1099px) {
  .bd-tabs { display: flex; }
  .bd-body { grid-template-columns: 1fr; }
  .bd-pane { max-height: none; }
  .bd-stage { position: static; }
  .bd[data-pane="out"] .bd-stage, .bd[data-pane="out"] .bd-insp, .bd[data-pane="stage"] .bd-out, .bd[data-pane="stage"] .bd-insp, .bd[data-pane="edit"] .bd-out, .bd[data-pane="edit"] .bd-stage { display: none; }
  .bd-bar { top: 0; }
}

/* lista de estrutura */
.bd-out { display: grid; gap: 6px; align-content: start; }
.bd-o { display: flex; align-items: center; gap: 6px; border-radius: 10px; padding: 6px 8px; background: transparent; border: 1px solid transparent; color: var(--text); text-align: left; cursor: pointer; width: 100%; min-width: 0; font: inherit; }
.bd-o:hover { background: rgba(var(--hl), .06); }
.bd-o.on { background: rgba(var(--gold-rgb), .14); border-color: rgba(var(--gold-rgb), .55); }
.bd-o-trail, .bd-o-exam, .bd-o-final { gap: 8px; }
.bd-o b { font-size: .96rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bd-o small { color: var(--faint); display: block; font-size: .74rem; white-space: nowrap; }
.bd-o small.warn, .bd-count.warn { color: var(--warn); }
.bd-o-t { flex: 1; min-width: 0; display: flex; gap: 8px; align-items: center; background: none; border: 0; color: inherit; text-align: left; cursor: pointer; padding: 2px; font: inherit; }
.bd-o-mod .bd-o-t, .bd-o-les .bd-o-t { display: grid; gap: 0; }
.bd-caret { width: 24px; height: 24px; border: 0; background: none; color: var(--muted); cursor: pointer; flex: none; }
.bd-mod { display: grid; gap: 4px; background: rgba(var(--hl), .03); border-radius: 12px; padding: 4px; }
.bd-mod-body { display: grid; gap: 4px; padding-left: 10px; }
.bd-les { display: grid; gap: 2px; }
.bd-cards { display: grid; gap: 2px; padding-left: 14px; border-left: 2px solid var(--line); margin-left: 10px; }
.bd-o-card { padding: 4px 6px; }
.bd-ci { font-size: 1.15rem; width: 26px; text-align: center; flex: none; }
.bd-cs { display: grid; min-width: 0; }
.bd-rb { display: none; gap: 2px; flex: none; }
.bd-o:hover .bd-rb, .bd-o.on .bd-rb, .bd-layer:hover .bd-rb, .bd-layer.on .bd-rb { display: inline-flex; }
.bd-rb button, .bd-row-b button { width: 24px; height: 24px; border-radius: 6px; border: 1px solid var(--line); background: var(--panel-2); color: var(--text); cursor: pointer; font-size: .78rem; padding: 0; }
.bd-rb button:disabled, .bd-row-b button:disabled { opacity: .3; cursor: not-allowed; }
.bd-add { border: 1px dashed var(--line-strong); background: transparent; color: var(--gold); border-radius: 10px; padding: 7px; cursor: pointer; font-weight: 700; font-size: .88rem; }
.bd-add:hover { background: rgba(var(--gold-rgb), .1); }

/* prévia */
.bd-phone-wrap { display: grid; gap: 10px; justify-items: center; padding: 6px 0 4px; width: 100%; }
.stories.bd-stories { position: relative; inset: auto; z-index: auto; display: block; background: none; width: min(100%, 360px, calc((100dvh - 300px) * .5625)); min-width: 250px; aspect-ratio: 9 / 16; overflow: visible; place-items: unset; }
.stories.bd-stories .st-frame { width: 100%; height: 100%; border-radius: 28px; box-shadow: 0 20px 60px rgba(0, 0, 0, .55), 0 0 0 1px rgba(var(--hl), .14); }
.bd-fake { display: inline-grid; place-items: center; cursor: default; }
.bd-stage-nav { display: flex; align-items: center; gap: 12px; }
.bd-empty { text-align: center; color: var(--muted); max-width: 320px; padding: 60px 10px; display: grid; gap: 12px; justify-items: center; }
.bd-empty-ico { font-size: 3rem; }
.noscroll, .bd-noscroll { overflow: hidden; }

/* formulário */
.bd-insp { display: grid; gap: 12px; align-content: start; }
.bd-insp > * { min-width: 0; }
.bd-insp h3 { font-size: 1.6rem; margin: 0; }
.bd-card-head { display: flex; align-items: center; gap: 10px; }
.bd-field { display: grid; gap: 6px; }
.bd-field > label, .bd-num > span { font-size: .82rem; font-weight: 700; color: var(--muted); }
.bd-field small { font-size: .78rem; }
.bd-inline { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.bd-inline > label { font-size: .82rem; font-weight: 700; color: var(--muted); }
.bd-rich { display: grid; gap: 4px; }
.bd-fmt { display: flex; gap: 4px; }
.bd-fmt button { width: 30px; height: 28px; border-radius: 6px; border: 1px solid var(--line); background: var(--panel-2); color: var(--text); cursor: pointer; }
.bd-emoji { width: 90px; font-size: 1.2rem; text-align: center; }
.bd-emojis { display: flex; flex-wrap: wrap; gap: 2px; margin-top: 6px; }
.bd-emojis button { width: 32px; height: 32px; border: 0; background: transparent; font-size: 1.15rem; cursor: pointer; border-radius: 8px; }
.bd-emojis button:hover { background: rgba(var(--hl), .1); }
.bd-range { display: flex; align-items: center; gap: 10px; }
.bd-range input { flex: 1; accent-color: var(--gold); }
.bd-range output { min-width: 3.2em; font-size: .85rem; color: var(--muted); text-align: right; }
.bd-color { display: inline-flex; align-items: center; gap: 8px; }
.bd-color input[type="color"], .bd-style input[type="color"] { width: 40px; height: 32px; padding: 0; border: 1px solid var(--line-strong); border-radius: 8px; background: none; cursor: pointer; }
.bd-check { display: flex; align-items: center; gap: 8px; font-size: .92rem; cursor: pointer; }
.bd-check input { width: 18px; height: 18px; accent-color: var(--gold); }
.bd-segs { display: flex; gap: 4px; flex-wrap: wrap; }
.bd-seg { padding: 6px 12px; border-radius: 99px; border: 1px solid var(--line-strong); background: transparent; color: var(--muted); cursor: pointer; font-weight: 600; font-size: .86rem; }
.bd-seg.on { background: var(--gold); color: var(--gold-ink); border-color: var(--gold); }
.bd-swatches { display: flex; gap: 6px; flex-wrap: wrap; }
.bd-sw { width: 34px; height: 34px; border-radius: 50%; border: 2px solid var(--line-strong); cursor: pointer; color: var(--text); font-size: .6rem; font-weight: 800; padding: 0; background: var(--panel-2); }
.bd-sw.on { border-color: var(--gold); box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--gold); }
.bd-style { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; display: grid; gap: 12px; }
.bd-style > summary { cursor: pointer; font-weight: 800; }
.bd-rows { display: grid; gap: 8px; }
.bd-row { display: flex; gap: 6px; align-items: flex-start; background: rgba(var(--hl), .04); border-radius: 10px; padding: 6px; }
.bd-row-f { flex: 1; min-width: 0; display: flex; gap: 6px; flex-wrap: wrap; align-items: flex-start; }
.bd-row-f select { flex: 1 1 130px; }
.bd-row-f > * { flex: 1 1 110px; min-width: 0; }
.bd-row-f .bd-col-s { flex: 0 0 64px; }
.bd-row-f .bd-col-2 { flex: 2 1 160px; }
.bd-row-b { display: grid; grid-template-columns: repeat(3, 24px); gap: 2px; }
.bd-mono { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: .86rem; }
.bd-side { border: 1px solid var(--line); border-radius: 12px; padding: 10px; display: grid; gap: 10px; }
.bd-addrow { display: flex; gap: 6px; flex-wrap: wrap; }
.bd-h4 { font-size: 1.15rem; margin: 6px 0 0; font-family: var(--display); letter-spacing: .02em; }
.bd-nums { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.bd-num { display: grid; gap: 4px; }
.bd-box { border: 1px solid var(--line); border-radius: 12px; padding: 12px; display: grid; gap: 6px; }
.bd-box p { margin: 0; }
.bd-check-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; font-size: .9rem; }
.bd-check-list .ok { color: var(--good); } .bd-check-list .no { color: var(--warn); }
.bd-problems { margin: 0; padding-left: 20px; display: grid; gap: 6px; max-height: 50vh; overflow: auto; }
.bd-pick-group h4 { margin: 8px 0; font-family: var(--display); font-size: 1.1rem; color: var(--gold); }
.bd-pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.bd-pick-i { display: grid; gap: 2px; text-align: left; padding: 10px; border: 1px solid var(--line); background: var(--panel-2); color: var(--text); border-radius: 12px; cursor: pointer; font: inherit; }
.bd-pick-i:hover { border-color: var(--gold); background: var(--panel-3); }
.bd-pick-ico { font-size: 1.5rem; }
.bd-pick-i small { color: var(--muted); font-size: .76rem; line-height: 1.3; }

/* mídia */
.bd-media { display: grid; gap: 8px; }
.bd-media-prev { width: 100%; max-height: 140px; object-fit: cover; border-radius: 10px; border: 1px solid var(--line); }
.bd-media-vid { display: flex; align-items: center; gap: 8px; padding: 14px; background: var(--panel-2); }
.bd-media-btns, .bd-link-row { display: flex; gap: 6px; flex-wrap: wrap; }
.bd-link-row .input { flex: 1; min-width: 0; }
.bd-busy { color: var(--gold); font-weight: 700; }
.bd-rec-video { width: 100%; border-radius: 12px; background: #000; max-height: 50vh; }

/* questões */
.bd-q { display: grid; gap: 10px; }
.bd-q-head { display: flex; justify-content: space-between; align-items: center; }
.bd-opts { display: grid; gap: 6px; }
.bd-opt { display: flex; align-items: center; gap: 6px; border-radius: 10px; padding: 4px 6px; border: 1px solid transparent; }
.bd-opt.is-right { background: var(--good-bg); border-color: rgba(var(--good-rgb), .4); }
.bd-opt input[type="radio"], .bd-opt input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--good); flex: none; }
.bd-opt .input { flex: 1; min-width: 0; }
.bd-opt button { width: 26px; height: 26px; border-radius: 6px; border: 1px solid var(--line); background: var(--panel-2); color: var(--muted); cursor: pointer; }
.bd-letter { width: 20px; font-weight: 800; color: var(--muted); }
.bd-q-tools { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.bd-exam { display: grid; gap: 10px; }
.bd-exam-head p { margin: 4px 0 0; }
.bd-count { margin: 0; font-weight: 700; font-size: .9rem; }
.bd-qd { border: 1px solid var(--line); border-radius: 12px; padding: 8px 10px; }
.bd-qd.is-bad { border-color: rgba(255, 193, 94, .6); }
.bd-qd > summary { cursor: pointer; display: flex; gap: 4px; align-items: baseline; font-size: .94rem; }
.bd-qd > summary em { color: var(--warn); font-style: normal; font-size: .8rem; }
.bd-qd[open] > summary { margin-bottom: 10px; }
.bd-exam-add { display: flex; gap: 8px; flex-wrap: wrap; }

/* camadas do card livre */
.bd-layers { display: grid; gap: 4px; }
.bd-layer { display: flex; align-items: center; gap: 6px; border: 1px solid var(--line); border-radius: 10px; padding: 4px 6px; }
.bd-layer.on { border-color: var(--gold); background: rgba(var(--gold-rgb), .1); }
.bd-layer-t { flex: 1; min-width: 0; display: flex; gap: 8px; background: none; border: 0; color: inherit; cursor: pointer; text-align: left; font: inherit; align-items: center; }
.bd-layer-t b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .9rem; }
.bd-layer-form { display: grid; gap: 12px; border-top: 1px solid var(--line); padding-top: 12px; }
.cd-free .fl { touch-action: none; }
.bd-stories .cd-free .fl { cursor: grab; }
.bd-stories .cd-free .fl:active { cursor: grabbing; }
.bd-stories .cd-free .fl:hover { outline: 1px dashed rgba(var(--gold-rgb), .8); }
.bd-stories .cd-free .fl.is-sel { outline: 2px solid var(--gold); outline-offset: 1px; }
.bd-stories .cd-free { outline: none; }
.fl-handle { position: absolute; right: -9px; bottom: -9px; width: 18px; height: 18px; border-radius: 5px; background: var(--gold); border: 2px solid var(--gold-ink); cursor: nwse-resize; z-index: 3; touch-action: none; }
.fl-guide { position: absolute; left: 50%; top: 0; bottom: 0; width: 0; border-left: 1px dashed var(--good); z-index: 2; pointer-events: none; }
.fl-guide[hidden] { display: none; }

/* ───── Trilhas no PC: moldura larga, tipo tablet (no celular continua tela cheia, como stories) ─────
   Vale também para a prévia do construtor (.bd-stories): ela é desenhada no MESMO tamanho
   da tela do aluno e reduzida por inteiro (transform: scale, em builder.js) para caber no
   painel do meio. Assim quem cria vê exatamente o que o aluno vê. */
@media (min-width: 760px) {
  html:not([data-mode="mobile"]) .stories:not(.dst-overlay) { --fw: min(calc(100vw - 170px), 1060px); }
  html:not([data-mode="mobile"]) .stories:not(.dst-overlay) .st-frame { width: var(--fw); height: min(90vh, 740px); height: min(90dvh, 740px); border-radius: 28px; }
  html:not([data-mode="mobile"]) .stories:not(.dst-overlay) .st-top { padding: 18px 34px 6px; }
  html:not([data-mode="mobile"]) .stories:not(.dst-overlay) .st-card { padding: 10px 56px 18px; }
  html:not([data-mode="mobile"]) .stories:not(.dst-overlay) .st-card > .slide { max-width: 820px; margin-inline: auto; }
  html:not([data-mode="mobile"]) .stories:not(.dst-overlay) .st-foot { padding: 8px 34px 20px; }
  html:not([data-mode="mobile"]) .stories:not(.dst-overlay) .compare { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  html:not([data-mode="mobile"]) .stories:not(.dst-overlay) .terms { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  html:not([data-mode="mobile"]) .stories:not(.dst-overlay) .slide p { font-size: 1.32rem; }
  html:not([data-mode="mobile"]) .stories:not(.dst-overlay) .slide .big-text { font-size: clamp(2.6rem, 5vw, 4rem); }
  html:not([data-mode="mobile"]) .stories:not(.dst-overlay) .slide .txt h3 { font-size: clamp(2rem, 3.4vw, 2.7rem); }

  /* Prévia do construtor no tamanho real do aluno (a redução fica por conta do builder.js). */
  html:not([data-mode="mobile"]) .stories.bd-stories { width: var(--fw); height: auto; min-width: 0; aspect-ratio: auto; transform-origin: top left; }
  html:not([data-mode="mobile"]) .stories.bd-stories .st-frame { box-shadow: 0 20px 60px rgba(0, 0, 0, .55), 0 0 0 1px rgba(var(--hl), .14); }
  html:not([data-mode="mobile"]) .bd-scale { position: relative; overflow: hidden; max-width: 100%; }
}

/* ───── Destaques no formato Instagram ───── */
.dst-disc.has-photo { background: var(--panel); padding: 0; overflow: hidden; }
.dst-disc .avatar { width: 100% !important; height: 100% !important; font-size: 1.5rem !important; }
.dst-disc .avatar img { width: 100%; height: 100%; object-fit: cover; }
.dst-overlay { z-index: 80; }
.dst-frame { display: block; background: #0b0518; touch-action: none; }
.dst-frame .dst-stage { position: absolute; inset: 0; overflow: hidden; background: var(--st-bg); }
.dst-stage.in-next { animation: st-in-r .22s ease-out; }
.dst-stage.in-prev { animation: st-in-l .22s ease-out; }
.dst-bgimg, .dst-bgvid { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: #000; }
.dst-scrim { position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(180deg, rgba(8, 3, 20, .6) 0, transparent 20%, transparent 58%, rgba(8, 3, 20, .78) 100%); }
.dst-frame[data-mood="gold"] .dst-scrim { background: none; }
.dst-textslide { position: absolute; inset: 0; display: grid; place-items: center; padding: 104px 30px 64px; }
.dst-cap { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 30px 22px max(28px, env(safe-area-inset-bottom)); pointer-events: none; color: #fff; }
.dst-cap p { margin: 0; font-size: 1.12rem; line-height: 1.45; font-weight: 600; text-shadow: 0 1px 10px rgba(0, 0, 0, .7); white-space: pre-wrap; overflow-wrap: anywhere; max-height: 38vh; overflow: hidden; }
.dst-cap a, .dst-text a { pointer-events: auto; }
.dst-hit { position: absolute; inset: 0; z-index: 3; cursor: pointer; touch-action: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
.dst-frame .st-top { position: absolute; left: 0; right: 0; top: 0; z-index: 5; pointer-events: none; transition: opacity .15s; }
.dst-frame .st-top button { pointer-events: auto; }
.dst-frame .st-seg i { width: 100%; transform: scaleX(0); transform-origin: 0 50%; transition: none; }
.dst-head { display: flex; align-items: center; gap: 10px; color: var(--ink); }
.dst-head .st-who { flex: 1; min-width: 0; }
.dst-head .st-who b, .dst-head .st-who span { text-shadow: 0 1px 6px rgba(0, 0, 0, .55); }
.dst-frame[data-mood="gold"] .dst-head .st-who b, .dst-frame[data-mood="gold"] .dst-head .st-who span { text-shadow: none; }
.dst-tools { display: flex; align-items: center; gap: 4px; }
.dst-tools .dst-btn { width: 38px; height: 38px; background: rgba(10, 4, 24, .38); color: #fff; }
.dst-frame[data-mood="gold"] .dst-tools .dst-btn { background: rgba(26, 15, 46, .14); color: var(--ink); }
.dst-tools [hidden] { display: none; }
.dst-btn svg { stroke-width: 2.8; }
.dst-frame .st-ring { width: 42px; height: 42px; flex: none; }
.dst-frame .st-ring .avatar { width: 100% !important; height: 100% !important; border: 0; }
.dst-frame.is-held .st-top, .dst-frame.is-held .dst-cap { opacity: 0; }
.dst-wait { position: absolute; inset: 0; display: grid; place-items: center; color: var(--ink-2); }
.dst-menu { position: absolute; top: 74px; right: 12px; z-index: 8; min-width: 258px; display: grid; gap: 2px; padding: 6px; border-radius: 14px; background: var(--bg-2); border: 1px solid var(--line-strong); box-shadow: 0 18px 40px rgba(0, 0, 0, .55); }
.dst-menu[hidden] { display: none; }
.dst-mi { display: flex; align-items: center; gap: 10px; padding: 11px 12px; border: 0; border-radius: 10px; background: none; color: #fff; font: inherit; font-size: .95rem; text-align: left; cursor: pointer; }
.dst-mi:hover, .dst-mi:focus-visible { background: rgba(var(--hl), .1); }
.dst-mi.bad { color: #ff9db3; }
.stories .slide .dst-text, .dst-textslide .dst-text { margin: 0; width: 100%; font-family: var(--display); font-weight: 800; font-size: clamp(2.1rem, 10vw, 3.3rem); line-height: 1.06; text-wrap: balance; white-space: pre-wrap; overflow-wrap: anywhere; text-align: center; color: var(--ink); }
@media (min-width: 700px) {
  .dst-frame { width: calc(min(94vh, 860px) * .5625); width: calc(min(94dvh, 860px) * .5625); height: min(94vh, 860px); height: min(94dvh, 860px); }
  .dst-overlay { --fw: calc(min(94dvh, 860px) * .5625); }
}

/* check-in some do feed depois de marcado */
.checkin.is-leaving{opacity:0;transform:translateY(-8px) scale(.98);max-height:0;margin-block:0;padding-block:0;overflow:hidden;transition:opacity .25s ease,transform .25s ease,max-height .35s ease .05s,margin .35s ease .05s,padding .35s ease .05s}
@media (prefers-reduced-motion:reduce){.checkin.is-leaving{transition:none}}

/* sub-administrador: caixas de permissão */
.perm-box { border: 1px solid var(--line); border-radius: 14px; padding: 14px; background: rgba(var(--sh), .35); margin-bottom: 14px; }
.perm-head { gap: 8px; margin-bottom: 8px; flex-wrap: wrap; }
.perm-list { display: grid; gap: 6px; }
.perm-item { display: flex; gap: 12px; align-items: flex-start; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line); cursor: pointer; background: var(--panel); }
.perm-item:hover { border-color: var(--line-strong); }
.perm-item input { width: 20px; height: 20px; margin-top: 2px; flex: none; accent-color: var(--gold); }
.perm-item > span { display: grid; gap: 2px; min-width: 0; }
.perm-item:has(input:checked) { border-color: rgba(var(--gold-rgb), .55); background: rgba(var(--gold-rgb), .08); }

/* fórum do aluno: seletor de tipo, abas e envios */
.seg { display: flex; gap: 6px; padding: 4px; background: rgba(var(--sh), .55); border-radius: 999px; width: fit-content; max-width: 100%; flex-wrap: wrap; }
.seg-btn { min-height: 40px; padding: 0 18px; border-radius: 999px; border: 0; background: transparent; cursor: pointer; font-weight: 700; color: var(--muted); font: inherit; font-weight: 700; display: inline-flex; align-items: center; }
.seg-btn[aria-selected="true"], .seg-btn[aria-checked="true"] { background: var(--gold); color: var(--gold-ink); }
.seg-btn:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.sub-item.sub-rejected { border-color: rgba(var(--bad-rgb), .45); }
.sub-item.sub-approved { border-color: rgba(var(--good-rgb), .4); }
.sub-reason { margin-top: 10px; padding: 10px 12px; border-radius: 12px; background: var(--bad-bg); border: 1px solid rgba(var(--bad-rgb), .35); font-size: .92rem; }

/* quem vê a trilha */
.tm-aud { gap: 8px; align-items: center; margin: 2px 0 8px; color: var(--muted); }
.aud-modes { display: grid; gap: 8px; margin-bottom: 14px; }
.aud-mode { display: grid; gap: 2px; text-align: left; padding: 12px 14px; border-radius: 14px; border: 1.5px solid var(--line-strong); background: var(--panel); color: var(--text); cursor: pointer; font: inherit; }
.aud-mode[aria-checked="true"] { border-color: var(--gold); background: rgba(var(--gold-rgb), .1); }
.aud-mode:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.aud-list { display: grid; gap: 4px; max-height: 320px; overflow: auto; border: 1px solid var(--line); border-radius: 12px; padding: 6px; background: rgba(var(--sh), .35); }
.aud-row { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px; cursor: pointer; }
.aud-row:hover { background: rgba(var(--hl), .05); }
.aud-row input { width: 20px; height: 20px; accent-color: var(--gold); flex: none; }
.aud-who { display: grid; min-width: 0; }
.aud-who > * { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ───── Onboarding técnico ───── */
.ob-grid { display: grid; grid-template-columns: minmax(240px, 320px) 1fr; gap: 18px; align-items: start; }
.ob-tl { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; position: sticky; top: 76px; max-height: calc(100vh - 100px); overflow: auto; }
.ob-ph + .ob-ph { margin-top: 14px; }
.ob-ph-t { display: grid; gap: 2px; margin-bottom: 6px; }
.ob-d { display: flex; gap: 10px; align-items: flex-start; width: 100%; text-align: left; background: none; border: 0; color: var(--text); padding: 7px 8px; border-radius: var(--radius-sm); cursor: pointer; font: inherit; font-size: .93rem; }
.ob-d:hover { background: var(--panel-2); }
.ob-d.sel { background: var(--panel-3); outline: 1px solid var(--gold); }
.ob-d.done > span:last-child { color: var(--muted); text-decoration: line-through; }
.ob-d .chip { margin-left: 6px; }
.ob-dot { flex: none; width: 16px; height: 16px; margin-top: 2px; border-radius: 50%; border: 2px solid var(--line-strong); display: grid; place-items: center; }
.ob-d.done .ob-dot { background: var(--good); border-color: var(--good); color: var(--gold-ink); }
.ob-d.now .ob-dot { background: var(--gold); border-color: var(--gold); box-shadow: 0 0 0 4px rgba(var(--gold-rgb), .25); }
.ob-day { display: grid; gap: 12px; }
.ob-act { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; display: grid; gap: 10px; }
.ob-act h4 { margin: 0; }
.ob-desc { margin: 0; white-space: pre-wrap; color: var(--muted); }
.ob-vid { display: grid; gap: 6px; }
.ob-vid .video-frame { width: 100%; border-radius: var(--radius-sm); overflow: hidden; background: #000; }
.ob-vid iframe { width: 100%; height: 100%; border: 0; }
.ob-creds { display: grid; gap: 8px; }
.ob-cred { background: var(--panel-2); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 10px 12px; }
.ob-cred summary { display: flex; justify-content: space-between; align-items: center; gap: 10px; cursor: pointer; }
.ob-cred .row { margin-top: 8px; gap: 8px; }
.ob-cred code { background: rgba(0, 0, 0, .25); padding: 2px 6px; border-radius: 6px; overflow-wrap: anywhere; }
.ob-ed-ph { display: grid; gap: 10px; }
.ob-ed-day { border-left: 3px solid var(--violet); padding: 6px 0 6px 14px; display: grid; gap: 8px; }
.ob-ed-act { background: var(--panel-2); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 8px 12px; }
.ob-ed-act[open] { display: grid; gap: 8px; }
.ob-ed-act summary { cursor: pointer; display: flex; align-items: center; gap: 6px; }
.ob-ed-act summary .ob-tools { margin-left: auto; }
.ob-tools { display: inline-flex; gap: 2px; }
.ob-media { display: grid; gap: 6px; }
.ob-media .row .input { flex: 1; min-width: 140px; }
.ob-cred-ed { display: grid; grid-template-columns: 1.1fr 1.4fr 1fr 1fr 1.4fr auto; gap: 8px; margin-bottom: 8px; }
.ob-pick { max-height: 280px; overflow: auto; display: grid; gap: 4px; margin-top: 6px; }
.ob-sticky { position: sticky; top: 64px; z-index: 5; background: var(--bg); padding: 8px 0; }

/* abas de seção (gestão de trilhas e provas, onboarding, loja) */
.seg-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin: 0 0 16px; padding: 4px; background: var(--panel); border: 1px solid var(--line); border-radius: 999px; width: fit-content; max-width: 100%; }
.seg-tab { padding: 7px 14px; border-radius: 999px; color: var(--muted); text-decoration: none; font-weight: 600; font-size: .92rem; white-space: nowrap; }
.seg-tab:hover { color: var(--text); background: var(--panel-2); }
.seg-tab[aria-selected="true"] { background: var(--gold); color: var(--gold-ink); }
.ob-people select.select { min-width: 110px; }
.ob-people input[type=date] { min-width: 140px; }
.ob-people .tbl { min-width: 980px; }

/* ───── Loja Mamba ───── */
.lj-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; }
.lj-card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.lj-card.is-off { opacity: .55; }
.lj-img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; display: block; background: var(--panel-2); }
.lj-noimg { display: grid; place-items: center; color: var(--gold); }
.lj-body { padding: 14px; display: grid; gap: 8px; align-content: start; flex: 1; }
.lj-body h3 { margin: 0; font-size: 1.1rem; }
.lj-price { margin: 0; font-size: 1.05rem; }
.lj-price b { color: var(--gold); }
.lj-timer { font-family: var(--display); font-size: 1.3rem; letter-spacing: .02em; }
.lj-timer.hot { color: var(--bad); }
.lj-line { padding: 8px 0; border-bottom: 1px solid var(--line); }
.lj-line:last-child { border-bottom: 0; }
.lj-hist { max-height: 60vh; overflow: auto; }

@media (max-width: 860px) {
  .ob-grid { grid-template-columns: 1fr; }
  .ob-tl { position: static; max-height: none; }
  .ob-cred-ed { grid-template-columns: 1fr 1fr; }
}

/* (estes estilos ficavam depois do bloco de celular e eram apagados pelo sync-mobile-css; agora ficam antes dele) */
/* ───── Destaques: duração, enquete e selo "Expirado" ───── */
.dst-dur { display: flex; flex-wrap: wrap; gap: 8px; }
.dst-dur-opt { padding: 9px 14px; border-radius: 999px; border: 1px solid var(--line); background: transparent; color: var(--text); font: inherit; font-weight: 600; cursor: pointer; }
.dst-dur-opt.on { border-color: var(--gold); background: rgba(var(--gold-rgb), .12); color: var(--gold); }
.tool-btn.is-on { border-color: var(--gold); color: var(--gold); }
.dst-pollform { display: grid; gap: 8px; padding: 12px; border-radius: 12px; border: 1px dashed var(--line-strong); }
.dst-item.is-expired .dst-ring { background: none; border: 2px dashed var(--line-strong); padding: 0; opacity: .75; }
.dst-item.is-expired .dst-name { color: var(--muted); }
.dst-new.is-exp { background: #5b5470; }

.dst-lower { position: absolute; left: 0; right: 0; bottom: 0; z-index: 4; display: grid; gap: 4px; pointer-events: none; padding-bottom: max(20px, env(safe-area-inset-bottom)); background: linear-gradient(to top, rgba(8, 3, 22, .78) 55%, transparent); }
.dst-lower .dst-cap { position: static; padding: 24px 22px 6px; }
.dst-lower .dst-cap p { max-height: 18vh; }
.dst-poll { pointer-events: auto; display: grid; gap: 8px; margin: 28px 16px 0; padding: 14px; border-radius: 18px; background: rgba(var(--hl), .96); color: #1b1230; box-shadow: 0 10px 30px rgba(0, 0, 0, .35); }
.dst-lower .dst-cap + .dst-poll { margin-top: 8px; }
.dst-poll-q { margin: 0; font-family: var(--display); font-weight: 800; font-size: 1.08rem; line-height: 1.25; text-wrap: balance; overflow-wrap: anywhere; }
.dst-poll-opts { display: grid; gap: 7px; }
.dst-po { position: relative; overflow: hidden; display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 44px; padding: 10px 14px; border-radius: 12px; border: 1.5px solid #cdbfe6; background: #f4effb; color: #1b1230; font: inherit; font-weight: 700; text-align: left; cursor: pointer; }
.dst-po:hover:not(:disabled) { border-color: var(--purple); }
.dst-po:disabled { cursor: default; opacity: 1; }
.dst-po.is-mine { border-color: var(--purple); }
.dst-po-fill { position: absolute; inset: 0 auto 0 0; background: rgba(var(--purple-rgb), .18); transition: width .5s ease; }
.dst-po.is-mine .dst-po-fill { background: rgba(var(--gold-rgb), .55); }
.dst-po-t, .dst-po-n, .dst-po-me { position: relative; }
.dst-po-t { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.dst-po-me { display: inline-grid; place-items: center; }
.dst-poll-note { margin: 0; font-size: .8rem; color: #5b5470; }
.dst-frame.has-poll .dst-textslide { padding-bottom: 330px; place-items: start center; padding-top: 112px; }
.dst-frame.has-poll .dst-textslide .dst-text { font-size: clamp(1.5rem, 6.4vw, 2.2rem); }
.dst-frame.is-held .dst-lower { opacity: 0; }
.dst-lower.is-solo { top: 0; align-content: center; background: none; padding: 90px 0 40px; }
.dst-lower.is-solo .dst-poll { margin-top: 0; }

/* ───── Trilhas: categorias, busca e cartões compactos ───── */
.cat-bar { display: grid; gap: 12px; margin: 34px 0 6px; }
.cat-chips { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 6px; scrollbar-width: thin; -webkit-overflow-scrolling: touch; }
.cat-chip { flex: none; display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 999px; border: 1.5px solid var(--line-strong); background: transparent; color: var(--text); font: inherit; font-weight: 700; cursor: pointer; white-space: nowrap; }
.cat-chip b { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: rgba(var(--hl), .1); font-size: .78rem; }
.cat-chip:hover { border-color: var(--gold); }
.cat-chip[aria-selected="true"] { border-color: var(--gold); background: rgba(var(--gold-rgb), .14); color: var(--gold); }
.cat-chip[aria-selected="true"] b { background: var(--gold); color: var(--gold-ink); }
.cat-chip:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.cat-tools { display: flex; gap: 10px; flex-wrap: wrap; }
.cat-search { position: relative; flex: 1 1 260px; min-width: 0; display: flex; align-items: center; }
.cat-search svg { position: absolute; left: 12px; color: var(--muted); pointer-events: none; }
.cat-search .input { padding-left: 38px; width: 100%; }
.cat-tools > select.input { flex: 0 1 220px; }
.cat-sec { margin-top: 26px; }
.cat-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.cat-head h3 { margin: 0; font-size: 1.9rem; }
.cat-head .linkish { margin-left: auto; }
.cat-prova .cat-head h3 { color: var(--gold); }
.trail-grid.dense { grid-template-columns: repeat(auto-fill, minmax(min(100%, 290px), 1fr)); gap: 14px; }
.trail-grid.dense .trail-card { padding: 18px; gap: 10px; }
.trail-grid.dense .trail-card h3 { font-size: 1.55rem; line-height: 1.1; }
.trail-grid.dense .trail-card .trail-tag { font-size: .93rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.trail-card.is-prova { border-style: dashed; border-color: rgba(var(--gold-rgb), .55); }
.trail-card.is-prova.is-done { border-style: solid; border-color: rgba(var(--good-rgb), .5); }
.cat-result .empty { margin-top: 18px; }

/* abas Trilhas | Provas avulsas na gestão */
.seg-tabs { display: inline-flex; gap: 4px; padding: 4px; border-radius: 14px; border: 1px solid var(--line); background: rgba(var(--sh), .4); }
.seg-tab { padding: 9px 16px; border-radius: 10px; color: var(--muted); text-decoration: none; font-weight: 700; }
.seg-tab:hover { color: var(--text); }
.seg-tab[aria-selected="true"] { background: var(--gold); color: var(--gold-ink); }

/* editor de prova avulsa */
.pv-edit { display: grid; gap: 10px; max-width: 880px; }
.pv-meta { display: grid; gap: 14px; }
.pv-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px; }
.pv-bar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 12px; }
.pv-qs { display: grid; gap: 14px; }
.pv-q { display: grid; gap: 12px; }
.pv-opts { display: grid; gap: 8px; }
.pv-opt { display: flex; align-items: center; gap: 8px; }
.pv-opt .input { flex: 1; min-width: 0; }
.pv-right { display: inline-flex; align-items: center; gap: 6px; padding: 8px 10px; border-radius: 10px; border: 1.5px solid var(--line-strong); cursor: pointer; font-weight: 800; flex: none; }
.pv-right input { width: 18px; height: 18px; accent-color: var(--gold); }
.pv-opt.is-right .pv-right { border-color: var(--mint, var(--good)); background: rgba(var(--good-rgb), .14); }

/* ───── Tour guiado ───── */
.tour-layer { position: fixed; inset: 0; z-index: 400; }
.tour-shade { position: absolute; inset: 0; background: rgba(8, 3, 22, .72); }
.tour-ring { position: absolute; border-radius: 14px; box-shadow: 0 0 0 9999px rgba(8, 3, 22, .72), 0 0 0 3px var(--gold), 0 0 24px 4px rgba(var(--gold-rgb), .45); pointer-events: none; transition: left .28s ease, top .28s ease, width .28s ease, height .28s ease; }
.tour-card { position: absolute; width: min(360px, calc(100vw - 24px)); padding: 18px 18px 14px; border-radius: 18px; background: var(--panel-solid, var(--panel)); border: 1.5px solid var(--gold); color: var(--text); box-shadow: 0 18px 50px rgba(0, 0, 0, .55); display: grid; gap: 10px; transition: left .28s ease, top .28s ease, opacity .2s; }
.tour-card.is-center { left: 50%; top: 50%; translate: -50% -50%; width: min(440px, calc(100vw - 28px)); text-align: center; }
.tour-card h3 { margin: 0; font-size: 1.7rem; }
.tour-card p { margin: 0; color: var(--text); line-height: 1.5; }
.tour-emoji { font-size: 2.6rem; line-height: 1; }
.tour-dots { display: flex; gap: 5px; justify-content: center; flex-wrap: wrap; }
.tour-dots i { width: 7px; height: 7px; border-radius: 50%; background: rgba(var(--hl), .25); }
.tour-dots i.on { background: var(--gold); width: 20px; border-radius: 99px; }
.tour-actions { display: flex; gap: 8px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.tour-actions .grow { flex: 1; }
.tour-skip { background: none; border: 0; color: var(--muted); font: inherit; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; padding: 6px 2px; }
.tour-count { color: var(--muted); font-size: .82rem; }
@media (prefers-reduced-motion: reduce) { .tour-ring, .tour-card { transition: none; } }
.pv-edit .textarea, .pv-edit .input { font-family: var(--body); }
.pv-grid .field { align-content: start; }

/* categoria escolhida pelo gestor */
.cat-pick { min-height: 38px; padding: 6px 10px; max-width: 100%; flex: 1; min-width: 0; }
.cat-mgr input.input { min-height: 40px; flex: 1; min-width: 0; }

/* início de Trilhas: um card por categoria */
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 18px; margin-top: 8px; }
.cat-card { display: flex; flex-direction: column; gap: 10px; padding: 22px; border-radius: 18px; text-decoration: none; color: var(--text); background: var(--card, rgba(var(--panel-rgb), .6)); border: 1px solid var(--line, rgba(var(--hl), .14)); transition: transform .15s, border-color .15s; }
.cat-card:hover { border-color: var(--gold); color: var(--text); transform: translateY(-2px); }
.cat-card.is-done { border-color: rgba(var(--good-rgb), .5); }
.cat-card h3 { margin: 0; font-size: 2rem; }
.cat-ico { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: rgba(var(--gold-rgb), .14); color: var(--gold); }
.cat-count { margin: 0; color: var(--muted); font-size: .95rem; }
.cat-peek { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; font-size: .88rem; color: var(--muted); flex: 1; }
.cat-peek li { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cat-peek li::before { content: "• "; color: var(--gold); }
.cat-peek li.more::before { content: ""; }
.cat-card .trail-cta { margin-top: 4px; }

/* listas que estavam sem estilo: cadastros novos (Aprovações), resultados de prova avulsa, leitura do fórum */
.signup-list { display: grid; gap: 10px; }
.signup-row { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 12px; align-items: center; padding: 12px 14px; border-radius: var(--radius-sm); background: var(--panel-2); border: 1px solid var(--line); }
.signup-row .who { display: grid; gap: 2px; min-width: 0; }
.signup-row .who span { overflow-wrap: anywhere; }
.tbl-wrap { border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }
.forum-read { display: grid; gap: 14px; }
.panel.forum-item + .panel.forum-item { margin-top: 12px; }
@media (max-width: 680px) {
  .signup-row { grid-template-columns: minmax(0, 1fr); }
}

/* direção Dia: cards brancos se separam do fundo pela borda e por uma sombra leve (nas áreas escuras --shadow é none) */
.panel, .stat, .trail-card, .tm-card, .lj-card, .fd-mat, .fd-stat, .ob-act, .cat-card, .mod-card, .fd-card, .signup-row, .table-wrap { box-shadow: var(--shadow); }

/* ───── área de Administração: menu próprio em tinta escura e porta de entrada na barra do topo ───── */
.side-admin { --bg: #1b1233; --bg-2: #1b1233; --panel: #2a2145; --panel-2: #332a52; --panel-3: #3c3260; --panel-rgb: 42, 33, 69; --muted: #cfc6e6; --faint: #b9b0d4; }
.adm-back { display: flex; align-items: center; gap: 10px; padding: 10px 14px; margin-bottom: 6px; border-radius: 11px; background: rgba(var(--hl), .08); color: var(--text); text-decoration: none; font-weight: 700; }
.adm-back:hover { background: rgba(var(--hl), .14); color: var(--text); }
.adm-title { margin: 8px 14px 2px; font-family: var(--display); font-weight: 900; font-size: 1.6rem; line-height: 1.05; color: var(--text); }
.side-admin .nav-sep { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 14px; text-transform: uppercase; letter-spacing: .06em; font-size: .72rem; }
.adm-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 16px; border-radius: 999px; background: var(--purple); color: #ffffff; text-decoration: none; font-weight: 700; font-size: .95rem; white-space: nowrap; }
.adm-btn:hover { background: var(--gold); color: var(--gold-ink); }
.adm-btn-n { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--sun); color: #2a1a00; font-size: .72rem; font-weight: 800; display: grid; place-items: center; }
.top-admin { border-bottom-color: var(--line-strong); }
@media (max-width: 860px) {
  .adm-btn { width: 40px; padding: 0; justify-content: center; position: relative; }
  .adm-btn-t { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .adm-btn-n { position: absolute; top: -4px; right: -6px; }
  .shell.is-admin .top .menu-btn { display: inline-flex; }
  .shell.is-admin .top .crumbs { display: block; }
}

/* as iniciais do avatar ficam brancas mesmo dentro do cartão do menu (que pinta os textos de cor suave) */
.me-card .avatar, .me-card .avatar span { color: #ffffff; }

/* ───── Certificados Oficiais ───── */
.oc { margin: 0 0 28px; padding: 22px; border-radius: var(--radius); background: var(--panel); border: 2px solid var(--gold); box-shadow: var(--shadow); }
.oc-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 6px; }
.oc-head h3 { margin: 0; font-size: 1.9rem; }
.oc-count { font-weight: 800; color: var(--gold); }
.oc-list { display: grid; gap: 12px; }
.oc-card { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 16px 18px; border-radius: 14px; background: var(--panel-2); border: 1px solid var(--line); }
.oc-card.is-ok { border-color: rgba(var(--good-rgb), .45); }
.oc-main { flex: 1 1 320px; min-width: 0; display: grid; gap: 6px; }
.oc-main h4 { margin: 0; font-family: var(--display); font-weight: 800; font-size: 1.3rem; line-height: 1.1; }
.oc-meta { gap: 10px; }
.oc-note { margin: 0; padding: 8px 10px; border-radius: 8px; background: var(--bad-bg); color: var(--bad); }
.oc-prev img { margin-top: 10px; max-height: 220px; border-radius: 10px; border: 1px solid var(--line); }
.oc-full { max-height: 70vh; width: auto; margin: 0 auto 12px; border-radius: 10px; }
.oc-sub { margin: 0 0 4px; }
.oc-thumb { flex: none; width: 72px; height: 72px; padding: 0; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: var(--panel-3); cursor: zoom-in; display: grid; place-items: center; font-size: .7rem; color: var(--muted); text-align: center; }
.oc-thumb img { width: 100%; height: 100%; object-fit: cover; }
.oc-noimg { cursor: default; }
.oc-card.is-off { opacity: .6; }
/* número de pendências dentro de uma aba fica na mesma linha do texto */
.seg-tab .at-n { display: inline-grid; margin-left: 6px; vertical-align: middle; }

/* ===MODO-CELULAR-BEGIN=== */
/* gerado por scripts/sync-mobile-css.mjs: não edite aqui */
html[data-mode="mobile"] .auth { grid-template-columns: minmax(0, 1fr); }
html[data-mode="mobile"] .auth-hero { padding-bottom: 0; }
html[data-mode="mobile"] .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
html[data-mode="mobile"] .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
html[data-mode="mobile"] .shell { grid-template-columns: minmax(0, 1fr); }
html[data-mode="mobile"] .side { position: fixed; z-index: 60; left: 0; top: 0; width: min(290px, 86vw); transform: translateX(-102%); transition: transform .22s ease; }
html[data-mode="mobile"] .side.open { transform: none; box-shadow: 0 0 0 100vmax rgba(8, 3, 20, .7); }
html[data-mode="mobile"] .top .menu-btn { display: inline-flex; }
html[data-mode="mobile"] body { font-size: 16.5px; }
html[data-mode="mobile"] .auth-hero .playbook { display: none; }
html[data-mode="mobile"] .grid-2, html[data-mode="mobile"] .grid-3, html[data-mode="mobile"] .compare { grid-template-columns: minmax(0, 1fr); }
html[data-mode="mobile"] .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
html[data-mode="mobile"] .stat b { font-size: 2.1rem; }
html[data-mode="mobile"] .stat b.txt { font-size: 1.5rem; padding-top: .35rem; }
html[data-mode="mobile"] .next-card { grid-template-columns: minmax(0, 1fr); }
html[data-mode="mobile"] .mod-card { grid-template-columns: 52px minmax(0, 1fr); }
html[data-mode="mobile"] .mod-card .chips { grid-column: 1 / -1; }
html[data-mode="mobile"] .mod-n { font-size: 2.6rem; }
html[data-mode="mobile"] .trail-card h3 { font-size: 1.8rem; }
html[data-mode="mobile"] .bands li { grid-template-columns: minmax(0, 1fr); gap: 2px; }
html[data-mode="mobile"] .funnel-row { grid-template-columns: minmax(0, 1fr); gap: 6px; }
html[data-mode="mobile"] .top .crumbs { display: none; }
html[data-mode="mobile"] .goal-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
html[data-mode="mobile"] .goal-row > :first-child { grid-column: 1 / -1; }
html[data-mode="mobile"] .top-search { width: auto; flex: 1; min-width: 0; padding: 0 10px; }
html[data-mode="mobile"] .top-search svg { display: none; }
html[data-mode="mobile"] .top .spacer { display: none; }
html[data-mode="mobile"] .post { padding: 14px 14px 6px; }
html[data-mode="mobile"] .composer-bar .btn { flex: 1 1 100%; }
html[data-mode="mobile"] .composer-bar .spacer { display: none; }
html[data-mode="mobile"] .checkin > div { flex: 1 1 150px; }
html[data-mode="mobile"] .checkin .btn { flex: 1 1 100%; }
html[data-mode="mobile"] .tool-btn span { display: none; }
html[data-mode="mobile"] .tool-btn { padding: 0 12px; }
html[data-mode="mobile"] .podium { gap: 8px; }
html[data-mode="mobile"] .search-form { flex-direction: column; }
html[data-mode="mobile"] .rocket-fly { animation-name: rocket-up-sm; }
html[data-mode="mobile"] .m-grid.n3 .m-img:first-child { grid-row: auto; }
html[data-mode="mobile"] .checkin { flex-wrap: wrap; }
html[data-mode="mobile"] input, html[data-mode="mobile"] select, html[data-mode="mobile"] textarea, html[data-mode="mobile"] .top-search input { font-size: 16px; }
html[data-mode="mobile"] .emoji-pop, html[data-mode="mobile"] .emoji-pop.up { position: fixed; left: 8px; right: 8px; top: auto; bottom: 8px; width: auto; }
html[data-mode="mobile"] .notif-panel { position: fixed; left: 12px; right: 12px; top: 64px; width: auto; }
html[data-mode="mobile"] .tag-pill.search-pill { margin-left: 0; }
html[data-mode="mobile"] .pb-modes { grid-template-columns: minmax(0, 1fr); }
html[data-mode="mobile"] .tag-select { width: 100%; }
html[data-mode="mobile"] .check-inline { margin-left: 0; }
html[data-mode="mobile"] .c-form { flex-wrap: wrap; }
html[data-mode="mobile"] .c-form .mention-host { flex: 1 1 100%; }
html[data-mode="mobile"] .c-form .btn { flex: 1; }
html[data-mode="mobile"] .tag-row .swatches { flex: 1 1 100%; }
html[data-mode="mobile"] .big-code { font-size: 1.8rem; letter-spacing: .2em; }
html[data-mode="mobile"] .tabbar { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); background: rgba(21, 11, 43, .95); border-top: 1px solid var(--line); backdrop-filter: blur(12px); }
html[data-mode="mobile"] .tab { display: grid; justify-items: center; gap: 1px; padding: 4px 0; border: 0; background: none; color: var(--muted); text-decoration: none; font: inherit; font-size: .7rem; font-weight: 700; cursor: pointer; min-width: 0; }
html[data-mode="mobile"] .tab:hover { color: var(--text); }
html[data-mode="mobile"] .tab[aria-current="page"], html[data-mode="mobile"] .tab[data-on] { color: var(--gold); }
html[data-mode="mobile"] .tab-ico { position: relative; display: grid; place-items: center; height: 30px; }
html[data-mode="mobile"] .tab-dot { position: absolute; top: -3px; right: -9px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 999px; background: #ff4d79; color: #fff; font-style: normal; font-size: .64rem; font-weight: 800; display: grid; place-items: center; line-height: 1; border: 2px solid var(--bg); }
html[data-mode="mobile"] .tab-me .avatar { border-width: 2px; }
html[data-mode="mobile"] .tab[data-on] .avatar, html[data-mode="mobile"] .tab-me[aria-expanded="true"] .avatar { border-color: var(--gold); }
html[data-mode="mobile"] .top .menu-btn { display: none; }
html[data-mode="mobile"] .top .crumbs { display: none; }
html[data-mode="mobile"] .top .top-search { display: none; }
html[data-mode="mobile"] .top .spacer { display: block; }
html[data-mode="mobile"] .top-brand { display: inline-flex; align-items: center; gap: 9px; color: var(--text); text-decoration: none; font-family: var(--display); font-weight: 900; font-size: 1.55rem; line-height: 1; }
html[data-mode="mobile"] .top-brand .brand-mark { width: 32px; height: 32px; border-radius: 9px; font-size: 19px; }
html[data-mode="mobile"] .page { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
html[data-mode="mobile"] .toasts { bottom: calc(84px + env(safe-area-inset-bottom)); }
html[data-mode="mobile"] .page { padding-left: 16px; padding-right: 16px; padding-top: 14px; }
html[data-mode="mobile"] .dst-bar { margin-left: -16px; margin-right: -16px; }
html[data-mode="mobile"] .dst-row { padding-left: 16px; padding-right: 16px; }
html[data-mode="mobile"] .feed-list { gap: 14px; margin-left: 0; margin-right: 0; }
html[data-mode="mobile"] .post { display: flex; flex-direction: column; padding: 0 0 6px; border-radius: 18px; border-width: 1px; background: var(--panel); overflow: hidden; }
html[data-mode="mobile"] .post-head { order: 0; margin: 0; padding: 12px 14px 10px; }
html[data-mode="mobile"] .post-head .avatar { width: 38px !important; height: 38px !important; }
html[data-mode="mobile"] .post .media { order: 3; margin: 0; gap: 0; }
html[data-mode="mobile"] .post .m-grid { border-radius: 0; }
html[data-mode="mobile"] .post .m-img img, html[data-mode="mobile"] .post .m-grid.n1 .m-img img { max-height: none; width: 100%; }
html[data-mode="mobile"] .post .m-video { border-radius: 0; max-height: none; }
html[data-mode="mobile"] .post .m-embed-wrap { border-radius: 0; border-left: 0; border-right: 0; }
html[data-mode="mobile"] .post .poll { order: 4; margin: 10px 14px 0; }
html[data-mode="mobile"] .post-actions { order: 5; border-top: 0; margin: 0; padding: 4px 6px 0; }
html[data-mode="mobile"] .post-text { order: 1; margin: 0 0 10px; padding: 0 14px; }
html[data-mode="mobile"] .post > .linkish { order: 2; margin: -4px 0 10px; padding: 0 14px; align-self: flex-start; }
html[data-mode="mobile"] .post-reason { order: 6; margin: 8px 14px 0; }
html[data-mode="mobile"] .post .comments { order: 7; padding: 0 14px 10px; }
html[data-mode="mobile"] .hype-label { display: none; }
html[data-mode="mobile"] .act-btn > span:nth-child(2) { display: none; }
html[data-mode="mobile"] .hype-btn { border: 0; padding: 0 8px; min-height: 44px; }
html[data-mode="mobile"] .hype-btn.on { background: none; }
html[data-mode="mobile"] .composer.panel { border-radius: 14px; }
html[data-mode="mobile"] .ob-grid { grid-template-columns: 1fr; }
html[data-mode="mobile"] .ob-tl { position: static; max-height: none; }
html[data-mode="mobile"] .ob-cred-ed { grid-template-columns: 1fr 1fr; }
html[data-mode="mobile"] .signup-row { grid-template-columns: minmax(0, 1fr); }
html[data-mode="mobile"] .adm-btn { width: 40px; padding: 0; justify-content: center; position: relative; }
html[data-mode="mobile"] .adm-btn-t { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
html[data-mode="mobile"] .adm-btn-n { position: absolute; top: -4px; right: -6px; }
html[data-mode="mobile"] .shell.is-admin .top .menu-btn { display: inline-flex; }
html[data-mode="mobile"] .shell.is-admin .top .crumbs { display: block; }
html[data-mode="mobile"] .shell, html[data-mode="mobile"] .auth { max-width: 480px; margin-left: auto; margin-right: auto; }
html[data-mode="mobile"] input, html[data-mode="mobile"] select, html[data-mode="mobile"] textarea { font-size: 16px; }
/* ===MODO-CELULAR-END=== */
