/* Admin profissionais — estático, sem secrets embutidos */

:root {
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  padding: 24px;
  font-family: system-ui, -apple-system, 'Segoe UI', sans-serif;
  background: #f1f5f9;
  color: #0f172a;
}

.shell {
  width: 100%;
  max-width: 56rem;
  margin: 0 auto;
}

.header {
  margin-bottom: 16px;
}

.brand {
  margin: 0 0 4px;
  color: #1d4ed8;
  font-weight: 700;
}

h1 {
  margin: 0 0 6px;
  font-size: 1.6rem;
  letter-spacing: -0.02em;
}

h2,
h3 {
  margin: 0 0 10px;
}

.muted {
  color: #64748b;
  font-size: 0.95rem;
  margin: 0 0 12px;
}

.body-text {
  color: #334155;
  line-height: 1.5;
}

.card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 18px;
  margin-bottom: 16px;
  max-width: 28rem;
}

.card.wide {
  max-width: none;
}

label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  margin: 10px 0;
}

label.inline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
}

input,
select,
textarea {
  display: block;
  width: 100%;
  margin-top: 6px;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  padding: 10px 12px;
  font: inherit;
}

label.inline select {
  width: auto;
  margin-top: 0;
}

.primary,
.secondary,
.danger {
  border: 0;
  border-radius: 999px;
  padding: 10px 16px;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  margin: 6px 6px 6px 0;
}

.primary {
  background: #1d4ed8;
  color: #fff;
}

.secondary {
  background: #e2e8f0;
  color: #0f172a;
}

.danger {
  background: #b91c1c;
  color: #fff;
}

.error {
  color: #b91c1c;
  background: #fef2f2;
  border-radius: 12px;
  padding: 10px 12px;
}

.flash {
  color: #166534;
  background: #f0fdf4;
  border-radius: 12px;
  padding: 10px 12px;
}

.toolbar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.toolbar-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.list {
  display: grid;
  gap: 12px;
}

.app-card {
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 16px;
  background: #f8fafc;
}

.app-card h3 {
  margin: 0 0 4px;
  font-size: 1.1rem;
}

.card-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 10px;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
  gap: 4px 12px;
  margin-bottom: 8px;
}

.meta {
  font-size: 0.85rem;
  color: #64748b;
  margin: 2px 0;
}

.meta-label {
  color: #475569;
  font-weight: 700;
}

.meta.reason {
  color: #9a3412;
  background: #fff7ed;
  border-radius: 10px;
  padding: 8px 10px;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 0.78rem;
  font-weight: 700;
  white-space: nowrap;
}

.tone-pending {
  background: #fef3c7;
  color: #92400e;
}

.tone-ok {
  background: #dcfce7;
  color: #166534;
}

.tone-danger {
  background: #fee2e2;
  color: #991b1b;
}

.tone-warn {
  background: #ffedd5;
  color: #9a3412;
}

.tone-muted {
  background: #e2e8f0;
  color: #334155;
}

.actions {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.actions .primary {
  background: #1d4ed8;
  color: #fff;
}

.history {
  margin-top: 18px;
  border-top: 1px solid #e2e8f0;
  padding-top: 14px;
}

.history-item {
  font-size: 0.9rem;
  padding: 8px 0;
  border-bottom: 1px solid #f1f5f9;
}

code {
  font-size: 0.85em;
}

a {
  color: #1d4ed8;
  text-decoration: underline;
}

button:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}
