.api-document { --surface: var(--panel); --soft: var(--hover); }

.key-manager {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
}
.key-manager button {
  padding: 9px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bg);
  color: var(--text);
  font: inherit;
  cursor: pointer;
}
.key-manager button:disabled {
  opacity: 0.5;
  cursor: default;
}
.key-manager button:focus-visible,
.key-manager input:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.key-manager label {
  display: block;
  margin-bottom: 10px;
  font-weight: 600;
}
.key-create-row {
  display: flex;
  gap: 10px;
}
.key-create-row input {
  flex: 1;
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bg);
  color: var(--text);
  font: inherit;
}
.key-create-row button {
  background: var(--accent);
  color: var(--bg);
  flex-shrink: 0;
}
.key-list {
  margin: 24px 0;
}
.key-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.key-details {
  display: flex;
  flex-wrap: wrap;
  min-width: 0;
  gap: 8px;
}
.key-details strong {
  overflow-wrap: anywhere;
}
.key-state,
.key-details small {
  color: var(--muted);
}
.key-details small,
.key-value {
  width: 100%;
}
.key-value {
  white-space: normal;
  overflow-wrap: anywhere;
  user-select: all;
}
.key-actions,
.key-pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.key-actions {
  flex-shrink: 0;
}
.key-pagination {
  margin-bottom: 16px;
}
#key-status:empty {
  display: none;
}
@media (max-width: 900px) {
  .key-row {
    align-items: stretch;
    flex-direction: column;
  }
}
@media (max-width: 480px) {
  .key-manager {
    padding: 16px;
  }
  .key-create-row {
    flex-direction: column;
  }
}

.pricing-assistant {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 24px;
  background: var(--surface);
}
.pricing-assistant-heading {
  display: flex;
  align-items: center;
  gap: 14px;
}
.pricing-assistant-heading > span {
  font-size: 30px;
  color: var(--accent);
}
.pricing-assistant-heading h3 {
  margin: 0;
  font-size: 19px;
}
.pricing-assistant-heading p {
  margin: 4px 0;
  color: var(--muted);
}
.pricing-suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 20px 0;
}
.pricing-suggestions button {
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--bg);
  color: var(--text);
  text-align: left;
  cursor: pointer;
}
#pricing-chat {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg);
  padding: 12px;
}
#pricing-question {
  width: 100%;
  border: 0;
  outline: none;
  background: transparent;
  color: var(--text);
  padding: 4px;
  resize: vertical;
  min-height: 70px;
  font: inherit;
}
#pricing-chat:focus-within {
  border-color: var(--accent);
}
.pricing-compose-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  color: var(--muted);
  font-size: 14px;
}
.pricing-compose-footer button {
  border: 0;
  border-radius: 8px;
  padding: 10px 18px;
  background: var(--accent);
  color: var(--bg);
  cursor: pointer;
  white-space: nowrap;
}
.pricing-compose-footer button:disabled {
  opacity: 0.55;
  cursor: wait;
}
#pricing-messages:empty,
#pricing-chat-status:empty {
  display: none;
}
#pricing-messages {
  max-height: 520px;
  overflow-y: auto;
  margin-bottom: 20px;
}
.pricing-message {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  padding: 15px;
  border-radius: 12px;
  margin-bottom: 10px;
  line-height: 1.75;
}
.pricing-message.user {
  background: var(--soft);
  margin-left: 12%;
}
.pricing-message.assistant {
  background: var(--bg);
  border: 1px solid var(--line);
}
.pricing-model {
  border: 1px solid var(--line);
  border-radius: 10px;
  margin: 10px 0;
  padding: 16px;
}
.pricing-model summary {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  cursor: pointer;
}
.pricing-model summary span {
  color: var(--accent);
  white-space: nowrap;
}
.pricing-model p,
#pricing-source {
  color: var(--muted);
  font-size: 15px;
}
.pricing-model table {
  width: 100%;
}
