:root .integration-page[data-v-ffc66f2c] {
  min-height: 100%;
  padding: 24px;
  color: var(--crm-text);
  background: var(--crm-page);
}
:root .integration-page__header[data-v-ffc66f2c] {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}
:root .integration-page__header h1[data-v-ffc66f2c] {
  margin: 0;
  font-size: 32px;
  line-height: 1.25;
}
:root .integration-page__header p[data-v-ffc66f2c] {
  margin: 8px 0 0;
  font-size: 14px;
  color: var(--crm-text-secondary);
}
:root .integration-grid[data-v-ffc66f2c] {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: start;
  gap: 16px;
}
:root .integration-card[data-v-ffc66f2c] {
  min-width: 0;
  padding: 24px;
  background: var(--crm-surface);
  border: 1px solid var(--crm-border);
  border-radius: 16px;
  box-shadow: var(--crm-layer-shadow);
}
:root .integration-card--ai[data-v-ffc66f2c] {
  grid-column: 2;
  grid-row: 1/span 2;
}
:root .integration-card--deepseek[data-v-ffc66f2c] {
  grid-column: 3;
  grid-row: 1/span 2;
}
:root .integration-card--usage[data-v-ffc66f2c] {
  grid-column: 1/-1;
}
:root .usage-provider-grid[data-v-ffc66f2c] {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 24px;
}
:root .usage-provider-card[data-v-ffc66f2c] {
  min-width: 0;
  padding: 18px;
  background: var(--crm-page);
  border: 1px solid var(--crm-border);
  border-radius: 14px;
}
:root .usage-provider-card__heading[data-v-ffc66f2c],
:root .usage-detail-row[data-v-ffc66f2c],
:root .quota-editor[data-v-ffc66f2c] {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
:root .usage-provider-card__heading > div[data-v-ffc66f2c] {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 4px;
}
:root .usage-provider-card__heading > div span[data-v-ffc66f2c] {
  font-size: 13px;
  color: var(--crm-text-secondary);
}
:root .usage-metrics[data-v-ffc66f2c] {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 18px 0;
}
:root .usage-metrics > div[data-v-ffc66f2c] {
  display: flex;
  min-width: 0;
  padding: 12px;
  background: var(--crm-surface);
  border: 1px solid var(--crm-border);
  border-radius: 10px;
  flex-direction: column;
  gap: 5px;
}
:root .usage-metrics span[data-v-ffc66f2c] {
  font-size: 12px;
  color: var(--crm-text-secondary);
}
:root .usage-metrics strong[data-v-ffc66f2c] {
  overflow-wrap: anywhere;
}
:root .usage-detail-row[data-v-ffc66f2c],
:root .usage-caption[data-v-ffc66f2c] {
  font-size: 12px;
  line-height: 1.6;
  color: var(--crm-text-secondary);
}
:root .usage-caption[data-v-ffc66f2c] {
  margin: 12px 0 0;
}
:root .quota-editor[data-v-ffc66f2c] {
  margin-top: 16px;
  font-size: 13px;
}
:root .ai-config-form[data-v-ffc66f2c] {
  margin-top: 24px;
}
:root .ai-config-form small[data-v-ffc66f2c] {
  display: block;
  margin-top: 6px;
  color: var(--crm-text-secondary);
}
:root .ai-config-form__row[data-v-ffc66f2c] {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
:root .ai-config-form__row[data-v-ffc66f2c] > :last-child {
  grid-column: 1/-1;
}
:root .ai-config-form__endpoint[data-v-ffc66f2c] {
  gap: 16px;
  margin-top: 0;
}
:root .ai-config-form__endpoint span[data-v-ffc66f2c] {
  flex-shrink: 0;
}
:root .ai-config-form__endpoint strong[data-v-ffc66f2c] {
  min-width: 0;
  overflow-wrap: anywhere;
  text-align: right;
}
:root .integration-card__title[data-v-ffc66f2c] {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 16px;
  align-items: center;
}
:root .integration-card__title h2[data-v-ffc66f2c] {
  margin: 0;
  font-size: 20px;
}
:root .integration-card__title p[data-v-ffc66f2c] {
  margin: 4px 0 0;
  font-size: 14px;
  color: var(--crm-text-secondary);
}
:root .integration-card__title > .el-tag[data-v-ffc66f2c],
:root .integration-card__actions[data-v-ffc66f2c] {
  grid-column: 1/-1;
  justify-self: start;
}
:root .integration-card__icon[data-v-ffc66f2c] {
  display: grid;
  width: 44px;
  height: 44px;
  color: var(--crm-primary);
  background: var(--crm-primary-soft);
  border-radius: 12px;
  place-items: center;
}
:root .integration-card__actions[data-v-ffc66f2c] {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}
:root .integration-card__facts[data-v-ffc66f2c] {
  display: flex;
  justify-content: space-between;
  padding: 16px 0;
  margin: 24px 0 16px;
  font-size: 14px;
  border-top: 1px solid var(--crm-border);
  border-bottom: 1px solid var(--crm-border);
}
:root .integration-card__facts span[data-v-ffc66f2c] {
  color: var(--crm-text-secondary);
}
:root .integration-card__note[data-v-ffc66f2c] {
  margin: 0;
  font-size: 14px;
  line-height: 1.7;
  color: var(--crm-text-secondary);
}
@media (width <= 1200px) {
:root .integration-grid[data-v-ffc66f2c] {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}
:root .integration-card--ai[data-v-ffc66f2c],
  :root .integration-card--deepseek[data-v-ffc66f2c] {
    grid-column: auto;
    grid-row: auto;
}
:root .usage-provider-grid[data-v-ffc66f2c] {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}
:root .usage-metrics[data-v-ffc66f2c] {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}
}
@media (width <= 760px) {
:root .integration-page[data-v-ffc66f2c] {
    padding: 16px;
}
:root .integration-grid[data-v-ffc66f2c] {
    grid-template-columns: 1fr;
}
:root .ai-config-form__row[data-v-ffc66f2c] {
    grid-template-columns: 1fr;
}
:root .usage-provider-grid[data-v-ffc66f2c] {
    grid-template-columns: 1fr;
}
:root .usage-metrics[data-v-ffc66f2c] {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}
:root .quota-editor[data-v-ffc66f2c],
  :root .usage-detail-row[data-v-ffc66f2c] {
    align-items: stretch;
    flex-direction: column;
}
:root .integration-card__actions[data-v-ffc66f2c] {
    align-items: center;
}
:root .integration-page__header[data-v-ffc66f2c] {
    align-items: stretch;
    flex-direction: column;
}
}