:root {
  --brand: #F94D2E;
  --brand-dark: #d63a1e;
  --ink: #1f2937;
  --muted: #6b7280;
  --line: #e5e7eb;
  --bg: #f4f6fb;
  --card: #fff;
  --ok: #059669;
  --err: #dc2626;
  --warn: #d97706;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif; color: var(--ink); background: var(--bg); }
a { color: var(--brand); text-decoration: none; }
.auth-shell, .install-shell { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 32px 16px; background: linear-gradient(160deg, #2b0b06 0%, #7a1d10 45%, #F94D2E 100%); }
.auth-card, .install-card { width: 100%; max-width: 480px; background: #fff; border-radius: 16px; padding: 32px; box-shadow: 0 20px 50px rgba(0,0,0,.18); }
.install-card { max-width: 720px; }
.brand { display: flex; align-items: center; gap: 10px; margin-bottom: 20px; }
.brand-mark { width: 36px; height: 36px; border-radius: 10px; background: var(--brand); color: #fff; display: grid; place-items: center; font-weight: 700; }
h1, h2, h3 { margin: 0 0 12px; }
.muted { color: var(--muted); font-size: 13px; }
label { display: block; font-size: 13px; margin: 12px 0 6px; color: #374151; }
input, select, textarea { width: 100%; border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; font-size: 14px; font-family: inherit; background: #fff; }
textarea { min-height: 88px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 0; border-radius: 8px; padding: 9px 14px; cursor: pointer; font-size: 14px; background: var(--brand); color: #fff; }
.btn:hover { background: var(--brand-dark); }
.btn-ghost { background: #fff; color: var(--ink); border: 1px solid var(--line); }
.btn-danger { background: #b91c1c; }
.btn-sm { padding: 6px 10px; font-size: 12px; }
.alert { padding: 10px 12px; border-radius: 8px; margin: 12px 0; font-size: 13px; }
.alert-error { background: #fef2f2; color: var(--err); }
.alert-ok { background: #ecfdf5; color: var(--ok); }
.check-list { list-style: none; padding: 0; }
.check-list li { padding: 6px 0; }
.ok { color: var(--ok); }
.bad { color: var(--err); }
.layout { display: grid; grid-template-columns: 232px 1fr; min-height: 100vh; }
.side { background: #1b1f2a; color: #d1d5db; padding: 20px 14px; }
.side a { color: #d1d5db; display: block; padding: 10px 12px; border-radius: 8px; margin-bottom: 4px; }
.side a.active, .side a:hover { background: rgba(249,77,46,.18); color: #fff; }
.side .logo { color: #fff; font-weight: 700; padding: 8px 12px 18px; }
.main { padding: 24px 28px 40px; }
.top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 18px; }
.card { background: var(--card); border-radius: 12px; padding: 16px; box-shadow: 0 1px 2px rgba(0,0,0,.04); }
.stat { font-size: 28px; font-weight: 700; }
.table-wrap { overflow: auto; }
table { width: 100%; border-collapse: collapse; background: #fff; }
th, td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; font-size: 13px; vertical-align: top; }
th { color: var(--muted); font-weight: 600; background: #fafafa; }
.row { display: flex; gap: 10px; flex-wrap: wrap; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.plugins { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.plugins label { display: flex; align-items: center; gap: 8px; margin: 0; }
.plugins input { width: auto; }
.tag { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: 12px; }
.tag-ok { background: #ecfdf5; color: var(--ok); }
.tag-off { background: #f3f4f6; color: #6b7280; }
.tag-warn { background: #fffbeb; color: var(--warn); }
.toolbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; gap: 12px; }
.actions { display: flex; gap: 6px; }
.hint { font-size: 12px; color: var(--muted); margin-top: 4px; }
@media (max-width: 960px) {
  .layout { grid-template-columns: 1fr; }
  .cards, .grid-2, .plugins { grid-template-columns: 1fr; }
  .side { display: flex; flex-wrap: wrap; gap: 4px; }
}
