/* Semear EAD — identidade: marinho #011F5B, azul #568CF8, Lora + Poppins.
   Visual "leve" aprovado no canvas em 25/11/2026: fundo azul bem claro, cartões brancos
   com sombra suave, ícones em quadradinhos, marinho para o que está selecionado,
   e o peixe só no logo. */
:root {
  --paper: #ECEBEA;
  --bg: #EDF2FB;
  --white: #FFFFFF;
  --navy: #011F5B;
  --navy-2: #0B2C70;
  --blue: #568CF8;
  --blue-text: #2F63C9;
  --blue-soft: #EEF3FE;
  --blue-tint: #E3EDFF;
  --blue-wash: #F1F6FF;
  --blue-line: #C9D5F0;
  --track: #E3EDFF;
  --ink: #1F2B47;
  --muted: #4A5675;
  --muted-2: #6B7591;
  --danger: #B42318;
  --ok: #1D7A46;
  --radius: 22px;
  --shadow: 0 1px 2px rgba(1,31,91,.04), 0 8px 24px rgba(1,31,91,.06);
  --serif: 'Lora', Georgia, serif;
  --sans: 'Poppins', system-ui, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--ink); font-family: var(--sans); font-size: 15px; line-height: 1.5; }
a { color: var(--blue-text); }
a:hover { color: var(--navy); }
button, input, select, textarea { font: inherit; color: inherit; }
img { max-width: 100%; }
h1, h2, h3 { margin: 0; color: var(--navy); }
.serif { font-family: var(--serif); font-weight: 600; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.xs { font-size: 12px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.icon { width: 20px; height: 20px; flex-shrink: 0; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }

/* ---------- estrutura ---------- */
.shell { min-height: 100vh; display: flex; flex-wrap: wrap; align-items: stretch; gap: 16px; padding: 16px; }
.sidebar { flex: 1 1 236px; max-width: 100%; background: var(--white); border-radius: 24px; padding: 26px 16px; display: flex; flex-direction: column; gap: 28px; box-shadow: var(--shadow); }
.content { flex: 999 1 560px; min-width: 0; padding: 10px 8px 24px; display: flex; flex-direction: column; gap: 22px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--navy); padding: 0 8px; }
/* Texto do logo (INSTITUTO DE TEOLOGIA acima de semear), recortado do logo oficial da nova identidade */
.logo-type { display: block; width: 132px; height: auto; }
.logo-type.lg { width: 190px; }
.nav { display: flex; flex-direction: column; gap: 4px; }
.nav-label { font-size: 11px; font-weight: 600; letter-spacing: .12em; color: var(--muted-2); padding: 0 12px 8px; }
.nav-label.gap { padding-top: 14px; }
.nav a, .nav button { display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 0 12px; border-radius: 12px; color: var(--muted); text-decoration: none; font-size: 14px; font-weight: 500; background: none; border: 0; cursor: pointer; text-align: left; width: 100%; }
.nav a:hover, .nav button:hover { background: var(--blue-soft); color: var(--navy); }
.nav a[aria-current="page"] { background: var(--navy); color: var(--white); font-weight: 600; }
.nav .lbl { flex-grow: 1; }
.nav .count { margin-left: auto; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; font-size: 11px; font-weight: 600; display: inline-flex; align-items: center; justify-content: center; background: var(--blue-tint); color: var(--navy); }
.nav a[aria-current="page"] .count { background: var(--blue); color: var(--navy); }
.side-foot { margin-top: auto; display: flex; flex-direction: column; gap: 10px; }
.help { background: var(--navy); border-radius: 20px; padding: 20px 18px; color: var(--white); display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.help strong { font-size: 15px; }
.help span.t { font-size: 12px; line-height: 1.45; color: var(--blue-line); }
.help .btn { min-height: 36px; padding: 0 14px; font-size: 12px; background: var(--white); color: var(--navy); }
.verse { background: var(--blue-soft); border-radius: 18px; padding: 18px; display: flex; flex-direction: column; gap: 8px; }
.verse p { margin: 0; font-family: var(--serif); font-size: 16px; line-height: 1.35; color: var(--navy); }
.eyebrow { font-size: 11px; font-weight: 600; letter-spacing: .08em; color: var(--blue-text); text-transform: uppercase; }

.topbar { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; justify-content: space-between; }
.topbar-right { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.crumbs { font-size: 12px; color: var(--muted-2); }
.crumbs a { color: var(--muted); text-underline-offset: 2px; }
.page-title { font-family: var(--serif); font-weight: 600; font-size: 34px; line-height: 1.05; }
.page-sub { font-size: 14px; color: var(--muted); }
.user-chip { display: flex; align-items: center; gap: 10px; height: 46px; padding: 0 14px 0 5px; background: var(--white); border-radius: 14px; box-shadow: var(--shadow); }
.avatar { width: 36px; height: 36px; border-radius: 10px; background: var(--blue); color: var(--white); font-weight: 600; font-size: 13px; display: flex; align-items: center; justify-content: center; overflow: hidden; flex-shrink: 0; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar.round { border-radius: 999px; }

/* ---------- blocos ---------- */
.card { background: var(--white); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.row { display: flex; flex-wrap: wrap; gap: 18px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.stack { display: flex; flex-direction: column; gap: 12px; }
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; }
.section-title { font-family: var(--serif); font-weight: 600; font-size: 22px; }
.card-title { font-size: 17px; font-weight: 600; color: var(--navy); margin: 0; }
.tile { width: 40px; height: 40px; flex-shrink: 0; border-radius: 12px; display: flex; align-items: center; justify-content: center; background: var(--blue-tint); color: var(--blue-text); font-weight: 700; font-size: 14px; }
.tile.lg { width: 52px; height: 52px; border-radius: 14px; font-size: 16px; }
.tile.navy { background: var(--navy); color: var(--white); }
.tile.mid { background: var(--blue); color: var(--white); }
.tile.sky { background: var(--blue-tint); color: var(--navy); }
.stat { background: var(--blue-wash); border-radius: 16px; padding: 14px; display: flex; flex-direction: column; gap: 2px; }
.stat strong { font-size: 22px; color: var(--navy); line-height: 1.2; }
.stat span { font-size: 12px; color: var(--muted-2); }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px; }
.hero { background-color: var(--navy); background-image: linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px); background-size: 28px 28px; color: var(--white); border-radius: 24px; padding: 34px 38px; position: relative; overflow: hidden; flex: 2 1 480px; min-height: 230px; display: flex; align-items: center; box-shadow: var(--shadow); }
.hero h1 { color: var(--white); font-family: var(--serif); font-weight: 600; font-size: 40px; line-height: 1.04; }
.hero p { color: #E3EAF8; margin: 0; max-width: 520px; }
.hero .inner { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 14px; max-width: 560px; }
.hero .inner .btn { align-self: flex-start; }
.pill { display: inline-flex; align-self: flex-start; align-items: center; gap: 6px; font-size: 11px; font-weight: 600; letter-spacing: .06em; padding: 5px 10px; border-radius: 8px; background: var(--blue); color: var(--navy); text-transform: uppercase; }
.pill.navy { background: var(--navy); color: var(--white); }
.pill.soft { background: var(--blue-tint); color: var(--navy); letter-spacing: 0; text-transform: none; }
.pill.gray { background: #EEF0F4; color: var(--muted); letter-spacing: 0; text-transform: none; }
.pill.ok { background: #E4F4EA; color: var(--ok); letter-spacing: 0; text-transform: none; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 20px; border-radius: 12px; border: 0; cursor: pointer; text-decoration: none; font-size: 14px; font-weight: 600; background: var(--navy); color: var(--white); }
.btn:hover { color: var(--white); background: var(--navy-2); }
.btn.light { background: var(--white); color: var(--navy); }
.btn.light:hover { background: var(--blue-soft); color: var(--navy); }
.btn.soft { background: var(--blue-tint); color: var(--navy); }
.btn.soft:hover { background: #D5E3FD; color: var(--navy); }
.btn.outline { background: var(--white); color: var(--navy); box-shadow: inset 0 0 0 2px var(--navy); }
.btn.danger { background: #FDECEA; color: var(--danger); }
.btn.ghost { background: transparent; color: var(--muted); }
.btn.ghost:hover { background: var(--blue-soft); color: var(--navy); }
.btn.sm { min-height: 36px; padding: 0 14px; font-size: 13px; border-radius: 10px; }
.btn[disabled] { opacity: .5; cursor: default; }
.link-btn { background: none; border: 0; padding: 0; color: var(--blue-text); font-weight: 600; cursor: pointer; font-size: 13px; }

.tabs { display: inline-flex; flex-wrap: wrap; gap: 6px; background: var(--white); padding: 5px; border-radius: 14px; box-shadow: var(--shadow); align-self: flex-start; }
.tabs button { min-height: 40px; padding: 0 16px; border: 0; border-radius: 10px; cursor: pointer; font-size: 13px; font-weight: 600; background: transparent; color: var(--muted); display: inline-flex; align-items: center; gap: 6px; }
.tabs button:hover { color: var(--navy); background: var(--blue-soft); }
.tabs button[aria-selected="true"] { background: var(--navy); color: var(--white); }
.tabs .n { font-weight: 500; opacity: .75; }

.bar { height: 8px; border-radius: 999px; background: var(--track); overflow: hidden; }
.bar > span { display: block; height: 100%; border-radius: 999px; background: var(--blue); }
.bar.done > span { background: var(--navy); }

/* cartões de curso */
.course { background: var(--white); border-radius: var(--radius); padding: 20px; display: flex; flex-direction: column; gap: 14px; box-shadow: var(--shadow); }
.course-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.course .body { display: flex; flex-direction: column; gap: 2px; }
.course h3 { font-size: 16px; font-weight: 600; line-height: 1.3; }
.course .foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: auto; }
.course .foot .next { min-width: 0; display: flex; align-items: center; gap: 6px; }
.course .foot .next .ell { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.course .foot .btn { flex-shrink: 0; }
.meta-row { display: flex; justify-content: space-between; font-size: 12px; gap: 8px; }

/* progresso */
.ring-wrap { display: flex; align-items: center; gap: 20px; }
.kv { display: flex; justify-content: space-between; gap: 16px; font-size: 13px; }
.kv strong { color: var(--navy); }

/* sala da disciplina */
.room { display: flex; flex-wrap: wrap; gap: 18px; align-items: flex-start; }
.room-main { flex: 2 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.room-side { flex: 1 1 300px; min-width: 0; background: var(--white); border-radius: var(--radius); padding: 20px 14px; display: flex; flex-direction: column; gap: 4px; box-shadow: var(--shadow); }
.player { position: relative; aspect-ratio: 16 / 9; border-radius: 24px; overflow: hidden; background: var(--navy); box-shadow: var(--shadow); }
.player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.player .empty { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; color: #E3EAF8; text-align: center; padding: 24px; background-image: linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px); background-size: 28px 28px; }
.lesson-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; }
.mod-title { display: flex; justify-content: space-between; padding: 12px 8px 6px; }
.lesson { display: flex; align-items: center; gap: 12px; min-height: 52px; width: 100%; padding: 6px 8px; border: 0; border-radius: 14px; cursor: pointer; background: transparent; text-align: left; text-decoration: none; color: var(--ink); }
.lesson:hover { background: var(--blue-wash); color: var(--ink); }
.lesson[aria-current="true"] { background: var(--blue-tint); }
.dot { width: 28px; height: 28px; flex-shrink: 0; border-radius: 9px; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 600; background: var(--white); color: var(--muted); box-shadow: inset 0 0 0 2px var(--blue-line); }
.dot.done { background: var(--navy); color: var(--white); box-shadow: none; }
.dot.cur { background: var(--blue); color: var(--white); box-shadow: none; }
.lesson .lt { font-size: 13px; line-height: 1.3; font-weight: 500; display: block; }
.lesson .lm { font-size: 11px; color: var(--muted); display: block; }
.material { display: flex; align-items: center; gap: 14px; min-height: 64px; padding: 10px 12px; border-radius: 16px; text-decoration: none; color: var(--ink); background: var(--blue-wash); }
.material + .material { margin-top: 8px; }
.material:hover { background: var(--blue-tint); color: var(--ink); }
.material .ic { width: 42px; height: 42px; border-radius: 12px; background: var(--blue-tint); color: var(--blue-text); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.material:hover .ic { background: var(--white); }

/* formulários */
.field { display: flex; flex-direction: column; gap: 6px; }
.field label, .label { font-size: 13px; font-weight: 600; color: var(--navy); }
.input, select.input, textarea.input { width: 100%; min-height: 44px; padding: 10px 14px; border: 1px solid var(--blue-line); border-radius: 12px; background: var(--white); }
textarea.input { min-height: 96px; resize: vertical; line-height: 1.5; }
.input:focus { outline: 2px solid var(--blue); border-color: var(--blue); }
.hint { font-size: 12px; color: var(--muted); }
.form-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
/* Altura fixa e sem "esticar": a busca aparece tanto em linha (topo, filtros) quanto em coluna (Meus cursos). */
.search { display: flex; align-items: center; gap: 10px; height: 46px; min-height: 46px; padding: 0 16px; background: var(--white); border-radius: 14px; color: var(--muted-2); flex: 0 0 auto; width: 100%; max-width: 420px; box-shadow: var(--shadow); }
.section-head .search { width: 340px; max-width: 100%; }
.search input { flex: 1; border: 0; outline: none; background: transparent; font-size: 14px; color: var(--ink); min-width: 0; }
.search.flat { box-shadow: none; background: var(--blue-wash); }
/* escolhas em forma de "chip" (tipo de publicação, turmas) */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px; border-radius: 12px; background: var(--blue-wash); color: var(--navy); font-size: 13px; font-weight: 600; cursor: pointer; border: 0; }
.chip:hover { background: var(--blue-tint); }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip:has(input:checked), .chip[aria-pressed="true"], .chip[aria-selected="true"] { background: var(--navy); color: var(--white); }
.chip:has(input:focus-visible) { outline: 3px solid var(--blue); outline-offset: 2px; }
.check { display: flex; gap: 10px; align-items: center; font-weight: 600; color: var(--navy); font-size: 14px; }
.check input { width: 20px; height: 20px; accent-color: var(--navy); }

/* tabelas */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th { text-align: left; font-size: 12px; font-weight: 600; color: var(--muted); padding: 10px 12px; border-bottom: 1px solid #E6ECF6; white-space: nowrap; }
td { padding: 12px; border-bottom: 1px solid #E6ECF6; vertical-align: middle; }

/* editor de curso */
.mod-box { border: 1px solid var(--blue-line); border-radius: 18px; padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.lesson-box { background: var(--blue-wash); border-radius: 14px; padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.toolbar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }

/* mural */
.mural { display: flex; flex-wrap: wrap; gap: 18px; align-items: flex-start; }
.mural-main { flex: 2 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.mural-side { flex: 1 1 290px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.post { display: flex; flex-direction: column; gap: 14px; }
.post-head { display: flex; align-items: center; gap: 12px; }
.post-head .who { display: flex; flex-direction: column; line-height: 1.3; flex-grow: 1; min-width: 0; }
.post-head .who > span:first-child { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.role { font-size: 11px; font-weight: 600; padding: 3px 8px; border-radius: 7px; background: var(--blue-tint); color: var(--navy); }
.role.staff { background: var(--navy); color: var(--white); }
.pinned { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: var(--blue-text); background: var(--blue-soft); padding: 6px 10px; border-radius: 10px; flex-shrink: 0; }
.post h2 { font-size: 18px; font-weight: 600; line-height: 1.3; }
.post .txt { margin: 0; font-size: 14px; line-height: 1.65; color: var(--muted); white-space: pre-line; overflow-wrap: anywhere; }
.event { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; padding: 12px; border-radius: 16px; background: linear-gradient(90deg, var(--blue-tint), var(--blue-wash)); }
.event .day { width: 52px; height: 52px; flex-shrink: 0; border-radius: 14px; background: var(--white); display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1.05; color: var(--navy); }
.event .day strong { font-size: 18px; }
.event .day span { font-size: 10px; font-weight: 600; color: var(--blue-text); text-transform: uppercase; }
.post-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.useful { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 12px; border-radius: 10px; border: 0; cursor: pointer; font-size: 13px; font-weight: 600; background: var(--blue-wash); color: var(--navy); }
.useful[aria-pressed="true"] { background: var(--navy); color: var(--white); }
.comment { display: flex; gap: 10px; }
.comment .bubble { flex-grow: 1; min-width: 0; background: var(--blue-wash); border-radius: 4px 14px 14px 14px; padding: 10px 14px; display: flex; flex-direction: column; gap: 2px; }
.comment .bubble .top { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.comment .bubble .t { font-size: 13px; line-height: 1.5; white-space: pre-line; overflow-wrap: anywhere; }
.reply { display: flex; align-items: center; gap: 8px; min-height: 52px; padding: 4px 4px 4px 16px; border-radius: 14px; background: var(--blue-wash); }
.reply input { flex-grow: 1; min-width: 0; border: 0; outline: none; background: transparent; font-size: 14px; }
.composer textarea { border: 0; background: var(--blue-wash); min-height: 84px; }
.preview { border: 2px dashed var(--blue-line); border-radius: var(--radius); padding: 18px; background: var(--white); }

/* login */
.login { min-height: 100vh; display: flex; flex-wrap: wrap; }
.login-art { flex: 1 1 420px; min-height: 320px; display: flex; flex-direction: column; justify-content: space-between; gap: 24px; padding: 48px; color: var(--white); background-color: var(--navy); background-image: linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px); background-size: 28px 28px; position: relative; overflow: hidden; }
.login-art h1 { color: var(--white); font-family: var(--serif); font-weight: 600; font-size: 52px; line-height: 1; max-width: 520px; }
.login-art p { color: #E3EAF8; max-width: 440px; }
.login-art .verse-line { font-family: var(--serif); font-size: 15px; color: #C9D5F0; max-width: 420px; margin: 0; }
.login-form { flex: 1 1 420px; display: flex; align-items: center; justify-content: center; padding: 48px 24px; background: var(--bg); }
.login-box { width: 100%; max-width: 420px; display: flex; flex-direction: column; gap: 18px; background: var(--white); border-radius: 24px; padding: 32px; box-shadow: var(--shadow); }
.google-btn { display: flex; align-items: center; justify-content: center; gap: 12px; min-height: 52px; border-radius: 14px; border: 0; background: var(--white); color: var(--navy); font-weight: 600; font-size: 15px; cursor: pointer; box-shadow: inset 0 0 0 1px var(--blue-line); }
.google-btn:hover { background: var(--blue-wash); }

.notice { padding: 14px 16px; border-radius: 14px; background: var(--blue-soft); color: var(--navy); font-size: 13px; }
.notice.warn { background: #FFF4E0; color: #6B4300; }
.notice.err { background: #FDECEA; color: var(--danger); }
.empty-state { text-align: center; padding: 40px 20px; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--navy); color: var(--white); padding: 12px 20px; border-radius: 14px; font-size: 14px; font-weight: 500; z-index: 50; box-shadow: 0 8px 24px rgba(1,31,91,.25); max-width: calc(100vw - 32px); }
.toast.err { background: var(--danger); }
.loading { min-height: 60vh; display: flex; align-items: center; justify-content: center; color: var(--muted); }

/* Ajustes vindos do canvas (busca no painel, professor, etiquetas, cabeçalho do conteúdo) */
.search.wide { flex: 1 1 320px; width: auto; max-width: none; }
.avatar.navy { width: 40px; height: 40px; background: var(--navy); color: var(--white); }
.prof-card { gap: 10px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.tag { font-size: 12px; font-weight: 500; padding: 6px 12px; border-radius: 10px; background: var(--blue-tint); color: var(--navy); }
.side-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; padding: 0 8px 10px; }
.list-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; padding: 14px 0; border-bottom: 1px solid #E6ECF6; }
.list-row:last-child { border-bottom: 0; }
.list-row .grow { flex: 1 1 220px; min-width: 0; display: flex; flex-direction: column; gap: 2px; }

/* Professor dentro da sala (aparece só no celular, onde o menu lateral não mostra o cartão) */
.prof-inline { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.prof-inline .who { display: flex; align-items: center; gap: 10px; flex: 1 1 180px; min-width: 0; }

/* Computador: o menu lateral e a coluna "Conteúdo" da aula acompanham a rolagem */
@media (min-width: 821px) {
  .sidebar { position: sticky; top: 16px; align-self: flex-start; height: calc(100vh - 32px); overflow-y: auto; }
  .room-side, .mural-side { position: sticky; top: 16px; max-height: calc(100vh - 32px); overflow-y: auto; }
  .prof-inline { display: none; }
}
@media (max-width: 820px) {
  .shell { padding: 10px; gap: 10px; }
  .sidebar { padding: 14px 10px; gap: 12px; }
  .sidebar .nav { flex-direction: row; flex-wrap: nowrap; overflow-x: auto; gap: 4px; margin: 0 -4px; padding: 0 4px 2px; scrollbar-width: none; }
  .sidebar .nav::-webkit-scrollbar { display: none; }
  .sidebar .nav a, .sidebar .nav button { width: auto; flex: 0 0 auto; min-height: 40px; padding: 0 10px; font-size: 13px; gap: 7px; position: relative; }
  .sidebar .nav .count { margin-left: 2px; }
  .user-chip { padding: 0 5px; height: 46px; }
  .user-chip > span:last-child { display: none !important; }
  .topbar { flex-wrap: nowrap; align-items: flex-end; }
  .topbar > .stack { min-width: 0; }
  .topbar-right { flex-wrap: nowrap; }
  .search.wide { flex: 1 1 auto; min-width: 0; }
  /* no celular, alguns itens viram só ícone (o nome continua para leitores de tela e no "title") */
  .sidebar .nav .lbl-opt { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .sidebar .nav a:has(.lbl-opt), .sidebar .nav button:has(.lbl-opt) { padding: 0 9px; }
  .nav-label, .verse, .help, .side-foot { display: none; }
  .content { padding: 6px 2px 24px; }
  .page-title { font-size: 28px; }
  .hero { padding: 26px 22px; }
  .hero h1 { font-size: 32px; }
  .tabs { max-width: 100%; }
  .tabs button { padding: 0 12px; }
  .card { padding: 18px; }
  .login-art { padding: 32px 24px; }
  .login-art h1 { font-size: 38px; }
  .login-box { padding: 24px 20px; }
}
/* itens do menu que só aparecem no celular (no computador ficam no rodapé do menu) */
.nav .m-only { display: none; }
@media (max-width: 820px) { .sidebar .nav .m-only { display: flex; } }
/* formulário de publicação: mostra só os campos do tipo escolhido */
.pub .only-material, .pub .only-aovivo { display: none; }
.pub[data-type="material"] .only-material, .pub[data-type="aovivo"] .only-aovivo { display: revert; }
.pub[data-type="material"] .field.only-material, .pub[data-type="aovivo"] .field.only-aovivo { display: flex; }
.stat .tile { width: 36px; height: 36px; margin-bottom: 6px; }
/* anexos do mural (imagem e PDF) */
.att-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.att-list { display: flex; flex-wrap: wrap; gap: 8px; min-width: 0; }
.att-list:empty { display: none; }
.att-chip { display: inline-flex; align-items: center; gap: 8px; max-width: 100%; min-height: 40px; padding: 4px 10px 4px 4px; border-radius: 12px; background: var(--blue-wash); color: var(--navy); font-size: 13px; }
.att-chip > .icon { margin-left: 6px; color: var(--blue-text); }
.att-chip img { width: 32px; height: 32px; border-radius: 8px; object-fit: cover; }
.att-chip .ell { max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 500; }
.att-bar label.btn { cursor: pointer; position: relative; }
.att-bar label.btn:focus-within { outline: 3px solid var(--blue); outline-offset: 2px; }
.att-imgs { display: grid; gap: 6px; border-radius: 16px; overflow: hidden; }
.att-imgs.n2, .att-imgs.n4 { grid-template-columns: 1fr 1fr; }
.att-imgs.n3 { grid-template-columns: 1fr 1fr 1fr; }
.att-imgs img, .att-img { display: block; width: 100%; border: 0; padding: 0; background: var(--blue-wash); cursor: zoom-in; }
.att-imgs img { max-height: 460px; object-fit: cover; min-height: 120px; }
.att-imgs.n1 img { object-fit: contain; background: var(--blue-wash); }
.pub .not-aovivo { display: flex; }
.pub[data-type="aovivo"] .not-aovivo { display: none; }
/* caixas dos 3 cursos (mesmo vazias) */
.turma-empty { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 16px; border-radius: 14px; border: 2px dashed var(--blue-line); background: var(--blue-wash); }
.card.turma-empty { box-shadow: none; }
a.course:hover { box-shadow: 0 2px 4px rgba(1,31,91,.06), 0 12px 28px rgba(1,31,91,.10); }
