/* Admin API Keys */
.apiKeysToolbar {
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.apiKeysPrimaryBtn {
  padding: 0.75rem 1.5rem;
  background: #007bff;
  color: #ffffff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: background 0.2s;
}

.apiKeyCreatedAlert {
  margin-bottom: 2rem;
  padding: 1.5rem;
  background: #fff3cd;
  border: 2px solid #ffc107;
  border-radius: 8px;
}

.apiKeyCreatedTitle {
  margin-top: 0;
  margin-bottom: 0.75rem;
  color: #856404;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.apiKeyCreatedNote {
  margin-bottom: 1rem;
  color: #856404;
  font-size: 0.9rem;
}

.apiKeyInlineIconMr8 {
  margin-right: 0.5rem;
}

.apiKeyCreatedRow {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.apiKeyDisplayInput {
  flex: 1;
  padding: 0.75rem;
  border: 2px solid #ffc107;
  border-radius: 6px;
  font-family: monospace;
  font-size: 0.95rem;
  background: #ffffff;
}

.apiKeyCopyBtn {
  padding: 0.75rem 1.5rem;
  background: #28a745;
  color: #ffffff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: background 0.2s;
  white-space: nowrap;
}

/* コピー成功フィードバック（旧インライン style と同値、CSP 対応でクラス切替） */
.apiKeyCopyBtn.apiKeyCopyBtn--copied {
  background: #218838;
}

.apiKeyFormCard {
  margin-bottom: 2rem;
  padding: 1.5rem;
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  display: none;
}

/* 表示切替は class のみ（CSP: style-src に unsafe-inline なし。JS で style.display 禁止） */
.apiKeyFormCard.apiKeyFormCard--open {
  display: block;
}

.apiKeyFormTitle {
  margin-top: 0;
}

.apiKeyPermTitle {
  font-weight: 600;
  margin-bottom: 8px;
}

.apiKeyPermGroup {
  margin-bottom: 1.5rem;
}

.apiKeyPermGroupTitle {
  font-size: 1rem;
  margin-bottom: 0.75rem;
  color: #495057;
}

.apiKeyPermGrid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 10px;
}

.apiKeyPermBadges {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.apiKeyDeleteForm {
  margin: 0;
}

.apiKeyDeleteBtn {
  padding: 6px 12px;
  background: #dc3545;
  color: #ffffff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 600;
}

.apiKeysTableCard {
  padding: 1.5rem;
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.apiKeysTableTitle {
  margin-top: 0;
  margin-bottom: 1.5rem;
}

.apiKeysTableCellName {
  font-weight: 600;
}

/* COLORS.neutralMuted と同一（旧インライン cellStyle 相当） */
.apiKeysTableCellMuted {
  font-size: 0.85rem;
  color: #6e6e73;
}
