/* ══════════════════════════════════════════════════════════════
   Base
══════════════════════════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --p:         #0284c7;
  --p-dark:    #0369a1;
  --p-deeper:  #075985;
  --p-light:   #e0f2fe;
  --p-xlight:  #f0f9ff;

  --verde:      #059669;
  --verde-bg:   #d1fae5;
  --verde-t:    #065f46;
  --vermelho:   #dc2626;
  --vermelho-bg:#fee2e2;
  --vermelho-t: #991b1b;
  --amarelo:    #d97706;
  --amarelo-bg: #fef3c7;
  --amarelo-t:  #92400e;
  --indigo:     #4f46e5;
  --indigo-bg:  #eef2ff;
  --indigo-t:   #3730a3;

  --bg:     #f1f5f9;
  --surf:   #ffffff;
  --surf2:  #f8fafc;
  --txt:    #0f172a;
  --txt2:   #475569;
  --txt3:   #94a3b8;
  --borda:  #e2e8f0;

  --shadow-xs: 0 1px 2px rgba(0,0,0,.05);
  --shadow-sm: 0 2px 8px rgba(0,0,0,.07);
  --shadow-md: 0 4px 20px rgba(0,0,0,.09);
  --shadow-lg: 0 16px 48px rgba(0,0,0,.14);
  --shadow-p:  0 8px 24px rgba(2,132,199,.3);

  --r-xs: 6px;
  --r-sm: 8px;
  --r:    12px;
  --r-md: 16px;
  --r-lg: 20px;
  --r-xl: 28px;
  --r-full: 999px;

  --t: .18s ease;

  /* Tema dinâmico (alterado pelo JS) */
  --tema:       #0284c7;
  --tema-dark:  #0369a1;
  --tema-light: #e0f2fe;
  --tema-xlight:#f0f9ff;
  --tema-grad:  linear-gradient(135deg, #0369a1 0%, #0284c7 100%);
  --tema-shadow:0 8px 24px rgba(2,132,199,.32);
}

html, body {
  width: 100%;
  max-width: 100%;
}

/* Previne zoom automático ao tocar em elementos no iOS/Chrome */
html {
  touch-action: manipulation;
}
* {
  -webkit-tap-highlight-color: transparent;
}
button, a, input, select, textarea, label, [role="button"] {
  touch-action: manipulation;
}
/* Font-size mínimo 16px em inputs para evitar zoom de foco no iOS Chrome */
@media (max-width: 768px) {
  input, select, textarea {
    font-size: 16px !important;
  }
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--txt);
  min-height: 100vh;
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  max-width: 100vw;
  /* Previne zoom por duplo-toque no Android Chrome */
  touch-action: manipulation;
  -ms-touch-action: manipulation;
}

.tela          { min-height: 100vh; }
#tela-st-detalhe {
  height: 100vh; height: 100dvh;
  min-height: unset; overflow: hidden; position: relative;
  /* safe area bottom p/ Android (barra de navegação gestual) */
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
.oculto { display: none !important; }

/* ══════════════════════════════════════════════════════════════
   Botões e Inputs globais
══════════════════════════════════════════════════════════════ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  padding: 10px 20px; border: none; border-radius: var(--r-sm);
  font-family: inherit; font-size: 14px; font-weight: 600;
  cursor: pointer; transition: all var(--t); white-space: nowrap;
  text-decoration: none; letter-spacing: -.01em;
}
.btn:active { transform: scale(.97); }
.btn:disabled { opacity: .5; cursor: not-allowed; }

.btn-primario {
  background: var(--tema-grad);
  color: #fff;
  box-shadow: var(--tema-shadow);
}
.btn-primario:hover:not(:disabled) {
  filter: brightness(1.08);
  box-shadow: 0 10px 28px rgba(2,132,199,.4);
  transform: translateY(-1px);
}

.btn-ghost { background: transparent; color: var(--txt2); }
.btn-ghost:hover { background: var(--surf2); }

.btn-perigo { background: var(--vermelho-bg); color: var(--vermelho); }
.btn-perigo:hover { background: #fca5a5; }

.btn-sm { padding: 6px 12px; font-size: 12px; }

.campo { display: flex; flex-direction: column; gap: 6px; }
.campo label {
  font-size: 12px; font-weight: 700; color: var(--txt2);
  letter-spacing: .04em; text-transform: uppercase;
  display: flex; align-items: center; gap: 6px;
}
.label-dica { font-size: 11px; font-weight: 500; color: var(--txt3); text-transform: none; letter-spacing: 0; }

.campo input, .campo select, .campo textarea {
  padding: 11px 14px; border: 1.5px solid var(--borda); border-radius: var(--r-sm);
  font-size: 14px; color: var(--txt); background: var(--surf);
  transition: border-color var(--t), box-shadow var(--t);
  outline: none; font-family: inherit; appearance: none;
}
.campo input:focus, .campo select:focus, .campo textarea:focus {
  border-color: var(--tema);
  box-shadow: 0 0 0 3px var(--tema-light);
}
.campo textarea { resize: vertical; min-height: 82px; }

.select-wrap { position: relative; }
.select-wrap select { width: 100%; padding-right: 38px; cursor: pointer; }
.select-icone {
  position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
  color: var(--txt3); font-size: 13px; pointer-events: none;
}

.input-icon-wrap { position: relative; }
.input-icon-wrap input { width: 100%; padding-left: 42px; }
.input-icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--txt3); font-size: 16px; pointer-events: none; }
#btn-ver-senha {
  position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
  background: none; border: none; cursor: pointer; color: var(--txt3);
  font-size: 16px; padding: 4px; transition: color var(--t);
  display: flex; align-items: center;
}
#btn-ver-senha:hover { color: var(--tema); }

.msg-erro {
  background: var(--vermelho-bg); color: var(--vermelho-t);
  padding: 10px 14px; border-radius: var(--r-sm); font-size: 13px;
  font-weight: 500; border-left: 3px solid var(--vermelho);
  display: flex; align-items: center; gap: 8px;
}
.msg-sucesso {
  background: var(--verde-bg); color: var(--verde-t);
  padding: 10px 14px; border-radius: var(--r-sm); font-size: 13px;
  font-weight: 500; border-left: 3px solid var(--verde);
}

/* ══════════════════════════════════════════════════════════════
   LOGIN — DESKTOP
══════════════════════════════════════════════════════════════ */
.login-wrap {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.login-painel-esq {
  background: linear-gradient(145deg, #0f172a 0%, #0c4a6e 50%, #0369a1 100%);
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 48px; position: relative; overflow: hidden;
}
/* Onda SVG — oculta no desktop */
.login-wave { display: none; }

.login-brand { position: relative; z-index: 1; color: white; }
.login-escola-img {
  width: 90px; height: 90px; object-fit: contain;
  margin-bottom: 24px; filter: drop-shadow(0 4px 12px rgba(0,0,0,.3));
  border-radius: var(--r-sm);
}
.login-brand h2 { font-size: 26px; font-weight: 800; line-height: 1.25; margin-bottom: 12px; letter-spacing: -.03em; }
.login-brand p  { font-size: 14px; color: rgba(255,255,255,.65); line-height: 1.6; max-width: 280px; }

/* Elementos decorativos */
.deco { position: absolute; border-radius: 50%; pointer-events: none; }
.deco-1 { width: 350px; height: 350px; background: rgba(255,255,255,.04); top: -80px; right: -100px; }
.deco-2 { width: 200px; height: 200px; background: rgba(2,132,199,.15); bottom: 80px; right: -40px; border: 1px solid rgba(255,255,255,.08); }
.deco-3 { width: 120px; height: 120px; background: rgba(255,255,255,.06); top: 40%; left: 10px; }

.login-painel-dir {
  display: flex; align-items: center; justify-content: center;
  padding: 32px 24px; background: var(--surf);
}
.login-form-wrap { width: 100%; max-width: 380px; }

.login-form-topo { margin-bottom: 32px; }
.login-form-topo h1 { font-size: 28px; font-weight: 800; letter-spacing: -.04em; margin-bottom: 6px; }
.login-form-topo p  { font-size: 14px; color: var(--txt2); }

/* ══════════════════════════════════════════════════════════════
   LOGIN — MOBILE
══════════════════════════════════════════════════════════════ */
@media (max-width: 720px) {
  /* Página toda: azul em cima, branco embaixo */
  #tela-login { background: #ffffff; }

  .login-wrap {
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr;
    min-height: 100vh;
    background: transparent;
  }

  /* ── Header azul ── */
  .login-painel-esq {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 52px 28px 40px;
    min-height: 0;
    text-align: center;
    overflow: hidden;
    border-radius: 0 0 28px 28px;
  }
  /* Círculo grande desfocado no canto superior direito */
  .login-painel-esq::before {
    content: '';
    position: absolute;
    width: 240px; height: 240px;
    border-radius: 50%;
    background: rgba(255,255,255,.07);
    top: -60px; right: -70px;
    pointer-events: none;
  }
  /* Círculo menor no canto inferior esquerdo */
  .login-painel-esq::after {
    content: '';
    position: absolute;
    width: 130px; height: 130px;
    border-radius: 50%;
    background: rgba(255,255,255,.06);
    bottom: 60px; left: -30px;
    pointer-events: none;
  }

  /* Logo com brilho */
  .login-escola-img {
    width: 86px; height: 86px; margin-bottom: 14px;
    filter: drop-shadow(0 4px 16px rgba(0,0,0,.35));
    border-radius: 18px;
  }
  /* Anel ao redor do logo */
  .login-escola-img { outline: 3px solid rgba(255,255,255,.18); outline-offset: 4px; }

  .login-brand { text-align: center; position: relative; z-index: 1; }
  .login-brand h2 { font-size: 19px; margin-bottom: 5px; line-height: 1.3; }
  .login-brand p  { font-size: 12px; max-width: 240px; margin: 0 auto; }

  /* Esconde decos originais no mobile (muito grandes) */
  .deco-1, .deco-2, .deco-3 { display: none; }

  /* Onda removida — borda limpa */
  .login-wave { display: none; }

  /* ── Área do formulário ── */
  .login-painel-dir {
    align-items: flex-start;
    padding: 28px 26px 48px;
    background: #ffffff;
  }
  .login-form-wrap { max-width: 100%; width: 100%; }

  .login-form-topo { margin-bottom: 22px; margin-top: 4px; }
  .login-form-topo h1 { font-size: 24px; color: #0f172a; }
  .login-form-topo p  { font-size: 13.5px; }
}

.login-form-wrap form { display: flex; flex-direction: column; gap: 18px; }

.btn-login {
  width: 100%; padding: 13px;
  background: var(--tema-grad); color: white;
  border-radius: var(--r-sm); font-size: 15px; font-weight: 700;
  box-shadow: var(--shadow-p); border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between;
  font-family: inherit; transition: all var(--t); margin-top: 6px;
  letter-spacing: -.01em;
}
.btn-login:hover { filter: brightness(1.07); transform: translateY(-1px); box-shadow: 0 12px 32px rgba(2,132,199,.4); }
.btn-login:active { transform: translateY(0); }
.btn-login:disabled { opacity: .6; cursor: not-allowed; }

/* ══════════════════════════════════════════════════════════════
   HEADER
══════════════════════════════════════════════════════════════ */
.header {
  height: calc(60px + env(safe-area-inset-top, 0px));
  background: #0f172a;
  display: flex; align-items: center; justify-content: space-between;
  padding: env(safe-area-inset-top, 0px) 20px 0;
  position: sticky; top: 0; z-index: 100;
  box-shadow: 0 1px 0 rgba(255,255,255,.06), 0 4px 12px rgba(0,0,0,.25);
}

.header-esq { display: flex; align-items: center; gap: 10px; }
.header-logo {
  width: 42px; height: 42px; background: white; border-radius: var(--r-sm);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; overflow: hidden; padding: 3px;
  box-shadow: 0 2px 8px rgba(0,0,0,.2);
}
.header-logo-img { width: 100%; height: 100%; object-fit: contain; }
.header-escola { display: block; font-size: 15px; font-weight: 800; color: white; letter-spacing: -.01em; line-height: 1.1; }
.header-sub    { display: block; font-size: 11px; color: rgba(255,255,255,.5); font-weight: 400; }

.header-dir { display: flex; align-items: center; gap: 8px; }
.header-user {
  display: flex; align-items: center; gap: 8px;
  padding: 5px 12px 5px 6px; border-radius: var(--r-full);
  background: rgba(255,255,255,.08); cursor: pointer;
  border: 1px solid rgba(255,255,255,.1);
  transition: background var(--t), border-color var(--t);
}
.header-user:hover { background: rgba(255,255,255,.15); border-color: rgba(255,255,255,.22); }
.header-user-seta { font-size: 10px; color: rgba(255,255,255,.5); margin-left: -2px; }
.header-user-avatar {
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--tema-grad); display: flex; align-items: center; justify-content: center;
  font-size: 13px; color: white; flex-shrink: 0;
}
#header-nome { font-size: 13px; font-weight: 600; color: rgba(255,255,255,.9); display: none; max-width: 150px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (min-width: 480px) { #header-nome { display: block; } }

.btn-icone {
  width: 36px; height: 36px; border-radius: var(--r-sm);
  border: 1px solid rgba(255,255,255,.12); background: rgba(255,255,255,.07);
  color: rgba(255,255,255,.7); font-size: 16px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all var(--t);
}
.btn-icone:hover { background: rgba(255,255,255,.14); color: white; }
.btn-icone-sair { border-color: rgba(239,68,68,.25); background: rgba(239,68,68,.1); color: rgba(255,160,160,.8); }
.btn-icone-sair:hover { background: rgba(239,68,68,.2); color: #fca5a5; }

/* ══════════════════════════════════════════════════════════════
   SELETOR DE LOCAL (Nav tabs tipo pill — como na imagem)
══════════════════════════════════════════════════════════════ */
.nav-locais-wrap {
  background: var(--surf); border-bottom: 1px solid var(--borda);
  padding: 14px 20px; display: flex; align-items: center; gap: 16px;
  flex-wrap: wrap;
}
.nav-locais-label {
  font-size: 12px; font-weight: 700; color: var(--txt3);
  text-transform: uppercase; letter-spacing: .06em; white-space: nowrap;
  display: none;
}
@media (min-width: 600px) { .nav-locais-label { display: block; } }

.nav-locais {
  display: flex; gap: 8px; overflow-x: auto;
  scrollbar-width: none; -ms-overflow-style: none; flex: 1;
}
.nav-locais::-webkit-scrollbar { display: none; }

.nav-local {
  display: flex; align-items: center; gap: 8px;
  padding: 9px 18px; border-radius: var(--r-full);
  border: 1.5px solid var(--borda); background: var(--surf2);
  font-family: inherit; font-size: 13px; font-weight: 600; color: var(--txt2);
  cursor: pointer; transition: all .2s ease; white-space: nowrap; flex-shrink: 0;
}
.nav-local i { font-size: 15px; }
.nav-local-img { width: 24px; height: 24px; object-fit: contain; flex-shrink: 0; transition: filter .2s; }
.nav-local:hover:not(.ativo) { border-color: var(--tema); color: var(--tema); background: var(--tema-xlight); }
.nav-local.ativo {
  background: var(--tema-grad); color: white; border-color: transparent;
  box-shadow: var(--tema-shadow), 0 0 0 3px white, 0 0 0 5px var(--tema);
}
.nav-local.ativo .nav-local-img { filter: brightness(0) invert(1); }

/* ══════════════════════════════════════════════════════════════
   BARRA DO LOCAL ATIVO
══════════════════════════════════════════════════════════════ */
.local-ativo-bar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 22px; gap: 12px;
  background: var(--tema-xlight);
  border-bottom: 1px solid var(--tema-light);
  transition: background .3s, border-color .3s;
}
.local-ativo-esq { display: flex; align-items: center; gap: 12px; min-width: 0; }

.local-ativo-icone-wrap {
  width: 48px; height: 48px; border-radius: var(--r-sm);
  background: var(--tema-grad);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; padding: 8px;
  box-shadow: var(--tema-shadow);
  transition: background .3s, box-shadow .3s;
}
.local-ativo-img { width: 100%; height: 100%; object-fit: contain; filter: brightness(0) invert(1); }
.local-ativo-nome {
  font-size: 16px; font-weight: 800; color: var(--txt); letter-spacing: -.02em;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.local-ativo-desc { font-size: 12px; color: var(--txt2); margin-top: 1px; }

.local-ativo-tag {
  display: flex; align-items: center; gap: 5px;
  padding: 5px 12px; border-radius: var(--r-full);
  background: rgba(2,132,199,.12); color: var(--tema);
  font-size: 12px; font-weight: 700; white-space: nowrap; flex-shrink: 0;
  border: 1px solid rgba(2,132,199,.2);
  transition: background .3s, color .3s;
}

.local-ativo-dir {
  display: flex; align-items: center; gap: 8px; flex-shrink: 0;
}

.btn-ajuda {
  display: flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; border-radius: 50%;
  border: none; cursor: pointer;
  background: rgba(2,132,199,.12); color: var(--tema);
  font-size: 17px; transition: background .2s, transform .15s;
  flex-shrink: 0;
}
.btn-ajuda:hover {
  background: rgba(2,132,199,.22); transform: scale(1.1);
}

/* ── Modal Atividades ─────────────────────────────────────── */
.modal-atividades-box {
  max-width: 560px; width: 95%;
  max-height: 88vh; display: flex; flex-direction: column;
  background: #fff; border-radius: var(--r-lg); overflow: hidden;
  box-shadow: 0 24px 60px rgba(15,23,42,.22), 0 0 0 1px rgba(0,0,0,.06);
  animation: slideUp .22s cubic-bezier(.16,1,.3,1);
}

/* Cabeçalho */
.modal-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 20px 0 0; flex-shrink: 0;
  background: linear-gradient(135deg, var(--tema) 0%, #0284c7 100%);
}
.modal-header-esq {
  display: flex; align-items: center; gap: 14px; padding: 20px 20px;
}
.modal-icone {
  width: 46px; height: 46px; border-radius: var(--r-sm); flex-shrink: 0;
  background: rgba(255,255,255,.2);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; color: #fff;
}
.modal-titulo   { font-size: 16px; font-weight: 800; color: #fff; letter-spacing: -.02em; }
.modal-subtitulo { font-size: 12px; color: rgba(255,255,255,.75); margin-top: 2px; }
.modal-fechar {
  width: 34px; height: 34px; border-radius: 50%; border: none; cursor: pointer;
  background: rgba(255,255,255,.15); color: #fff; font-size: 14px;
  display: flex; align-items: center; justify-content: center;
  transition: background .2s; flex-shrink: 0;
}
.modal-fechar:hover { background: rgba(255,255,255,.28); }

/* Corpo */
.modal-atividades-body {
  padding: 20px 22px 4px;
  overflow-y: auto; flex: 1;
  scrollbar-width: thin; scrollbar-color: var(--tema) transparent;
  background: #fff;
}
.modal-atividades-body::-webkit-scrollbar { width: 5px; }
.modal-atividades-body::-webkit-scrollbar-track { background: transparent; }
.modal-atividades-body::-webkit-scrollbar-thumb { background: var(--tema); border-radius: 99px; }

/* Rodapé */
.modal-atividades-footer {
  padding: 12px 22px; border-top: 1px solid var(--borda);
  display: flex; justify-content: flex-end;
  background: #f8fafc;
  flex-shrink: 0;
}

.ativ-intro {
  font-size: 13px; font-weight: 600; color: var(--txt2);
  margin-bottom: 12px; letter-spacing: .01em; text-transform: uppercase;
}

.ativ-lista {
  list-style: none; padding: 0; margin: 0 0 16px;
  display: flex; flex-direction: column; gap: 7px;
}
.ativ-lista li {
  display: flex; align-items: center; gap: 12px;
  background: #f8fafc; border-radius: 10px;
  padding: 11px 14px; font-size: 13.5px; color: var(--txt); line-height: 1.4;
  border: 1px solid #e2e8f0;
  transition: background .15s, border-color .15s;
}
.ativ-lista li:hover { background: var(--tema-xlight); border-color: var(--tema); }
.ativ-lista li i {
  color: var(--tema); font-size: 16px; flex-shrink: 0;
}

.ativ-em-breve { opacity: .6; }
.ativ-em-breve:hover { opacity: .7; }

.ativ-badge-breve {
  margin-left: auto; flex-shrink: 0;
  font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px;
  background: #ede9fe; color: #6d28d9;
  padding: 2px 8px; border-radius: var(--r-full);
  white-space: nowrap;
}

.ativ-aviso {
  display: flex; align-items: flex-start; gap: 10px;
  background: #fffbeb; border: 1px solid #fcd34d; border-radius: 10px;
  padding: 12px 14px; font-size: 13px; color: #78350f; line-height: 1.55;
  margin-bottom: 8px;
}
.ativ-aviso i { font-size: 16px; color: #d97706; flex-shrink: 0; margin-top: 1px; }
.ativ-aviso.ativ-aviso-responsabilidade {
  background: #eff6ff; border-color: #93c5fd; color: #1e3a5f;
}
.ativ-aviso.ativ-aviso-responsabilidade i { color: #3b82f6; }

/* ══════════════════════════════════════════════════════════════
   AVISOS
══════════════════════════════════════════════════════════════ */
.avisos-wrap {
  display: flex; flex-direction: column; gap: 0;
}
.aviso-banner {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 11px 20px; border-left: 4px solid transparent;
  font-size: 13.5px; line-height: 1.5; font-weight: 500;
  animation: slideDown .25s ease;
}
@keyframes slideDown {
  from { opacity:0; transform:translateY(-6px); }
  to   { opacity:1; transform:translateY(0); }
}
.aviso-banner-icone { font-size: 16px; flex-shrink: 0; margin-top: 1px; }
.aviso-banner-txt   { flex: 1; }

/* Admin: lista de avisos */
.aviso-admin-item {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 12px 16px; border-radius: var(--r);
  border: 1px solid var(--borda); border-left: 4px solid transparent;
  background: var(--bg); margin-bottom: 8px;
}
.aviso-admin-corpo { flex: 1; min-width: 0; }
.aviso-admin-msg   { font-size: 13.5px; font-weight: 500; color: var(--txt); margin-bottom: 6px; }
.aviso-admin-meta  { display: flex; flex-wrap: wrap; gap: 6px; }
.aviso-admin-badge {
  font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: var(--r-full);
  background: var(--bg2); color: var(--txt2); border: 1px solid var(--borda);
  display: flex; align-items: center; gap: 4px;
}

/* ══════════════════════════════════════════════════════════════
   LEGENDA
══════════════════════════════════════════════════════════════ */
.legenda-wrap { background: var(--surf); border-bottom: 1px solid var(--borda); padding: 8px 20px; }
.legenda-scroll {
  display: flex; gap: 8px; overflow-x: auto; flex-wrap: wrap;
  scrollbar-width: none;
}
.legenda-scroll::-webkit-scrollbar { display: none; }

.chip {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 4px 10px; border-radius: var(--r-full);
  font-size: 12px; font-weight: 600; white-space: nowrap;
}
.chip i { font-size: 11px; }
.chip-disponivel  { background: var(--verde-bg);    color: var(--verde-t); }
.chip-ocupado     { background: var(--vermelho-bg);  color: var(--vermelho-t); }
.chip-manutencao  { background: var(--amarelo-bg);   color: var(--amarelo-t); }
.chip-meu         { background: var(--indigo-bg);    color: var(--indigo-t); }

/* ══════════════════════════════════════════════════════════════
   TABELA
══════════════════════════════════════════════════════════════ */
.tabela-area { padding: 16px 16px 110px; }

.tabela-card {
  background: var(--surf); border-radius: var(--r-md);
  box-shadow: var(--shadow-md); border: 1px solid var(--borda); overflow: hidden;
}
.tabela-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }

.estado-loading {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 64px 20px; color: var(--txt3); gap: 16px;
}
.estado-loading p { font-size: 14px; font-weight: 500; }
.estado-vazio { text-align: center; color: var(--txt3); padding: 24px; font-size: 13px; }

.spinner {
  width: 40px; height: 40px;
  border: 3px solid var(--borda); border-top-color: var(--tema);
  border-radius: 50%; animation: spin .75s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.tabela { width: 100%; border-collapse: collapse; min-width: 600px; font-size: 13px; }
.tabela th, .tabela td { border-bottom: 1px solid var(--borda); border-right: 1px solid var(--borda); padding: 0; }
.tabela tr:last-child td { border-bottom: none; }
.tabela th:last-child, .tabela td:last-child { border-right: none; }

/* Cabeçalho */
.th-vazio {
  width: 82px; min-width: 82px;
  background: var(--tema-dark);
  position: -webkit-sticky;
  position: sticky;
  left: 0;
  z-index: 3;
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
}
.th-dia {
  background: var(--tema); color: white;
  padding: 12px 8px; min-width: 108px; text-align: center;
  transition: background .3s;
}
.th-dia.hoje { background: var(--tema-deep, var(--tema-dark)); position: relative; }
.th-dia.hoje::after {
  content: ''; position: absolute; bottom: 0; left: 20%; right: 20%;
  height: 2px; background: rgba(255,255,255,.6); border-radius: 2px 2px 0 0;
}
.th-semana { display: block; font-size: 10px; opacity: .75; font-weight: 500; text-transform: uppercase; letter-spacing: .06em; }
.th-data   { display: block; font-size: 15px; font-weight: 800; margin-top: 2px; letter-spacing: -.02em; }
.th-hoje   { display: block; font-size: 10px; background: rgba(255,255,255,.2); border-radius: var(--r-full); padding: 1px 6px; margin: 4px auto 0; width: fit-content; }

/* Linha de turno */
.tr-turno td {
  background: var(--tema-xlight); padding: 6px 14px;
  font-size: 11px; font-weight: 800; color: var(--tema);
  text-transform: uppercase; letter-spacing: .08em;
  border-left: 3px solid var(--tema);
  transition: background .3s, color .3s;
}

/* Label período */
.td-label {
  background: var(--surf2);
  position: -webkit-sticky;
  position: sticky;
  left: 0;
  z-index: 1;
  will-change: transform;
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
  border-right: 2px solid var(--borda) !important;
}
.td-label span {
  display: block; padding: 11px 10px;
  font-size: 12px; font-weight: 700; color: var(--txt3); white-space: nowrap;
}

/* Células */
.td-celula { padding: 5px !important; background: var(--surf); }
.td-celula.hoje-col { background: var(--tema-xlight); }

.btn-celula {
  display: flex; align-items: center; justify-content: center; gap: 4px;
  width: 100%; padding: 8px 4px; border: none; border-radius: var(--r-xs);
  font-size: 11px; font-weight: 700; cursor: default; transition: all .15s ease;
  font-family: inherit; text-align: center; line-height: 1.2;
}
.btn-celula i { font-size: 11px; }

.btn-celula.disponivel {
  background: var(--verde-bg); color: var(--verde-t); cursor: pointer;
}
.btn-celula.disponivel:hover {
  background: #a7f3d0; transform: scale(1.04);
  box-shadow: 0 2px 8px rgba(5,150,105,.2);
}
.btn-celula.ocupado {
  background: var(--vermelho-bg); color: var(--vermelho-t); cursor: default;
}
.btn-celula.ocupado.clicavel { cursor: pointer; }
.btn-celula.ocupado.clicavel:hover { background: #fca5a5; transform: scale(1.02); }
.btn-celula.encerrado {
  background: #f1f5f9; color: #94a3b8; cursor: default;
  border: 1px dashed #cbd5e1;
  font-style: italic;
}
.btn-celula.manutencao {
  background: var(--amarelo-bg); color: var(--amarelo-t); cursor: default;
}
.btn-celula.manutencao.clicavel { cursor: pointer; }
.btn-celula.manutencao.clicavel:hover { background: #fde68a; transform: scale(1.02); }
.btn-celula.meu {
  background: var(--indigo-bg); color: var(--indigo-t); cursor: pointer;
}
.btn-celula.meu:hover { background: #c7d2fe; transform: scale(1.02); }

/* ══════════════════════════════════════════════════════════════
   BOTÃO INFERIOR + FAB
══════════════════════════════════════════════════════════════ */
.btn-cta-bottom {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; max-width: 440px; margin: 16px auto 0;
  padding: 15px 24px; border: none; border-radius: var(--r-xl);
  background: var(--tema-grad); color: white;
  font-family: inherit; font-size: 15px; font-weight: 700;
  cursor: pointer; transition: all .22s ease; letter-spacing: -.01em;
  box-shadow: var(--tema-shadow);
}
.btn-cta-bottom i { font-size: 18px; }
.btn-cta-bottom:hover { transform: translateY(-2px); box-shadow: 0 12px 32px rgba(2,132,199,.4); filter: brightness(1.06); }
.btn-cta-bottom:active { transform: translateY(0); }

.fab-atividades {
  position: fixed; bottom: 22px; right: 20px; z-index: 999;
  transition: all .22s ease, opacity .2s ease, transform .2s ease;
  display: flex; align-items: center; gap: 8px;
  padding: 13px 20px 13px 16px; border: none; border-radius: var(--r-full);
  background: linear-gradient(135deg, #059669, #047857);
  color: white; font-family: inherit; font-size: 14px; font-weight: 700;
  cursor: pointer; letter-spacing: -.01em;
  box-shadow: 0 4px 20px rgba(5,150,105,.4), 0 2px 8px rgba(0,0,0,.15);
  transition: all .22s ease;
}
.fab-atividades i { font-size: 18px; }
.fab-atividades:hover { transform: translateY(-3px) scale(1.04); box-shadow: 0 12px 36px rgba(5,150,105,.5); }
.fab-atividades:active { transform: scale(.97); }
.fab-atividades.fab-escondido { opacity: 0; transform: scale(.7) translateY(12px); pointer-events: none; }

.fab {
  position: fixed; bottom: 88px; right: 20px; z-index: 999;
  transition: all .22s ease, opacity .2s ease, transform .2s ease;
  display: flex; align-items: center; gap: 8px;
  padding: 13px 20px 13px 16px; border: none; border-radius: var(--r-full);
  background: var(--tema-grad); color: white;
  font-family: inherit; font-size: 14px; font-weight: 700; cursor: pointer;
  box-shadow: var(--tema-shadow), 0 2px 8px rgba(0,0,0,.15);
  transition: all .22s ease; letter-spacing: -.01em;
}
.fab i { font-size: 18px; font-weight: 700; }
.fab-label { display: none; }
@media (min-width: 380px) { .fab-label { display: block; } }
.fab:hover { transform: translateY(-3px) scale(1.04); box-shadow: 0 12px 36px rgba(2,132,199,.5); }
.fab:active { transform: scale(.97); }
.fab.fab-escondido { opacity: 0; transform: scale(.7) translateY(12px); pointer-events: none; }

/* ══════════════════════════════════════════════════════════════
   MODAIS
══════════════════════════════════════════════════════════════ */
.modal-overlay {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(15,23,42,.6); backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center; padding: 16px;
  animation: fadeIn .16s ease;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.modal {
  background: var(--surf); border-radius: var(--r-lg); width: 100%; max-width: 520px;
  max-height: 92vh; display: flex; flex-direction: column; overflow: hidden;
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(255,255,255,.08);
  animation: slideUp .22s cubic-bezier(.16,1,.3,1);
}
.modal.modal-sm { max-width: 400px; }
.modal.modal-lg { max-width: 700px; }

@keyframes slideUp {
  from { transform: translateY(28px) scale(.98); opacity: 0; }
  to   { transform: translateY(0) scale(1);    opacity: 1; }
}

.modal-topo {
  display: flex; align-items: center; gap: 14px;
  padding: 18px 22px; border-bottom: 1px solid var(--borda); flex-shrink: 0;
  background: linear-gradient(to right, var(--tema-xlight), var(--surf));
}
.modal-topo-admin { background: linear-gradient(to right, #f1f5f9, var(--surf)); }

.modal-topo-icone {
  width: 46px; height: 46px; border-radius: var(--r-sm); flex-shrink: 0;
  background: var(--tema-grad); color: white;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; box-shadow: var(--tema-shadow); padding: 8px;
}
.modal-local-img { width: 100%; height: 100%; object-fit: contain; filter: brightness(0) invert(1); }
.modal-topo-icone-admin { background: linear-gradient(135deg, #334155, #475569); box-shadow: none; }

.modal-topo-texto { flex: 1; min-width: 0; }
.modal-topo-texto h2 { font-size: 16px; font-weight: 800; letter-spacing: -.02em; }
.modal-topo-texto p  { font-size: 12px; color: var(--txt2); margin-top: 2px; }

.btn-fechar {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--surf2); border: 1px solid var(--borda);
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; color: var(--txt3); cursor: pointer;
  transition: all var(--t); flex-shrink: 0;
}
.btn-fechar:hover { background: var(--borda); color: var(--txt); transform: scale(1.08); }

.modal-corpo  { padding: 22px; overflow-y: auto; flex: 1; }
.modal-corpo form { display: flex; flex-direction: column; gap: 18px; }
.modal-rodape {
  display: flex; gap: 10px; justify-content: flex-end;
  padding: 14px 22px; border-top: 1px solid var(--borda);
  background: var(--surf2); flex-shrink: 0;
}

/* ══════════════════════════════════════════════════════════════
   TURNOS (dentro do modal de agendamento)
══════════════════════════════════════════════════════════════ */
.turnos-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.turno-coluna { display: flex; flex-direction: column; gap: 6px; }

.turno-titulo {
  display: flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 800; text-transform: uppercase;
  letter-spacing: .06em; padding: 7px 12px; border-radius: var(--r-xs);
}
.turno-manha { background: #fef9c3; color: #78350f; }
.turno-tarde  { background: #fce7f3; color: #831843; }

.turno-aulas { display: flex; flex-direction: column; gap: 5px; }

.btn-aula {
  display: flex; align-items: center; gap: 9px;
  padding: 9px 12px; border: 1.5px solid var(--borda);
  border-radius: var(--r-xs); background: var(--surf);
  font-family: inherit; font-size: 13px; font-weight: 500; color: var(--txt);
  cursor: pointer; transition: all var(--t); text-align: left;
}
.btn-aula:hover:not(.ocupado-aula) {
  border-color: var(--tema); color: var(--tema);
  background: var(--tema-xlight);
}
.btn-aula.selecionado {
  border-color: var(--tema); background: var(--tema-light); color: var(--p-dark);
  font-weight: 700; box-shadow: 0 0 0 2px rgba(2,132,199,.15);
}
.btn-aula.ocupado-aula { opacity: .4; cursor: not-allowed; background: var(--surf2); }

.check-box {
  width: 16px; height: 16px; border-radius: 4px; border: 1.5px solid var(--borda);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; transition: all var(--t); background: var(--surf);
  font-size: 10px; color: transparent;
}
.btn-aula.selecionado .check-box { background: var(--tema); border-color: var(--tema); color: white; }

.resumo-selecionados {
  display: flex; align-items: flex-start; gap: 8px;
  font-size: 13px; color: var(--txt2);
  padding: 10px 13px; border-radius: var(--r-xs); margin-top: 8px;
  background: var(--tema-xlight); border: 1px solid var(--tema-light);
}
.resumo-selecionados i { color: var(--tema); flex-shrink: 0; margin-top: 1px; }

/* ══════════════════════════════════════════════════════════════
   DETALHE
══════════════════════════════════════════════════════════════ */
.detalhe-lista { display: flex; flex-direction: column; gap: 8px; }
.detalhe-item {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 10px 14px; border-radius: var(--r-xs);
  background: var(--surf2); border: 1px solid var(--borda);
}
.detalhe-chave {
  font-size: 11px; font-weight: 700; color: var(--txt3);
  text-transform: uppercase; letter-spacing: .04em; min-width: 88px; padding-top: 1px;
}
.detalhe-valor { font-size: 14px; font-weight: 500; color: var(--txt); }
.detalhe-descricao {
  margin-top: 12px; padding: 12px 16px;
  background: var(--tema-xlight); border: 1px solid var(--tema-light);
  border-radius: var(--r-xs); font-size: 13px; color: var(--txt2);
  font-style: italic; line-height: 1.6;
  display: flex; gap: 10px;
}
.detalhe-descricao i { color: var(--tema); flex-shrink: 0; margin-top: 1px; }

/* ══════════════════════════════════════════════════════════════
   ADMIN
══════════════════════════════════════════════════════════════ */
.admin-tabs {
  display: flex; gap: 4px; border-bottom: 2px solid var(--borda); margin-bottom: 22px;
}
.admin-tab {
  display: flex; align-items: center; gap: 7px;
  padding: 10px 16px; background: none; border: none;
  font-family: inherit; font-size: 13px; font-weight: 600; color: var(--txt2);
  cursor: pointer; border-bottom: 2.5px solid transparent; margin-bottom: -2px;
  transition: color var(--t), border-color var(--t);
}
.admin-tab.ativo { color: var(--tema); border-bottom-color: var(--tema); }
.admin-tab:hover { color: var(--tema); }

/* ── Toggle de configuração ───────────────────────────────────────────────── */
.cfg-toggle { position: relative; display: inline-block; width: 46px; height: 26px; flex-shrink: 0; }
.cfg-toggle input { opacity: 0; width: 0; height: 0; }
.cfg-toggle-slider {
  position: absolute; inset: 0; cursor: pointer;
  background: #cbd5e1; border-radius: 26px; transition: background .2s;
}
.cfg-toggle-slider::before {
  content: ''; position: absolute;
  width: 20px; height: 20px; border-radius: 50%;
  background: #fff; left: 3px; top: 3px;
  box-shadow: 0 1px 4px rgba(0,0,0,.18);
  transition: transform .2s;
}
.cfg-toggle input:checked + .cfg-toggle-slider { background: #7c3aed; }
.cfg-toggle input:checked + .cfg-toggle-slider::before { transform: translateX(20px); }

.admin-secao { margin-bottom: 20px; }
.admin-secao-titulo {
  display: flex; align-items: center; gap: 8px;
  font-size: 14px; font-weight: 700; margin-bottom: 16px; color: var(--txt);
}

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 14px; }
@media (max-width: 520px) { .form-grid { grid-template-columns: 1fr; } }

.lista-usuarios { display: flex; flex-direction: column; gap: 8px; }
.usuario-item {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 16px; border-radius: var(--r-sm);
  border: 1px solid var(--borda); background: var(--surf);
  transition: box-shadow var(--t);
}
.usuario-item:hover { box-shadow: var(--shadow-sm); }
.usuario-info { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.usuario-nome  { font-size: 14px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.usuario-email { font-size: 12px; color: var(--txt2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.usuario-badge {
  font-size: 11px; font-weight: 700; padding: 3px 10px; border-radius: var(--r-full); white-space: nowrap;
  background: var(--tema-xlight); color: var(--tema);
}
.usuario-badge.admin-badge { background: #fce7f3; color: #9d174d; }
.usuario-acoes { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }

/* Checkbox de seleção em massa */
.usr-check {
  width: 17px; height: 17px; flex-shrink: 0;
  accent-color: var(--vermelho); cursor: pointer;
}
.usr-check.oculto { display: none; }

/* ── Busca de usuários ── */
.admin-busca-wrap {
  position: relative; display: flex; align-items: center;
  min-width: 220px; max-width: 320px; flex: 1;
}
.admin-busca-icon {
  position: absolute; left: 10px; color: #94a3b8; font-size: 14px; pointer-events: none;
}
.admin-busca-input {
  width: 100%; padding: 7px 12px 7px 32px;
  border: 1.5px solid #e2e8f0; border-radius: 10px;
  font-size: 13px; font-family: inherit; background: white;
  transition: border-color .15s;
}
.admin-busca-input:focus { outline: none; border-color: var(--p); }

/* ── CSV preview ── */
.csv-preview-header {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  padding: 8px 12px; background: #f8fafc; border-radius: 8px 8px 0 0;
  border: 1px solid #e2e8f0; font-size: 13px; font-weight: 600; color: #334155;
}
.csv-ok  { color: #059669; }
.csv-err { color: #dc2626; }
.csv-tabela-wrap { overflow-x: auto; border: 1px solid #e2e8f0; border-top: none; border-radius: 0 0 8px 8px; }
.csv-tabela { width: 100%; border-collapse: collapse; font-size: 12px; }
.csv-tabela th { background: #f1f5f9; padding: 7px 10px; text-align: left; font-weight: 700; color: #475569; border-bottom: 1px solid #e2e8f0; white-space: nowrap; }
.csv-tabela td { padding: 6px 10px; border-bottom: 1px solid #f1f5f9; color: #334155; vertical-align: middle; }
.csv-row-ok { background: white; }
.csv-row-err { background: #fff5f5; }
.csv-badge-ok  { color: #059669; font-size: 11px; font-weight: 600; white-space: nowrap; }
.csv-badge-err { color: #dc2626; font-size: 11px; font-weight: 600; white-space: nowrap; cursor: help; }
.csv-aviso { padding: 10px 14px; border-radius: 8px; font-size: 13px; display: flex; align-items: center; gap: 8px; }
.csv-aviso.erro { background: #fef2f2; color: #dc2626; }

/* ── CSV resultado ── */
.csv-resultado-box {
  padding: 14px 16px; border-radius: 10px; font-size: 13px;
}
.csv-resultado-box.sucesso  { background: #f0fdf4; border: 1.5px solid #bbf7d0; color: #065f46; }
.csv-resultado-box.parcial  { background: #fffbeb; border: 1.5px solid #fde68a; color: #78350f; }
.csv-resultado-box.erro     { background: #fef2f2; border: 1.5px solid #fecaca; color: #991b1b; }
.csv-resultado-titulo { font-weight: 700; display: flex; align-items: center; gap: 7px; margin-bottom: 6px; }
.csv-resultado-erros  { margin-top: 8px; }
.csv-resultado-erros ul { margin: 6px 0 0 16px; padding: 0; line-height: 1.8; }

/* ══════════════════════════════════════════════════════════════
   MODAL AÇÃO ADMIN
══════════════════════════════════════════════════════════════ */
.acao-admin-opcoes { display: flex; flex-direction: column; gap: 10px; }

.acao-admin-btn {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 16px; border-radius: var(--r-sm);
  border: 1.5px solid var(--borda); background: var(--surf2);
  cursor: pointer; text-align: left; font-family: inherit;
  transition: all .18s ease; width: 100%;
}
.acao-admin-btn:hover { border-color: var(--tema); background: var(--tema-xlight); transform: translateX(2px); }

.acao-admin-btn-icone {
  width: 44px; height: 44px; border-radius: var(--r-sm); flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; font-size: 20px;
}
.acao-reservar-icone  { background: var(--verde-bg); color: var(--verde); }
.acao-manutencao-icone { background: var(--amarelo-bg); color: var(--amarelo); }

.acao-admin-btn-texto { flex: 1; min-width: 0; }
.acao-admin-btn-texto strong { display: block; font-size: 14px; color: var(--txt); font-weight: 700; }
.acao-admin-btn-texto span   { display: block; font-size: 12px; color: var(--txt2); margin-top: 2px; }

.acao-admin-seta { color: var(--txt3); font-size: 13px; flex-shrink: 0; }

.acao-manutencao-btn:hover { border-color: var(--amarelo); background: var(--amarelo-bg); }

/* ══════════════════════════════════════════════════════════════
   AVISO PÓS-AGENDAMENTO
══════════════════════════════════════════════════════════════ */
.aviso-desmarcar {
  position: fixed; bottom: 80px; left: 50%; transform: translateX(-50%);
  z-index: 300; width: calc(100% - 32px); max-width: 540px;
  animation: slideUp .3s cubic-bezier(.16,1,.3,1);
}
.aviso-desmarcar-inner {
  display: flex; align-items: flex-start; gap: 14px;
  background: #fff; border: 1.5px solid #fde68a;
  border-left: 5px solid #d97706;
  border-radius: var(--r-md); padding: 16px 16px 16px 18px;
  box-shadow: var(--shadow-lg);
}
.aviso-desmarcar-icone {
  font-size: 24px; color: #16a34a; flex-shrink: 0; margin-top: 1px;
}
.aviso-desmarcar-texto { flex: 1; min-width: 0; }
.aviso-desmarcar-texto strong { display: block; font-size: 14px; color: var(--txt); margin-bottom: 4px; }
.aviso-desmarcar-texto p { font-size: 13px; color: var(--txt2); line-height: 1.55; }
.aviso-desmarcar-texto p strong { display: inline; font-size: 13px; color: #d97706; }
.aviso-fechar {
  background: none; border: none; cursor: pointer; color: var(--txt3);
  font-size: 14px; padding: 2px; flex-shrink: 0; display: flex;
  align-items: center; transition: color var(--t);
}
.aviso-fechar:hover { color: var(--txt); }

/* ══════════════════════════════════════════════════════════════
   SALATECH — DETALHE DA ATIVIDADE
══════════════════════════════════════════════════════════════ */
#tela-st-detalhe {
  height: 100vh; overflow: hidden; /* impede o window de scrollar nessa tela */
}
.st-detalhe-layout {
  display: flex; flex-direction: column;
  height: 100%; background: #f8fafc;
  overflow-y: auto; /* o scroll fica no layout para position:sticky funcionar no topo */
}
.st-detalhe-topo {
  display: flex; align-items: center; gap: 12px;
  padding: calc(10px + env(safe-area-inset-top, 0px)) 16px 10px;
  background: white;
  border-bottom: 1px solid #e2e8f0;
  flex-shrink: 0;
  position: sticky; top: 0; z-index: 100;
}
.st-detalhe-voltar {
  display: flex; align-items: center; gap: 6px;
  background: none; border: none; cursor: pointer;
  font-size: 14px; font-weight: 600; color: #0284c7;
  padding: 6px 10px; border-radius: 8px;
  transition: background .12s;
}
.st-detalhe-voltar:hover { background: #e0f2fe; }
.st-detalhe-topo-titulo {
  font-size: 14px; font-weight: 700; color: #0f172a;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  flex: 1;
}
.st-detalhe-corpo {
  flex: 1;
  padding: 0 0 60px;
  display: flex; flex-direction: column; gap: 0;
}

/* Seção de cabeçalho da atividade (sem card, sem overflow:hidden) */
.st-det-cabecalho {
  background: white;
  border-bottom: 1px solid #e2e8f0;
  padding: 16px 20px;
}
/* Botão "Responder Fórum" dentro do cabeçalho */
.st-btn-responder-forum {
  display: flex; align-items: center; gap: 7px;
  margin: 14px 0 2px;
  padding: 9px 18px;
  background: #0284c7; color: white;
  border: none; border-radius: 10px;
  font-size: 14px; font-weight: 600; font-family: inherit;
  cursor: pointer; transition: background .15s, transform .1s;
  width: 100%;
  justify-content: center;
}
.st-btn-responder-forum:hover  { background: #0369a1; }
.st-btn-responder-forum:active { transform: scale(.97); }
/* Label separador "Comentar como professor" */
.st-forum-prof-comentar-label {
  display: flex; align-items: center; gap: 6px;
  margin: 14px 14px 0;
  padding: 8px 12px;
  background: #f0f9ff; border: 1px solid #bae6fd;
  border-radius: 8px; color: #0369a1;
  font-size: 13px; font-weight: 600;
}
/* Seção de respostas / entregas */
.st-det-respostas {
  background: #f8fafc;
  flex: 1;
}

/* ══════════════════════════════════════════════════════════════
   RODAPÉ
══════════════════════════════════════════════════════════════ */
.rodape {
  text-align: center; padding: 12px;
  font-size: 11px; color: var(--txt3);
  background: transparent;
  letter-spacing: .01em;
}
.rodape strong { color: var(--txt2); font-weight: 600; }

/* ══════════════════════════════════════════════════════════════
   LIGHTBOX
══════════════════════════════════════════════════════════════ */
.lightbox {
  position: fixed; inset: 0; z-index: 9999;
  background: rgba(0,0,0,.88);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 16px;
  animation: lbFadeIn .18s ease;
  cursor: zoom-out;
}
.lightbox.oculto { display: none; }
@keyframes lbFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.lightbox-fechar {
  position: fixed; top: 16px; right: 16px;
  background: rgba(255,255,255,.15); border: none;
  color: white; font-size: 20px; cursor: pointer;
  width: 40px; height: 40px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  transition: background .15s;
  z-index: 10000;
}
.lightbox-fechar:hover { background: rgba(255,255,255,.3); }
.lightbox-img {
  max-width: min(94vw, 1200px);
  max-height: 82vh;
  width: auto; height: auto;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 8px 48px rgba(0,0,0,.6);
  animation: lbImgIn .2s ease;
  cursor: default;
}
@keyframes lbImgIn {
  from { transform: scale(.94); opacity: 0; }
  to   { transform: scale(1);   opacity: 1; }
}
.lightbox-video {
  max-width: min(94vw, 1100px);
  max-height: 80vh;
  width: 100%; height: auto;
  border-radius: 8px;
  background: #000;
  box-shadow: 0 8px 48px rgba(0,0,0,.6);
  animation: lbImgIn .2s ease;
  cursor: default;
}
.lightbox-audio-wrap {
  display: flex; flex-direction: column; align-items: center; gap: 16px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 16px; padding: 32px 40px;
  animation: lbImgIn .2s ease;
  cursor: default;
}
.lightbox-audio-icon {
  font-size: 52px; color: rgba(255,255,255,.7);
}
.lightbox-audio {
  width: min(92vw, 400px);
}
.lightbox-nome {
  margin-top: 12px; color: rgba(255,255,255,.65);
  font-size: 13px; text-align: center;
  max-width: 94vw; white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis;
}

/* ── Previews clicáveis de vídeo e áudio no feed ── */
.st-midia-preview {
  display: flex; align-items: center; gap: 12px;
  background: #f1f5f9; border: 1px solid #e2e8f0;
  border-radius: 10px; padding: 12px 16px;
  cursor: pointer; transition: background .12s, border-color .12s;
  user-select: none;
}
.st-midia-preview:hover { background: #e2e8f0; border-color: #cbd5e1; }
.st-midia-preview-icon {
  width: 44px; height: 44px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; color: white;
}
.st-midia-preview-icon.video { background: linear-gradient(135deg,#7c3aed,#a855f7); }
.st-midia-preview-icon.audio { background: linear-gradient(135deg,#059669,#10b981); }
.st-midia-preview-info { flex: 1; min-width: 0; }
.st-midia-preview-info strong {
  display: block; font-size: 13px; font-weight: 600; color: #0f172a;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.st-midia-preview-info span { font-size: 11.5px; color: #94a3b8; }
.st-midia-preview-play {
  font-size: 18px; color: #94a3b8; flex-shrink: 0;
}

/* ══════════════════════════════════════════════════════════════
   TOAST
══════════════════════════════════════════════════════════════ */
.toast {
  position: fixed; bottom: 88px; left: 50%; transform: translateX(-50%);
  background: #1e293b; color: white; padding: 12px 24px; border-radius: var(--r-full);
  font-size: 14px; font-weight: 600; z-index: 500; box-shadow: var(--shadow-lg);
  white-space: nowrap; max-width: 92vw; overflow: hidden; text-overflow: ellipsis;
  animation: toastIn .25s cubic-bezier(.16,1,.3,1);
  letter-spacing: -.01em;
}
.toast.sucesso { background: #065f46; }
.toast.erro    { background: #991b1b; }
.toast.aviso   { background: #92400e; }
@keyframes toastIn {
  from { opacity: 0; transform: translateX(-50%) translateY(14px) scale(.95); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0) scale(1); }
}
@media (min-width: 600px) { .toast { bottom: 28px; } }

/* ══ PROFESSOR CARD ══ */
.prof-info-card {
  margin: 14px 16px 0;
  padding: 14px 18px;
  background: linear-gradient(135deg, #f0f9ff, #e0f2fe);
  border: 1.5px solid #bae6fd;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(2,132,199,.1);
}
.prof-card-topo {
  display: flex; align-items: center; gap: 14px;
}
.prof-info-avatar {
  width: 48px; height: 48px; border-radius: 10px;
  background: linear-gradient(135deg, #0369a1, #0284c7);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; padding: 7px;
  box-shadow: 0 4px 12px rgba(2,132,199,.3);
}
.prof-info-img { width: 100%; height: 100%; object-fit: contain; filter: brightness(0) invert(1); }
.prof-card-meta { flex: 1; min-width: 0; }
.prof-info-label { font-size: 10px; font-weight: 700; color: #0369a1; text-transform: uppercase; letter-spacing: .06em; }
.prof-info-nome  { font-size: 15px; font-weight: 800; color: #0f172a; letter-spacing: -.02em; margin: 2px 0; }
.prof-card-sem-disp { font-size: 12px; color: #64748b; display: flex; align-items: center; gap: 5px; }

/* Grade semanal do prof */
.prof-semana-wrap {
  margin-top: 12px;
  overflow-x: auto;
  padding-bottom: 2px;
}
.prof-semana-grid {
  display: flex; gap: 8px; width: max-content;
}
.prof-dia-box {
  min-width: 76px; background: white; border-radius: 8px;
  border: 1px solid #e0f2fe; padding: 8px 6px;
  display: flex; flex-direction: column; gap: 4px;
}
.prof-dia-box.hoje-box { border-color: #0284c7; box-shadow: 0 0 0 2px #bae6fd; }
.prof-dia-titulo { font-size: 11px; font-weight: 700; color: #0369a1; text-align: center; }
.prof-dia-data   { font-size: 10px; color: #94a3b8; text-align: center; margin-bottom: 4px; }
.prof-dia-slots  { display: flex; flex-direction: column; gap: 3px; }
.prof-slot-linha {
  display: flex; align-items: center; gap: 4px;
  font-size: 10px; font-weight: 600;
}
.prof-slot-dot {
  width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0;
}
.prof-slot-dot.disp  { background: #059669; }
.prof-slot-dot.ocup  { background: #d97706; }
.prof-dia-vazio { font-size: 10px; color: #cbd5e1; text-align: center; font-style: italic; }

/* ══ MODAL DISPONIBILIDADE ══ */
.disp-legenda {
  display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 10px;
}
.disp-chip {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 5px 11px; border-radius: 999px; font-size: 12px; font-weight: 600;
}
.disp-ausente-chip   { background: #f1f5f9; color: #64748b; border: 1.5px solid #e2e8f0; }
.disp-disponivel-chip{ background: #d1fae5; color: #065f46; border: 1.5px solid #6ee7b7; }
.disp-ocupado-chip   { background: #fef3c7; color: #78350f; border: 1.5px solid #fcd34d; }
.disp-dica { font-size: 12px; color: #64748b; }

/* Tabela de disponibilidade */
.tabela-disponibilidade .td-celula { padding: 4px 3px; }
.btn-disp {
  width: 100%; min-width: 80px; padding: 8px 4px; border: 1.5px solid var(--borda);
  border-radius: 8px; background: var(--surf2); font-family: inherit;
  font-size: 11px; font-weight: 700; cursor: pointer; transition: all .15s;
  display: flex; flex-direction: column; align-items: center; gap: 3px;
}
.btn-disp:hover { transform: scale(1.03); }
.btn-disp i { font-size: 14px; }
.btn-disp.disp-ausente   { background: #f1f5f9; color: #94a3b8; border-color: #e2e8f0; }
.btn-disp.disp-disponivel{ background: #d1fae5; color: #059669; border-color: #6ee7b7; }
.btn-disp.disp-ocupado   { background: #fef3c7; color: #d97706; border-color: #fcd34d; }

@media (max-width: 640px) {
  /* Modal disponibilidade — bottom sheet, nunca ultrapassa a tela */
  #modal-disponibilidade {
    padding: 0;
    align-items: flex-end;
    max-width: 100vw;
    overflow: hidden;
  }
  #modal-disponibilidade .modal {
    width: 100vw;
    max-width: 100vw;
    border-radius: var(--r-lg) var(--r-lg) 0 0;
    max-height: 92vh;
  }
  #modal-disponibilidade .modal-corpo {
    padding: 10px 8px;
    overflow-x: hidden; /* impede o modal de alargar */
  }
  #modal-disponibilidade .tabela-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    max-width: 100%; /* scroll interno, não expande o modal */
  }

  /* Legenda compacta */
  .disp-legenda  { gap: 5px; }
  .disp-chip     { font-size: 10px; padding: 4px 8px; gap: 3px; }
  .disp-chip i   { font-size: 10px; }
  .disp-dica     { font-size: 11px; }

  /* Tabela de disponibilidade — colunas menores */
  .tabela-disponibilidade { min-width: 0; width: 100%; }
  .tabela-disponibilidade .th-vazio { width: 50px; min-width: 50px; }
  .tabela-disponibilidade .th-dia   { min-width: 56px; padding: 7px 2px; }
  .tabela-disponibilidade .th-semana{ font-size: 9px; }
  .tabela-disponibilidade .th-data  { font-size: 11px; }
  .tabela-disponibilidade .th-hoje  { font-size: 8px; padding: 1px 4px; }
  .tabela-disponibilidade .td-label span { padding: 8px 4px; font-size: 10px; white-space: nowrap; }
  .tabela-disponibilidade .td-celula { padding: 3px 2px !important; }

  /* Botões de disponibilidade menores */
  .btn-disp { min-width: 0; width: 100%; padding: 6px 2px; font-size: 9px; gap: 2px; border-radius: 6px; }
  .btn-disp i { font-size: 12px; }
}

/* ══ AVISO CAPACIDADE ══ */
.grupo-aviso-capacidade {
  display: flex; align-items: flex-start; gap: 9px;
  background: #eff6ff; color: #1e40af; border: 1px solid #bfdbfe;
  border-radius: 10px; padding: 11px 14px; font-size: 12.5px; line-height: 1.5;
  margin-bottom: 16px;
}
.grupo-aviso-capacidade i { font-size: 15px; flex-shrink: 0; margin-top: 1px; }

.aviso-capacidade {
  padding: 9px 12px; border-radius: 8px; font-size: 12px; font-weight: 500;
  display: flex; align-items: center; gap: 7px; margin-top: 6px;
}
.aviso-capacidade-erro { background: #fee2e2; color: #991b1b; border-left: 3px solid #dc2626; }
.aviso-capacidade-info { background: #fef3c7; color: #78350f; border-left: 3px solid #d97706; }

/* ══ CHIP VAGAS NA CÉLULA ══ */
.chip-vagas  { font-size: 9px; background: #d1fae5; color: #065f46; padding: 1px 5px; border-radius: 4px; font-weight: 700; }
.vaga-hint   { color: #059669; font-weight: 600; font-style: normal; }

/* ══ HORÁRIOS NOS BOTÕES DE AULA ══ */
.btn-aula-info { display: flex; flex-direction: column; align-items: flex-start; flex: 1; min-width: 0; }
.btn-aula-num  { font-size: 13px; font-weight: 700; }
.btn-aula-hora { font-size: 10px; color: #64748b; font-weight: 500; white-space: nowrap; }
.btn-aula.selecionado .btn-aula-hora { color: var(--tema); }
.btn-aula.ocupado-aula .btn-aula-hora { color: #94a3b8; }

/* ══ HORÁRIOS NA LABEL DA TABELA ══ */
.td-label { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; }
.td-label-num  { font-size: 13px; font-weight: 700; color: var(--txt); }
.td-label-hora { font-size: 10px; color: var(--txt3); font-weight: 500; }
.chip-lotado { font-size: 9px; background: #fee2e2; color: #991b1b; padding: 1px 5px; border-radius: 4px; font-weight: 700; }
.vagas-label { color: #059669; font-weight: 600; }
.btn-celula.grupo-lotado { background: #f1f5f9; color: #64748b; cursor: default; }
.btn-celula.grupo-lotado.clicavel { cursor: pointer; }
.btn-celula.grupo-lotado.clicavel:hover { background: #e2e8f0; }

/* ══ DETALHE GRUPOS ══ */
.detalhe-grupos-header { margin-bottom: 12px; }
.chip-grupos { display: inline-flex; align-items: center; gap: 5px; background: #e0f2fe; color: #0369a1; padding: 5px 12px; border-radius: 999px; font-size: 12px; font-weight: 700; }
.detalhe-grupos-lista { display: flex; flex-direction: column; gap: 10px; }
.detalhe-grupo-card {
  padding: 12px 14px; background: #f8fafc; border: 1.5px solid #e2e8f0;
  border-radius: 10px; display: flex; flex-direction: column; gap: 5px;
}
.detalhe-grupo-card.meu-grupo { border-color: #0284c7; background: #f0f9ff; }
.detalhe-grupo-linha1 { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.detalhe-grupo-qtd { font-size: 12px; color: #64748b; margin-left: auto; }
.detalhe-grupo-prof { font-size: 12px; color: #64748b; }
.detalhe-grupo-desc { font-size: 12px; color: #475569; font-style: italic; }
.detalhe-grupo-del { margin-top: 6px; align-self: flex-start; }
.badge-com-prof { font-size: 10px; background: #d1fae5; color: #065f46; padding: 2px 7px; border-radius: 5px; font-weight: 700; }

/* ══ CÉLULAS ESPECIAIS INFORMÁTICA ══ */
.btn-celula-duplo {
  display: flex; flex-direction: column; gap: 3px;
  padding: 6px 4px;
}
.celula-linha-1 { font-size: 11px; font-weight: 700; display: flex; align-items: center; justify-content: center; gap: 3px; }
.celula-linha-2 { font-size: 10px; font-weight: 600; opacity: .85; }
.btn-celula.prof-aula { background: #ede9fe; color: #5b21b6; }
.btn-celula.prof-aula:hover { background: #ddd6fe; }
.btn-celula.grupo-com-prof { background: #f0fdf4; color: #065f46; cursor: pointer; }
.btn-celula.grupo-com-prof:hover { background: #bbf7d0; transform: scale(1.02); }
.btn-celula.grupo-sem-prof { background: #fff7ed; color: #92400e; cursor: default; }
.btn-celula.grupo-sem-prof.clicavel { cursor: pointer; }
.btn-celula.grupo-sem-prof.clicavel:hover { background: #fed7aa; transform: scale(1.02); }

/* ══ TOGGLE PROFESSOR ══ */
.toggle-prof-wrap { display: flex; gap: 8px; }
.toggle-prof-btn {
  flex: 1; padding: 10px; border-radius: 8px; border: 1.5px solid var(--borda);
  background: var(--surf2); font-family: inherit; font-size: 13px; font-weight: 600;
  color: var(--txt2); cursor: pointer; transition: all .18s;
  display: flex; align-items: center; justify-content: center; gap: 6px;
}
.toggle-prof-btn.toggle-ativo {
  border-color: var(--tema); background: var(--tema-xlight); color: var(--tema);
}
.aviso-prof {
  padding: 10px 13px; border-radius: 8px; font-size: 13px; font-weight: 500;
  display: flex; align-items: center; gap: 8px; margin-top: 6px;
}
.aviso-prof.aviso-ocupado { background: #fee2e2; color: #991b1b; border-left: 3px solid #dc2626; }
.aviso-prof.aviso-livre   { background: #d1fae5; color: #065f46; border-left: 3px solid #059669; }

/* ══ BADGE PROF. INFORMÁTICA ══ */
.usuario-badge.info-badge  { background: #cffafe; color: #0e7490; }
/* ══ BADGE ALUNO ══ */
.usuario-badge.aluno-badge { background: #f0fdf4; color: #166534; }

/* ══════════════════════════════════════════════════════════════
   RESPONSIVO
══════════════════════════════════════════════════════════════ */

/* ── FAB: safe-area para notch e barra de navegação do iOS/Android ── */
.fab-atividades {
  bottom: calc(16px + env(safe-area-inset-bottom, 0px));
}
.fab {
  bottom: calc(76px + env(safe-area-inset-bottom, 0px));
}

@media (max-width: 640px) {
  /* Header */
  .header { padding: 0 10px; gap: 6px; height: 54px; }
  .header-escola { display: none; }
  .header-sub    { display: none; }
  .header-dir    { gap: 2px; }
  /* Botões mínimo 44px de altura (padrão Apple) para evitar zoom no Chrome iOS */
  .btn-icone     { width: 36px; height: 44px; font-size: 16px; border-radius: 8px; }
  .header-logo   { width: 36px; height: 36px; }
  /* Inputs e selects com font-size 16px para evitar zoom automático no iOS */
  input, select, textarea { font-size: 16px !important; }

  /* Nav locais */
  .nav-locais-wrap { padding: 8px 12px; }
  .nav-local { padding: 7px 10px; font-size: 12px; gap: 5px; }
  .nav-local-img { width: 20px; height: 20px; }

  /* Barra local */
  .local-ativo-bar { padding: 10px 14px; gap: 8px; }
  .local-ativo-icone-wrap { width: 36px; height: 36px; font-size: 16px; }
  .local-ativo-nome { font-size: 13px; }
  .local-ativo-desc { font-size: 11px; }

  /* Tabela — scroll horizontal isolado */
  .tabela-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; max-width: 100%; }

  /* Remove sticky das colunas de horário no mobile — tudo scrolla junto */
  .th-vazio { position: static; width: 60px; min-width: 60px; }
  .td-label { position: static; }
  .td-label span { padding: 10px 6px; font-size: 11px; }
  .th-dia { min-width: 96px; }

  /* Prof card */
  .prof-info-card { margin: 0 10px; border-radius: 10px; }
  .prof-semana-grid { gap: 6px; }
  .prof-dia-box { min-width: 62px; padding: 6px 5px; }
  .prof-dia-titulo { font-size: 10px; }
  .prof-slot-linha { font-size: 9px; }

  /* Tabela */
  .tabela-area { padding: 10px 10px 160px; }
  .btn-celula { font-size: 10px; padding: 7px 3px; min-height: 52px; }
  .btn-aula-hora { font-size: 9px; }

  /* Modais */
  .modal-corpo { padding: 14px; }
  .modal-topo { padding: 12px 14px; }
  .modal-rodape { padding: 10px 14px; gap: 8px; }
  .modal { max-height: 94vh; border-radius: var(--r-lg) var(--r-lg) 0 0; }
  .modal-overlay { align-items: flex-end; padding: 0; }
  .modal-atividades-box { border-radius: var(--r-lg) var(--r-lg) 0 0; max-height: 90vh; width: 100%; }
  .modal-atividades-body { padding: 16px 16px 4px; }
  .modal-atividades-footer { padding: 10px 16px; }
  .modal-header-esq { padding: 16px 16px; }

  /* Formulários */
  .form-grid { grid-template-columns: 1fr; }
  .turnos-grid { grid-template-columns: 1fr; }
  .toggle-prof-wrap { flex-direction: column; }

  /* Admin */
  .admin-tabs { gap: 0; overflow-x: auto; flex-wrap: nowrap; }
  .admin-tab { padding: 10px 12px; font-size: 12px; white-space: nowrap; flex-shrink: 0; }

  /* FABs mobile */
  .fab-atividades {
    bottom: calc(14px + env(safe-area-inset-bottom, 0px));
    right: 14px;
    padding: 12px 16px;
  }
  .fab {
    bottom: calc(72px + env(safe-area-inset-bottom, 0px));
    right: 14px;
    padding: 12px 16px;
  }

  /* Botão ajuda */
  .btn-ajuda { width: 30px; height: 30px; font-size: 15px; }

  /* Legenda */
  .legenda-wrap { padding: 6px 12px; }
  .chip { font-size: 11px; padding: 3px 8px; }

  /* Avisos */
  .aviso-banner { padding: 9px 14px; font-size: 12.5px; }

  /* Misc */
  .btn-cta-bottom { max-width: 100%; }
  .btn { font-size: 13px; padding: 9px 16px; }
}

@media (max-width: 400px) {
  .fab-label { display: none; }
  .fab-atividades { padding: 13px; border-radius: 50%; }
  .fab           { padding: 13px; border-radius: 50%; }
  .fab i { font-size: 20px; }
}

/* ══════════════════════════════════════════════════════════════
   RESPONSIVIDADE — CELULARES PEQUENOS (< 6 polegadas / ≤ 390px)
══════════════════════════════════════════════════════════════ */
@media (max-width: 390px) {

  /* ── Header ── */
  .header { padding: 0 6px; height: 52px; }
  .header-logo { width: 34px; height: 34px; }
  .header-dir  { gap: 2px; }
  /* Manter 44px de altura mínima nos botões para não disparar zoom do Chrome iOS */
  .btn-icone   { width: 34px; height: 44px; font-size: 16px; border-radius: 8px; }
  .header-user { padding: 4px 8px 4px 4px; gap: 5px; }
  .header-user-avatar { width: 24px; height: 24px; font-size: 12px; }

  /* ── Nav locais ── */
  .nav-locais-wrap { padding: 6px 8px; gap: 6px; }
  .nav-local { padding: 6px 8px; font-size: 11px; gap: 4px; }
  .nav-local-img { width: 17px; height: 17px; }

  /* ── Barra local ativo ── */
  .local-ativo-bar { padding: 8px 10px; gap: 6px; }
  .local-ativo-icone-wrap { width: 32px; height: 32px; font-size: 14px; padding: 6px; }
  .local-ativo-nome { font-size: 12px; }
  .local-ativo-desc { font-size: 10px; }
  .local-ativo-tag  { font-size: 10px; padding: 4px 8px; }

  /* ── Legenda ── */
  .legenda-wrap { padding: 5px 8px; }
  .chip { font-size: 10px; padding: 3px 7px; gap: 3px; }
  .chip i { font-size: 10px; }

  /* ── Prof card ── */
  .prof-info-card { margin: 8px 8px 0; padding: 10px 12px; border-radius: 10px; }
  .prof-info-avatar { width: 38px; height: 38px; padding: 6px; }
  .prof-info-nome  { font-size: 13px; }
  .prof-info-label { font-size: 9px; }
  .prof-card-topo  { gap: 10px; }
  .prof-dia-box    { min-width: 58px; padding: 5px 4px; }
  .prof-dia-titulo { font-size: 9px; }
  .prof-dia-data   { font-size: 9px; }
  .prof-slot-linha { font-size: 8px; }
  .prof-slot-dot   { width: 6px; height: 6px; }

  /* ── Tabela de agendamento ── */
  .tabela-area  { padding: 8px 6px 150px; }
  .tabela       { min-width: 440px; font-size: 11px; }
  .th-vazio     { width: 62px; min-width: 62px; }
  .th-dia       { min-width: 78px; padding: 8px 4px; }
  .th-semana    { font-size: 9px; }
  .th-data      { font-size: 13px; }
  .th-hoje      { font-size: 9px; padding: 1px 5px; }
  .td-label span { padding: 8px 6px; font-size: 11px; }
  .tr-turno td  { padding: 5px 10px; font-size: 10px; }
  .td-celula    { padding: 3px !important; }
  .btn-celula   { font-size: 9px; padding: 6px 2px; min-height: 46px; gap: 2px; }
  .btn-celula i { font-size: 10px; }

  /* ── Modais ── */
  .modal-topo   { padding: 10px 12px; gap: 10px; }
  .modal-topo-icone { width: 38px; height: 38px; font-size: 17px; }
  .modal-corpo  { padding: 12px; }
  .modal-rodape { padding: 8px 12px; gap: 6px; }
  .modal-overlay { padding: 0; }
  .modal { border-radius: var(--r-lg) var(--r-lg) 0 0; max-height: 96vh; }

  /* ── Formulários ── */
  .form-grupo label { font-size: 12px; }
  .form-grupo input,
  .form-grupo select,
  .form-grupo textarea { font-size: 13px; padding: 8px 10px; }
  .btn { font-size: 12px; padding: 8px 14px; }

  /* ── Avisos ── */
  .aviso-banner { padding: 8px 10px; font-size: 11.5px; }
}

@media (max-width: 360px) {
  /* ── Tabela ainda mais compacta em telas tiny (ex: iPhone SE) ── */
  .tabela       { min-width: 380px; }
  .th-vazio     { width: 54px; min-width: 54px; }
  .th-dia       { min-width: 66px; padding: 6px 3px; }
  .th-data      { font-size: 12px; }
  .btn-celula   { font-size: 8px; padding: 5px 2px; min-height: 42px; }
  .td-label span { padding: 7px 4px; font-size: 10px; }

  /* ── Nav locais: esconde texto, mostra só ícone ── */
  .nav-local    { padding: 6px; font-size: 0; gap: 0; }
  .nav-local-img { width: 18px; height: 18px; }
  .nav-local i  { font-size: 16px; }

  /* ── Prof card: grade mais compacta ── */
  .prof-dia-box { min-width: 52px; }
}

/* ══════════════════════════════════════════════════════════════
   SALATECH — TV INTERATIVA / TELAS GRANDES (≥ 1440px)
   TVs cortam ~5% das bordas (overscan). Compensa com margens
   maiores para que o sidebar footer e o FAB fiquem visíveis.
══════════════════════════════════════════════════════════════ */
@media (min-width: 1440px) {
  /* Sidebar: footer sempre acima da zona de overscan */
  .st-sidebar-footer {
    padding-bottom: 32px;
  }
  .st-sidebar-prof-actions {
    padding-bottom: 20px;
  }

  /* FAB chat: sobe da borda inferior para não ser cortado */
  .st-fab-chat {
    bottom: 64px;
    left: 32px;
    width: 62px;
    height: 62px;
    font-size: 24px;
  }

  /* Corpo do detalhe: padding extra para o FAB não sobrepor conteúdo */
  .st-detalhe-corpo {
    padding-bottom: 90px;
  }
}

@media (min-width: 1920px) {
  /* 4K / TV grande: zona de overscan maior (~108px) — margem reforçada */
  .st-sidebar {
    width: 300px;
  }
  .st-sidebar-brand {
    font-size: 20px;
  }
  .st-sidebar-footer {
    padding: 14px 16px 56px;
  }
  .st-sidebar-prof-actions {
    padding: 14px 14px 28px;
  }
  .st-nav-disc {
    font-size: 15px;
    padding: 10px 14px;
  }

  /* FAB: bem acima da borda inferior */
  .st-fab-chat {
    bottom: 96px;
    left: 40px;
    width: 68px;
    height: 68px;
    font-size: 26px;
  }

  .st-detalhe-corpo {
    padding-bottom: 120px;
  }

  /* Topo do detalhe: fonte maior para leitura à distância */
  .st-detalhe-topo-titulo {
    font-size: 17px;
  }
  .st-main-topo-info h2 {
    font-size: 19px;
  }
}

/* ══════════════════════════════════════════════════════════════
   Agendamentos Fixos — célula, legenda, admin, modal
══════════════════════════════════════════════════════════════ */

/* Célula da tabela */
.btn-celula.fixo {
  background: #fffbeb; color: #92400e; cursor: default;
  border: 1.5px solid #fde68a;
}
.btn-celula.fixo.clicavel { cursor: pointer; }
.btn-celula.fixo.clicavel:hover { background: #fef3c7; transform: scale(1.02); box-shadow: 0 2px 8px rgba(217,119,6,.15); }

/* Chip de legenda */
.chip-fixo { background: #fffbeb; color: #92400e; border: 1px solid #fde68a; }

/* Nota informativa dentro do modal fixo */
.fixo-aviso-info {
  margin-top: 14px; padding: 10px 14px;
  background: #fffbeb; border: 1px solid #fde68a; border-radius: var(--r-sm);
  color: #92400e; font-size: 13px; display: flex; gap: 8px; align-items: flex-start;
}
.fixo-aviso-info i { flex-shrink: 0; margin-top: 2px; }

/* Lista de fixos no painel admin */
.fixo-admin-item {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 14px; border-radius: var(--r-sm);
  border: 1px solid var(--borda); background: var(--surf2);
  margin-bottom: 8px;
}
.fixo-admin-icone {
  width: 36px; height: 36px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 15px; flex-shrink: 0;
}
.fixo-admin-corpo { flex: 1; min-width: 0; }
.fixo-admin-titulo { font-size: 13px; font-weight: 700; color: var(--txt); }
.fixo-admin-meta   { font-size: 12px; color: var(--txt2); margin-top: 2px; display: flex; gap: 6px; flex-wrap: wrap; }
.fixo-admin-desc   { color: var(--txt3); }

/* Dica de seção admin */
.admin-secao-dica {
  font-size: 12.5px; color: var(--txt2); margin: -6px 0 12px;
}

/* ══ Histórico ══ */
.historico-filtros {
  display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 16px;
}
.hist-resumo {
  display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px;
}
.hist-resumo-chip {
  display: flex; align-items: center; gap: 6px;
  padding: 6px 12px; border-radius: var(--r-full);
  font-size: 12.5px; font-weight: 600;
}
.hist-resumo-total { background: var(--surf2); color: var(--txt); border: 1px solid var(--borda); }

.hist-grupo { margin-bottom: 16px; }
.hist-grupo-titulo {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 2px 7px; border-bottom: 1.5px solid var(--borda); margin-bottom: 7px;
}
.hist-data-label {
  font-size: 12.5px; font-weight: 700; color: var(--txt2);
  display: flex; align-items: center; gap: 6px; text-transform: uppercase; letter-spacing: .03em;
}
.hist-data-qtd { font-size: 11px; color: var(--txt3); font-weight: 500; }

.hist-item {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 9px 12px; border-radius: var(--r-sm);
  border: 1px solid var(--borda); background: var(--surf2);
  margin-bottom: 6px;
}
.hist-item.hist-manutencao { background: #fffbeb; border-color: #fde68a; }
.hist-icone {
  width: 32px; height: 32px; border-radius: 8px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; font-size: 14px; margin-top: 1px;
}
.hist-corpo { flex: 1; min-width: 0; }
.hist-titulo { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin-bottom: 3px; }
.hist-local  { font-size: 13px; font-weight: 700; }
.hist-periodo{ font-size: 12px; color: var(--txt2); }
.hist-badge  {
  font-size: 10px; font-weight: 700; padding: 2px 7px; border-radius: 4px;
  display: flex; align-items: center; gap: 3px;
}
.hist-badge-aula   { background: #e0f2fe; color: #0369a1; }
.hist-badge-grupo  { background: #f0fdf4; color: #166534; }
.hist-badge-manut  { background: #fef3c7; color: #92400e; }
.hist-meta {
  font-size: 11.5px; color: var(--txt2); display: flex; flex-wrap: wrap; gap: 8px;
}

/* Linha de disponibilidade do prof. dentro de cada grupo de data */
.hist-prof-disp-row {
  border: 1px dashed #cbd5e1; border-radius: var(--r-sm);
  padding: 9px 12px; margin-bottom: 6px; background: #f8fafc;
}
.hist-prof-disp-titulo {
  font-size: 12px; font-weight: 700; color: #475569;
  display: flex; align-items: center; gap: 8px; margin-bottom: 7px; flex-wrap: wrap;
}
.hist-prof-data {
  font-size: 11.5px; font-weight: 600; color: #0369a1;
  background: #e0f2fe; padding: 2px 8px; border-radius: var(--r-full);
  display: flex; align-items: center; gap: 4px;
}
.hist-prof-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.hist-prof-chip {
  font-size: 11px; font-weight: 600; padding: 3px 9px;
  border-radius: var(--r-full); display: flex; align-items: center; gap: 4px;
}

/* ══ Lista de adiantados ══ */
.adiantado-grupo { margin-bottom: 14px; }
.adiantado-grupo-titulo {
  font-size: 12px; font-weight: 700; color: var(--txt2);
  text-transform: uppercase; letter-spacing: .04em;
  padding: 0 2px 6px; border-bottom: 1px solid var(--borda);
  margin-bottom: 6px; display: flex; align-items: center; gap: 6px;
}
.adiantado-item {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 12px; border-radius: var(--r-sm);
  border: 1px solid var(--borda); background: var(--surf2);
  margin-bottom: 6px;
}
.adiantado-icone {
  width: 32px; height: 32px; border-radius: 8px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; font-size: 14px;
}
.adiantado-corpo { flex: 1; min-width: 0; }
.adiantado-titulo { font-size: 13px; font-weight: 700; color: var(--txt); }
.adiantado-meta {
  font-size: 11.5px; color: var(--txt2); margin-top: 2px;
  display: flex; flex-wrap: wrap; gap: 8px;
}
.adiantado-desc { color: var(--txt3); }

/* Fixo pausado — lista admin */
.fixo-admin-item.fixo-pausado {
  opacity: .65; background: #f8fafc;
}
.fixo-admin-botoes {
  display: flex; align-items: center; gap: 6px; flex-shrink: 0;
}
.fixo-btn-pausar {
  background: #f1f5f9; color: #64748b; border: 1.5px solid #cbd5e1;
}
.fixo-btn-pausar:hover { background: #e2e8f0; color: #374151; }
.fixo-btn-ativar {
  background: #f0fdf4; color: #166534; border: 1.5px solid #86efac;
  display: flex; align-items: center; gap: 4px; font-size: 12px; padding: 5px 10px;
}
.fixo-btn-ativar:hover { background: #dcfce7; }
.fixo-badge-pausado {
  font-size: 10px; font-weight: 700; background: #f1f5f9; color: #64748b;
  border: 1px solid #cbd5e1; border-radius: 4px; padding: 1px 6px;
  vertical-align: middle; margin-left: 4px;
}

/* ══ Minha Conta ══ */
.minha-conta-info {
  display: flex; flex-direction: column; gap: 6px;
  background: var(--surf2); border: 1px solid var(--borda);
  border-radius: var(--r-sm); padding: 12px 14px; margin-bottom: 20px;
}
.mc-info-row {
  display: flex; align-items: center; gap: 10px;
  font-size: 13px; color: var(--txt2);
}
.mc-info-row i { font-size: 14px; color: var(--txt3); width: 16px; text-align: center; }
.mc-info-row span { font-weight: 500; color: var(--txt); }

/* Editar e-mail no admin */
.usuario-email-edit {
  display: flex; align-items: center; gap: 6px; margin-top: 4px; flex-wrap: wrap;
}
.usuario-email-input {
  flex: 1; min-width: 160px; padding: 5px 10px; border-radius: 6px;
  border: 1.5px solid var(--tema, #0284c7); font-size: 12.5px;
  font-family: inherit; outline: none;
}
.btn-icone-edit {
  background: #f0f9ff; color: #0369a1; border: 1.5px solid #bae6fd;
  padding: 5px 9px; border-radius: 6px; font-size: 12px; cursor: pointer;
  display: flex; align-items: center;
}
.btn-icone-edit:hover { background: #e0f2fe; }

/* ══ Meus Agendamentos ══ */
.meus-grupo { margin-bottom: 18px; }
.meus-grupo-titulo {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 2px 7px; border-bottom: 1.5px solid var(--borda); margin-bottom: 8px;
  font-size: 12.5px; font-weight: 700; color: var(--txt2);
  text-transform: uppercase; letter-spacing: .03em;
}
.meus-grupo-titulo i { margin-right: 4px; }
.meus-grupo-qtd { font-size: 11px; color: var(--txt3); font-weight: 500; text-transform: none; letter-spacing: 0; }
.meus-badge-hoje {
  font-size: 10px; font-weight: 700; background: #dcfce7; color: #166534;
  border-radius: 4px; padding: 1px 7px; margin-left: 6px; vertical-align: middle;
  text-transform: none; letter-spacing: 0;
}
.meus-item {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 14px; border-radius: var(--r-sm);
  border: 1px solid var(--borda); background: var(--surf2);
  margin-bottom: 8px; transition: box-shadow .15s;
}
.meus-item:hover { box-shadow: 0 2px 8px rgba(0,0,0,.06); }
.meus-icone {
  width: 38px; height: 38px; border-radius: 10px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; font-size: 16px;
}
.meus-corpo { flex: 1; min-width: 0; }
.meus-titulo { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin-bottom: 4px; }
.meus-local  { font-size: 13px; font-weight: 700; }
.meus-periodo { font-size: 12px; color: var(--txt2); }
.meus-badge  {
  font-size: 10px; font-weight: 700; padding: 2px 7px; border-radius: 4px;
  display: inline-flex; align-items: center; gap: 3px;
}
.meus-badge-aula  { background: #e0f2fe; color: #0369a1; }
.meus-badge-grupo { background: #f0fdf4; color: #166534; }
.meus-meta {
  font-size: 11.5px; color: var(--txt2); display: flex; flex-wrap: wrap; gap: 8px;
}
.meus-btn-cancel { flex-shrink: 0; padding: 7px 11px; }

/* ══ Aba Gerenciar (admin) ══ */
.gerenciar-filtros {
  display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 16px;
}
.ger-grupo { margin-bottom: 16px; }
.ger-grupo-titulo {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 2px 7px; border-bottom: 1.5px solid var(--borda); margin-bottom: 7px;
  font-size: 12.5px; font-weight: 700; color: var(--txt2);
  text-transform: uppercase; letter-spacing: .03em;
}
.ger-grupo-titulo i { margin-right: 4px; }
.ger-grupo-qtd { font-size: 11px; color: var(--txt3); font-weight: 500; text-transform: none; letter-spacing: 0; }
.ger-item {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 12px; border-radius: var(--r-sm);
  border: 1px solid var(--borda); background: var(--surf2);
  margin-bottom: 6px;
}
.ger-icone {
  width: 34px; height: 34px; border-radius: 8px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; font-size: 15px;
}
.ger-corpo { flex: 1; min-width: 0; }
.ger-titulo { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin-bottom: 3px; }
.ger-local  { font-size: 13px; font-weight: 700; }
.ger-periodo { font-size: 12px; color: var(--txt2); }
.ger-badge  {
  font-size: 10px; font-weight: 700; padding: 2px 7px; border-radius: 4px;
  display: flex; align-items: center; gap: 3px;
}
.ger-badge-aula  { background: #e0f2fe; color: #0369a1; }
.ger-badge-grupo { background: #f0fdf4; color: #166534; }
.ger-badge-manut { background: #fef3c7; color: #92400e; }
.ger-meta {
  font-size: 11.5px; color: var(--txt2); display: flex; flex-wrap: wrap; gap: 8px;
}
.ger-btn-del {
  flex-shrink: 0; padding: 6px 10px;
}

/* ══════════════════════════════════════════════════════════════
   TELA ESCOLHA (landing aluno)
══════════════════════════════════════════════════════════════ */
.escolha-wrap {
  min-height: 100vh; display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 32px 20px;
  background: linear-gradient(160deg, #0f172a 0%, #1e3a5f 60%, #0369a1 100%);
}
.escolha-logo {
  display: flex; align-items: center; gap: 14px; margin-bottom: 32px;
}
.escolha-logo-img { width: 60px; height: 60px; border-radius: 12px; object-fit: cover; }
.escolha-logo-txt h2 { color: white; font-size: 15px; line-height: 1.3; font-weight: 700; }
.escolha-titulo {
  color: white; font-size: 26px; font-weight: 800; text-align: center;
  margin-bottom: 8px;
}
.escolha-sub {
  color: rgba(255,255,255,.7); font-size: 15px; text-align: center; margin-bottom: 32px;
}
.escolha-cards {
  display: flex; gap: 20px; flex-wrap: wrap; justify-content: center;
}
.escolha-card {
  display: flex; align-items: center; gap: 20px;
  background: white; border: none; border-radius: 20px;
  padding: 24px 32px; cursor: pointer; min-width: 240px;
  box-shadow: 0 8px 32px rgba(0,0,0,.25);
  transition: transform .15s, box-shadow .15s;
}
.escolha-card:hover { transform: translateY(-4px); box-shadow: 0 16px 48px rgba(0,0,0,.35); }
.escolha-card-icone {
  width: 56px; height: 56px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 26px; flex-shrink: 0;
}
.escolha-card-ag .escolha-card-icone  { background: #e0f2fe; color: #0284c7; }
.escolha-card-st .escolha-card-icone  { background: #f0fdf4; color: #059669; }
.escolha-card-txt { text-align: left; }
.escolha-card-txt strong { display: block; font-size: 18px; font-weight: 800; color: #0f172a; margin-bottom: 4px; }
.escolha-card-txt span   { font-size: 13px; color: #64748b; }

/* ══════════════════════════════════════════════════════════════
   SALATECH — layout
══════════════════════════════════════════════════════════════ */
.st-layout {
  display: flex;
  height: 100vh; height: 100dvh;
  overflow: hidden; background: #f8fafc;
}

/* Sidebar */
.st-sidebar {
  width: 260px; flex-shrink: 0;
  background: #0f172a; color: white;
  display: flex; flex-direction: column;
  overflow: hidden;
  transition: transform .25s;
  position: relative;
}
.st-sidebar-topo {
  display: flex; align-items: center; justify-content: space-between;
  padding: calc(18px + env(safe-area-inset-top, 0px)) 16px 18px;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.st-sidebar-brand {
  display: flex; align-items: center; gap: 10px;
  font-weight: 800; font-size: 18px;
}
.st-sidebar-brand i { color: #34d399; }
.st-btn-voltar {
  background: rgba(255,255,255,.1); border: none; color: white;
  width: 34px; height: 34px; border-radius: 8px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; transition: background .15s;
}
.st-btn-voltar:hover { background: rgba(255,255,255,.18); }
.st-nav-turmas {
  flex: 1; overflow-y: auto; padding: 12px 0;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,.15) transparent;
}
.st-nav-turmas::-webkit-scrollbar { width: 4px; }
.st-nav-turmas::-webkit-scrollbar-track { background: transparent; }
.st-nav-turmas::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,.18); border-radius: 4px;
}
.st-nav-turmas::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,.32); }
.st-nav-turma { margin-bottom: 4px; }
.st-nav-turma.arquivada { opacity: .55; }
.st-nav-turma-nome {
  padding: 6px 10px 6px 16px; font-size: 12px; font-weight: 700;
  color: rgba(255,255,255,.5); text-transform: uppercase; letter-spacing: .06em;
  display: flex; align-items: center; gap: 6px;
}
.st-nav-turma-nome > span { flex: 1; }
/* Botão excluir turma CMD (prof) */
.st-nav-turma-del-cmd {
  background: none; border: none; cursor: pointer;
  color: rgba(255,255,255,.45); width: 24px; height: 24px; border-radius: 6px;
  display: flex; align-items: center; justify-content: center; font-size: 13px;
  flex-shrink: 0; transition: background .15s, color .15s;
}
.st-nav-turma-del-cmd:hover { background: rgba(239,68,68,.22); color: #f87171; }
/* Botão arquivar (aparece no hover da turma) */
.st-nav-turma-arch-btn {
  opacity: 0; background: none; border: none; cursor: pointer;
  color: rgba(255,255,255,.45); width: 24px; height: 24px; border-radius: 6px;
  display: flex; align-items: center; justify-content: center; font-size: 13px;
  flex-shrink: 0; transition: opacity .15s, background .15s, color .15s;
}
.st-nav-turma:hover .st-nav-turma-arch-btn { opacity: 1; }
.st-nav-turma-arch-btn:hover { background: rgba(251,191,36,.2); color: #fbbf24; }
/* Botões sempre visíveis nas turmas arquivadas */
.st-nav-turma-des-btn  { opacity: 1 !important; }
.st-nav-turma-del-btn  { opacity: 1 !important; }
.st-nav-turma-des-btn:hover { background: rgba(52,211,153,.2);  color: #34d399; }
.st-nav-turma-del-btn:hover { background: rgba(248,113,113,.2); color: #f87171; }

.st-nav-discs { padding: 0 8px 4px; }
.st-nav-disc {
  width: 100%; background: transparent; border: none; color: rgba(255,255,255,.75);
  display: flex; flex-direction: column; align-items: flex-start;
  padding: 8px 12px; border-radius: 8px; cursor: pointer; text-align: left;
  font-size: 14px; transition: background .12s, color .12s; gap: 2px;
}
.st-nav-disc span { font-weight: 600; }
.st-nav-disc small { font-size: 11.5px; color: rgba(255,255,255,.45); }
.st-nav-disc i { margin-right: 6px; font-size: 13px; }
.st-nav-disc:hover { background: rgba(255,255,255,.1); color: white; }
.st-nav-disc:disabled { opacity: .4; cursor: not-allowed; }
.st-nav-disc.ativo { background: rgba(52,211,153,.2); color: #34d399; }
.st-nav-disc.ativo small { color: rgba(52,211,153,.6); }
.st-nav-sem-disc { padding: 6px 12px; font-size: 12px; color: rgba(255,255,255,.3); }

/* Wrapper de disciplina com botões de ação */
.st-nav-disc-wrap {
  display: flex; align-items: center; gap: 2px;
  position: relative;
}
.st-nav-disc-wrap .st-nav-disc {
  flex: 1;
}
.st-nav-disc-arch-btn {
  display: none; align-items: center; justify-content: center;
  width: 26px; height: 26px; border-radius: 6px; border: none;
  background: transparent; color: rgba(255,255,255,.5);
  cursor: pointer; font-size: 12px; flex-shrink: 0;
  transition: background .12s, color .12s;
}
.st-nav-disc-wrap:hover .st-nav-disc-arch-btn { display: flex; }
.st-nav-disc-arch-btn:hover { background: rgba(255,255,255,.15); color: white; }
.st-nav-disc-del-btn:hover  { background: rgba(220,38,38,.25); color: #fca5a5; }
.st-nav-disc-des-btn:hover  { background: rgba(2,132,199,.3); color: #7dd3fc; }

/* Disciplinas arquivadas */
.st-nav-disc-arch-sep {
  font-size: 11px; color: rgba(255,255,255,.4);
  padding: 6px 14px 2px; letter-spacing: .03em;
  display: flex; align-items: center; gap: 5px;
}
.st-nav-disc-arquivada {
  opacity: .55; font-style: italic;
}
.st-nav-disc-wrap-arch .st-nav-disc-arch-btn { display: flex; }

/* Badge de disciplina configurada */
.st-disc-config-badge {
  display: flex; align-items: center; gap: 7px;
  padding: 8px 12px; background: #f0f9ff;
  border: 1.5px solid #bae6fd; border-radius: 8px;
  color: #0369a1; font-weight: 600; font-size: 14px;
}

/* Admin: config de disciplina por prof */
.st-admin-prof-config-lista { display: flex; flex-direction: column; gap: 10px; margin-top: 12px; }
.st-admin-prof-config-row {
  display: flex; align-items: center; gap: 8px;
  background: #f8fafc; border: 1px solid #e2e8f0;
  border-radius: 10px; padding: 10px 12px;
}
.st-admin-prof-config-nome {
  flex: 1; min-width: 0; font-size: 13.5px; font-weight: 600; color: #1e293b;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.st-admin-prof-config-nome small { font-weight: 400; color: #64748b; }
.st-admin-prof-config-input {
  width: 180px; border: 1.5px solid #e2e8f0; border-radius: 8px;
  padding: 6px 10px; font-size: 13px; font-family: inherit;
  outline: none; transition: border-color .15s;
}
.st-admin-prof-config-input:focus { border-color: #0284c7; }

/* Separador e lista de turmas arquivadas */
.st-nav-arquivadas-sep { padding: 10px 8px 4px; }
.st-nav-arquivadas-toggle {
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12);
  color: rgba(255,255,255,.45); border-radius: 8px; padding: 6px 12px;
  font-size: 11px; font-weight: 600; cursor: pointer; width: 100%;
  display: flex; align-items: center; gap: 6px; transition: background .15s;
}
.st-nav-arquivadas-toggle:hover { background: rgba(255,255,255,.12); color: rgba(255,255,255,.7); }
.st-arch-chevron { margin-left: auto; font-size: 10px; }
.st-nav-arquivadas-lista { padding-top: 4px; }

/* ── Modal arquivar turma ── */
.arch-aviso-box {
  display: flex; gap: 14px; align-items: flex-start;
  background: #fffbeb; border: 1.5px solid #fde68a; border-radius: 12px;
  padding: 14px 16px;
}
.arch-aviso-icon { font-size: 22px; color: #d97706; flex-shrink: 0; margin-top: 1px; }
.arch-aviso-lista {
  margin: 8px 0 0 16px; padding: 0; font-size: 13px; color: #78350f;
  line-height: 1.7; list-style: disc;
}
.arch-btn-continuar, .arch-btn-confirmar {
  color: white; border: none;
  padding: 8px 18px; border-radius: 8px; font-size: 13px; font-weight: 700;
  cursor: pointer; display: flex; align-items: center; gap: 6px; transition: opacity .15s;
}
.arch-btn-continuar:hover, .arch-btn-confirmar:hover { opacity: .88; }
.arch-btn-confirmar:disabled { opacity: .45; cursor: not-allowed; }
.arch-senha-input {
  width: 100%; padding: 10px 42px 10px 12px;
  border: 1.5px solid #e2e8f0; border-radius: 10px; font-size: 14px;
  font-family: inherit; transition: border-color .15s;
}
.arch-senha-input:focus { outline: none; border-color: #d97706; }
.arch-senha-eye {
  position: absolute; right: 10px; top: 50%; transform: translateY(-50%);
  background: none; border: none; cursor: pointer; color: #94a3b8; font-size: 16px;
  padding: 2px; display: flex; align-items: center;
}

/* Main */
.st-main {
  flex: 1; display: flex; flex-direction: column;
  overflow: hidden; min-width: 0;
}
.st-main-topo {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 20px; background: white;
  border-bottom: 1px solid #e2e8f0;
  box-shadow: 0 1px 4px rgba(0,0,0,.06);
  flex-shrink: 0;
}
.st-btn-menu {
  display: none; background: none; border: none;
  font-size: 22px; cursor: pointer; color: #334155; padding: 4px;
}
.st-main-topo-info { flex: 1; min-width: 0; }
.st-main-topo-info h2 { font-size: 16px; font-weight: 700; color: #0f172a; margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.st-main-topo-info p  { font-size: 12px; color: #64748b; margin: 0; display: flex; align-items: center; flex-wrap: wrap; gap: 4px; }
.st-disc-sub-user { display: inline-flex; align-items: center; gap: 3px; }
.st-disc-sub-sep  { color: #cbd5e1; font-size: 11px; }
.st-disc-sub-prof { display: inline-flex; align-items: center; gap: 3px; color: #475569; font-weight: 500; }
.st-disc-sub-email { font-weight: 400; color: #94a3b8; font-style: italic; }
.st-feed {
  flex: 1; overflow-y: auto;
  padding: 20px 20px 80px; /* 80px no fundo para o rodapé não tampar o último item */
  display: flex; flex-direction: column; gap: 16px;
}

/* Form nova atividade */
.st-post-form {
  background: white; border-bottom: 1px solid #e2e8f0;
  padding: 16px 20px 0; flex-shrink: 0;
  display: flex; flex-direction: column;
  max-height: 85vh; /* nunca ultrapassa a tela */
}
.st-post-form form {
  overflow-y: auto; /* conteúdo rola internamente */
  flex: 1;
  padding-bottom: 4px;
  scrollbar-width: thin;
  scrollbar-color: #cbd5e1 transparent;
}
.st-post-form-cabecalho {
  display: flex; align-items: center; gap: 8px;
  font-weight: 700; font-size: 14px; margin-bottom: 12px;
  color: #0f172a; flex-shrink: 0;
}
.btn-fechar-sm {
  margin-left: auto; background: none; border: none;
  cursor: pointer; font-size: 16px; color: #64748b; padding: 2px 6px;
}
.btn-fechar-sm:hover { color: #0f172a; }
.st-post-form-acoes {
  display: flex; gap: 8px; justify-content: flex-end;
  margin-top: 0; padding: 10px 0 16px;
  background: white;
  border-top: 1px solid #f1f5f9;
  flex-shrink: 0; /* botões sempre visíveis */
}

/* File inputs */
.st-file-label {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 14px; border-radius: 8px; cursor: pointer;
  background: #f1f5f9; color: #334155; font-size: 13.5px;
  border: 1.5px dashed #cbd5e1; transition: background .12s;
}
.st-file-label:hover { background: #e2e8f0; }
.st-file-label input[type="file"] { display: none; }
.st-files-lista { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.st-arq-preview {
  background: #f1f5f9; border-radius: 6px; padding: 4px 10px;
  font-size: 12px; color: #475569; display: flex; align-items: center; gap: 4px;
}

/* Atividade card */
.st-ativ-card {
  background: white; border-radius: 14px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 1px 6px rgba(0,0,0,.06);
  transition: box-shadow .15s, border-color .15s;
  /* SEM overflow:hidden — estava cortando o rodapé.
     O border-radius cuida dos cantos visuais sem precisar clipar. */
}
.st-ativ-card:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,.10);
  border-color: #cbd5e1;
}


/* Card resumo no feed — aparência clicável */
.st-ativ-card-resumo {
  cursor: pointer;
}
.st-ativ-card-resumo:hover {
  box-shadow: 0 4px 18px rgba(0,0,0,.12);
  border-color: #cbd5e1;
}
.st-ativ-card-resumo:active {
  transform: scale(0.99);
}
@keyframes stBodyOpen {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Chevron */
.st-ativ-header-right {
  display: flex; align-items: center; gap: 4px; flex-shrink: 0;
}
.st-ativ-chevron {
  font-size: 14px; color: #94a3b8;
  transition: transform .2s ease;
}
.st-ativ-card.expandido .st-ativ-chevron {
  transform: rotate(180deg);
}

.st-ativ-header {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 16px 10px;
}
.st-ativ-avatar {
  width: 32px; height: 32px; border-radius: 50%;
  background: linear-gradient(135deg, #0369a1, #0284c7);
  color: white; display: flex; align-items: center; justify-content: center;
  font-size: 14px; flex-shrink: 0;
}
.st-ativ-meta { flex: 1; }
.st-ativ-meta strong { display: block; font-size: 14px; font-weight: 700; color: #0f172a; }
.st-ativ-meta span   { font-size: 12px; color: #94a3b8; }
.st-ativ-del {
  background: none; border: none; color: #94a3b8; cursor: pointer;
  padding: 6px; border-radius: 6px; font-size: 16px; transition: color .12s, background .12s;
}
.st-ativ-del:hover { color: #ef4444; background: #fef2f2; }
/* ── Card feed: layout 2 zonas ── */
.st-ativ-card-topo {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 12px 14px 10px;
}
.st-ativ-card-head-info {
  flex: 1; min-width: 0;
  display: flex; flex-direction: column; gap: 4px;
}
.st-ativ-titulo-txt {
  font-size: 15px; font-weight: 700; color: #0f172a;
  line-height: 1.35; word-break: break-word;
}
/* Preview da descrição — 2 linhas com clamp */
.st-ativ-desc-preview {
  font-size: 13px; color: #64748b;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: break-word;
}
.st-ativ-chevron-icon { color: #94a3b8; font-size: 14px; flex-shrink: 0; margin-top: 3px; }

/* Rodapé com CSS Grid: duas linhas com altura automática garantida.
   Grid-template-rows: auto auto = cada linha pega exatamente o espaço
   que precisa, sem clipping, sem depender de flex-wrap. */
.st-ativ-card-rodape {
  display: grid;
  grid-template-rows: auto auto;
  border-top: 1px solid #f1f5f9;
  background: #fafbfc;
  border-bottom-left-radius: 14px;
  border-bottom-right-radius: 14px;
}
/* Linha 1: badges de tipo + modalidade + status */
.st-card-row-badges {
  display: flex; align-items: center; flex-wrap: wrap; gap: 6px;
  padding: 8px 14px 6px;
  min-height: 30px;
}
.st-card-row-badges:empty { display: none; } /* se sem badges não mostra espaço */
/* Linha 2: prazo + autor + data + arquivos */
.st-card-row-meta {
  display: flex; align-items: center; flex-wrap: wrap; gap: 6px 12px;
  padding: 6px 14px 10px;
  border-top: 1px solid #eef2f7;
  min-height: 28px;
}

.st-ativ-card-meta { display: none; } /* legado */
.st-ativ-autor-mini {
  font-size: 11px; color: #94a3b8;
  display: inline-flex; align-items: center; gap: 3px;
}
.st-ativ-data {
  font-size: 11px; color: #64748b; font-weight: 500;
  display: inline-flex; align-items: center; gap: 3px;
  white-space: nowrap; margin-left: auto;
}
.st-ativ-arq-mini {
  font-size: 11px; color: #94a3b8;
  display: inline-flex; align-items: center; gap: 3px;
  white-space: nowrap;
}
/* Badges de prazo */
.st-prazo-badge {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 11px; font-weight: 600; border-radius: 20px;
  padding: 2px 8px;
}
.st-prazo-ok      { background: #dcfce7; color: #166534; }
.st-prazo-proximo { background: #fef9c3; color: #854d0e; }
.st-prazo-urgente { background: #ffedd5; color: #9a3412; }
.st-prazo-vencido { background: #fee2e2; color: #991b1b; }
.st-ativ-rodape-spacer { display: none; } /* legado */
/* Descrição completa no detalhe */
.st-ativ-desc-txt {
  padding: 8px 16px 12px; font-size: 14px; color: #475569; white-space: pre-wrap; line-height: 1.5; word-break: break-word;
}
/* ── Mídia inline (imagem, vídeo, áudio) ── */
.st-midia-lista {
  display: flex; flex-direction: column; gap: 12px;
  padding: 8px 16px 12px;
}
.st-midia-wrap { display: flex; flex-direction: column; gap: 4px; }

.st-midia-img-box {
  /* Caixa de altura fixa — todas as imagens ficam no mesmo tamanho */
  width: 100%;
  height: 280px;
  background: #f1f5f9;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.st-midia-img {
  display: block;
  max-width: 100%;
  max-height: 100%;
  width: auto; height: auto;
  object-fit: contain;   /* imagem inteira, sem corte */
  cursor: zoom-in;
  transition: opacity .12s;
}
.st-midia-img:hover { opacity: .88; }

.st-midia-video {
  display: block;
  max-width: 100%;
  max-height: 360px;
  width: 100%; height: auto;
  border-radius: 10px;
  background: #000;
}

.st-midia-audio-wrap { padding: 8px 0; }
.st-midia-audio {
  width: 100%;
  max-width: 480px;
}

.st-midia-nome {
  font-size: 11.5px; color: #94a3b8;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* Resposta: midia sem padding lateral extra */
.st-resp-arquivos .st-midia-lista { padding: 4px 0 8px; }

/* ── Chips de arquivo (visualizar / download) ── */
.st-arquivos-lista { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 16px 14px; }

.st-arq-chip {
  display: inline-flex; align-items: center; gap: 6px;
  background: #f1f5f9; border-radius: 8px; padding: 6px 12px;
  font-size: 12.5px; color: #0369a1; text-decoration: none;
  border: 1px solid #e2e8f0; transition: background .12s;
  max-width: 240px;
}
.st-arq-chip span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.st-arq-chip:hover { background: #e0f2fe; }

/* Mobile: imagens ocupam mais espaço */
@media (max-width: 600px) {
  .st-midia-img-box { height: 200px; }
  .st-midia-video   { max-height: 220px; }
}

/* Respostas */
.st-respostas-wrap {
  background: #fafbfd;
}
.st-respostas-lista { padding: 8px 12px 4px; display: flex; flex-direction: column; gap: 8px; }
.st-resp-card {
  background: white; border-radius: 10px; border: 1px solid #e2e8f0;
  padding: 10px 14px;
}
.st-resp-header {
  display: flex; align-items: center; gap: 8px; margin-bottom: 6px;
}
.st-resp-avatar {
  width: 28px; height: 28px; border-radius: 50%;
  background: linear-gradient(135deg, #059669, #10b981);
  color: white; display: flex; align-items: center; justify-content: center;
  font-size: 12px; flex-shrink: 0;
}
/* Avatar de resposta em grupo — cor diferente */
.st-resp-avatar-grupo {
  background: linear-gradient(135deg, #7c3aed, #a855f7);
  width: 30px; height: 30px; font-size: 13px;
}
.st-resp-meta { flex: 1; min-width: 0; }
.st-resp-meta strong {
  font-size: 13px; font-weight: 700; color: #0f172a;
  display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.st-resp-meta span   { font-size: 11px; color: #94a3b8; margin-left: 6px; }
.st-resp-del {
  background: none; border: none; color: #94a3b8; cursor: pointer;
  padding: 4px; border-radius: 5px; font-size: 14px; transition: color .12s;
}
.st-resp-del:hover { color: #ef4444; }
.st-resp-texto-txt { font-size: 13.5px; color: #334155; white-space: pre-wrap; overflow-wrap: break-word; word-break: break-word; margin-bottom: 6px; }
.st-resp-arquivos .st-arquivos-lista { padding: 0; }

/* Form resposta inline */
.st-resp-form {
  padding: 10px 14px 12px; border-top: 1px solid #f1f5f9;
}
.st-resp-input-wrap {
  display: flex; align-items: flex-end; gap: 8px;
}
.st-resp-texto {
  flex: 1; border: 1.5px solid #e2e8f0; border-radius: 10px;
  padding: 8px 12px; font-size: 13.5px; font-family: inherit;
  resize: none; outline: none; transition: border-color .15s;
  min-height: 38px; background: white;
}
.st-resp-texto:focus { border-color: #0284c7; }
.st-resp-file-btn {
  width: 36px; height: 36px; border-radius: 8px;
  background: #f1f5f9; display: flex; align-items: center; justify-content: center;
  cursor: pointer; font-size: 16px; color: #64748b; flex-shrink: 0;
  border: 1.5px solid #e2e8f0; transition: background .12s;
}
.st-resp-file-btn:hover { background: #e2e8f0; }
.st-resp-file-btn input[type="file"] { display: none; }
.st-resp-send {
  width: 36px; height: 36px; border-radius: 8px; flex-shrink: 0;
  background: #0284c7; color: white; border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 15px; transition: background .12s;
}
.st-resp-send:hover { background: #0369a1; }
.st-resp-send:disabled { opacity: .5; cursor: not-allowed; }
.st-resp-files-lista { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
.st-resp-erro { margin-top: 6px; font-size: 12.5px; }

/* ── Rascunho inline (banner no form de entrega) ── */
.st-rascunho-status {
  display: flex; align-items: center; gap: 8px;
  padding: 6px 10px; margin-bottom: 8px;
  background: #fefce8; border: 1px solid #fde68a;
  border-radius: 8px; font-size: 12px; color: #854d0e;
}
.st-rascunho-status i { font-size: 13px; }
.st-rascunho-label { flex: 1; }


/* ══ Chat de Recursos do Grupo ══════════════════════════════════════════════ */

/* Botão flutuante */
.st-fab-chat {
  position: absolute; bottom: 24px; left: 20px; z-index: 50;
  bottom: calc(24px + env(safe-area-inset-bottom, 0px));
  width: 54px; height: 54px; border-radius: 50%;
  background: linear-gradient(135deg, #0284c7, #0ea5e9);
  color: white; border: none; cursor: pointer; font-size: 22px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 16px rgba(2,132,199,.45);
  transition: transform .15s, box-shadow .15s;
}
@media (max-width: 640px) {
  .st-fab-chat {
    bottom: calc(72px + env(safe-area-inset-bottom, 0px));
  }
}
.st-fab-chat:hover { transform: scale(1.07); box-shadow: 0 6px 20px rgba(2,132,199,.55); }
.st-fab-chat.oculto { display: none !important; }

/* Painel slide-up */
.st-chat-panel {
  position: absolute; inset: 0; top: 100%;
  background: white; z-index: 60;
  display: flex; flex-direction: column;
  transition: top .28s cubic-bezier(.16,1,.3,1);
  border-radius: 16px 16px 0 0;
  box-shadow: 0 -4px 24px rgba(0,0,0,.12);
}
.st-chat-panel.aberto { top: 0; }

/* Topo do chat */
.st-chat-topo {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 16px; border-bottom: 1px solid #e2e8f0;
  flex-shrink: 0; background: white;
  border-radius: 16px 16px 0 0;
}
.st-chat-fechar {
  background: none; border: none; cursor: pointer; font-size: 20px;
  color: #64748b; padding: 4px; border-radius: 8px;
  display: flex; align-items: center; transition: background .12s;
}
.st-chat-fechar:hover { background: #f1f5f9; color: #0f172a; }
.st-chat-titulo { font-weight: 700; font-size: 15px; color: #0f172a; flex: 1; }

/* Seletor de grupos (prof) */
.st-chat-grupo-sel-wrap {
  padding: 10px 12px 6px; border-bottom: 1px solid #f1f5f9;
  flex-shrink: 0; background: #f8fafc;
}
.st-chat-grupo-tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.st-chat-grupo-tab {
  padding: 4px 12px; border-radius: 20px; border: 1.5px solid #e2e8f0;
  background: white; font-size: 12px; color: #475569; cursor: pointer;
  transition: all .12s; white-space: nowrap; max-width: 180px;
  overflow: hidden; text-overflow: ellipsis;
}
.st-chat-grupo-tab.ativo { background: #0284c7; color: white; border-color: #0284c7; }
.st-chat-grupo-vazio { font-size: 12.5px; color: #94a3b8; padding: 4px 0; }

/* Lista de mensagens */
.st-chat-lista {
  flex: 1; min-height: 0; overflow-y: auto;
  padding: 14px 14px 6px;
  display: flex; flex-direction: column; gap: 10px;
  -webkit-overflow-scrolling: touch;
}
.st-chat-vazio {
  display: flex; flex-direction: column; align-items: center;
  justify-content: center; gap: 8px; flex: 1;
  color: #94a3b8; text-align: center; font-size: 13.5px; padding: 24px;
}

/* Balão de mensagem */
.st-chat-msg {
  display: flex; gap: 8px; align-items: flex-start;
}
.st-chat-msg.eu { flex-direction: row-reverse; }

.st-chat-avatar {
  width: 30px; height: 30px; border-radius: 50%; flex-shrink: 0;
  background: linear-gradient(135deg, #059669, #10b981);
  color: white; display: flex; align-items: center; justify-content: center;
  font-size: 13px; margin-top: 2px;
}
.st-chat-avatar.prof { background: linear-gradient(135deg, #7c3aed, #a855f7); }

.st-chat-bubble {
  max-width: 75%; background: #f1f5f9; border-radius: 0 12px 12px 12px;
  padding: 8px 12px; font-size: 13.5px;
}
.st-chat-msg.eu .st-chat-bubble {
  background: #e0f2fe; border-radius: 12px 0 12px 12px;
}
.st-chat-msg.prof .st-chat-bubble {
  background: #f3e8ff; border-radius: 0 12px 12px 12px;
}
.st-chat-msg.eu.prof .st-chat-bubble {
  background: #f3e8ff; border-radius: 12px 0 12px 12px;
}

.st-chat-bubble-topo {
  display: flex; align-items: center; gap: 6px; margin-bottom: 4px; flex-wrap: wrap;
}
.st-chat-bubble-topo strong { font-size: 12px; color: #0f172a; }
.st-chat-hora { font-size: 10.5px; color: #94a3b8; margin-left: auto; }
.st-chat-prof-badge {
  font-size: 9.5px; font-weight: 700; background: #7c3aed; color: white;
  padding: 1px 5px; border-radius: 4px; letter-spacing: .03em;
}
.st-chat-del {
  background: none; border: none; color: #cbd5e1; cursor: pointer;
  font-size: 12px; padding: 1px; border-radius: 4px; transition: color .12s;
}
.st-chat-del:hover { color: #ef4444; }
.st-chat-texto { color: #334155; white-space: pre-wrap; overflow-wrap: break-word; word-break: break-word; line-height: 1.5; }
.st-chat-arqs { margin-top: 6px; }
.st-chat-arqs .st-midia-img-box { height: 160px; }
.st-chat-arqs .st-arquivos-lista { padding: 0; }

/* ── Chat: botão Links no topo ── */
.st-chat-link-btn {
  margin-left: auto; flex-shrink: 0;
  background: var(--indigo-bg); color: var(--indigo-t);
  border: 1px solid #c7d2fe; border-radius: 8px;
  padding: 5px 11px; font-size: 12px; font-weight: 600;
  cursor: pointer; display: flex; align-items: center; gap: 5px;
  transition: background .15s, color .15s;
}
.st-chat-link-btn:hover { background: var(--indigo); color: white; border-color: var(--indigo); }

/* ── Chat: área de link pinado ── */
.st-chat-link-pin {
  flex-shrink: 0;
  padding: 8px 12px;
  background: linear-gradient(90deg, #eff6ff, #f0fdf4);
  border-bottom: 1px solid #c7d2fe;
}
.st-chat-link-card {
  display: flex; align-items: center; gap: 10px;
  background: white; border-radius: 10px;
  padding: 9px 12px;
  border: 1.5px solid #a5b4fc;
  box-shadow: 0 1px 6px rgba(99,102,241,.10);
}
.st-chat-link-icon { font-size: 20px; color: var(--indigo); flex-shrink: 0; }
.st-chat-link-info { flex: 1; min-width: 0; }
.st-chat-link-label { display: block; font-size: 10.5px; font-weight: 700; color: var(--indigo-t); text-transform: uppercase; letter-spacing: .4px; }
.st-chat-link-url {
  display: block; font-size: 13px; color: var(--indigo);
  text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  margin-top: 1px;
}
.st-chat-link-url:hover { text-decoration: underline; }
.st-chat-link-open {
  color: var(--indigo); font-size: 16px; text-decoration: none; flex-shrink: 0;
  width: 30px; height: 30px; display: flex; align-items: center; justify-content: center;
  border-radius: 6px; transition: background .12s;
}
.st-chat-link-open:hover { background: var(--indigo-bg); }
.st-chat-link-del {
  background: none; border: none; color: #94a3b8; flex-shrink: 0;
  width: 28px; height: 28px; border-radius: 6px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; transition: background .12s, color .12s;
}
.st-chat-link-del:hover { background: #fee2e2; color: var(--vermelho); }

/* ── Overlay de gerenciamento de links (prof) ── */
.st-chat-links-overlay {
  position: absolute; inset: 0;
  background: #f8fafc; z-index: 10;
  display: flex; flex-direction: column;
  transform: translateX(100%);
  transition: transform .25s cubic-bezier(.4,0,.2,1);
}
.st-chat-links-overlay.aberto { transform: translateX(0); }

/* Topo */
.st-links-topo {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 16px; background: white;
  border-bottom: 1px solid #e2e8f0; flex-shrink: 0;
}
.st-links-voltar {
  background: none; border: none; cursor: pointer; color: #475569;
  width: 34px; height: 34px; border-radius: 8px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; transition: background .12s;
}
.st-links-voltar:hover { background: #f1f5f9; }
.st-links-topo-info { flex: 1; min-width: 0; }
.st-links-topo-titulo {
  font-size: 15px; font-weight: 700; color: #0f172a;
  display: flex; align-items: center; gap: 6px;
}
.st-links-topo-titulo i { color: #6366f1; }
.st-links-topo-sub { font-size: 11px; color: #64748b; margin-top: 1px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Corpo */
.st-links-body {
  flex: 1; min-height: 0; overflow-y: auto;
  padding: 16px; display: flex; flex-direction: column; gap: 16px;
}

/* Card colar links */
.st-links-card {
  background: white; border-radius: 14px;
  border: 1px solid #e2e8f0; padding: 16px;
  display: flex; flex-direction: column; gap: 12px;
  box-shadow: 0 1px 4px rgba(0,0,0,.05);
}
.st-links-card-header { display: flex; align-items: flex-start; gap: 10px; }
.st-links-card-titulo { font-size: 13px; font-weight: 700; color: #1e293b; }
.st-links-card-sub { font-size: 11px; color: #64748b; margin-top: 2px; line-height: 1.4; }
.st-links-paste {
  width: 100%; padding: 10px 12px;
  border: 1.5px solid #e2e8f0; border-radius: 10px;
  font-size: 13px; resize: vertical; font-family: inherit;
  transition: border-color .15s; line-height: 1.6;
  background: #f8fafc; color: #0f172a; min-height: 100px;
}
.st-links-paste:focus { outline: none; border-color: #6366f1; background: white; }
.st-links-detectados {
  display: flex; align-items: center; gap: 5px;
  font-size: 12px; color: #94a3b8; font-weight: 500;
  padding: 4px 0;
}
.st-links-detectados.tem { color: #059669; font-weight: 700; }
.st-links-detectados i { font-size: 13px; }
.st-links-dist-btn {
  width: 100%; padding: 11px 16px; border-radius: 10px; border: none;
  background: linear-gradient(135deg, #4f46e5, #6366f1);
  color: white; font-size: 13px; font-weight: 700;
  cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 7px;
  transition: opacity .15s, transform .1s; box-shadow: 0 2px 8px rgba(99,102,241,.3);
}
.st-links-dist-btn:not(:disabled):hover { opacity: .92; transform: translateY(-1px); }
.st-links-dist-btn:disabled { opacity: .45; cursor: not-allowed; transform: none; box-shadow: none; }

/* Seção de links cadastrados */
.st-links-lista-section { display: flex; flex-direction: column; gap: 8px; }
.st-links-lista-header {
  display: flex; align-items: center; gap: 7px;
  font-size: 13px; font-weight: 700; color: #334155;
  padding-bottom: 8px; border-bottom: 1px solid #e2e8f0;
}
.st-links-lista { display: flex; flex-direction: column; gap: 8px; }
.st-links-vazio {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  padding: 32px 16px; color: #94a3b8; text-align: center;
}
.st-links-vazio i { font-size: 28px; opacity: .4; }
.st-links-vazio span { font-size: 13px; }
/* Toggle chat rápido (professor) */
.st-toggle-chat-bar {
  padding: 8px 16px 12px;
}
.st-toggle-chat-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 14px; border-radius: 999px; border: 1.5px solid #e2e8f0;
  background: var(--fundo-card); color: var(--texto-suave);
  font-size: 13px; cursor: pointer; transition: all .2s;
}
.st-toggle-chat-btn:hover { border-color: #6366f1; color: #6366f1; }
.st-toggle-chat-btn.ativo { background: #ede9fe; border-color: #6366f1; color: #6366f1; }
.st-toggle-chat-pill {
  font-size: 10px; font-weight: 700; padding: 2px 7px;
  border-radius: 999px; background: #e2e8f0; color: #64748b;
}
.st-toggle-chat-btn.ativo .st-toggle-chat-pill { background: #6366f1; color: #fff; }

/* ── Overlay de envios por grupo (prof) ── */
.st-chat-envios-overlay {
  position: absolute; inset: 0;
  background: #f8fafc; z-index: 10;
  display: flex; flex-direction: column;
  transform: translateX(100%);
  transition: transform .25s cubic-bezier(.4,0,.2,1);
}
.st-chat-envios-overlay.aberto { transform: translateX(0); }
.st-envios-progresso-card {
  background: #fff; border: 1px solid #e2e8f0; border-radius: 12px;
  padding: 14px 16px; margin-bottom: 12px;
}
.st-envios-progresso-info {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 8px;
}
.st-envios-progresso-txt { font-size: 13.5px; color: #1e293b; }
.st-envios-pct { font-size: 14px; font-weight: 700; color: #22c55e; }
.st-envios-progresso-bar-wrap {
  height: 8px; background: #e2e8f0; border-radius: 99px; overflow: hidden;
}
.st-envios-progresso-bar {
  height: 100%; background: linear-gradient(90deg,#22c55e,#16a34a);
  border-radius: 99px; transition: width .4s ease;
}
.st-envios-lista { display: flex; flex-direction: column; gap: 8px; }
.st-envios-card {
  display: flex; align-items: flex-start; gap: 12px;
  background: #fff; border: 1.5px solid #e2e8f0; border-radius: 12px;
  padding: 12px 14px;
}
.st-envios-ok     { border-color: #bbf7d0; background: #f0fdf4; }
.st-envios-pendente { border-color: #fed7aa; background: #fffbeb; }
.st-envios-card-icon { font-size: 18px; padding-top: 1px; flex-shrink: 0; }
.st-envios-ok .st-envios-card-icon      { color: #16a34a; }
.st-envios-pendente .st-envios-card-icon { color: #f59e0b; }
.st-envios-card-info { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.st-envios-card-membros { font-size: 13px; font-weight: 600; color: #1e293b; }
.st-envios-card-link {
  font-size: 12.5px; color: #0284c7; text-decoration: none;
  display: flex; align-items: center; gap: 4px; word-break: break-all;
}
.st-envios-card-link:hover { text-decoration: underline; }
.st-envios-card-sem-link { font-size: 12px; color: #b45309; font-style: italic; }

/* Aviso de grupos sem link */
.st-links-sem-link-bar {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  padding: 8px 12px; border-radius: 10px; margin-bottom: 10px;
  background: #fffbeb; border: 1px solid #fde68a;
  font-size: 12px; color: #92400e;
}
.st-links-sem-link-bar em { font-style: normal; font-weight: 600; }

.st-chat-link-row {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; border-radius: 10px;
  background: var(--surf2); border: 1px solid #e2e8f0;
}
.st-chat-link-row-info { flex: 1; min-width: 0; }
.st-chat-link-row-grupo { display: block; font-size: 11px; font-weight: 600; color: var(--txt2); margin-bottom: 2px; }
.st-chat-link-row-url {
  display: block; font-size: 13px; color: var(--indigo);
  text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.st-chat-link-row-url:hover { text-decoration: underline; }
.st-chat-link-row-del {
  background: none; border: none; color: #94a3b8; flex-shrink: 0;
  width: 28px; height: 28px; border-radius: 6px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; transition: background .12s, color .12s;
}
.st-chat-link-row-del:hover { background: #fee2e2; color: var(--vermelho); }

/* ── Link row: botões de ação (editar + remover) ── */
.st-chat-link-row-btns { display: flex; gap: 4px; flex-shrink: 0; }
.st-chat-link-row-edit {
  background: none; border: none; color: #94a3b8; flex-shrink: 0;
  width: 28px; height: 28px; border-radius: 6px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; transition: background .12s, color .12s;
}
.st-chat-link-row-edit:hover { background: var(--indigo-bg); color: var(--indigo); }
/* ── Link row: vista de edição ── */
.st-chat-link-row-edit-wrap { width: 100%; display: flex; flex-direction: column; gap: 6px; }
.st-chat-link-edit-input {
  width: 100%; padding: 7px 10px; border: 1.5px solid var(--indigo);
  border-radius: 8px; font-size: 13px; font-family: inherit;
}
.st-chat-link-edit-input:focus { outline: none; }
.st-chat-link-edit-btns { display: flex; gap: 6px; }

/* Form de envio */
.st-chat-form {
  flex-shrink: 0; padding: 10px 12px 12px;
  /* Garante que o botão de enviar fique acima do home indicator do iPhone */
  padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid #e2e8f0; background: white;
}
.st-chat-input-row { display: flex; align-items: flex-end; gap: 6px; }
.st-chat-texto {
  flex: 1; border: 1.5px solid #e2e8f0; border-radius: 10px;
  padding: 8px 12px; font-size: 13.5px; font-family: inherit;
  resize: none; outline: none; transition: border-color .15s;
  min-height: 38px; max-height: 120px; background: white;
  overflow-y: auto;
}
.st-chat-texto:focus { border-color: #0284c7; }

/* ── Thread wrapper (card + filhas + reply form) ── */
.st-resp-thread { display: flex; flex-direction: column; gap: 0; }

/* ── Ações do fórum (curtir + responder) ── */
.st-resp-acoes {
  display: flex; align-items: center; gap: 14px;
  margin-top: 8px; padding-top: 8px;
  border-top: 1px solid #f1f5f9;
}
.st-curtir-btn {
  display: flex; align-items: center; gap: 5px;
  background: none; border: none; cursor: pointer;
  font-size: 13px; color: #94a3b8;
  padding: 3px 8px; border-radius: 20px;
  transition: color .15s, background .15s;
}
.st-curtir-btn:hover { color: #f43f5e; background: #fff1f2; }
.st-curtir-btn.curtido { color: #f43f5e; }
.st-curtir-btn.curtido i { animation: curtir-pop .2s ease; }
@keyframes curtir-pop {
  0%   { transform: scale(1); }
  50%  { transform: scale(1.4); }
  100% { transform: scale(1); }
}
.st-curtir-count { font-weight: 600; }
.st-reply-btn {
  display: flex; align-items: center; gap: 5px;
  background: none; border: none; cursor: pointer;
  font-size: 13px; color: #94a3b8;
  padding: 3px 8px; border-radius: 20px;
  transition: color .15s, background .15s;
}
.st-reply-btn:hover, .st-reply-btn.ativo { color: #0284c7; background: #eff6ff; }

/* ── Replies aninhadas ── */
.st-respostas-filhas {
  margin-left: 28px;
  margin-top: 4px;
  display: flex; flex-direction: column; gap: 6px;
  border-left: 2px solid #e2e8f0;
  padding-left: 10px;
}
.st-respostas-filhas .st-resp-card {
  background: #f8fafc;
  border-color: #e2e8f0;
}

/* ── Form inline de reply ── */
.st-reply-form-wrap {
  margin-left: 28px;
  margin-top: 6px;
  padding-left: 10px;
  border-left: 2px solid #bfdbfe;
}
.st-reply-form-wrap .st-resp-form {
  background: #f0f9ff;
  border-radius: 10px;
  border: 1.5px solid #bfdbfe;
  padding: 8px 12px;
}

/* Botão del genérico */
.btn-icone-del {
  background: none; border: none; color: #94a3b8;
  cursor: pointer; padding: 4px 6px; border-radius: 6px;
  font-size: 14px; transition: color .12s, background .12s;
}
.btn-icone-del:hover { color: #ef4444; background: #fef2f2; }

/* Chip de turma na lista de usuários */
.usuario-turma-chip {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 11.5px; background: #eff6ff; color: #1d4ed8;
  border: 1px solid #bfdbfe; border-radius: 6px; padding: 2px 8px; margin-top: 3px;
}

/* ══ Admin SalaTech ══════════════════════════════════════════ */
.st-admin-turma-sel-wrap {
  display: flex; align-items: flex-end; gap: 12px; margin-bottom: 20px; flex-wrap: wrap;
}
.st-admin-form {
  display: flex; gap: 10px; align-items: flex-end; flex-wrap: wrap; margin-bottom: 16px;
}
.st-admin-turma-bloco {
  border: 1.5px solid #e2e8f0; border-radius: 12px;
  padding: 16px; margin-bottom: 16px; background: white;
}
.st-admin-turma-titulo {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 14px; font-size: 15px; font-weight: 700;
}
.st-admin-badge {
  font-size: 12px; color: #64748b; font-weight: 500;
}
.st-admin-sub-secao { margin-bottom: 14px; }
.st-admin-sub-secao h4 {
  font-size: 12px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .05em; color: #94a3b8; margin-bottom: 8px;
  display: flex; align-items: center; gap: 5px;
}
.st-admin-mini-form {
  display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; align-items: center;
}
.st-admin-mini-form input { flex: 1; min-width: 140px; }
.st-disc-nome-input { flex: 1; min-width: 120px; }
.st-admin-disc-item, .st-admin-aluno-item {
  display: flex; align-items: center; justify-content: space-between;
  padding: 6px 10px; border-radius: 8px; background: #f8fafc;
  border: 1px solid #e2e8f0; margin-bottom: 4px; font-size: 13.5px;
}
.st-admin-alunos, .st-admin-discs { display: flex; flex-direction: column; gap: 4px; }

/* Prof sidebar actions */
.st-sidebar-prof-actions {
  padding: 12px; border-top: 1px solid rgba(255,255,255,.1); flex-shrink: 0;
}
.st-btn-add-disc {
  width: 100%; background: rgba(52,211,153,.15); border: 1.5px solid rgba(52,211,153,.35);
  color: #34d399; border-radius: 10px; padding: 10px 14px;
  display: flex; align-items: center; gap: 8px; cursor: pointer;
  font-size: 13.5px; font-weight: 600; transition: background .15s;
}
.st-btn-add-disc:hover { background: rgba(52,211,153,.25); }

/* Sidebar footer: usuário + logout */
.st-sidebar-footer {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 14px; border-top: 1px solid rgba(255,255,255,.1);
  flex-shrink: 0;
}
.st-sidebar-user { display: flex; align-items: center; gap: 8px; flex: 1; min-width: 0; }
.st-sidebar-user-avatar {
  width: 28px; height: 28px; border-radius: 50%; flex-shrink: 0;
  background: rgba(255,255,255,.12); color: rgba(255,255,255,.7);
  display: flex; align-items: center; justify-content: center; font-size: 13px;
}
.st-sidebar-user-nome {
  font-size: 12.5px; color: rgba(255,255,255,.6);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.st-sidebar-logout {
  background: none; border: none; color: rgba(255,255,255,.45); cursor: pointer;
  width: 32px; height: 32px; border-radius: 8px; font-size: 16px;
  display: flex; align-items: center; justify-content: center;
  transition: background .12s, color .12s; flex-shrink: 0;
}
.st-sidebar-logout:hover { background: rgba(239,68,68,.2); color: #fca5a5; }

/* Botão atualizar no topo do detalhe */
.st-detalhe-refresh {
  background: none; border: none; color: #0284c7; cursor: pointer;
  width: 34px; height: 34px; border-radius: 8px; font-size: 17px;
  display: flex; align-items: center; justify-content: center;
  transition: background .12s, transform .3s; flex-shrink: 0;
}
.st-detalhe-refresh:hover { background: #e0f2fe; }
.st-detalhe-refresh.girando i { animation: girar 0.6s linear; }
@keyframes girar { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

/* Botão logout no topo do detalhe */
.st-detalhe-logout {
  background: none; border: none; color: #94a3b8; cursor: pointer;
  width: 34px; height: 34px; border-radius: 8px; font-size: 17px;
  display: flex; align-items: center; justify-content: center;
  transition: background .12s, color .12s; flex-shrink: 0;
}
.st-detalhe-logout:hover { background: #fee2e2; color: #ef4444; }

/* Panel: adicionar disciplina (prof) */
.st-add-disc-panel {
  position: absolute; left: 0; bottom: 0; width: 260px;
  background: #1e293b; border-top: 2px solid #34d399;
  padding: 16px; z-index: 10;
  box-shadow: 0 -8px 32px rgba(0,0,0,.3);
}
.st-add-disc-topo {
  display: flex; align-items: center; justify-content: space-between;
  color: #34d399; font-weight: 700; font-size: 13.5px; margin-bottom: 14px;
}
.st-add-disc-panel .campo label { color: rgba(255,255,255,.8); font-size: 12.5px; }
.st-add-disc-panel input,
.st-add-disc-panel select {
  background: #0f172a; border-color: rgba(255,255,255,.15); color: white;
}
.st-add-disc-panel input::placeholder { color: rgba(255,255,255,.3); }
.st-add-disc-panel .select-wrap select { background: #0f172a; color: white; }

/* ── Tipo badges (forum / tarefa / modalidade) ── */
.st-tipo-badge {
  font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 20px;
  display: inline-flex; align-items: center; gap: 3px;
}
.st-tipo-forum     { background: #eff6ff; color: #1d4ed8; }
.st-tipo-tarefa    { background: #fef3c7; color: #92400e; }
.st-tipo-modalidade { background: #f0fdf4; color: #166534; }

/* ── Status badges ── */
.st-status-badge {
  font-size: 11px; font-weight: 700; padding: 2px 9px; border-radius: 20px;
  display: inline-flex; align-items: center; gap: 4px;
}
.st-status-respondida { background: #dcfce7; color: #166534; }
.st-status-pendente   { background: #fef3c7; color: #92400e; }
.st-status-sem-grupo  { background: #fef2f2; color: #991b1b; }
.st-status-prof       { background: #e0f2fe; color: #075985; }

/* ── Avatar tarefa (cor diferente do forum) ── */
.st-ativ-avatar-tarefa {
  background: linear-gradient(135deg, #d97706, #f59e0b) !important;
}

/* ── Info de arquivo (collapsed) ── */
.st-ativ-arq-info {
  padding: 0 16px 12px; font-size: 12px; color: #94a3b8;
  display: flex; align-items: center; gap: 5px;
}
.st-ativ-arq-info.tem-arquivo { color: #0284c7; }

/* ── Área prof: entregas ── */
.st-prof-entregas-titulo {
  padding: 12px 16px 8px; font-size: 13px; font-weight: 700;
  color: #475569; display: flex; align-items: center; gap: 6px;
}
.st-sem-entregas {
  padding: 12px 16px; font-size: 13px; color: #94a3b8;
}

/* ── Não comentaram (fórum prof) ── */
.st-nao-comentaram { border-top: 1px solid #f1f5f9; margin-top: 8px; }

/* ── Badge de nota no bloco de entrega ── */
.st-nota-badge {
  display: inline-flex; align-items: center; gap: 4px;
  background: #fef3c7; color: #92400e; border: 1px solid #fde68a;
  border-radius: 20px; padding: 2px 10px; font-size: 12px; font-weight: 700;
  margin: 0 6px;
}
.st-nota-badge i { font-size: 11px; color: #f59e0b; }

/* ── Painel de avaliação inline ── */
.st-avaliacao-painel {
  margin: 10px 14px 14px; padding: 14px 16px;
  background: #fffbeb; border: 1.5px solid #fde68a; border-radius: 12px;
}
.st-avaliacao-titulo {
  font-size: 13px; font-weight: 700; color: #92400e;
  display: flex; align-items: center; gap: 6px; margin-bottom: 12px;
}
.st-avaliacao-form { display: flex; flex-direction: column; gap: 10px; }
.st-avaliacao-nota-row {
  display: flex; align-items: flex-end; gap: 8px;
}
.st-avaliacao-campo { display: flex; flex-direction: column; gap: 4px; }
.st-avaliacao-campo label { font-size: 11px; font-weight: 600; color: #78350f; }
.st-avaliacao-campo input,
.st-avaliacao-campo textarea {
  border: 1.5px solid #fde68a; border-radius: 8px;
  padding: 7px 10px; font-size: 13.5px; font-family: inherit;
  background: white; outline: none; transition: border-color .12s;
}
.st-avaliacao-campo input:focus,
.st-avaliacao-campo textarea:focus { border-color: #f59e0b; }
.st-avaliacao-campo input[type="number"] { width: 80px; }
.st-avaliacao-campo textarea { resize: none; width: 100%; }
.st-avaliacao-barra { font-size: 20px; font-weight: 700; color: #a16207; padding-bottom: 6px; }
.st-avaliacao-acoes { display: flex; gap: 8px; flex-wrap: wrap; }

/* ── Card de avaliação — vista do aluno ── */
.st-avaliacao-aluno {
  margin: 10px 14px; padding: 16px;
  background: linear-gradient(135deg, #fffbeb, #fef9ee);
  border: 2px solid #fde68a; border-radius: 14px;
}
.st-avaliacao-aluno-titulo {
  font-size: 13px; font-weight: 700; color: #92400e;
  display: flex; align-items: center; gap: 6px; margin-bottom: 12px;
}
.st-avaliacao-aluno-titulo i { color: #f59e0b; font-size: 15px; }
.st-avaliacao-aluno-nota {
  display: flex; align-items: baseline; gap: 4px; margin-bottom: 10px;
}
.st-avaliacao-aluno-valor {
  font-size: 36px; font-weight: 800; color: #b45309; line-height: 1;
}
.st-avaliacao-aluno-max {
  font-size: 18px; font-weight: 600; color: #a16207;
}
.st-avaliacao-aluno-comentario {
  font-size: 14px; color: #44403c; background: white;
  border: 1px solid #fde68a; border-radius: 8px;
  padding: 10px 12px; margin-bottom: 8px; white-space: pre-wrap;
  overflow-wrap: break-word; word-break: break-word; line-height: 1.5;
}
.st-avaliacao-aluno-data {
  font-size: 11.5px; color: #a16207; text-align: right;
}

.st-entrega-bloco {
  border-top: 1px solid #f1f5f9;
}
/* Cabeçalho clicável da entrega */
.st-entrega-aluno-nome {
  cursor: pointer;
  user-select: none;
  display: flex; align-items: center; gap: 5px;
  padding: 10px 16px; font-size: 13px; font-weight: 700;
  color: #334155; background: #f8fafc;
  transition: background .12s;
}
.st-entrega-aluno-nome:hover { background: #f1f5f9; }
.st-entrega-chevron {
  margin-left: auto; font-size: 12px; color: #94a3b8;
  transition: transform .18s ease;
}
.st-entrega-bloco.aberto .st-entrega-chevron { transform: rotate(180deg); }
/* Conteúdo da entrega (colapsado por padrão) */
.st-entrega-conteudo {
  display: none;
}
.st-entrega-bloco.aberto .st-entrega-conteudo {
  display: block;
}

/* ── Quem não enviou ── */
.st-prof-nao-enviaram-titulo {
  padding: 12px 16px 8px; font-size: 13px; font-weight: 700;
  color: #dc2626; display: flex; align-items: center; gap: 6px;
  border-top: 2px solid #fee2e2; margin-top: 4px;
}
.st-nao-enviaram-ok {
  padding: 10px 16px 14px; font-size: 13px; color: #059669;
  display: flex; align-items: center; gap: 6px;
}
.st-nao-enviaram-lista {
  display: flex; flex-wrap: wrap; gap: 6px; padding: 4px 16px 16px;
}
.st-nao-enviaram-chip {
  display: inline-flex; align-items: center; gap: 5px;
  background: #fef2f2; border: 1px solid #fecaca;
  color: #991b1b; border-radius: 20px;
  padding: 4px 10px; font-size: 12px; font-weight: 500;
}

/* ── Sem grupo ── */
.st-sem-grupo-aviso {
  padding: 24px 20px; text-align: center; background: #fafbfd;
  border-top: 1px solid #f1f5f9;
}
.st-sem-grupo-aviso p { font-size: 14px; color: #475569; margin: 6px 0; }

/* ── Grupo info bar (aluno com grupo) ── */
.st-grupo-info-bar {
  padding: 8px 14px; font-size: 13px; color: #065f46;
  background: #f0fdf4; border-top: 1px solid #bbf7d0;
  display: flex; align-items: center; gap: 10px;
  justify-content: space-between; flex-wrap: wrap;
}
.st-grupo-info-bar.st-grupo-solo {
  color: #475569; background: #f8fafc; border-top-color: #e2e8f0;
}
.st-grupo-info-texto {
  display: flex; align-items: center; gap: 8px;
  flex: 1; min-width: 0;
}
.st-grupo-info-texto i { font-size: 15px; flex-shrink: 0; }
.st-grupo-info-texto strong { font-weight: 600; color: inherit; }
.st-grupo-desfazer-btn {
  display: inline-flex; align-items: center; gap: 5px;
  background: white; border: 1.5px solid #e2e8f0; color: #64748b;
  border-radius: 8px; padding: 5px 10px; font-size: 12.5px;
  cursor: pointer; transition: all .12s; font-weight: 500;
  flex-shrink: 0;
}
.st-grupo-desfazer-btn:hover {
  background: #fef2f2; border-color: #fca5a5; color: #dc2626;
}
.st-grupo-desfazer-btn i { font-size: 14px; }

/* ── Modal grupo: lista de membros ── */
.st-lista-membros {
  display: flex; flex-direction: column; gap: 6px;
  max-height: 320px; overflow-y: auto; padding: 2px 0;
}
.st-membro-btn {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 14px; border-radius: 10px; cursor: pointer;
  border: 1.5px solid #e2e8f0; background: #f8fafc;
  transition: background .12s, border-color .12s;
  text-align: left;
}
.st-membro-btn:hover:not(:disabled) { background: #eff6ff; border-color: #bfdbfe; }
.st-membro-btn.st-membro-selecionado { background: #f0fdf4; border-color: #86efac; }
.st-membro-btn.st-membro-ocupado { opacity: .45; cursor: not-allowed; }
.st-membro-avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: #e2e8f0; color: #64748b;
  display: flex; align-items: center; justify-content: center; font-size: 16px;
  flex-shrink: 0;
}
.st-membro-selecionado .st-membro-avatar { background: #dcfce7; color: #16a34a; }
.st-membro-info { flex: 1; }
.st-membro-info strong { display: block; font-size: 14px; color: #0f172a; }
.st-membro-info small  { font-size: 12px; color: #94a3b8; }
.st-membro-check { font-size: 18px; color: #cbd5e1; }
.st-membro-selecionado .st-membro-check { color: #22c55e; }
.st-grupo-selecionados {
  margin-top: 12px; padding: 10px 14px; border-radius: 8px;
  background: #f0fdf4; border: 1px solid #bbf7d0;
  font-size: 13.5px; color: #166534;
}
.st-grupo-instrucao { font-size: 13px; color: #64748b; margin-bottom: 12px; }

/* ── Overlay mobile da sidebar ── */
.st-sidebar-overlay {
  display: none;
  position: fixed; inset: 0; z-index: 199;
  background: rgba(0,0,0,.45);
  backdrop-filter: blur(1px);
  animation: fadeIn .2s ease;
}
.st-sidebar-overlay.ativa { display: block; }

/* ══ Mobile SalaTech ══════════════════════════════════════════ */
@media (max-width: 680px) {
  .st-sidebar {
    position: fixed; left: 0; top: 0; height: 100%; z-index: 200;
    transform: translateX(-100%);
  }
  .st-sidebar.st-sidebar-aberta { transform: translateX(0); }
  .st-btn-menu { display: flex; }
  /* Troca ícone hambúrguer → X quando sidebar aberta */
  .st-sidebar.st-sidebar-aberta ~ .st-main #st-btn-menu i { content: ''; }
  .st-main { width: 100%; }
  .escolha-cards { flex-direction: column; align-items: center; }
  .escolha-card { min-width: 280px; }
}

/* ══════════════════════════════════════════════════════════════
   CHAVE MESTRE — Banner + Lista
══════════════════════════════════════════════════════════════ */
#banner-chave-mestre {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 9999;
  display: flex; align-items: center; gap: 10px;
  padding: 10px 18px;
  background: linear-gradient(90deg, #1e293b 0%, #0f172a 100%);
  color: #f8fafc; font-size: 13px;
  border-top: 2px solid #f59e0b;
  box-shadow: 0 -4px 20px rgba(0,0,0,.35);
}
#banner-chave-mestre i { color: #f59e0b; font-size: 16px; flex-shrink: 0; }
#banner-chave-mestre span { flex: 1; }
#banner-chave-mestre strong { color: #fcd34d; }
.banner-chave-sair {
  background: rgba(245,158,11,.15); color: #fcd34d;
  border: 1px solid rgba(245,158,11,.4); border-radius: 8px;
  padding: 6px 14px; font-size: 12.5px; font-weight: 600;
  cursor: pointer; display: flex; align-items: center; gap: 6px;
  white-space: nowrap; transition: background .15s;
}
.banner-chave-sair:hover { background: rgba(245,158,11,.3); }

/* Lista de usuários para chave mestre */
#lista-chave-mestre { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.chave-mestre-row {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 14px; border-radius: 10px;
  background: var(--surf2); border: 1px solid #e2e8f0;
  transition: border-color .15s;
}
.chave-mestre-row:hover { border-color: #c7d2fe; background: #f0f4ff; }
.chave-mestre-info { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; }
.chave-mestre-icon { font-size: 18px; color: var(--indigo); flex-shrink: 0; }
.chave-mestre-nome { display: block; font-weight: 600; font-size: 14px; color: var(--txt); }
.chave-mestre-sub { display: block; font-size: 12px; color: var(--txt2); margin-top: 1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chave-mestre-btn {
  background: var(--indigo-bg); color: var(--indigo-t);
  border: 1px solid #c7d2fe; border-radius: 8px;
  padding: 6px 14px; font-size: 12.5px; font-weight: 600;
  cursor: pointer; display: flex; align-items: center; gap: 5px;
  white-space: nowrap; transition: background .15s, color .15s;
}
.chave-mestre-btn:hover { background: var(--indigo); color: white; border-color: var(--indigo); }

/* Tab especial Chave Mestre */
.admin-tab-chave { color: #d97706 !important; }
.admin-tab-chave.ativo { border-bottom-color: #d97706 !important; color: #d97706 !important; }

/* ── Conceito do fórum ── */
.st-conceito-seletor {
  display: flex; align-items: center; gap: 8px;
  flex-wrap: wrap; padding: 8px 0 2px; margin-top: 6px;
  border-top: 1px solid #f1f5f9;
}
.st-conceito-seletor-label {
  font-size: 12px; font-weight: 600; color: #64748b; white-space: nowrap;
}
.st-conceito-btns { display: flex; gap: 5px; flex-wrap: wrap; }
.st-conceito-btn {
  border: 1.5px solid currentColor; border-radius: 20px;
  padding: 2px 11px; font-size: 12px; font-weight: 600;
  cursor: pointer; background: transparent; transition: background .15s, color .15s;
  opacity: .65;
}
.st-conceito-btn.ativo { opacity: 1; }
.st-conceito-btn-bom              { color: #16a34a; }
.st-conceito-btn-bom.ativo        { background: #dcfce7; }
.st-conceito-btn-razoavel         { color: #d97706; }
.st-conceito-btn-razoavel.ativo   { background: #fef9c3; }
.st-conceito-btn-precisa_melhorar         { color: #dc2626; }
.st-conceito-btn-precisa_melhorar.ativo   { background: #fee2e2; }

/* Conceito: badge para aluno */
.st-conceito-badge {
  display: inline-flex; align-items: center;
  padding: 3px 12px; border-radius: 20px;
  font-size: 12.5px; font-weight: 700; margin-top: 8px;
}
.st-conceito-bom              { background: #dcfce7; color: #15803d; }
.st-conceito-razoavel         { background: #fef9c3; color: #92400e; }
.st-conceito-precisa_melhorar { background: #fee2e2; color: #b91c1c; }

/* ── Bloquear copiar/colar ── */
.st-aviso-sem-colar {
  font-size: 12px; color: #b45309; background: #fef3c7;
  border: 1px solid #fde68a; border-radius: 8px;
  padding: 6px 10px; margin-top: 6px;
  display: flex; align-items: center; gap: 6px;
}
@keyframes shake {
  0%,100% { transform: translateX(0); }
  20%      { transform: translateX(-4px); }
  40%      { transform: translateX(4px); }
  60%      { transform: translateX(-4px); }
  80%      { transform: translateX(4px); }
}
.st-shake { animation: shake .35s ease; }

/* ── Checkbox label — toggle switch style ── */
.st-checkbox-label {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  font-size: 13px; color: #374151; cursor: pointer; line-height: 1.4;
  padding: 9px 12px; border-radius: 10px;
  border: 1.5px solid #e2e8f0; background: #f8fafc;
  transition: background .15s, border-color .15s, color .15s;
  user-select: none;
}
.st-checkbox-label:hover { border-color: #c7d2fe; background: #f5f3ff; }
.st-checkbox-label:has(input:checked) {
  background: #eef2ff; border-color: #818cf8; color: #3730a3;
}
/* toggle switch — o input vira o trilho */
.st-checkbox-label input[type="checkbox"] {
  appearance: none; -webkit-appearance: none;
  width: 40px; height: 22px; flex-shrink: 0;
  background: #cbd5e1; border-radius: 22px;
  position: relative; cursor: pointer;
  transition: background .2s;
  order: 2; /* vai para o lado direito */
}
.st-checkbox-label input[type="checkbox"]::before {
  content: '';
  position: absolute;
  width: 16px; height: 16px;
  background: #fff; border-radius: 50%;
  top: 3px; left: 3px;
  transition: transform .2s;
  box-shadow: 0 1px 4px rgba(0,0,0,.25);
}
.st-checkbox-label input[type="checkbox"]:checked {
  background: #6366f1;
}
.st-checkbox-label input[type="checkbox"]:checked::before {
  transform: translateX(18px);
}
/* texto fica à esquerda */
.st-checkbox-label > span { order: 1; flex: 1; }

/* ── Botão Avaliar conceito (prof, fórum) ── */
.st-avaliar-conceito-btn {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 10px; border-radius: 20px; font-size: 12px; font-weight: 600;
  border: 1.5px solid #94a3b8; color: #64748b; background: transparent;
  cursor: pointer; transition: all .15s;
}
.st-avaliar-conceito-btn:hover,
.st-avaliar-conceito-btn.ativo { border-color: #6366f1; color: #4f46e5; background: #eef2ff; }
.st-avaliar-conceito-btn.tem-conceito { border-color: #16a34a; color: #15803d; background: #f0fdf4; }
.st-conceito-seletor-wrap { padding: 8px 0 4px; }
.st-conceito-seletor-wrap.oculto { display: none; }

/* ── Sino de notificações ── */
.btn-notif {
  position: relative;
}
.notif-badge {
  position: absolute; top: 2px; right: 2px;
  background: #ef4444; color: #fff;
  font-size: 10px; font-weight: 700; line-height: 1;
  min-width: 16px; height: 16px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  padding: 0 3px; pointer-events: none;
  border: 1.5px solid white;
}

/* ── Painel de notificações ── */
/* Overlay escurecido para o modo modal (SalaTech) */
.notif-overlay {
  position: fixed; inset: 0; z-index: 1199;
  background: rgba(0,0,0,.45); backdrop-filter: blur(2px);
}

/* Painel base */
.painel-notif {
  position: fixed; z-index: 1200;
  width: 340px; max-width: calc(100vw - 24px);
  background: #fff; border-radius: 14px;
  box-shadow: 0 8px 32px rgba(0,0,0,.22);
  border: 1px solid #e2e8f0;
  overflow: hidden;
  animation: notif-slide-in .18s ease;
}
/* Modo dropdown (header normal) */
.painel-notif.notif-dropdown {
  top: 60px; right: 12px; left: auto;
}
/* Modo modal (SalaTech) */
.painel-notif.notif-modal {
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 380px;
  animation: notif-modal-in .2s ease;
}
@keyframes notif-slide-in {
  from { opacity: 0; transform: translateY(-8px) scale(.98); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes notif-modal-in {
  from { opacity: 0; transform: translate(-50%, calc(-50% - 12px)) scale(.96); }
  to   { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}
.painel-notif-topo {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 14px 10px;
  font-size: 14px; font-weight: 700; color: #1e293b;
  border-bottom: 1px solid #f1f5f9;
  background: #f8fafc;
}
.painel-notif-acao {
  background: none; border: none; cursor: pointer;
  color: #94a3b8; font-size: 16px; padding: 2px 5px;
  border-radius: 6px; transition: background .12s, color .12s;
}
.painel-notif-acao:hover { background: #f1f5f9; color: #334155; }
/* Botão X fechar */
.painel-notif-fechar {
  background: none; border: none; cursor: pointer;
  color: #64748b; font-size: 15px; padding: 3px 6px;
  border-radius: 6px; line-height: 1;
  transition: background .12s, color .12s;
  margin-left: 2px;
}
.painel-notif-fechar:hover { background: #fee2e2; color: #dc2626; }
.painel-notif-lista {
  max-height: 420px; overflow-y: auto;
}
.painel-notif-vazio {
  padding: 32px 16px; text-align: center;
  color: #94a3b8; font-size: 13.5px;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
}
.painel-notif-vazio i { font-size: 28px; }
.painel-notif-item {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 11px 14px; border-bottom: 1px solid #f1f5f9;
  cursor: pointer; transition: background .1s;
  background: #fffbeb;
}
.painel-notif-item:last-child { border-bottom: none; }
.painel-notif-item:hover { background: #fef3c7; }
.painel-notif-item.lida { background: #fff; }
.painel-notif-item.lida:hover { background: #f8fafc; }
.pni-icone {
  flex-shrink: 0; width: 34px; height: 34px;
  border-radius: 50%; background: #eff6ff;
  display: flex; align-items: center; justify-content: center;
  font-size: 15px; color: #3b82f6;
}
.painel-notif-item.lida .pni-icone { background: #f1f5f9; color: #94a3b8; }
.pni-corpo { flex: 1; min-width: 0; }
.pni-titulo { font-size: 13px; font-weight: 600; color: #1e293b; line-height: 1.35; }
.painel-notif-item.lida .pni-titulo { color: #64748b; font-weight: 500; }
.pni-msg { font-size: 12px; color: #64748b; margin-top: 1px; }
.pni-data { font-size: 11px; color: #94a3b8; margin-top: 3px; }
.pni-dot {
  flex-shrink: 0; width: 8px; height: 8px; border-radius: 50%;
  background: #3b82f6; margin-top: 5px;
}

/* ── Sininho na sidebar do SalaTech ── */
.st-sidebar-notif {
  position: relative;
  background: none; border: none; cursor: pointer;
  color: rgba(255,255,255,.65); font-size: 18px;
  padding: 6px 8px; border-radius: 8px;
  transition: color .15s, background .15s;
  display: flex; align-items: center;
}
.st-sidebar-notif:hover { color: #fff; background: rgba(255,255,255,.12); }
.notif-badge-st {
  position: absolute; top: 2px; right: 2px;
  background: #ef4444; color: #fff;
  font-size: 9px; font-weight: 700; line-height: 1;
  min-width: 15px; height: 15px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  padding: 0 3px; pointer-events: none;
  border: 1.5px solid #1e293b;
}

/* ── Botão editar atividade (card) ── */
.st-ativ-edit {
  background: none; border: none; cursor: pointer;
  color: #94a3b8; font-size: 15px; padding: 4px 6px;
  border-radius: 6px; transition: color .15s, background .15s;
  flex-shrink: 0;
}
.st-ativ-edit:hover { color: #6366f1; background: #eef2ff; }

/* ── Chips de anexo no modal edição ── */
.ed-anexo-chip {
  display: inline-flex; align-items: center; gap: 5px;
  background: #f1f5f9; border: 1px solid #e2e8f0;
  border-radius: 8px; padding: 4px 8px; font-size: 12px; color: #334155;
  transition: background .12s, opacity .12s;
}
.ed-anexo-chip.removido {
  background: #fee2e2; border-color: #fca5a5; color: #b91c1c;
  text-decoration: line-through; opacity: .7;
}
.ed-remover-arq {
  background: none; border: none; cursor: pointer;
  font-size: 11px; color: #94a3b8; padding: 0 2px;
  transition: color .12s;
}
.ed-remover-arq:hover { color: #dc2626; }

/* ── Dropdown adicionar membro ao grupo ── */
.st-grupo-add-btn {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 4px 10px; border-radius: 8px; font-size: 12px; font-weight: 600;
  border: 1.5px solid #6366f1; color: #4f46e5; background: #eef2ff;
  cursor: pointer; transition: background .12s, color .12s;
}
.st-grupo-add-btn:hover { background: #6366f1; color: #fff; }
.st-add-membro-dropdown {
  background: #fff; border: 1px solid #e2e8f0; border-radius: 10px;
  box-shadow: 0 6px 24px rgba(0,0,0,.13); margin-top: 8px;
  overflow: hidden; min-width: 200px;
}
.st-add-membro-titulo {
  padding: 9px 14px 6px; font-size: 12px; font-weight: 700;
  color: #64748b; background: #f8fafc; border-bottom: 1px solid #f1f5f9;
}
.st-add-membro-item {
  display: block; width: 100%; text-align: left; background: none; border: none;
  padding: 9px 14px; font-size: 13px; color: #1e293b; cursor: pointer;
  transition: background .1s;
}
.st-add-membro-item:hover { background: #f1f5f9; }
.st-add-membro-item:disabled { color: #94a3b8; }

/* ── Contador de caracteres mínimos ── */
.st-char-counter {
  font-size: 12px; padding: 4px 10px 2px;
  color: #94a3b8; display: flex; align-items: center; gap: 4px;
  transition: color .2s;
}
.st-char-counter.st-char-ok   { color: #16a34a; }
.st-char-counter.st-char-falta { color: #f59e0b; }
.st-char-atual { font-weight: 700; font-size: 13px; }

/* ── Botão entrar em grupo (aluno solo) ── */
.st-grupo-entrar-btn {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 4px 10px; border-radius: 8px; font-size: 12px; font-weight: 600;
  background: #f0f9ff; border: 1.5px solid #bae6fd; color: #0284c7;
  cursor: pointer; transition: background .12s, color .12s;
}
.st-grupo-entrar-btn:hover { background: #0284c7; color: #fff; border-color: #0284c7; }

/* Cards do modal entrar em grupo */
.st-entrar-grupo-item {
  display: flex; align-items: center; gap: 12px;
  width: 100%; text-align: left;
  padding: 12px 14px; border-radius: 12px; cursor: pointer;
  background: #f8fafc; border: 1.5px solid #e2e8f0;
  transition: border-color .15s, background .15s;
}
.st-entrar-grupo-item:not(:disabled):hover { border-color: #0284c7; background: #f0f9ff; }
.st-entrar-grupo-item:disabled { opacity: .55; cursor: default; }
.st-entrar-grupo-cheio { background: #fafafa; border-style: dashed; }
.st-entrar-grupo-icon { font-size: 20px; color: #0284c7; flex-shrink: 0; }
.st-entrar-grupo-item:disabled .st-entrar-grupo-icon { color: #94a3b8; }
.st-entrar-grupo-info { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.st-entrar-grupo-info strong { font-size: 13.5px; color: #1e293b; font-weight: 600; }
.st-entrar-grupo-info small { font-size: 11.5px; color: #64748b; }

/* ══════════════════════════════════════════════════════════════
   Acesso Temporário
══════════════════════════════════════════════════════════════ */
.st-btn-senha-temp {
  background: linear-gradient(135deg, #0f172a, #1e3a5f) !important;
  margin-top: 6px;
}
.st-btn-senha-temp:hover { opacity: .9; }

/* Tabs */
.st-temp-tabs {
  display: flex; border-bottom: 1px solid #e2e8f0;
  background: #f8fafc; flex-shrink: 0;
}
.st-temp-tab {
  flex: 1; padding: 11px 8px; border: none; background: transparent;
  font-size: 13.5px; font-weight: 600; color: #64748b;
  cursor: pointer; display: flex; align-items: center;
  justify-content: center; gap: 6px; border-bottom: 2.5px solid transparent;
  transition: color .15s, border-color .15s;
}
.st-temp-tab.ativo { color: #0284c7; border-bottom-color: #0284c7; background: white; }
.st-temp-badge {
  background: #dc2626; color: white; border-radius: 99px;
  font-size: 10px; font-weight: 700; padding: 1px 5px; line-height: 1.4;
}

/* Lista de alunos */
.st-temp-alunos-lista {
  border: 1.5px solid #e2e8f0; border-radius: 10px;
  max-height: 240px; overflow-y: auto; background: white;
}
.st-temp-grupo-titulo {
  font-size: 12px; font-weight: 700; color: #64748b;
  padding: 8px 12px 4px; background: #f8fafc;
  border-bottom: 1px solid #f1f5f9; letter-spacing: .03em;
  text-transform: uppercase;
  display: flex; align-items: center; gap: 8px; cursor: pointer;
}

/* Checkbox mestre da turma */
.st-temp-turma-check-wrap {
  display: flex; align-items: center; cursor: pointer; flex-shrink: 0;
}
.st-temp-turma-check-wrap input { display: none; }
.st-temp-turma-check-box {
  width: 17px; height: 17px; border-radius: 4px;
  border: 2px solid #94a3b8; background: #fff;
  display: flex; align-items: center; justify-content: center;
  transition: background .15s, border-color .15s; position: relative;
}
.st-temp-turma-check-wrap input:checked + .st-temp-turma-check-box {
  background: #7c3aed; border-color: #7c3aed;
}
.st-temp-turma-check-wrap input:checked + .st-temp-turma-check-box::after {
  content: ''; display: block;
  width: 5px; height: 9px;
  border: 2px solid #fff; border-top: none; border-left: none;
  transform: rotate(45deg) translate(-1px, -1px);
}
.st-temp-turma-check-wrap input:indeterminate + .st-temp-turma-check-box {
  background: #ede9fe; border-color: #7c3aed;
}
.st-temp-turma-check-wrap input:indeterminate + .st-temp-turma-check-box::after {
  content: ''; display: block;
  width: 8px; height: 2px; background: #7c3aed; border: none; transform: none;
}

/* Contador de selecionados */
.st-temp-turma-qtd {
  margin-left: auto; font-size: 11px; font-weight: 600;
  background: #ede9fe; color: #7c3aed;
  padding: 2px 8px; border-radius: 20px; letter-spacing: 0;
}
.st-temp-aluno-row {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 12px; cursor: pointer; border-bottom: 1px solid #f8fafc;
  transition: background .1s;
}
.st-temp-aluno-row:hover { background: #f0f9ff; }
.st-temp-aluno-row input[type="checkbox"] { flex-shrink: 0; width: 16px; height: 16px; cursor: pointer; }
.st-temp-aluno-nome { flex: 1; font-size: 13.5px; font-weight: 500; color: #1e293b; }
.st-temp-aluno-email { font-size: 11.5px; color: #94a3b8; }

/* Ativos */
.st-temp-ativo-row {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 4px; border-bottom: 1px solid #f1f5f9;
}
.st-temp-ativo-row:last-child { border-bottom: none; }
.st-temp-ativo-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.st-temp-ativo-nome { font-size: 14px; font-weight: 600; color: #1e293b; }
.st-temp-ativo-turma { font-size: 12px; color: #64748b; }
.st-temp-ativo-expira { font-size: 12px; color: #0369a1; display: flex; align-items: center; gap: 4px; }
.st-temp-ativo-expira.urgente { color: #dc2626; font-weight: 600; }

/* ── Modal genérico (modal-box) ──────────────────────────────────────────── */
.modal-box {
  background: #fff; border-radius: 16px; width: 100%;
  overflow: hidden; box-shadow: 0 20px 60px rgba(0,0,0,.18), 0 0 0 1px rgba(0,0,0,.06);
  animation: slideUp .22s cubic-bezier(.16,1,.3,1);
}

/* ── Botão "Como fazer login" ────────────────────────────────────────────── */
.st-btn-login-info {
  width: 100%; background: rgba(96,165,250,.13) !important;
  border: 1.5px solid rgba(96,165,250,.32) !important;
  color: #93c5fd !important; border-radius: 10px; padding: 10px 14px;
  display: flex; align-items: center; gap: 8px; cursor: pointer;
  font-size: 13.5px; font-weight: 600; transition: background .15s;
}
.st-btn-login-info:hover { background: rgba(96,165,250,.22) !important; }

/* ── Modal: Como fazer login ─────────────────────────────────────────────── */
.login-info-secao { margin-bottom: 18px; }
.login-info-titulo { font-size: 14px; font-weight: 700; color: #1e40af; display: flex; align-items: center; gap: 7px; margin-bottom: 10px; }
.login-info-box { background: #fff; border: 1px solid #e2e8f0; border-radius: 10px; padding: 14px 16px; font-size: 13.5px; color: #1e3a5f; line-height: 1.6; }
.login-info-box code { background: #dbeafe; color: #1d4ed8; padding: 1px 6px; border-radius: 4px; font-size: 12.5px; }
.login-info-exemplos { display: flex; flex-direction: column; gap: 6px; margin: 10px 0; }
.login-info-ex { display: flex; justify-content: space-between; align-items: center; gap: 10px; background: #fff; border: 1px solid #bae6fd; border-radius: 7px; padding: 7px 12px; flex-wrap: wrap; }
.login-info-ex-nome { font-size: 13px; color: #374151; }
.login-info-ex-email { font-size: 13px; font-weight: 700; color: #1d4ed8; font-family: monospace; }
.login-info-ok { background: #f0fdf4; border: 1px solid #bbf7d0; border-radius: 10px; padding: 14px 16px; color: #166534; font-size: 13.5px; display: flex; align-items: center; gap: 8px; font-weight: 600; }
.login-info-exc-titulo { font-size: 13px; font-weight: 700; color: #92400e; background: #fffbeb; border: 1px solid #fde68a; border-radius: 8px; padding: 8px 12px; margin-bottom: 8px; display: flex; align-items: center; gap: 7px; }
.login-info-exc-lista { display: flex; flex-direction: column; gap: 6px; }
.login-info-exc-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; background: #fff; border: 1px solid #e2e8f0; border-radius: 7px; padding: 8px 12px; font-size: 13px; }
.login-info-exc-nome { font-weight: 600; flex: 1; min-width: 120px; }
.login-info-exc-turma { color: #6b7280; font-size: 12px; white-space: nowrap; }
.login-info-exc-email { color: #1d4ed8; font-family: monospace; font-size: 12.5px; white-space: nowrap; }
.login-info-exc-obs { font-size: 11.5px; color: #92400e; background: #fffbeb; border-radius: 4px; padding: 1px 6px; }

/* ── Admin: Exceções de Login ────────────────────────────────────────────── */
.exc-form { display: flex; gap: 10px; flex-wrap: wrap; align-items: flex-start; background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 10px; padding: 14px; }
.exc-lista { display: flex; flex-direction: column; gap: 6px; }
.exc-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; background: #fff; border: 1px solid #e2e8f0; border-radius: 8px; padding: 10px 12px; }
.exc-row-info { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; flex: 1; }
.exc-row-nome { font-weight: 600; font-size: 13.5px; }
.exc-row-turma { font-size: 12px; color: #6b7280; }
.exc-row-email { font-size: 12px; color: #1d4ed8; font-family: monospace; }
.exc-row-motivo { font-size: 11.5px; color: #92400e; background: #fffbeb; border-radius: 4px; padding: 1px 7px; }

/* ── Bloqueados na Turma (SalaTech prof) ─────────────────────────────────── */
.st-bloq-turma-wrap { background:#fff5f5; border:1px solid #fecaca; border-radius:10px; padding:12px 14px; margin-bottom:14px; }
.st-bloq-turma-titulo { display:flex; align-items:center; gap:7px; font-weight:600; font-size:13px; color:#dc2626; margin-bottom:10px; }
.st-bloq-turma-lista { display:flex; flex-direction:column; gap:6px; }
.st-bloq-turma-row { display:flex; align-items:center; gap:10px; flex-wrap:wrap; background:#fff; border:1px solid #fecaca; border-radius:7px; padding:7px 10px; }
.st-bloq-t-nome { font-weight:600; font-size:13px; flex:1; min-width:120px; }
.st-bloq-t-info { font-size:11.5px; color:#b45309; white-space:nowrap; }
.st-bloq-t-btn { color:#16a34a !important; font-size:12px !important; padding:3px 10px !important; }

/* ── Segurança: Logs ─────────────────────────────────────────────────────── */
.seg-logs-lista { display: flex; flex-direction: column; gap: 6px; max-height: 420px; overflow-y: auto; }
.seg-log-row { display: flex; flex-direction: column; gap: 3px; padding: 10px 12px; background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 8px; font-size: 12.5px; }
.seg-log-badge { display: inline-block; padding: 2px 8px; border-radius: 20px; font-size: 11px; font-weight: 600; width: fit-content; }
.seg-log-hora { color: #64748b; font-size: 11.5px; }
.seg-log-detalhe { color: #374151; line-height: 1.5; }

/* ── Segurança: Bloqueios ────────────────────────────────────────────────── */
/* Log de Acesso Temporário */
.seg-log-temp-lista { display: flex; flex-direction: column; gap: 8px; max-height: 380px; overflow-y: auto; }
.seg-log-temp-row {
  background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 10px;
  padding: 10px 13px; display: flex; flex-direction: column; gap: 7px;
}
.seg-log-temp-header {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
}
.seg-log-temp-prof {
  font-weight: 700; font-size: 13px; color: #7c3aed;
  display: flex; align-items: center; gap: 5px;
}
.seg-log-temp-info {
  font-size: 12px; color: #64748b;
  background: #ede9fe; padding: 2px 8px; border-radius: 20px;
  display: flex; align-items: center; gap: 4px;
}
.seg-log-temp-data {
  margin-left: auto; font-size: 11.5px; color: #94a3b8;
}
.seg-log-temp-alunos { display: flex; flex-wrap: wrap; gap: 5px; }
.seg-log-temp-aluno {
  font-size: 11.5px; color: #374151;
  background: #f1f5f9; border: 1px solid #e2e8f0;
  padding: 2px 8px; border-radius: 20px;
}
.seg-log-temp-aluno em { color: #94a3b8; font-style: normal; font-size: 10.5px; }

/* Log de Visitas */
.seg-log-visitas-lista { display: flex; flex-direction: column; gap: 4px; max-height: 380px; overflow-y: auto; }
.seg-log-visita-row {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  padding: 7px 12px; background: #f8fafc; border: 1px solid #e2e8f0;
  border-radius: 8px; font-size: 12.5px;
}
.seg-log-visita-ip   { font-weight: 700; color: #1e293b; font-family: monospace; }
.seg-log-visita-disp { color: #64748b; flex: 1; }
.seg-log-visita-data { margin-left: auto; color: #94a3b8; font-size: 11.5px; white-space: nowrap; }

.seg-bloqueios-lista { display: flex; flex-direction: column; gap: 8px; }
.seg-bloq-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; background: #fff5f5; border: 1px solid #fecaca; border-radius: 10px; }
.seg-bloq-info { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.seg-bloq-nome { font-weight: 600; font-size: 13.5px; color: #dc2626; }
.seg-bloq-email { font-size: 12px; color: #6b7280; }
.seg-bloq-tempo { font-size: 12px; color: #b45309; }

/* ── Prof Apoio — agendamento ────────────────────────────────────────────── */
.apoio-aula {
  background:
    linear-gradient(rgba(109,40,217,.72), rgba(109,40,217,.72)),
    url('../imagens/autismo.jpg') center/120px auto repeat !important;
  color: #fff !important;
  border: 2px solid #7c3aed !important;
  box-shadow: 0 3px 10px rgba(124,58,237,.4) !important;
}
.apoio-aula .celula-linha-1 { color: #fff !important; font-weight: 700; font-size: 12px; letter-spacing: .2px; text-shadow: 0 1px 3px rgba(0,0,0,.4); }
.apoio-aula .celula-linha-2 { color: rgba(255,255,255,.92) !important; font-size: 11px; text-shadow: 0 1px 2px rgba(0,0,0,.35); }
.apoio-aula .chip-vagas  { background: rgba(255,255,255,.25); color: #fff; border-radius: 10px; padding: 0 6px; }
.apoio-aula .chip-lotado { background: rgba(0,0,0,.2); color: #fff; border-radius: 10px; padding: 0 6px; }

/* ── Emails dos alunos (modal login info) ────────────────────────────────── */
.emails-alunos-lista { display: flex; flex-direction: column; gap: 4px; max-height: 280px; overflow-y: auto; }
.email-aluno-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 7px 10px; background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 7px; font-size: 12.5px; }
.email-aluno-nome { font-weight: 600; flex: 1; min-width: 100px; }
.email-aluno-turma { color: #6b7280; font-size: 11.5px; white-space: nowrap; }
.email-aluno-email { color: #1d4ed8; font-family: monospace; font-size: 12px; white-space: nowrap; }

/* ══════════════════════════════════════════════════════════════
   CMD — Computação e Mundo Digital (Prof_informatica)
══════════════════════════════════════════════════════════════ */
/* Tela-escolha: card CMD */
.escolha-card-cmd .escolha-card-icone { background: #ede9fe; color: #7c3aed; }
.escolha-card-cmd .escolha-card-txt strong { color: #0f172a; }
.escolha-card-cmd .escolha-card-txt span   { color: #64748b; }

/* Layout principal CMD */
.cmd-layout { display:flex; flex-direction:column; height:100vh; background:#f8fafc; }
.cmd-topo {
  display:flex; align-items:center; gap:12px;
  padding:14px 16px; background:#fff;
  border-bottom:1px solid #e2e8f0; flex-shrink:0;
}
.cmd-voltar {
  width:36px; height:36px; border-radius:10px; border:none;
  background:#f1f5f9; color:#1e293b; cursor:pointer;
  display:flex; align-items:center; justify-content:center; font-size:16px;
}
.cmd-topo-info { display:flex; align-items:center; gap:8px; font-size:15px; font-weight:700; color:#1e293b; }
.cmd-corpo { flex:1; overflow-y:auto; padding:16px; max-width:780px; width:100%; margin:0 auto; }

/* Seção título */
.cmd-secao-titulo {
  display:flex; align-items:center; justify-content:space-between; gap:8px;
  font-size:14px; font-weight:700; color:#1e293b; margin-bottom:14px;
}
.cmd-secao-label { font-size:13px; font-weight:700; color:#1e293b; }

/* Cards de turma */
.cmd-turmas-lista { display:flex; flex-direction:column; gap:10px; }
.cmd-turma-card {
  display:flex; align-items:center; gap:10px;
  background:#fff; border:1.5px solid #e2e8f0; border-radius:14px;
  padding:14px 16px; transition:border-color .15s;
}
.cmd-turma-card:hover { border-color:#6366f1; }
.cmd-turma-card-info { flex:1; cursor:pointer; }
.cmd-turma-card-nome { font-size:14px; font-weight:700; color:#1e293b; display:flex; align-items:center; gap:7px; }
.cmd-turma-card-meta { display:flex; gap:14px; margin-top:4px; font-size:12px; color:#64748b; }
.cmd-turma-del {
  width:32px; height:32px; border-radius:8px; border:none; background:#fff5f5;
  color:#dc2626; cursor:pointer; display:flex; align-items:center; justify-content:center;
  flex-shrink:0; transition:background .15s;
}
.cmd-turma-del:hover { background:#fee2e2; }

/* Detalhe turma */
.cmd-detalhe-topo { display:flex; align-items:center; gap:10px; margin-bottom:14px; }
.cmd-voltar-turmas {
  width:34px; height:34px; border-radius:9px; border:none;
  background:#f1f5f9; color:#1e293b; cursor:pointer;
  display:flex; align-items:center; justify-content:center; flex-shrink:0;
}
.cmd-detalhe-nome { font-size:15px; font-weight:700; color:#1e293b; }

/* Abas */
.cmd-tabs { display:flex; gap:4px; margin-bottom:16px; border-bottom:2px solid #e2e8f0; }
.cmd-tab {
  padding:8px 16px; border:none; background:none; cursor:pointer;
  font-size:13px; font-weight:600; color:#64748b; border-bottom:2px solid transparent;
  margin-bottom:-2px; display:flex; align-items:center; gap:5px; transition:color .15s;
}
.cmd-tab.ativo { color:#4f46e5; border-bottom-color:#4f46e5; }
.cmd-tab i { font-size:14px; }
.cmd-aba { animation: fadeIn .18s ease; }

/* Alunos */
.cmd-alunos-filtros { display:flex; align-items:center; gap:10px; flex-wrap:wrap; margin-bottom:14px; }
.cmd-alunos-secao { margin-bottom:14px; }
.cmd-alunos-secao-titulo {
  font-size:12px; font-weight:700; color:#64748b; letter-spacing:.3px;
  text-transform:uppercase; margin-bottom:8px; display:flex; align-items:center; gap:6px;
}
.cmd-aluno-row {
  display:flex; align-items:center; gap:10px;
  padding:8px 12px; border-radius:10px; margin-bottom:6px;
}
.cmd-aluno-row-mat { background:#f0fdf4; border:1px solid #bbf7d0; }
.cmd-aluno-row-disp { background:#fff; border:1.5px solid #e2e8f0; }
.cmd-aluno-avatar {
  width:32px; height:32px; border-radius:50%; background:#e0f2fe; color:#0284c7;
  display:flex; align-items:center; justify-content:center; font-size:15px; flex-shrink:0;
}
.cmd-aluno-row-mat .cmd-aluno-avatar { background:#dcfce7; color:#16a34a; }
.cmd-aluno-info { flex:1; min-width:0; }
.cmd-aluno-info strong { font-size:13px; font-weight:600; color:#1e293b; display:block; }
.cmd-aluno-info small { font-size:11.5px; color:#64748b; }
.cmd-aluno-rem {
  width:28px; height:28px; border-radius:7px; border:none; background:#fff5f5;
  color:#dc2626; cursor:pointer; display:flex; align-items:center; justify-content:center; font-size:13px;
}
.cmd-aluno-rem:hover { background:#fee2e2; }

/* Frequência */
.cmd-freq-resumo {
  display:flex; flex-wrap:wrap; gap:8px; margin-bottom:14px;
  padding:12px; background:#fff; border:1px solid #e2e8f0; border-radius:12px;
}
.cmd-freq-resumo-item {
  display:flex; flex-direction:column; gap:2px; padding:8px 12px; border-radius:10px;
  font-size:12px; min-width:110px;
}
.cmd-freq-ok     { background:#f0fdf4; border:1px solid #bbf7d0; }
.cmd-freq-alerta { background:#fff7ed; border:1px solid #fed7aa; }
.cmd-freq-resumo-item strong { font-size:12.5px; font-weight:700; color:#1e293b; }
.cmd-freq-resumo-item span { font-size:13px; font-weight:700; }
.cmd-freq-ok span     { color:#16a34a; }
.cmd-freq-alerta span { color:#ea580c; }
.cmd-freq-resumo-item small { font-size:11px; color:#64748b; }

.cmd-freq-aulas-lista { display:flex; flex-direction:column; gap:10px; }
.cmd-freq-aula-card {
  background:#fff; border:1.5px solid #e2e8f0; border-radius:12px; padding:12px 14px;
}
.cmd-freq-aula-data {
  font-size:13px; font-weight:700; color:#1e293b; display:flex; align-items:center;
  gap:8px; margin-bottom:8px;
}
.cmd-freq-aula-del {
  margin-left:auto; border:none; background:#fff5f5; color:#dc2626;
  border-radius:7px; padding:3px 8px; cursor:pointer; font-size:12px;
}
.cmd-freq-presencas { display:flex; flex-wrap:wrap; gap:5px; }
.cmd-freq-chip {
  padding:3px 9px; border-radius:20px; font-size:11.5px; font-weight:600;
}
.cmd-freq-chip.presente { background:#dcfce7; color:#16a34a; border:1px solid #bbf7d0; }
.cmd-freq-chip.ausente  { background:#fee2e2; color:#dc2626; border:1px solid #fca5a5; }
.cmd-freq-chip.nd       { background:#f1f5f9; color:#94a3b8; border:1px solid #e2e8f0; }

/* Modal frequência */
.cmd-freq-aluno-label {
  display:flex; align-items:center; gap:10px; padding:8px 12px;
  border-radius:10px; background:#f8fafc; border:1.5px solid #e2e8f0;
  cursor:pointer; transition:border-color .15s;
}
.cmd-freq-aluno-label:hover { border-color:#0284c7; }
.cmd-freq-status-chip {
  margin-left:auto; padding:3px 10px; border-radius:20px; font-size:12px; font-weight:700;
}
.cmd-freq-status-chip.presente { background:#dcfce7; color:#16a34a; }
.cmd-freq-status-chip.ausente  { background:#fee2e2; color:#dc2626; }

/* Notas */
.cmd-notas-legenda {
  font-size:11.5px; color:#64748b; background:#f0f9ff; border:1px solid #bae6fd;
  border-radius:8px; padding:8px 12px; margin-bottom:12px;
}
.cmd-notas-cards { display:flex; flex-direction:column; gap:12px; }
.cmd-nota-card { background:#fff; border:1.5px solid #e2e8f0; border-radius:14px; padding:14px 16px; }
.cmd-nota-card-header {
  display:flex; align-items:center; gap:10px; flex-wrap:wrap; margin-bottom:12px;
}
.cmd-nota-aluno-nome { font-size:14px; font-weight:700; color:#1e293b; display:flex; align-items:center; gap:6px; flex:1; }
.cmd-nota-situacao {
  padding:3px 10px; border-radius:20px; font-size:12px; font-weight:700;
}
.cmd-nota-aprovado  { background:#dcfce7; color:#16a34a; }
.cmd-nota-reprovado { background:#fee2e2; color:#dc2626; }
.cmd-nota-pendente  { background:#f1f5f9; color:#64748b; }
.cmd-nota-modulos { display:flex; gap:10px; flex-wrap:wrap; align-items:flex-end; }
.cmd-nota-modulo-item { display:flex; flex-direction:column; gap:4px; }
.cmd-nota-modulo-item label { font-size:11px; font-weight:700; color:#64748b; text-transform:uppercase; }
.cmd-nota-input {
  width:80px; padding:7px 10px; border:1.5px solid #e2e8f0; border-radius:9px;
  font-size:14px; font-weight:700; text-align:center; color:#1e293b;
  transition:border-color .15s;
}
.cmd-nota-input:focus { outline:none; border-color:#6366f1; }
.cmd-nota-total .cmd-nota-total-val {
  font-size:18px; font-weight:800; padding:6px 14px; border-radius:9px;
  background:#f8fafc; border:2px solid #e2e8f0;
}
.cmd-nota-total-val.aprovado  { color:#16a34a; background:#f0fdf4; border-color:#bbf7d0; }
.cmd-nota-total-val.reprovado { color:#dc2626; background:#fef2f2; border-color:#fca5a5; }

/* ── Painel CMD do aluno (dentro do SalaTech) ── */
.st-cmd-aluno-panel {
  position:fixed; inset:0; background:#f8fafc; z-index:50;
  display:flex; flex-direction:column;
  transition:transform .25s cubic-bezier(.4,0,.2,1);
  transform:translateX(0);
}
.st-cmd-aluno-panel.oculto { transform:translateX(100%); pointer-events:none; }
.st-cmd-aluno-topo {
  display:flex; align-items:center; gap:12px;
  padding:14px 16px; background:#fff; border-bottom:1px solid #e2e8f0; flex-shrink:0;
  font-size:15px; font-weight:700; color:#4f46e5;
}
.st-cmd-aluno-topo button {
  width:34px; height:34px; border-radius:9px; border:none;
  background:#f1f5f9; color:#1e293b; cursor:pointer;
  display:flex; align-items:center; justify-content:center; font-size:16px;
}
.st-cmd-aluno-corpo { flex:1; overflow-y:auto; padding:16px; max-width:600px; width:100%; margin:0 auto; }

/* Seções por turma */
.cmd-aluno-turma-sec { margin-bottom:24px; }
.cmd-aluno-turma-nome {
  font-size:15px; font-weight:800; color:#4f46e5;
  display:flex; align-items:center; gap:8px; margin-bottom:4px;
}
.cmd-aluno-prof { font-size:12px; color:#64748b; margin-bottom:12px; display:flex; align-items:center; gap:5px; }

/* Blocos de frequência e notas do aluno */
.cmd-aluno-bloco {
  background:#fff; border:1.5px solid #e2e8f0; border-radius:14px;
  padding:14px 16px; margin-bottom:12px;
}
.cmd-aluno-bloco.cmd-aluno-ok     { border-color:#bbf7d0; }
.cmd-aluno-bloco.cmd-aluno-alerta { border-color:#fca5a5; background:#fff5f5; }
.cmd-aluno-bloco-titulo {
  font-size:13px; font-weight:700; color:#1e293b; margin-bottom:10px;
  display:flex; align-items:center; gap:8px; flex-wrap:wrap;
}
.cmd-alerta-chip {
  background:#dc2626; color:#fff; font-size:11px; font-weight:700;
  padding:2px 8px; border-radius:20px;
}
.cmd-aluno-freq-pct { font-size:36px; font-weight:900; color:#1e293b; margin-bottom:6px; }
.cmd-aluno-ok .cmd-aluno-freq-pct     { color:#16a34a; }
.cmd-aluno-alerta .cmd-aluno-freq-pct { color:#dc2626; }
.cmd-aluno-freq-barra-wrap {
  height:10px; background:#e2e8f0; border-radius:99px; overflow:visible;
  position:relative; margin-bottom:6px;
}
.cmd-aluno-freq-barra { height:100%; border-radius:99px; transition:width .4s; }
.cmd-aluno-freq-linha75 {
  position:absolute; left:75%; top:-4px; height:18px;
  width:2px; background:#f59e0b; border-radius:2px;
}
.cmd-aluno-freq-sub { font-size:12px; color:#64748b; }
.cmd-aluno-alerta-msg {
  margin-top:8px; font-size:12.5px; font-weight:600; color:#dc2626;
  background:#fee2e2; padding:8px 12px; border-radius:8px;
}

/* Grade de notas do aluno */
.cmd-aluno-notas-grid { display:flex; gap:10px; flex-wrap:wrap; }
.cmd-aluno-mod { display:flex; flex-direction:column; gap:4px; align-items:center; }
.cmd-aluno-mod-label { font-size:11px; font-weight:700; color:#64748b; text-transform:uppercase; }
.cmd-aluno-mod-val {
  font-size:20px; font-weight:800; color:#1e293b;
  background:#f8fafc; border:2px solid #e2e8f0;
  padding:8px 14px; border-radius:10px; display:flex; align-items:baseline; gap:2px;
}
.cmd-aluno-mod-val small { font-size:12px; font-weight:500; color:#94a3b8; }
.cmd-aluno-mod-total .cmd-aluno-mod-val { background:#f0f9ff; border-color:#bae6fd; }
.cmd-aluno-mod-val.aprovado  { background:#f0fdf4; border-color:#bbf7d0; color:#16a34a; }
.cmd-aluno-mod-val.reprovado { background:#fef2f2; border-color:#fca5a5; color:#dc2626; }

/* ── CMD na sidebar do SalaTech ── */
.cmd-turma-nav-btns { display:flex; flex-direction:column; gap:1px; padding:2px 8px 8px 24px; }
.cmd-nav-btn {
  display:flex; align-items:center; gap:7px; padding:6px 10px;
  border-radius:8px; border:none; background:none; cursor:pointer;
  font-size:12px; color:#4f46e5; font-weight:600; text-align:left; width:100%;
  transition:background .12s, color .12s;
}
.cmd-nav-btn:hover { background:#ede9fe; }
.cmd-nav-btn i { font-size:12px; }
.cmd-nav-btn.cmd-nav-btn-ativo {
  background:#4f46e5; color:#fff;
}
.cmd-nav-btn.cmd-nav-btn-ativo:hover { background:#4338ca; }

/* ── Painel CMD: camada sobreposta sobre o st-main ── */
.cmd-main-overlay {
  position:absolute; inset:0; z-index:20;
  background:#f8fafc; overflow-y:auto;
}
.cmd-main-panel { padding:16px; max-width:780px; width:100%; margin:0 auto; }
.cmd-main-panel-topo {
  display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:10px;
  margin-bottom:16px; padding-bottom:12px; border-bottom:1px solid #e2e8f0;
}
.cmd-main-panel-titulo { font-size:15px; font-weight:700; color:#1e293b; display:flex; align-items:center; gap:7px; }
.cmd-main-voltar-btn {
  display:inline-flex; align-items:center; gap:6px;
  padding:7px 14px; border-radius:9px; border:1.5px solid #e2e8f0;
  background:#f8fafc; color:#475569; cursor:pointer;
  font-size:12.5px; font-weight:600;
  transition:background .12s, border-color .12s, color .12s;
}
.cmd-main-voltar-btn:hover {
  background:#fff; border-color:#4f46e5; color:#4f46e5;
}

/* ══════════════════════════════════════════════════════════════
   CMD — Exercícios de Digitação
══════════════════════════════════════════════════════════════ */
/* Cards de exercício na lista */
.cmd-dig-card {
  background:#fff; border:1.5px solid #e2e8f0; border-radius:14px;
  padding:14px 16px; margin-bottom:10px;
}
.cmd-dig-card-titulo { font-size:14px; font-weight:700; color:#1e293b; display:flex; align-items:center; gap:7px; }
.cmd-dig-card-titulo i { color:#7c3aed; }
.cmd-dig-card-preview {
  font-size:12.5px; color:#64748b; margin:6px 0 10px;
  font-family:ui-monospace,monospace; background:#f8fafc;
  padding:8px 10px; border-radius:8px; border:1px solid #f1f5f9;
}
.cmd-dig-card-rodape { display:flex; align-items:center; gap:8px; flex-wrap:wrap; }
.cmd-dig-meu-result { font-size:12px; color:#7c3aed; font-weight:700; display:flex; align-items:center; gap:5px; }
.cmd-dig-del-btn {
  width:30px; height:30px; border-radius:8px; border:none;
  background:#fff5f5; color:#dc2626; cursor:pointer;
  display:flex; align-items:center; justify-content:center;
}
.cmd-dig-del-btn:hover { background:#fee2e2; }

/* Tela cheia de digitação */
.dig-fullscreen {
  position:fixed; inset:0; z-index:1000; background:#f8fafc;
  display:flex; flex-direction:column;
}
.dig-topo {
  display:flex; align-items:center; gap:14px; flex-wrap:wrap;
  padding:14px 18px; background:#fff; border-bottom:1px solid #e2e8f0; flex-shrink:0;
}
.dig-fechar {
  width:36px; height:36px; border-radius:10px; border:none;
  background:#f1f5f9; color:#1e293b; cursor:pointer;
  display:flex; align-items:center; justify-content:center; font-size:16px;
}
.dig-topo-titulo { font-size:15px; font-weight:700; color:#1e293b; display:flex; align-items:center; gap:8px; }
.dig-topo-titulo i { color:#7c3aed; }
.dig-stats { display:flex; gap:14px; margin-left:auto; flex-wrap:wrap; }
.dig-stat {
  display:flex; align-items:center; gap:6px;
  font-size:15px; font-weight:800; color:#1e293b;
  background:#f1f5f9; padding:6px 14px; border-radius:10px;
}
.dig-stat i { font-size:14px; color:#7c3aed; }
.dig-stat-erros i { color:#dc2626; }

.dig-corpo {
  flex:1; overflow:hidden; padding:18px; max-width:820px; width:100%; margin:0 auto;
  display:flex; flex-direction:column; min-height:0;
}
.dig-instrucao {
  font-size:12.5px; color:#64748b; background:#f5f3ff; border:1px solid #ddd6fe;
  border-radius:10px; padding:9px 14px; margin-bottom:12px; flex-shrink:0;
  display:flex; align-items:center; gap:8px;
}
.dig-texto-render {
  position:relative;
  font-family:ui-monospace,'Courier New',monospace; font-size:19px; line-height:1.8;
  background:#fff; border:1.5px solid #e2e8f0; border-radius:14px;
  padding:18px 20px; margin-bottom:12px; color:#94a3b8;
  white-space:pre-wrap; word-break:break-word; user-select:none;
  flex:1 1 auto; min-height:90px; overflow-y:auto;   /* rolagem própria; segue o cursor */
}
.dig-char { transition:background .05s, color .05s; border-radius:2px; }
.dig-char-ok   { color:#16a34a; }
.dig-char-erro { color:#fff; background:#ef4444; }
.dig-char-atual {
  background:#ddd6fe; color:#5b21b6;
  box-shadow:inset 2px 0 0 #7c3aed;
  animation:digBlink 1s step-end infinite;
}
@keyframes digBlink { 50% { box-shadow:inset 2px 0 0 transparent; } }
.dig-input {
  width:100%; height:110px; flex-shrink:0; padding:12px 16px;
  border:2px solid #ddd6fe; border-radius:14px;
  font-family:ui-monospace,'Courier New',monospace; font-size:17px; line-height:1.6;
  resize:none; outline:none; color:#1e293b; transition:border-color .15s;
}
.dig-input:focus { border-color:#7c3aed; }
.dig-input:disabled { background:#f0fdf4; border-color:#bbf7d0; }

/* Resultado */
.dig-resultado { margin-top:0; flex:1 1 auto; min-height:0; overflow-y:auto; display:flex; align-items:flex-start; justify-content:center; }
.dig-resultado.oculto { display:none; }
.dig-resultado-card {
  background:#fff; border:2px solid #ddd6fe; border-radius:18px;
  padding:24px; text-align:center; box-shadow:0 8px 32px rgba(124,58,237,.12);
}
.dig-resultado-icone { font-size:44px; margin-bottom:6px; }
.dig-resultado-titulo { font-size:20px; font-weight:800; color:#1e293b; margin-bottom:16px; }
.dig-resultado-stats { display:flex; justify-content:center; gap:24px; flex-wrap:wrap; }
.dig-res-stat { display:flex; flex-direction:column; gap:2px; }
.dig-res-num { font-size:26px; font-weight:900; color:#7c3aed; }
.dig-res-lbl { font-size:11px; font-weight:700; color:#94a3b8; text-transform:uppercase; letter-spacing:.4px; }

/* Ranking */
.rank-dig-row {
  display:flex; align-items:center; gap:12px;
  padding:10px 12px; border-radius:12px; margin-bottom:6px;
  background:#f8fafc; border:1.5px solid #e2e8f0;
}
.rank-dig-top { background:#fffbeb; border-color:#fde68a; }
.rank-dig-eu  { background:#f5f3ff; border-color:#ddd6fe; }
.rank-dig-pos { font-size:22px; width:34px; text-align:center; flex-shrink:0; }
.rank-dig-num { font-size:14px; font-weight:800; color:#94a3b8; }
.rank-dig-info { flex:1; min-width:0; }
.rank-dig-info strong { font-size:13.5px; color:#1e293b; display:block; }
.rank-dig-info small { font-size:11.5px; color:#64748b; }
.rank-dig-metricas { display:flex; flex-direction:column; align-items:flex-end; gap:3px; flex-shrink:0; }
.rank-dig-tempo { font-size:17px; font-weight:800; color:#b45309; }
.rank-dig-erro-badge {
  font-size:10.5px; font-weight:700; padding:2px 7px; border-radius:20px;
  display:inline-flex; align-items:center; gap:3px; white-space:nowrap;
}
.rank-dig-erro-zero { background:#dcfce7; color:#16a34a; }
.rank-dig-erro-tem  { background:#fee2e2; color:#dc2626; }

/* ══════════════════════════════════════════════════════════════
   CMD — Quiz (atividade de marcar)
══════════════════════════════════════════════════════════════ */
.cmd-quiz-card {
  background:#fff; border:1.5px solid #e2e8f0; border-radius:14px;
  padding:14px 16px; margin-bottom:10px;
}
.cmd-quiz-card-titulo { font-size:14px; font-weight:700; color:#1e293b; display:flex; align-items:center; gap:7px; }
.cmd-quiz-card-titulo i { color:#0891b2; }
.cmd-quiz-card-desc { font-size:12.5px; color:#64748b; margin:4px 0 8px; }
.cmd-quiz-card-rodape { display:flex; align-items:center; gap:8px; flex-wrap:wrap; margin-top:8px; }
.cmd-quiz-nota { font-size:12.5px; color:#0891b2; font-weight:700; display:flex; align-items:center; gap:5px; }
.cmd-quiz-del-btn {
  width:30px; height:30px; border-radius:8px; border:none;
  background:#fff5f5; color:#dc2626; cursor:pointer;
  display:flex; align-items:center; justify-content:center;
}
.cmd-quiz-del-btn:hover { background:#fee2e2; }

/* Geração IA */
.quiz-gerar-box {
  background:linear-gradient(135deg,#ecfeff,#f0f9ff); border:1.5px solid #a5f3fc;
  border-radius:12px; padding:12px 14px;
}
.quiz-gerar-titulo { font-size:13px; font-weight:700; color:#0e7490; display:flex; align-items:center; gap:6px; }
.quiz-ia-key-row {
  display:flex; align-items:center; gap:8px; flex-wrap:wrap; margin-top:10px;
  padding:8px 10px; background:rgba(255,255,255,.6); border:1px dashed #a5f3fc; border-radius:8px;
}

/* Edição de questões */
.quiz-q-edit { background:#f8fafc; border:1.5px solid #e2e8f0; border-radius:12px; padding:12px 14px; margin-bottom:10px; }
.quiz-q-edit-topo { display:flex; align-items:center; gap:8px; margin-bottom:8px; }
.quiz-q-num { width:24px; height:24px; border-radius:50%; background:#0891b2; color:#fff; font-size:12px; font-weight:700; display:flex; align-items:center; justify-content:center; flex-shrink:0; }
.quiz-q-tipo { font-size:10.5px; font-weight:700; padding:2px 8px; border-radius:20px; text-transform:uppercase; }
.quiz-q-multipla { background:#cffafe; color:#0e7490; }
.quiz-q-aberta { background:#fef3c7; color:#92400e; }
.quiz-q-del { margin-left:auto; border:none; background:#fff5f5; color:#dc2626; border-radius:7px; padding:4px 8px; cursor:pointer; }
.quiz-q-enunciado, .quiz-q-gabarito {
  width:100%; padding:8px 10px; border:1.5px solid #e2e8f0; border-radius:8px;
  font-size:13px; font-family:inherit; resize:vertical; margin-bottom:8px;
}
.quiz-q-gabarito { background:#fffbeb; border-color:#fde68a; }
.quiz-q-opcoes { display:flex; flex-direction:column; gap:6px; }
.quiz-q-opcao { display:flex; align-items:center; gap:8px; }
.quiz-q-opcao input[type=radio] { width:16px; height:16px; accent-color:#0891b2; flex-shrink:0; }
.quiz-q-op-txt { flex:1; padding:6px 10px; border:1.5px solid #e2e8f0; border-radius:7px; font-size:12.5px; }

/* Responder quiz (aluno) */
.quiz-entrega-resumo {
  background:#ecfeff; border:1.5px solid #a5f3fc; border-radius:12px;
  padding:12px 14px; font-size:14px; color:#0e7490; margin-bottom:16px;
  display:flex; align-items:center; gap:8px;
}
.quiz-resp-q { padding:14px 0; border-bottom:1px solid #f1f5f9; }
.quiz-resp-enunciado { font-size:14px; font-weight:600; color:#1e293b; margin-bottom:10px; display:flex; gap:8px; }
.quiz-resp-num { width:24px; height:24px; border-radius:50%; background:#0891b2; color:#fff; font-size:12px; font-weight:700; display:flex; align-items:center; justify-content:center; flex-shrink:0; }
.quiz-resp-opcao {
  display:flex; align-items:center; gap:10px; padding:9px 12px; margin-bottom:6px;
  border:1.5px solid #e2e8f0; border-radius:10px; cursor:pointer; font-size:13px; transition:border-color .12s, background .12s;
}
.quiz-resp-opcao:hover { border-color:#0891b2; background:#f0fdff; }
.quiz-resp-opcao input { width:17px; height:17px; accent-color:#0891b2; flex-shrink:0; }
.quiz-opcao-correta { border-color:#22c55e; background:#f0fdf4; }
.quiz-opcao-errada  { border-color:#ef4444; background:#fef2f2; }
.quiz-resp-aberta {
  width:100%; padding:10px 12px; border:1.5px solid #e2e8f0; border-radius:10px;
  font-size:13px; font-family:inherit; resize:vertical;
}
.quiz-resp-resultado { margin-top:8px; display:flex; flex-direction:column; gap:6px; }
.quiz-resp-pontos { font-size:12px; font-weight:700; padding:3px 10px; border-radius:20px; align-self:flex-start; }
.quiz-pontos-ok { background:#dcfce7; color:#16a34a; }
.quiz-pontos-erro { background:#fee2e2; color:#dc2626; }
.quiz-resp-feedback {
  font-size:12.5px; color:#475569; background:#f5f3ff; border:1px solid #ddd6fe;
  border-radius:8px; padding:8px 11px; display:flex; gap:7px; align-items:flex-start;
}
.quiz-resp-feedback i { color:#7c3aed; margin-top:1px; }
.quiz-prev-gabarito {
  font-size:12.5px; color:#92400e; background:#fffbeb; border:1px solid #fde68a;
  border-radius:8px; padding:9px 12px; margin-top:4px; line-height:1.5;
}
.quiz-prev-gabarito i { color:#d97706; }
