* { box-sizing: border-box; }
body { margin: 0; font: 14px/1.4 system-ui, -apple-system, "Segoe UI", sans-serif; background: #12161c; color: #e6e9ee; }
.hidden { display: none !important; }
.dim { color: #8a93a2; }
.error { color: #ff6b6b; min-height: 1.2em; }
.hint { color: #8a93a2; font-size: 12px; margin-top: 8px; }
header { display: flex; align-items: center; gap: 16px; padding: 10px 20px; background: #1a2029; border-bottom: 1px solid #2a3240; position: sticky; top: 0; z-index: 2; }
header nav { display: flex; gap: 4px; flex: 1; }
header nav button { background: none; border: 0; color: #c3c9d3; padding: 8px 14px; border-radius: 6px; cursor: pointer; font: inherit; }
header nav button.active { background: #2b3a52; color: #fff; }
main { padding: 20px; max-width: 1400px; margin: 0 auto; }
.card { background: #1a2029; border: 1px solid #2a3240; border-radius: 10px; padding: 16px 20px; margin-bottom: 16px; }
h1 { margin: 0 0 16px; font-size: 22px; }
h2 { margin: 0 0 12px; font-size: 16px; }
h3 { margin: 18px 0 8px; font-size: 14px; color: #c3c9d3; }
.row { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; }
.row.between { justify-content: space-between; align-items: center; }
label { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: #8a93a2; }
input, select { background: #0f1318; border: 1px solid #333d4d; color: #e6e9ee; border-radius: 6px; padding: 7px 9px; font: inherit; min-width: 120px; }
input[type="number"] { width: 90px; min-width: 0; }
.btn { background: #2a3240; color: #e6e9ee; border: 1px solid #3a4558; border-radius: 6px; padding: 7px 14px; cursor: pointer; font: inherit; }
.btn:hover { background: #333d4d; }
.btn.primary { background: #2f6fed; border-color: #2f6fed; color: #fff; }
.btn.danger { background: #5a1f24; border-color: #7a2a31; }
.btn.small { padding: 4px 10px; font-size: 12px; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 7px 8px; border-bottom: 1px solid #252c38; vertical-align: top; }
th { color: #8a93a2; font-weight: 500; font-size: 12px; }
tbody tr { cursor: pointer; }
tbody tr:hover { background: #202836; }
code, .mono { font-family: ui-monospace, Consolas, monospace; font-size: 12.5px; }
.pill { display: inline-block; padding: 1px 8px; border-radius: 10px; font-size: 12px; background: #2a3240; }
.pill.active { background: #1d4d2b; color: #8de0a4; }
.pill.not_activated { background: #2b3a52; color: #9cc3ff; }
.pill.expired { background: #4d3d1d; color: #f0c674; }
.pill.revoked { background: #5a1f24; color: #ff9aa2; }
.pill.live { background: #6b1d1d; color: #ffb3b3; }
.created { margin-top: 12px; padding: 12px; background: #0f2a1a; border: 1px solid #1d4d2b; border-radius: 8px; }
.created code { font-size: 15px; user-select: all; }
.login { display: flex; min-height: 100vh; align-items: center; justify-content: center; }
.login form { width: 320px; display: flex; flex-direction: column; gap: 10px; }
.drawer { position: fixed; inset: 0; background: rgba(0,0,0,.5); display: flex; justify-content: flex-end; z-index: 5; }
.drawer-body { width: min(720px, 100%); background: #161b22; height: 100%; overflow: auto; padding: 20px 24px; position: relative; border-left: 1px solid #2a3240; }
.drawer .close { position: absolute; right: 16px; top: 16px; }
dl { display: grid; grid-template-columns: 170px 1fr; gap: 6px 12px; margin: 0; }
dt { color: #8a93a2; }
dd { margin: 0; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0; align-items: center; }
pre { white-space: pre-wrap; background: #0f1318; padding: 12px; border-radius: 8px; font-size: 12px; overflow: auto; }
.events { font-size: 12px; max-height: 60vh; overflow: auto; }
.events td { padding: 3px 6px; }
