:root {
  --red: #bd202b; --red-deep: #8e1820; --red-soft: #fbe7e8; --ink: #1f1b1c; --muted: #6b6566; --line: #e7e1dd;
  --paper: #faf8f6; --card: #fff; --green: #1fa855; --green-soft: #e3f6ea; --yellow: #e5aa44; --yellow-soft: #fff1d6;
  --r: 14px; --shadow: 0 18px 40px -24px rgba(31, 27, 28, 0.35), 0 2px 6px -2px rgba(31, 27, 28, 0.08);
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.45 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; }
a { color: var(--red); }
button, input, textarea { font: inherit; }
.btn { display: inline-flex; align-items: center; gap: 8px; border: 0; border-radius: 10px; padding: 11px 18px; background: var(--red); color: #fff; font-weight: 700; cursor: pointer; text-decoration: none; }
.btn:hover { background: var(--red-deep); }
.btn.claro { background: #fff; color: var(--ink); border: 1px solid var(--line); }
.btn.claro:hover { background: #f3efec; }
.btn[disabled] { opacity: 0.55; cursor: default; }
.topo { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: 14px; padding: 12px 22px; background: var(--ink); color: #fff; }
.topo img { width: 36px; height: 36px; border-radius: 50%; background: #fff; padding: 2px; }
.topo .marca { font-weight: 800; letter-spacing: -0.01em; }
.topo .marca small { display: block; font-weight: 500; color: #d9d2cf; font-size: 13px; }
.topo nav { margin-left: auto; display: flex; gap: 16px; align-items: center; font-size: 15px; }
.topo nav a { color: #fff; text-decoration: none; opacity: 0.85; }
.topo nav a:hover { opacity: 1; text-decoration: underline; }
.topo nav .eu { color: var(--yellow); font-weight: 700; }
main { max-width: 1240px; margin: 0 auto; padding: 22px; }
.card { background: var(--card); border-radius: var(--r); box-shadow: var(--shadow); }
h1 { font-size: 28px; letter-spacing: -0.02em; margin: 0 0 4px; }
.sub { color: var(--muted); margin: 0 0 18px; }
.barra { height: 8px; background: #efe9e5; border-radius: 99px; overflow: hidden; }
.barra > i { display: block; height: 100%; background: var(--red); border-radius: 99px; transition: width 0.4s; }
.barra.ok > i { background: var(--green); }
/* ------------------------------------------------ login */
.login { min-height: 100vh; display: grid; place-items: center; padding: 22px; background: linear-gradient(160deg, var(--ink) 0 46%, var(--paper) 46%); }
.login .card { width: min(420px, 100%); padding: 32px 30px; }
.login img { width: 64px; height: 64px; }
.login h1 { margin-top: 14px; }
.login label { display: block; font-weight: 700; font-size: 14px; margin: 16px 0 6px; }
.login input { width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.login input:focus { outline: 2px solid var(--red); border-color: transparent; }
.login .btn { width: 100%; justify-content: center; margin-top: 22px; padding: 13px; }
.erro { color: var(--red); font-weight: 600; min-height: 22px; margin-top: 12px; }
/* ------------------------------------------------ curso */
.resumo { display: flex; align-items: center; gap: 22px; padding: 18px 22px; margin-bottom: 20px; }
.resumo .barra { flex: 1; height: 10px; }
.resumo b { font-size: 18px; white-space: nowrap; }
.grade { display: grid; grid-template-columns: 340px 1fr; gap: 22px; align-items: start; }
.lista { padding: 8px; }
.item { display: flex; gap: 12px; align-items: center; padding: 12px; border-radius: 10px; cursor: pointer; text-decoration: none; color: inherit; }
.item:hover { background: #f6f2ef; }
.item.ativo { background: var(--red-soft); }
.item .num { flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: #fff; font-weight: 800; font-size: 15px; }
.item.feito .num { background: var(--green); }
.item .tit { font-weight: 700; line-height: 1.2; }
.item .meta { font-size: 13px; color: var(--muted); margin: 3px 0 6px; }
.item .info { flex: 1; min-width: 0; }
.palco { padding: 0; overflow: hidden; }
.palco video { display: block; width: 100%; aspect-ratio: 16 / 9; background: #000; }
.palco .baixo { padding: 18px 22px 22px; }
.palco h2 { margin: 0 0 6px; font-size: 22px; letter-spacing: -0.01em; }
.acoes { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 12px; }
.acoes .status { margin-left: auto; color: var(--muted); font-size: 14px; }
.duvidas { margin-top: 20px; }
.duvidas h3 { font-size: 16px; margin: 0 0 10px; }
.duvida { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; margin-bottom: 10px; background: #fff; }
.duvida .q { white-space: pre-wrap; }
.duvida .quando { font-size: 13px; color: var(--muted); margin-bottom: 4px; }
.duvida .quando a { font-weight: 700; }
.duvida .r { margin-top: 10px; padding: 10px 12px; background: var(--green-soft); border-radius: 10px; white-space: pre-wrap; }
.duvida .r b { display: block; font-size: 13px; color: #13763a; margin-bottom: 2px; }
.duvida .espera { margin-top: 8px; font-size: 13px; color: #8a5b00; background: var(--yellow-soft); border-radius: 8px; padding: 4px 8px; display: inline-block; }
dialog { border: 0; border-radius: var(--r); padding: 24px; width: min(520px, 92vw); box-shadow: var(--shadow); }
dialog::backdrop { background: rgba(31, 27, 28, 0.55); }
dialog h3 { margin: 0 0 6px; }
dialog textarea { width: 100%; min-height: 120px; padding: 12px; border: 1px solid var(--line); border-radius: 10px; resize: vertical; margin: 10px 0 14px; }
dialog .acoes { justify-content: flex-end; }
.colinha { display: flex; gap: 12px; align-items: center; padding: 14px 16px; margin-top: 14px; }
.colinha .txt { flex: 1; font-size: 14px; color: var(--muted); }
.colinha .txt b { color: var(--ink); display: block; font-size: 15px; }
/* ------------------------------------------------ painel */
.tabela { width: 100%; border-collapse: separate; border-spacing: 0; }
.tabela th, .tabela td { padding: 12px 12px; border-bottom: 1px solid var(--line); text-align: center; font-size: 15px; }
.tabela th { font-size: 13px; color: var(--muted); font-weight: 700; vertical-align: bottom; }
.tabela th:first-child, .tabela td:first-child { text-align: left; }
.tabela td .nome { font-weight: 800; }
.tabela td .sub2 { font-size: 12px; color: var(--muted); }
.cel { display: inline-flex; min-width: 54px; justify-content: center; padding: 4px 8px; border-radius: 99px; font-weight: 700; font-size: 14px; }
.cel.ok { background: var(--green-soft); color: #13763a; }
.cel.meio { background: var(--yellow-soft); color: #8a5b00; }
.cel.zero { background: #f1ece9; color: #9a9392; }
.bloco { padding: 18px 20px; margin-bottom: 22px; overflow-x: auto; }
.bloco h2 { margin: 0 0 12px; font-size: 20px; }
.abas { display: flex; gap: 8px; margin-bottom: 12px; }
.abas button { border: 1px solid var(--line); background: #fff; border-radius: 99px; padding: 6px 14px; cursor: pointer; font-weight: 700; }
.abas button.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.duvida textarea { width: 100%; min-height: 70px; padding: 10px; border: 1px solid var(--line); border-radius: 10px; margin-top: 10px; }
.vazio { color: var(--muted); padding: 10px 0; }
@media (max-width: 860px) {
  .grade { grid-template-columns: 1fr; }
  .lista { order: 2; }
  .topo nav .eu { display: none; }
  main { padding: 14px; }
}

[hidden] { display: none !important; }
