:root {
  --bg: #0b0c0f; --panel: #14161b; --panel-2: #1b1e25; --border: #2a2e37; --text: #eef0f4; --muted: #9aa1ad;
  --accent: #FFD94A; --accent-text: #08090B; --ok: #3ecf8e; --warn: #f5a524; --bad: #ef5350; --info: #5aa9ff;
  --radius: 12px; font-family: system-ui, "Segoe UI", Tahoma, Arial, sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); font-size: 15px; line-height: 1.5; }
.top { display: flex; justify-content: space-between; align-items: center; padding: 12px 20px; border-bottom: 1px solid var(--border); background: var(--panel); position: sticky; top: 0; z-index: 2; }
.brand .mark { color: var(--accent); font-weight: 900; letter-spacing: 3px; }
.brand .sub { color: var(--muted); margin-inline-start: 8px; }
.who { color: var(--muted); font-size: 13px; display: flex; gap: 10px; align-items: center; }
main { max-width: 1180px; margin: 0 auto; padding: 20px 16px 80px; }
h1, h2, h3 { margin: 0 0 12px; } h2 { font-size: 20px; } h3 { font-size: 16px; color: var(--muted); }
.card { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; margin-bottom: 16px; }
.grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.row.space { justify-content: space-between; }
label { display: block; font-size: 13px; color: var(--muted); margin-bottom: 4px; }
input, select, textarea { width: 100%; padding: 9px 10px; border-radius: 8px; border: 1px solid var(--border); background: var(--panel-2); color: var(--text); font: inherit; }
textarea { min-height: 90px; font-family: ui-monospace, Consolas, monospace; font-size: 12px; direction: ltr; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
button { padding: 9px 14px; border-radius: 8px; border: 1px solid var(--border); background: var(--panel-2); color: var(--text); font: inherit; font-weight: 700; cursor: pointer; }
button:hover { border-color: var(--accent); }
button.primary { background: var(--accent); color: var(--accent-text); border-color: var(--accent); }
button.danger { border-color: var(--bad); color: var(--bad); }
button.link { background: none; border: none; color: var(--info); padding: 0; font-weight: 600; }
button:disabled { opacity: .45; cursor: not-allowed; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: start; padding: 8px 6px; border-bottom: 1px solid var(--border); vertical-align: top; }
th { color: var(--muted); font-weight: 600; font-size: 12px; }
tr.clickable { cursor: pointer; } tr.clickable:hover { background: var(--panel-2); }
.mono { font-family: ui-monospace, Consolas, monospace; direction: ltr; unicode-bidi: embed; }
.muted { color: var(--muted); } .small { font-size: 12px; }
.badge { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: 12px; font-weight: 700; border: 1px solid currentColor; }
.badge.active, .badge.ok, .badge.done { color: var(--ok); } .badge.suspended, .badge.delivered, .badge.pending { color: var(--warn); }
.badge.revoked, .badge.expired, .badge.blocked, .badge.deactivated, .badge.failed { color: var(--bad); }
.tabs { display: flex; gap: 6px; margin-bottom: 16px; flex-wrap: wrap; }
.tabs button.on { background: var(--accent); color: var(--accent-text); border-color: var(--accent); }
.secret { background: #201c05; border: 1px dashed var(--accent); padding: 12px; border-radius: 8px; word-break: break-all; }
.toast { position: fixed; bottom: 18px; inset-inline-start: 50%; transform: translateX(50%); background: var(--panel-2); border: 1px solid var(--border); padding: 10px 16px; border-radius: 10px; z-index: 9; max-width: 90vw; }
[dir="ltr"] .toast { transform: translateX(-50%); }
.toast.bad { border-color: var(--bad); color: var(--bad); } .toast.ok { border-color: var(--ok); }
.hidden { display: none !important; }
.qr { background: #fff; padding: 8px; border-radius: 8px; display: inline-block; }
.qr img { width: 180px; height: 180px; display: block; }
.login { max-width: 420px; margin: 40px auto; }
@media (max-width: 640px) { .hide-sm { display: none; } th, td { padding: 6px 4px; } }
