:root {
  --bg: #faf7f9; --card: #ffffff; --ink: #2b2230; --muted: #7a6d80; --line: #eadfe6;
  --brand: #7d5a7a; --brand-d: #5f4260; --brand-l: #f1e6ef; --ok: #2f8f5b; --ok-l: #e4f4ea; --warn: #b4572b;
  --r: 14px; --shadow: 0 6px 24px rgba(80, 40, 80, .08);
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #19141c; --card: #231c27; --ink: #f2eaf3; --muted: #a999ae; --line: #372d3c; --brand: #c79bc3; --brand-d: #e0bddc; --brand-l: #33283a; --ok: #62c58d; --ok-l: #1f3a2b; --shadow: none; }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.5 'Roboto', system-ui, -apple-system, 'Segoe UI', sans-serif; }
a { color: var(--brand); }
button { font: inherit; cursor: pointer; }
.top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 12px; padding: 12px 16px; background: var(--card); border-bottom: 1px solid var(--line); }
.top .logo { font-weight: 700; color: var(--brand-d); text-decoration: none; letter-spacing: .02em; }
.top .sp { flex: 1; }
.top a.small, .top button.small { font-size: 13px; color: var(--muted); text-decoration: none; background: none; border: 0; padding: 6px 8px; }
.wrap { max-width: 1240px; margin: 0 auto; padding: 24px 16px 64px; }
h1 { font-size: 26px; line-height: 1.2; margin: 0 0 6px; font-weight: 700; }
h2 { font-size: 19px; margin: 0 0 10px; }
.sub { color: var(--muted); margin: 0 0 24px; }

/* botões */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 18px; border-radius: 999px; border: 1.5px solid var(--brand); background: transparent; color: var(--brand-d); font-weight: 600; text-decoration: none; }
.btn:hover { background: var(--brand-l); }
.btn.primary { background: var(--brand); color: #fff; border-color: var(--brand); }
.btn.primary:hover { background: var(--brand-d); }
.btn.done { background: var(--ok); border-color: var(--ok); color: #fff; }
.btn.danger { border-color: var(--warn); color: var(--warn); }
.btn.sm { min-height: 34px; padding: 4px 12px; font-size: 14px; }
.btn[disabled] { opacity: .4; pointer-events: none; }

/* home: cartões de curso */
.grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.ccard { display: flex; flex-direction: column; gap: 10px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 22px; text-decoration: none; color: inherit; box-shadow: var(--shadow); transition: transform .15s; }
.ccard:hover { transform: translateY(-2px); }
.ccard .ico { width: 44px; height: 44px; border-radius: 12px; background: var(--brand-l); color: var(--brand-d); display: grid; place-items: center; font-weight: 700; font-size: 20px; }
.ccard h3 { margin: 0; font-size: 18px; }
.ccard p { margin: 0; color: var(--muted); font-size: 14px; flex: 1; }
.bar { height: 8px; border-radius: 99px; background: var(--brand-l); overflow: hidden; }
.bar > i { display: block; height: 100%; background: var(--brand); border-radius: 99px; transition: width .3s; }
.bar.ok > i { background: var(--ok); }
.meta { display: flex; justify-content: space-between; font-size: 13px; color: var(--muted); }
.resume { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: space-between; background: var(--brand); color: #fff; border-radius: var(--r); padding: 18px 22px; margin-bottom: 24px; }
.resume .btn { background: #fff; color: var(--brand-d); border-color: #fff; }

/* curso: player + lista */
.course { display: grid; gap: 24px; grid-template-columns: minmax(0, 1fr) 360px; align-items: start; }
.player { aspect-ratio: 16 / 9; width: 100%; border-radius: var(--r); overflow: hidden; background: #000; box-shadow: var(--shadow); }
.player iframe { width: 100%; height: 100%; border: 0; display: block; }
.noVideo { aspect-ratio: 16 / 9; display: grid; place-items: center; text-align: center; padding: 24px; border-radius: var(--r); background: var(--brand-l); color: var(--brand-d); }
.lhead { margin: 18px 0 6px; }
.lhead .crumb { font-size: 13px; color: var(--muted); }
.desc { color: var(--ink); white-space: pre-line; margin: 8px 0 16px; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 18px 0; }
.actions .grow { flex: 1; }
.mats { display: flex; flex-direction: column; gap: 8px; margin: 12px 0 0; }
.mat { display: flex; align-items: center; gap: 10px; padding: 12px 14px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; color: var(--ink); text-decoration: none; }
.mat:hover { border-color: var(--brand); }
.side { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); position: sticky; top: 72px; max-height: calc(100vh - 92px); overflow: auto; }
.side .sh { padding: 16px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: var(--card); z-index: 1; }
details.mod { border-bottom: 1px solid var(--line); }
details.mod:last-child { border: 0; }
details.mod > summary { list-style: none; cursor: pointer; padding: 14px 16px; font-weight: 600; font-size: 14px; display: flex; gap: 8px; align-items: center; }
details.mod > summary::-webkit-details-marker { display: none; }
details.mod > summary::after { content: '▾'; margin-left: auto; color: var(--muted); }
details.mod > summary .n { font-weight: 400; color: var(--muted); font-size: 12px; white-space: nowrap; }
.li { display: flex; gap: 10px; align-items: flex-start; padding: 10px 16px; text-decoration: none; color: var(--ink); font-size: 14px; border-left: 3px solid transparent; }
.li:hover { background: var(--brand-l); }
.li.cur { background: var(--brand-l); border-left-color: var(--brand); font-weight: 600; }
.chk { flex: none; width: 20px; height: 20px; margin-top: 1px; border-radius: 50%; border: 2px solid var(--line); display: grid; place-items: center; font-size: 12px; color: #fff; background: transparent; padding: 0; }
.li.done .chk { background: var(--ok); border-color: var(--ok); }
.li.done .chk::after { content: '✓'; }
.tag { font-size: 11px; color: var(--muted); display: block; font-weight: 400; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--ink); color: var(--bg); padding: 10px 18px; border-radius: 999px; font-size: 14px; z-index: 50; }
.congrats { background: var(--ok-l); color: var(--ok); border-radius: var(--r); padding: 16px 20px; margin: 16px 0; font-weight: 600; }

@media (max-width: 900px) {
  .course { grid-template-columns: 1fr; }
  .side { position: static; max-height: none; }
  h1 { font-size: 22px; }
  .actions .btn { flex: 1 1 140px; }
  .actions .grow { display: none; }
}

/* ---------- admin ---------- */
.admin { display: grid; gap: 20px; grid-template-columns: 360px minmax(0, 1fr); align-items: start; }
@media (max-width: 900px) { .admin { grid-template-columns: 1fr; } }
.panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 16px; }
.tree .row { display: flex; align-items: center; gap: 6px; padding: 6px 8px; border-radius: 10px; font-size: 14px; cursor: pointer; }
.tree .row:hover { background: var(--brand-l); }
.tree .row.sel { background: var(--brand-l); font-weight: 600; outline: 1.5px solid var(--brand); }
.tree .row .t { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tree .lvl1 { margin-left: 14px; } .tree .lvl2 { margin-left: 28px; }
.tree .c { font-weight: 700; margin-top: 8px; }
.ib { border: 0; background: transparent; color: var(--muted); width: 26px; height: 26px; border-radius: 8px; padding: 0; }
.ib:hover { background: var(--line); color: var(--ink); }
label.f { display: block; font-size: 13px; font-weight: 600; color: var(--muted); margin: 14px 0 4px; }
input[type=text], input[type=url], input[type=password], input[type=email], textarea { width: 100%; font: inherit; padding: 10px 12px; border-radius: 10px; border: 1.5px solid var(--line); background: var(--bg); color: var(--ink); }
input:focus, textarea:focus, select:focus { outline: 2px solid var(--brand); border-color: transparent; }
textarea { min-height: 110px; resize: vertical; }
.matrow { display: grid; grid-template-columns: 1fr 1.6fr auto; gap: 8px; margin-bottom: 8px; }
@media (max-width: 600px) { .matrow { grid-template-columns: 1fr; } }
.saved { font-size: 13px; color: var(--ok); min-height: 20px; }
.hint { font-size: 13px; color: var(--muted); }
.toolbar { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.empty { color: var(--muted); text-align: center; padding: 40px 10px; }

/* imagens */
.top .logo { display: inline-flex; align-items: center; gap: 10px; }
.top .logo img { height: 36px; width: auto; display: block; }
.ccard.hasimg { padding: 0; overflow: hidden; }
.ccard .cover { aspect-ratio: 16 / 9; width: 100%; object-fit: cover; display: block; background: var(--brand-l); }
.ccard .cbody { display: flex; flex-direction: column; gap: 10px; padding: 18px 22px 22px; flex: 1; }
.mthumb { flex: none; width: 36px; height: 51px; border-radius: 6px; object-fit: cover; background: var(--brand-l); }
details.mod > summary .mt { flex: 1; min-width: 0; }
.mhero { display: flex; gap: 14px; align-items: center; padding: 12px 16px; background: var(--brand-l); border-bottom: 1px solid var(--line); }
.mhero img { width: 54px; height: 76px; object-fit: cover; border-radius: 8px; flex: none; }
.mhero b { font-size: 14px; }
.imgrow { display: flex; gap: 12px; align-items: center; margin-top: 6px; flex-wrap: wrap; }
.imgrow img { max-height: 90px; border-radius: 8px; border: 1px solid var(--line); }

/* ---------- login / autenticação ---------- */
.authwrap { min-height: 100vh; display: grid; place-items: center; padding: 24px 16px; background: radial-gradient(1200px 500px at 50% -10%, var(--brand-l), transparent), var(--bg); }
.authcard { width: 100%; max-width: 400px; background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 32px 28px; box-shadow: var(--shadow); }
.authcard .brand { display: block; margin: 0 auto 18px; height: 64px; width: auto; }
.authcard h1 { font-size: 22px; text-align: center; margin-bottom: 4px; }
.authcard .sub { text-align: center; margin-bottom: 20px; font-size: 14px; }
.authcard .btn { width: 100%; margin-top: 18px; }
.authcard label.f { margin-top: 12px; }
.authcard .alt { display: block; text-align: center; margin-top: 16px; font-size: 14px; background: none; border: 0; color: var(--brand); text-decoration: underline; width: 100%; }
.msg { border-radius: 10px; padding: 10px 12px; font-size: 14px; margin-top: 14px; }
.msg.err { background: #fbe9e4; color: #9b3a1b; } .msg.okk { background: var(--ok-l); color: var(--ok); }
@media (prefers-color-scheme: dark) { .msg.err { background: #3d211a; color: #f0a58c; } }
.pw { position: relative; } 
.pw input { padding-right: 84px; }
.pw button { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); border: 0; background: none; color: var(--muted); padding: 8px; font-size: 13px; }

/* cursos bloqueados */
.ccard.locked { opacity: .92; }
.ccard.locked .cover { filter: grayscale(.85) brightness(.75); }
.coverbox { position: relative; }
.lock { position: absolute; top: 12px; right: 12px; background: rgba(0,0,0,.65); color: #fff; border-radius: 999px; padding: 6px 12px; font-size: 13px; font-weight: 600; }
.sechead { display: flex; align-items: baseline; justify-content: space-between; margin: 34px 0 14px; gap: 12px; flex-wrap: wrap; }
.sechead h2 { margin: 0; }
.badge { display: inline-block; font-size: 12px; font-weight: 600; padding: 2px 10px; border-radius: 999px; background: var(--brand-l); color: var(--brand-d); }
.badge.ok { background: var(--ok-l); color: var(--ok); } .badge.warn { background: #fdecd8; color: #9a5a12; } .badge.off { background: var(--line); color: var(--muted); }
.userbox { display: flex; align-items: center; gap: 4px; }
.skel { height: 180px; border-radius: var(--r); background: linear-gradient(90deg, var(--brand-l), var(--card), var(--brand-l)); background-size: 200% 100%; animation: sk 1.2s infinite; }
@keyframes sk { to { background-position: -200% 0; } }

/* ---------- admin v2 ---------- */
.tabs { display: flex; gap: 6px; border-bottom: 1px solid var(--line); margin-bottom: 20px; overflow-x: auto; }
.tabs button { border: 0; background: none; padding: 12px 16px; font-weight: 600; color: var(--muted); border-bottom: 3px solid transparent; white-space: nowrap; }
.tabs button.on { color: var(--brand-d); border-bottom-color: var(--brand); }
.tbl { width: 100%; border-collapse: collapse; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; font-size: 14px; }
.tbl th { text-align: left; font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; padding: 10px 14px; background: var(--bg); border-bottom: 1px solid var(--line); }
.tbl td { padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl tr.click { cursor: pointer; } .tbl tr.click:hover td { background: var(--brand-l); }
.tblwrap { overflow-x: auto; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { font-size: 12px; padding: 3px 10px; border-radius: 999px; background: var(--brand-l); color: var(--brand-d); white-space: nowrap; }
.chip.exp { background: #fdecd8; color: #9a5a12; }
.minibar { width: 120px; } .minibar .bar { height: 7px; }
.row2 { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 14px; }
.row2 input[type=search], .row2 select { flex: 1; min-width: 180px; max-width: 340px; padding: 10px 12px; border-radius: 10px; border: 1.5px solid var(--line); background: var(--card); color: var(--ink); font: inherit; }
dialog { border: 0; border-radius: 18px; padding: 0; width: min(560px, calc(100vw - 24px)); max-height: calc(100vh - 32px); background: var(--card); color: var(--ink); box-shadow: 0 20px 60px rgba(0,0,0,.35); }
dialog::backdrop { background: rgba(30, 15, 35, .55); }
dialog .dh { padding: 18px 22px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; position: sticky; top: 0; background: var(--card); z-index: 1; }
dialog .dh h2 { margin: 0; } dialog .db { padding: 6px 22px 22px; } dialog .df { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 20px; }
.cks { display: flex; flex-direction: column; gap: 8px; margin-top: 6px; }
.ck { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1.5px solid var(--line); border-radius: 10px; }
.ck input[type=checkbox] { width: 20px; height: 20px; accent-color: var(--brand); flex: none; }
.ck span { flex: 1; font-size: 14px; } .ck input[type=date] { font: inherit; padding: 4px 6px; border-radius: 8px; border: 1px solid var(--line); background: var(--bg); color: var(--ink); max-width: 150px; }
.linkbox { display: flex; gap: 8px; margin-top: 8px; } .linkbox input { flex: 1; font-size: 13px; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-bottom: 18px; }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px; } .stat b { display: block; font-size: 26px; color: var(--brand-d); } .stat span { font-size: 13px; color: var(--muted); }
code.k { background: var(--brand-l); padding: 2px 8px; border-radius: 6px; font-size: 13px; word-break: break-all; }
.steps { padding-left: 20px; } .steps li { margin: 6px 0; }
.dl { font-size: 14px; } .dl .ok { color: var(--ok); } .dl .no { color: var(--muted); }

/* ================= página principal v2 ================= */
.top { gap: 6px; }
.top .nav { display: flex; gap: 2px; margin-left: 18px; }
.top .nav a { font-size: 14px; font-weight: 600; color: var(--muted); text-decoration: none; padding: 8px 12px; border-radius: 999px; }
.top .nav a:hover, .top .nav a.on { color: var(--brand-d); background: var(--brand-l); }
.bellbtn { position: relative; border: 0; background: none; width: 42px; height: 42px; border-radius: 50%; color: var(--ink); display: grid; place-items: center; }
.bellbtn:hover { background: var(--brand-l); }
.bellbtn svg { width: 22px; height: 22px; }
.bellbtn .cnt { position: absolute; top: 3px; right: 2px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 99px; background: #d6455d; color: #fff; font-size: 11px; font-weight: 700; display: grid; place-items: center; border: 2px solid var(--card); }
.pop { position: fixed; top: 62px; right: 12px; width: min(400px, calc(100vw - 24px)); max-height: calc(100vh - 90px); overflow: auto; background: var(--card); border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 18px 50px rgba(40, 15, 45, .25); z-index: 40; }
.pop .ph { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: var(--card); }
.pop .ph button { border: 0; background: none; color: var(--brand); font-size: 13px; font-weight: 600; }
.nitem { display: flex; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--line); cursor: pointer; text-decoration: none; color: inherit; }
.nitem:last-child { border-bottom: 0; } .nitem:hover { background: var(--brand-l); }
.nitem .dot { flex: none; width: 10px; height: 10px; border-radius: 50%; margin-top: 6px; background: transparent; }
.nitem.new .dot { background: #d6455d; }
.nitem b { display: block; font-size: 14px; } .nitem p { margin: 2px 0 4px; font-size: 13px; color: var(--muted); white-space: pre-line; } .nitem time { font-size: 12px; color: var(--muted); }
.nitem.new b { color: var(--brand-d); }

.hero { position: relative; overflow: hidden; border-radius: 24px; padding: 34px 32px; margin-bottom: 26px; color: #fff; background: linear-gradient(135deg, #8a6487 0%, #6b4a68 55%, #4a3149 100%); display: grid; gap: 26px; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); align-items: center; box-shadow: 0 20px 50px rgba(95, 66, 96, .28); }
.hero .lotus { position: absolute; right: -60px; top: -70px; width: 420px; opacity: .1; pointer-events: none; }
.hero .eyebrow { font-size: 13px; letter-spacing: .12em; text-transform: uppercase; opacity: .8; font-weight: 600; }
.hero h1 { font-size: 34px; margin: 6px 0 8px; line-height: 1.15; }
.hero p { margin: 0 0 20px; opacity: .88; max-width: 460px; }
.pills { display: flex; flex-wrap: wrap; gap: 10px; }
.pillstat { background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .22); border-radius: 14px; padding: 10px 16px; backdrop-filter: blur(4px); min-width: 108px; }
.pillstat b { display: block; font-size: 24px; line-height: 1.1; } .pillstat span { font-size: 12px; opacity: .85; }
.cont { position: relative; display: flex; gap: 14px; align-items: center; background: var(--card); color: var(--ink); border-radius: 18px; padding: 14px; text-decoration: none; box-shadow: 0 10px 30px rgba(0,0,0,.2); }
.cont img { flex: none; width: 112px; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 12px; background: var(--brand-l); }
.cont .ph0 { flex: none; width: 112px; aspect-ratio: 16 / 10; border-radius: 12px; background: var(--brand-l); display: grid; place-items: center; font-size: 28px; }
.cont small { color: var(--brand); font-weight: 700; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
.cont b { display: block; font-size: 15px; line-height: 1.3; margin: 3px 0 8px; }
.cont .go { margin-left: auto; flex: none; width: 42px; height: 42px; border-radius: 50%; background: var(--brand); color: #fff; display: grid; place-items: center; font-size: 16px; }
.cont:hover .go { background: var(--brand-d); }
.heroempty { background: rgba(255,255,255,.13); border: 1px dashed rgba(255,255,255,.4); border-radius: 18px; padding: 20px; font-size: 14px; }
.heroempty .btn { margin-top: 12px; background: #fff; border-color: #fff; color: var(--brand-d); }

.avisos { display: grid; gap: 12px; margin-bottom: 26px; }
.aviso { display: flex; gap: 14px; align-items: flex-start; background: var(--card); border: 1px solid var(--line); border-left: 5px solid #d6455d; border-radius: 16px; padding: 16px 18px; box-shadow: var(--shadow); }
.aviso .ico2 { flex: none; width: 40px; height: 40px; border-radius: 12px; background: #fbe7ea; display: grid; place-items: center; font-size: 20px; }
@media (prefers-color-scheme: dark) { .aviso .ico2 { background: #3d2128; } }
.aviso .tx { flex: 1; min-width: 0; } .aviso b { display: block; } .aviso p { margin: 4px 0 10px; color: var(--ink); white-space: pre-line; font-size: 14px; }
.aviso time { font-size: 12px; color: var(--muted); } .aviso .acts { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

.diagbn { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; background: linear-gradient(120deg, var(--brand-l), var(--card)); border: 1.5px solid var(--brand); border-radius: 20px; padding: 22px 24px; margin-bottom: 26px; }
.diagbn .ico2 { flex: none; width: 54px; height: 54px; border-radius: 16px; background: var(--brand); color: #fff; display: grid; place-items: center; font-size: 26px; }
.diagbn .tx { flex: 1; min-width: 220px; } .diagbn h3 { margin: 0 0 4px; font-size: 18px; } .diagbn p { margin: 0; color: var(--muted); font-size: 14px; }
.diagbn.ok { border-color: var(--ok); background: linear-gradient(120deg, var(--ok-l), var(--card)); } .diagbn.ok .ico2 { background: var(--ok); }

.ccard .cbody .btn { margin-top: 4px; }
.ccard .last { font-size: 13px; color: var(--muted); display: flex; gap: 6px; }
.ccard .last b { color: var(--ink); font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chip2 { position: absolute; top: 12px; left: 12px; background: var(--ok); color: #fff; border-radius: 999px; padding: 4px 12px; font-size: 12px; font-weight: 700; }
.help { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; justify-content: space-between; margin-top: 44px; padding: 22px 24px; border-radius: 20px; background: var(--card); border: 1px solid var(--line); }
.help h3 { margin: 0 0 2px; } .help p { margin: 0; color: var(--muted); font-size: 14px; }
.foot { text-align: center; color: var(--muted); font-size: 13px; padding: 28px 0 0; }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; padding: 26px 20px; border-radius: 20px; } .hero h1 { font-size: 27px; }
  .top .nav { display: none; }
  .pillstat { flex: 1; min-width: 0; padding: 10px 12px; }
  .cont img, .cont .ph0 { width: 84px; }
}

/* ================= diagnóstico ================= */
.dwrap { max-width: 860px; margin: 0 auto; }
.dhead { margin-bottom: 20px; } .dhead .bar { margin: 14px 0 6px; }
.dsec { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 22px 24px; margin-bottom: 18px; box-shadow: var(--shadow); }
.dsec h2 { margin: 0; font-size: 18px; } .dsec .dd { color: var(--muted); font-size: 14px; margin: 2px 0 6px; }
.dq { margin-top: 18px; } .dq > label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 6px; line-height: 1.4; }
.dq .req { color: #d6455d; margin-left: 2px; } .dq .hint { margin: 4px 0 0; }
.dq.err input, .dq.err textarea { border-color: #d6455d; } .dq.err > label { color: #b73149; } .dq .errmsg { color: #b73149; font-size: 13px; margin-top: 4px; }
.dq textarea { min-height: 96px; }
.opts { display: flex; flex-wrap: wrap; gap: 8px; }
.opt { position: relative; } .opt input { position: absolute; opacity: 0; } .opt span { display: inline-block; padding: 9px 16px; border: 1.5px solid var(--line); border-radius: 999px; cursor: pointer; font-size: 14px; background: var(--bg); }
.opt input:checked + span { background: var(--brand); color: #fff; border-color: var(--brand); } .opt input:focus-visible + span { outline: 2px solid var(--brand); outline-offset: 2px; }
.dbar { position: sticky; bottom: 0; z-index: 10; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; padding: 14px 16px; margin: 0 -16px; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(8px); border-top: 1px solid var(--line); }
.dbar .grow { flex: 1; min-width: 120px; font-size: 13px; color: var(--muted); }
.done-card { text-align: center; padding: 44px 24px; background: var(--card); border: 1px solid var(--line); border-radius: 22px; }
.done-card .big { font-size: 52px; }

[hidden] { display: none !important; }

.player video { width: 100%; height: 100%; display: block; background: #000; }
.gal { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); margin: 16px 0; }
.gal a { display: block; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); background: var(--card); }
.gal img { width: 100%; height: auto; display: block; }

.lhead.semvideo { margin-top: 0; }
.lhead.semvideo h1 { font-size: 28px; }
.desc { font-size: 16px; line-height: 1.65; }

/* ---------- módulos separados ---------- */
.mhead { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.mgrid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); }
.mcard { position: relative; display: block; aspect-ratio: 3 / 4; border-radius: 18px; overflow: hidden; text-decoration: none; color: #fff; background: linear-gradient(160deg, #8a6487, #4a3149); box-shadow: var(--shadow); transition: transform .15s; }
.mcard:hover { transform: translateY(-3px); }
.mcard img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.mcard .mnum { position: absolute; inset: 0; display: grid; place-items: center; font-size: 72px; font-weight: 700; opacity: .5; }
.mcard .minfo { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 14px 14px; background: linear-gradient(transparent, rgba(30, 14, 34, .88)); display: flex; flex-direction: column; gap: 7px; }
.mcard .minfo b { font-size: 14px; line-height: 1.25; } .mcard .minfo span { font-size: 12px; opacity: .88; }
.mcard .bar { background: rgba(255, 255, 255, .28); height: 6px; } .mcard .bar > i { background: #fff; }
.mcard .bar.ok > i { background: #7ee0a4; }
.mhero { display: flex; gap: 20px; align-items: center; margin-top: 14px; padding: 20px; border-radius: 20px; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); }
.mhero img { flex: none; width: 110px; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 12px; }
.secao { padding: 14px 16px 6px; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--brand-d); background: var(--bg); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.secao:first-child { border-top: 0; }
.panel .li { border-bottom: 1px solid var(--line); } .panel .li:last-child { border-bottom: 0; }
.modtit { display: flex; gap: 10px; align-items: center; padding: 14px 16px; font-weight: 700; font-size: 14px; border-bottom: 1px solid var(--line); }
.modtit .mt { flex: 1; min-width: 0; } .modtit .n { font-weight: 400; color: var(--muted); font-size: 12px; }
@media (max-width: 600px) { .mgrid { grid-template-columns: repeat(2, 1fr); gap: 12px; } .mhero img { width: 80px; } .mhero { padding: 14px; gap: 14px; } }

/* cartão de módulo com imagem (a imagem já traz o título): imagem inteira + progresso embaixo */
.mcard.comimg { aspect-ratio: auto; display: flex; flex-direction: column; background: var(--card); color: var(--ink); border: 1px solid var(--line); }
.mcard.comimg img { position: static; height: auto; aspect-ratio: 724 / 1024; }
.mcard.comimg .minfo { position: static; background: none; padding: 12px 14px 14px; }
.mcard.comimg .minfo span { color: var(--muted); opacity: 1; }
.mcard.comimg .bar { background: var(--brand-l); } .mcard.comimg .bar > i { background: var(--brand); } .mcard.comimg .bar.ok > i { background: var(--ok); }

/* capa automática do módulo (quando não há imagem própria): fundo da marca + flor de lótus + título */
.mcard .mcover { position: relative; overflow: hidden; aspect-ratio: 724 / 1024; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; text-align: center; gap: 10px; padding: 22px 16px 34px; color: #fff; background: linear-gradient(160deg, #8a6487, #4a3149); }
.mcard .mcover.v1 { background: linear-gradient(160deg, #7b5a86, #3f2c54); } .mcard .mcover.v2 { background: linear-gradient(160deg, #94607a, #54304a); } .mcard .mcover.v3 { background: linear-gradient(160deg, #6f6490, #3a3158); }
.mcard .mcover::before { content: ''; position: absolute; left: 50%; top: 14%; width: 125%; aspect-ratio: 1; transform: translateX(-50%); opacity: .13; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200' fill='%23fff'%3E%3Cpath d='M100 20c22 28 30 58 0 100-30-42-22-72 0-100z'/%3E%3Cpath d='M100 120C70 112 36 90 28 52c34 2 60 24 72 68z'/%3E%3Cpath d='M100 120c30-8 64-30 72-68-34 2-60 24-72 68z'/%3E%3Cpath d='M100 124c-26 6-58-2-80-26 26-12 56-8 80 26z' opacity='.7'/%3E%3Cpath d='M100 124c26 6 58-2 80-26-26-12-56-8-80 26z' opacity='.7'/%3E%3Cpath d='M100 128c-10 22-32 40-60 44 6-26 28-44 60-44z' opacity='.5'/%3E%3Cpath d='M100 128c10 22 32 40 60 44-6-26-28-44-60-44z' opacity='.5'/%3E%3C/svg%3E") center / contain no-repeat; }
.mcard .mcover small, .mcard .mcover b { position: relative; }
.mcard .mcover small { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; opacity: .85; font-weight: 600; }
.mcard .mcover b { font-size: 19px; line-height: 1.2; text-transform: uppercase; letter-spacing: .02em; }

/* ---------- player da aula (Plyr) ---------- */
.pbox { --plyr-color-main: #7d5a7a; --plyr-video-background: #000; --plyr-font-family: 'Roboto', system-ui, sans-serif; --plyr-control-radius: 10px; --plyr-menu-radius: 12px; border-radius: var(--r); overflow: hidden; background: #000; box-shadow: var(--shadow); position: relative; width: 100%; }
.pbox .plyr { border-radius: var(--r); }
.pskel { aspect-ratio: 16 / 9; display: grid; place-items: center; background: linear-gradient(90deg, #2a1f2e, #3a2c40, #2a1f2e); background-size: 200% 100%; animation: sk 1.4s infinite; color: #fff; text-align: center; padding: 20px; }
.pskel.pfalha { animation: none; background: #2a1f2e; } .pskel.pfalha span { font-size: 13px; opacity: .8; }
.pfim { position: absolute; inset: 0; z-index: 5; display: grid; place-items: center; text-align: center; color: #fff; background: radial-gradient(circle at 50% 40%, #6b4a68, #2b1b2f); }
.pfim[hidden] { display: none !important; } .pfim b { font-size: 18px; } .pfim .btn { margin-top: 14px; background: #fff; border-color: #fff; color: var(--brand-d); }
.pfim-ico { width: 56px; height: 56px; margin: 0 auto 10px; border-radius: 50%; background: var(--ok); display: grid; place-items: center; font-size: 28px; }
.pbox .plyr__video-embed iframe { pointer-events: none; }
/* esconde o título (no alto) e a marca "YouTube" (embaixo) do iframe: ele fica com o dobro da altura, centralizado;
   o vídeo continua inteiro no centro e as faixas do YouTube ficam fora da área visível */
.pbox .plyr--youtube .plyr__video-embed iframe { top: -50% !important; height: 200% !important; }
.pbox .plyr--youtube .plyr__video-embed { overflow: hidden; }

/* ================= agenda, comentários, consentimento, módulos fechados ================= */
.evbn { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; background: var(--card); border: 1.5px solid var(--line); border-radius: 20px; padding: 18px 22px; margin-bottom: 26px; box-shadow: var(--shadow); }
.evbn.live { border-color: #d6455d; background: linear-gradient(120deg, #fdecee, var(--card)); }
@media (prefers-color-scheme: dark) { .evbn.live { background: linear-gradient(120deg, #3d2128, var(--card)); } }
.evbn .ico2 { flex: none; width: 50px; height: 50px; border-radius: 15px; background: var(--brand-l); display: grid; place-items: center; font-size: 24px; }
.evbn .tx { flex: 1; min-width: 200px; } .evbn small { color: var(--brand); font-weight: 700; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; } .evbn.live small { color: #d6455d; }
.evbn h3 { margin: 2px 0; font-size: 17px; } .evbn p { margin: 0; color: var(--muted); font-size: 14px; } .evbn p::first-letter { text-transform: uppercase; }
.evcard { display: flex; gap: 16px; align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 14px 18px; margin-bottom: 12px; flex-wrap: wrap; }
.evcard.live { border-color: #d6455d; }
.evdata { flex: none; width: 62px; text-align: center; background: var(--brand-l); border-radius: 14px; padding: 8px 0; color: var(--brand-d); } .evdata b { display: block; font-size: 24px; line-height: 1.1; } .evdata span { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; }
.evtx { flex: 1; min-width: 220px; } .evtx h3 { margin: 0 0 2px; font-size: 16px; } .evtx p { margin: 6px 0 0; font-size: 14px; white-space: pre-line; }
.evbt { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

.coments { margin-top: 34px; padding-top: 22px; border-top: 1px solid var(--line); }
.coments h2 { margin-bottom: 12px; }
#fCom textarea, .fResp textarea { width: 100%; font: inherit; padding: 12px 14px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--card); color: var(--ink); resize: vertical; min-height: 78px; }
.comacts { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 8px; flex-wrap: wrap; }
.com { display: flex; gap: 12px; margin: 18px 0; }
.com .av { flex: none; width: 38px; height: 38px; border-radius: 50%; background: var(--brand-l); color: var(--brand-d); display: grid; place-items: center; font-weight: 700; text-transform: uppercase; }
.com.eq .av { background: var(--brand); color: #fff; }
.com .cb { flex: 1; min-width: 0; } .com .ch { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; font-size: 14px; } .com .ch time { color: var(--muted); font-size: 12px; }
.com .ct { margin: 4px 0; white-space: pre-line; overflow-wrap: anywhere; font-size: 15px; line-height: 1.55; }
.com .ca { display: flex; gap: 14px; } .com .ca button { border: 0; background: none; color: var(--brand); font-size: 13px; font-weight: 600; padding: 2px 0; }
.com.resp { margin: 12px 0 0; padding-left: 4px; border-left: 3px solid var(--brand-l); padding: 0 0 0 12px; }
.com.eq .ct { background: var(--brand-l); padding: 10px 12px; border-radius: 12px; }
.respbox { margin-top: 8px; } .fResp { display: flex; gap: 8px; align-items: flex-end; } .fResp textarea { min-height: 54px; }

.consent { margin: 8px 0 14px; align-items: flex-start; } .consent input { margin-top: 3px; } .consent span { font-size: 13px; line-height: 1.5; }
.consent.err { border-color: #d6455d; background: #fbe9e4; } @media (prefers-color-scheme: dark) { .consent.err { background: #3d211a; } }
.mcard.trav { opacity: .75; } .mcard.trav img, .mcard.trav .mcover { filter: grayscale(.7) brightness(.75); }

/* ---------- painel: aviso 2FA, comentários, códigos de recuperação ---------- */
.aviso2fa { display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; background: #fdf3dc; color: #7a5410; border: 1px solid #f0d89a; border-radius: 14px; padding: 12px 16px; margin-bottom: 14px; font-size: 14px; }
@media (prefers-color-scheme: dark) { .aviso2fa { background: #3b3118; color: #f0d89a; border-color: #5a4a1f; } }
.combox { margin-bottom: 12px; } .resp2 { margin-top: 10px; padding: 10px 12px; border-left: 3px solid var(--line); background: var(--bg); border-radius: 0 10px 10px 0; font-size: 14px; } .resp2.eq { border-left-color: var(--brand); background: var(--brand-l); }
.respbox2 textarea { width: 100%; margin-top: 10px; }
.recup { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 8px; margin: 10px 0; } .recup code { background: var(--brand-l); padding: 8px 10px; border-radius: 8px; text-align: center; font-size: 15px; letter-spacing: .06em; font-weight: 700; }

/* ---------- caixa de mensagens por aluna ---------- */
.seg { display: inline-flex; background: var(--brand-l); border-radius: 999px; padding: 3px; } .seg button { border: 0; background: none; padding: 8px 16px; border-radius: 999px; font-weight: 600; font-size: 14px; color: var(--brand-d); } .seg button.on { background: var(--card); box-shadow: 0 1px 4px rgba(60,30,60,.18); }
.cxlista { display: flex; flex-direction: column; gap: 12px; margin-top: 14px; max-height: 58vh; overflow: auto; padding-right: 2px; }
.cxmsg { border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; background: var(--bg); } .cxmsg.nova { border-left: 4px solid #d6455d; }
.cxh { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; } .cxt { margin-top: 6px; white-space: pre-line; overflow-wrap: anywhere; font-size: 14px; line-height: 1.55; }
.cxf { display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; align-items: center; margin-top: 10px; font-size: 12px; color: var(--muted); }

/* ================= visual da aula e da lista de aulas (como no site oficial) ================= */
.course { grid-template-columns: minmax(0, 1fr) 360px; gap: 24px; }
.coluna { min-width: 0; }
.infocard { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 20px 24px; margin-top: 16px; box-shadow: var(--shadow); }
.infocard h1 { font-size: 22px; line-height: 1.25; margin: 10px 0 6px; }
.infocard .desc { font-size: 14.5px; line-height: 1.6; margin: 6px 0 12px; }
.infocard h2 { font-size: 16px; }
.pill { display: inline-block; background: var(--brand-l); color: var(--brand-d); font-weight: 600; font-size: 11.5px; letter-spacing: .05em; text-transform: uppercase; padding: 6px 14px; border-radius: 9px; }
.infocard .actions { margin-top: 14px; }
.infocard .actions .btn { min-height: 40px; padding: 8px 16px; font-size: 14px; }
.coments.infocard { border-top: 1px solid var(--line); padding-top: 20px; }

.side2 { position: sticky; top: 72px; align-self: start; max-height: calc(100vh - 92px); overflow: auto; background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 20px 18px 18px; box-shadow: var(--shadow); scrollbar-width: thin; scrollbar-color: var(--brand) transparent; }
.side2 .slabel { display: block; color: var(--brand); font-weight: 700; font-size: 11px; letter-spacing: .07em; text-transform: uppercase; }
.side2 .stitulo { font-size: 19px; line-height: 1.25; margin: 6px 0 0; }
.side2 .acento { display: block; width: 52px; height: 3px; border-radius: 3px; background: var(--brand); margin: 10px 0 4px; }
.side2 .meta { font-size: 12px; }
.alist { display: flex; flex-direction: column; gap: 9px; margin-top: 16px; }
.secao2 { margin: 8px 2px -1px; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--brand-d); }
.acard { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--card); text-decoration: none; color: var(--ink); transition: border-color .15s, box-shadow .15s; }
.acard:hover { border-color: var(--brand); box-shadow: 0 4px 12px rgba(80, 40, 80, .09); }
.acard .aic { flex: none; width: 36px; height: 36px; border-radius: 50%; background: var(--brand-l); color: var(--brand); display: grid; place-items: center; font-size: 12px; padding-left: 2px; }
.acard .atx { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.acard .atx small { color: var(--muted); font-size: 11.5px; }
.acard .atx b { font-size: 13.5px; line-height: 1.35; font-weight: 600; overflow-wrap: anywhere; }
.acard .ach { flex: none; color: var(--muted); font-size: 20px; line-height: 1; }
.acard.cur { border-color: var(--brand); background: var(--brand-l); }
.acard.cur .aic { background: var(--brand); color: #fff; }
.acard.done .aic { background: var(--ok); color: #fff; padding-left: 0; font-weight: 700; }
.acard.travado { opacity: .65; cursor: default; } .acard.travado:hover { box-shadow: none; border-color: var(--line); }
details.mod2 { border: 0; display: flex; flex-direction: column; gap: 9px; }
details.mod2 > summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 4px 2px; font-weight: 700; font-size: 13px; }
details.mod2 > summary::-webkit-details-marker { display: none; } details.mod2 > summary::after { content: '▾'; color: var(--muted); } details.mod2 > summary .mt { flex: 1; } details.mod2 > summary .n { font-weight: 400; color: var(--muted); font-size: 11.5px; }

@media (max-width: 1100px) { .course { grid-template-columns: minmax(0, 1fr) 320px; } }
@media (max-width: 900px) {
  .course { grid-template-columns: 1fr; } .side2 { position: static; max-height: none; border-radius: 16px; padding: 18px 14px; }
  .infocard { padding: 18px 16px; border-radius: 16px; } .infocard h1 { font-size: 20px; }
  .acard { padding: 10px 12px; }
}
.side2 .shead { position: sticky; top: -20px; z-index: 2; background: var(--card); margin: -20px -18px 0; padding: 20px 18px 10px; border-radius: 20px 20px 0 0; }
.side2 .shead .bar { margin: 10px 0 4px !important; }
@media (max-width: 900px) { .side2 .shead { position: static; margin: 0; padding: 0; } }

/* =====================================================================
   TEMA DELICADO — cores suaves, títulos em serifada fina, bordas finas, sombras discretas
   (fica por último de propósito: refina tudo o que vem antes)
   ===================================================================== */
:root {
  --bg: #fdfafb; --card: #ffffff; --ink: #3b3140; --muted: #8d8294; --line: #f0e7ee;
  --brand: #9a7597; --brand-d: #7a5877; --brand-l: #f8f1f7; --rosa: #f3dfe6; --lilas: #ece3f3;
  --ok: #4f9e78; --ok-l: #eaf6ef; --warn: #b8693f;
  --r: 18px; --shadow: 0 2px 18px rgba(122, 88, 119, .06);
  --serif: 'Roboto', system-ui, -apple-system, 'Segoe UI', sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #1a151d; --card: #241d28; --ink: #f1e9f2; --muted: #a99aae; --line: #382f3d; --brand: #c9a0c5; --brand-d: #e3c4df; --brand-l: #2f2535; --rosa: #3a2a34; --lilas: #2c2540; --ok: #6cc795; --ok-l: #1f3a2b; --shadow: none; }
}
body { font-weight: 400; letter-spacing: .005em; -webkit-font-smoothing: antialiased; }
h1, h2, h3, .stitulo, .stat b, .pillstat b { font-family: var(--serif); font-weight: 600; letter-spacing: .005em; color: var(--ink); }
h1 { font-size: 36px; line-height: 1.12; } h2 { font-size: 26px; line-height: 1.2; } h3 { font-size: 21px; }
.sub, .hint { color: var(--muted); } .hint { font-weight: 400; }
a { text-underline-offset: 3px; }

/* barra do topo */
.top { background: rgba(255, 255, 255, .86); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
@media (prefers-color-scheme: dark) { .top { background: rgba(36, 29, 40, .86); } }
.top .nav a { font-weight: 500; font-size: 14px; letter-spacing: .01em; }
.top a.small, .top button.small { font-weight: 400; }

/* botões */
.btn { border-width: 1px; font-weight: 500; letter-spacing: .01em; border-color: #d9c3d5; color: var(--brand-d); background: transparent; }
.btn:hover { background: var(--brand-l); border-color: var(--brand); }
.btn.primary { background: #8c6788; border-color: #8c6788; color: #fff; box-shadow: 0 6px 16px rgba(140, 103, 136, .22); }
.btn.primary:hover { background: #7a5877; border-color: #7a5877; }
.btn.done { background: var(--ok); border-color: var(--ok); color: #fff; box-shadow: none; }
.btn.danger { border-color: #e6c3b3; color: var(--warn); } .btn.danger:hover { background: #fdf3ee; }
@media (prefers-color-scheme: dark) { .btn { border-color: #55455a; } .btn.primary { background: #a07b9c; border-color: #a07b9c; } .btn.danger:hover { background: #3a2620; } }

/* campos */
input[type=text], input[type=url], input[type=password], input[type=email], textarea, select { border: 1px solid #ecdfe9; background: #fff; border-radius: 12px; font-weight: 400; }
@media (prefers-color-scheme: dark) { input[type=text], input[type=url], input[type=password], input[type=email], textarea, select { background: var(--bg); border-color: var(--line); } }
input:focus, textarea:focus, select:focus { outline: 2px solid #d9c3d5; border-color: transparent; }
label.f { font-weight: 500; font-size: 12.5px; letter-spacing: .02em; }

/* login */
.authwrap { background: radial-gradient(900px 420px at 50% -8%, #f6e9f1, transparent), radial-gradient(700px 360px at 90% 100%, #efe6f6, transparent), var(--bg); }
.authcard { border: 1px solid #f0e4ed; border-radius: 28px; padding: 38px 32px; box-shadow: 0 10px 50px rgba(122, 88, 119, .08); }
.authcard h1 { font-size: 34px; }
.authcard .sub { font-size: 14px; }

/* página inicial: faixa de boas-vindas clara */
.hero { background: linear-gradient(135deg, #fbeef3 0%, #f4eaf5 52%, #ece3f4 100%); color: var(--ink); border: 1px solid #f1e3ee; border-radius: 28px; box-shadow: 0 8px 40px rgba(154, 117, 151, .12); }
.hero .lotus { fill: #b995b5 !important; opacity: .2; }
.hero .eyebrow { color: var(--brand); opacity: 1; font-weight: 600; letter-spacing: .14em; font-size: 12px; }
.hero h1 { color: var(--ink); font-size: 46px; font-weight: 600; }
.hero p { color: var(--muted); opacity: 1; }
.pillstat { background: rgba(255, 255, 255, .72); border: 1px solid #efe1ec; backdrop-filter: none; color: var(--ink); border-radius: 16px; }
.pillstat b { font-size: 34px; color: var(--brand-d); line-height: 1; } .pillstat span { opacity: 1; color: var(--muted); }
.heroempty { background: rgba(255, 255, 255, .6); border-color: #dccbd8; color: var(--ink); } .heroempty .btn { background: #fff; color: var(--brand-d); border-color: #d9c3d5; }
.cont { box-shadow: 0 6px 26px rgba(122, 88, 119, .1); border: 1px solid #f3e8f0; }
.cont .go { background: #8c6788; }
@media (prefers-color-scheme: dark) { .hero { background: linear-gradient(135deg, #2c2231, #2a2336); border-color: #3a2f40; box-shadow: none; } .hero .lotus { fill: #8d6c89 !important; opacity: .25; } .pillstat { background: rgba(255,255,255,.06); border-color: #46394c; } }

/* cartões e blocos */
.ccard, .panel, .infocard, .side2, .stat, .evbn, .evcard, .diagbn, .help, .done-card, .dsec, .aviso, .tbl { border-color: var(--line); box-shadow: var(--shadow); }
.ccard { border-radius: 22px; } .ccard h3 { font-size: 24px; margin-bottom: 0; } .ccard p { font-size: 13.5px; }
.ccard:hover { transform: translateY(-3px); box-shadow: 0 12px 34px rgba(122, 88, 119, .12); }
.bar { height: 6px; background: #f3eaf1; } .bar > i { background: linear-gradient(90deg, #c9a6c5, #9a7597); } .bar.ok > i { background: linear-gradient(90deg, #8fcdb0, #4f9e78); }
@media (prefers-color-scheme: dark) { .bar { background: #33283a; } }
.badge { background: #f6edf5; color: var(--brand-d); font-weight: 500; } .badge.ok { background: var(--ok-l); color: var(--ok); } .badge.warn { background: #fcf0e4; color: #a9622f; } .badge.off { background: #f3eef2; color: var(--muted); }
.chip2 { background: var(--ok); font-weight: 500; }
.sechead h2 { font-size: 28px; }
.diagbn { background: linear-gradient(120deg, #fbf1f6, #fff); border-color: #ecd8e6; } .diagbn.ok { background: linear-gradient(120deg, #eef8f2, #fff); border-color: #cfe8da; }
.diagbn .ico2 { background: #b08aac; border-radius: 16px; } .diagbn.ok .ico2 { background: var(--ok); }
.aviso { border-left-width: 3px; border-left-color: #d98aa0; } .aviso .ico2 { background: #fbeaf0; }
.evbn.live { border-color: #e29aac; background: linear-gradient(120deg, #fdeef2, #fff); }
.help { border-radius: 22px; }
@media (prefers-color-scheme: dark) { .diagbn { background: linear-gradient(120deg, #2f2535, var(--card)); border-color: #473a4d; } .diagbn.ok { background: linear-gradient(120deg, #1f3a2b, var(--card)); } .evbn.live { background: linear-gradient(120deg, #3a2530, var(--card)); } .aviso .ico2 { background: #3d2128; } }

/* módulos */
.mcard { border-radius: 22px; } .mcard.comimg { border-color: var(--line); box-shadow: var(--shadow); }
.mcard .mcover { background: linear-gradient(165deg, #fbeaf1, #f0dcea); color: var(--brand-d); }
.mcard .mcover.v1 { background: linear-gradient(165deg, #f1eaf9, #e2d6f1); } .mcard .mcover.v2 { background: linear-gradient(165deg, #fdeef0, #f4d7de); } .mcard .mcover.v3 { background: linear-gradient(165deg, #eef0f9, #dbe0f1); }
.mcard .mcover::before { opacity: .6; }
.mcard .mcover small { opacity: .8; font-weight: 500; } .mcard .mcover b { font-family: var(--serif); font-size: 26px; font-weight: 600; text-transform: none; letter-spacing: 0; line-height: 1.1; }

/* aula */
.infocard { border-radius: 24px; padding: 24px 28px; } .infocard h1 { font-size: 30px; font-weight: 600; margin: 12px 0 6px; }
.pill { background: #f6edf5; color: var(--brand-d); font-weight: 500; letter-spacing: .08em; border-radius: 999px; padding: 6px 16px; font-size: 11px; }
.side2 { border-radius: 24px; } .side2 .stitulo { font-size: 26px; font-weight: 600; line-height: 1.15; } .side2 .slabel { font-weight: 500; letter-spacing: .12em; font-size: 10.5px; }
.side2 .acento { width: 44px; height: 2px; background: linear-gradient(90deg, #c9a6c5, #9a7597); }
.acard { border-color: #f1e7ee; border-radius: 16px; } .acard:hover { box-shadow: 0 6px 20px rgba(122, 88, 119, .1); }
.acard .aic { background: #f6edf5; color: var(--brand); } .acard .atx b { font-weight: 500; }
.acard.cur { background: #faf2f8; border-color: #cfaecb; } .acard.cur .aic { background: #8c6788; }
.acard.done .aic { background: #5aa883; }
.secao2 { font-weight: 500; letter-spacing: .12em; color: var(--brand); font-size: 10.5px; }
details.mod2 > summary { font-weight: 600; }
@media (prefers-color-scheme: dark) { .acard { border-color: var(--line); } .acard.cur { background: var(--brand-l); border-color: var(--brand); } .acard .aic { background: var(--brand-l); } .pill { background: var(--brand-l); } }
.pbox { --plyr-color-main: #9a7597; border-radius: 22px; box-shadow: 0 8px 36px rgba(122, 88, 119, .14); } .pbox .plyr { border-radius: 22px; }
.congrats { background: var(--ok-l); color: var(--ok); font-weight: 500; border-radius: 16px; }
.mat { border-radius: 14px; border-color: var(--line); } .mat:hover { border-color: #cfaecb; }

/* painel da administradora */
.tabs { border-bottom: 1px solid var(--line); } .tabs button { font-weight: 500; font-size: 14px; } .tabs button.on { color: var(--brand-d); border-bottom: 2px solid var(--brand); }
.tbl { border-radius: 18px; box-shadow: var(--shadow); } .tbl th { font-weight: 500; letter-spacing: .08em; background: #fcf8fb; font-size: 11px; } .tbl td { border-bottom-color: #f6eef4; }
.tbl tr.click:hover td { background: #fbf5fa; }
.stat b { font-size: 34px; font-weight: 600; color: var(--brand-d); } .stat { border-radius: 18px; }
.chip { background: #f6edf5; color: var(--brand-d); } .chip.exp { background: #fcf0e4; color: #a9622f; }
.seg { background: #f6edf5; } .seg button { font-weight: 500; }
dialog { border-radius: 24px; box-shadow: 0 24px 80px rgba(60, 30, 60, .22); } dialog .dh h2 { font-size: 24px; }
.cxmsg { border-radius: 16px; } .cxmsg.nova { border-left-color: #d98aa0; }
.aviso2fa { border-radius: 16px; }
.toast { background: #4a3a4f; color: #fff; font-weight: 400; }
.tag { font-weight: 400; }
h1, h2, h3, .stitulo, .stat b, .pillstat b, .mcover b, .evdata b { font-variant-numeric: lining-nums; font-feature-settings: 'lnum' 1; }

/* ================= fonte Roboto (títulos mais finos e tamanhos ajustados) ================= */
body { font-family: 'Roboto', system-ui, -apple-system, 'Segoe UI', sans-serif; letter-spacing: 0; }
h1, h2, h3, .stitulo, .stat b, .pillstat b { font-weight: 500; letter-spacing: -.005em; }
h1 { font-size: 30px; } h2 { font-size: 22px; } h3 { font-size: 18px; }
.hero h1 { font-size: 38px; font-weight: 400; } .hero .eyebrow { letter-spacing: .12em; }
.pillstat b { font-size: 28px; font-weight: 400; } .stat b { font-size: 28px; font-weight: 400; }
.authcard h1 { font-size: 28px; } .sechead h2 { font-size: 22px; } dialog .dh h2 { font-size: 20px; }
.ccard h3 { font-size: 19px; } .infocard h1 { font-size: 26px; font-weight: 500; } .infocard h2 { font-size: 17px; }
.side2 .stitulo { font-size: 21px; font-weight: 500; }
.mcard .mcover b { font-size: 19px; font-weight: 500; letter-spacing: .01em; }
.evdata b { font-weight: 500; }
.acard .atx b { font-weight: 400; font-size: 14px; } .acard .atx small { font-size: 12px; }
.btn { font-weight: 500; } .pill { font-weight: 500; } label.f { font-weight: 500; }
.tbl th { font-weight: 500; }
.hint, .sub, .meta { font-weight: 400; }
b, strong { font-weight: 500; }
@media (max-width: 900px) { h1 { font-size: 26px; } .hero h1 { font-size: 30px; } .infocard h1 { font-size: 22px; } }

/* Rota personalizada (cartão de destaque na página inicial) */
.rotabn{display:flex;align-items:center;gap:16px;padding:18px 20px;margin:0 0 16px;border:1px solid var(--line);border-radius:16px;background:linear-gradient(135deg,var(--brand-l),var(--card));text-decoration:none;color:inherit;box-shadow:0 6px 24px -14px rgba(122,88,119,.35)}
.rotabn .ico2{font-size:26px}
.rotabn .tx{flex:1;min-width:0}
.rotabn small{font-size:12px;color:var(--brand-d);font-weight:500;letter-spacing:.02em}
.rotabn h3{margin:2px 0 4px;font-size:18px;font-weight:500}
.rotabn p{margin:0 0 8px;font-size:13px;color:var(--muted)}
.rotabn .bar{max-width:320px}
@media (max-width:640px){.rotabn{flex-wrap:wrap}.rotabn .btn{width:100%;text-align:center}}

/* Minha rota (plano da mentorada) */
.rhead{margin:14px 0 18px;padding:22px;border:1px solid var(--line);border-radius:16px;background:linear-gradient(135deg,var(--brand-l),var(--card))}
.rhead small{font-size:12px;color:var(--brand-d);font-weight:500;letter-spacing:.04em;text-transform:uppercase}
.rhead h1{margin:4px 0 6px;font-size:24px;font-weight:300}
.rhead p{margin:0 0 12px;color:var(--muted);font-size:14px}
.rsec{margin:0 0 14px;padding:18px 20px;border:1px solid var(--line);border-radius:16px;background:var(--card)}
.rsec header{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:6px}
.rsec h2{margin:0;font-size:15px;font-weight:500;letter-spacing:.03em;text-transform:uppercase;color:var(--brand-d)}
.rdesc{margin:4px 0 10px;font-size:14px;color:var(--muted)}
.ritens{display:flex;flex-direction:column;gap:6px;margin-top:8px}
.ritem{display:flex;align-items:flex-start;gap:10px;padding:10px 12px;border:1px solid var(--line);border-radius:12px;cursor:pointer;font-size:14px;transition:background .15s}
.ritem:hover{background:var(--brand-l)}
.ritem input{margin-top:3px;accent-color:var(--brand)}
.ritem .rtx{flex:1}
.ritem.on{background:var(--brand-l)}
.ritem.on .rtx{text-decoration:line-through;color:var(--muted)}
.rpz{font-size:12px;padding:2px 9px;border-radius:99px;border:1px solid var(--line);color:var(--muted);white-space:nowrap}
.rpz.late{border-color:#d9a3a3;color:#a14b4b;background:#fbf0f0}
.rpz.ok{border-color:#a9cdb4;color:#3f7a54;background:#f0f8f2}

.rmapa{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:10px;margin:0 0 18px}
.rmapa a{display:flex;flex-direction:column;gap:4px;padding:16px;border-radius:16px;background:var(--brand);color:#fff;text-decoration:none;min-height:110px}
.rmapa b{font-size:13px;font-weight:500;letter-spacing:.05em;text-transform:uppercase}
.rmapa span{font-size:12px;opacity:.85;font-weight:300;flex:1}
.rmapa em{font-size:12px;font-style:normal;opacity:.9}
.rtemas{margin:6px 0 10px;font-size:14px}
.rtemas summary{cursor:pointer;color:var(--brand-d);font-weight:500}
.rtemas ul{margin:8px 0 0;padding-left:20px;color:var(--muted)}
.rtemas li{margin:3px 0}

.rhead.comcapa{padding:0;overflow:hidden}
.rhead.comcapa>*:not(.rcapa){margin-left:22px;margin-right:22px}
.rhead.comcapa small{display:block;margin-top:18px}
.rhead.comcapa>:last-child{margin-bottom:22px}
.rcapa{display:block;width:100%;max-height:280px;object-fit:cover}
.rbloco h2{margin:0 0 6px;font-size:20px;font-weight:300;text-transform:none;letter-spacing:0;color:var(--ink)}
.rgal{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:10px;margin:12px 0}
.rgal img{width:100%;height:170px;object-fit:cover;border-radius:12px;border:1px solid var(--line)}
.rdiag dt{margin-top:10px;font-size:13px;color:var(--muted)}
.rdiag dd{margin:2px 0 0;font-size:14px}

/* ================= Tema moderno (paleta do material da Bruna: chocolate, ameixa e off-white) ================= */
:root {
  --bg: #f7f4f5; --card: #ffffff; --ink: #2a1f1b; --muted: #7d7078; --line: #e8e1e4;
  --brand: #7b6177; --brand-d: #5b4458; --brand-l: #efe9ee; --choc: #2e211c; --choc-2: #3d2d27;
  --r: 20px; --shadow: 0 1px 2px rgba(46, 33, 28, .04), 0 12px 32px -18px rgba(46, 33, 28, .22);
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #17110f; --card: #211915; --ink: #f4eeea; --muted: #b3a5a9; --line: #35292a; --brand: #b497b0; --brand-d: #d6bfd3; --brand-l: #32262f; --choc: #120d0b; --choc-2: #2a1e19; --shadow: none; }
}
body { background: var(--bg); }
h1, h2, h3 { letter-spacing: -.01em; }
.top { background: rgba(255, 255, 255, .85); backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid var(--line); padding: 10px 20px; }
@media (prefers-color-scheme: dark) { .top { background: rgba(33, 25, 21, .85); } }
.top .nav a { font-weight: 500; color: var(--muted); border-radius: 12px; }
.top .nav a:hover { background: var(--brand-l); color: var(--ink); }
.top .nav a.on { background: var(--choc); color: #fff; }
.btn { border-radius: 14px; font-weight: 500; border-width: 1px; border-color: var(--line); color: var(--ink); background: var(--card); }
.btn:hover { background: var(--brand-l); border-color: var(--brand); }
.btn.primary { background: var(--choc); border-color: var(--choc); color: #fff; }
.btn.primary:hover { background: var(--brand-d); border-color: var(--brand-d); }
.btn.sm { border-radius: 12px; }
.hero { background: radial-gradient(120% 140% at 100% 0%, #5b4458 0%, rgba(91, 68, 88, 0) 55%), linear-gradient(160deg, #3d2d27 0%, #2e211c 70%); border-radius: 28px; box-shadow: 0 30px 60px -30px rgba(46, 33, 28, .6); }
.hero .lotus { opacity: .07; }
.hero h1 { font-weight: 300; letter-spacing: -.02em; }
.hero .pillstat { background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .12); border-radius: 16px; }
.hero .btn.primary, .hero .go { background: #fff; color: var(--choc); border-color: #fff; }
.ccard { border-radius: var(--r); box-shadow: none; border: 1px solid var(--line); transition: transform .2s, box-shadow .2s, border-color .2s; }
.ccard:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--brand); }
.ccard.hasimg .cover { aspect-ratio: 16 / 9; }
.ccard .ico { background: var(--brand); color: #fff; border-radius: 14px; }
.ccard h3 { font-weight: 500; }
.bar { height: 6px; background: var(--line); }
.bar i { background: var(--brand); border-radius: 99px; }
.bar.ok i { background: var(--ok); }
.chip2 { border-radius: 10px; backdrop-filter: blur(8px); }
.panel { border-radius: var(--r); border-color: var(--line); box-shadow: none; }
.aviso, .evbn, .diagbn, .help { border-radius: var(--r); box-shadow: none; }
.help { background: var(--choc); color: #fff; border: 0; }
.help p { color: rgba(255, 255, 255, .75); }
.help .btn.primary { background: #fff; color: var(--choc); border-color: #fff; }
.sechead h2 { font-size: 20px; font-weight: 500; }

/* rota da mentorada: cartões ameixa e cabeçalho chocolate, como no material do Canva */
.rotabn { background: var(--choc); color: #fff; border: 0; border-radius: 24px; padding: 22px 26px; box-shadow: 0 24px 50px -28px rgba(46, 33, 28, .7); }
.rotabn small { color: #d9c4d6; }
.rotabn h3 { font-weight: 300; font-size: 22px; letter-spacing: -.01em; }
.rotabn p { color: rgba(255, 255, 255, .7); }
.rotabn .bar { background: rgba(255, 255, 255, .15); }
.rotabn .bar i { background: #d9c4d6; }
.rotabn .btn.primary { background: #fff; color: var(--choc); border-color: #fff; }
.rhead { background: var(--choc); color: #fff; border: 0; border-radius: 28px; padding: 30px 32px; }
.rhead.comcapa { padding: 0; }
.rhead small { color: #d9c4d6; }
.rhead h1 { font-weight: 300; font-size: 32px; letter-spacing: -.02em; color: #fff; }
.rhead p { color: rgba(255, 255, 255, .78); }
.rhead .bar { background: rgba(255, 255, 255, .15); }
.rhead .bar i { background: #d9c4d6; }
.rhead .meta { color: rgba(255, 255, 255, .7); }
.rhead .btn { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .35); }
.rmapa { gap: 12px; }
.rmapa a { background: var(--brand); border-radius: 22px; padding: 20px; min-height: 140px; transition: transform .2s, background .2s; }
.rmapa a:hover { transform: translateY(-3px); background: var(--brand-d); }
.rmapa b { font-weight: 500; font-size: 12px; letter-spacing: .08em; }
.rsec { border-radius: 22px; padding: 22px 24px; border-color: var(--line); }
.rsec h2 { color: var(--ink); font-weight: 500; font-size: 13px; letter-spacing: .1em; }
.ritem { border-radius: 14px; border-color: var(--line); }
.ritem:hover, .ritem.on { background: var(--brand-l); }
.ritem input { accent-color: var(--choc); width: 18px; height: 18px; }
.rtemas summary { color: var(--brand-d); }

/* aula */
.infocard, .side2, .pbox { border-radius: var(--r); }
.infocard { box-shadow: none; }

/* login */
.authcard { border-radius: 28px; box-shadow: var(--shadow); border: 1px solid var(--line); }
.authwrap { background: radial-gradient(90% 60% at 80% 0%, #e9dfe7 0%, rgba(233, 223, 231, 0) 60%), var(--bg); }

/* painel */
.tabs button { border-radius: 12px; font-weight: 500; }
.tabs button.on { background: var(--choc); color: #fff; border-color: var(--choc); }
.tb th { font-weight: 500; text-transform: uppercase; font-size: 11px; letter-spacing: .08em; color: var(--muted); }
.hero, .hero h1, .hero h2, .hero b { color: #fff; }
.hero p, .hero .pillstat span { color: rgba(255, 255, 255, .72); }
.hero .eyebrow { color: #d9c4d6; }
.hero .pillstat b { color: #fff; }
.hero .cont { background: #fff; color: var(--choc); }
.hero .cont b { color: var(--choc); }
.hero .cont small, .hero .cont .meta { color: var(--muted); }
.rotabn h3, .rotabn .tx h3 { color: #fff; }
.hero .heroempty { color: #fff; }

/* ===== Minha rota: versão 2 (layout de app) ===== */
.dwrap.rota{max-width:1080px}
.rhead{padding:0;overflow:hidden;background:linear-gradient(160deg,var(--choc-2),var(--choc) 70%)}
.rhin{padding:30px 34px}
.rhead.comcapa .rhin{margin:0}
.rhead.comcapa>*:not(.rcapa){margin-left:0;margin-right:0}
.rhead.comcapa small{margin-top:0}
.rhead.comcapa>:last-child{margin-bottom:0}
.rtop{display:flex;justify-content:space-between;align-items:center;gap:20px}
.rhead h1{margin:6px 0 0;font-size:34px}
.rhead .rhin>p{max-width:62ch;margin:14px 0 4px;font-size:15px;line-height:1.6}
.rring{--p:0;flex:none;width:92px;height:92px;border-radius:50%;display:grid;place-content:center;text-align:center;background:radial-gradient(closest-side,var(--choc) 78%,transparent 80%),conic-gradient(#d9c4d6 calc(var(--p)*1%),rgba(255,255,255,.14) 0)}
.rring b{font-size:22px;font-weight:500;color:#fff;line-height:1}
.rring span{font-size:11px;color:rgba(255,255,255,.65);margin-top:3px}
.rbtns{display:flex;flex-wrap:wrap;gap:12px;align-items:stretch;margin-top:20px}
.rbtns>span{flex:1;min-width:260px}
.rbtns .btn{align-self:center}
.rprox{display:flex;flex-direction:column;gap:3px;padding:14px 18px;border-radius:16px;background:rgba(255,255,255,.1);border:1px solid rgba(255,255,255,.16);text-decoration:none;color:#fff;transition:background .2s}
a.rprox:hover{background:rgba(255,255,255,.17)}
.rprox small{font-size:11px;letter-spacing:.1em;text-transform:uppercase;color:#d9c4d6}
.rprox b{font-weight:400;font-size:16px;line-height:1.35}
.rprox span{font-size:12px;color:rgba(255,255,255,.7)}
.rprox.ok{background:rgba(120,200,150,.14);border-color:rgba(120,200,150,.3)}
.rmapa{grid-template-columns:repeat(3,1fr);gap:14px;margin:0 0 22px}
.rmapa a{min-height:170px;padding:22px;gap:6px;position:relative;overflow:hidden}
.rmapa .rn{font-style:normal;font-size:30px;font-weight:200;opacity:.5;line-height:1;margin-bottom:4px}
.rmapa b{font-size:13px}
.rmapa u{text-decoration:none;font-size:12px;opacity:.9}
.rmapa .rmini{background:rgba(255,255,255,.2);margin:8px 0 2px}
.rmapa .rmini i{background:#fff}
.rmapa a.feito{background:#5d7b69}
.rmapa a.feito::after{content:'✓';position:absolute;top:16px;right:20px;font-size:20px}
.rmini{height:4px;border-radius:99px;background:var(--line);overflow:hidden}
.rmini i{display:block;height:100%;background:var(--brand);border-radius:99px;transition:width .4s}
.rsec{padding:26px 28px;margin:0 0 16px}
.rsec>header{display:flex;align-items:flex-start;gap:16px;margin:0 0 12px}
.rnum{flex:none;width:42px;height:42px;border-radius:14px;background:var(--brand);color:#fff;display:grid;place-items:center;font-size:15px;font-weight:300;letter-spacing:.04em}
.rsec.feito .rnum{background:#5d7b69}
.rtt{flex:1;min-width:0}
.rsec h2{font-size:15px;letter-spacing:.07em;line-height:1.3;margin:2px 0 3px}
.rtt p{margin:0;font-size:14px;color:var(--muted)}
.rside{display:flex;align-items:center;gap:8px;flex:none}
.rcount{font-size:13px;font-weight:500;color:var(--brand-d);min-width:34px;text-align:right}
.rsec .rmini{margin:0 0 14px}
.ritem{padding:13px 16px;transition:background .2s,border-color .2s,box-shadow .2s}
.ritem.pulse{border-color:var(--brand);box-shadow:0 0 0 4px var(--brand-l)}
.rbloco{background:var(--card)}
.rbloco h2{font-size:22px;font-weight:300;letter-spacing:-.01em;text-transform:none}
@media (max-width:820px){.rmapa{grid-template-columns:repeat(2,1fr)}.rhin{padding:22px}.rhead h1{font-size:26px}.rring{width:76px;height:76px}.rsec{padding:20px 18px}.rsec>header{flex-wrap:wrap}.rside{width:100%;justify-content:flex-end}}
@media (max-width:480px){.rmapa{grid-template-columns:1fr}.rmapa a{min-height:0}}

/* lista de aulas: mais respiro entre os botões (margem em vez de gap, que alguns navegadores ignoram dentro de <details>) */
.acard { margin: 0 0 14px; padding: 14px 16px; gap: 14px; }
.acard:last-child { margin-bottom: 4px; }
.alist { gap: 0; }
details.mod2 { gap: 0; margin-bottom: 8px; }
details.mod2 > summary { padding: 8px 2px 12px; }
.secao2 { margin: 18px 2px 12px; }
.acard.cur { box-shadow: 0 0 0 3px var(--brand-l); }

/* cabeçalho do módulo: maior e com cara de botão, para mostrar que abre mais conteúdo */
details.mod2 { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 6px 12px 6px; margin-bottom: 14px; transition: border-color .2s, box-shadow .2s; }
details.mod2[open] { border-color: var(--brand); box-shadow: var(--shadow); padding-bottom: 12px; }
details.mod2 > summary { padding: 16px 6px; gap: 12px; font-size: 16px; align-items: center; border-radius: 14px; }
details.mod2 > summary:hover { background: var(--brand-l); }
details.mod2 > summary::after { content: none !important; }
details.mod2 > summary .mt { display: flex; flex-direction: column; gap: 3px; flex: 1; min-width: 0; }
details.mod2 > summary .mt b { font-size: 16px; font-weight: 600; line-height: 1.3; }
details.mod2 > summary .mt small { font-size: 12.5px; color: var(--muted); font-weight: 400; }
.mbar { display: block; height: 4px; border-radius: 99px; background: var(--line); overflow: hidden; margin-top: 6px; max-width: 220px; }
.mbar u { display: block; height: 100%; background: var(--brand); text-decoration: none; border-radius: 99px; }
details.mod2 > summary .n { flex: none; font-size: 13px; font-weight: 500; padding: 4px 10px; border-radius: 99px; background: var(--brand-l); color: var(--brand-d); }
details.mod2 > summary .chev { flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--choc); color: #fff; font-size: 14px; transition: transform .2s; }
details.mod2[open] > summary .chev { transform: rotate(180deg); }
details.mod2 > .acard:first-of-type { margin-top: 6px; }

/* cabeçalho do módulo: mais margem interna */
details.mod2 { padding: 10px 14px; }
details.mod2[open] { padding-bottom: 16px; }
details.mod2 > summary { padding: 20px 20px 20px 22px; gap: 16px; }
details.mod2 > summary .mt { gap: 6px; }
details.mod2 > summary .mbar { margin-top: 10px; }
details.mod2 > summary .chev { width: 38px; height: 38px; font-size: 16px; }
details.mod2 > .acard:first-of-type { margin-top: 10px; }
details.mod2 > .acard { margin-left: 4px; margin-right: 4px; }

/* ===== margens: espaçamento consistente em todo o site ===== */
.wrap { padding: 32px 28px 72px; }
.dwrap { padding: 0 4px; }
.tabs { margin-bottom: 28px; gap: 8px; }
.row2 { gap: 12px; margin-bottom: 20px; }
.panel { padding: 24px; }
.panel.empty, .empty { padding: 36px 24px; }
.tblwrap { margin: 14px 0 28px; border-radius: 18px; }
.tbl th { padding: 14px 20px; }
.tbl td { padding: 16px 20px; }
#v-agenda h2, #v-comentarios h2, #v-diag h2, #v-rotas h2 { margin: 22px 0 6px; }
#v-agenda > .row2 + h2 { margin-top: 24px; }
.sechead { margin: 36px 0 18px; }
.grid { gap: 22px; }
.aviso, .evbn, .diagbn, .help, .rotabn { margin-bottom: 22px; }
.hero { margin-bottom: 32px; padding: 40px 38px; }
.infocard { padding: 26px 28px; }
.side2 { padding: 24px 22px; }
.authcard { padding: 36px 32px; }
label.f { margin-top: 16px; margin-bottom: 6px; }
.btn + .btn { margin-left: 4px; }
.cks { gap: 10px; }
dialog .db, dialog .dh { padding-left: 26px; padding-right: 26px; }
@media (max-width: 640px) {
  .wrap { padding: 20px 16px 56px; }
  .panel { padding: 18px; }
  .hero { padding: 28px 22px; }
  .tbl th, .tbl td { padding: 12px 14px; }
  .infocard { padding: 20px; }
  .authcard { padding: 28px 22px; }
}

/* material em texto */
.matbox { display: flex; flex-direction: column; gap: 6px; }
.mattxt { border: 1px solid var(--line); border-radius: 14px; background: var(--card); padding: 4px 16px; }
.mattxt summary { cursor: pointer; padding: 12px 0; font-weight: 500; color: var(--brand-d); }
.mattxtc { padding: 4px 0 16px; font-size: 15px; line-height: 1.7; max-height: 60vh; overflow: auto; }
.mattxtc p { margin: 0 0 12px; }
details.mtxt { grid-column: 1 / -1; margin-top: 6px; }
details.mtxt summary { cursor: pointer; font-size: 13px; color: var(--muted); }
.matrow { flex-wrap: wrap; }

/* módulo em destaque (A base da liberdade): ocupa a linha toda, com imagem maior */
.mcard.destaque { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(240px, 380px) 1fr; align-items: stretch; background: var(--choc); color: #fff; border: 0; border-radius: 28px; box-shadow: 0 30px 60px -34px rgba(46, 33, 28, .7); }
.mcard.destaque img, .mcard.destaque .mcover { aspect-ratio: auto; height: 100%; min-height: 380px; object-fit: cover; object-position: center top; }
.mdest { display: flex; flex-direction: column; justify-content: center; gap: 12px; padding: 44px 48px; }
.mtag { align-self: flex-start; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; padding: 6px 12px; border-radius: 99px; background: rgba(255, 255, 255, .14); color: #e6d3e3; }
.mdest h2 { margin: 6px 0 0; font-size: 38px; font-weight: 300; letter-spacing: -.02em; line-height: 1.1; color: #fff; text-transform: none; }
.mdest p { margin: 0; max-width: 46ch; color: rgba(255, 255, 255, .75); font-size: 16px; line-height: 1.6; }
.mdest .bar { background: rgba(255, 255, 255, .18); max-width: 380px; margin-top: 8px; } .mdest .bar > i { background: #d9c4d6; }
.mdest .mq { font-size: 13px; color: rgba(255, 255, 255, .7); }
.mdest .btn { align-self: flex-start; margin-top: 8px; background: #fff; color: var(--choc); border-color: #fff; }
.mcard.destaque:hover { transform: translateY(-3px); }
@media (max-width: 760px) { .mcard.destaque { grid-template-columns: 1fr; } .mcard.destaque img { min-height: 0; aspect-ratio: 4 / 5; max-height: 460px; } .mdest { padding: 26px 22px 30px; } .mdest h2 { font-size: 30px; } }

/* convite para ativar os avisos */
.pushbn { display: flex; align-items: center; gap: 14px; padding: 16px 20px; margin: 0 0 22px; border: 1px solid var(--line); border-radius: 20px; background: var(--card); }
.pushbn .ico2 { font-size: 24px; }
.pushbn .tx { flex: 1; min-width: 0; } .pushbn b { font-weight: 500; } .pushbn p { margin: 2px 0 0; font-size: 13px; color: var(--muted); }
@media (max-width: 640px) { .pushbn { flex-wrap: wrap; } .pushbn .tx { flex-basis: 100%; } }

/* capas dos cursos: proporção 16:9 igual ao arquivo original, sem cortar o texto da imagem */
.ccard .coverbox { aspect-ratio: 16 / 9; overflow: hidden; background: var(--brand-l); }
.ccard .coverbox .cover, .ccard.hasimg .cover { aspect-ratio: 16 / 9; width: 100%; height: 100%; object-fit: cover; object-position: center; }

/* rodapé: suporte técnico e crédito Evollue */
footer.evo { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px 28px; padding: 26px 20px 34px; margin-top: 12px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; text-align: center; }
footer.evo a { color: var(--muted); text-decoration: none; }
footer.evo a:hover { color: var(--ink); }
footer.evo .evo-ajuda { text-decoration: underline; text-underline-offset: 3px; }
footer.evo .evo-credito { display: inline-flex; align-items: center; gap: 8px; }
footer.evo img { display: block; height: 18px; width: auto; opacity: .9; }
footer.evo img.escuro { display: none; }
@media (prefers-color-scheme: dark) { footer.evo img.claro { display: none; } footer.evo img.escuro { display: block; } }
.authwrap { min-height: calc(100vh - 90px); }
.suporte-card { max-width: 560px; }
.suporte-card textarea { min-height: 150px; }
.suporte-card .hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

.authcard select, .suporte-card select { width: 100%; min-height: 46px; padding: 10px 14px; border-radius: 14px; border: 1px solid var(--line); background: var(--card); color: var(--ink); font: inherit; }

.btn.voltar { align-self: flex-start; margin: 0 0 14px; }
.suporte-card .voltar { display: inline-flex; }
.authcard .btn.voltar, .suporte-card .btn.voltar { width: fit-content; display: inline-flex; margin: 0 auto 10px 0; }

/* "Precisa de ajuda?": título legível sobre o fundo escuro e tudo alinhado */
.help { align-items: center; padding: 26px 32px; gap: 20px 28px; margin-top: 48px; }
.help > div { display: flex; flex-direction: column; gap: 4px; text-align: left; flex: 1 1 320px; }
.help h3 { margin: 0; color: #fff; font-size: 20px; font-weight: 500; line-height: 1.2; }
.help p { margin: 0; color: rgba(255, 255, 255, .78); font-size: 15px; line-height: 1.5; }
.help .btn { flex: none; align-self: center; margin: 0; }
@media (max-width: 640px) { .help { padding: 22px 20px; } .help .btn { width: 100%; } }

/* cartão "Comece por aqui / Continue de onde parou" (na faixa de boas-vindas) */
.cont { flex-direction: column; align-items: stretch; gap: 0; padding: 0; overflow: hidden; border-radius: 22px; border: 0; box-shadow: 0 24px 50px -24px rgba(0, 0, 0, .6); transition: transform .2s, box-shadow .2s; }
.cont:hover { transform: translateY(-3px); box-shadow: 0 30px 60px -24px rgba(0, 0, 0, .7); }
.cont img, .cont .ph0 { width: 100%; aspect-ratio: 16 / 9; border-radius: 0; object-fit: cover; }
.cont .ctxt { min-width: 0; padding: 18px 22px 6px; }
.cont small { color: var(--brand-d); font-size: 11px; font-weight: 600; letter-spacing: .14em; }
.cont b { font-size: 22px; font-weight: 500; line-height: 1.2; letter-spacing: -.01em; margin: 6px 0 10px; color: var(--choc); }
.cont .meta { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; color: var(--muted); }
.cont .bar { background: var(--line); } .cont .bar > i { background: var(--brand); }
.cont .cta { margin: 14px 22px 22px; display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; border-radius: 14px; background: var(--choc); color: #fff; font-weight: 500; font-size: 15px; transition: background .2s; }
.cont .cta i { font-style: normal; font-size: 11px; }
.cont:hover .cta { background: var(--brand-d); }
.hero .cont b { color: var(--choc); }
@media (max-width: 760px) { .cont img, .cont .ph0 { width: 100%; } .cont b { font-size: 19px; } }
