/* Settings centre: section navigation left, one section at a time right. Tokens from app.css. */
.settings { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 20px; align-items: start; }
.settings-nav { position: sticky; top: calc(var(--head-h) + 12px); padding: 6px; display: flex; flex-direction: column; gap: 1px; }
.settings-nav a { display: block; padding: 7px 10px; border-radius: var(--r-ctl); color: var(--ink); font-size: 13.5px; transition: background .15s var(--ease); }
.settings-nav a:hover { background: var(--sheet-2); text-decoration: none; }
.settings-nav a.on { background: var(--accent-wash); color: var(--accent-ink); font-weight: 600; }
.settings-body { min-width: 0; }
.settings-title { font-size: 18px; margin: 2px 0 12px; }
.settings-body > #tab > .table-wrap, .settings-body > #tab > p.muted { margin-bottom: 12px; }
.settings-body fieldset { border: 1px solid var(--line) !important; border-radius: var(--r-ctl); }
.settings-body details summary { cursor: pointer; color: var(--accent); }
.settings-body pre { font-size: 12px; }
@media (max-width: 900px) {
  .settings { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .settings-nav { position: static; flex-direction: row; overflow-x: auto; }
  .settings-nav a { white-space: nowrap; flex: none; }
}

/* Webhooks */
.wh-intro { max-width: 72ch; margin: 0 0 4px; }
.wh-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.wh-list > li { padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; }
.wh-head { display: flex; gap: 8px; align-items: flex-start; flex-wrap: wrap; }
.wh-url { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.wh-url b { overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.wh-acts { display: flex; gap: 6px; flex-wrap: wrap; }
.wh-log .table-wrap { border-radius: var(--r-ctl); }
.wh-events { border: 1px solid var(--line); border-radius: var(--r-ctl); padding: 10px 12px; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 6px 12px; }
.wh-events legend { font-size: 12.5px; font-weight: 600; color: var(--ink-2); padding: 0 4px; }
.wh-help { margin-top: 14px; color: var(--ink-2); }
.wh-help summary { cursor: pointer; font-weight: 600; color: var(--ink); }
.wh-help code { font-size: 12px; background: var(--line-2); padding: 0 4px; border-radius: 3px; }
