.ai-center-layout {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.ai-center-card {
  padding: 16px;
}

.ai-center-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ai-center-tab {
  appearance: none;
  border: 1px solid rgba(148, 163, 184, 0.2);
  background: #ffffff;
  color: #334155;
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.ai-center-tab--active {
  background: #dbeafe;
  color: #1d4ed8;
  border-color: rgba(59, 130, 246, 0.28);
}

.ai-center-head {
  align-items: center;
}

.ai-center-meta {
  margin-top: 4px;
  font-size: 12px;
  font-weight: 600;
  color: #64748b;
}

.ai-center-actions {
  margin-left: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ai-center-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0 2px;
}

.ai-center-filter-chip {
  appearance: none;
  border: 1px solid rgba(148, 163, 184, 0.22);
  background: #f8fafc;
  color: #334155;
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.16s ease, border-color 0.16s ease, color 0.16s ease;
}

.ai-center-filter-chip:hover {
  background: #eef2ff;
  border-color: rgba(99, 102, 241, 0.26);
}

.ai-center-filter-chip--active {
  background: #dbeafe;
  color: #1d4ed8;
  border-color: rgba(59, 130, 246, 0.28);
}

.ai-center-log-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ai-center-log-item {
  padding: 12px;
  border-radius: 12px;
  background: #f8fafc;
  border: 1px solid rgba(148, 163, 184, 0.14);
}

.ai-center-log-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.ai-center-log-meta {
  margin-top: 6px;
  font-size: 12px;
  font-weight: 600;
  color: #64748b;
}

.ai-center-log-text {
  margin-top: 8px;
  font-size: 14px;
  color: #0f172a;
  white-space: pre-wrap;
  word-break: break-word;
}

.ai-center-log-result {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.ai-center-log-result--blocked {
  background: #fee2e2;
  color: #b91c1c;
}

.ai-center-log-result--executed {
  background: #dcfce7;
  color: #166534;
}

.ai-center-report {
  min-height: 120px;
}

.ai-report-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.ai-report-copy-btn {
  border: none;
  background: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  min-height: 28px;
  padding: 4px 6px;
  cursor: pointer;
  font-size: 16px;
  font-weight: 700;
  color: #475569;
  opacity: 0.7;
  transition: opacity 0.15s ease, color 0.15s ease;
}

.ai-report-copy-btn:hover:not(:disabled) {
  opacity: 1;
  color: #0f172a;
}

.ai-report-copy-btn:disabled {
  cursor: default;
  opacity: 0.38;
}

.ai-center-report-text {
  margin: 0;
  white-space: pre-wrap;
  word-break: break-word;
  font: inherit;
  font-size: 14px;
  line-height: 1.55;
  color: #0f172a;
}

.ai-chat-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ai-chat-item {
  padding: 12px;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  background: #f8fafc;
}

.ai-chat-item--user {
  background: #eff6ff;
}

.ai-chat-item--assistant {
  background: #f8fafc;
}

.ai-chat-role {
  font-size: 12px;
  font-weight: 700;
  color: #64748b;
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.ai-chat-text {
  white-space: pre-wrap;
  word-break: break-word;
  color: #0f172a;
  line-height: 1.5;
}

.ai-chat-compose {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ai-chat-input {
  min-height: 120px;
  resize: vertical;
}

.ai-center-case-select {
  min-width: 240px;
}

.ai-owner-test-current {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ai-owner-test-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.ai-owner-test-block {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 2px;
}

.ai-owner-test-label {
  font-size: 12px;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.ai-owner-test-steps,
.ai-owner-test-errors {
  margin: 0;
  padding-left: 18px;
  color: #0f172a;
}

.ai-owner-test-history {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ai-owner-test-history-item {
  padding: 12px;
  border-radius: 12px;
  background: #f8fafc;
  border: 1px solid rgba(148, 163, 184, 0.14);
}

.ai-owner-test-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.ai-owner-test-status--pending {
  background: #f1f5f9;
  color: #334155;
}

.ai-owner-test-status--ok {
  background: #dcfce7;
  color: #166534;
}

.ai-owner-test-status--error {
  background: #fee2e2;
  color: #b91c1c;
}

.ai-owner-test-result {
  font-size: 14px;
  font-weight: 700;
}

.ai-owner-test-result--ok {
  color: #166534;
}

.ai-owner-test-result--error {
  color: #b91c1c;
}
