:root {
  --bg: #f3f5f8;
  --panel: #fff;
  --panel-2: #f6f8fb;
  --line: #d2dae5;
  --text: #182633;
  --muted: #536576;
  --soft: #637585;
  --brand: #145a8d;
  --green: #087b62;
  --danger: #b42336;
  --radius: 8px;
  --shadow: none;
}
body { background: var(--bg); color: var(--text); letter-spacing: 0; }
.ead-topbar { background: #fff; border-color: var(--line); backdrop-filter: none; }
.ead-main { padding: 24px; }
.ead-shell { grid-template-columns: 224px minmax(0, 1fr); gap: 24px; }
.ead-sidebar { background: #fff; border: 1px solid var(--line); top: 112px; }
.ead-workspace { background: transparent; border: 0; border-radius: 0; padding: 0; }
.ead-card { background: #fff; border-color: var(--line); border-radius: 8px; }
.ead-card .ead-card { border: 0; border-radius: 0; background: transparent; padding: 14px 0; }
.ead-section { padding: 20px 0; border-top: 1px solid var(--line); }
.ead-kicker, th { letter-spacing: 0; }
.ead-auth h1, .ead-page-head h1, .ead-card h2, .ead-preview-head h2, .ead-section h2 {
  font-family: inherit; font-size: 22px; line-height: 1.35; letter-spacing: 0;
}
.ead-page-head h1 { font-size: 28px; }
.ead-page-head p { margin-bottom: 0; }
.ead-card h3, .ead-section h3 { font-size: 17px; line-height: 1.4; }
.ead-public-nav a, .ead-side-nav a { background: #fff; color: #23506f; border-color: var(--line); border-radius: 6px; }
.ead-side-nav a { font-size: 13px; padding: 11px; }
.ead-side-nav a.active, .ead-side-nav a:hover, .ead-public-nav a:hover { color: #11496f; background: #e8f1f8; border-color: #83acc7; }
.ead-sidebar-head strong { font-size: 18px; }
.ead-sidebar-head small { line-height: 1.5; }
.ead-form label, .ead-toolbar label { color: var(--text); font-size: 13px; display: grid; gap: 6px; min-width: 0; }
.ead-form input, .ead-form select, .ead-form textarea, .ead-toolbar input, .ead-toolbar select {
  background: #fff; color: var(--text); border: 1px solid var(--line); border-radius: 6px;
  min-height: 42px; padding: 10px 12px; font: inherit; width: 100%; min-width: 0;
}
.ead-toolbar select { max-width: 100%; }
.ead-toolbar label { flex: 1; max-width: 560px; }
.ead-form input[type=file] { font-size: 12px; overflow: hidden; }
.ead-form input:focus, .ead-form textarea:focus, select:focus, .ead-toolbar input:focus {
  outline: 2px solid #4b97bd; outline-offset: 2px;
}
.ead-form fieldset { margin: 0; padding: 16px; border: 1px solid var(--line); border-radius: 6px; display: grid; gap: 12px; min-width: 0; }
.ead-form legend { font-weight: 800; color: var(--brand); padding: 0 5px; font-size: 13px; }
.ead-form .ead-checkbox { display: flex; align-items: center; gap: 8px; font-weight: 500; }
.ead-checkbox input[type=checkbox] { width: 16px; min-height: 16px; }
.ead-btn { border-radius: 6px; font-family: inherit; line-height: 1.3; font-size: 13px; padding: 11px 15px; }
.ead-btn.primary { background: #145a8d; color: #fff; }
.ead-btn.gold { background: #f5c550; color: #182633; }
.ead-btn.ghost { background: #fff; color: #245477; border-color: #c5d2df; }
.ead-btn.danger { background: #fff4f4; color: #a32131; border-color: #e5bfc2; }
.ead-btn:hover { transform: none; filter: brightness(.96); }
.ead-btn:disabled { opacity: .6; cursor: wait; }
.ead-row-actions { align-items: center; }
.ead-product-card, .ead-metric { background: #fff; border-color: var(--line); border-radius: 8px; }
.ead-product-card img, .ead-course-card img { border-radius: 6px; }
.ead-metric strong { font-size: 26px; }
.ead-badge { color: #496073; border-color: #d3dce5; background: #f5f8fb; }
.ead-badge.ok { color: #08634e; border-color: #aad3c4; background: #eaf7f0; }
.ead-badge.warn { color: #775107; border-color: #e6d09d; background: #fff8e4; }
.ead-badge.danger { color: #a32131; border-color: #e5bfc2; background: #fff4f4; }
.ead-progress { background: #e4ebf0; border: 0; height: 7px; }
.ead-progress span { background: #16816b; }
.ead-table-wrap { background: #fff; border-color: var(--line); border-radius: 6px; }
table { background: #fff; }
th { color: #34526a; background: #f0f5f9; font-size: 11px; }
td { color: var(--text); font-size: 13px; }
th, td { border-color: #e0e6ed; }
.ead-toast { background: #edf8f1; color: #155a3c; border-color: #a5cdb7; border-radius: 6px; }
.ead-error { color: #b42336; }
.ead-module, .ead-action-card, .ead-lesson-row, .ead-preview-section, .ead-preview-link, .ead-preview-empty { background: transparent; border-color: var(--line); border-radius: 0; }
.ead-course-manager { margin-top: 16px; }
.ead-course-structure { display: block; margin-top: 12px; padding: 0; background: #fff; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
.ead-course-structure > summary, .ead-editor > summary { cursor: pointer; padding: 16px; color: #245477; font-size: 14px; }
.ead-course-structure > summary > span { float: right; font-size: 12px; color: var(--muted); margin-left: 12px; }
.ead-course-structure[open] > summary { border-bottom: 1px solid var(--line); background: #eef4f8; }
.ead-module-actions { display: flex; gap: 8px; padding: 12px 16px; background: #fafbfd; }
.ead-course-structure > .ead-lesson-row { margin: 0; border: 0; border-top: 1px solid #e4e9ef; padding: 18px; }
.ead-lesson-row.done { background: #f4faf6; }
.ead-lesson-admin-row { grid-template-columns: minmax(0, 1fr); }
body[data-ead-role=student] .ead-lesson-row { grid-template-columns: minmax(0, 1fr); align-items: start; }
body[data-ead-role=student] .ead-lesson-row > button { justify-self: start; }
.ead-lesson-title-row { justify-content: flex-start; }
.ead-lesson-row p { white-space: pre-line; line-height: 1.7; }
.ead-lesson-row > div { min-width: 0; }
.ead-resource-section { padding: 16px 0; border-top: 1px solid var(--line); margin-top: 16px; display: grid; gap: 12px; }
.ead-resource-section p { margin: 0; }
.ead-resource-section .ead-form { max-width: 560px; }
.ead-resource-section .ead-form button { justify-self: start; }
.ead-learning-note { background: #f0f6fb; border-color: #cfdeea; border-radius: 4px; }
.ead-grade { color: #145a8d; font-size: 16px; }
.ead-editor { margin: 20px 0; border: 1px solid #bdcedd; border-radius: 6px; background: #fff; }
.ead-editor > summary { color: #145a8d; font-weight: 800; }
.ead-editor-body { padding: 18px; border-top: 1px solid var(--line); }
.ead-current-files { display: grid; gap: 12px; }
.ead-current-files > div { display: grid; gap: 6px; padding: 12px; border-left: 3px solid #145a8d; background: #f3f7fa; }
.ead-current-files a { color: #145a8d; text-decoration: underline; overflow-wrap: anywhere; font-size: 13px; }
.ead-preview-modal { background: #fff; color: var(--text); border-radius: 8px; max-height: 90dvh; }
.ead-preview-head h2 { font-size: 22px; }
.ead-preview-resources article { border-radius: 6px; background: #f6f8fb; border-color: var(--line); }
.ead-preview-overlay { backdrop-filter: none; }
.ead-preview-empty { color: var(--muted); }
.ead-lesson-media { margin: 16px 0; width: 100%; aspect-ratio: 16/9; background: #111; }
.ead-lesson-media video, .ead-lesson-media iframe { display: block; width: 100%; height: 100%; border: 0; }
.ead-empty { background: #fff; border-radius: 6px; border-color: var(--line); }
.ead-access-grid div { background: #f6f8fb; border-radius: 6px; }
.student-spotlight, .ead-learning-focus { background: #eaf3f9; }
body[data-ead-role] .page-footer { background: transparent; color: #536576; border: 0; border-top: 1px solid #d2dae5; border-radius: 0; box-shadow: none; backdrop-filter: none; }
body[data-ead-role] .page-footer::before { display: none; }
body[data-ead-role] .page-footer a { color: #145a8d; }
h1, h2, h3, p, strong { overflow-wrap: anywhere; }
@media(max-width:1080px) {
  .ead-shell { grid-template-columns: 1fr; }
  .ead-sidebar { position: static; }
  .ead-sidebar-head { display: none; }
  .ead-side-nav { grid-template-columns: repeat(auto-fit,minmax(130px,1fr)); }
}
@media(max-width:720px) {
  body[data-ead-page=avaliacoes] table { min-width: 0; }
  body[data-ead-page=avaliacoes] thead { display: none; }
  body[data-ead-page=avaliacoes] tr { display: grid; gap: 12px; padding: 16px 12px; border-bottom: 1px solid var(--line); }
  body[data-ead-page=avaliacoes] td { display: block; border: 0; padding: 0; }
  body[data-ead-page=avaliacoes] td::before { display: block; font-weight: 800; font-size: 11px; color: #536576; margin-bottom: 6px; }
  body[data-ead-page=avaliacoes] td:nth-child(1)::before { content: "Aluno"; }
  body[data-ead-page=avaliacoes] td:nth-child(2)::before { content: "Curso / aula"; }
  body[data-ead-page=avaliacoes] td:nth-child(3)::before { content: "Resultado"; }
  body[data-ead-page=avaliacoes] td:nth-child(4)::before { content: "Arquivo enviado"; }
  body[data-ead-page=avaliacoes] td:nth-child(5)::before { content: "Correção"; }
  .ead-main { padding: 12px; }
  .ead-page-head h1 { font-size: 24px; }
  .ead-topbar { position: static; padding: 12px; }
  .ead-public-nav a { padding: 8px 10px; font-size: 12px; }
  .ead-side-nav { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .ead-side-nav a { font-size: 12px; }
  .ead-lesson-row { grid-template-columns: minmax(0,1fr); }
  .ead-lesson-row > button { justify-self: start; }
  .ead-toolbar { align-items: stretch; }
  .ead-toolbar input, .ead-toolbar label { max-width: 100%; width: 100%; }
  .ead-course-structure > summary { padding: 14px 12px; }
  .ead-course-structure > summary > span { float: none; display: block; margin: 6px 0 0 18px; }
  .ead-course-structure > .ead-lesson-row { padding: 14px 12px; }
  .ead-editor-body { padding: 12px; }
}
