* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: #f6f7fb;
  color: #1f2937;
}

.container {
  max-width: 1080px;
  margin: 24px auto;
  padding: 0 16px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.prompt {
  margin: 8px 0 12px 0;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid transparent;
  font-size: 14px;
}

.prompt-success {
  background: #ecfdf5;
  border-color: #34d399;
  color: #065f46;
}

.prompt-error {
  background: #fef2f2;
  border-color: #f87171;
  color: #991b1b;
}

h1 {
  margin-bottom: 8px;
}

.muted {
  color: #6b7280;
}

.card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 16px;
  margin-bottom: 16px;
}

label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 14px;
}

input {
  border: 1px solid #d1d5db;
  border-radius: 8px;
  height: 38px;
  padding: 0 10px;
}

button {
  border: 0;
  border-radius: 8px;
  padding: 8px 12px;
  background: #2563eb;
  color: #fff;
  cursor: pointer;
}

button.danger {
  background: #dc2626;
}

form {
  display: flex;
  align-items: end;
  gap: 12px;
  flex-wrap: wrap;
}

.grid-form label {
  min-width: 210px;
}

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

th,
td {
  text-align: left;
  border-bottom: 1px solid #e5e7eb;
  padding: 10px 8px;
  font-size: 14px;
}

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

.actions form {
  margin: 0;
}

.chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.chip {
  border: 1px solid #e5e7eb;
  border-radius: 999px;
  padding: 4px 8px;
  display: flex;
  align-items: center;
  gap: 8px;
  background: #fff;
}

.chip button {
  border-radius: 999px;
  padding: 2px 8px;
  background: #6b7280;
}

.auth-wrap {
  min-height: calc(100vh - 48px);
  display: flex;
  align-items: center;
  justify-content: center;
}

.auth-card {
  max-width: 420px;
  width: 100%;
}

.error {
  color: #b91c1c;
  font-size: 14px;
}

details summary {
  cursor: pointer;
  font-size: 13px;
  color: #2563eb;
  user-select: none;
}

.inline-edit {
  margin-top: 8px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 8px;
  background: #f9fafb;
}

.inline-edit input,
.inline-edit select {
  height: 32px;
  min-width: 130px;
}
