:root{
  --ink:#18181b;
  --text-2:#52525b;
  --text-3:#6b6b73;
  --line:rgba(24,24,27,.09);
  --page:#ffffff;
  --soft:#f6f4f1;
  --soft-2:#efece7;
  --blue:#edf2ff;
  --mint:#e4f8f2;
  --butter:#fdf6df;
  --lilac:#f6effb;
  --peach:#fdf0e9;
  --marker:#fbe7a1;
  --good:#0f766e;
  --bad:#b4372f;
  --warn:#92620a;
  --ease:cubic-bezier(.22,1,.36,1);
}
*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{margin:0;background:var(--page);color:var(--ink);font-family:Figtree,system-ui,-apple-system,"Segoe UI",sans-serif;font-size:15px;line-height:22px;-webkit-font-smoothing:antialiased;font-variant-numeric:tabular-nums}
h1,h2,h3,p,ul,figure{margin:0;padding:0}
ul{list-style:none}
a{color:inherit;text-decoration:none}
button,input,select,textarea{font:inherit;color:inherit}
button{background:none;border:0;padding:0;cursor:pointer;text-align:left}
svg{display:block}
.icon{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round;flex:none}
:focus-visible{outline:2px solid var(--ink);outline-offset:2px;border-radius:4px}
.mark{background:linear-gradient(transparent 56%,var(--marker) 56%,var(--marker) 92%,transparent 92%);padding:0 .08em;margin:0 -.08em}
.t-blue{background:var(--blue)}.t-mint{background:var(--mint)}.t-butter{background:var(--butter)}.t-lilac{background:var(--lilac)}.t-peach{background:var(--peach)}

h1{font-size:32px;line-height:38px;font-weight:500;letter-spacing:-.02em}
h2{font-size:20px;line-height:28px;font-weight:500;letter-spacing:-.01em}
h3{font-size:15px;line-height:22px;font-weight:500}
.muted{color:var(--text-3)}
.sec{color:var(--text-2)}
.small{font-size:13px;line-height:20px}
.page-sub{margin-top:4px;color:var(--text-2)}

/* Botões */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;height:44px;padding:0 16px;border-radius:12px;font-weight:500;white-space:nowrap;transition:background-color 160ms var(--ease),transform 120ms var(--ease)}
.btn:active{transform:scale(.98)}
.btn-primary{background:var(--ink);color:#fff}
.btn-primary:hover{background:#34343a}
.btn-primary[disabled]{background:var(--soft-2);color:var(--text-3);cursor:not-allowed}
.btn-quiet{background:#fff;box-shadow:inset 0 0 0 1px var(--line)}
.btn-quiet:hover{background:var(--soft)}
.btn-sm{height:36px;padding:0 12px;border-radius:10px;font-size:14px}
.link{color:var(--text-2);text-decoration:underline;text-underline-offset:3px;text-decoration-color:var(--line)}
.link:hover{color:var(--ink)}

/* Login */
.login{min-height:100vh;display:grid;grid-template-columns:minmax(0,5fr) minmax(0,6fr)}
.login-form{display:flex;flex-direction:column;justify-content:center;padding:48px 32px}
.login-inner{width:100%;max-width:380px;margin:0 auto}
.login-inner>img{height:40px;width:auto;margin-bottom:48px}
.login-inner h1{margin-bottom:8px}
.field{display:block;margin-top:16px}
.field>span{display:block;font-size:14px;font-weight:500;margin-bottom:6px}
.input{display:block;width:100%;height:44px;padding:0 12px;border:0;border-radius:10px;background:#fff;box-shadow:inset 0 0 0 1px var(--line);transition:box-shadow 160ms var(--ease)}
.input:focus{outline:0;box-shadow:inset 0 0 0 1.5px var(--ink)}
textarea.input{height:auto;min-height:88px;padding:10px 12px;resize:vertical}
select.input{appearance:auto}
.error{margin-top:12px;color:var(--bad);font-size:14px}
.field-error{display:block;margin-top:4px;color:var(--bad);font-size:13px;line-height:18px}
.input.invalid{box-shadow:inset 0 0 0 1.5px var(--bad)}
.login-actions{display:flex;justify-content:space-between;align-items:center;margin-top:12px}
.login .btn{width:100%;margin-top:20px}
.demo-box{margin-top:32px;padding-top:20px;border-top:1px solid var(--line)}
.demo-row{display:flex;gap:8px;margin-top:8px;flex-wrap:wrap}
.demo-row .btn{width:auto;margin-top:0;flex:1}
.login-side{background:var(--soft);display:flex;align-items:center;justify-content:center;padding:48px;overflow:hidden}
.login-card{width:100%;max-width:420px}
.login-card>p{margin-bottom:16px;font-size:24px;line-height:32px;font-weight:500;letter-spacing:-.015em}

/* Estrutura */
.shell{min-height:100vh;display:grid;grid-template-columns:248px minmax(0,1fr)}
.side{position:sticky;top:0;height:100vh;border-right:1px solid var(--line);display:flex;flex-direction:column;padding:24px 16px}
.side>img{height:32px;width:auto;align-self:flex-start;margin:0 8px 32px}
.nav-list{display:grid;gap:4px}
.nav-item{display:flex;align-items:center;gap:10px;height:40px;padding:0 12px;border-radius:10px;color:var(--text-2);width:100%;transition:background-color 160ms var(--ease),color 160ms var(--ease)}
.nav-item:hover{background:var(--soft);color:var(--ink)}
.nav-item.on{background:var(--ink);color:#fff}
.count{margin-left:auto;font-size:13px;line-height:20px;padding:0 7px;border-radius:6px;background:var(--marker);color:var(--ink)}
.side-foot{margin-top:auto;display:grid;gap:12px}
.me{display:flex;align-items:center;gap:10px;padding:12px;border-radius:12px;background:var(--soft)}
.avatar{width:36px;height:36px;border-radius:50%;background:#fff;display:flex;align-items:center;justify-content:center;font-size:13px;font-weight:500;flex:none}
.avatar.lg{width:56px;height:56px;font-size:18px}
.avatar.tinted{background:var(--soft)}
.me-body{min-width:0;flex:1}
.me-name{font-size:14px;line-height:18px;font-weight:500;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.me-role{font-size:12px;line-height:16px;color:var(--text-3)}
.icon-btn{width:36px;height:36px;border-radius:10px;display:flex;align-items:center;justify-content:center;color:var(--text-2);flex:none;transition:background-color 160ms var(--ease)}
.icon-btn:hover{background:var(--soft-2);color:var(--ink)}
.main{min-width:0;padding:32px 40px 64px;max-width:1320px;width:100%}
.topbar,.dock{display:none}
.page-head{display:flex;justify-content:space-between;align-items:flex-start;gap:16px;margin-bottom:24px;flex-wrap:wrap}
.demo-foot{margin-top:48px;padding-top:16px;border-top:1px solid var(--line);display:flex;flex-wrap:wrap;gap:8px 16px;justify-content:space-between;font-size:13px;color:var(--text-3)}
.demo-foot button{color:var(--text-2);display:inline-flex;align-items:center;gap:6px}
.demo-foot button:hover{color:var(--ink)}
.demo-foot .icon{width:14px;height:14px}

/* Grades e cartões */
.layout{display:grid;grid-template-columns:minmax(0,1fr) 320px;gap:24px;align-items:start}
.stack{display:grid;gap:24px;min-width:0}
.card{background:#fff;border-radius:20px;box-shadow:inset 0 0 0 1px var(--line);padding:20px}
.card-soft{background:var(--soft);border-radius:20px;padding:20px}
.card-head{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:16px}

.resume{border-radius:24px;padding:24px;display:flex;gap:24px;align-items:center;justify-content:space-between;flex-wrap:wrap}
.resume-body{min-width:0;flex:1 1 280px}
.resume small{display:block;font-size:13px;line-height:20px;color:var(--text-2);margin-bottom:4px}
.resume h2{font-size:24px;line-height:32px;letter-spacing:-.015em}
.bar{height:6px;border-radius:3px;background:rgba(24,24,27,.08);overflow:hidden}
.bar i{display:block;height:100%;border-radius:3px;background:var(--ink)}
.resume .bar{margin-top:12px;max-width:320px}

.tasks{display:grid;gap:8px}
.task{display:flex;align-items:center;gap:12px;padding:12px;border-radius:20px;width:100%;transition:filter 160ms var(--ease)}
.task:hover{filter:brightness(.98)}
.tile{width:44px;height:44px;border-radius:12px;background:#fff;display:flex;align-items:center;justify-content:center;flex:none}
.tile.tinted{background:var(--soft)}
.task-body{min-width:0;flex:1}
.task-name{font-weight:500}
.task-sub{font-size:13px;line-height:18px;color:var(--text-2)}
.state{font-size:13px;line-height:20px;font-weight:500;padding:6px 12px;border-radius:10px;background:#fff;flex:none}
.state.done{background:var(--ink);color:#fff}

.week{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:4px}
.day{display:block;width:100%;border-radius:12px;padding:8px 0;text-align:center;font-size:12px;line-height:16px;color:var(--text-3);position:relative;transition:background-color 160ms var(--ease)}
.day b{display:block;font-size:16px;line-height:24px;font-weight:500;color:var(--ink)}
.day:hover{background:var(--soft)}
.day.today{background:var(--ink);color:rgba(255,255,255,.72)}
.day.today b{color:#fff}
.day.picked:not(.today){background:var(--soft-2)}

.stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.stat small{display:block;font-size:13px;line-height:18px;color:var(--text-3)}
.stat b{display:block;font-size:24px;line-height:32px;font-weight:500;letter-spacing:-.015em;white-space:nowrap}
.stat em{display:block;font-style:normal;font-size:12px;line-height:16px;color:var(--text-3)}
.kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
.kpis .card{padding:16px 20px}

.subjects{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:12px}
.subject{border-radius:20px;padding:20px;display:flex;flex-direction:column;gap:20px;width:100%;transition:filter 160ms var(--ease)}
.subject:hover{filter:brightness(.98)}
.subject .bar{margin-top:8px}

.note{display:flex;gap:12px;align-items:flex-start}

.rows li{border-top:1px solid var(--line)}
.rows li:first-child{border-top:0}
.row{display:flex;align-items:center;gap:12px;padding:12px 0;width:100%}
.row-body{min-width:0;flex:1}
.row-body b{display:block;font-weight:500}
.row-body span{display:block;font-size:13px;line-height:18px;color:var(--text-3)}
a.row:hover b,button.row:hover b{text-decoration:underline;text-underline-offset:3px;text-decoration-color:var(--line)}

.tag{display:inline-block;font-size:13px;line-height:20px;padding:2px 8px;border-radius:6px;background:var(--soft);white-space:nowrap}
.tag.good{background:var(--mint);color:var(--good)}
.tag.warn{background:var(--butter);color:var(--warn)}
.tag.bad{background:var(--peach);color:var(--bad)}

/* Tabela */
.table-wrap{overflow-x:auto;margin:0 -20px -8px;padding:0 20px 8px}
table{width:100%;border-collapse:collapse;min-width:680px}
th{font-size:13px;line-height:20px;font-weight:400;color:var(--text-3);text-align:left;padding:0 12px 8px 0}
td{padding:12px 12px 12px 0;border-top:1px solid var(--line);vertical-align:middle}
td .bar{width:96px;display:inline-block;vertical-align:middle;margin-right:8px}
.num{text-align:right;padding-right:0}
tr.click{cursor:pointer}
tr.click:hover td{background:var(--soft)}
.cell-user{display:flex;align-items:center;gap:10px;font-weight:500}

/* Filtros */
.filters{display:grid;grid-template-columns:minmax(0,2fr) repeat(3,minmax(0,1fr));gap:8px;margin-bottom:16px}

/* Módulos */
.back{display:inline-flex;align-items:center;gap:4px;color:var(--text-2);margin-bottom:12px}
.back:hover{color:var(--ink)}
.subject-head{display:flex;gap:16px;align-items:center}
.module{padding:0;overflow:hidden}
.module-head{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:20px 20px 12px}
.topic{padding:0 20px 20px}
.topic+.topic{padding-top:16px;border-top:1px solid var(--line)}
.topic-title{font-weight:500;margin-bottom:8px}
.steps{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}
.step-card{display:flex;gap:10px;align-items:center;padding:8px;border-radius:12px;background:var(--soft);min-width:0;width:100%;transition:background-color 160ms var(--ease)}
.step-card:hover{background:var(--soft-2)}
.step-card .tile{width:36px;height:36px;border-radius:10px}
.step-card b{display:block;font-weight:500;font-size:14px;line-height:18px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.step-card span{display:block;font-size:12px;line-height:16px;color:var(--text-3)}
.step-card>div:last-child{min-width:0}
.step-card.done .tile{background:var(--ink);color:#fff}

/* Estudo */
.study{display:grid;grid-template-columns:minmax(0,1fr) 320px;gap:24px;align-items:start}
.player{border-radius:20px;overflow:hidden;background:var(--soft)}
.screen{aspect-ratio:16/9;position:relative;display:flex;flex-direction:column;justify-content:center;padding:6% 8%;width:100%;text-align:left}
.screen h2{font-size:clamp(20px,3vw,34px);line-height:1.15;letter-spacing:-.02em;margin-bottom:12px}
.screen p{color:var(--text-2);max-width:32rem;font-size:clamp(13px,1.5vw,17px);line-height:1.5}
.screen-cam{position:absolute;left:24px;bottom:20px;width:64px;height:64px;border-radius:50%;background:#fff;display:flex;align-items:center;justify-content:center;font-weight:500;box-shadow:0 8px 24px rgba(24,24,27,.1)}
.big-play{position:absolute;right:24px;bottom:20px;width:64px;height:64px;border-radius:50%;background:var(--ink);color:#fff;display:flex;align-items:center;justify-content:center;transition:background-color 160ms var(--ease)}
.big-play:hover{background:#34343a}
.big-play .icon{width:24px;height:24px}
.big-play .icon.fill{fill:currentColor;margin-left:3px}
.dots{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin-top:16px;max-width:360px}
.dots div{display:flex;gap:4px;justify-content:center;padding:12px 4px;border-radius:10px;background:#fff}
.dots i{width:12px;height:12px;border-radius:50%;background:#c9c6c0}
.dots .pick{background:var(--marker)}
.dots .pick i{background:#a97810}
.controls{display:flex;align-items:center;gap:12px;padding:12px 16px;background:#fff;box-shadow:inset 0 0 0 1px var(--line);border-radius:0 0 20px 20px}
.controls .bar{flex:1}
.study-meta{margin-top:20px;display:flex;gap:16px;justify-content:space-between;align-items:flex-start;flex-wrap:wrap}
.study-meta>div:first-child{min-width:0;flex:1 1 320px}
.study-actions{display:flex;gap:8px;flex-wrap:wrap}
.study-nav{display:flex;justify-content:space-between;gap:8px;margin-top:24px}
.side-list{display:grid;gap:4px}
.side-item{display:flex;gap:10px;align-items:center;padding:8px;border-radius:12px;width:100%;transition:background-color 160ms var(--ease)}
.side-item:hover{background:var(--soft)}
.side-item.on{background:var(--soft-2)}
.side-item .tile{width:36px;height:36px;border-radius:10px}
.side-item.done .tile{background:var(--ink);color:#fff}
.side-item b{display:block;font-weight:500;font-size:14px;line-height:18px}
.side-item span{display:block;font-size:12px;line-height:16px;color:var(--text-3)}

/* Questões */
.quiz{border-radius:20px;padding:32px;min-height:400px;display:flex;flex-direction:column}
.quiz-top{display:flex;justify-content:space-between;gap:12px;align-items:center;margin-bottom:24px;font-size:14px;color:var(--text-2)}
.quiz-q{font-size:24px;line-height:32px;font-weight:500;letter-spacing:-.015em;margin-bottom:24px;max-width:44rem}
.opts{display:grid;gap:8px}
.opt{display:flex;gap:12px;align-items:center;padding:14px 16px;border-radius:12px;background:#fff;width:100%;box-shadow:inset 0 0 0 1px transparent;transition:box-shadow 160ms var(--ease)}
.opt:hover:not([disabled]){box-shadow:inset 0 0 0 1.5px var(--ink)}
.opt[disabled]{cursor:default}
.opt .letter{width:28px;height:28px;border-radius:8px;background:var(--soft);display:flex;align-items:center;justify-content:center;font-size:13px;font-weight:500;flex:none}
.opt.right{box-shadow:inset 0 0 0 1.5px var(--good)}
.opt.right .letter{background:var(--good);color:#fff}
.opt.wrong{box-shadow:inset 0 0 0 1.5px var(--bad)}
.opt.wrong .letter{background:var(--bad);color:#fff}
.opt.picked{box-shadow:inset 0 0 0 1.5px var(--ink)}
.opt.picked .letter{background:var(--ink);color:#fff}
.quiz-foot{margin-top:auto;padding-top:24px;display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap}
.feedback{font-weight:500}
.feedback.ok{color:var(--good)}
.feedback.no{color:var(--bad)}
.timer{display:inline-flex;align-items:center;gap:6px;font-weight:500}
.result{text-align:center;align-items:center;justify-content:center}
.result-num{font-size:64px;line-height:72px;font-weight:500;letter-spacing:-.03em}
.result p{margin-top:4px;color:var(--text-2)}
.result .study-actions{margin-top:24px;justify-content:center}
.review{margin-top:24px;width:100%;max-width:560px;text-align:left}
.review li{display:flex;gap:10px;padding:8px 0;font-size:14px;line-height:20px;border-top:1px solid rgba(24,24,27,.08)}
.review .icon{margin-top:1px}
.review .ok{color:var(--good)}
.review .no{color:var(--bad)}

/* Cronograma */
.cal{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:8px}
.cal-day{min-width:0;border-radius:16px;padding:12px;background:var(--soft);min-height:240px}
.cal-day.today{background:#fff;box-shadow:inset 0 0 0 1.5px var(--ink)}
.cal-head{font-size:13px;line-height:18px;color:var(--text-3);margin-bottom:8px}
.cal-head b{display:block;font-size:20px;line-height:28px;font-weight:500;color:var(--ink)}
.cal-item{display:block;width:100%;padding:8px;border-radius:10px;font-size:13px;line-height:18px;margin-top:6px;transition:filter 160ms var(--ease)}
.cal-item:hover{filter:brightness(.97)}
.cal-item b{display:block;font-weight:500}
.cal-item span{display:block;color:var(--text-2);overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}
.cal-item.done{opacity:.55}
.cal-item.done b::after{content:" ✓"}

/* Gráfico */
.chart{display:flex;align-items:flex-end;gap:12px;height:200px;padding-top:12px}
.chart div{flex:1;min-width:0;display:flex;flex-direction:column;align-items:center;justify-content:flex-end;gap:6px;height:100%;font-size:12px;line-height:16px;color:var(--text-3)}
.chart i{display:block;width:100%;max-width:56px;border-radius:8px 8px 4px 4px;background:var(--soft-2)}
.chart .now i{background:var(--ink)}
.chart .now{color:var(--ink);font-weight:500}
.chart b{font-weight:500;color:var(--text-2)}

.sbars{display:grid;gap:14px}
.sbar-top{display:flex;justify-content:space-between;gap:8px;margin-bottom:6px}

.badges{display:grid;gap:8px}
.badge{display:flex;gap:12px;align-items:center;padding:12px;border-radius:14px;background:var(--soft)}
.badge.off{opacity:.55}
.badge b{display:block;font-weight:500}
.badge span{display:block;font-size:13px;line-height:18px;color:var(--text-2)}

/* Conversas */
.inbox{display:grid;grid-template-columns:320px minmax(0,1fr);gap:16px;align-items:start}
.thread-item{display:block;width:100%;padding:12px;border-radius:14px;transition:background-color 160ms var(--ease)}
.thread-item:hover{background:var(--soft)}
.thread-item.on{background:var(--soft-2)}
.thread-item b{display:flex;justify-content:space-between;gap:8px;font-weight:500}
.thread-item span{display:block;font-size:13px;line-height:18px;color:var(--text-3);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.chat{display:flex;flex-direction:column;min-height:480px}
.chat-head{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;padding-bottom:12px;border-bottom:1px solid var(--line)}
.msgs{flex:1;display:flex;flex-direction:column;gap:8px;padding:16px 0}
.msg{max-width:78%;padding:10px 14px;border-radius:14px;background:var(--soft);overflow-wrap:anywhere}
.msg.me{align-self:flex-end;background:var(--mint)}
.msg small{display:block;font-size:12px;line-height:16px;color:var(--text-3);margin-top:2px}
.composer{display:flex;gap:8px}
.composer .input{flex:1;min-width:0}
.empty{padding:32px 20px;text-align:center;color:var(--text-3)}

/* Modal */
.overlay{position:fixed;inset:0;background:rgba(24,24,27,.32);z-index:50;display:flex;align-items:center;justify-content:center;padding:16px;overflow:auto}
.modal{background:#fff;border-radius:20px;padding:24px;width:100%;max-width:560px;max-height:calc(100vh - 32px);overflow:auto}
.modal-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:4px}
.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 12px}
.form-grid .full{grid-column:1/-1}
.modal-foot{display:flex;justify-content:flex-end;gap:8px;margin-top:24px}
#toast{position:fixed;left:50%;bottom:24px;transform:translate(-50%,8px);background:var(--ink);color:#fff;padding:10px 16px;border-radius:12px;font-size:14px;opacity:0;pointer-events:none;transition:opacity 180ms var(--ease),transform 180ms var(--ease);z-index:60;max-width:calc(100vw - 32px)}
#toast.show{opacity:1;transform:translate(-50%,0)}

@media (max-width:1180px){
  .layout,.study{grid-template-columns:minmax(0,1fr)}
  .cal{grid-template-columns:repeat(auto-fill,minmax(150px,1fr))}
  .cal-day{min-height:0}
}
@media (max-width:860px){
  .shell{display:block;padding-bottom:88px}
  .side{display:none}
  .main{padding:16px 16px 32px}
  .topbar{display:flex;align-items:center;justify-content:space-between;height:60px;padding:0 16px;border-bottom:1px solid var(--line);position:sticky;top:0;background:#fff;z-index:20}
  .topbar img{height:32px;width:auto}
  .topbar-right{display:flex;align-items:center;gap:4px}
  .dock{display:flex;justify-content:center;gap:4px;position:fixed;left:50%;transform:translateX(-50%);bottom:calc(12px + env(safe-area-inset-bottom));z-index:30;background:#fff;border-radius:20px;padding:6px;box-shadow:0 0 0 1px var(--line),0 8px 24px rgba(24,24,27,.1)}
  .dock button{width:52px;height:48px;border-radius:14px;display:flex;align-items:center;justify-content:center;color:var(--text-3);position:relative}
  .dock button.on{background:var(--ink);color:#fff}
  .dock .count{position:absolute;top:2px;right:4px;margin:0;font-size:11px;line-height:16px;padding:0 5px}
  h1{font-size:26px;line-height:32px}
  .kpis{grid-template-columns:repeat(2,minmax(0,1fr))}
  .steps{grid-template-columns:repeat(2,minmax(0,1fr))}
  .filters{grid-template-columns:minmax(0,1fr)!important}
  .inbox{grid-template-columns:minmax(0,1fr)}
  .inbox.has-open .inbox-list{display:none}
  .chat{min-height:60vh}
  .quiz{padding:20px;min-height:0}
  .quiz-q{font-size:20px;line-height:28px}
  .login{grid-template-columns:minmax(0,1fr)}
  .login-side{display:none}
  .login-form{padding:32px 20px;justify-content:flex-start}
  .login-inner>img{margin-bottom:32px}
  .screen-cam{width:44px;height:44px;left:12px;bottom:12px;font-size:13px}
  .big-play{width:48px;height:48px;right:12px;bottom:12px}
  .dots{display:none}
  .form-grid{grid-template-columns:minmax(0,1fr)}
  .study-actions .btn{flex:1}
  .study-meta>div:first-child{flex-basis:100%}
  #toast{bottom:88px}
}
@media (prefers-reduced-motion:reduce){*{transition:none!important}}

/* Conteúdo incorporado: YouTube, Google Forms e Wordwall */
.embed{display:block;width:100%;aspect-ratio:16/9;border:0;border-radius:20px;background:var(--soft)}
.embed-form{aspect-ratio:auto;height:720px;background:#fff;box-shadow:inset 0 0 0 1px var(--line)}
.embed-empty{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;text-align:center;padding:24px}
.embed-empty .tile{margin-bottom:4px}
td.num .btn{white-space:nowrap}
@media (max-width:860px){.embed{border-radius:16px}.embed-form{height:560px}}

/* Estados de carregamento e confirmação */
.loading{min-height:100vh;display:flex;align-items:center;justify-content:center;color:var(--text-3)}
.btn[disabled]{opacity:.6;cursor:wait}
.week-nav{display:flex;align-items:center;gap:4px}
.cal-item{position:relative}
.cal-remove{position:absolute;top:4px;right:4px;width:24px;height:24px;border-radius:6px;display:flex;align-items:center;justify-content:center;color:var(--text-2)}
.cal-remove:hover{background:rgba(24,24,27,.08);color:var(--ink)}
.cal-remove .icon{width:14px;height:14px}
.cal-item.has-remove{padding-right:28px}
.list-items{display:grid;grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:8px;padding:0 20px 20px}
.step-card b{white-space:normal}

#done-slot{display:contents}

@media (max-width:860px){.inbox:not(.has-open) .chat{display:none}}
