/* Vanta 制卡端 · 独立极简风（不沿用任何其他品牌样式） */
:root {
  --bg: #f7f8fa;
  --panel: #ffffff;
  --text: #1f2329;
  --dim: #6b7280;
  --line: #e3e6ea;
  --accent: #2563eb;
  --accent-soft: #eef4ff;
  --danger: #dc2626;
  --radius: 12px;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 14px;
  line-height: 1.65;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
button, .button {
  font: inherit;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--text);
  padding: 8px 16px;
  cursor: pointer;
  transition: border-color .15s, background .15s;
}
button:hover, .button:hover { border-color: var(--accent); }
.button.primary, button.primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.button.secondary { background: #fff; }
.button.danger, button.danger { color: var(--danger); border-color: #f3caca; }
input, select, textarea {
  font: inherit;
  color: var(--text);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 9px 12px;
  outline: none;
}
input:focus, select:focus, textarea:focus { border-color: var(--accent); }
.admin-layout { display: flex; min-height: 100vh; }
.sidebar {
  width: 230px;
  background: var(--panel);
  border-right: 1px solid var(--line);
  padding: 22px 16px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.sidebar-brand { display: flex; align-items: center; gap: 10px; }
.sidebar-brand img { width: 40px; height: 40px; border-radius: 8px; }
.sidebar-brand strong { font-size: 18px; letter-spacing: .5px; }
.sidebar-brand small { display: block; color: var(--dim); font-size: 11px; }
.side-nav { display: grid; gap: 4px; }
.nav-link {
  display: flex; align-items: center; gap: 8px;
  padding: 9px 12px; border-radius: 8px; color: var(--dim);
}
.nav-link:hover { background: var(--accent-soft); color: var(--accent); text-decoration: none; }
.nav-link.active { background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.sidebar-bottom { margin-top: auto; color: var(--dim); font-size: 12px; }
.sidebar-bottom .wide { width: 100%; }
.workspace { flex: 1; padding: 26px 30px; max-width: 1080px; }
.workspace-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px; }
.workspace-header h1 { font-size: 22px; margin: 0; }
.workspace-header small { color: var(--dim); }
.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  margin-bottom: 20px;
}
.panel h2 { font-size: 17px; margin: 0 0 6px; }
.section-kicker { color: var(--dim); font-size: 11px; letter-spacing: .12em; }
.muted, .field-help, .dim { color: var(--dim); }
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 20px; }
.stat-card {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 14px 16px;
}
.stat-card .stat-k { color: var(--dim); font-size: 12px; }
.stat-card .stat-v { font-size: 24px; font-weight: 700; margin-top: 4px; }
.license-card {
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px; margin-bottom: 14px; background: var(--panel);
}
.license-card-header { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.license-hint { font-family: "SFMono-Regular", Consolas, monospace; font-size: 13px; }
.license-full .license-key {
  font-family: "SFMono-Regular", Consolas, monospace; font-size: 13px;
  background: #f4f5f7; border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px;
}
.license-meta { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px 16px; margin: 12px 0; }
.license-meta dt { color: var(--dim); font-size: 12px; }
.license-meta dd { margin: 0; font-size: 13px; }
.license-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.status-badge { font-size: 12px; padding: 2px 8px; border-radius: 999px; border: 1px solid currentColor; }
.status-active { color: #15803d; }
.status-unused { color: var(--accent); }
.status-revoked { color: var(--danger); }
.status-expired { color: var(--dim); }
.generated-card {
  display: block; font-family: Consolas, monospace; font-size: 15px;
  background: #f4f5f7; border: 1px dashed var(--accent); border-radius: 8px;
  padding: 12px; margin: 12px 0; word-break: break-all;
}
.form-message { color: var(--danger); min-height: 20px; }
.toast { position: fixed; right: 20px; bottom: 20px; background: #111827; color: #fff; padding: 10px 16px; border-radius: 8px; }
.toast.success { background: #15803d; }
.toast.error { background: var(--danger); }
.empty-state, .loading-state { text-align: center; color: var(--dim); padding: 30px 0; }
.password-form, .background-actions { display: grid; gap: 12px; max-width: 460px; }
.background-preview {
  background: #111827; border-radius: var(--radius); overflow: hidden;
  aspect-ratio: 16/9; display: flex; align-items: center; justify-content: center;
}
.background-preview img, .background-preview video { width: 100%; height: 100%; object-fit: cover; }
.dialog { border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; background: var(--panel); }
.dialog::backdrop { background: rgba(15, 23, 42, .4); }
.dialog-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 16px; }
.session-label { color: var(--dim); font-size: 12px; }
.online-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #22c55e; margin-right: 6px; }
@media (max-width: 900px) {
  .sidebar { width: 64px; padding: 16px 8px; }
  .sidebar-brand strong, .sidebar-brand small, .side-nav .nav-link span:last-child, .sidebar-bottom p { display: none; }
  .workspace { padding: 18px 14px; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .license-meta { grid-template-columns: 1fr 1fr; }
}

/* 极简：不显示任何插画/背景素材 */
[data-brand-asset], .license-art, .empty-state img { display: none !important; }
