:root {
  --bg: #f4f7f6;
  --surface: #ffffff;
  --line: #e3e9e7;
  --line-strong: #cfd9d5;
  --text: #12211c;
  --muted: #6b7a75;
  --brand: #0e7a5f;
  --brand-strong: #0a5c48;
  --brand-deep: #083d30;
  --brand-soft: #e6f4ef;
  --lime: #a3e635;
  --danger: #dc2626;
  --danger-soft: #fdecec;
  --amber: #b45309;
  --amber-soft: #fef3c7;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(18, 33, 28, 0.06);
  --shadow-md: 0 8px 24px -8px rgba(18, 33, 28, 0.14);
  --shadow-lg: 0 24px 60px -16px rgba(8, 61, 48, 0.25);
  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-tap-highlight-color: transparent; }

body {
  font-family: var(--font);
  color: var(--text);
  background:
    radial-gradient(1100px 520px at 88% -10%, rgba(14, 122, 95, 0.09), transparent 60%),
    radial-gradient(900px 480px at -12% 108%, rgba(163, 230, 53, 0.14), transparent 55%),
    var(--bg);
  min-height: 100vh;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overscroll-behavior-y: none;
}

button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; touch-action: manipulation; user-select: none; -webkit-user-select: none; }
input, select { font-family: inherit; font-size: 1rem; color: var(--text); }
input, textarea { font-size: 16px; }
h1, h2, h3 { line-height: 1.2; letter-spacing: -0.02em; }
svg { flex-shrink: 0; }

::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-thumb { background: var(--line-strong); border-radius: 99px; }
::-webkit-scrollbar-track { background: transparent; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 11px 20px;
  border-radius: var(--radius-sm);
  transition: all 0.18s ease;
  white-space: nowrap;
}
.btn.primario {
  background: linear-gradient(135deg, var(--brand), #12997a);
  color: #fff;
  box-shadow: 0 6px 16px -6px rgba(14, 122, 95, 0.55);
}
.btn.primario:hover { transform: translateY(-1px); box-shadow: 0 10px 22px -6px rgba(14, 122, 95, 0.6); }
.btn.secundario {
  background: var(--brand-soft);
  color: var(--brand-strong);
}
.btn.secundario:hover { background: #d9ede5; }
.btn.fantasma {
  background: transparent;
  color: var(--muted);
  border: 1px solid transparent;
}
.btn.fantasma:hover { background: rgba(18, 33, 28, 0.05); color: var(--text); }
.btn.fantasma.perigo:hover { background: var(--danger-soft); color: var(--danger); }
.btn.perigo {
  background: var(--danger);
  color: #fff;
  box-shadow: 0 6px 16px -6px rgba(220, 38, 38, 0.5);
}
.btn.perigo:hover { transform: translateY(-1px); }
.btn.largo { width: 100%; }
.btn:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 3px solid rgba(14, 122, 95, 0.35);
  outline-offset: 2px;
}

.icone-botao {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 9px;
  color: var(--muted);
  transition: all 0.15s ease;
}
.icone-botao:hover { background: rgba(18, 33, 28, 0.07); color: var(--text); }
.icone-botao.perigo:hover { background: var(--danger-soft); color: var(--danger); }

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.campo { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; text-align: left; }
.campo label { font-size: 0.82rem; font-weight: 700; color: var(--text); letter-spacing: 0.01em; }
.campo label small { color: var(--muted); font-weight: 500; }
.campo input {
  padding: 12px 14px;
  border: 1.5px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: #fbfcfc;
  transition: all 0.15s ease;
}
.campo input::placeholder { color: #a8b5b0; }
.campo input:focus {
  border-color: var(--brand);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(14, 122, 95, 0.12);
  outline: none;
}
.linha-dupla { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.erro-msg {
  display: none;
  align-items: center;
  gap: 8px;
  background: var(--danger-soft);
  color: var(--danger);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  margin-bottom: 14px;
  animation: tremer 0.35s ease;
}
.erro-msg.visivel { display: flex; }

@keyframes tremer {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-5px); }
  75% { transform: translateX(5px); }
}

@keyframes surgir {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes entrarToast {
  from { opacity: 0; transform: translateX(24px) scale(0.96); }
  to { opacity: 1; transform: translateX(0) scale(1); }
}

@keyframes pop {
  from { opacity: 0; transform: translateY(16px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.auth { min-height: 100vh; display: grid; grid-template-columns: 1.05fr 0.95fr; }

.auth-hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(700px 400px at 90% -10%, rgba(163, 230, 53, 0.22), transparent 60%),
    linear-gradient(150deg, var(--brand-deep), var(--brand-strong) 65%, #0d6b54);
  color: #fff;
  padding: clamp(76px, 12vh, 116px) clamp(28px, 5vw, 72px) clamp(56px, 10vh, 92px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 22px;
  min-height: 100vh;
}
.auth-hero .marca { position: absolute; top: clamp(24px, 4vw, 44px); left: clamp(28px, 5vw, 72px); }
.marca { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.15rem; letter-spacing: -0.01em; }
.marca svg { filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.2)); }
.auth-hero h1 { font-size: clamp(1.7rem, 3vw, 2.5rem); font-weight: 800; max-width: 16ch; text-wrap: balance; }
.auth-hero > p { color: rgba(255, 255, 255, 0.78); max-width: 46ch; font-size: 1rem; }

.passos { list-style: none; display: flex; flex-direction: column; gap: 16px; max-width: 42ch; }
.passos li { display: flex; gap: 14px; align-items: flex-start; }
.passo-num {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.9rem;
  color: var(--lime);
}
.passo-texto { display: flex; flex-direction: column; gap: 2px; min-width: 0; padding-top: 2px; }
.passos strong { font-size: 0.95rem; }
.passos .passo-texto span { color: rgba(255, 255, 255, 0.66); font-size: 0.85rem; }

.hero-corte { position: absolute; right: -40px; bottom: -30px; opacity: 0.16; pointer-events: none; }
.hero-corte svg { width: min(420px, 45vw); height: auto; }

.auth-form-area {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 20px;
}
.auth-card { width: 100%; max-width: 430px; padding: 30px 28px 24px; animation: surgir 0.35s ease; }

.tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: #edf2f0;
  border-radius: 12px;
  padding: 5px;
  gap: 4px;
  margin-bottom: 22px;
}
.tab {
  padding: 9px 10px;
  border-radius: 9px;
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--muted);
  transition: all 0.18s ease;
}
.tab.ativo {
  background: #fff;
  color: var(--brand-strong);
  box-shadow: var(--shadow-sm);
}

.aba-panel { animation: surgir 0.25s ease; }
.form-rodape { text-align: center; font-size: 0.83rem; color: var(--muted); margin-top: 4px; }
.form-rodape button { color: var(--brand-strong); font-weight: 700; }
.form-rodape button:hover { text-decoration: underline; }

.aviso-demo {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px dashed var(--line-strong);
  font-size: 0.76rem;
  color: var(--muted);
  text-align: center;
}

.topo {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: max(12px, env(safe-area-inset-top)) clamp(16px, 4vw, 40px) 12px;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(12px) saturate(1.4);
  -webkit-backdrop-filter: blur(12px) saturate(1.4);
  border-bottom: 1px solid var(--line);
}
.marca-nome { display: flex; flex-direction: column; line-height: 1.15; }
.marca-nome small { font-size: 0.68rem; font-weight: 600; color: var(--muted); letter-spacing: 0.03em; }
.topo-acoes { display: flex; align-items: center; gap: 10px; }

.chip-usuario {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 5px 14px 5px 5px;
  border: 1px solid var(--line);
  border-radius: 99px;
  background: #fff;
}
.avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand), #15997a);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  letter-spacing: 0.02em;
}
.chip-info { display: flex; flex-direction: column; line-height: 1.15; }
.chip-info strong { font-size: 0.84rem; }
.chip-info small { font-size: 0.7rem; color: var(--muted); }

.conteudo {
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(18px, 3.5vw, 34px) clamp(16px, 4vw, 40px) 60px;
  animation: surgir 0.3s ease;
}

.rodape {
  text-align: center;
  font-size: 0.75rem;
  color: var(--muted);
  padding: 0 16px calc(26px + env(safe-area-inset-bottom));
}

.banner {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  padding: clamp(22px, 3.5vw, 34px) clamp(20px, 3.5vw, 38px);
  background:
    radial-gradient(600px 300px at 92% 0%, rgba(163, 230, 53, 0.28), transparent 55%),
    linear-gradient(135deg, var(--brand-deep), var(--brand-strong) 60%, #10997a);
  color: #fff;
  box-shadow: var(--shadow-lg);
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.banner-texto h2 { font-size: clamp(1.3rem, 2.6vw, 1.8rem); font-weight: 800; }
.banner-texto p { color: rgba(255, 255, 255, 0.75); font-size: 0.92rem; margin-top: 4px; }
.banner-meta { list-style: none; display: flex; gap: 10px; flex-wrap: wrap; }
.banner-meta li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.13);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 8px 14px;
  border-radius: 99px;
  backdrop-filter: blur(4px);
}
.banner-corte { position: absolute; right: -30px; bottom: -46px; opacity: 0.14; pointer-events: none; }
.banner-corte svg { width: 260px; height: auto; }

.painel-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 22px;
  align-items: start;
}
.coluna-agenda { display: flex; flex-direction: column; gap: 22px; min-width: 0; }
.coluna-lateral { display: flex; flex-direction: column; gap: 22px; position: sticky; top: 84px; }

.card { padding: 20px; }
.bloco-titulo { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; color: var(--brand-strong); }
.bloco-titulo h3 { font-size: 1rem; font-weight: 800; color: var(--text); }
.bloco-titulo.entre { justify-content: space-between; }
.data-longa { font-size: 0.8rem; font-weight: 600; color: var(--muted); text-transform: capitalize; }

.linha-dias {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 8px;
  scrollbar-width: thin;
}
.chip-dia {
  min-width: 62px;
  padding: 10px 6px 8px;
  border-radius: 12px;
  border: 1.5px solid var(--line);
  background: #fbfcfc;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  transition: all 0.16s ease;
  position: relative;
}
.chip-dia:hover { border-color: var(--brand); transform: translateY(-2px); }
.cd-sem { font-size: 0.64rem; font-weight: 800; letter-spacing: 0.08em; color: var(--muted); }
.cd-num { font-size: 1.05rem; font-weight: 800; }
.cd-ponto { width: 4px; height: 4px; border-radius: 50%; background: var(--lime); opacity: 0; }
.chip-dia.hoje .cd-ponto { opacity: 1; }
.chip-dia.ativo {
  background: linear-gradient(150deg, var(--brand), #12997a);
  border-color: transparent;
  box-shadow: 0 8px 18px -6px rgba(14, 122, 95, 0.55);
}
.chip-dia.ativo .cd-sem, .chip-dia.ativo .cd-num { color: #fff; }

.grade-slots {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(158px, 1fr));
  gap: 10px;
}
.slot {
  border: 1.5px solid var(--line);
  border-radius: 12px;
  padding: 10px 12px;
  text-align: left;
  background: #fbfcfc;
  display: flex;
  flex-direction: column;
  gap: 2px;
  transition: all 0.15s ease;
}
.slot strong { font-size: 0.98rem; font-weight: 800; }
.slot span { font-size: 0.72rem; font-weight: 600; color: var(--muted); }
.slot.livre:hover { border-color: var(--brand); background: var(--brand-soft); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.slot.livre:hover span { color: var(--brand-strong); }
.slot.livre { border-style: dashed; }
.slot.ocupado { background: var(--danger-soft); border-color: #f6caca; cursor: not-allowed; }
.slot.ocupado span { color: var(--danger); }
.slot.meu { background: var(--brand-soft); border-color: #bfe3d6; cursor: default; }
.slot.meu span { color: var(--brand-strong); }
.slot.passado { opacity: 0.45; cursor: not-allowed; background: #f0f3f2; }
.slot:disabled { pointer-events: none; }

.aviso-limite {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  background: var(--amber-soft);
  color: var(--amber);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
}

.legenda { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 16px; padding-top: 14px; border-top: 1px dashed var(--line); }
.legenda li { list-style: none; display: inline-flex; align-items: center; gap: 7px; font-size: 0.74rem; font-weight: 600; color: var(--muted); }
.dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.dot.livre { background: #fbfcfc; border: 1.5px dashed var(--line-strong); }
.dot.ocupada { background: #fecaca; }
.dot.minha { background: #a7ddc9; }

.lista-reservas { display: flex; flex-direction: column; gap: 10px; }
.item-reserva {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fbfcfc;
}
.item-reserva.passada { opacity: 0.55; }
.ir-quando { display: flex; flex-direction: column; gap: 3px; }
.ir-quando strong { font-size: 0.86rem; text-transform: capitalize; }
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 99px;
  width: fit-content;
}
.badge.verde { background: var(--brand-soft); color: var(--brand-strong); }
.badge.vermelho { background: var(--danger-soft); color: var(--danger); }
.badge.cinza { background: #eef1f0; color: var(--muted); }
.badge.ambar { background: var(--amber-soft); color: var(--amber); }
.badge.neutro { background: rgba(14, 122, 95, 0.12); color: var(--brand-strong); }

.vazio {
  text-align: center;
  color: var(--muted);
  padding: 26px 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
}
.vazio svg { opacity: 0.35; }

.regras ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.regras li { display: flex; gap: 10px; font-size: 0.83rem; color: var(--muted); align-items: flex-start; }
.regras li svg { color: var(--brand); margin-top: 2px; }

.admin-cabecalho { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-bottom: 22px; }
.admin-cabecalho h2 { font-size: 1.4rem; font-weight: 800; }
.admin-acoes { display: flex; gap: 10px; flex-wrap: wrap; }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 22px; }
.stat { padding: 16px; display: flex; flex-direction: column; gap: 2px; }
.stat-icone {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
}
.stat-icone.i1 { background: var(--brand-soft); color: var(--brand-strong); }
.stat-icone.i2 { background: #ecfccb; color: #4d7c0f; }
.stat-icone.i3 { background: #e0f2fe; color: #0369a1; }
.stat-icone.i4 { background: var(--amber-soft); color: var(--amber); }
.stat strong { font-size: 1.5rem; font-weight: 800; letter-spacing: -0.02em; }
.stat small { font-size: 0.76rem; color: var(--muted); font-weight: 600; }

.tabela-card { padding: 6px 6px 2px; overflow-x: auto; }
.tabela-card table { width: 100%; border-collapse: collapse; min-width: 720px; }
.tabela-card th {
  text-align: left;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
}
.tabela-card td { padding: 13px 16px; border-bottom: 1px solid var(--line); font-size: 0.87rem; }
.tabela-card tbody tr:last-child td { border-bottom: none; }
.tabela-card tbody tr { transition: background 0.12s ease; }
.tabela-card tbody tr:hover { background: #fafcfb; }
.td-acao { text-align: right; }
.tabela-vazia td { text-align: center; color: var(--muted); padding: 40px; }

.config-card { padding: 22px; margin-bottom: 22px; }
.config-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; }
.config-grid .campo { margin-bottom: 0; }
.config-grid .campo select,
.campo select {
  padding: 12px 14px;
  border: 1.5px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: #fbfcfc;
  width: 100%;
  transition: all 0.15s ease;
}
.config-grid .campo select:focus,
.campo select:focus { border-color: var(--brand); background: #fff; box-shadow: 0 0 0 4px rgba(14,122,95,.12); outline: none; }
.linha-dias-liberados { display: flex; flex-wrap: wrap; gap: 8px; }
.check-dia {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 8px 12px;
  border: 1.5px solid var(--line);
  border-radius: 99px;
  background: #fbfcfc;
  cursor: pointer;
  user-select: none;
  transition: all 0.15s ease;
}
.check-dia:has(input:checked) { background: var(--brand-soft); border-color: var(--brand); color: var(--brand-strong); }
.check-dia input { accent-color: var(--brand); }
.config-acoes { display: flex; justify-content: flex-end; gap: 10px; margin-top: 18px; flex-wrap: wrap; }
.config-nota { font-size: 0.75rem; color: var(--muted); margin-top: 12px; text-align: right; }
.chip-dia.fechado { opacity: 0.42; background: #eef1f0; cursor: not-allowed; }
.chip-dia.fechado:hover { transform: none; border-color: var(--line); }

.modal-fundo {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(8, 30, 24, 0.5);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: surgir 0.2s ease;
}
.modal {
  width: 100%;
  max-width: 450px;
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  background: #fff;
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
  padding: 24px;
  animation: pop 0.28s cubic-bezier(0.2, 0.9, 0.3, 1.2);
}
.modal-topo { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.modal-topo h3 { font-size: 1.1rem; font-weight: 800; }
.modal-corpo { font-size: 0.9rem; color: var(--muted); }
.modal-acoes { display: flex; justify-content: flex-end; gap: 10px; margin-top: 22px; }

.conf-resumo {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--brand-soft);
  border-radius: 14px;
  padding: 16px;
  margin-bottom: 14px;
}
.conf-hora {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--brand-strong);
  background: #fff;
  border-radius: 12px;
  padding: 10px 14px;
  box-shadow: var(--shadow-sm);
}
.conf-dados { display: flex; flex-direction: column; gap: 2px; color: var(--text); }
.conf-dados strong { text-transform: capitalize; font-size: 0.92rem; }
.conf-dados span { font-size: 0.8rem; color: var(--muted); }
.conf-nota { font-size: 0.78rem; }

#toast-root {
  position: fixed;
  bottom: calc(22px + env(safe-area-inset-bottom));
  right: calc(16px + env(safe-area-inset-right));
  z-index: 200;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.toast {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #101f19;
  color: #fff;
  font-size: 0.86rem;
  font-weight: 600;
  padding: 13px 18px;
  border-radius: 13px;
  box-shadow: var(--shadow-lg);
  animation: entrarToast 0.3s cubic-bezier(0.2, 0.9, 0.3, 1.15);
  max-width: 340px;
}
.toast .dot { width: 9px; height: 9px; }
.toast.ok .dot { background: var(--lime); }
.toast.erro .dot { background: #f87171; }
.toast.info .dot { background: #93c5fd; }
.toast.saindo { transition: all 0.3s ease; opacity: 0; transform: translateX(24px); }

@media (max-width: 1024px) {
  .painel-grid { grid-template-columns: 1fr; }
  .coluna-lateral { position: static; }
  .stats { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .auth { grid-template-columns: 1fr; min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
  .auth-hero { display: none; }
  .auth-form-area { flex: 1; display: flex; align-items: center; justify-content: center; margin-top: 0; padding: 24px 16px 32px; background: var(--bg); }
  .auth-card { box-shadow: var(--shadow-lg); margin: 0 auto; }
}

@media (max-width: 700px) {
  .admin-cabecalho { flex-direction: column; align-items: stretch; }
  .admin-cabecalho h2 { text-align: center; }
  .admin-acoes .btn { flex: 1; }
  .banner-corte { display: none; }
  .topo { flex-wrap: wrap; }
  .topo-acoes { margin-left: auto; }
}

@media (max-width: 520px) {
  .marca-nome small { display: none; }
  .chip-usuario { padding: 4px 10px 4px 4px; gap: 8px; }
  .avatar { width: 30px; height: 30px; font-size: 0.7rem; }
  .btn-admin-rotulo { display: none; }
  #btn-admin { padding: 11px 12px; }
  .stats { gap: 10px; }
  .stat { padding: 13px; }
  .stat strong { font-size: 1.25rem; }
  .conteudo { padding-bottom: 44px; }
}

@media (max-width: 400px) {
  .grade-slots { grid-template-columns: 1fr 1fr; }
  .banner { padding: 20px; }
  .banner-meta li { font-size: 0.72rem; padding: 7px 11px; }
  .card { padding: 16px; }
}

@media (max-width: 600px) {
  .grade-slots { grid-template-columns: repeat(auto-fill, minmax(128px, 1fr)); }
  .chip-info small { display: none; }
  .banner { flex-direction: column; align-items: flex-start; }
  .linha-dupla { grid-template-columns: 1fr; }
  .config-grid { grid-template-columns: 1fr; }
  .config-acoes { flex-direction: column-reverse; }
  .config-acoes .btn { width: 100%; }
  .modal-acoes { flex-direction: column-reverse; }
  .modal-acoes .btn { width: 100%; }
  .topo-acoes { gap: 6px; }
}
