/* Mestres Play · sino (avisos) e preferências (sino.js), nos dois visuais. Prefixo .sn-
   Computador: gaveta à direita (380 px). Celular: folha que sobe de baixo, 85% da altura, margem de 16 px, toque de 44 px. */
.sn-sr {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
html.sn-travado, html.sn-travado body { overflow: hidden; }

/* botão do visual antigo, no cabeçalho (#sino-header) */
#sino-header:empty { display: none; }
#sino-header .sn-botao {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; min-height: 40px; padding: 0; border-radius: 50%;
}
#sino-header .sn-botao svg { flex: none; width: 20px; height: 20px; }
.sn-ponto {
  position: absolute; top: 7px; right: 8px; width: 8px; height: 8px; border-radius: 50%;
  background: #b4e05c; box-shadow: 0 0 0 2px #101012;
}
.sn-ponto[hidden] { display: none; }

/* véu e folha */
.sn-veu {
  position: fixed; left: 0; top: 0; right: 0; bottom: 0; z-index: 128;
  background: rgba(5, 5, 7, .55);
}
.sn-veu[hidden], .sn-folha[hidden] { display: none; }
.sn-folha {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 129; width: 380px; max-width: 100vw; box-sizing: border-box;
  display: flex; flex-direction: column;
  background: #151517; border-left: 1px solid rgba(255, 255, 255, .1); box-shadow: -30px 0 70px rgba(0, 0, 0, .55);
  color: rgba(255, 255, 255, .94);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Inter, sans-serif;
  -webkit-font-smoothing: antialiased;
}
.sn-puxador { display: none; }
.sn-cab { flex: none; display: flex; align-items: center; gap: 2px; padding: 14px 10px 8px 20px; }
.sn-cab-t { flex: 1; margin: 0; font-size: 19px; font-weight: 700; letter-spacing: -.02em; color: #f5f5f7; }
.sn-btn-ico {
  flex: none; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: none; color: #c9c9cf;
  display: inline-flex; align-items: center; justify-content: center; cursor: pointer;
}
.sn-btn-ico:hover { background: rgba(255, 255, 255, .07); color: #f5f5f7; }
.sn-btn-ico:focus-visible, .sn-item:focus-visible, .sn-btn-texto:focus-visible, .sn-chave input:focus-visible { outline: 2px solid #b4e05c; outline-offset: 2px; }
.sn-corpo { flex: 1; min-height: 0; overflow-y: auto; -webkit-overflow-scrolling: touch; padding: 4px 16px 16px; }
.sn-carregando, .sn-vazio { padding: 40px 8px; text-align: center; color: #a1a1a8; font-size: 15px; }
.sn-vazio p { margin: 0 0 12px; }

/* lista de avisos */
.sn-lista { list-style: none; margin: 0; padding: 0; }
.sn-lista li { margin: 0; padding: 0; }
.sn-item {
  display: flex; flex-direction: column; gap: 3px; width: 100%; min-height: 44px; box-sizing: border-box;
  padding: 12px; margin: 0 0 4px; border: 0; border-radius: 12px; background: none; color: inherit;
  font: inherit; text-align: left; cursor: pointer;
}
.sn-item:hover { background: rgba(255, 255, 255, .05); }
.sn-nao-lido { background: rgba(180, 224, 92, .08); }
.sn-tit { font-size: 15px; font-weight: 650; line-height: 1.35; color: #f5f5f7; overflow-wrap: anywhere; }
.sn-nao-lido .sn-tit::before {
  content: ""; display: inline-block; width: 7px; height: 7px; margin: 0 7px 2px 0; border-radius: 50%; background: #b4e05c; vertical-align: middle;
}
.sn-texto { font-size: 14px; line-height: 1.45; color: #a1a1a8; overflow-wrap: anywhere; }
.sn-quando { font-size: 12.5px; color: #7d7d86; }
.sn-pe { flex: none; padding: 10px 16px 16px; border-top: 1px solid rgba(255, 255, 255, .08); }
.sn-pe[hidden] { display: none; }
.sn-btn-texto {
  min-height: 44px; padding: 0 14px; border: 1px solid rgba(255, 255, 255, .14); border-radius: 12px;
  background: rgba(255, 255, 255, .06); color: #e0e0e5; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer;
}
.sn-btn-texto:hover { background: rgba(255, 255, 255, .1); }
.sn-btn-texto:disabled { opacity: .6; cursor: default; }

/* preferências */
.sn-prefs { padding-top: 8px; }
.sn-chave {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 48px;
  padding: 4px 4px; border-bottom: 1px solid rgba(255, 255, 255, .07); font-size: 15px; color: #f5f5f7; cursor: pointer;
}
.sn-chave-geral { font-weight: 650; }
.sn-grupo .sn-chave { padding-left: 14px; }
.sn-chave.sn-apagada { opacity: .45; cursor: default; }
.sn-chave input { flex: none; width: 22px; height: 22px; margin: 0; accent-color: #b4e05c; cursor: inherit; }
.sn-sub { margin: 22px 4px 4px; font-size: 13px; font-weight: 650; color: #a1a1a8; letter-spacing: .02em; }
.sn-email[hidden] { display: none; }
.sn-msg { min-height: 20px; margin: 12px 4px 0; font-size: 14px; color: #91d95b; }

/* publicação aberta por um aviso: destaque rápido */
.pcard.sn-destaque { box-shadow: 0 0 0 2px rgba(180, 224, 92, .7), 0 0 30px rgba(180, 224, 92, .25); transition: box-shadow .5s ease; }

/* celular: folha que sobe de baixo */
@media (max-width: 640px) {
  .sn-folha {
    top: auto; left: 0; right: 0; bottom: 0; width: auto; height: 85vh; height: 85dvh;
    border-left: 0; border-top: 1px solid rgba(255, 255, 255, .1); border-radius: 22px 22px 0 0;
    box-shadow: 0 -24px 60px rgba(0, 0, 0, .55);
    padding-bottom: env(safe-area-inset-bottom, 0px);
  }
  .sn-puxador { display: block; width: 40px; height: 5px; margin: 8px auto 0; border-radius: 3px; background: rgba(255, 255, 255, .22); }
  html.mp-vc body .sn-folha { top: auto; } /* "Ver como aluno": a folha continua presa embaixo */
  .sn-cab { padding: 8px 6px 6px 16px; }
  .sn-corpo { padding: 4px 16px 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .pcard.sn-destaque { transition: none; }
}
