:root {
  color-scheme: light;
  --ink: #10223a;
  --muted: #607089;
  --line: #dce4ee;
  --panel: #ffffff;
  --bg: #f4f7fb;
  --brand: #0e5ee8;
  --danger: #b42318;
  --success: #067647;
}
* { box-sizing: border-box; }
body { margin: 0; font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; background: var(--bg); color: var(--ink); }
a { color: var(--brand); }
.topbar { min-height: 64px; padding: 0 5vw; display: flex; align-items: center; justify-content: space-between; background: #071321; color: white; }
.brand { color: white; font-weight: 800; text-decoration: none; letter-spacing: -.02em; }
.container { width: min(1180px, 92vw); margin: 36px auto 64px; }
.hero { margin-bottom: 28px; }
h1 { margin: 0 0 10px; font-size: clamp(1.8rem, 4vw, 2.8rem); letter-spacing: -.035em; }
h2 { margin-top: 0; font-size: 1.25rem; }
p { line-height: 1.6; }
.muted { color: var(--muted); }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 18px; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 24px; box-shadow: 0 10px 30px rgba(16,34,58,.05); }
.card.narrow, .narrow { max-width: 620px; margin-left: auto; margin-right: auto; }
label { display: block; font-weight: 700; margin: 18px 0 7px; }
input, select { width: 100%; border: 1px solid #b9c6d7; border-radius: 10px; padding: 12px 13px; font: inherit; background: white; }
input:focus, select:focus { outline: 3px solid rgba(14,94,232,.15); border-color: var(--brand); }
button, .button { border: 0; border-radius: 10px; padding: 11px 16px; font: inherit; font-weight: 750; cursor: pointer; background: var(--brand); color: white; text-decoration: none; display: inline-block; }
button.secondary, .button.secondary { color: var(--ink); background: #eaf0f8; }
button.danger { background: var(--danger); }
button:disabled { opacity: .55; cursor: not-allowed; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 18px; }
.inline { display: inline; margin: 0; }
.inline button { width: auto; }
.link-button { padding: 0; background: transparent; color: white; font-weight: 650; }
.notice { border-radius: 12px; padding: 13px 16px; margin-bottom: 20px; border: 1px solid; }
.notice.success { background: #ecfdf3; border-color: #abefc6; color: var(--success); }
.notice.error { background: #fef3f2; border-color: #fecdca; color: var(--danger); }
.notice.warning { background: #fffaeb; border-color: #fedf89; color: #93370d; }
.notice.info { background: #eff8ff; border-color: #b2ddff; color: #175cd3; }
.code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 1.05rem; background: #081525; color: #e8f2ff; padding: 14px; border-radius: 10px; overflow-wrap: anywhere; }
.code-inline { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-weight: 750; }
.status { display: inline-flex; padding: 4px 9px; border-radius: 999px; font-size: .8rem; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; }
.status.active, .status.connected { color: #05603a; background: #d1fadf; }
.status.disabled, .status.error { color: #912018; background: #fee4e2; }
.status.pending { color: #7a2e0e; background: #fef0c7; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; vertical-align: top; padding: 13px 10px; border-bottom: 1px solid var(--line); }
th { font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.table-wrap { overflow-x: auto; }
.provider { margin: 6px 0; }
.summary { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px,1fr)); gap: 12px; margin: 20px 0; }
.summary > div { background: #edf3fb; border-radius: 12px; padding: 14px; }
.summary strong { display: block; font-size: 1.3rem; }
.help { font-size: .9rem; color: var(--muted); }
footer { text-align: center; color: var(--muted); padding: 24px; font-size: .85rem; }
.center { text-align: center; }
.lede { max-width: 760px; margin: 0 auto; font-size: 1.12rem; color: var(--muted); }
.eyebrow { margin: 0 0 8px; color: var(--brand); font-size: .78rem; font-weight: 850; letter-spacing: .11em; text-transform: uppercase; }
.section-gap { margin-top: 22px; }
.admin-grid { grid-template-columns: minmax(300px, .8fr) minmax(300px, 1.2fr); }
.actions.compact { margin-top: 0; }
.actions.compact form { margin: 0; }
.small-strong { font-size: 1rem !important; overflow-wrap: anywhere; }
.subcard { border: 1px solid var(--line); border-radius: 12px; padding: 16px; margin-top: 14px; }
.subcard h3 { margin: 0 0 10px; }
code { overflow-wrap: anywhere; }
@media (max-width: 760px) {
  .container { width: min(94vw, 680px); margin-top: 22px; }
  .card { padding: 19px; }
  .admin-grid { grid-template-columns: 1fr; }
  th, td { padding: 10px 7px; }
}
