:root { color-scheme: light; }
* { box-sizing: border-box; }
body { font-family: Arial, sans-serif; background: #f4f7f6; color: #1f2933; margin: 0; padding: 20px; }
h1 { margin-top: 0; }
h2 { font-size: 1.1rem; margin: 28px 0 10px; }
h3 { font-size: 1rem; margin: 18px 0 6px; }
.muted { color: #6b7280; font-size: 0.9rem; }

.nav { max-width: 900px; margin: 0 auto 16px; display: flex; gap: 16px; }
.nav a { color: #374151; text-decoration: none; padding: 6px 0; border-bottom: 2px solid transparent; }
.nav a.active { color: #007bff; border-color: #007bff; }

.container { max-width: 520px; margin: 0 auto; background: #fff; padding: 20px; border-radius: 8px; box-shadow: 0 4px 10px rgba(0,0,0,0.1); }
.container.wide { max-width: 900px; }

label { font-weight: bold; display: block; margin-top: 15px; }
input, textarea { width: 100%; padding: 10px; margin-top: 5px; border: 1px solid #ccc; border-radius: 4px; font: inherit; }
textarea { resize: vertical; }

button { padding: 12px; background: #007bff; color: white; border: none; border-radius: 4px; cursor: pointer; font-size: 16px; }
button:hover { background: #0056b3; }
button:disabled { background: #9db9d6; cursor: default; }
button.secondary { background: #e5e7eb; color: #1f2933; }
button.secondary:hover { background: #d1d5db; }
button.danger { background: #dc2626; }
button.danger:hover { background: #b91c1c; }
button.link { background: none; color: #007bff; padding: 0; font-size: 0.9rem; text-decoration: underline; }
form > button { margin-top: 20px; width: 100%; }

details.access { margin-top: 12px; padding: 10px 12px; background: #f9fafb; border: 1px solid #e5e7eb; border-radius: 6px; }
details.access summary { cursor: pointer; font-weight: bold; }

#status { margin-top: 15px; font-weight: bold; }
#status.ok { color: #15803d; }
#status.warn { color: #b45309; }
#status.err { color: #b91c1c; }
#status.muted { font-weight: normal; }

pre.summary { white-space: pre-wrap; background: #f9fafb; border: 1px solid #e5e7eb; border-radius: 6px; padding: 12px; font: inherit; margin: 8px 0; }

.toolbar { display: flex; align-items: center; gap: 12px; margin-top: 12px; }
.toolbar button { padding: 8px 14px; font-size: 14px; }

.list { display: flex; flex-direction: column; gap: 8px; }
.row { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; padding: 8px 10px; border: 1px solid #e5e7eb; border-radius: 6px; }
.card { border: 1px solid #e5e7eb; border-radius: 8px; padding: 12px 14px; }
.card-head { display: flex; flex-direction: column; gap: 2px; }
.actions { display: flex; gap: 8px; }
.actions button { padding: 8px 14px; font-size: 14px; }

.pill { display: inline-block; padding: 2px 8px; border-radius: 999px; background: #e5e7eb; font-size: 0.8rem; font-weight: normal; }
.pill.warn { background: #fef3c7; color: #92400e; }
.status-notified, .status-sent { background: #dcfce7; color: #166534; }
.status-draft { background: #dbeafe; color: #1e40af; }
.status-notify_failed, .status-failed, .status-rejected { background: #fee2e2; color: #991b1b; }

.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
th, td { text-align: left; padding: 8px 6px; border-bottom: 1px solid #e5e7eb; white-space: nowrap; }
th { color: #6b7280; font-weight: normal; }
