.painel-body { background: #eef2f7; }
.auth-overlay {
  position: fixed; inset: 0; display: grid; place-items: center;
  background: linear-gradient(180deg, #e8eef8 0%, #f7fafc 100%);
  z-index: 40; padding: 1rem;
}
.auth-card {
  width: min(420px, 100%);
  background: #fff;
  border: 1px solid #d7e0ea;
  border-radius: 20px;
  padding: 2rem 1.5rem;
  text-align: center;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.08);
}
.auth-mark {
  width: 72px; height: 72px; margin: 0 auto 0.8rem;
  border-radius: 18px; display: grid; place-items: center;
  background: linear-gradient(145deg, #0b3a6e, #0f766e);
  color: #fff; font-weight: 800; letter-spacing: 0.04em;
}
.auth-card h1 { margin: 0.2rem 0; color: #0b3a6e; }
.auth-card p { color: #5b6b7c; }
.google-btn { min-height: 44px; display: grid; place-items: center; margin-top: 1rem; }
.auth-note { min-height: 1.2em; color: #b42318; font-size: 0.92rem; }

.app-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 260px 1fr;
}
aside {
  background: #0f2744;
  color: #e8eef8;
  padding: 1.2rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.side-user { display: flex; gap: 0.7rem; align-items: center; }
.side-user img { width: 42px; height: 42px; border-radius: 999px; object-fit: cover; }
.side-user b { display: block; }
.side-user small, .side-user span { display: block; color: #9db0c7; font-size: 0.8rem; word-break: break-all; }
aside nav { display: grid; gap: 0.4rem; }
aside nav button, .side-actions button, .ghost {
  border: 0; border-radius: 10px; padding: 0.7rem 0.85rem;
  background: transparent; color: inherit; text-align: left; cursor: pointer; font: inherit;
}
aside nav button.active, aside nav button:hover { background: rgba(255,255,255,0.08); }
.side-actions { margin-top: auto; display: grid; gap: 0.4rem; }
.side-actions a { color: #9ed0ff; text-decoration: none; font-size: 0.9rem; }
.side-actions button { background: rgba(255,255,255,0.08); }

main { padding: 1.2rem 1.4rem 2rem; }
.painel-header { margin-bottom: 1rem; }
.view { display: none; }
.view.active { display: block; }
.toolbar { display: flex; gap: 0.7rem; margin-bottom: 0.8rem; }
.toolbar input {
  flex: 1; border: 1px solid #d5deea; border-radius: 10px; padding: 0.7rem 0.85rem; background: #fff;
}
.ghost { background: #fff !important; color: #0f2744 !important; border: 1px solid #d5deea !important; }
.table-wrap {
  background: #fff; border: 1px solid #d5deea; border-radius: 14px; overflow: auto;
}
table { width: 100%; border-collapse: collapse; }
th, td { padding: 0.75rem 0.85rem; border-bottom: 1px solid #e7eef6; text-align: left; font-size: 0.92rem; }
th { color: #5b6b7c; font-weight: 700; background: #f8fbff; }
td button.link {
  background: none; border: 0; color: #0f766e; font-weight: 700; cursor: pointer; padding: 0;
}
.detail-wrap { margin: 1rem 0 0; width: 100%; }
.meta { color: #5b6b7c; font-size: 0.85rem; }
.invite-form {
  display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 0.7rem; margin: 1rem 0;
}
.invite-form button { align-self: end; }
.badge {
  display: inline-block;
  min-width: 1.2rem;
  padding: 0.1rem 0.4rem;
  border-radius: 999px;
  background: #f04438;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  margin-left: 0.25rem;
}
dialog {
  border: 1px solid #d5deea;
  border-radius: 16px;
  padding: 0;
  width: min(860px, calc(100% - 2rem));
  max-height: 85vh;
}
dialog::backdrop { background: rgba(15, 39, 68, 0.45); }
.diff-box { padding: 1.2rem; }
.diff-box menu {
  display: flex; justify-content: flex-end; gap: 0.5rem; margin: 1rem 0 0; padding: 0;
}
.diff-changed td { background: #fff7e8; }
.diff-changed td:last-child { background: #e8f8f1; font-weight: 600; }
.diff-same td { color: #7a8796; }
@media (max-width: 960px) {
  .app-shell { grid-template-columns: 1fr; }
  aside { position: sticky; top: 0; z-index: 5; }
  .invite-form { grid-template-columns: 1fr; }
}
