body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #f6f7fb;
  color: #1c2333;
}

.layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  min-height: 100vh;
}

.sidebar {
  background: #162032;
  color: white;
  padding: 24px 20px;
}

.sidebar a {
  color: #d8e3ff;
  text-decoration: none;
  display: block;
  margin: 10px 0;
}

.content {
  padding: 32px;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
}

.card,
.table-card,
.panel {
  background: white;
  border-radius: 14px;
  padding: 20px;
  box-shadow: 0 10px 30px rgba(22, 32, 50, 0.08);
}

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

th,
td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid #e8ecf5;
  vertical-align: top;
}

.actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

input,
button {
  font: inherit;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid #ccd5e4;
}

button {
  cursor: pointer;
  background: #2344d2;
  color: white;
  border: none;
}

button.secondary {
  background: #eef2fb;
  color: #1c2333;
}

.danger {
  background: #b63232;
}

.login-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.login-card {
  width: min(420px, 100%);
  background: white;
  border-radius: 18px;
  padding: 28px;
  box-shadow: 0 24px 60px rgba(22, 32, 50, 0.12);
}

.muted {
  color: #68758d;
}

.stack {
  display: grid;
  gap: 16px;
}

.inline-form {
  display: inline-flex;
  gap: 8px;
  align-items: center;
}

pre {
  margin: 0;
  white-space: pre-wrap;
  word-break: break-word;
}
