:root { --fg:#1c2333; --muted:#6b7280; --line:#e5e7eb; --accent:#2563eb; --ok:#059669; --err:#dc2626; --bg:#f6f7f9; }
* { box-sizing: border-box; }
body { margin:0; font:14px/1.6 system-ui,"Microsoft YaHei",sans-serif; color:var(--fg); background:var(--bg); }
.container { max-width: 1100px; margin: 20px auto; padding: 0 16px; }
.topnav { background:#111827; color:#e5e7eb; padding:8px 16px; display:flex; flex-wrap:wrap; gap:4px 14px; align-items:center; }
.topnav a { color:#d1d5db; text-decoration:none; padding:4px 2px; }
.topnav a:hover { color:#fff; }
.topnav .brand { font-weight:700; color:#fff; margin-right:8px; }
.topnav form.inline { margin-left:auto; }
.linklike { background:none; border:none; color:#93c5fd; cursor:pointer; font:inherit; padding:4px 0; }
h1 { font-size:20px; margin:18px 0 10px; } h2 { font-size:15px; margin:16px 0 8px; }
table { border-collapse: collapse; width:100%; background:#fff; margin:8px 0 16px; }
th, td { border:1px solid var(--line); padding:6px 10px; text-align:left; vertical-align:top; }
th { background:#f3f4f6; font-weight:600; white-space:nowrap; }
tr.latest td { background:#ecfdf5; }
tr.warn-row td { background:#fef9c3; }
.card { background:#fff; border:1px solid var(--line); border-radius:8px; padding:14px 16px; margin:10px 0 16px; }
.card.narrow { max-width:360px; }
label { display:block; margin:8px 0; }
label input, label select, input, select, textarea { font:inherit; padding:5px 8px; border:1px solid var(--line); border-radius:6px; }
label.check { display:flex; align-items:center; gap:6px; }
button, .button { font:inherit; background:var(--accent); color:#fff; border:none; border-radius:6px; padding:6px 14px; cursor:pointer; text-decoration:none; display:inline-block; }
button.danger { background:var(--err); }
button.linklike { background:none; color:#93c5fd; padding:0; }
.inline { display:inline; }
.wide { width:100%; }
.flash { border-radius:8px; padding:10px 14px; margin:10px 0; }
.flash.ok { background:#ecfdf5; color:#065f46; border:1px solid #a7f3d0; }
.flash.err { background:#fef2f2; color:#991b1b; border:1px solid #fecaca; }
.hint { color:var(--muted); font-size:12.5px; }
.mono { font-family: ui-monospace,Consolas,monospace; font-size:12.5px; }
.small { font-size:12px; }
.codes { background:#0f172a; color:#e2e8f0; padding:12px; border-radius:8px; overflow:auto; line-height:1.5; }
.tag { display:inline-block; padding:1px 8px; border-radius:10px; font-size:12px; }
.tag.unused { background:#e0e7ff; } .tag.used { background:#d1fae5; color:#065f46; }
.tag.revoked { background:#fee2e2; color:#991b1b; } .tag.suspended { background:#fef3c7; color:#92400e; }
.tag.active { background:#d1fae5; color:#065f46; }
.tag.info { background:#e0e7ff; } .tag.warn { background:#fef3c7; color:#92400e; }
.secret { font-family:ui-monospace,monospace; font-size:16px; background:#f3f4f6; padding:6px 10px; border-radius:6px; }
.product-row { display:flex; flex-wrap:wrap; gap:10px; align-items:end; }
