body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    margin: 0;
    padding: 0;
    background: #0b1120;
    color: #e5e7eb;
}
/* ✅ Header responsivo (quebra no mobile) */
header{
  position: sticky;
  top: 0;
  z-index: 20;

  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 12px;

  padding: 10px 16px;
  background: linear-gradient(180deg,#020617,#020617);
  border-bottom: 1px solid rgba(30,41,59,.9);
  box-shadow: 0 10px 30px rgba(0,0,0,.45);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

/* lado esquerdo */
header .left{
  display:flex;
  align-items:center;
  gap: 12px;
  min-width: 0;
  flex: 1;
}

/* logo/imagem */
header .brand{
  display:flex;
  align-items:center;
  gap: 10px;
  min-width: 0;
}
header .brand img{
  height: 40px;
  width: auto;
  display:block;
}

/* badge “editando aluno” */
.impersonation-badge{
  font-size: 12px;
  color: rgba(250,204,21,.95);
  white-space: nowrap;
}

/* form do select */
header .row-inline{
  display:flex;
  align-items:center;
  gap: 10px;
  margin: 0;
}

/* lado direito */
header .user{
  display:flex;
  align-items:center;
  gap: 10px;
  font-size: 13px;
  min-width: 0;
}
header .user img{
  width: 34px;
  height: 34px;
  border-radius: 0;
  border: 1px solid rgba(56,189,248,.8);
  object-fit: cover;
  background: #020617;
}
header .user .who{
  display:flex;
  flex-direction:column;
  gap: 2px;
  min-width: 0;
}
header .user .who strong{
  font-weight: 700;
  white-space: nowrap;
  overflow:hidden;
  text-overflow: ellipsis;
  max-width: 240px;
}
header a.logout{
  color: rgba(248,113,113,.95);
  text-decoration:none;
  font-size: 12px;
}
header a.logout:hover{ text-decoration: underline; }

/* ✅ Mobile: empilha tudo (um abaixo do outro) */
@media (max-width: 820px){
  header{
    flex-direction: column;
    align-items: stretch;
  }

  header .left{
    flex-direction: column;
    align-items: stretch;
    width: 100%;
  }

  header .row-inline{
    width: 100%;
  }

  header .row-inline select{
    width: 100%;
  }

  .impersonation-badge{
    white-space: normal;
  }

  header .user{
    width: 100%;
    justify-content: space-between;
  }

  header .user .who strong{
    max-width: 70vw;
  }
}

.site-menu {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-top: 0.75rem;
}
.site-menu a {
    color: #e5e7eb;
    text-decoration: none;
    padding: 0.35rem 0.8rem;
    border-radius: 999px;
    border: 1px solid rgba(148,163,184,0.4);
    font-size: 0.9rem;
}
.site-menu a:hover {
    background: rgba(56,189,248,0.12);
    border-color: #38bdf8;
}
main {
    padding: 1.5rem;
    max-width: 1000px;
    margin: 0 auto;
}
footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid rgba(148,163,184,0.3);
    font-size: 0.8rem;
    color: #9ca3af;
    text-align: center;
}