:root { color-scheme: light; --bg:#f5f7fb; --card:#fff; --ink:#172033; --muted:#667085; --line:#e4e7ec; --primary:#2458d3; --danger:#c62828; --ok:#137333; }
* { box-sizing:border-box; }
body { margin:0; font:15px/1.55 system-ui,-apple-system,"Segoe UI","Microsoft YaHei",sans-serif; color:var(--ink); background:var(--bg); }
a { color:var(--primary); text-decoration:none; } a:hover { text-decoration:underline; }
.topbar { min-height:62px; padding:0 max(22px,calc((100% - 1180px)/2)); display:flex; align-items:center; justify-content:space-between; gap:24px; color:#fff; background:#13213c; }
.brand { color:#fff; font-size:19px; font-weight:750; } .topbar nav { display:flex; align-items:center; gap:18px; flex-wrap:wrap; } .topbar nav a,.topbar .link-button { color:#dbe5ff; }
.container { width:min(1180px,calc(100% - 32px)); margin:28px auto; min-height:calc(100vh - 150px); }
footer { padding:22px; color:var(--muted); text-align:center; }
h1,h2 { line-height:1.2; margin:0 0 10px; } h1 { font-size:28px; } h2 { font-size:19px; }
.muted,small { color:var(--muted); } small { display:block; margin-top:4px; }
.card { background:var(--card); border:1px solid var(--line); border-radius:12px; padding:20px; box-shadow:0 2px 8px rgba(16,24,40,.035); }
.page-head { display:flex; justify-content:space-between; align-items:center; gap:16px; margin-bottom:18px; }
.stats { display:grid; grid-template-columns:repeat(4,1fr); gap:16px; margin-bottom:20px; } .stat { display:flex; flex-direction:column; color:inherit; } .stat:hover { text-decoration:none; border-color:#b9c9f5; } .stat strong { font-size:34px; } .stat span { color:var(--muted); }
.table-wrap { overflow:auto; } table { width:100%; border-collapse:collapse; white-space:nowrap; } th,td { padding:12px 11px; border-bottom:1px solid var(--line); text-align:left; vertical-align:top; } th { color:var(--muted); font-size:13px; } tbody tr:last-child td { border-bottom:0; } .empty { text-align:center; color:var(--muted); padding:30px; }
.actions { display:flex; gap:12px; align-items:center; } .inline { display:inline; margin:0; }
button,.button { appearance:none; display:inline-block; border:1px solid #cbd2df; border-radius:8px; background:#fff; color:var(--ink); padding:9px 14px; font:inherit; cursor:pointer; } button:hover,.button:hover { filter:brightness(.97); text-decoration:none; }
.primary { color:#fff; border-color:var(--primary); background:var(--primary); } .danger { color:#fff; border-color:var(--danger); background:var(--danger); } .link-button,.danger-link { padding:0; border:0; background:none; color:var(--primary); } .danger-link { color:var(--danger); }
.form-card { max-width:680px; margin:auto; } .login-card { max-width:430px; margin:9vh auto; } .secret-card { max-width:760px; margin:auto; }
.stack { display:grid; gap:16px; } label { display:grid; gap:6px; font-weight:650; } input,select,textarea { width:100%; border:1px solid #cbd2df; border-radius:8px; padding:10px 11px; background:#fff; color:var(--ink); font:inherit; } input:focus,select:focus,textarea:focus { outline:3px solid #dbe5ff; border-color:var(--primary); } textarea { resize:vertical; }
.form-actions { display:flex; gap:10px; margin-top:6px; }.copy-row { display:flex; gap:8px; }.copy-row input { font-family:ui-monospace,monospace; }
.flash,.warning { margin-bottom:16px; padding:12px 14px; border-radius:8px; }.flash.success { background:#e6f4ea; color:var(--ok); }.flash.error,.warning { background:#fff1f0; color:#9f1f1f; }
.badge { display:inline-block; padding:3px 8px; border-radius:999px; background:#eef2f7; font-size:12px; }.badge.active,.badge.approved { color:var(--ok); background:#e6f4ea; }.badge.disabled,.badge.revoked { color:#9f1f1f; background:#fff1f0; }.deleted { opacity:.6; }
.grid-two { display:grid; grid-template-columns:minmax(280px,.75fr) minmax(0,1.25fr); gap:18px; } dl { display:grid; grid-template-columns:100px 1fr; gap:9px; } dt { color:var(--muted); } dd { margin:0; overflow-wrap:anywhere; } pre { max-height:530px; overflow:auto; padding:14px; border-radius:8px; color:#e6edf3; background:#101827; white-space:pre-wrap; word-break:break-all; } code { font-family:ui-monospace,SFMono-Regular,Consolas,monospace; }
@media (max-width:760px) { .topbar { align-items:flex-start; padding:14px 18px; flex-direction:column; }.stats { grid-template-columns:repeat(2,1fr); }.grid-two { grid-template-columns:1fr; }.page-head { align-items:flex-start; }.actions { min-width:230px; } }

