/* Wise Academy — tema escuro com o laranja da WiseChats (#F5904D / #EF5B06) e Plus Jakarta Sans. */
:root{
  --bg:#0c0c0e; --side:#101013; --panel:#151518; --panel2:#1b1b20; --line:#24242a; --line2:#303038;
  --ink:#f4f2ef; --ink2:#d4d1cb; --muted:#9a968f; --faint:#6f6c67;
  --or:#F5904D; --or2:#EF5B06; --or-hi:#F7A269; --or-rgb:245,144,77; --on-or:#1F0F04;
  --r:14px; --side-w:252px;
  color-scheme:dark;
}
*{ box-sizing:border-box }
html,body{ margin:0; background:var(--bg); color:var(--ink) }
body{ font:15px/1.55 "Plus Jakarta Sans",system-ui,-apple-system,"Segoe UI",sans-serif; -webkit-font-smoothing:antialiased }
a{ color:inherit; text-decoration:none }
button,input{ font:inherit; color:inherit }
[hidden]{ display:none !important }
h1,h2,h3{ letter-spacing:-.015em }
.muted{ color:var(--muted) } .small{ font-size:13px } .or{ color:var(--or) }
.mono{ font-family:ui-monospace,SFMono-Regular,Consolas,monospace; font-size:12.5px }
.boot{ color:var(--muted); text-align:center; padding:80px 16px }
.ic{ width:18px; height:18px; flex:none; fill:none; stroke:currentColor; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round }
.ic.fill{ fill:currentColor; stroke:none }
::selection{ background:rgba(var(--or-rgb),.35) }

/* ── Botões e campos ── */
.btn{ display:inline-flex; align-items:center; justify-content:center; gap:8px; height:44px; padding:0 20px; border-radius:12px; border:1px solid var(--line2);
  background:var(--panel2); font-weight:600; font-size:14.5px; cursor:pointer; white-space:nowrap; transition:background .15s,border-color .15s,color .15s }
.btn:hover{ border-color:#45454f }
.btn.primary{ background:var(--or); border-color:var(--or); color:var(--on-or) }
.btn.primary:hover{ background:var(--or-hi); border-color:var(--or-hi) }
.btn.ghost{ background:transparent; border-color:transparent; color:var(--ink2) }
.btn.ghost:hover{ color:#fff; background:var(--panel2) }
.btn.done{ background:rgba(var(--or-rgb),.14); border-color:rgba(var(--or-rgb),.6); color:var(--or) }
.btn.lg{ height:50px; padding:0 26px; font-size:15.5px }
.btn.sm{ height:36px; padding:0 14px; font-size:13.5px; border-radius:10px }
.btn.block{ width:100% }
.btn:disabled{ opacity:.6; cursor:default }
.btn .ic{ width:17px; height:17px }
.link{ background:none; border:0; padding:0; color:var(--or); cursor:pointer; text-decoration:underline }
.icon-btn{ position:relative; display:grid; place-items:center; width:38px; height:38px; flex:none; border-radius:10px; background:transparent;
  border:1px solid var(--line); cursor:pointer; color:var(--ink2); transition:border-color .15s,color .15s }
.icon-btn:hover,.icon-btn.on{ border-color:var(--line2); color:#fff; background:var(--panel) }
.form{ display:flex; flex-direction:column; gap:14px }
.form label{ display:flex; flex-direction:column; gap:7px; font-size:13.5px; font-weight:600; color:var(--ink2) }
.form.row{ flex-direction:row; align-items:flex-end; flex-wrap:wrap }
.form.row label{ flex:1 1 240px }
.input{ width:100%; height:46px; padding:0 14px; background:var(--bg); border:1px solid var(--line2); border-radius:11px; color:var(--ink); font-weight:400; outline:0 }
.input:focus{ border-color:var(--or); box-shadow:0 0 0 3px rgba(var(--or-rgb),.18) }
.msg{ margin-top:14px; padding:11px 14px; border-radius:11px; background:rgba(60,207,122,.1); border:1px solid rgba(60,207,122,.3); color:#9be8bb; font-size:14px }
.msg.err{ background:rgba(239,91,6,.1); border-color:rgba(239,91,6,.4); color:#ffbc96 }
.tag{ display:inline-flex; align-items:center; font-size:12px; font-weight:600; padding:4px 11px; border-radius:99px; border:1px solid var(--line2); color:var(--ink2) }
.tag.or{ border-color:rgba(var(--or-rgb),.55); color:var(--or); background:rgba(var(--or-rgb),.08) }
.kicker{ font-size:11.5px; letter-spacing:.14em; text-transform:uppercase; color:var(--or); font-weight:700 }
.bar{ height:4px; background:var(--line2); border-radius:99px; overflow:hidden }
.bar i{ display:block; height:100%; background:var(--or); border-radius:inherit }
.empty{ padding:28px; border:1px dashed var(--line2); border-radius:var(--r); color:var(--muted); text-align:center }
.loading{ height:3px; width:120px; margin:80px auto; border-radius:99px; background:linear-gradient(90deg,transparent,var(--or),transparent); background-size:200% 100%; animation:load 1s linear infinite }
@keyframes load{ to{ background-position:-200% 0 } }

/* ── Estrutura: menu lateral + topo ── */
.shell{ display:grid; grid-template-columns:var(--side-w) minmax(0,1fr); min-height:100vh }
.side{ position:sticky; top:0; height:100vh; display:flex; flex-direction:column; background:var(--side); border-right:1px solid var(--line); overflow:hidden auto }
.side-top{ display:flex; align-items:center; height:68px; padding:0 22px; border-bottom:1px solid var(--line); flex:none }
.side-logo{ display:flex; align-items:center }
.side-logo .full{ height:30px; width:auto; display:block; font-size:18px }
.side-logo .mark{ display:none; width:34px; height:34px; border-radius:50% }
.side-nav{ display:flex; flex-direction:column; gap:2px; padding:12px }
.side-h{ margin:20px 12px 8px; font-size:11px; font-weight:700; letter-spacing:.16em; text-transform:uppercase; color:var(--faint) }
.side-h:first-child{ margin-top:8px }
.side-nav a{ position:relative; display:flex; align-items:center; gap:12px; padding:10px 12px; border-radius:11px; border:1px solid transparent; color:var(--ink2); font-size:14.5px; font-weight:500; white-space:nowrap }
.side-nav a:hover{ background:var(--panel); color:#fff }
.side-nav a.on{ background:var(--panel2); border-color:var(--line2); color:#fff; font-weight:600 }
.side-nav a.on::before{ content:""; position:absolute; left:-13px; top:9px; bottom:9px; width:3px; border-radius:0 3px 3px 0; background:var(--or) }
.side-nav a.on .ic{ color:var(--or) }
.side-count{ margin-left:auto; font-style:normal; font-size:12px; font-weight:600; color:var(--muted); background:var(--panel2); border:1px solid var(--line); padding:0 8px; border-radius:99px }
.side-count:empty{ display:none }
.side-foot{ margin-top:auto; display:flex; align-items:center; gap:6px; padding:12px; border-top:1px solid var(--line); flex:none }
.side-user{ flex:1; min-width:0; display:flex; align-items:center; gap:11px; padding:8px; border-radius:12px; border:1px solid transparent }
.side-user:hover{ background:var(--panel) }
.side-user.on{ background:var(--panel2); border-color:var(--line2) }
.side-user-txt{ min-width:0; display:flex; flex-direction:column; line-height:1.25 }
.side-user-txt b{ font-size:14px; font-weight:600; color:#fff; overflow:hidden; text-overflow:ellipsis; white-space:nowrap }
.side-user-txt small{ font-size:12px; color:var(--faint); overflow:hidden; text-overflow:ellipsis; white-space:nowrap }
.side-out{ flex:none }
@media (min-width:901px){
  .shell.collapsed{ --side-w:76px }
  .collapsed .side-top{ padding:0; justify-content:center }
  .collapsed .side-logo .full{ display:none }
  .collapsed .side-logo .mark{ display:block }
  .collapsed .side-nav a{ justify-content:center; padding:11px 0 }
  .collapsed .side-nav span,.collapsed .side-count,.collapsed .side-user-txt,.collapsed .side-out{ display:none }
  .collapsed .side-foot{ justify-content:center; padding:12px 0 }
  .collapsed .side-user{ flex:none; padding:4px }
  .collapsed .side-h{ height:1px; margin:14px 10px; background:var(--line); font-size:0 }
}
.main{ min-width:0; display:flex; flex-direction:column }
.top{ position:sticky; top:0; z-index:30; display:flex; align-items:center; gap:14px; height:68px; padding:0 clamp(16px,3vw,32px);
  background:rgba(12,12,14,.86); backdrop-filter:blur(12px); -webkit-backdrop-filter:blur(12px); border-bottom:1px solid var(--line) }
.crumbs{ display:flex; align-items:center; gap:8px; min-width:0; font-size:14px; color:var(--muted); white-space:nowrap; overflow:hidden }
.crumbs a:hover{ color:#fff }
.crumbs .sep{ color:var(--faint) }
.crumbs b{ color:#fff; font-weight:600; overflow:hidden; text-overflow:ellipsis }
.top-right{ margin-left:auto; display:flex; align-items:center; gap:10px; flex:none }
.user{ display:flex; align-items:center; gap:10px; padding:4px 10px 4px 4px; border-radius:99px; font-size:14px; font-weight:600 }
.user:hover{ background:var(--panel) }
.avatar{ display:grid; place-items:center; width:32px; height:32px; border-radius:50%; background:var(--or); color:var(--on-or); font-size:12.5px; font-weight:800; flex:none }
.avatar.lg{ width:52px; height:52px; font-size:18px }
.view{ width:100%; max-width:1240px; margin:0 auto; padding:clamp(24px,4vw,48px) clamp(16px,4vw,56px) 96px }
.view.wide{ max-width:1520px }
.scrim{ display:none }

/* ── Sininho ── */
.bell-wrap{ position:relative }
.bell-n{ position:absolute; top:-6px; right:-6px; min-width:18px; height:18px; padding:0 5px; border-radius:99px; background:var(--or); color:var(--on-or); font-size:11px; font-weight:800; display:grid; place-items:center }
.bell-pop{ position:absolute; right:0; top:48px; width:min(360px,calc(100vw - 32px)); max-height:70vh; overflow:auto; background:var(--panel); border:1px solid var(--line2); border-radius:16px; box-shadow:0 24px 60px rgba(0,0,0,.55); z-index:40 }
.bell-h{ display:flex; justify-content:space-between; align-items:center; padding:14px 18px; border-bottom:1px solid var(--line) }
.bell-h small{ color:var(--or); font-weight:600 }
.bell-it{ padding:14px 18px; border-bottom:1px solid var(--line); font-size:14px }
.bell-it:last-child{ border-bottom:0 }
.bell-it.new{ background:rgba(var(--or-rgb),.06) }
.bell-it img{ width:100%; border-radius:10px; margin-bottom:10px }
.bell-it p{ margin:4px 0 8px; color:var(--muted) }
.bell-it time{ display:block; font-size:12px; color:var(--faint); margin-top:6px }
.bell-btn{ display:inline-flex; align-items:center; gap:4px; color:var(--or); font-weight:600; font-size:13.5px }
.bell-btn .ic{ width:15px; height:15px }
.bell-empty{ padding:24px 18px; color:var(--muted); text-align:center; margin:0 }

/* ── Cabeçalhos e seções ── */
.hello h1,.page-h h1{ margin:0 0 10px; font-size:clamp(30px,4vw,44px); line-height:1.1; font-weight:800 }
.page-h h1{ font-size:clamp(26px,3.2vw,36px) }
.hl{ color:var(--or) }
.lead{ margin:0; max-width:680px; color:var(--muted); font-size:16px }
.sec{ margin-top:48px }
.sec-h{ display:flex; align-items:baseline; justify-content:space-between; gap:12px; margin-bottom:16px }
.sec-h h2{ margin:0; font-size:19px; font-weight:700 }
.sec-link{ display:inline-flex; align-items:center; gap:4px; font-size:13.5px; font-weight:600; color:var(--or) }
.sec-link .ic{ width:15px; height:15px }
.sec-note{ font-size:12px; letter-spacing:.12em; text-transform:uppercase; color:var(--faint) }
.back{ display:inline-flex; align-items:center; gap:6px; color:var(--muted); font-size:14px; font-weight:500 }
.back:hover{ color:#fff }

/* ── Continuar de onde parou ── */
.resume{ display:grid; grid-template-columns:minmax(0,1.05fr) minmax(0,1fr); margin-top:32px; background:var(--panel); border:1px solid var(--line); border-radius:18px; overflow:hidden; transition:border-color .2s }
.resume:hover{ border-color:rgba(var(--or-rgb),.5) }
.resume-img{ position:relative; aspect-ratio:16/9; background:#1d1d22 center/cover }
.play-btn{ position:absolute; left:50%; top:50%; transform:translate(-50%,-50%); display:grid; place-items:center; width:62px; height:62px; border-radius:50%;
  background:rgba(12,12,14,.6); border:1px solid rgba(255,255,255,.25); backdrop-filter:blur(6px); color:#fff; transition:transform .2s,background .2s }
.play-btn .ic{ width:24px; height:24px; margin-left:3px }
.resume:hover .play-btn{ transform:translate(-50%,-50%) scale(1.06); background:var(--or); color:var(--on-or); border-color:var(--or) }
.bar.flat{ position:absolute; left:0; right:0; bottom:0; height:4px; border-radius:0; background:rgba(255,255,255,.15) }
.resume-body{ display:flex; flex-direction:column; justify-content:center; align-items:flex-start; gap:6px; padding:clamp(22px,3vw,36px) }
.resume-body h3{ margin:2px 0 16px; font-size:clamp(20px,2.2vw,26px); line-height:1.25 }

/* ── Cards de curso ── */
.grid{ display:grid; grid-template-columns:repeat(auto-fill,minmax(260px,1fr)); gap:18px }
.card{ display:flex; flex-direction:column; background:var(--panel); border:1px solid var(--line); border-radius:var(--r); overflow:hidden; transition:border-color .2s,transform .2s }
.card:hover{ border-color:rgba(var(--or-rgb),.5); transform:translateY(-2px) }
.card-img{ position:relative; aspect-ratio:16/9; background:#1d1d22 center/cover }
.card.locked .card-img{ filter:saturate(.45) brightness(.7) }
.badge{ position:absolute; top:12px; left:12px; padding:4px 10px; border-radius:99px; background:rgba(12,12,14,.78); border:1px solid rgba(var(--or-rgb),.6);
  color:var(--or); font-size:11px; font-weight:700; letter-spacing:.08em; text-transform:uppercase }
.card-lock{ position:absolute; top:12px; right:12px; display:grid; place-items:center; width:32px; height:32px; border-radius:50%; background:rgba(12,12,14,.78); color:#fff }
.card-lock .ic{ width:15px; height:15px }
.card-body{ display:flex; flex-direction:column; gap:6px; flex:1; padding:16px 18px 18px }
.card-meta{ font-size:11.5px; font-weight:600; letter-spacing:.1em; text-transform:uppercase; color:var(--faint) }
.card h3{ margin:0; font-size:17px; line-height:1.3 }
.card p{ margin:0; color:var(--muted); font-size:14px; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden }
.card-prog{ margin-top:auto; padding-top:12px }
.card-foot{ display:flex; justify-content:space-between; align-items:center; margin-top:10px; font-size:13px; color:var(--muted) }
.card-foot .or{ display:inline-flex; align-items:center; gap:3px; font-weight:600 }
.card-foot .ic{ width:15px; height:15px }

/* ── Materiais ── */
.mats{ display:flex; flex-direction:column; gap:10px }
.mat{ display:grid; grid-template-columns:42px minmax(0,1fr) auto; gap:14px; align-items:center; padding:14px 16px; background:var(--panel); border:1px solid var(--line); border-radius:13px; transition:border-color .15s }
.mat:hover{ border-color:var(--line2) }
.mat-ic{ display:grid; place-items:center; width:42px; height:42px; border-radius:11px; background:rgba(var(--or-rgb),.12); color:var(--or) }
.mat-txt{ min-width:0 }
.mat-txt b{ display:block; font-size:14.5px; font-weight:600 }
.mat-txt p{ margin:2px 0 0; font-size:13px; color:var(--muted); white-space:nowrap; overflow:hidden; text-overflow:ellipsis }
.mat-src{ display:block; margin-top:4px; font-size:12.5px; color:var(--faint) }
.mat-src a{ color:var(--ink2); text-decoration:underline; text-decoration-color:var(--line2) }
.mat-src a:hover{ color:var(--or) }
.filters{ display:flex; flex-direction:column; gap:14px; margin:28px 0 20px }
.search{ display:flex; align-items:center; gap:10px; max-width:520px; height:46px; padding:0 14px; background:var(--panel); border:1px solid var(--line2); border-radius:12px; color:var(--muted) }
.search:focus-within{ border-color:var(--or) }
.search input{ flex:1; min-width:0; background:none; border:0; outline:0; color:var(--ink) }
.chips{ display:flex; flex-wrap:wrap; gap:8px }
.chip{ height:36px; padding:0 15px; border-radius:99px; border:1px solid var(--line2); background:none; color:var(--ink2); font-size:13.5px; font-weight:500; cursor:pointer }
.chip:hover{ border-color:#45454f; color:#fff }
.chip.on{ background:rgba(var(--or-rgb),.14); border-color:rgba(var(--or-rgb),.6); color:var(--or) }

/* ── Página do curso ── */
.course-head{ display:grid; grid-template-columns:minmax(0,1.25fr) minmax(0,1fr); gap:clamp(24px,4vw,56px); align-items:center; margin-top:24px }
.tags{ display:flex; flex-wrap:wrap; gap:8px; margin-bottom:16px }
.course-head h1{ margin:0 0 12px; font-size:clamp(28px,3.4vw,42px); line-height:1.12; font-weight:800 }
.course-sub{ margin:0 0 12px; font-size:17px; color:var(--ink2) }
.course-desc{ color:var(--muted); font-size:15px }
.course-meta{ display:flex; flex-wrap:wrap; gap:8px 20px; margin:6px 0 26px; font-size:14px; color:var(--muted) }
.course-meta span{ display:inline-flex; align-items:center; gap:7px }
.course-meta .ic{ width:16px; height:16px; color:var(--faint) }
.course-cover{ aspect-ratio:16/10; border-radius:18px; border:1px solid var(--line); background:#1d1d22 center/cover }
.module{ background:var(--panel); border:1px solid var(--line); border-radius:var(--r); overflow:hidden; margin-bottom:14px }
.module-h{ display:flex; align-items:center; gap:12px; padding:16px 20px; background:var(--panel2); border-bottom:1px solid var(--line) }
.module-n{ font-family:ui-monospace,SFMono-Regular,Consolas,monospace; font-size:12px; color:var(--faint) }
.module-h b{ font-size:15px }
.module-h small{ margin-left:auto; color:var(--muted); font-size:13px }
.lrow{ display:grid; grid-template-columns:132px minmax(0,1fr) auto; gap:18px; align-items:center; padding:14px 20px; border-top:1px solid var(--line); transition:background .15s }
.module-h + .lrow{ border-top:0 }
a.lrow:hover{ background:var(--panel2) }
.lrow.off{ opacity:.55 }
.lrow-img{ position:relative; aspect-ratio:16/9; border-radius:9px; background:#1d1d22 center/cover; overflow:hidden }
.lrow-kind{ position:absolute; inset:0; display:grid; place-items:center; background:rgba(0,0,0,.25); color:#fff }
.lrow-kind .ic{ width:20px; height:20px }
.lrow-txt b{ display:block; font-size:15px; font-weight:600 }
.lrow-txt p{ margin:3px 0 0; font-size:13.5px; color:var(--muted); white-space:nowrap; overflow:hidden; text-overflow:ellipsis }
.lrow-st{ display:inline-flex; align-items:center; gap:6px; font-size:12.5px; color:var(--muted); white-space:nowrap }
.lrow-st .ic{ width:15px; height:15px }
.lrow-st.done{ color:var(--or); font-weight:600 }
.lrow-st.wait{ color:var(--faint) }
.outcomes{ margin-top:40px; padding:28px 30px; background:var(--panel); border:1px solid var(--line); border-radius:18px }
.outcomes h2{ margin:0 0 18px; font-size:19px }
.outcomes ul{ display:grid; grid-template-columns:repeat(auto-fit,minmax(260px,1fr)); gap:12px 28px; margin:0; padding:0; list-style:none }
.outcomes li{ display:flex; gap:10px; align-items:flex-start; color:var(--ink2) }
.outcomes li .ic{ margin-top:2px; color:var(--or) }

/* ── Aula ── */
.lesson{ display:grid; grid-template-columns:minmax(0,1fr) 340px; gap:32px; align-items:start }
.lesson.no-track{ grid-template-columns:minmax(0,1fr) }
.lesson.no-track .lesson-track{ display:none }
.lesson.no-track .lesson-main{ max-width:1040px; width:100%; margin:0 auto }
.lesson-top{ display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom:16px }
.player{ position:relative; aspect-ratio:16/9; background:#000; border:1px solid var(--line); border-radius:16px; overflow:hidden }
.player iframe{ position:absolute; inset:0; width:100%; height:100%; border:0 }
.player-wait{ position:absolute; inset:0; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:6px; padding:24px; text-align:center;
  background:radial-gradient(circle at 72% 28%,rgba(var(--or-rgb),.2),transparent 60%),#0a0a0c; color:var(--ink2) }
.player-wait .ic{ width:34px; height:34px; color:var(--or); margin-bottom:6px }
.player-wait b{ font-size:18px; color:#fff }
.player-wait small{ color:var(--muted); font-size:14px }
.lesson-meta{ display:flex; justify-content:space-between; align-items:center; margin:16px 0 20px; color:var(--muted) }
.counter{ font-family:ui-monospace,SFMono-Regular,Consolas,monospace; font-size:12.5px; padding:4px 11px; border:1px solid var(--line2); border-radius:99px; color:var(--ink2) }
.lesson-main h1{ margin:14px 0 10px; font-size:clamp(24px,2.7vw,34px); line-height:1.15; font-weight:800 }
.tabs{ display:flex; gap:4px; margin:28px 0 24px; border-bottom:1px solid var(--line) }
.tabs button{ display:inline-flex; align-items:center; gap:8px; margin-bottom:-1px; padding:12px 14px; background:none; border:0; border-bottom:2px solid transparent; color:var(--muted); font-size:14px; font-weight:600; cursor:pointer }
.tabs button:hover{ color:#fff }
.tabs button.on{ color:#fff; border-color:var(--or) }
.tabs .ic{ width:16px; height:16px }
.tabs em{ font-style:normal; font-size:11px; font-weight:700; padding:1px 7px; border-radius:99px; background:rgba(var(--or-rgb),.16); color:var(--or) }
.lesson-nav{ display:flex; align-items:center; gap:10px; flex-wrap:wrap; margin-top:40px; padding-top:24px; border-top:1px solid var(--line) }
.spacer{ flex:1 }
.lesson-track{ position:sticky; top:92px; max-height:calc(100vh - 116px); overflow:auto; background:var(--panel); border:1px solid var(--line); border-radius:var(--r) }
.track-h{ display:flex; flex-direction:column; gap:6px; padding:18px 20px; border-bottom:1px solid var(--line) }
.track-h b{ font-size:15.5px; line-height:1.3; margin-bottom:6px }
.track-h small{ color:var(--muted); font-size:12.5px }
.track-mh{ display:flex; align-items:center; gap:10px; width:100%; padding:14px 20px 10px; background:none; border:0; cursor:pointer; text-align:left }
.track-mh b{ flex:1; font-size:12px; font-weight:700; letter-spacing:.1em; text-transform:uppercase; color:var(--ink2) }
.track-mh .ic{ width:16px; height:16px; color:var(--faint); transition:transform .2s }
.track-mod.closed .track-mh .ic{ transform:rotate(-90deg) }
.track-mod.closed ol{ display:none }
.track-mod ol{ list-style:none; margin:0; padding:0 10px 10px }
.track-mod li a,.track-mod li .a{ display:grid; grid-template-columns:20px minmax(0,1fr) auto; gap:10px; align-items:center; padding:9px 10px; border:1px solid transparent; border-radius:10px; font-size:13.5px; color:var(--ink2) }
.track-mod li a:hover{ background:var(--panel2) }
.track-mod li.on a{ background:rgba(var(--or-rgb),.1); border-color:rgba(var(--or-rgb),.45); color:#fff; font-weight:600 }
.track-mod li.done:not(.on) .t{ color:var(--muted) }
.track-mod li.off .a{ opacity:.5 }
.track-mod .t{ overflow:hidden; text-overflow:ellipsis; white-space:nowrap }
.track-mod small{ font-family:ui-monospace,SFMono-Regular,Consolas,monospace; font-size:11.5px; color:var(--faint) }
.st-ic{ display:grid; place-items:center; width:20px; height:20px; border-radius:50%; border:1.5px solid var(--line2); color:var(--muted) }
.st-ic .ic{ width:11px; height:11px }
.st-ic.done{ background:var(--or); border-color:var(--or); color:var(--on-or) }
.st-ic.done .ic{ stroke-width:3 }

/* ── Texto das aulas (Markdown) ── */
.prose{ color:var(--ink2); font-size:15.5px; line-height:1.72 }
.prose > :first-child{ margin-top:0 }
.prose p{ margin:0 0 14px }
.prose h2{ margin:32px 0 12px; font-size:21px; color:#fff }
.prose h3{ margin:24px 0 10px; font-size:17px; color:#fff }
.prose ul,.prose ol{ margin:0 0 16px; padding-left:22px }
.prose li{ margin:5px 0 }
.prose li::marker{ color:var(--or) }
.prose strong{ color:#fff }
.prose a{ color:var(--or); text-decoration:underline; text-underline-offset:2px }
.prose code{ padding:1px 6px; border-radius:6px; background:var(--panel2); border:1px solid var(--line2); font:.88em ui-monospace,SFMono-Regular,Consolas,monospace }
.prose blockquote{ margin:0 0 16px; padding:6px 0 6px 18px; border-left:3px solid var(--or); color:var(--ink2); font-style:italic }
.code{ position:relative; margin:0 0 18px; background:#09090b; border:1px solid var(--line2); border-radius:12px }
.code pre{ margin:0; padding:16px 18px; padding-right:90px; overflow-x:auto; font:13px/1.65 ui-monospace,SFMono-Regular,Consolas,monospace; color:#e9e6e1; white-space:pre-wrap }
.copy{ position:absolute; top:9px; right:9px; padding:5px 11px; border-radius:8px; background:var(--panel2); border:1px solid var(--line2); color:var(--ink2); font-size:12px; font-weight:600; cursor:pointer }
.copy:hover{ color:#fff; border-color:#45454f }

/* ── Minha conta ── */
.box{ margin-bottom:16px; padding:24px 26px; background:var(--panel); border:1px solid var(--line); border-radius:var(--r) }
.box h2{ margin:0 0 6px; font-size:17px }
.box .form{ margin-top:16px }
.who{ display:flex; align-items:center; gap:16px }
.table{ overflow-x:auto; margin-top:12px }
table{ width:100%; border-collapse:collapse; font-size:14px }
th{ text-align:left; font-size:12px; letter-spacing:.08em; text-transform:uppercase; color:var(--faint); font-weight:600; padding:0 14px 10px 0 }
td{ padding:12px 14px 12px 0; border-top:1px solid var(--line) }

/* ── Login ── */
.auth{ min-height:100vh; display:grid; place-items:center; padding:32px 16px;
  background:radial-gradient(ellipse at 50% -10%,rgba(var(--or-rgb),.18),transparent 60%),var(--bg) }
.auth-form{ width:100%; max-width:420px; display:flex; flex-direction:column; padding:40px 36px 32px; background:var(--side);
  border:1px solid var(--line); border-radius:20px; box-shadow:0 30px 80px rgba(0,0,0,.45) }
.auth-logo{ width:190px; height:auto; margin:0 auto 32px; display:block }
.auth-name{ display:block; margin:0 auto 32px; font-size:22px; text-align:center }
.auth-form h1{ margin:0 0 8px; font-size:24px; font-weight:800; text-align:center }
.auth-form .lead{ margin:0 auto 26px; font-size:14.5px; text-align:center }
.pw-wrap{ position:relative; display:block }
.pw-wrap .input{ padding-right:46px }
.pw-eye{ position:absolute; right:6px; top:50%; transform:translateY(-50%); display:grid; place-items:center; width:36px; height:36px; border:0; border-radius:8px; background:none; color:var(--muted); cursor:pointer }
.pw-eye:hover,.pw-eye.on{ color:var(--or) }
.auth-form .btn.primary{ margin-top:6px; height:48px }
.auth-alt{ margin-top:22px; font-size:14px }
.auth-alt summary{ cursor:pointer; color:var(--ink2); font-weight:600 }
.auth-alt summary:hover{ color:var(--or) }
.auth-alt .form{ margin-top:12px }

/* ── Telas menores ── */
@media (max-width:1100px){
  .lesson,.lesson.no-track{ grid-template-columns:minmax(0,1fr) }
  .lesson .lesson-track,.lesson.no-track .lesson-track{ display:block; position:static; max-height:none }
  #track-toggle{ display:none }
}
@media (max-width:900px){
  .shell{ grid-template-columns:minmax(0,1fr) }
  .side{ position:fixed; z-index:50; top:0; bottom:0; left:0; width:272px; height:auto; transform:translateX(-100%); transition:transform .25s; box-shadow:20px 0 60px rgba(0,0,0,.5) }
  .menu-open .side{ transform:none }
  .scrim{ position:fixed; inset:0; z-index:45; background:rgba(0,0,0,.6) }
  .menu-open .scrim{ display:block }
  .course-head{ grid-template-columns:minmax(0,1fr) }
  .course-cover{ order:-1 }
  .resume{ grid-template-columns:minmax(0,1fr) }
  .auth-form{ padding:32px 22px 26px }
}
@media (max-width:640px){
  .top{ height:60px; gap:10px }
  .user-name{ display:none }
  .user{ padding:0 }
  .crumbs{ font-size:13px }
  .crumbs a,.crumbs .sep{ display:none }
  .lrow{ grid-template-columns:96px minmax(0,1fr); gap:12px; padding:12px 14px }
  .lrow-st{ grid-column:2 }
  .lrow-txt p{ white-space:normal; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical }
  .module-h{ padding:14px }
  .mat{ grid-template-columns:38px minmax(0,1fr); gap:12px }
  .mat-ic{ width:38px; height:38px }
  .mat .btn,.mat > .muted{ grid-column:2; justify-self:start }
  .lesson-nav .btn{ flex:1 }
  .lesson-nav .spacer{ display:none }
  .outcomes,.box{ padding:22px 18px }
}
@media (prefers-reduced-motion:reduce){ *{ transition:none !important; animation:none !important } }

/* ── Cadastro gratuito ── */
.auth-switch{ margin:22px 0 0; text-align:center; font-size:14px; color:var(--muted) }
.auth-switch .link{ font-weight:600; text-decoration:none }
.auth-switch .link:hover{ text-decoration:underline }
.form label.check{ flex-direction:row; align-items:flex-start; gap:10px; font-weight:400; font-size:13px; color:var(--muted); line-height:1.5 }
.form label.check input{ width:18px; height:18px; margin:1px 0 0; flex:none; accent-color:var(--or) }
.form label.check a{ color:var(--or) }
.form label .small{ font-weight:400 }

/* ── Biblioteca ── */
.side-new{ margin-left:auto; font-style:normal; font-size:10px; font-weight:700; letter-spacing:.08em; text-transform:uppercase; color:var(--or); border:1px solid rgba(var(--or-rgb),.55); padding:1px 7px; border-radius:99px }
.collapsed .side-new{ display:none }
.lib-hero h1{ margin:0 0 14px; font-size:clamp(32px,4.4vw,52px); line-height:1.05; font-weight:800; letter-spacing:-.025em }
.lib-hero .lead{ max-width:620px }
.lib-search{ margin:30px 0 18px; max-width:560px }
.lib-tabs{ display:flex; flex-wrap:wrap; gap:8px }
.lib-tabs button{ display:inline-flex; align-items:center; gap:8px; height:40px; padding:0 15px; border-radius:11px; border:1px solid var(--line2); background:var(--panel); color:var(--ink2); font-size:14px; font-weight:600; cursor:pointer }
.lib-tabs button:hover{ color:#fff; border-color:#45454f }
.lib-tabs button.on{ background:var(--or); border-color:var(--or); color:var(--on-or) }
.lib-tabs .ic{ width:16px; height:16px }
.lib-tabs em{ font-style:normal; font-size:11.5px; font-weight:700; opacity:.7 }
.lib-topics{ margin-top:14px }
.lib-topics .chip{ height:32px; font-size:13px }
.lib-n{ margin:20px 0 14px; font-size:12.5px; color:var(--faint) }
.lib-grid{ display:grid; grid-template-columns:repeat(auto-fill,minmax(270px,1fr)); gap:16px }
.lib-card{ display:flex; flex-direction:column; gap:8px; padding:18px 18px 16px; background:var(--panel); border:1px solid var(--line); border-radius:var(--r); transition:border-color .2s,transform .2s }
.lib-card:hover{ border-color:rgba(var(--or-rgb),.5); transform:translateY(-2px) }
.lib-top{ display:flex; align-items:center; gap:10px; margin-bottom:6px }
.lib-ic{ display:grid; place-items:center; width:36px; height:36px; border-radius:10px; background:rgba(var(--or-rgb),.12); color:var(--or) }
.lib-type{ font-size:11.5px; font-weight:700; letter-spacing:.12em; text-transform:uppercase; color:var(--ink2) }
.lib-topic{ margin-left:auto; font-size:12px; color:var(--muted); border:1px solid var(--line2); padding:2px 9px; border-radius:99px }
.lib-lock{ margin-left:auto; color:var(--muted) }
.lib-lock .ic{ width:16px; height:16px }
.lib-card h3{ margin:0; font-size:16.5px; line-height:1.3 }
.lib-card p{ margin:0; color:var(--muted); font-size:13.5px; line-height:1.5; display:-webkit-box; -webkit-line-clamp:3; -webkit-box-orient:vertical; overflow:hidden }
.lib-foot{ display:flex; justify-content:space-between; align-items:center; gap:10px; margin-top:auto; padding-top:12px; font-size:12.5px; color:var(--faint) }
.lib-foot .or{ display:inline-flex; align-items:center; gap:3px; font-weight:600; white-space:nowrap }
.lib-foot .ic{ width:15px; height:15px }
.lib-card.locked{ opacity:.75 }
.no-scroll{ overflow:hidden }
.lib-modal{ position:fixed; inset:0; z-index:60; display:flex; justify-content:center; align-items:flex-start; padding:5vh 16px; background:rgba(0,0,0,.7); backdrop-filter:blur(4px); overflow-y:auto }
.lib-panel{ position:relative; width:100%; max-width:860px; padding:30px clamp(18px,3vw,36px) 28px; background:var(--side); border:1px solid var(--line2); border-radius:20px; box-shadow:0 30px 90px rgba(0,0,0,.6) }
.lib-x{ position:absolute; top:16px; right:16px }
.lib-panel .tags{ padding-right:48px }
.lib-panel .tag .ic{ width:14px; height:14px; margin-right:5px }
.lib-panel h2{ margin:0 0 8px; font-size:clamp(22px,2.6vw,28px); line-height:1.2 }
.lib-when{ margin:22px 0; padding:16px 18px; background:var(--panel); border:1px solid var(--line); border-radius:13px; font-size:14.5px }
.lib-when .kicker{ display:block; margin-bottom:8px }
.lib-when > :last-child{ margin-bottom:0 }
.lib-k{ display:block; margin:24px 0 10px }
.lib-code pre{ max-height:420px; overflow:auto }
mark.var{ background:rgba(var(--or-rgb),.16); color:var(--or-hi); border-radius:4px; padding:0 2px }
.lib-tip{ margin:-8px 0 0 }
.lib-guide{ margin-top:26px; font-size:15px }
.lib-ex{ margin-top:18px; border:1px solid var(--line); border-radius:13px; background:var(--panel) }
.lib-ex summary{ padding:14px 18px; cursor:pointer; font-weight:600; color:var(--ink2) }
.lib-ex summary:hover{ color:var(--or) }
.lib-ex .prose{ padding:0 18px 16px; font-size:14.5px }
.lib-dl{ display:grid; grid-template-columns:42px minmax(0,1fr) auto; gap:14px; align-items:center; margin:22px 0; padding:14px 16px; background:rgba(var(--or-rgb),.07); border:1px solid rgba(var(--or-rgb),.35); border-radius:13px }
.lib-dl p{ margin:2px 0 0 }
.lib-locked{ display:grid; grid-template-columns:auto minmax(0,1fr) auto; gap:16px; align-items:center; margin-top:22px; padding:18px; background:var(--panel); border:1px solid var(--line2); border-radius:13px }
.lib-locked > .ic{ width:24px; height:24px; color:var(--or) }
.lib-locked p{ margin:2px 0 0 }
.lib-meta{ display:flex; justify-content:space-between; align-items:center; gap:12px; flex-wrap:wrap; margin-top:28px; padding-top:18px; border-top:1px solid var(--line) }
.lib-meta .sec-link .ic{ width:16px; height:16px }
@media (max-width:640px){
  .lib-modal{ padding:0 }
  .lib-panel{ min-height:100%; border-radius:0; border:0 }
  .lib-dl,.lib-locked{ grid-template-columns:minmax(0,1fr) }
  .lib-dl .mat-ic,.lib-locked > .ic{ display:none }
}

/* ── Vitrine pública da biblioteca ── */
.pub{ min-height:100vh; background:radial-gradient(ellipse at 50% -20%,rgba(var(--or-rgb),.14),transparent 55%),var(--bg) }
.pub-top{ position:sticky; top:0; z-index:30; display:flex; align-items:center; justify-content:space-between; gap:12px; height:68px; padding:0 clamp(16px,4vw,56px);
  background:rgba(12,12,14,.86); backdrop-filter:blur(12px); -webkit-backdrop-filter:blur(12px); border-bottom:1px solid var(--line) }
.pub-logo img{ height:30px; width:auto; display:block }
.pub-actions{ display:flex; gap:8px }
.pub-cta{ display:flex; align-items:center; flex-wrap:wrap; gap:12px 16px; margin-top:24px }
.pub-gate{ position:relative; margin-top:24px; border:1px solid var(--line2); border-radius:13px; overflow:hidden; background:#09090b }
.pub-teaser{ margin:0; padding:16px 18px 120px; font:13px/1.65 ui-monospace,SFMono-Regular,Consolas,monospace; color:#e9e6e1; white-space:pre-wrap; filter:blur(2.5px); user-select:none; opacity:.75 }
.pub-gate-box{ position:absolute; inset:0; display:flex; flex-direction:column; align-items:center; justify-content:flex-end; gap:10px; padding:24px; text-align:center;
  background:linear-gradient(180deg,rgba(9,9,11,0) 0%,rgba(9,9,11,.85) 40%,#09090b 75%) }
.pub-gate-box > .ic{ width:22px; height:22px; color:var(--or) }
.pub-gate-box b{ font-size:16.5px; max-width:440px }
.pub-gate-box p{ margin:0 0 4px; max-width:440px }
.pub-gate:not(:has(.pub-teaser)) .pub-gate-box{ position:static }
.auth-lib{ margin:14px 0 0; text-align:center; font-size:13.5px }
.auth-lib .link{ display:inline-flex; align-items:center; gap:6px; text-decoration:none; color:var(--ink2) }
.auth-lib .link:hover{ color:var(--or) }
.auth-lib .ic{ width:15px; height:15px }
@media (max-width:640px){
  .pub-actions .ghost{ display:none }
  .pub-logo img{ height:26px }
}

/* ── Biblioteca: guias, contador e ordenação ── */
.lib-bar{ display:flex; align-items:center; justify-content:space-between; gap:12px; margin:20px 0 14px }
.lib-bar .lib-n{ margin:0 }
.lib-sort{ display:inline-flex; align-items:center; gap:8px; font-size:13px; color:var(--muted) }
.lib-sort select{ height:34px; padding:0 10px; border-radius:9px; border:1px solid var(--line2); background:var(--panel); color:var(--ink); font:inherit; font-weight:600; cursor:pointer }
.lib-people{ display:inline-flex; align-items:center; gap:6px; color:var(--ink2) }
.lib-people .ic{ width:15px; height:15px; color:var(--or) }
.lib-steps{ font-size:15px }
.lib-steps h2{ font-size:18px; margin-top:26px }

/* ── Landing de isca (academy.wisechats.ai/i/<item>) ── */
.isca-wrap{ display:grid; grid-template-columns:minmax(0,1.15fr) minmax(0,.85fr); gap:clamp(24px,4vw,56px); align-items:start; max-width:1120px; margin:0 auto; padding:clamp(28px,5vw,64px) clamp(16px,4vw,40px) 80px }
.isca-wrap.done{ grid-template-columns:minmax(0,1fr); max-width:860px }
.isca-kicker{ display:inline-flex; align-items:center; gap:8px; padding:6px 13px; border-radius:99px; background:rgba(var(--or-rgb),.12); border:1px solid rgba(var(--or-rgb),.45); color:var(--or); font-size:12.5px; font-weight:700 }
.isca-kicker .ic{ width:15px; height:15px }
.isca-kicker.ok{ background:rgba(60,207,122,.1); border-color:rgba(60,207,122,.45); color:#9be8bb }
.isca-hero h1{ margin:18px 0 12px; font-size:clamp(28px,4vw,44px); line-height:1.1; font-weight:800; letter-spacing:-.02em }
.isca-gets{ list-style:none; margin:24px 0; padding:0; display:flex; flex-direction:column; gap:12px }
.isca-gets li{ display:flex; gap:12px; align-items:flex-start; color:var(--ink2); font-size:15.5px }
.isca-gets .ic{ margin-top:2px; color:var(--or) }
.isca-gets li.gift{ padding:12px 14px; border-radius:12px; background:rgba(var(--or-rgb),.08); border:1px dashed rgba(var(--or-rgb),.5); color:#fff; font-weight:600 }
.isca-side{ position:sticky; top:92px }
.isca-card{ padding:28px 26px 22px; background:var(--side); border:1px solid var(--line2); border-radius:20px; box-shadow:0 30px 80px rgba(0,0,0,.45) }
.isca-card h2{ margin:0 0 4px; font-size:21px }
.isca-card .form{ margin-top:18px }
.isca-safe{ display:flex; align-items:center; gap:6px; margin:14px 0 0; justify-content:center }
.isca-safe .ic{ width:14px; height:14px }
.hp{ position:absolute; left:-9999px; width:1px; height:1px; opacity:0 }
.isca-gift{ display:grid; grid-template-columns:auto minmax(0,1fr); gap:14px; align-items:start; margin:8px 0 26px; padding:18px; border-radius:14px; background:rgba(var(--or-rgb),.09); border:1px solid rgba(var(--or-rgb),.5) }
.isca-gift > .ic{ width:24px; height:24px; color:var(--or) }
.isca-gift b{ font-size:16px }
.isca-gift p{ margin:4px 0 0; color:var(--ink2); font-size:14.5px }
.isca-content{ margin-bottom:18px }
@media (max-width:900px){
  .isca-wrap{ grid-template-columns:minmax(0,1fr) }
  .isca-side{ position:static }
  .isca-hero .lib-when{ display:none }
}
@media (max-width:640px){ .isca-card{ padding:22px 18px 18px } }

/* ── Onboarding (perfil) ── */
.auth-form.ob{ max-width:620px; padding:36px clamp(20px,5vw,40px) 28px }
.ob .ob-logo{ width:150px; margin-bottom:24px }
.ob h1{ text-align:left; font-size:clamp(22px,3vw,27px); text-wrap:balance }
.ob .lead{ text-align:left; margin:0 0 20px }
.ob-intro{ margin:0 0 20px; padding:12px 14px; border-radius:12px; background:rgba(var(--or-rgb),.08); border:1px solid rgba(var(--or-rgb),.3); color:var(--ink2); font-size:14px }
.ob-steps{ display:flex; gap:6px; margin-bottom:18px }
.ob-steps i{ flex:1; height:4px; border-radius:99px; background:var(--line2) }
.ob-steps i.on{ background:var(--or) }
.ob-k{ margin:0 0 6px; font-size:12.5px; font-weight:600; color:var(--muted) }
.ob-opts{ display:grid; grid-template-columns:repeat(auto-fit,minmax(220px,1fr)); gap:10px }
.ob-opt{ display:flex; flex-direction:column; gap:2px; text-align:left; padding:14px 16px; border-radius:12px; border:1px solid var(--line2); background:var(--panel); cursor:pointer; transition:border-color .15s,background .15s }
.ob-opt b{ font-size:14.5px; font-weight:600 }
.ob-opt span{ font-size:12.5px; color:var(--muted) }
.ob-opt:hover{ border-color:#45454f }
.ob-opt.on{ border-color:var(--or); background:rgba(var(--or-rgb),.12) }
.ob-chips{ margin-bottom:4px }
.ob-note{ margin:16px 0 0 }
.ob-foot{ display:flex; align-items:center; gap:10px; flex-wrap:wrap; margin-top:24px }
.ob .btn.block{ margin-top:24px }
.btn:disabled{ opacity:.45; cursor:not-allowed }

/* Chamada pra personalizar (Início) */
.nudge{ display:flex; align-items:center; gap:16px; flex-wrap:wrap; margin:0 0 28px; padding:16px 18px; border-radius:var(--r);
  border:1px solid rgba(var(--or-rgb),.5); background:linear-gradient(90deg,rgba(var(--or-rgb),.12),transparent 70%),var(--panel) }
.nudge-ic{ display:grid; place-items:center; width:40px; height:40px; border-radius:50%; background:rgba(var(--or-rgb),.16); color:var(--or); flex:none }
.nudge-txt{ flex:1 1 240px; min-width:0 }
.nudge-txt b{ display:block }
.nudge-txt span{ font-size:13.5px; color:var(--muted) }
.sec-sub{ margin:4px 0 0; font-size:13px; color:var(--muted) }
.sec-sub a{ color:var(--or); font-weight:600 }

/* Bolinha no avatar do menu enquanto o perfil não está completo */
.side-user .avatar{ position:relative }
.side-user.todo .avatar::after{ content:""; position:absolute; top:-1px; right:-1px; width:10px; height:10px; border-radius:50%; background:var(--or); border:2px solid var(--side) }

/* Minha conta em abas */
.acc-tabs{ display:flex; gap:4px; margin:0 0 22px; border-bottom:1px solid var(--line); overflow-x:auto; scrollbar-width:none }
.acc-tabs button{ flex:none; display:inline-flex; align-items:center; gap:7px; padding:11px 14px; margin-bottom:-1px; background:none; border:0; border-bottom:2px solid transparent;
  color:var(--muted); font-size:14.5px; font-weight:600; cursor:pointer }
.acc-tabs button:hover{ color:#fff }
.acc-tabs button[aria-selected="true"]{ color:#fff; border-bottom-color:var(--or) }
.acc-tabs .dot{ width:7px; height:7px; border-radius:50%; background:var(--or) }
.kvs{ margin:16px 0 18px }
.acc-kvs{ margin:20px 0 12px }
.kv{ display:flex; justify-content:space-between; gap:16px; padding:10px 0; border-top:1px solid var(--line); font-size:14px }
.kv:first-child{ border-top:0 }
.kv span{ color:var(--muted) }
.kv b{ font-weight:600; text-align:right; min-width:0; overflow-wrap:anywhere }
.acc-tools{ margin-top:14px }
.nudge-box .btn{ margin-top:14px }
.isca-present{ position:relative; margin-top:26px; padding:24px 24px 20px; border-radius:18px; overflow:hidden;
  background:radial-gradient(circle at 100% 0%,rgba(var(--or-rgb),.28),transparent 60%),linear-gradient(180deg,#1a130e,#120f0d); border:1px solid rgba(var(--or-rgb),.55) }
.isca-present-tag{ display:inline-block; padding:4px 11px; border-radius:99px; background:var(--or); color:var(--on-or); font-size:12px; font-weight:800; letter-spacing:.04em; text-transform:uppercase }
.isca-present h2{ margin:14px 0 8px; font-size:clamp(20px,2.4vw,26px); line-height:1.2; font-weight:800 }
.isca-present p{ margin:0 0 14px; color:var(--ink2); font-size:15px }
.isca-present ul{ list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap:8px }
.isca-present li{ display:flex; align-items:center; gap:10px; color:#fff; font-weight:600; font-size:14.5px }
.isca-present li .ic{ color:var(--or); width:17px; height:17px }
