/* Admin page — robot visibility + allowlist management */
/* The display rules below would otherwise override the hidden attribute. */
[hidden] { display: none !important; }

.admin-loading {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0a0e16;
  color: #7d8aa3;
  font-size: 14px;
}

.admin-main {
  max-width: 720px;
  margin: 24px auto;
  padding: 0 16px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.admin-card {
  background: var(--bg-2, #161b27);
  border: 1px solid var(--line, #2c3447);
  border-radius: 10px;
  padding: 20px;
}
.admin-card h2 { margin: 0 0 4px; font-size: 15px; }
.admin-hint { margin: 0 0 14px; font-size: 12px; color: var(--muted, #7d8aa3); }

.robot-checks {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 6px;
}
.robot-check {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  padding: 6px 8px;
  border-radius: 6px;
  cursor: pointer;
}
.robot-check:hover { background: rgba(78, 163, 255, 0.08); }
.robot-check .chip { font-size: 10px; color: var(--muted, #7d8aa3); }
.robot-check .lic {
  margin-left: auto;
  font-size: 10px;
  padding: 2px 8px;
  border-radius: 999px;
  color: #4ade80;
  border: 1px solid rgba(74, 222, 128, 0.35);
  white-space: nowrap;
}
.robot-check .lic-warn {
  color: #fbbf24;
  border-color: rgba(251, 191, 36, 0.4);
}

.allow-form { display: flex; gap: 8px; margin-bottom: 12px; }
.allow-form input {
  flex: 1;
  padding: 8px 10px;
  border-radius: 6px;
  border: 1px solid var(--line, #2c3447);
  background: #0e1320;
  color: var(--text, #e0e6f0);
  font-size: 13px;
}
.allow-form input:focus { outline: none; border-color: #4ea3ff; }
.allow-form button { padding: 8px 16px; }

.allow-list { list-style: none; margin: 0; padding: 0; }
.allow-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 7px 4px;
  font-size: 13px;
  border-bottom: 1px solid var(--line, #2c3447);
}
.allow-list li:last-child { border-bottom: none; }
.allow-list .remove-btn {
  font-size: 11px;
  color: #ff6a6a;
  background: none;
  border: 1px solid rgba(255, 106, 106, 0.4);
  border-radius: 999px;
  padding: 3px 10px;
  cursor: pointer;
}
.allow-list .remove-btn:hover { background: rgba(255, 106, 106, 0.1); }
.allow-list .empty { color: var(--muted, #7d8aa3); justify-content: center; }

.admin-status { min-height: 16px; margin-top: 10px; font-size: 12px; color: var(--muted, #7d8aa3); }
.admin-status.err { color: #ff6a6a; }
