.manager-shell {
  font-family: system-ui, -apple-system, sans-serif;
  margin: 0;
  background: #f8fafc;
  color: #0f172a;
}

@media (prefers-color-scheme: dark) {
  .manager-shell {
    background: #0f172a;
    color: #e2e8f0;
  }

  .manager-header,
  .card,
  .table-wrap {
    background: #1e293b !important;
    border-color: #334155 !important;
  }

  .table th,
  .table td {
    border-color: #334155 !important;
  }
}

.manager-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem 1.5rem;
  background: #fff;
  border-bottom: 1px solid #e2e8f0;
}

.manager-header__brand a {
  font-weight: 700;
  color: inherit;
  text-decoration: none;
}

.manager-header__nav {
  display: flex;
  gap: 1rem;
}

.manager-header__nav a {
  color: inherit;
  text-decoration: none;
}

.manager-header__user {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.manager-main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1.5rem;
}

.card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 0.75rem;
  padding: 1rem 1.25rem;
  margin-bottom: 1rem;
}

.grid-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1rem;
}

.stat-value {
  font-size: 1.75rem;
  font-weight: 700;
}

.table-wrap {
  overflow-x: auto;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 0.75rem;
}

.table {
  width: 100%;
  border-collapse: collapse;
}

.table th,
.table td {
  text-align: left;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid #e2e8f0;
}

.badge {
  display: inline-block;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
}

.badge-online {
  background: #dcfce7;
  color: #166534;
}

.badge-offline {
  background: #fee2e2;
  color: #991b1b;
}

.btn {
  display: inline-block;
  padding: 0.5rem 0.875rem;
  border-radius: 0.5rem;
  border: 1px solid #cbd5e1;
  background: #fff;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}

.btn-primary {
  background: #2563eb;
  border-color: #2563eb;
  color: #fff;
}

.btn-ghost {
  background: transparent;
}

.flash {
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  margin-bottom: 1rem;
}

.flash-notice {
  background: #ecfdf5;
  color: #065f46;
}

.flash-alert {
  background: #fef2f2;
  color: #991b1b;
}

.form-field {
  margin-bottom: 1rem;
}

.form-field label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.form-field input,
.form-field textarea {
  width: 100%;
  max-width: 32rem;
  padding: 0.5rem 0.75rem;
  border: 1px solid #cbd5e1;
  border-radius: 0.5rem;
}

.actions {
  display: flex;
  gap: 0.75rem;
  margin-top: 1rem;
}

.login-panel {
  max-width: 28rem;
  margin: 4rem auto;
}

.login-panel h1 {
  margin-top: 0;
}
