:root { --ink: #0f2333; --muted: #5b6f86; --line: #dfe7ef; --bg: #f3f6f9; --brand: #1f5f99; --brand-d: #154a7a; --ok: #1f7a3a; --err: #b42318; }
* { box-sizing: border-box; }
body { margin: 0; font: 15px/1.55 system-ui, -apple-system, "Segoe UI", sans-serif; color: var(--ink); background: var(--bg); }
.wrap { max-width: 1100px; margin: 0 auto; padding: 0 1.2rem; }
.top { background: var(--ink); color: #fff; }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; min-height: 60px; }
.logo { font-weight: 700; letter-spacing: .01em; }
.logo small { font-weight: 400; opacity: .7; }
.nav { display: flex; gap: .2rem; flex-wrap: wrap; }
.nav a { color: #dce6f0; text-decoration: none; padding: .45rem .7rem; border-radius: 8px; }
.nav a:hover { background: rgba(255,255,255,.1); color: #fff; }
h1 { margin: 1.6rem 0 1rem; font-size: 1.6rem; }
h2 { margin: 0 0 .8rem; font-size: 1.3rem; display: flex; align-items: center; gap: .6rem; }
h3 { margin: 0 0 .5rem; font-size: 1.1rem; }
.card { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 1.2rem 1.4rem; margin-bottom: 1rem; }
.form { display: grid; gap: .8rem; }
.form--narrow { max-width: 420px; }
label { display: grid; gap: .25rem; font-weight: 600; }
label small, .hint { font-weight: 400; color: var(--muted); }
label.check { display: flex; align-items: center; gap: .5rem; font-weight: 400; }
input, select, textarea { font: inherit; padding: .55rem .7rem; border: 1px solid #c9d6e2; border-radius: 9px; background: #fff; width: 100%; }
input[type=checkbox] { width: auto; }
.btn { display: inline-block; background: var(--brand); color: #fff; border: 0; border-radius: 9px; padding: .6rem 1.1rem; font: inherit; font-weight: 600; cursor: pointer; text-decoration: none; justify-self: start; }
.btn:hover { background: var(--brand-d); }
.btn--ghost { background: #fff; color: var(--brand); border: 1px solid #bcd0e3; }
.btn--ghost:hover { background: #eef4fa; }
.btn--danger { background: var(--err); }
.btn--small { padding: .3rem .7rem; font-size: .9rem; }
.actions { display: flex; gap: .6rem; flex-wrap: wrap; margin: 1rem 0 0; }
.toolbar { display: flex; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; flex-wrap: wrap; }
.toolbar input { width: 260px; }
.table { width: 100%; border-collapse: collapse; }
.table th, .table td { text-align: left; padding: .6rem .5rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.table th { font-size: .85rem; color: var(--muted); font-weight: 600; }
.table a { color: var(--brand); text-decoration: none; }
.badge { font-size: .78rem; font-weight: 700; padding: .15rem .55rem; border-radius: 99px; }
.badge--active { background: #e3f4e8; color: var(--ok); }
.badge--revoked { background: #fdebea; color: var(--err); }
.msg { padding: .75rem 1rem; border-radius: 10px; margin: 0 0 1rem; }
.msg--ok { background: #e3f4e8; color: #14532d; }
.msg--err { background: #fdebea; color: #7a1a12; }
.dl { display: grid; grid-template-columns: 160px 1fr; gap: .4rem 1rem; margin: 0; }
.dl dt { color: var(--muted); }
.dl dd { margin: 0; }
code, .code { font-family: ui-monospace, Menlo, monospace; font-size: .9em; background: #eef2f6; padding: .1rem .35rem; border-radius: 5px; word-break: break-all; }
.log { background: #0f2333; color: #d7e3ee; padding: 1rem; border-radius: 10px; font-size: .82rem; max-height: 360px; overflow: auto; white-space: pre-wrap; }
details summary { cursor: pointer; color: var(--brand); font-weight: 600; margin-top: .6rem; }
@media (max-width: 700px) { .dl { grid-template-columns: 1fr; } .table { font-size: .9rem; } }
