.localAdvancedConfigFieldRow {
  flex-direction: row;
  align-items: flex-start;
  gap: 4px;
}

.localAdvancedConfigLabelRow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}
/* ---- Page Layout ---- */
.settingsPage {
  height: 100%;
  padding: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* ---- Page Header (breadcrumb style) ---- */
.pageHeader {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  padding: 20px;
  border-bottom: 1px solid #eae9e7;
  margin-bottom: 0;
  flex-shrink: 0;
}

/* ---- Scrollable Content ---- */
.content {
  flex: 1;
  overflow-y: auto;
  min-height: 0;
}

.breadcrumbHeader {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  flex: 1;
}

.breadcrumbParent {
  color: #999;
  font-weight: 400;
}

.breadcrumbSeparator {
  color: #ccc;
  margin: 0 4px;
}

.breadcrumbCurrent {
  color: #333;
  font-weight: 600;
  font-size: 20px;
}

.loading {
  text-align: center;
  padding: 60px;
}

.loadingText {
  color: #999;
}

/* ---- Sections ---- */

.section {
  margin-bottom: 32px;
}

.section:last-child {
  margin-bottom: 0;
}

.sectionTitle {
  margin-bottom: 4px;
  font-size: 24px;
  font-weight: 600;
}

.sectionDesc {
  margin: 0 0 24px;
  color: #999;
  font-size: 14px;
}

/* ---- Providers Block (LLM below, providers below) ---- */

.providersBlock {
  margin-top: 32px;
}

/* ---- Provider Groups ---- */

.providerGroup {
  padding: 0 16px;

  &:last-of-type {
    margin-bottom: 0;
  }
}

.providerGroupTitle {
  font-size: 14px;
  font-weight: 600;
  color: #666;
  margin: 0 0 12px;
  letter-spacing: 0.02em;
}

.subSectionTitle {
  font-size: 12px;
  font-weight: 500;
  color: #9ca3af;
  margin: 16px 0 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.subSectionTitle::after {
  content: "";
  flex: 1;
  height: 1px;
  background: #e5e7eb;
}

/* ---- Provider Cards ---- */

.providerCards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
  gap: 16px;
  margin-bottom: 16px;
}

.configuredCount {
  font-size: 12px;
  font-weight: 400;
  color: #10b981;
  margin-left: 8px;
}

.availableHint {
  font-size: 12px;
  font-weight: 400;
  color: #9ca3af;
  margin-left: 8px;
}

.emptyConfigured {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 24px;
  border: 2px dashed #e5e7eb;
  border-radius: 12px;
  margin-bottom: 24px;
  text-align: center;
}
.emptyConfigured p {
  font-size: 14px;
  color: #6b7280;
  margin-bottom: 16px;
}

.availableGrid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 8px;
}

.availableItem {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border: 1px solid #f3f4f6;
  border-radius: 8px;
  background: #fafafa;
  cursor: pointer;
  transition: all 0.15s ease;
}
.availableItem:hover {
  background: #fff;
  border-color: #6366f1;
  box-shadow: 0 2px 8px rgba(99, 102, 241, 0.1);
}

.availableItemName {
  font-size: 13px;
  font-weight: 500;
  flex: 1;
  color: #1a1a1a;
}

.availableItemAction {
  font-size: 11px;
  color: #6366f1;
  font-weight: 500;
  white-space: nowrap;
}

.variantList {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.variantItem {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 8px;
  background: #f8f9fa;
  cursor: pointer;
  transition: all 0.2s;

  &:hover {
    background: #eef2ff;
    transform: translateX(4px);
  }
}

.variantItemName {
  font-size: 14px;
  font-weight: 500;
  color: #1f2937;
  flex: 1;
}

.providerCard {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: 14px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  transition: all 0.2s;
  cursor: pointer;
  position: relative;
  overflow: visible;
  display: flex;
  flex-direction: column;
  padding: 22px;
  padding-bottom: 64px;
  box-shadow: none;

  &:hover {
    border-color: rgba(99, 102, 241, 0.15);
  }

  :global(.ant-card-body) {
    display: flex;
    flex-direction: column;
    flex: 1;
    height: 100%;
    padding: 0 !important;
  }
}

/* Card Status Header */
.cardStatusHeader {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 12px;
}

.statusDot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

.statusText {
  font-size: 12px;
  font-weight: 500;

  &.enabled {
    color: rgba(20, 184, 166, 1);
  }

  &.partial {
    color: #faad14;
  }

  &.disabled {
    color: #999;
  }
}

/* Card Header Row (Icon + Status) */
.cardHeaderRow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

/* Provider Icon */
.providerIcon {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  object-fit: cover;
  flex-shrink: 0;
}

/* Card Title Row */
.cardTitleRow {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.cardName {
  font-size: 16px;
  font-weight: 600;
  color: #1a1a1a;
}

/* Tags */
.builtinTag {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 500;
  background-color: rgba(0, 0, 0, 0.06);
  color: rgba(0, 0, 0, 0.65);
}

.customTag {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 500;
  background-color: rgba(255, 247, 230, 0.8);
  color: #ff7f16;
  border: 1px solid rgba(255, 127, 22, 0.2);
}

.freeTag {
  display: inline-flex;
  align-items: center;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.5px;
  background: linear-gradient(135deg, #10b981, #059669);
  color: #fff;
}

.localTag {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 500;
  background-color: rgba(29, 212, 215, 0.15);
  color: rgba(29, 212, 215, 1);
}

.statusContainer {
  display: flex;
  align-items: center;
  gap: 8px;

  .statusText {
    font-size: 12px;
    font-weight: 500;

    &.enabled {
      color: rgba(20, 184, 166, 1);
    }

    &.partial {
      color: #faad14;
    }

    &.disabled {
      color: #999;
    }
  }
}

.cardBody {
  padding: 20px 24px;
}

.cardHeader {
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;

  :global {
    .ant-badge-status-success .ant-badge-status-text {
      color: #52c41a !important;
    }

    .ant-badge-status-error .ant-badge-status-text {
      color: #ff4d4f !important;
    }
  }
}

.cardName {
  font-size: 18px;
  font-weight: 600;
  color: #1a1a1a;
}

.cardInfo {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 12px;
}

.infoRow {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
}

.infoLabel {
  color: rgba(0, 0, 0, 0.45);
  min-width: 60px;
  flex-shrink: 0;
  font-weight: 400;
}

.infoValue {
  color: rgba(0, 0, 0, 0.65);
  font-family: "SF Mono", "Menlo", monospace;
  font-size: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1;
  min-width: 0;
}

.infoEmpty {
  color: rgba(0, 0, 0, 0.25);
  font-style: italic;
}

.inlineKeyInput {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 1;
  min-width: 0;
}

/* Card Actions */
.cardActions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  position: absolute;
  bottom: 16px;
  left: 16px;
  right: 16px;
  background: #fff;
  z-index: 10;
}

.actionBtn {
  flex: 1;
  height: 32px;
  font-size: 13px;
  border-radius: 6px;
}

/* ---- Provider Group Card (Glass + Segmented) ---- */

.groupCardGlass {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: 14px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  padding: 22px;
  transition: all 0.2s;
  cursor: default;

  &:hover {
    border-color: rgba(99, 102, 241, 0.15);
  }
}

.groupCardHeader {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.groupCardName {
  font-size: 17px;
  font-weight: 600;
  flex: 1;
  color: #1a1a1a;
}

.groupCardLiveBadge {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  color: #14b8a6;
  font-weight: 500;
}

.groupCardPulse {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #14b8a6;
  animation: groupPulse 2s infinite;
}

@keyframes groupPulse {
  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.4;
  }
}

/* Segmented Control */
.groupSegmented {
  display: flex;
  background: rgba(0, 0, 0, 0.04);
  border-radius: 10px;
  padding: 3px;
  gap: 2px;
  margin-bottom: 18px;
  overflow-x: auto;
}

.groupSegBtn {
  flex: 1;
  padding: 7px 6px;
  text-align: center;
  font-size: 11px;
  font-weight: 500;
  color: #888;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;

  &:hover {
    color: #555;
  }
}

.groupSegBtnActive {
  background: rgba(99, 102, 241, 0.12);
  color: #6366f1;
}

.groupSegDot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  flex-shrink: 0;
}

.groupSegDotOn {
  background: #14b8a6;
}

.groupSegDotOff {
  background: #ef4444;
}

/* Content */
.groupCardContent {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 16px;
}

.groupCardField {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.groupCardFieldLabel {
  font-size: 10px;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.groupCardFieldValue {
  font-size: 13px;
  color: #333;
}

.groupCardMono {
  font-family: "SF Mono", "Fira Code", monospace;
  font-size: 12px;
  color: #666;
  background: rgba(0, 0, 0, 0.03);
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid rgba(0, 0, 0, 0.04);
  display: flex;
  align-items: center;
  justify-content: space-between;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.groupCardChangeBtn {
  font-size: 11px;
  color: #6366f1;
  cursor: pointer;
  font-family:
    "Inter",
    -apple-system,
    sans-serif;
  flex-shrink: 0;
  margin-left: 8px;

  &:hover {
    color: #4f46e5;
  }
}

.groupCardKeyInput {
  display: flex;
  gap: 8px;
}

/* Actions */
.groupCardActions {
  display: flex;
  gap: 8px;
  padding-top: 14px;
  border-top: 1px solid rgba(0, 0, 0, 0.04);
}

.groupCardActBtn {
  padding: 7px 14px;
  background: rgba(0, 0, 0, 0.03);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 8px;
  color: #666;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.15s;
  font-family: inherit;

  &:hover {
    border-color: rgba(99, 102, 241, 0.3);
    color: #6366f1;
  }
}

.groupCardActBtnDanger {
  color: #ef4444;
  border-color: rgba(239, 68, 68, 0.2);

  &:hover {
    border-color: rgba(239, 68, 68, 0.5);
    color: #dc2626;
    background: rgba(239, 68, 68, 0.04);
  }
}

/* ---- Modal Footer ---- */

.modalFooter {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modalFooterLeft {
  display: flex;
  align-items: center;
  gap: 8px;
}

.modalFooterRight {
  display: flex;
  align-items: center;
  gap: 8px;
}

.advancedConfigSection {
  margin-top: 4px;
  border-top: 1px solid #f0f0f0;
  padding-top: 16px;
}

.advancedConfigToggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 0;
  background: transparent;
  padding: 0 0 12px;
  cursor: pointer;
  color: #333;
}

.advancedConfigToggleLabel {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
}

.jsonEditorContainer {
  position: relative;
  width: 100%;
  min-width: 0;
  flex: 1 1 auto;
  border: 1px solid #d9d9d9;
  border-radius: 8px;
  overflow: hidden;
  background: #fafbfc;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;

  &:focus-within {
    border-color: #ff7f16;
    box-shadow: 0 0 0 2px rgba(97, 92, 237, 0.12);
  }
}

.jsonEditorSpacing {
  margin-top: 8px;
}

.jsonEditorCompact {
  .jsonEditorHighlight,
  .jsonEditorTextarea {
    min-height: 100px;
  }
}

.jsonEditorExpanded {
  .jsonEditorHighlight,
  .jsonEditorTextarea {
    min-height: 140px;
  }
}

.jsonEditorHighlight,
.jsonEditorTextarea {
  margin: 0;
  padding: 12px 14px;
  min-height: 180px;
  font-family: Monaco, "Courier New", monospace;
  font-size: 13px;
  line-height: 1.6;
  white-space: pre-wrap;
  word-break: break-word;
  tab-size: 2;
}

.jsonEditorHighlight {
  color: #6b7280;
  pointer-events: none;
  overflow: auto;
}

.jsonEditorTextarea {
  position: absolute;
  inset: 0;
  width: 100%;
  resize: vertical;
  border: 0;
  outline: 0;
  background: transparent;
  color: transparent;
  caret-color: #1f2328;
  overflow: auto;
  -webkit-text-fill-color: transparent;

  &::placeholder {
    color: transparent;
    -webkit-text-fill-color: transparent;
  }
}

.jsonEditorTokenKey {
  color: #8b5cf6;
}

.jsonEditorTokenString {
  color: #16a34a;
}

.jsonEditorTokenNumber {
  color: #2563eb;
}

.jsonEditorTokenBoolean {
  color: #ea580c;
}

.jsonEditorTokenNull {
  color: #dc2626;
}

.jsonEditorTokenPunctuation {
  color: #6b7280;
}

/* ---- LLM Floating Pill ---- */

.llmPill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px;
  border-radius: 20px;
  cursor: pointer;
  user-select: none;
  transition:
    box-shadow 0.2s,
    background 0.2s;
  margin: 0;
  border: 1.5px solid transparent;
}

.llmPillOn {
  background: linear-gradient(135deg, #ecfdf5, #d1fae5, #fff);
  border-color: #6ee7b7;
  box-shadow: 0 1px 6px rgba(16, 185, 129, 0.12);

  &:hover {
    box-shadow: 0 2px 10px rgba(16, 185, 129, 0.2);
  }
}

.llmPillOff {
  background: linear-gradient(135deg, #fef2f2, #fee2e2, #fff);
  border-color: #fca5a5;
  box-shadow: 0 1px 6px rgba(239, 68, 68, 0.12);

  &:hover {
    box-shadow: 0 2px 10px rgba(239, 68, 68, 0.2);
  }
}

.llmPillDot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  flex-shrink: 0;
}

.llmPillDotOff {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ef4444;
  flex-shrink: 0;
}

.llmPillLabel {
  font-size: 13px;
  color: #6b7280;
  white-space: nowrap;
}

.llmPillValue {
  font-size: 13px;
  font-weight: 600;
  color: #1f2937;
  white-space: nowrap;
}

.llmPillEdit {
  font-size: 12px;
  color: #6366f1;
  font-weight: 500;
  margin-left: 4px;
  white-space: nowrap;
}

.defaultLlmBody {
  padding: 16px 0 0;
}

.llmDescription {
  font-size: 13px;
  color: #9ca3af;
  margin: 0 0 16px;
  line-height: 1.5;
}

/* ---- Panel Section (grouped containers) ---- */

.panelSection {
  background: #fafbfc;
  border: 1px solid #f3f4f6;
  border-radius: 12px;
  padding: 18px;
  margin: 0 16px 16px;
}

.panelSectionDashed {
  background: #fff;
  border: 1px dashed #e5e7eb;
  border-radius: 12px;
  padding: 18px;
  margin: 0 16px 16px;
}

.panelTitle {
  font-size: 13px;
  font-weight: 600;
  color: #6b7280;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.panelDotGreen {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #10b981;
  flex-shrink: 0;
}

.panelDotGray {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #d1d5db;
  flex-shrink: 0;
}

.panelCount {
  font-size: 11px;
  color: #10b981;
  font-weight: 400;
  margin-left: auto;
}

/* ---- Tab Navigation ---- */

.tabsNav {
  display: flex;
  gap: 0;
  border-bottom: 2px solid #f3f4f6;
  margin: 0 16px 16px;
}

.tabItem {
  padding: 10px 20px;
  font-size: 13px;
  font-weight: 500;
  color: #9ca3af;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition:
    color 0.15s,
    border-color 0.15s;
  user-select: none;
}
.tabItem:hover {
  color: #6b7280;
}
.tabItemActive {
  color: #6366f1;
  border-bottom-color: #6366f1;
}

/* ---- Model Slot Sections ---- */

.slotSection {
  padding: 24px;
  margin: 20px;
  background: #ffffff;
  border-radius: 6px;
  border: 1px solid #e8e8e8;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  transition: all 0.2s ease-in-out;

  &:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    border-color: #d9d9d9;
  }
}

.slotHeader {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid #f0f0f0;
}

.slotTitle {
  font-size: 18px;
  font-weight: 600;
  color: #1a1a1a;
}

.slotDescription {
  margin: 8px 0 0;
  color: #6b7280;
  font-size: 13px;
  line-height: 1.6;
}

.slotCurrent {
  font-size: 13px;
  color: #52c41a;
  font-family: "SF Mono", "Menlo", monospace;
  background: #f6ffed;
  padding: 4px 12px;
  border-radius: 20px;
  border: 1px solid #b7eb8f;
}

.slotForm {
  display: flex;
  gap: 20px;
  align-items: flex-end;
  flex-wrap: wrap;

  @media (max-width: 768px) {
    flex-direction: column;
    gap: 16px;
    align-items: stretch;
  }
}

.slotField {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 200px;

  @media (max-width: 768px) {
    min-width: unset;
    width: 100%;
  }
}

.slotActionField {
  flex: 0 0 auto;
  min-width: 120px;
}

.slotLabel {
  font-size: 14px;
  color: #666;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 4px;
}

.visuallyHiddenLabel {
  visibility: hidden;
}

.slotActions {
  display: flex;
  justify-content: flex-end;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid #f0f0f0;
}

/* ---- Section Header Row (title + button) ---- */

.sectionHeaderRow {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 0;
  width: 100%;

  .section {
    flex: 1;
    margin-bottom: 0;
  }
}

.addProviderBtn {
  flex-shrink: 0;
  margin-right: 20px;
}

.headerRight {
  display: flex;
  align-items: center;
  gap: 12px;
}

.providersPageHeader {
  border-bottom: none;
  padding: 20px;
}

/* ---- Search Row ---- */

.searchRow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 16px;
  padding: 0;
}

.searchInput {
  flex: 1;
  max-width: 400px;
}

.searchBtn {
  flex-shrink: 0;
}

/* ---- Model Management Modal ---- */

.localModalIntro {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 4px 0 8px;
}

.localModalTitle {
  font-size: 18px;
  font-weight: 600;
  color: #1a1a1a;
}

.localModalDescription {
  margin-top: 4px;
  color: #6b7280;
  font-size: 13px;
  line-height: 1.6;
  max-width: 420px;
}

.localStatusSummary {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.localSummaryPill {
  min-width: 120px;
  padding: 10px 12px;
  border-radius: 10px;
  background: #f7f8fc;
  border: 1px solid #e6eaf2;
}

.localSummaryLabel {
  display: block;
  color: #8a90a2;
  font-size: 11px;
  line-height: 1.4;
}

.localSummaryValue {
  display: block;
  margin-top: 2px;
  color: #1f2937;
  font-size: 13px;
  font-weight: 600;
}

.localRuntimePanel {
  padding-top: 2px;
}

.localRuntimePanelHeader {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.localSection {
  margin-top: 8px;
}

.localSectionHeader {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 8px;
}

.localSectionTitle {
  font-size: 14px;
  font-weight: 600;
  color: #111827;
}

.localSectionDescription {
  margin-top: 3px;
  color: #6b7280;
  font-size: 12px;
  line-height: 1.5;
}

.localSectionMeta {
  color: #7a7f8f;
  font-size: 12px;
  font-family: "SF Mono", "Menlo", monospace;
}

.localSectionInfoRow {
  margin-top: 8px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-radius: 8px;
  background: #fbfcfe;
  border: 1px solid #edf1f7;
}

.localSectionInfoContent {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  flex: 1;
}

.localSectionInfoLabel {
  color: #6b7280;
  font-size: 12px;
}

.localSectionInfoValue {
  color: #111827;
  font-size: 12px;
  font-weight: 600;
  font-family: "SF Mono", "Menlo", monospace;
  text-align: right;
}

.localSectionInfoContent .localSectionInfoValue {
  text-align: left;
}

.localSectionInfoMeta {
  color: #7a7f8f;
  font-size: 12px;
  font-family: "SF Mono", "Menlo", monospace;
  line-height: 1.5;
}

.localAdvancedConfigSection {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid #f0f0f0;
}

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

.localAdvancedConfigFields {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 12px;
}

.localAdvancedConfigField {
  display: flex;
  flex-direction: column;
}

.localAdvancedConfigLabel {
  color: #111827;
  font-size: 13px;
  font-weight: 600;
}

.localAdvancedConfigHint {
  margin-top: 4px;
  color: #6b7280;
  font-size: 12px;
  line-height: 1.5;
}

.localAdvancedConfigError {
  margin-top: 6px;
  color: #dc2626;
  font-size: 12px;
  line-height: 1.5;
}

.localAdvancedConfigInput {
  width: 100%;
  margin-top: 8px;
}

.localAdvancedConfigChevronOpen,
.localAdvancedConfigChevronClosed {
  font-size: 12px;
  transition: transform 0.2s ease;
}

.localAdvancedConfigChevronOpen {
  transform: rotate(0deg);
}

.localAdvancedConfigChevronClosed {
  transform: rotate(-90deg);
}

.localSectionNotice {
  margin-top: 8px;
  padding: 10px 12px;
  border-radius: 8px;
  background: #fbfcfe;
  border: 1px solid #edf1f7;
  color: #6b7280;
  font-size: 12px;
  line-height: 1.6;
}

.localEngineStatusRow {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.localEngineStatusItem {
  min-width: 0;
  width: 100%;
  padding: 8px 10px;
  border-radius: 8px;
  background: #f8fafc;
  border: 1px solid #edf1f7;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.localEngineMetricLabel {
  display: block;
  color: #7a7f8f;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.4;
}

.localEngineStatusValue {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.localEngineStatusModelName {
  min-width: 0;
  max-width: 160px;
  color: #111827;
  font-size: 12px;
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.localStatusBadge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 22px;
  padding: 0 10px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
}

.localStatusBadgeButton {
  cursor: pointer;
  appearance: none;
  box-sizing: border-box;
  font-family: inherit;
  outline: none;
}

.localStatusBadgeButton:hover {
  filter: brightness(0.98);
}

.localStatusBadgeAction {
  color: #1d4ed8;
  background: #eff6ff;
  border: 1px solid #60a5fa;
  box-shadow: 0 0 0 1px rgba(96, 165, 250, 0.12);
}

.localStatusBadgeInstalled,
.localStatusBadgeRunning {
  color: rgba(20, 184, 166, 1);
  background: #ecfdf5;
  border: 1px solid rgba(20, 184, 166, 1);
}

.localStatusBadgeMuted {
  color: #6b7280;
  background: #f3f4f6;
  border: 1px solid #e5e7eb;
}

.localStatusBadgeDead {
  color: #faad14;
  background: #fff7ed;
  border: 1px solid #faad14;
}

.localStatusBadgeProgress {
  color: rgba(29, 212, 215, 1);
  background: rgba(29, 212, 215, 0.15);
  border: 1px solid rgba(29, 212, 215, 1);
}

.modelList {
  max-height: 480px;
  overflow-y: auto;
  border: 1px solid #f0f0f0;
  border-radius: 8px;
  margin-top: 8px;
}

.modelListEmpty {
  padding: 24px;
  text-align: center;
  color: #999;
  font-size: 13px;
}

.modelListLoadMore {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 16px;
  border-top: 1px solid #f0f0f0;
}

.modelListCount {
  font-size: 12px;
  color: #999;
}

.modelListItem {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  border-bottom: 1px solid #f5f5f5;
  transition: background 0.15s;
  flex-wrap: wrap;
  gap: 8px;

  &:last-child {
    border-bottom: none;
  }

  &:hover {
    background: #fafafa;
  }
}

.modelListItemInfo {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  flex: 1;
}

.customModelListItemInfo {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  flex: 1;
}

.customModelListItem {
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
  background: linear-gradient(180deg, #fffaf3 0%, #fffdf8 100%);
  border-left: 3px solid rgba(255, 127, 22, 0.35);
}

.customModelHeader {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.customModelInputRow {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  align-items: center;
  min-width: 0;
}

.customModelRepoInput {
  flex: 1 1 auto;
  min-width: 0;
}

.customModelSourceSelect {
  flex: 0 0 140px;
  min-width: 140px;
}

.customModelHint {
  font-size: 12px;
  color: #999;
  line-height: 1.4;
  white-space: normal;
}

.modelListItemName {
  font-size: 14px;
  font-weight: 500;
  color: #1a1a1a;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.modelListItemTags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 2px;
}

.modelListItemId {
  font-size: 12px;
  color: #999;
  font-family: "SF Mono", "Menlo", monospace;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.modelListItemActions {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
  margin-left: auto;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.modelListItemStatusButton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 24px;
  padding: 0 11px;
  border-radius: 6px;
  color: rgba(20, 184, 166, 1);
  background: #ecfdf5;
  font-size: 12px;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
  box-sizing: border-box;
}

.modelAddForm {
  margin-top: 12px;
  padding: 16px;
  background: #fafafa;
  border-radius: 8px;
  border: 1px dashed #d9d9d9;
}

.modalActionRow {
  margin-top: 12px;
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}

.localStatusCard {
  margin-top: 12px;
  padding: 16px;
  background: linear-gradient(180deg, #fafafa 0%, #f7f8fc 100%);
  border-radius: 10px;
  border: 1px solid #e8ebf2;
}

.localStatusCardHeader {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.localStatusCardFooter {
  margin-top: 12px;
  display: flex;
  align-items: stretch;
  gap: 12px;
}

.localStatusFooterContent {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  width: 100%;
}

.localStatusActions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.localStatusHint {
  color: #7a7f8f;
  font-size: 12px;
  line-height: 1.5;
}

.localRuntimeDownloadRow {
  margin-top: 12px;
}

.localRuntimeProgressBlock {
  width: 100%;
  min-width: 0;
}

.localRuntimeProgressBarRow {
  display: flex;
  align-items: center;
  gap: 12px;

  @media (max-width: 768px) {
    align-items: stretch;
    flex-direction: column;
  }
}

.localRuntimeProgress {
  flex: 1;
  width: 100%;

  :global(.ant-progress-outer) {
    margin-inline-end: 0;
  }

  :global(.ant-progress-inner) {
    background: rgba(255, 127, 22, 0.14);
    border-radius: 999px;
  }

  :global(.ant-progress-bg) {
    border-radius: 999px;
  }
}

.localRuntimeProgressMeta {
  display: block;
  margin-top: 6px;
  color: #7a7f8f;
  font-size: 11px;
  line-height: 1.4;
  font-family: "SF Mono", "Menlo", monospace;
}

.localInlineProgress {
  color: #7a7f8f;
  font-size: 12px;
  font-family: "SF Mono", "Menlo", monospace;
}

.localLockedPanel {
  margin-top: 8px;
  padding: 10px 20px;
  border-radius: 10px;
  border: 1px dashed #d7ddea;
  background: linear-gradient(
    135deg,
    rgba(245, 247, 251, 0.95),
    rgba(250, 251, 255, 0.98)
  );
}

.localLockedPanelTitle {
  color: #111827;
  font-size: 14px;
  font-weight: 600;
}

.localLockedPanelDescription {
  color: #6b7280;
  font-size: 14px;
  line-height: 1.6;
}

/* ─── Dark mode ─────────────────────────────────────────────────────────────── */
:global(.dark-mode) {
  .settingsPage {
    :global {
      .qwenpaw-table-wrapper
        .qwenpaw-table-container
        .qwenpaw-table-thead
        > tr
        > th {
        background: rgba(255, 255, 255, 0.04) !important;
      }
    }
  }

  .pageHeader {
    border-bottom-color: rgba(255, 255, 255, 0.12);
  }

  .breadcrumbParent {
    color: rgba(255, 255, 255, 0.35);
  }

  .breadcrumbSeparator {
    color: rgba(255, 255, 255, 0.2);
  }

  .breadcrumbCurrent {
    color: rgba(255, 255, 255, 0.85);
  }

  .loadingText {
    color: rgba(255, 255, 255, 0.35);
  }

  .sectionDesc {
    color: rgba(255, 255, 255, 0.35);
  }

  .providerGroupTitle {
    color: rgba(255, 255, 255, 0.4);
  }

  .subSectionTitle {
    color: rgba(255, 255, 255, 0.35);
  }
  .subSectionTitle::after {
    background: rgba(255, 255, 255, 0.08);
  }

  .localModalTitle,
  .localSectionTitle,
  .localSummaryValue,
  .localSectionInfoValue,
  .localSectionInfoMeta,
  .localEngineStatusModelName,
  .localLockedPanelTitle {
    color: rgba(255, 255, 255, 0.88);
  }

  .localModalDescription,
  .localSectionDescription,
  .localStatusHint,
  .localSummaryLabel,
  .localSectionMeta,
  .localSectionInfoLabel,
  .localInlineProgress,
  .localSectionNotice,
  .localLockedPanelDescription,
  .localEngineMetricLabel {
    color: rgba(255, 255, 255, 0.5);
  }

  .localSummaryPill,
  .localSectionInfoRow,
  .localSectionNotice,
  .localLockedPanel,
  .localStatusCard,
  .localEngineStatusItem {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.08);
  }

  .localStatusBadgeInstalled,
  .localStatusBadgeRunning {
    color: #86efac;
    background: rgba(34, 197, 94, 0.12);
    border-color: rgba(34, 197, 94, 0.28);
  }

  .localStatusBadgeMuted {
    color: rgba(255, 255, 255, 0.72);
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.12);
  }

  .localStatusBadgeDead {
    color: #fdba74;
    background: rgba(249, 115, 22, 0.12);
    border-color: rgba(249, 115, 22, 0.28);
  }

  .localStatusBadgeProgress {
    color: #93c5fd;
    background: rgba(59, 130, 246, 0.12);
    border-color: rgba(59, 130, 246, 0.28);
  }

  .localStatusBadgeAction {
    color: #bfdbfe;
    background: rgba(59, 130, 246, 0.18);
    border-color: rgba(96, 165, 250, 0.4);
    box-shadow: 0 0 0 1px rgba(96, 165, 250, 0.12);
  }

  .localStatusActionPill {
    color: #93c5fd;
    background: rgba(59, 130, 246, 0.12);
    border-color: rgba(59, 130, 246, 0.28);
  }

  .localRuntimeProgress {
    :global(.ant-progress-inner) {
      background: rgba(255, 127, 22, 0.18);
    }
  }

  .localRuntimeProgressMeta {
    color: rgba(255, 255, 255, 0.5);
  }

  .modelListItemStatusButton {
    color: #5eead4;
    background: rgba(20, 184, 166, 0.14);
  }

  /* Provider card */
  .providerCard {
    background: rgba(30, 30, 30, 0.8);
    border-color: rgba(255, 255, 255, 0.06);
    box-shadow: none !important;

    &:hover {
      border-color: rgba(99, 102, 241, 0.2);
    }
  }

  .cardName {
    color: rgba(255, 255, 255, 0.85);
  }

  .builtinTag {
    background-color: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
    border-color: rgba(255, 255, 255, 0.12);
  }

  .customTag {
    background-color: rgba(255, 127, 22, 0.15);
    color: #ff9d4d;
    border-color: rgba(255, 127, 22, 0.25);
  }

  .freeTag {
    background: linear-gradient(135deg, #10b981, #059669);
    color: #fff;
  }

  .configuredCount {
    color: #34d399;
  }

  .availableHint {
    color: rgba(255, 255, 255, 0.4);
  }

  .emptyConfigured {
    border-color: rgba(255, 255, 255, 0.1);
  }
  .emptyConfigured p {
    color: rgba(255, 255, 255, 0.5);
  }

  .availableItem {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.06);
  }
  .availableItem:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(99, 102, 241, 0.4);
  }

  .availableItemName {
    color: rgba(255, 255, 255, 0.85);
  }

  .availableItemAction {
    color: #818cf8;
  }

  .variantItem {
    background: rgba(255, 255, 255, 0.04);
    &:hover {
      background: rgba(99, 102, 241, 0.15);
    }
  }

  .variantItemName {
    color: rgba(255, 255, 255, 0.9);
  }

  .localTag {
    background-color: rgba(29, 212, 215, 0.15);
    color: rgba(29, 212, 215, 1);
  }

  .infoRow {
    color: rgba(255, 255, 255, 0.5);
  }

  .infoLabel {
    color: rgba(255, 255, 255, 0.3);
  }

  .infoValue {
    color: rgba(255, 255, 255, 0.65);
  }

  .infoEmpty {
    color: rgba(255, 255, 255, 0.2);
  }

  .cardActions {
    border-top-color: rgba(255, 255, 255, 0.08);
    background: #2a2a2a;
  }

  .groupCardGlass {
    background: rgba(30, 30, 30, 0.8);
    border-color: rgba(255, 255, 255, 0.06);

    &:hover {
      border-color: rgba(99, 102, 241, 0.2);
    }
  }

  .groupCardName {
    color: rgba(255, 255, 255, 0.9);
  }

  .groupSegmented {
    background: rgba(255, 255, 255, 0.04);
  }

  .groupSegBtn {
    color: #666;

    &:hover {
      color: #999;
    }
  }

  .groupSegBtnActive {
    background: rgba(99, 102, 241, 0.15);
    color: #a5b4fc;
  }

  .groupSegDotOff {
    background: #dc2626;
  }

  .groupCardFieldLabel {
    color: #555;
  }

  .groupCardFieldValue {
    color: rgba(255, 255, 255, 0.7);
  }

  .groupCardMono {
    color: #888;
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.05);
  }

  .groupCardActions {
    border-top-color: rgba(255, 255, 255, 0.05);
  }

  .groupCardActBtn {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.06);
    color: #888;

    &:hover {
      border-color: rgba(99, 102, 241, 0.3);
      color: #a5b4fc;
    }
  }

  .groupCardActBtnDanger {
    color: #f87171;
    border-color: rgba(248, 113, 113, 0.2);

    &:hover {
      border-color: rgba(248, 113, 113, 0.5);
      color: #ef4444;
      background: rgba(248, 113, 113, 0.08);
    }
  }

  .configBtn {
    color: rgba(255, 255, 255, 0.65) !important;

    &:hover {
      color: #ff7f16 !important;
    }
  }

  .statusContainer .statusText.disabled {
    color: rgba(255, 255, 255, 0.3);
  }

  .llmPillOn {
    background: linear-gradient(
      135deg,
      rgba(16, 185, 129, 0.1),
      rgba(16, 185, 129, 0.05),
      rgba(255, 255, 255, 0.03)
    );
    border-color: rgba(16, 185, 129, 0.4);
    box-shadow: 0 1px 6px rgba(16, 185, 129, 0.15);

    &:hover {
      box-shadow: 0 2px 10px rgba(16, 185, 129, 0.25);
    }
  }
  .llmPillOff {
    background: linear-gradient(
      135deg,
      rgba(239, 68, 68, 0.1),
      rgba(239, 68, 68, 0.05),
      rgba(255, 255, 255, 0.03)
    );
    border-color: rgba(239, 68, 68, 0.4);
    box-shadow: 0 1px 6px rgba(239, 68, 68, 0.15);

    &:hover {
      box-shadow: 0 2px 10px rgba(239, 68, 68, 0.25);
    }
  }
  .llmPillLabel {
    color: rgba(255, 255, 255, 0.5);
  }
  .llmPillValue {
    color: rgba(255, 255, 255, 0.85);
  }
  .llmPillEdit {
    color: #a5b4fc;
  }
  .llmDescription {
    color: rgba(255, 255, 255, 0.45);
  }
  .panelSection {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.06);
  }
  .panelSectionDashed {
    background: transparent;
    border-color: rgba(255, 255, 255, 0.1);
  }
  .panelTitle {
    color: rgba(255, 255, 255, 0.5);
  }
  .panelDotGreen {
    background: #34d399;
  }
  .panelDotGray {
    background: rgba(255, 255, 255, 0.2);
  }
  .panelCount {
    color: #34d399;
  }
  .tabsNav {
    border-bottom-color: rgba(255, 255, 255, 0.08);
  }
  .tabItem {
    color: rgba(255, 255, 255, 0.4);

    &:hover {
      color: rgba(255, 255, 255, 0.6);
    }
  }
  .tabItemActive {
    color: #a5b4fc;
    border-bottom-color: #a5b4fc;
  }

  /* Slot section (LLM 顶部选择区) */
  .slotSection {
    background: #2a2a2a;
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);

    &:hover {
      box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
      border-color: rgba(255, 255, 255, 0.15);
    }
  }

  .slotHeader {
    border-bottom-color: rgba(255, 255, 255, 0.08);
  }

  .slotTitle {
    color: rgba(255, 255, 255, 0.85);
  }

  .slotCurrent {
    color: #52c41a;
    background: rgba(82, 196, 26, 0.1);
    border-color: rgba(82, 196, 26, 0.3);
  }

  .slotLabel {
    color: rgba(255, 255, 255, 0.5);
  }

  .slotActions {
    border-top-color: rgba(255, 255, 255, 0.08);
  }

  /* Advanced config */
  .advancedConfigSection {
    border-top-color: rgba(255, 255, 255, 0.08);
  }

  .localAdvancedConfigSection {
    border-top-color: rgba(255, 255, 255, 0.08);
  }

  .advancedConfigToggle {
    color: rgba(255, 255, 255, 0.65);
  }

  .localAdvancedConfigLabel {
    color: rgba(255, 255, 255, 0.88);
  }

  /* JSON editor */
  .jsonEditorContainer {
    border-color: rgba(255, 255, 255, 0.15);
    background: #1a1a1a;

    &:focus-within {
      border-color: #ff7f16;
    }
  }

  .jsonEditorHighlight {
    color: rgba(255, 255, 255, 0.45);
  }

  .jsonEditorTextarea {
    caret-color: rgba(255, 255, 255, 0.85);
  }

  /* Model list (modal) */
  .modelList {
    border-color: rgba(255, 255, 255, 0.08);
  }

  .modelListEmpty {
    color: rgba(255, 255, 255, 0.3);
  }

  .modelListLoadMore {
    border-top-color: rgba(255, 255, 255, 0.08);
  }

  .modelListCount {
    color: rgba(255, 255, 255, 0.35);
  }

  .modelListItem {
    border-bottom-color: rgba(255, 255, 255, 0.06);

    &:hover {
      background: rgba(255, 255, 255, 0.04);
    }
  }

  .customModelListItem {
    background: linear-gradient(
      180deg,
      rgba(255, 127, 22, 0.1) 0%,
      rgba(255, 127, 22, 0.04) 100%
    );
    border-left-color: rgba(255, 127, 22, 0.55);

    &:hover {
      background: linear-gradient(
        180deg,
        rgba(255, 127, 22, 0.14) 0%,
        rgba(255, 127, 22, 0.06) 100%
      );
    }
  }

  .modelListItemName {
    color: rgba(255, 255, 255, 0.85);
  }

  .modelListItemId {
    color: rgba(255, 255, 255, 0.3);
  }

  .customModelHint {
    color: rgba(255, 255, 255, 0.45);
  }

  .modelAddForm {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.12);
  }

  /* Provider cards */
  .providerCard {
    background: rgba(30, 30, 30, 0.8);
    border-color: rgba(255, 255, 255, 0.06);

    &:hover {
      border-color: rgba(99, 102, 241, 0.2);
    }
  }

  .cardName {
    color: rgba(255, 255, 255, 0.85);
  }

  .infoLabel {
    color: rgba(255, 255, 255, 0.5);
  }

  .infoValue {
    color: rgba(255, 255, 255, 0.65);
  }

  .infoEmpty {
    color: rgba(255, 255, 255, 0.3);
  }
}

/* ---- Custom Headers Editor ---- */
.customHeadersSection {
  margin-bottom: 8px;
}

.customHeaderRow {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;

  .customHeaderKey {
    flex: 0 0 38%;
  }

  .customHeaderValue {
    flex: 1;
  }

  .customHeaderDelete {
    flex: 0 0 auto;
    color: #999;
    cursor: pointer;
    transition: color 0.2s;

    &:hover {
      color: #ff4d4f;
    }
  }
}

.addHeaderBtn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 0;
  height: auto;
  font-size: 13px;
  color: var(--ant-color-primary, #1677ff);
  background: transparent;
  border: none;
  cursor: pointer;

  &:hover {
    opacity: 0.8;
  }
}

/* ─── Mobile responsive ───────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .pageHeader {
    padding: 12px 16px;
    flex-wrap: wrap;
    gap: 8px;
  }

  .breadcrumbHeader {
    flex-wrap: wrap;
    gap: 4px 8px;
  }

  .breadcrumbParent {
    font-size: 14px;
  }

  .breadcrumbSeparator {
    margin: 0 4px;
  }

  .breadcrumbCurrent {
    font-size: 16px;
  }

  .sectionHeaderRow {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .headerRight {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding: 0 16px;
  }

  .providersPageHeader {
    padding: 12px 16px;
  }

  .llmPill {
    justify-content: space-between;
    width: 100%;
    padding: 6px 10px;
    font-size: 13px;
  }

  .llmPillLabel {
    font-size: 13px;
  }

  .llmPillValue {
    font-size: 12px;
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .searchRow {
    margin: 0;
    width: 100%;
  }

  .searchInput {
    max-width: unset;
    width: 100%;
  }

  .addProviderBtn {
    margin-right: 0;
    width: 100%;
  }

  .tabsNav {
    margin: 0 12px 12px;
    overflow-x: auto;
    gap: 0;
  }

  .tabItem {
    padding: 8px 14px;
    font-size: 12px;
    white-space: nowrap;
  }

  .section {
    margin-bottom: 24px;
  }

  .sectionTitle {
    font-size: 20px;
  }

  .sectionDesc {
    margin: 0 0 16px;
    font-size: 13px;
  }

  .providersBlock {
    margin-top: 16px;
  }

  .providerGroup {
    padding: 0 12px;
  }

  .providerGroupTitle {
    font-size: 13px;
    margin: 0 0 8px;
  }

  .providerCards {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .providerCard {
    padding: 16px;
    padding-bottom: 56px;
    border-radius: 12px;
  }

  .cardName {
    font-size: 14px;
  }

  .groupCardGlass {
    padding: 16px;
    border-radius: 12px;
  }

  .groupCardGlass,
  .providerCard {
    min-width: 0;
  }

  .groupCardHeader {
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
  }

  .groupCardName {
    font-size: 15px;
  }

  .groupSegmented {
    overflow-x: auto;
    flex-wrap: nowrap;
    gap: 0;
    padding: 2px;
  }

  .groupSegBtn {
    flex: 0 0 auto;
    padding: 6px 10px;
    font-size: 10px;
  }

  .groupCardContent {
    gap: 8px;
  }

  .groupCardMono {
    font-size: 11px;
    padding: 6px 10px;
    gap: 4px;
  }

  .groupCardKeyInput {
    flex-direction: column;
    gap: 6px;
  }

  .groupCardActions {
    flex-wrap: wrap;
    gap: 6px;
    padding-top: 10px;
  }

  .groupCardActBtn {
    flex: 1;
    min-width: 0;
    padding: 6px 10px;
    font-size: 11px;
    text-align: center;
  }

  .groupCardField {
    gap: 3px;
  }

  .groupCardFieldValue {
    font-size: 12px;
  }

  .availableGrid {
    grid-template-columns: 1fr;
  }

  .availableItem {
    padding: 8px 12px;
  }

  .cardActions {
    position: static;
    padding-top: 12px;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    background: transparent;
  }

  .actionBtn {
    height: 28px;
    font-size: 12px;
  }

  .modalFooter {
    flex-direction: column;
    gap: 8px;
  }

  .modalFooterLeft {
    width: 100%;
    justify-content: center;
  }

  .modalFooterRight {
    width: 100%;
    justify-content: center;
  }

  .slotSection {
    padding: 16px;
  }

  .slotHeader {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .slotActions {
    flex-wrap: wrap;
    gap: 6px;
  }

  .emptyConfigured {
    padding: 32px 16px;
  }

  .variantItem {
    padding: 10px 12px;
  }

  .configFieldRow {
    flex-direction: column;
    gap: 4px;
  }

  .configFieldLabel {
    min-width: unset;
    width: 100%;
  }

  .configFieldValue {
    width: 100%;
  }

  .inlineKeyInput {
    flex-direction: column;
    align-items: stretch;
  }

  .localModalIntro {
    flex-direction: column;
    gap: 12px;
  }

  .localModalTitle {
    font-size: 16px;
  }

  .jsonEditorHighlight,
  .jsonEditorTextarea {
    padding: 8px 10px;
    font-size: 12px;
    min-height: 120px;
  }

  /* ─── Model Management Modal ─── */
  .modelList {
    max-height: 320px;
  }

  .modelListItem {
    flex-direction: column;
    align-items: stretch;
    padding: 8px 12px;
    gap: 6px;
  }

  .modelListItemInfo {
    flex: none;
    min-width: 0;
    width: 100%;
  }

  .modelListItemName {
    font-size: 13px;
  }

  .modelListItemId {
    font-size: 11px;
  }

  .modelListItemActions {
    gap: 4px;
    flex-shrink: 0;
    margin-left: 0;
    justify-content: flex-start;
  }

  .modelListItemStatusButton {
    height: 22px;
    padding: 0 8px;
    font-size: 11px;
  }

  .modelListCount {
    font-size: 11px;
  }

  .modelManageModal {
    :global {
      .ant-modal {
        max-width: calc(100vw - 32px);
      }
      .ant-modal-content {
        max-height: 90vh;
        overflow-y: auto;
      }
    }
  }
}
