/* ═══════════════════════════════════════════════════════
   app.css — email-webhook application styles
   Replaces pico.blue.min.css + theme.css for all app pages
   ═══════════════════════════════════════════════════════ */

/* ── 1. DESIGN TOKENS ──────────────────────────────────── */
:root {
  --bg: #0a0a0b;
  --bg-elev: #111113;
  --bg-card: #131316;
  --bg-hover: #18181c;
  --border: #1f1f23;
  --border-bright: #2a2a30;
  --text: #e8e8ea;
  --text-dim: #8a8a92;
  --text-faint: #55555c;
  --accent: #7dd87d;
  --accent-glow: rgba(125, 216, 125, 0.15);
  --amber: #f0b36a;
  --magenta: #e56ab5;
  --blue: #6fb3ff;
  --danger: #e56b6b;
  --display: "Fraunces", serif;
  --body: "Inter", sans-serif;
  --mono: "JetBrains Mono", monospace;
  --radius: 8px;
  --topbar-h: 64px;
}

[data-theme="light"] {
  --bg: #fafaf9;
  --bg-elev: #ffffff;
  --bg-card: #ffffff;
  --bg-hover: #f4f4f2;
  --border: #e7e7e3;
  --border-bright: #d4d4ce;
  --text: #18181b;
  --text-dim: #6b6b75;
  --text-faint: #9a9aa3;
  --accent: #2c8c2c;
  --accent-glow: rgba(44, 140, 44, 0.08);
  --danger: #c93d3d;
  --amber: #c87e2a;
  --blue: #1a6bbf;
}

/* ── 2. BASE RESET ─────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

img { max-width: 100%; display: block; }

/* ── 3. TYPOGRAPHY ─────────────────────────────────────── */
h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--text);
}

h1 { font-size: 40px; margin-bottom: 16px; }
h2 { font-size: 28px; margin-bottom: 12px; }
h3 { font-size: 20px; margin-bottom: 10px; }
h4 { font-size: 16px; margin-bottom: 8px; }

h1 em, h2 em { font-style: italic; color: var(--accent); }

p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

code, kbd {
  font-family: var(--mono);
  font-size: 0.88em;
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 2px 6px;
  border-radius: 4px;
  color: var(--accent);
}

pre {
  font-family: var(--mono);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  overflow-x: auto;
  font-size: 13px;
  line-height: 1.6;
  margin-bottom: 1rem;
}

pre code { background: none; border: none; padding: 0; font-size: inherit; color: inherit; }

small { font-size: 12px; color: var(--text-dim); display: block; margin-top: 4px; }

hr { border: none; border-top: 1px solid var(--border); margin: 24px 0; }

ul, ol { padding-left: 20px; margin-bottom: 1rem; }
li { margin-bottom: 4px; }

/* ── 4. APP SHELL ──────────────────────────────────────── */
nav.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(20px);
  background: rgba(10, 10, 11, 0.8);
  border-bottom: 1px solid var(--border);
  height: var(--topbar-h);
}

[data-theme="light"] nav.topbar { background: rgba(250, 250, 249, 0.85); }

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  height: 100%;
}

.logo {
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
}

.logo:hover { text-decoration: none; color: var(--text); }

.logo-mark {
  width: 4em;
  height: auto;
  flex-shrink: 0;
}

[data-theme="dark"] .logo-mark--light { display: none; }
[data-theme="light"] .logo-mark--dark { display: none; }

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

.theme-toggle {
  background: var(--bg-elev);
  border: 1px solid var(--border-bright);
  border-radius: 6px;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  cursor: pointer;
  color: var(--text-dim);
  font-size: 14px;
  transition: all 0.2s;
  font-family: var(--mono);
  padding: 0;
  flex-shrink: 0;
}

.theme-toggle:hover {
  color: var(--text);
  border-color: var(--text-dim);
  background: var(--bg-elev);
  transform: none;
  box-shadow: none;
}

.signout-btn {
  font-family: var(--mono);
  font-size: 12px;
  padding: 7px 14px;
  border: 1px solid var(--border-bright);
  border-radius: 6px;
  color: var(--text-dim);
  background: var(--bg-elev);
  transition: all 0.2s;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transform: none;
  box-shadow: none;
}

.signout-btn:hover {
  border-color: var(--danger);
  color: var(--danger);
  text-decoration: none;
  transform: none;
  box-shadow: none;
}

.app {
  display: grid;
  grid-template-columns: 240px 1fr;
  flex: 1;
  position: relative;
  z-index: 2;
}

footer {
  border-top: 1px solid var(--border);
  padding: 28px 32px;
  position: relative;
  z-index: 2;
  margin-top: auto;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-faint);
}

.footer-inner a { color: var(--text-dim); }
.footer-inner a:hover { color: var(--accent); text-decoration: none; }
.footer-links { display: flex; gap: 24px; }

/* ── 5. SIDEBAR ────────────────────────────────────────── */
.app > aside {
  border-right: 1px solid var(--border);
  padding: 28px 16px;
  background: var(--bg);
  position: sticky;
  top: var(--topbar-h);
  height: calc(100vh - var(--topbar-h));
  overflow-y: auto;
}

.nav-section { margin-bottom: 28px; }

.nav-label {
  font-family: var(--mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--text-faint);
  padding: 0 12px;
  margin-bottom: 10px;
}

.nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 0;
  margin: 0;
}

.nav-list a {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 12px;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--text-dim);
  border-radius: 6px;
  transition: all 0.15s;
  text-decoration: none;
}

.nav-icon { display: flex; align-items: center; flex-shrink: 0; opacity: 0.5; transition: opacity 0.15s; }

.nav-list a:hover { background: var(--bg-elev); color: var(--text); text-decoration: none; }
.nav-list a:hover .nav-icon { opacity: 0.8; }

.nav-list a.active {
  background: var(--bg-elev);
  color: var(--accent);
  border: 1px solid var(--border);
}
.nav-list a.active .nav-icon { opacity: 1; }

.sidebar-footer {
  position: absolute;
  bottom: 24px;
  left: 16px;
  right: 16px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-faint);
  line-height: 1.7;
}

.sidebar-status { display: flex; align-items: center; gap: 8px; }

.status-dot {
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--accent);
  animation: pulse 2s infinite;
  flex-shrink: 0;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* ── 6. MAIN CONTENT ───────────────────────────────────── */
.app > main {
  padding: 48px 56px 80px;
  max-width: 1100px;
  width: 100%;
  position: relative;
  z-index: 2;
}

.page-header { margin-bottom: 48px; }

.page-label {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  margin-bottom: 16px;
}

.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 24px;
  gap: 24px;
}

.section-header-left { flex: 1; }

.section-label {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  margin-bottom: 12px;
}

/* ── 7. FORMS ──────────────────────────────────────────── */
label {
  display: block;
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-dim);
  margin-bottom: 16px;
}

label > input,
label > select,
label > textarea {
  margin-top: 6px;
  text-transform: none;
  letter-spacing: 0;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="url"],
input[type="number"],
input[type="search"],
select,
textarea {
  display: block;
  width: 100%;
  padding: 10px 14px;
  background: var(--bg);
  border: 1px solid var(--border-bright);
  border-radius: var(--radius);
  color: var(--text);
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.5;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

input[readonly] { opacity: 0.6; cursor: default; }

input[aria-invalid="true"] {
  border-color: var(--danger);
  box-shadow: 0 0 0 3px rgba(229, 107, 107, 0.15);
}

select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%238a8a92' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
  cursor: pointer;
}

textarea { resize: vertical; min-height: 100px; }

input[type="checkbox"],
input[type="radio"] {
  width: 16px;
  height: 16px;
  padding: 0;
  display: inline-block;
  flex-shrink: 0;
  vertical-align: middle;
  accent-color: var(--accent);
  cursor: pointer;
  -webkit-appearance: auto;
  appearance: auto;
}

label:has(> input[type="checkbox"]),
label:has(> input[type="radio"]) {
  display: flex;
  align-items: center;
  gap: 10px;
  text-transform: none;
  letter-spacing: 0;
  font-size: 13px;
  cursor: pointer;
  margin-bottom: 0;
}

label:has(> input[type="checkbox"]) > input,
label:has(> input[type="radio"]) > input {
  margin-top: 0;
}

fieldset {
  border: none;
  padding: 0;
  margin: 0 0 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

fieldset[role="group"] {
  flex-direction: row;
  gap: 8px;
  align-items: flex-end;
  flex-wrap: wrap;
}

fieldset[role="group"] label { margin-bottom: 0; }

fieldset[role="group"] input,
fieldset[role="group"] select {
  margin-top: 0;
}

details {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 16px;
}

details[open] { padding-bottom: 16px; }

summary {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-dim);
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 8px;
  user-select: none;
}

summary::before {
  content: "▶";
  font-size: 10px;
  color: var(--text-faint);
  transition: transform 0.2s;
  flex-shrink: 0;
}

details[open] > summary::before { transform: rotate(90deg); }
summary::-webkit-details-marker { display: none; }

details > *:not(summary) { margin-top: 16px; }

.header-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 12px;
}

.header-pair label { grid-column: 1 / -1; }

a.hint {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-faint);
  display: block;
  text-align: right;
  margin-top: 4px;
}

a.hint:hover { color: var(--accent); text-decoration: none; }

/* ── 8. BUTTONS ────────────────────────────────────────── */
button,
input[type="submit"],
a[role="button"] {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 500;
  padding: 10px 20px;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  background: var(--accent);
  color: var(--bg);
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  line-height: 1;
  -webkit-appearance: none;
  appearance: none;
  white-space: nowrap;
}

button:hover,
input[type="submit"]:hover,
a[role="button"]:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px var(--accent-glow);
  text-decoration: none;
}

button.outline,
input[type="submit"].outline,
a[role="button"].outline {
  background: var(--bg-elev);
  border: 1px solid var(--border-bright);
  color: var(--text-dim);
  box-shadow: none;
}

button.outline:hover,
a[role="button"].outline:hover {
  border-color: var(--text-dim);
  color: var(--text);
  transform: none;
  box-shadow: none;
}

button.secondary,
a[role="button"].secondary {
  background: var(--bg-elev);
  border: 1px solid var(--border-bright);
  color: var(--text-dim);
}

button.danger,
button.outline.danger {
  background: transparent;
  border: 1px solid var(--danger);
  color: var(--danger);
  box-shadow: none;
}

button.danger:hover,
button.outline.danger:hover {
  background: rgba(229, 107, 107, 0.1);
  transform: none;
  box-shadow: none;
}

.new-webhook-btn {
  font-family: var(--mono);
  font-size: 13px;
  padding: 10px 16px;
  background: var(--accent);
  color: var(--bg);
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s;
  font-weight: 500;
  flex-shrink: 0;
}

.new-webhook-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px var(--accent-glow);
  text-decoration: none;
}

/* ── 9. FORM LAYOUT ────────────────────────────────────── */
.form {
  max-width: 540px;
  margin-bottom: 48px;
}

.form > p {
  color: var(--text-dim);
  font-size: 14px;
  margin-bottom: 32px;
}

.form > form { margin-bottom: 16px; }

p.error {
  padding: 12px 16px;
  border: 1px solid rgba(229, 107, 107, 0.4);
  border-radius: var(--radius);
  background: rgba(229, 107, 107, 0.08);
  color: var(--danger);
  font-size: 13px;
  margin-top: 8px;
  margin-bottom: 8px;
}

/* ── 10. TABLES ────────────────────────────────────────── */
table { width: 100%; border-collapse: collapse; font-size: 13px; }

figure { overflow-x: auto; margin: 0 0 24px; }

th {
  text-align: left;
  padding: 8px 12px;
  font-family: var(--mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-faint);
  font-weight: 400;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

td {
  padding: 12px;
  border-bottom: 1px solid var(--border);
  color: var(--text-dim);
}

td a { color: var(--text); }
td a:hover { color: var(--accent); }

tbody tr:last-child td { border-bottom: none; }
tbody tr:hover td { background: var(--bg-hover); }

/* Log detail key-value table */
tbody th {
  font-size: 11px;
  color: var(--text-faint);
  width: 140px;
  border-bottom: 1px solid var(--border);
  padding: 12px;
}

/* ── 11. BADGES ────────────────────────────────────────── */
.badge {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
  padding: 3px 8px;
  border-radius: 4px;
  white-space: nowrap;
}

.badge.status-2xx {
  background: var(--accent-glow);
  color: var(--accent);
  border: 1px solid rgba(125, 216, 125, 0.2);
}

.badge.status-4xx {
  background: rgba(240, 179, 106, 0.12);
  color: var(--amber);
  border: 1px solid rgba(240, 179, 106, 0.25);
}

.badge.status-5xx {
  background: rgba(229, 107, 107, 0.12);
  color: var(--danger);
  border: 1px solid rgba(229, 107, 107, 0.25);
}

.badge.status-pending {
  background: rgba(111, 179, 255, 0.12);
  color: var(--blue);
  border: 1px solid rgba(111, 179, 255, 0.25);
}

/* ── 12. ADDRESS CARD ──────────────────────────────────── */
.address-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 40px;
  box-shadow: 0 0 0 1px rgba(125, 216, 125, 0.05), 0 20px 60px rgba(0, 0, 0, 0.3);
  position: relative;
}

.address-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(125, 216, 125, 0.03) 0%, transparent 40%);
  pointer-events: none;
}

.address-body { padding: 24px 28px; position: relative; }

.address-section-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-faint);
  margin-bottom: 12px;
  font-family: var(--mono);
  display: flex;
  align-items: center;
  gap: 8px;
}

.address-section-label::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border);
}

.address-display {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.address-value {
  font-family: var(--mono);
  font-size: 14px;
  color: var(--accent);
  background: var(--bg);
  border: 1px solid var(--border);
  padding: 10px 14px;
  border-radius: var(--radius);
  flex: 1;
  min-width: 0;
  overflow-x: auto;
  white-space: nowrap;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.address-value::-webkit-scrollbar { display: none; }

.copy-btn {
  font-family: var(--mono);
  font-size: 12px;
  padding: 10px 14px;
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text-dim);
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  transform: none !important;
  box-shadow: none !important;
}

.copy-btn:hover { color: var(--accent); border-color: var(--accent); }
.copy-btn.copied { color: var(--accent); border-color: var(--accent); background: var(--accent-glow); }

.address-help { font-size: 13px; color: var(--text-dim); line-height: 1.55; }

.warning {
  margin-top: 16px;
  padding: 12px 16px;
  background: rgba(240, 179, 106, 0.06);
  border: 1px solid rgba(240, 179, 106, 0.25);
  border-radius: var(--radius);
  font-size: 13px;
  color: var(--text-dim);
  line-height: 1.55;
  display: flex;
  gap: 10px;
}

.warning-icon { color: var(--amber); font-size: 14px; flex-shrink: 0; line-height: 1.4; }
.warning strong { color: var(--text); font-weight: 500; }
.warning a { color: var(--amber); border-bottom: 1px dashed currentColor; }

/* ── 13. WEBHOOK LIST ──────────────────────────────────── */
.webhook-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 48px;
}

.webhook {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 18px 22px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 20px;
  align-items: center;
  transition: all 0.2s;
  text-decoration: none;
  color: var(--text);
  cursor: pointer;
}

.webhook:hover {
  border-color: var(--border-bright);
  background: var(--bg-hover);
  transform: translateY(-1px);
  text-decoration: none;
}

.webhook-status {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding-right: 20px;
  border-right: 1px solid var(--border);
}

.status-pill {
  font-family: var(--mono);
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--accent-glow);
  color: var(--accent);
  border: 1px solid rgba(125, 216, 125, 0.25);
  white-space: nowrap;
}

.status-pill.disabled {
  background: var(--bg);
  color: var(--text-faint);
  border-color: var(--border);
}

.webhook-rule {
  font-family: var(--mono);
  font-size: 13px;
  line-height: 2;
  overflow: hidden;
  min-width: 0;
}

.webhook-method {
  background: var(--accent-glow);
  color: var(--accent);
  padding: 2px 7px;
  border-radius: 4px;
  font-weight: 500;
  font-size: 11px;
  border: 1px solid rgba(125, 216, 125, 0.25);
  margin-right: 6px;
  display: inline-block;
}

.webhook-keyword { color: var(--text-faint); margin: 0 5px; }

.webhook-from,
.webhook-url {
  color: var(--text);
  background: var(--bg);
  padding: 2px 7px;
  border-radius: 4px;
  border: 1px solid var(--border);
  font-size: 12px;
  display: inline-block;
  white-space: nowrap;
  vertical-align: middle;
}

.webhook-url { color: var(--blue); }

.new-webhook-tile {
  background: transparent;
  border: 1px dashed var(--border-bright);
  border-radius: 10px;
  padding: 20px 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--text-dim);
  text-decoration: none;
  font-family: var(--mono);
  font-size: 13px;
  transition: all 0.2s;
  cursor: pointer;
}

.new-webhook-tile:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-glow);
  text-decoration: none;
  transform: none;
}

/* ── 14. UTILITY ───────────────────────────────────────── */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-dim);
  text-decoration: none;
  margin-bottom: 24px;
}

.back-link:hover { color: var(--accent); text-decoration: none; }

h1#notfound {
  font-size: 200%;
  text-align: center;
  margin-top: 4rem;
}

h1#notfound + p {
  text-align: center;
  font-size: 120%;
  margin-top: 1rem;
  color: var(--text-dim);
}

/* Honeypot field */
label.website { display: none; }

/* ── 15. AUTH SPLIT LAYOUT ─────────────────────────────── */
.auth-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.auth-form-side {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 48px 40px;
  background: var(--bg);
  flex: 1;
}

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

.auth-logo {
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  margin-bottom: 48px;
}

.auth-logo:hover { text-decoration: none; color: var(--text); }

.auth-logo-mark {
  width: 22px;
  height: 22px;
  border: 1px solid var(--accent);
  display: grid;
  place-items: center;
  color: var(--accent);
  font-size: 11px;
  border-radius: 4px;
  background: var(--accent-glow);
}

.auth-form-inner h1 { font-size: 32px; margin-bottom: 8px; }
.auth-form-inner > p { color: var(--text-dim); font-size: 14px; margin-bottom: 32px; }

.auth-aside { display: none; }

@media (min-width: 800px) {
  .auth-shell { flex-direction: row; }
  .auth-form-side { min-height: 100vh; flex: none; width: 50%; }
  .auth-aside {
    display: block;
    flex: 1;
    background:
      radial-gradient(ellipse at 20% 50%, rgba(125, 216, 125, 0.15) 0%, transparent 60%),
      radial-gradient(ellipse at 80% 20%, rgba(111, 179, 255, 0.12) 0%, transparent 50%),
      radial-gradient(ellipse at 60% 80%, rgba(229, 106, 181, 0.1) 0%, transparent 50%),
      conic-gradient(at 50% -10%, rgba(125, 216, 125, 0.08), rgba(111, 179, 255, 0.06), rgba(229, 106, 181, 0.08), rgba(125, 216, 125, 0.08));
    background-color: var(--bg-card);
    border-left: 1px solid var(--border);
  }
}

/* ── 16. ADMIN PAGES ───────────────────────────────────── */
.users-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 0;
  margin: 0 0 24px;
}

.users-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 13px;
  font-family: var(--mono);
}

.users-list li.banned { opacity: 0.5; }
.users-list li.banned a { text-decoration: line-through; }

form.inline { display: inline; }

form.inline input[type="submit"] {
  padding: 4px 10px;
  font-size: 11px;
  background: var(--bg-elev);
  border: 1px solid var(--border-bright);
  color: var(--text-dim);
  box-shadow: none;
  transform: none;
}

form.inline input[type="submit"]:hover { transform: none; box-shadow: none; }

/* ── 17. PROSE (docs / legal pages) ────────────────────── */
.prose {
  max-width: 720px;
  font-size: 15px;
  line-height: 1.75;
}

.prose h1 { font-size: 36px; margin-bottom: 24px; }
.prose h2 { font-size: 22px; margin-top: 40px; margin-bottom: 14px; border-bottom: 1px solid var(--border); padding-bottom: 8px; }
.prose h3 { font-size: 17px; margin-top: 28px; margin-bottom: 10px; }
.prose p { color: var(--text-dim); }
.prose ul, .prose ol { padding-left: 24px; margin-bottom: 16px; color: var(--text-dim); }
.prose li { margin-bottom: 6px; }
.prose a { color: var(--accent); border-bottom: 1px solid currentColor; }
.prose blockquote {
  border-left: 3px solid var(--accent);
  padding: 8px 16px;
  margin: 20px 0;
  color: var(--text-dim);
  font-style: italic;
}

/* TOC sidebar for docs */
aside.toc {
  font-family: var(--mono);
  font-size: 12px;
  position: sticky;
  top: 24px;
  max-width: 200px;
  color: var(--text-faint);
  flex-shrink: 0;
}

aside.toc ul { list-style: none; padding: 0; }
aside.toc li { margin-bottom: 6px; }
aside.toc a { color: var(--text-faint); }
aside.toc a:hover { color: var(--accent); }

/* ── 18. RESPONSIVE ────────────────────────────────────── */
@media (max-width: 900px) {
  .app { grid-template-columns: 1fr; }

  .app > aside {
    position: static;
    height: auto;
    border-right: none;
    border-bottom: 1px solid var(--border);
    padding: 16px;
  }

  .sidebar-footer { display: none; }

  .nav-section { display: inline-block; margin-right: 20px; margin-bottom: 0; }
  .nav-list { flex-direction: row; flex-wrap: wrap; gap: 4px; }

  .app > main { padding: 28px 20px 60px; }

  .webhook { grid-template-columns: 1fr; gap: 12px; }
  .webhook-status { padding-right: 0; border-right: none; flex-direction: row; }

  .topbar-inner { padding: 0 20px; }

  footer { padding: 24px 20px; }
}
