:root {
  color-scheme: light;
  font-family: "Inter", "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  background: #f6f8fb;
  color: #1f2a37;
}

body {
  margin: 0;
  padding: 24px;
}

.app-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.app-footer {
  margin: 32px 0 8px;
  padding-top: 16px;
  border-top: 1px solid #dbe4f0;
  font-size: 14px;
}

.app-footer a {
  color: #2563eb;
  text-decoration: none;
}

.app-footer a:hover {
  text-decoration: underline;
}

.panel {
  background: #fff;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 24px;
  box-shadow: 0 2px 12px rgba(15, 23, 42, 0.08);
}

.panel h2 {
  margin-top: 0;
}

.form-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}

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

input,
select,
textarea {
  padding: 8px;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  font-size: 14px;
}

button {
  padding: 8px 14px;
  border-radius: 4px;
  border: none;
  cursor: pointer;
}

button.primary {
  background: #2563eb;
  color: #fff;
}

button.secondary {
  background: #e2e8f0;
  color: #1f2a37;
}

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

table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 12px;
}

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

.muted {
  color: #64748b;
}

.warn {
  color: #b91c1c;
  font-weight: 600;
}

.mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 12px;
  word-break: break-all;
}

.modal {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-content {
  background: #fff;
  padding: 24px;
  border-radius: 8px;
  min-width: 320px;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 16px;
}

.auth-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.ts-success {
  background: #d1fae5;
  color: #065f46;
  padding: 10px 14px;
  border-radius: 4px;
  font-size: 14px;
}

.banner {
  padding: 14px 20px;
  border-radius: 8px;
  margin-bottom: 24px;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.banner-loading {
  background: #e0f2fe;
  color: #075985;
}

.banner-error {
  background: #fee2e2;
  color: #991b1b;
}

.banner-retry {
  background: #991b1b;
  color: #fff;
  padding: 6px 12px;
  font-size: 13px;
}

.banner-retry:hover {
  background: #7f1d1d;
}
