:root {
  --gold: #f5b025;
  --gold-dark: #b88214;
  --navy: #001432;
  --blue: #1e3a5f;
  --green: #22c55e;
  --ink: #111827;
  --muted: #4b5563;
  --line: #e5e7eb;
  --bg: #eef1f6;
  --err: #dc2626;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  font-family: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  line-height: 1.6;
  background:
    radial-gradient(1200px 500px at 50% -200px, rgba(30, 58, 95, 0.20), transparent 70%),
    var(--bg);
  min-height: 100vh;
}
h1, h2, h3 { font-family: "Merriweather", Georgia, serif; color: var(--navy); }

.as-wrap { max-width: 860px; margin: 0 auto; padding: 2rem 1.1rem 4rem; }

.as-card {
  max-width: 440px;
  margin: 2.5rem auto;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 2.2rem 1.9rem;
  box-shadow: 0 18px 50px rgba(0, 20, 50, 0.14);
}
.as-centro { text-align: center; }

.as-brand { text-align: center; margin-bottom: 1.2rem; }
.as-brand img { width: 76px; height: auto; display: block; margin: 0 auto 0.5rem; }
.as-brand .as-wordmark {
  font-family: "Merriweather", serif;
  font-weight: 900;
  letter-spacing: 0.5px;
  color: var(--navy);
  font-size: 1.05rem;
}
.as-brand .as-wordmark span { color: var(--gold-dark); }

h1 { font-size: 1.4rem; margin: 0.3rem 0 0.5rem; line-height: 1.3; }
h2 { font-size: 1.2rem; margin: 0; }
.as-muted { color: var(--muted); font-size: 0.92rem; }
.as-mini { font-size: 0.8rem; }
.as-preco { font-size: 1.9rem; font-weight: 800; color: var(--gold-dark); margin: 0.1rem 0 1rem; font-family: "Poppins", sans-serif; }
.as-erro { color: var(--err); font-size: 0.88rem; min-height: 1em; margin: 0.5rem 0 0; }
.as-erro-inline { color: var(--err); }

.as-field { position: relative; margin: 0.55rem 0; text-align: left; }
label.as-lab { display: block; font-size: 0.78rem; color: var(--muted); margin: 0 0 0.2rem 0.15rem; font-weight: 500; }
input {
  width: 100%;
  padding: 0.72rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 1rem;
  font-family: inherit;
  color: var(--ink);
  background: #fff;
  transition: border-color 0.15s, box-shadow 0.15s;
}
input:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(245, 176, 37, 0.22); }
input::placeholder { color: #9aa3b2; }

.as-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  width: 100%;
  background: var(--navy); color: #fff; border: 0; cursor: pointer;
  padding: 0.82rem 1.1rem; border-radius: 10px; font-size: 0.98rem; font-weight: 600;
  font-family: inherit; text-decoration: none; text-align: center;
  transition: background 0.15s, transform 0.05s, box-shadow 0.15s;
}
.as-btn:hover { background: var(--blue); }
.as-btn:active { transform: translateY(1px); }
.as-btn:disabled { opacity: 0.6; cursor: default; }
.as-btn[hidden] { display: none; }
.as-btn-ouro { background: var(--gold); color: var(--navy); box-shadow: 0 6px 18px rgba(245, 176, 37, 0.35); }
.as-btn-ouro:hover { background: var(--gold-dark); color: #fff; }
.as-btn-grande { padding: 0.95rem; font-size: 1.05rem; }
.as-btn-sm { width: auto; padding: 0.5rem 0.9rem; font-size: 0.85rem; }

.as-btn-google {
  width: 100%;
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem;
  background: #fff; color: #1f2937; border: 1px solid #dADCE0;
  padding: 0.75rem 1rem; border-radius: 10px; font-size: 0.95rem; font-weight: 600;
  font-family: inherit; cursor: pointer; transition: background 0.15s, box-shadow 0.15s;
}
.as-btn-google:hover { background: #f7f8fa; box-shadow: 0 1px 4px rgba(0,0,0,0.1); }
.as-btn-google:disabled { opacity: 0.6; cursor: default; }
.as-btn-google svg { width: 18px; height: 18px; flex-shrink: 0; }

.as-ou { display: flex; align-items: center; gap: 0.8rem; margin: 1.1rem 0; color: #9aa3b2; font-size: 0.8rem; }
.as-ou::before, .as-ou::after { content: ""; flex: 1; height: 1px; background: var(--line); }

.as-tabs { display: flex; background: #f1f3f7; border-radius: 10px; padding: 4px; margin-bottom: 0.4rem; }
.as-tab {
  flex: 1; text-align: center; padding: 0.5rem; border-radius: 8px; cursor: pointer;
  font-size: 0.9rem; font-weight: 600; color: var(--muted); border: 0; background: transparent; font-family: inherit;
}
.as-tab.ativa { background: #fff; color: var(--navy); box-shadow: 0 1px 3px rgba(0,0,0,0.1); }

.as-selo { display: flex; align-items: center; justify-content: center; gap: 0.4rem; color: var(--muted); font-size: 0.8rem; margin-top: 1rem; }
.as-selo svg { width: 14px; height: 14px; color: var(--green); }

.as-esqueci { text-align: center; margin: 0.6rem 0 0; }
.as-link-btn { background: none; border: none; padding: 0; font: inherit; font-size: 0.88rem;
  color: var(--gold-dark); font-weight: 600; cursor: pointer; text-decoration: underline; }
.as-link-btn:hover { color: var(--navy); }

.as-topo {
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding: 0.9rem 1.2rem; margin-bottom: 1.4rem; background: var(--navy);
  border-bottom: 4px solid var(--gold); border-radius: 12px; flex-wrap: wrap;
}
.as-topo .as-topo-brand { display: flex; align-items: center; gap: 0.6rem; color: #fff; font-family: "Merriweather", serif; font-weight: 700; font-size: 0.98rem; }
.as-topo .as-topo-brand img { width: 30px; height: auto; }
.as-topo .as-topo-brand span { color: var(--gold); }
.as-user { color: #cbd5e1; font-size: 0.85rem; }
.as-user a { color: var(--gold); }

.as-pack { background: #fff; border: 1px solid var(--line); border-left: 6px solid var(--gold); border-radius: 12px; padding: 1.3rem 1.4rem; margin-bottom: 1.4rem; box-shadow: 0 6px 20px rgba(0,20,50,0.05); }
.as-pack-head { margin-bottom: 1rem; padding-bottom: 0.8rem; border-bottom: 1px solid var(--line); }
.as-pack-head h2 { font-size: 1.15rem; }
.as-materiais { list-style: none; margin: 0; padding: 0; }
.as-material { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 0.8rem 0; border-bottom: 1px solid var(--line); }
.as-material:last-child { border-bottom: 0; }
.as-material-info { display: flex; flex-direction: column; gap: 0.25rem; }
.as-material-titulo { font-weight: 600; font-size: 0.95rem; }
.as-tag { align-self: flex-start; font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.03em; background: #f1f3f7; color: var(--blue); padding: 0.12rem 0.5rem; border-radius: 999px; }
.as-material-acao { flex-shrink: 0; }
.as-em-breve { font-size: 0.82rem; }

.as-material-info { flex-direction: row; align-items: center; gap: 0.7rem; }
.as-material-icone { font-size: 1.35rem; line-height: 1; flex-shrink: 0; }
.as-material-texto { display: flex; flex-direction: column; gap: 0.25rem; }

.as-aguardando { text-align: center; padding: 2.5rem 1rem; }
.as-aguardando img { width: 64px; margin: 0 auto 1rem; display: block; }
.as-spinner { width: 42px; height: 42px; margin: 0 auto 1.2rem; border-radius: 50%; border: 4px solid var(--line); border-top-color: var(--gold); animation: as-gira 1s linear infinite; }
@keyframes as-gira { to { transform: rotate(360deg); } }

.as-turmas-intro { margin-bottom: 1.2rem; }
.as-turmas-intro h1 { font-size: 1.5rem; margin: 0 0 0.2rem; }
.as-turmas-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.1rem;
}
.as-turma-card {
  display: flex; text-align: left; cursor: pointer;
  background: #fff; border: 1px solid var(--line); border-left: 6px solid var(--gold);
  border-radius: 14px; padding: 1.2rem 1.3rem 1.1rem; font-family: inherit;
  box-shadow: 0 6px 20px rgba(0,20,50,0.06);
  transition: transform 0.08s, box-shadow 0.15s, border-color 0.15s;
}
.as-turma-card:hover { transform: translateY(-2px); box-shadow: 0 14px 34px rgba(0,20,50,0.14); }
.as-turma-card:active { transform: translateY(0); }
.as-turma-card:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(245,176,37,0.4); }
.as-turma-corpo { display: flex; flex-direction: column; gap: 0.35rem; min-width: 0; flex: 1; }
.as-turma-titulo { font-size: 1.05rem; margin: 0; line-height: 1.25; }
.as-turma-conc { font-size: 0.82rem; margin: 0; }
.as-turma-meta { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.15rem; }
.as-turma-meta span {
  font-size: 0.72rem; font-weight: 600; color: var(--blue);
  background: #f1f3f7; padding: 0.15rem 0.55rem; border-radius: 999px;
}
.as-turma-cta { margin-top: 0.5rem; font-weight: 700; color: var(--gold-dark); font-size: 0.9rem; }
.as-turma-cta span { transition: transform 0.12s; display: inline-block; }
.as-turma-card:hover .as-turma-cta span { transform: translateX(3px); }

.as-voltar {
  display: inline-flex; align-items: center; gap: 0.4rem; margin-bottom: 1rem;
  background: transparent; border: 0; cursor: pointer; font-family: inherit;
  color: var(--blue); font-weight: 600; font-size: 0.92rem; padding: 0.2rem 0;
}
.as-voltar:hover { color: var(--navy); }
.as-turma-head {
  background: var(--navy); color: #fff; border-radius: 14px;
  border-bottom: 5px solid var(--gold); padding: 1.3rem 1.4rem; margin-bottom: 1.4rem;
}
.as-turma-head h1 { color: #fff; font-size: 1.35rem; margin: 0 0 0.25rem; }
.as-turma-head .as-muted { color: #cbd5e1; }

.as-grupo {
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  padding: 1rem 1.3rem 0.6rem; margin-bottom: 1.1rem; box-shadow: 0 4px 14px rgba(0,20,50,0.05);
}
.as-grupo-titulo {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 1.05rem; margin: 0 0 0.4rem; padding-bottom: 0.5rem; border-bottom: 2px solid var(--gold);
}
.as-grupo-cont { font-family: "Poppins", sans-serif; font-size: 0.75rem; font-weight: 600; color: var(--muted); }

.as-vazio { padding: 2.4rem 1.9rem; }
.as-vazio h2 { font-size: 1.25rem; margin: 0.4rem 0 0.6rem; }
.as-vazio .as-btn { margin-top: 0.6rem; }

.as-suporte {
  margin-top: 1.6rem; padding-top: 1.1rem; border-top: 1px solid var(--line);
  text-align: center; color: var(--muted); font-size: 0.86rem;
}
.as-suporte a { color: var(--gold-dark); font-weight: 600; text-decoration: none; }
.as-suporte a:hover { text-decoration: underline; }


.as-area { width: 100%; }

.as-header {
  position: sticky; top: 0; z-index: 50; background: #fff;
  box-shadow: 0 2px 12px rgba(0, 20, 50, 0.08); border-bottom: 3px solid var(--gold);
}
.as-header-inner {
  max-width: 1200px; margin: 0 auto; padding: 0.75rem 1.4rem;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.as-header-brand { display: flex; align-items: center; gap: 0.7rem; min-width: 0; }
.as-header-brand img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.as-header-word { font-family: "Merriweather", serif; font-weight: 900; color: var(--navy); font-size: 1rem; line-height: 1.15; }
.as-header-word > span { color: var(--gold-dark); }
.as-header-word small {
  display: block; font-family: "Poppins", sans-serif; font-weight: 600; font-size: 0.66rem;
  letter-spacing: 0.05em; text-transform: uppercase; color: var(--muted);
}
.as-header-right { display: flex; align-items: center; gap: 0.9rem; flex-shrink: 0; }
.as-header-user { font-weight: 600; color: var(--navy); font-size: 0.9rem; }
.as-header-sair {
  display: inline-flex; align-items: center; gap: 0.35rem; background: transparent; border: 0;
  cursor: pointer; font-family: inherit; color: var(--muted); font-weight: 600; font-size: 0.9rem; padding: 0.4rem 0.5rem; border-radius: 8px;
}
.as-header-sair:hover { color: var(--gold-dark); background: #f7f8fb; }

.as-body { max-width: 1200px; margin: 0 auto; padding: 1.6rem 1.4rem 3rem; }
.as-dash { display: flex; flex-direction: column; gap: 1.4rem; }

.as-welcome {
  display: flex; align-items: center; gap: 1.2rem;
  background:
    radial-gradient(700px 220px at 12% -60%, rgba(245, 176, 37, 0.20), transparent 70%),
    linear-gradient(135deg, #001a40, #001026);
  color: #fff; border-radius: 18px; padding: 1.5rem 1.7rem;
  border: 1px solid rgba(255, 255, 255, 0.06); border-bottom: 4px solid var(--gold);
  box-shadow: 0 16px 40px rgba(0, 20, 50, 0.22);
}
.as-welcome-info { min-width: 0; flex: 1; display: flex; flex-direction: column; gap: 0.35rem; }
.as-welcome-nome { color: #fff; font-size: 1.5rem; margin: 0; line-height: 1.2; }
.as-welcome-turma { margin: 0; color: #cdd8ea; font-size: 0.9rem; }

.as-turma-picker { display: inline-flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; }
.as-turma-picker-lab { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--gold); }
.as-turma-select {
  max-width: 100%; font-family: inherit; font-size: 0.9rem; font-weight: 600; color: #fff;
  background: rgba(255, 255, 255, 0.10); border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 10px; padding: 0.5rem 2rem 0.5rem 0.8rem; cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23f5b025' stroke-width='3'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 0.7rem center;
}
.as-turma-select:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(245, 176, 37, 0.35); }
.as-turma-select option { color: #111827; }

.as-turma-busca { position: relative; min-width: 18rem; max-width: 100%; }
.as-turma-inp {
  width: 100%; font-family: inherit; font-size: 0.9rem; font-weight: 600; color: #fff;
  background: rgba(255, 255, 255, 0.10); border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 10px; padding: 0.5rem 2rem 0.5rem 0.8rem; cursor: pointer;
  text-overflow: ellipsis;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23f5b025' stroke-width='3'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 0.7rem center;
}
.as-turma-inp:focus {
  outline: none; cursor: text; border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(245, 176, 37, 0.35);
}
.as-turma-lista {
  position: absolute; top: calc(100% + 0.35rem); left: 0; right: auto; z-index: 40;
  min-width: 100%; width: max-content; max-width: min(34rem, 86vw);
  background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 0.35rem;
  box-shadow: 0 18px 40px rgba(0, 20, 50, 0.28); max-height: 19rem; overflow-y: auto;
}
.as-turma-op {
  display: flex; align-items: center; gap: 0.5rem; width: 100%; text-align: left; cursor: pointer;
  border: 0; background: transparent; font-family: inherit; color: var(--ink);
  font-size: 0.86rem; line-height: 1.35; padding: 0.45rem 0.55rem; border-radius: 9px;
}
.as-turma-op:hover, .as-turma-op.ativa { background: #f2f5fa; }
.as-turma-op.atual { font-weight: 700; color: var(--gold-dark); }
.as-turma-op-txt { flex: 1 1 auto; min-width: 0; }
.as-turma-op-mk { flex: 0 0 auto; display: flex; color: var(--gold-dark); }
.as-turma-op-mk .as-ic { width: 15px; height: 15px; }
.as-turma-vazio { margin: 0; padding: 0.5rem 0.55rem; font-size: 0.85rem; color: var(--muted); }
.as-turma-grupo {
  position: sticky; top: -0.35rem; z-index: 1; background: #fff;
  margin: 0; padding: 0.55rem 0.55rem 0.2rem; font-size: 0.68rem; font-weight: 700; line-height: 1.3;
  letter-spacing: 0.05em; text-transform: uppercase; color: var(--muted);
}
.as-turma-grupo:first-child { padding-top: 0.3rem; }

.as-avatar {
  position: relative; width: 84px; height: 84px; flex-shrink: 0; border-radius: 50%;
  background: var(--bg); border: 3px solid var(--gold); box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3);
}
.as-avatar-img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; display: block; }
.as-avatar-ini {
  width: 100%; height: 100%; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-family: "Merriweather", serif; font-weight: 900; font-size: 1.9rem; color: var(--navy);
  background: linear-gradient(135deg, #fce7b6, #f5b025);
}
.as-avatar-edit {
  position: absolute; right: -2px; bottom: -2px; width: 30px; height: 30px; border-radius: 50%;
  background: var(--gold); color: var(--navy); border: 2px solid #fff; cursor: pointer; padding: 0;
  display: inline-flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3); transition: background 0.15s;
}
.as-avatar-edit:hover { background: var(--gold-dark); color: #fff; }
.as-avatar-edit:disabled { opacity: 0.6; cursor: default; }
.as-avatar-edit svg { width: 15px; height: 15px; }
.as-foto-msg { font-size: 0.75rem; color: #cdd8ea; margin: 0.15rem 0 0; }
.as-foto-msg-erro { color: #fecaca; }
.as-foto-remover {
  align-self: flex-start; background: transparent; border: 0; cursor: pointer; font-family: inherit; padding: 0;
  color: #9fb0c9; font-size: 0.74rem; text-decoration: underline;
}
.as-foto-remover:hover { color: #fecaca; }

.as-acoes {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 0.9rem;
}
.as-acao {
  display: flex; align-items: center; gap: 0.75rem; text-align: left; text-decoration: none;
  background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 0.9rem 1rem;
  cursor: pointer; font-family: inherit; color: var(--ink);
  box-shadow: 0 4px 14px rgba(0, 20, 50, 0.05);
  transition: transform 0.08s, box-shadow 0.15s, border-color 0.15s, background 0.15s;
}
.as-acao:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(0, 20, 50, 0.12); border-color: #d9dee7; }
.as-acao:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(245, 176, 37, 0.45); }
.as-acao-ico {
  flex-shrink: 0; width: 42px; height: 42px; border-radius: 11px; display: inline-flex;
  align-items: center; justify-content: center; font-size: 1.3rem; background: #f1f3f7;
}
.as-acao-txt { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.as-acao-txt strong { font-size: 0.94rem; font-weight: 700; color: var(--navy); }
.as-acao-txt small { font-size: 0.76rem; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.as-acao.ativa { border-color: var(--gold); background: #fffaf0; box-shadow: 0 8px 22px rgba(245, 176, 37, 0.22); }
.as-acao.ativa .as-acao-ico { background: var(--gold); color: var(--navy); }

.as-secao-head { margin-bottom: 1rem; }
.as-secao-titulo { font-size: 1.35rem; margin: 0 0 0.15rem; }

.as-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 1.1rem; }
.as-sim-card {
  display: flex; flex-direction: column; gap: 0.6rem; text-align: left; cursor: pointer;
  background: #fff; border: 1px solid var(--line); border-left: 5px solid var(--gold);
  border-radius: 14px; padding: 1.15rem 1.2rem; font-family: inherit;
  box-shadow: 0 5px 18px rgba(0, 20, 50, 0.06);
  transition: transform 0.08s, box-shadow 0.15s, border-color 0.15s;
}
.as-sim-card:hover { transform: translateY(-3px); box-shadow: 0 16px 34px rgba(0, 20, 50, 0.15); }
.as-sim-card:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(245, 176, 37, 0.45); }
.as-sim-card.bloq { border-left-color: #cbd2dd; background: #fafbfc; }
.as-sim-top { display: flex; align-items: center; gap: 0.55rem; }
.as-sim-ico { font-size: 1.35rem; line-height: 1; }
.as-sim-num { font-family: "Merriweather", serif; font-weight: 700; color: var(--navy); font-size: 1.1rem; }
.as-sim-card.bloq .as-sim-num { color: var(--muted); }
.as-sim-status { font-size: 0.84rem; color: var(--muted); }
.as-sim-tipos { display: flex; gap: 0.3rem; min-height: 1.3rem; }
.as-sim-tipo { font-size: 1.05rem; line-height: 1; opacity: 0.9; }
.as-sim-cta {
  display: flex; align-items: center; justify-content: center; gap: 0.4rem;
  margin-top: 0.35rem; padding: 0.72rem 1rem;
  background: var(--gold); color: var(--navy);
  border-radius: 10px; font-weight: 700; font-size: 0.9rem;
  box-shadow: 0 4px 12px rgba(245, 176, 37, 0.32);
  transition: background 0.15s, box-shadow 0.15s;
}
.as-sim-cta span { transition: transform 0.12s; display: inline-block; }
.as-sim-card:hover .as-sim-cta { background: var(--gold-dark); color: #fff; box-shadow: 0 6px 16px rgba(184, 130, 20, 0.34); }
.as-sim-card:hover .as-sim-cta span { transform: translateX(4px); }
.as-sim-card.bloq .as-sim-cta { background: #eef1f5; color: var(--muted); box-shadow: none; }
.as-sim-card.bloq:hover .as-sim-cta { background: #e6eaf0; color: var(--muted); }

.as-voltar {
  display: inline-flex; align-items: center; gap: 0.4rem; margin-bottom: 1rem;
  background: #fff; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; font-family: inherit;
  color: var(--navy); font-weight: 600; font-size: 0.88rem; padding: 0.5rem 0.9rem;
  transition: background 0.15s, border-color 0.15s;
}
.as-voltar:hover { background: #f7f8fb; border-color: var(--gold); }

.as-regiao { min-width: 0; }
.as-painel {
  background: #fff; border: 1px solid var(--line); border-radius: 16px;
  padding: 1.7rem 1.7rem; box-shadow: 0 10px 30px rgba(0, 20, 50, 0.07);
}
.as-painel-head { margin-bottom: 1.3rem; }
.as-painel-turma {
  font-family: "Poppins", sans-serif; font-weight: 600; font-size: 0.76rem;
  text-transform: uppercase; letter-spacing: 0.05em; color: var(--gold-dark); margin: 0 0 0.3rem;
}
.as-painel-titulo { font-size: 1.5rem; margin: 0 0 0.4rem; line-height: 1.25; }
.as-destaque { color: var(--gold-dark); }
.as-painel-vazio { text-align: center; padding: 2.2rem 1rem; }
.as-painel-vazio-ico { font-size: 2.6rem; margin-bottom: 0.4rem; }
.as-painel-vazio h3 { font-size: 1.15rem; margin: 0 0 0.3rem; }
.as-bloco { margin-top: 1.5rem; }
.as-bloco:first-of-type { margin-top: 0; }
.as-bloco-titulo {
  display: flex; align-items: center; justify-content: space-between; font-size: 1.05rem;
  margin: 0 0 0.6rem; padding-bottom: 0.5rem; border-bottom: 2px solid var(--gold);
}
.as-bloco-cont { font-family: "Poppins", sans-serif; font-size: 0.75rem; font-weight: 600; color: var(--muted); }

.as-materiais { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.7rem; }
.as-material {
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding: 0.9rem 1rem; background: #f7f8fb; border: 1px solid var(--line); border-radius: 12px;
}
.as-material-info { display: flex; flex-direction: row; align-items: center; gap: 0.8rem; min-width: 0; }
.as-material-icone { font-size: 1.5rem; line-height: 1; flex-shrink: 0; }
.as-material-texto { display: flex; flex-direction: column; gap: 0.1rem; min-width: 0; }
.as-material-titulo { font-weight: 600; font-size: 0.95rem; color: var(--ink); }
.as-material-sub { font-size: 0.8rem; color: var(--muted); }
.as-material-acao { flex-shrink: 0; }
.as-em-breve { font-size: 0.82rem; }

.as-baixar { display: flex; flex-direction: column; align-items: flex-end; gap: 0.35rem; }
.as-baixar .as-btn { cursor: pointer; text-decoration: none; white-space: nowrap; }
.as-baixar-botoes { display: flex; align-items: center; gap: 0.4rem; }
.as-baixar-aviso {
  margin: 0; max-width: 15rem; text-align: right;
  font-size: 0.76rem; line-height: 1.35; color: var(--err);
}
.as-baixar-aviso a { color: var(--err); text-decoration: underline; }

.as-material-antecipado {
  align-self: flex-start; margin-top: 0.25rem;
  font-size: 0.72rem; font-weight: 600; line-height: 1.3;
  color: var(--gold-dark); background: rgba(245, 176, 37, 0.14);
  border: 1px solid rgba(245, 176, 37, 0.4); border-radius: 999px;
  padding: 0.1rem 0.55rem;
}
.as-nota-admin {
  margin: 0.4rem 0 0; font-size: 0.8rem; color: var(--gold-dark);
  background: rgba(245, 176, 37, 0.12); border-left: 3px solid var(--gold);
  border-radius: 0 8px 8px 0; padding: 0.4rem 0.7rem;
}

.as-avisos-turma { display: grid; gap: 0.7rem; margin: 0 0 1.1rem; }
.as-aviso-turma {
  background: #fff8e6; border: 1px solid rgba(245, 176, 37, 0.45); border-left: 4px solid var(--gold);
  border-radius: 0 10px 10px 0; padding: 0.85rem 1rem; color: var(--ink); font-size: 0.9rem; line-height: 1.5;
}
.as-aviso-turma p { margin: 0 0 0.45rem; }
.as-aviso-turma p:last-child { margin-bottom: 0; }
.as-aviso-turma-titulo { font-weight: 700; color: var(--navy); font-size: 0.98rem; }
.as-aviso-turma ul { margin: 0.2rem 0 0.55rem; padding-left: 1.2rem; }
.as-aviso-turma li { margin: 0.2rem 0; }

.as-footer { background: var(--navy); color: #fff; margin-top: 2.5rem; padding: 1.8rem 1.4rem; }
.as-footer-inner { max-width: 1200px; margin: 0 auto; text-align: center; }
.as-footer-sup { margin: 0 0 0.4rem; font-size: 0.9rem; color: #e5e9f0; }
.as-footer-sup a { color: var(--gold); font-weight: 600; text-decoration: none; }
.as-footer-sup a:hover { text-decoration: underline; }
.as-footer-cop { margin: 0; font-size: 0.8rem; color: #9fb0c9; }

.as-aguardando { text-align: center; padding: 2.6rem 1rem; }
.as-aguardando img { width: 64px; margin: 0 auto 1rem; display: block; }
.as-spinner { width: 42px; height: 42px; margin: 0 auto 1.2rem; border-radius: 50%; border: 4px solid var(--line); border-top-color: var(--gold); animation: as-gira 1s linear infinite; }
@keyframes as-gira { to { transform: rotate(360deg); } }
.as-vazio { padding: 2.4rem 1.9rem; }
.as-vazio h2 { font-size: 1.25rem; margin: 0.4rem 0 0.6rem; }
.as-vazio .as-btn { margin-top: 0.6rem; }

.as-suporte-email { margin-top: 0.5rem; }
.as-suporte-email a { color: var(--gold-dark); font-weight: 600; text-decoration: none; }
.as-suporte-email a:hover { text-decoration: underline; }
.as-suporte-form { display: flex; flex-direction: column; gap: 0.9rem; }
.as-suporte-form-grid { display: grid; grid-template-columns: 1fr; gap: 0.9rem; }
@media (min-width: 620px) { .as-suporte-form-grid { grid-template-columns: 200px 1fr; } }
.as-campo { display: flex; flex-direction: column; gap: 0.3rem; }
.as-campo-lab { font-size: 0.78rem; color: var(--muted); font-weight: 600; margin-left: 0.15rem; }
.as-input-txt, .as-textarea, .as-select {
  width: 100%; padding: 0.7rem 0.85rem; border: 1px solid var(--line); border-radius: 10px;
  font-size: 0.98rem; font-family: inherit; color: var(--ink); background: #fff;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.as-textarea { resize: vertical; min-height: 3.2rem; line-height: 1.5; }
.as-input-txt:focus, .as-textarea:focus, .as-select:focus {
  outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(245, 176, 37, 0.22);
}
.as-input-txt::placeholder, .as-textarea::placeholder { color: #9aa3b2; }
.as-suporte-form-acao { display: flex; align-items: center; gap: 0.9rem; flex-wrap: wrap; }
.as-suporte-msg { font-size: 0.82rem; color: var(--muted); }
.as-suporte-msg-ok { color: var(--green); }
.as-suporte-msg-erro { color: var(--err); }
.as-chamados { display: flex; flex-direction: column; gap: 0.7rem; }
.as-chamados-vazio { padding: 0.6rem 0; }
.as-chamado { background: #f7f8fb; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.as-chamado[open] { background: #fff; box-shadow: 0 6px 18px rgba(0, 20, 50, 0.06); }
.as-chamado-top { display: flex; align-items: center; gap: 0.7rem; padding: 0.85rem 1rem; cursor: pointer; list-style: none; user-select: none; }
.as-chamado-top::-webkit-details-marker { display: none; }
.as-chamado-cat { font-size: 1.25rem; line-height: 1; flex-shrink: 0; }
.as-chamado-main { display: flex; flex-direction: column; gap: 0.15rem; min-width: 0; flex: 1; }
.as-chamado-assunto { font-weight: 600; font-size: 0.95rem; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.as-chamado-meta { font-size: 0.76rem; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.as-chamado-status { flex-shrink: 0; font-size: 0.68rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.03em; padding: 0.2rem 0.55rem; border-radius: 999px; white-space: nowrap; }
.as-st-aberto { background: #fef3c7; color: #92400e; }
.as-st-respondido { background: #dbeafe; color: #1e40af; }
.as-st-resolvido { background: #dcfce7; color: #166534; }
.as-chamado-corpo { padding: 0 1rem 1rem; border-top: 1px solid var(--line); }
.as-thread { display: flex; flex-direction: column; gap: 0.6rem; margin: 0.9rem 0; }
.as-msg { border-radius: 12px; padding: 0.6rem 0.8rem; max-width: 90%; }
.as-msg-aluno { background: #eef1f6; align-self: flex-start; border-bottom-left-radius: 4px; }
.as-msg-suporte { background: #fff7e6; border: 1px solid #f6e2b3; align-self: flex-end; border-bottom-right-radius: 4px; }
.as-msg-autor { font-size: 0.72rem; font-weight: 700; color: var(--gold-dark); margin-bottom: 0.15rem; }
.as-msg-aluno .as-msg-autor { color: var(--blue); }
.as-msg-texto { font-size: 0.9rem; color: var(--ink); white-space: pre-wrap; word-wrap: break-word; }
.as-msg-rodape { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; margin-top: 0.25rem; }
.as-msg-hora { font-size: 0.68rem; color: var(--muted); }
.as-msg-btn-editar { padding: 0.12rem 0.5rem; font-size: 0.7rem; gap: 0.3rem; }
.as-msg-btn-editar .as-ic { width: 13px; height: 13px; }
.as-msg-edicao { margin-top: 0.5rem; display: flex; flex-direction: column; gap: 0.5rem; }
.as-msg-edicao-acao { display: flex; align-items: center; gap: 0.6rem; flex-wrap: wrap; }
.as-campo[hidden], .as-reembolso[hidden] { display: none; }
@media (min-width: 620px) {
  .as-suporte-form-reembolso .as-suporte-form-grid { grid-template-columns: 260px; }
}
.as-reembolso {
  background: #fffaf0; border: 1px solid #f6e2b3; border-left: 4px solid var(--gold);
  border-radius: 12px; padding: 0.95rem 1.1rem;
}
.as-reembolso p { margin: 0 0 0.55rem; font-size: 0.9rem; color: var(--ink); line-height: 1.55; }
.as-reembolso p:last-child { margin-bottom: 0; }
.as-reembolso-titulo { font-weight: 700; display: flex; align-items: center; gap: 0.45rem; }
.as-reembolso-lista { margin: 0 0 0.6rem; padding-left: 1.15rem; display: flex; flex-direction: column; gap: 0.35rem; }
.as-reembolso-lista li { font-size: 0.88rem; color: var(--ink); line-height: 1.5; }
.as-reembolso-nota { font-size: 0.82rem !important; color: var(--muted) !important; display: flex; align-items: flex-start; gap: 0.45rem; }
.as-reembolso-ic { display: inline-flex; flex-shrink: 0; color: var(--gold-dark); }
.as-reembolso-ic .as-ic { width: 18px; height: 18px; }
.as-nota {
  display: flex; align-items: flex-start; gap: 0.5rem; margin: 0 0 0.8rem;
  background: #fffaf0; border: 1px solid #f6e2b3; border-radius: 10px;
  padding: 0.65rem 0.8rem; font-size: 0.84rem; color: var(--ink); line-height: 1.5;
}
.as-nota code { font-size: 0.8em; background: #f2f4f8; border-radius: 4px; padding: 0.05rem 0.3rem; }
.as-reembolso-bloco { margin: 0 0 0.8rem; }
.as-reembolso-bloco .as-nota { margin-bottom: 0; }
.as-reembolso-bloco .as-nota:not(:last-child) {
  border-bottom: 0; border-bottom-left-radius: 0; border-bottom-right-radius: 0;
}
.as-reembolso-acao {
  display: flex; align-items: center; flex-wrap: wrap; gap: 0.45rem;
  background: #fffaf0; border: 1px solid #f6e2b3; border-top: 0;
  border-radius: 0 0 10px 10px; padding: 0.15rem 0.8rem 0.7rem;
}
.as-reembolso-acao .as-acao-reembolso { margin-left: 0; justify-content: flex-start; }
.as-reembolso-acao .as-acao-reembolso .as-mini { display: inline; width: auto; text-align: left; }
.as-reembolso-acao .as-btn-mini { min-height: 40px; padding: 0.5rem 1rem; font-size: 0.84rem; }
.as-reembolso-acao .as-erro { margin: 0; }
.as-resposta { display: flex; flex-direction: column; gap: 0.6rem; margin-top: 0.3rem; }
.as-resposta-acao { display: flex; align-items: center; gap: 0.8rem; flex-wrap: wrap; }
.as-resposta-status { display: flex; align-items: center; gap: 0.4rem; font-size: 0.78rem; color: var(--muted); font-weight: 600; }
.as-resposta-status .as-select { width: auto; padding: 0.4rem 0.6rem; font-size: 0.85rem; }

.as-kpis {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(8.5rem, 1fr));
  gap: 0.7rem;
  margin: 1.2rem 0 0.2rem;
}
.as-kpi {
  background: #f7f8fb;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.8rem 0.9rem;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}
.as-kpi-num { font-family: "Merriweather", Georgia, serif; font-size: 1.5rem; line-height: 1.1; color: var(--navy); }
.as-kpi-lab { font-size: 0.72rem; color: var(--muted); font-weight: 600; }
.as-kpi-ok { background: rgba(34, 197, 94, 0.08); border-color: rgba(34, 197, 94, 0.35); }
.as-kpi-ok .as-kpi-num { color: #15803d; }
.as-kpi-alerta { background: rgba(245, 176, 37, 0.1); border-color: rgba(245, 176, 37, 0.45); }
.as-kpi-alerta .as-kpi-num { color: var(--gold-dark); }
.as-kpi-btn { cursor: pointer; text-align: left; font: inherit; color: inherit; transition: border-color 0.15s, box-shadow 0.15s; }
.as-kpi-btn:hover { border-color: var(--navy); }
.as-kpi-btn:focus-visible { outline: 2px solid var(--navy); outline-offset: 2px; }
.as-kpi-ativo { border-color: var(--navy); box-shadow: 0 0 0 2px rgba(0, 20, 50, 0.16); }

.as-donos { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 1.1rem 0 0; }
.as-dono-aba {
  display: inline-flex; align-items: center; gap: 0.55rem;
  padding: 0.45rem 0.95rem; border: 1px solid var(--line); border-radius: 999px;
  background: #fff; color: var(--ink); font: inherit; font-size: 0.86rem; font-weight: 600;
  cursor: pointer; transition: border-color 0.15s, background 0.15s;
}
.as-dono-aba:hover { border-color: var(--navy); }
.as-dono-aba:focus-visible { outline: 2px solid var(--navy); outline-offset: 2px; }
.as-dono-aba.is-ativa { background: var(--navy); color: #fff; border-color: var(--navy); }
.as-dono-n { font-size: 0.74rem; font-weight: 600; color: var(--muted); white-space: nowrap; }
.as-dono-aba.is-ativa .as-dono-n { color: var(--gold); }
.as-turma-dono { font-size: 0.68rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); white-space: nowrap; }

.as-filtros { display: flex; gap: 0.8rem; margin: 1.1rem 0 0.4rem; flex-wrap: wrap; }
.as-filtro-turma { flex: 1 1 16rem; }
.as-filtros .as-turma-picker { display: flex; flex-direction: column; align-items: stretch; gap: 0.3rem; }
.as-filtros .as-turma-picker-lab { font-size: 0.78rem; font-weight: 600; letter-spacing: 0; text-transform: none; color: var(--muted); margin-left: 0.15rem; }
.as-filtros .as-turma-busca { min-width: 0; width: 100%; }
.as-filtros .as-turma-select, .as-filtros .as-turma-inp {
  width: 100%; color: var(--ink); font-weight: 500; font-size: 0.98rem;
  background-color: #fff; border: 1px solid var(--line); padding: 0.7rem 2rem 0.7rem 0.85rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%234b5563' stroke-width='3'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
}
.as-filtros .as-turma-select:focus, .as-filtros .as-turma-inp:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(245, 176, 37, 0.22); }
.as-filtros .as-turma-lista { max-width: min(40rem, 90vw); box-shadow: 0 14px 34px rgba(0, 20, 50, 0.18); }
.as-filtro-situacao { flex: 1 1 13rem; }
.as-filtro-busca { flex: 1 1 11rem; }

.as-filtro-rapida { flex: 2 1 20rem; position: relative; }
.as-busca-caixa { position: relative; display: flex; align-items: center; }
.as-busca-ic { position: absolute; left: 0.72rem; color: var(--muted); display: flex; pointer-events: none; }
.as-busca-ic .as-ic { width: 18px; height: 18px; }
.as-busca-inp {
  width: 100%; padding: 0.7rem 2.4rem 0.7rem 2.5rem; border: 1px solid var(--line); border-radius: 10px;
  font-size: 0.98rem; font-family: inherit; color: var(--ink); background: #fff;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.as-busca-inp:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(245, 176, 37, 0.22); }
.as-busca-inp::placeholder { color: #9aa3b2; }
.as-busca-x {
  position: absolute; right: 0.45rem; border: 0; background: transparent; cursor: pointer;
  font-size: 1.25rem; line-height: 1; color: var(--muted); padding: 0.2rem 0.35rem; border-radius: 6px;
}
.as-busca-x:hover { background: #eef1f6; color: var(--ink); }
.as-busca-lista {
  position: absolute; top: calc(100% + 0.35rem); left: 0; right: 0; z-index: 30;
  background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 0.35rem;
  box-shadow: 0 14px 34px rgba(0, 20, 50, 0.16); max-height: 21rem; overflow-y: auto;
}
.as-busca-sec {
  margin: 0.35rem 0.55rem 0.2rem; font-size: 0.68rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.05em; color: var(--muted);
}
.as-busca-op {
  display: flex; align-items: center; gap: 0.6rem; width: 100%; text-align: left; cursor: pointer;
  border: 0; background: transparent; font-family: inherit; color: var(--ink);
  padding: 0.5rem 0.55rem; border-radius: 9px;
}
.as-busca-op:hover, .as-busca-op.ativa { background: #f2f5fa; }
.as-busca-op-ic { color: var(--blue); display: flex; flex: 0 0 auto; }
.as-busca-op-ic .as-ic { width: 18px; height: 18px; }
.as-busca-op-txt { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
.as-busca-op-txt strong { font-size: 0.9rem; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.as-busca-op-txt small { font-size: 0.74rem; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.as-busca-op-n { flex: 0 0 auto; font-size: 0.72rem; font-weight: 600; color: var(--muted); white-space: nowrap; }
.as-busca-vazio { margin: 0; padding: 0.5rem 0.55rem; font-size: 0.85rem; color: var(--muted); }

.as-tabela-wrap { overflow-x: auto; }
.as-tabela { width: 100%; border-collapse: collapse; font-size: 0.86rem; }
.as-tabela th {
  text-align: left;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
  font-weight: 700;
  padding: 0.5rem 0.6rem;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
.as-tabela td { padding: 0.65rem 0.6rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.as-tabela tbody tr:hover { background: #f7f8fb; }
.as-aluno-inativo { background: rgba(245, 176, 37, 0.05); }
.as-aluno-nome { display: block; font-weight: 600; color: var(--ink); }
.as-aluno-mail { display: block; font-size: 0.76rem; color: var(--muted); word-break: break-all; }
.as-td-turmas { max-width: 26rem; min-width: 15rem; }
.as-turma-linha { display: flex; align-items: center; justify-content: space-between; gap: 0.6rem; flex-wrap: wrap; padding: 0.22rem 0; }
.as-turma-linha + .as-turma-linha { border-top: 1px dashed var(--line); }
.as-turma-linha > .as-tag { margin: 0; flex: 1 1 10rem; }
.as-acesso-rel { display: block; font-weight: 600; color: var(--ink); white-space: nowrap; }
.as-acesso-abs { display: block; font-size: 0.72rem; color: var(--muted); white-space: nowrap; }
.as-td-situacao .as-mini { display: block; margin-top: 0.15rem; }
.as-tabela-nota { margin-top: 0.8rem; }
.as-paginacao {
  display: flex; align-items: center; justify-content: space-between; gap: 0.8rem; flex-wrap: wrap;
  margin-top: 0.9rem; padding-top: 0.7rem; border-top: 1px solid var(--line);
  font-size: 0.82rem; color: var(--muted);
}
.as-pag-controles { display: inline-flex; align-items: center; gap: 0.5rem; }
.as-pag-pos { font-weight: 600; color: var(--ink); white-space: nowrap; }
.as-pag-tamanho { display: inline-flex; align-items: center; gap: 0.4rem; }
.as-select-mini { width: auto; padding: 0.3rem 0.5rem; font-size: 0.8rem; }
.as-btn-mini { width: auto; padding: 0.32rem 0.7rem; font-size: 0.76rem; border-radius: 8px; }

.as-desempenho-filtro {
  display: flex; align-items: center; gap: 0.6rem; flex-wrap: wrap;
  margin: 0.2rem 0 1.2rem;
}
.as-desempenho-filtro label {
  font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.04em;
  color: var(--muted); font-weight: 700;
}
.as-desempenho-filtro .as-select {
  width: auto; min-width: 15rem; padding: 0.45rem 0.6rem; font-size: 0.88rem;
}
.as-tabela-clicavel tbody tr { cursor: pointer; }
.as-tabela-clicavel tbody tr:focus-visible { outline: 2px solid var(--navy); outline-offset: -2px; }
.as-tabela-clicavel tbody tr.as-linha-ativa { background: rgba(0, 20, 50, 0.06); }
.as-tabela-clicavel tbody tr.as-linha-ativa .as-aluno-nome { color: var(--navy); }
.as-bloco .as-link-btn { margin-bottom: 0.7rem; }

.as-acao-reembolso { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 0.35rem; margin-left: auto; }
.as-acao-reembolso .as-mini { display: block; width: 100%; text-align: right; }
.as-btn-perigo {
  background: #fff;
  color: #b91c1c;
  border: 1px solid rgba(185, 28, 28, 0.45);
}
.as-btn-perigo:hover { background: #fef2f2; color: #991b1b; }
.as-btn-armado { background: #b91c1c; color: #fff; border-color: #b91c1c; }
.as-btn-armado:hover { background: #991b1b; color: #fff; }
.as-btn-fantasma {
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--line);
}
.as-btn-fantasma:hover { background: #f3f4f7; color: var(--ink); }

.as-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  background: #eef1f6;
  color: var(--blue);
  border: 1px solid var(--line);
  margin: 0.1rem 0.1rem 0.1rem 0;
}
.as-tag-ok { background: rgba(34, 197, 94, 0.12); color: #15803d; border-color: rgba(34, 197, 94, 0.35); }
.as-tag-alerta { background: rgba(245, 176, 37, 0.16); color: var(--gold-dark); border-color: rgba(245, 176, 37, 0.45); }
.as-tag-dono { background: var(--navy); color: var(--gold); border-color: var(--navy); }

@media (max-width: 900px) {
  .as-kpis { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .as-tabela { font-size: 0.8rem; }
  .as-tabela th, .as-tabela td { padding: 0.5rem 0.45rem; }
  .as-td-turmas { max-width: 14rem; min-width: 0; }
  .as-tabela-alunos { min-width: 44rem; }
  .as-body { padding: 1.1rem 1rem 2.5rem; }
  .as-header-user { display: none; }
  .as-welcome { flex-direction: row; align-items: center; gap: 1rem; padding: 1.2rem 1.2rem; }
  .as-avatar { width: 62px; height: 62px; }
  .as-avatar-ini { font-size: 1.4rem; }
  .as-avatar-edit { width: 26px; height: 26px; }
  .as-avatar-edit svg { width: 13px; height: 13px; }
  .as-welcome-nome { font-size: 1.2rem; }
  .as-welcome { position: relative; }
  .as-welcome-info .as-turma-picker { display: flex; flex-direction: column; align-items: stretch; gap: 0.3rem; width: 100%; }
  .as-welcome-info .as-turma-busca { position: static; min-width: 0; width: 100%; }
  .as-welcome-info .as-turma-select { width: 100%; }
  .as-welcome-info .as-turma-lista {
    top: auto; left: 0.75rem; right: 0.75rem; margin-top: 0.35rem;
    width: auto; min-width: 0; max-width: none; max-height: min(19rem, 55vh);
  }
  .as-filtros .as-turma-lista { width: 100%; max-width: none; }
  .as-acoes { grid-template-columns: 1fr 1fr; gap: 0.7rem; }
  .as-acao { padding: 0.7rem 0.75rem; gap: 0.6rem; }
  .as-acao-ico { width: 36px; height: 36px; font-size: 1.15rem; }
  .as-acao-txt small { display: none; }
  .as-grid { grid-template-columns: 1fr; gap: 0.85rem; }
  .as-secao-titulo { font-size: 1.2rem; }
  .as-painel { padding: 1.3rem 1.1rem; }
  .as-painel-titulo { font-size: 1.25rem; }
  .as-material { flex-direction: column; align-items: flex-start; }
  .as-material-acao { width: 100%; }
  .as-material-acao .as-btn { width: 100%; }
  .as-baixar { align-items: stretch; }
  .as-baixar-botoes { width: 100%; }
  .as-baixar-botoes .as-btn { flex: 1; }
  .as-baixar-aviso { max-width: 100%; text-align: left; }
  .as-msg { max-width: 100%; }
}
@media (max-width: 380px) {
  .as-acoes { grid-template-columns: 1fr; }
}

.as-ic { width: 22px; height: 22px; display: block; }
.as-acao-ico { color: var(--navy); }
.as-acao.ativa .as-acao-ico { color: var(--navy); }
.as-sim-ico { display: inline-flex; color: var(--gold-dark); }
.as-sim-ico .as-ic { width: 22px; height: 22px; }
.as-sim-card.bloq .as-sim-ico { color: var(--muted); }
.as-sim-tipo { display: inline-flex; color: var(--muted); }
.as-sim-tipo .as-ic { width: 18px; height: 18px; }
.as-material-icone { display: inline-flex; color: var(--gold-dark); }
.as-material-icone .as-ic { width: 24px; height: 24px; }
.as-chamado-cat { display: inline-flex; color: var(--gold-dark); }
.as-chamado-cat .as-ic { width: 22px; height: 22px; }
.as-painel-vazio-ico { color: var(--muted); display: flex; justify-content: center; }
.as-painel-vazio-ico .as-ic { width: 46px; height: 46px; }
.as-titulo-ic { display: inline-flex; color: var(--gold-dark); vertical-align: -0.28em; }
.as-titulo-ic .as-ic { width: 26px; height: 26px; }

.as-corretor { width: 100%; }
.as-corretor-frame {
  display: block; width: 100%; border: 0; background: transparent;
  min-height: 70vh; overflow: hidden;
}

.as-agenda-lista { list-style: none; margin: 0; padding: 0; }
.as-agenda-dia {
  display: flex; gap: 0.9rem; align-items: flex-start;
  padding: 0.65rem 0; border-bottom: 1px solid var(--line);
}
.as-agenda-dia:last-child { border-bottom: 0; }
.as-agenda-data {
  flex: 0 0 auto; min-width: 3.2rem; font-weight: 800; color: var(--navy);
  font-size: 0.9rem; padding-top: 0.1rem;
}
.as-agenda-itens { display: flex; flex-direction: column; gap: 0.25rem; }
.as-agenda-item { font-size: 0.9rem; line-height: 1.45; }
.as-agenda-item::before { content: "•"; color: var(--gold); font-weight: 700; margin-right: 0.45rem; }
@media (max-width: 520px) {
  .as-agenda-dia { gap: 0.6rem; }
  .as-agenda-data { min-width: 2.9rem; font-size: 0.85rem; }
  .as-agenda-item { font-size: 0.86rem; }
}

.as-conexao-dono {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin: 0 0 1rem;
  padding: 0.6rem 0.9rem;
  border-radius: 10px;
  border: 1px solid transparent;
  font-size: 0.86rem;
  line-height: 1.35;
}
.as-conexao-pino {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex: 0 0 auto;
  background: currentColor;
}
.as-conexao-texto { flex: 1 1 14rem; }
.as-conexao-detalhe { display: block; opacity: 0.85; font-weight: 400; }
.as-conexao-ok {
  color: #1b6b3a;
  background: #e8f6ec;
  border-color: #b7e0c4;
}
.as-conexao-erro {
  color: #9b1c1c;
  background: #fdeaea;
  border-color: #f2b8b8;
}
.as-conexao-carregando {
  color: #7a5b00;
  background: #fdf5e0;
  border-color: #ecd9a1;
}
.as-conexao-retry {
  flex: 0 0 auto;
  padding: 0.3rem 0.8rem;
  font-size: 0.8rem;
}

.as-alerta-email { margin: 1.1rem 0 0.4rem; padding: 0.95rem 1.05rem; text-align: left; background: #fffbeb; border: 1px solid #fcd34d; border-left: 4px solid var(--gold); border-radius: 10px; color: #713f12; font-size: 0.92rem; line-height: 1.55; }
.as-alerta-email p { margin: 0; }
.as-alerta-email .as-alerta-email-titulo { font-weight: 700; color: #78350f; margin-bottom: 0.35rem; }
.as-alerta-email strong { color: #78350f; overflow-wrap: anywhere; }
