:root {
  --bg: #f3f4f8; --surface: #ffffff; --text: #1f2937; --muted: #6b7391; --border: #dfe3ee;
  --accent: #3b55e6; --accent-dark: #2a3fb8; --ok: #1c7a3a; --ok-bg: #e3f4e8; --err: #b3261e; --err-bg: #fbe9e7;
  --off: #5b6480; --off-bg: #eceef4;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body { font-family: "Segoe UI", system-ui, -apple-system, Arial, sans-serif; background: var(--bg); color: var(--text); line-height: 1.5; font-size: 16px; }
a { color: var(--accent); }
h1 { font-size: 1.6rem; line-height: 1.25; margin: 0 0 .6rem; color: #111c3a; }
h2 { font-size: 1.15rem; margin: 0 0 .8rem; color: #111c3a; }
code { font-family: Consolas, "Courier New", monospace; background: #eef0f8; padding: 0 4px; border-radius: 3px; }

.top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 24px; background: var(--surface); border-bottom: 1px solid var(--border); flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); font-weight: 600; }
.brand img { height: 28px; }
.top nav { display: flex; align-items: center; gap: 18px; }
.top nav a { text-decoration: none; font-weight: 500; }
form.inline { display: inline; margin: 0; }

.page { max-width: 980px; margin: 28px auto; padding: 0 18px; }
.head { margin-bottom: 16px; }
.crumb { margin: 0 0 4px; font-size: .9rem; color: var(--muted); }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 22px 24px; margin-bottom: 18px; }
.card.narrow { max-width: 460px; margin: 40px auto; }
.card.flush { padding: 0; overflow: hidden; }

label { display: block; font-weight: 500; margin-bottom: 14px; }
input[type=email], input[type=password], input[type=text] { display: block; width: 100%; margin-top: 5px; padding: 10px 12px; font: inherit; border: 1px solid var(--border); border-radius: 8px; background: #fff; }
input:focus-visible, button:focus-visible, a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
button, .btn { font: inherit; cursor: pointer; border-radius: 8px; border: 1px solid var(--border); background: var(--surface); color: var(--text); padding: 9px 16px; text-decoration: none; display: inline-block; }
button.primary { background: var(--accent); border-color: var(--accent); color: #fff; font-weight: 600; }
button.primary:hover { background: var(--accent-dark); }
.btn:hover, button:hover { border-color: var(--accent); }
button.link { border: 0; background: none; padding: 0; color: var(--accent); font-weight: 500; }

table { width: 100%; border-collapse: collapse; }
th { text-align: left; font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); padding: 10px 14px; background: #f7f8fc; }
td { padding: 10px 14px; border-top: 1px solid var(--border); vertical-align: top; }
.card:not(.flush) table + table { margin-top: 14px; }
.nowrap { white-space: nowrap; }

.pill { display: inline-block; font-size: .8rem; font-weight: 600; padding: 1px 9px; border-radius: 999px; vertical-align: middle; }
.pill.ok { background: var(--ok-bg); color: var(--ok); }
.pill.off { background: var(--off-bg); color: var(--off); }
.note { padding: 10px 14px; border-radius: 8px; margin: 0 0 14px; }
.note.ok { background: var(--ok-bg); color: var(--ok); }
.note.err { background: var(--err-bg); color: var(--err); }
.key { font-family: Consolas, "Courier New", monospace; font-size: 1.35rem; letter-spacing: .04em; background: #f7f8fc; border: 1px dashed var(--accent); border-radius: 8px; padding: 12px 16px; user-select: all; word-break: break-all; }
.small { font-size: .9rem; }
.muted { color: var(--muted); }

.foot { text-align: center; color: var(--muted); font-size: .85rem; padding: 24px 12px 36px; }
.foot a { color: var(--muted); }

@media (max-width: 640px) {
  thead { display: none; }
  table, tbody, tr, td { display: block; width: 100%; }
  tr { border-top: 1px solid var(--border); padding: 8px 0; }
  td { border: 0; padding: 4px 14px; }
  td[data-label]::before { content: attr(data-label) ": "; color: var(--muted); font-size: .85rem; }
}
