/* OzunIA 智控台 — page surfaces (roles / models / params / devices / knowledge)
   Sibling-safe overlay. Do not merge into ozunia-admin-theme.css chrome. */

html.ozunia-amg {
  --oz-bg: #0a0a0b;
  --oz-bg-raised: #111214;
  --oz-surface: #16181b;
  --oz-surface-2: #1c1f24;
  --oz-border: #2a2d32;
  --oz-accent: #c4001a;
  --oz-accent-hot: #e10600;
  --oz-accent-dim: #8a0012;
  --oz-accent-soft: rgba(196, 0, 26, 0.16);
  --oz-text: #f2f2f3;
  --oz-text-secondary: #a8adb4;
  --oz-text-muted: #7a8088;
  --oz-silver: #c8ccd0;
  --oz-silver-dim: #8b9098;
}

/* ========== Shared page shells ========== */
html.ozunia-amg .welcome,
html.ozunia-amg .welcome[class] {
  background: #0a0a0b !important;
  background-image: none !important;
}

html.ozunia-amg .main-wrapper,
html.ozunia-amg .content-panel,
html.ozunia-amg .content-area,
html.ozunia-amg .params-card,
html.ozunia-amg .model-card,
html.ozunia-amg .device-card,
html.ozunia-amg .user-card,
html.ozunia-amg .config-card,
html.ozunia-amg .feature-card,
html.ozunia-amg .provider-card,
html.ozunia-amg .template-card,
html.ozunia-amg .voice-print-card,
html.ozunia-amg .main-card,
html.ozunia-amg .dict-card {
  background: #16181b !important;
  background-color: #16181b !important;
  border-color: #2a2d32 !important;
  box-shadow: none !important;
}

html.ozunia-amg .content-panel {
  border: 1px solid #2a2d32 !important;
}

html.ozunia-amg .page-title,
html.ozunia-amg .header-title,
html.ozunia-amg .config-header,
html.ozunia-amg .kb-section-title,
html.ozunia-amg .kb-card-name,
html.ozunia-amg .group-title,
html.ozunia-amg .feature-name,
html.ozunia-amg .dict-type-title,
html.ozunia-amg .info-title,
html.ozunia-amg .info-value,
html.ozunia-amg .server-label {
  color: #f2f2f3 !important;
}

html.ozunia-amg .divider {
  background: #2a2d32 !important;
}

html.ozunia-amg .el-form-item__label,
html.ozunia-amg .model-row .el-form-item__label {
  color: #a8adb4 !important;
}

/* ========== Role config ========== */
html.ozunia-amg .header-icon,
html.ozunia-amg .header-actions .save-btn,
html.ozunia-amg .edit-function-btn.active-btn {
  background: #c4001a !important;
  background-color: #c4001a !important;
  color: #fff !important;
  border-color: #c4001a !important;
}

html.ozunia-amg .current-version-tag,
html.ozunia-amg .template-item,
html.ozunia-amg .icon-dot,
html.ozunia-amg .edit-function-btn,
html.ozunia-amg .header-actions .reset-btn,
html.ozunia-amg .custom-tag,
html.ozunia-amg .custom-tag-btn,
html.ozunia-amg .module-count {
  background: #1c1f24 !important;
  background-color: #1c1f24 !important;
  color: #c8ccd0 !important;
  border-color: #8a0012 !important;
}

html.ozunia-amg .template-item:hover,
html.ozunia-amg .custom-tag-btn:hover {
  background: #2a2d32 !important;
  background-color: #2a2d32 !important;
  color: #f2f2f3 !important;
}

html.ozunia-amg .header-tags::-webkit-scrollbar {
  background: #111214 !important;
}

html.ozunia-amg .header-tags::-webkit-scrollbar-thumb {
  background: #c4001a !important;
}

html.ozunia-amg .play-button,
html.ozunia-amg .play-button:hover,
html.ozunia-amg .doc-link,
html.ozunia-amg .copy-button,
html.ozunia-amg .icon-dot {
  color: #e10600 !important;
}

html.ozunia-amg .custom-close-btn:hover {
  color: #e10600 !important;
  border-color: #e10600 !important;
}

html.ozunia-amg .header-actions .history-btn {
  background: #1c1f24 !important;
  color: #a8adb4 !important;
  border: 1px solid #2a2d32 !important;
}

html.ozunia-amg .header-actions .hint-text,
html.ozunia-amg .slider-hint {
  color: #a8adb4 !important;
}

html.ozunia-amg .chat-history-options .el-radio-button .el-radio-button__inner,
html.ozunia-amg .chat-history-options .el-radio-button__inner {
  color: #c8ccd0 !important;
  border-color: #2a2d32 !important;
  background-color: transparent !important;
}

html.ozunia-amg .chat-history-options .el-radio-button.is-active .el-radio-button__inner,
html.ozunia-amg .chat-history-options .el-radio-button__orig-radio:checked + .el-radio-button__inner {
  background-color: #c4001a !important;
  border-color: #c4001a !important;
  color: #fff !important;
  box-shadow: none !important;
}

html.ozunia-amg .chat-history-options .el-radio-button .el-radio-button__inner:hover {
  color: #e10600 !important;
}

html.ozunia-amg .config-header {
  background: transparent !important;
}

html.ozunia-amg .TemplateQuickConfig .config-header,
html.ozunia-amg .config-header {
  background: #111214 !important;
}

/* ========== Models ========== */
html.ozunia-amg .nav-panel {
  background: #111214 !important;
  background-image: none !important;
  border-right: 1px solid #2a2d32 !important;
}

html.ozunia-amg .nav-panel .el-menu,
html.ozunia-amg .nav-panel .el-menu-item {
  background: #1c1f24 !important;
  color: #a8adb4 !important;
}

html.ozunia-amg .nav-panel .el-menu-item.is-active {
  background: #c4001a !important;
  color: #fff !important;
}

html.ozunia-amg .nav-panel .el-menu-item.is-active::before {
  background: #fff !important;
  box-shadow: 0 0 4px rgba(196, 0, 26, 0.45) !important;
}

html.ozunia-amg .nav-panel .menu-text {
  color: #a8adb4 !important;
}

html.ozunia-amg .nav-panel .el-menu-item.is-active .menu-text {
  color: #fff !important;
}

html.ozunia-amg .btn-search,
html.ozunia-amg .voice-management-btn,
html.ozunia-amg .voice-management-btn:hover {
  background: #c4001a !important;
  background-image: none !important;
  border: none !important;
  color: #fff !important;
}

html.ozunia-amg .voice-management-btn {
  background: #8a0012 !important;
}

html.ozunia-amg .voice-management-btn:hover {
  background: #c4001a !important;
}

html.ozunia-amg .search-input .el-input__inner {
  background-color: #111214 !important;
  border-color: #2a2d32 !important;
  color: #f2f2f3 !important;
}

html.ozunia-amg .search-input .el-input__inner:focus {
  border-color: #c4001a !important;
}

html.ozunia-amg .table-footer,
html.ozunia-amg .transparent-table,
html.ozunia-amg .transparent-table .el-table__header th,
html.ozunia-amg .transparent-table .el-table__body tr {
  background: #16181b !important;
  background-color: #16181b !important;
  color: #f2f2f3 !important;
}

html.ozunia-amg .transparent-table .el-table__header th {
  border-bottom-color: #2a2d32 !important;
}

html.ozunia-amg .transparent-table .el-table__body tr td {
  color: #a8adb4 !important;
  border-color: #2a2d32 !important;
}

html.ozunia-amg .transparent-table .el-table__row:hover > td {
  background-color: #22262c !important;
}

html.ozunia-amg .el-table thead th:not(:first-child) .cell,
html.ozunia-amg .custom-selection-header .cell::before {
  color: #c8ccd0 !important;
}

html.ozunia-amg .edit-btn,
html.ozunia-amg .delete-btn,
html.ozunia-amg .el-table .el-button--text,
html.ozunia-amg .el-icon-edit {
  color: #a8adb4 !important;
}

html.ozunia-amg .el-table .el-button--text:hover,
html.ozunia-amg .el-icon-edit:hover,
html.ozunia-amg .edit-btn:hover,
html.ozunia-amg .delete-btn:hover {
  color: #e10600 !important;
}

html.ozunia-amg .el-table .el-checkbox__inner {
  background: #111214 !important;
  border-color: #2a2d32 !important;
}

html.ozunia-amg .el-checkbox__input.is-checked .el-checkbox__inner {
  background-color: #c4001a !important;
  border-color: #c4001a !important;
}

/* ========== Features ========== */
html.ozunia-amg .feature-card-item {
  background-color: #1c1f24 !important;
  border-color: #2a2d32 !important;
}

html.ozunia-amg .feature-card-item:hover {
  border-color: #c4001a !important;
  box-shadow: 0 4px 16px rgba(196, 0, 26, 0.18) !important;
}

html.ozunia-amg .feature-card-item.feature-enabled {
  background: #1c1f24 !important;
  background-image: none !important;
  border: 2px solid #c4001a !important;
  box-shadow: 0 4px 16px rgba(196, 0, 26, 0.22) !important;
}

html.ozunia-amg .feature-description,
html.ozunia-amg .group-description {
  color: #a8adb4 !important;
}

html.ozunia-amg .feature-groups-container::before {
  background: #2a2d32 !important;
}

html.ozunia-amg .feature-checkbox .el-checkbox__input.is-checked .el-checkbox__inner,
html.ozunia-amg .feature-checkbox .el-checkbox__input.is-checked + .el-checkbox__label {
  background-color: #c4001a !important;
  border-color: #c4001a !important;
  color: #e10600 !important;
}

/* ========== Knowledge ========== */
html.ozunia-amg .kb-section,
html.ozunia-amg .kb-card,
html.ozunia-amg .kb-arrow {
  background: #16181b !important;
  border-color: #2a2d32 !important;
  box-shadow: none !important;
}

html.ozunia-amg .kb-arrow,
html.ozunia-amg .kb-action-icon:hover {
  color: #e10600 !important;
}

html.ozunia-amg .kb-arrow:hover {
  border-color: #c4001a !important;
  box-shadow: 0 4px 16px rgba(196, 0, 26, 0.22) !important;
}

html.ozunia-amg .kb-card:hover,
html.ozunia-amg .kb-card.is-active,
html.ozunia-amg .kb-card.selected {
  border-color: #c4001a !important;
  box-shadow: 0 0 12px rgba(196, 0, 26, 0.22) !important;
}

html.ozunia-amg .kb-card-icon.blue {
  background: linear-gradient(135deg, #1c1f24, #2a1618) !important;
  color: #e10600 !important;
}

html.ozunia-amg .kb-card-icon.purple {
  background: linear-gradient(135deg, #1c1f24, #2a1618) !important;
  color: #c8ccd0 !important;
}

html.ozunia-amg .kb-card-icon.cyan {
  background: linear-gradient(135deg, #16181b, #1c1f24) !important;
  color: #c8ccd0 !important;
}

html.ozunia-amg .kb-card-icon.green,
html.ozunia-amg .kb-card-icon.orange,
html.ozunia-amg .kb-card-icon.pink {
  filter: saturate(0.75) brightness(0.72);
}

html.ozunia-amg .kb-meta,
html.ozunia-amg .kb-card-desc,
html.ozunia-amg .kb-empty,
html.ozunia-amg .empty-state,
html.ozunia-amg .info-label {
  color: #a8adb4 !important;
}

/* Knowledge file rows / progress "charts" */
html.ozunia-amg .file-item,
html.ozunia-amg .kb-file-card,
html.ozunia-amg .item-card {
  background: #16181b !important;
  border-color: #2a2d32 !important;
  color: #f2f2f3 !important;
}

html.ozunia-amg .file-item:hover,
html.ozunia-amg .kb-file-card:hover {
  border-color: #c4001a !important;
}

html.ozunia-amg .progress-ring .processing,
html.ozunia-amg svg .processing {
  stroke: #c4001a !important;
  color: #c4001a !important;
}

html.ozunia-amg .el-progress-bar__inner {
  background-color: #c4001a !important;
}

/* ========== Devices / params / users / voice / ota ========== */
html.ozunia-amg .server-list,
html.ozunia-amg .server-card {
  background: #1c1f24 !important;
  border: 1px solid #2a2d32 !important;
  box-shadow: none !important;
}

html.ozunia-amg .server-list-card .el-divider {
  background: #2a2d32 !important;
}

html.ozunia-amg .voice-clone-card {
  background: #1c1f24 !important;
  border: 1px solid #2a2d32 !important;
  box-shadow: none !important;
}

html.ozunia-amg .voice-clone-card:hover {
  border-color: #8a0012 !important;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.35) !important;
}

html.ozunia-amg .wave-bar {
  background: linear-gradient(to top, #8a0012 0%, #e10600 100%) !important;
}

html.ozunia-amg .status-waiting {
  background-color: #1c1f24 !important;
  color: #a8adb4 !important;
  border-color: #2a2d32 !important;
}

html.ozunia-amg .status-success {
  background-color: #1a2a22 !important;
  color: #c8e6d4 !important;
  border-color: #2f6b4f !important;
}

html.ozunia-amg .status-failed {
  background-color: #2a1618 !important;
  color: #ffd4d8 !important;
  border-color: #8a0012 !important;
}

html.ozunia-amg .card-actions {
  border-top-color: #2a2d32 !important;
}

html.ozunia-amg .card-actions .el-button--text {
  color: #a8adb4 !important;
}

html.ozunia-amg .card-actions .el-button--text:hover {
  color: #e10600 !important;
}

/* ========== Dict ========== */
html.ozunia-amg .dict-type-panel {
  background: #16181b !important;
  box-shadow: none !important;
  border: 1px solid #2a2d32 !important;
}

html.ozunia-amg .dict-type-header {
  border-bottom-color: #2a2d32 !important;
}

html.ozunia-amg .dict-type-item:hover,
html.ozunia-amg .dict-type-active {
  background: #c4001a !important;
  background-color: #c4001a !important;
}

html.ozunia-amg .dict-type-item:hover .dict-type-name,
html.ozunia-amg .dict-type-item:hover .dict-type-edit-btn,
html.ozunia-amg .dict-type-active .dict-type-name,
html.ozunia-amg .dict-type-active .dict-type-edit-btn {
  color: #fff !important;
}

html.ozunia-amg .dict-type-name,
html.ozunia-amg .dict-type-edit-btn {
  color: #c8ccd0 !important;
}

/* ========== Address book ========== */
html.ozunia-amg .left-panel,
html.ozunia-amg .right-panel,
html.ozunia-amg .agent-card,
html.ozunia-amg .device-detail,
html.ozunia-amg .permission-item,
html.ozunia-amg .agent-list,
html.ozunia-amg .contact-card,
html.ozunia-amg .address-card,
html.ozunia-amg .agent-item {
  background: #16181b !important;
  background-image: none !important;
  border-color: #2a2d32 !important;
  color: #f2f2f3 !important;
}

html.ozunia-amg .permission-item.active {
  border-color: #8a0012 !important;
}

html.ozunia-amg .permission-item.active .permission-name,
html.ozunia-amg .device-item.active .device-name {
  color: #e10600 !important;
}

html.ozunia-amg .main-title,
html.ozunia-amg .device-name-text,
html.ozunia-amg .permission-name {
  color: #f2f2f3 !important;
}

html.ozunia-amg .sub-title,
html.ozunia-amg .agent-name,
html.ozunia-amg .device-id {
  color: #a8adb4 !important;
}

html.ozunia-amg .agent-item.active,
html.ozunia-amg .agent-item:hover,
html.ozunia-amg .contact-card:hover {
  background: #1c1f24 !important;
  border-color: #c4001a !important;
  color: #f2f2f3 !important;
}

html.ozunia-amg .agent-triangle,
html.ozunia-amg .agent-triangle path {
  fill: #c8ccd0 !important;
  stroke: #c8ccd0 !important;
}

/* ========== Home leftover surfaces / delete dialog ========== */
html.ozunia-amg .add-device {
  background: linear-gradient(100deg, #16181b 0%, #1c1f24 55%, #1a1214 100%) !important;
}

html.ozunia-amg .add-device-bg .hellow-text,
html.ozunia-amg .delete-agent-title,
html.ozunia-amg .delete-agent-target {
  color: #f2f2f3 !important;
}

html.ozunia-amg .hi-hint,
html.ozunia-amg .delete-agent-message {
  color: #a8adb4 !important;
}

html.ozunia-amg .delete-agent-target {
  background: #1c1f24 !important;
  border-color: #2a2d32 !important;
}

html.ozunia-amg .delete-agent-dialog .el-dialog__header {
  background: #111214 !important;
  background-image: none !important;
}

html.ozunia-amg .delete-agent-cancel {
  background: #1c1f24 !important;
  color: #f2f2f3 !important;
  border: 1px solid #2a2d32 !important;
}

html.ozunia-amg .delete-agent-confirm,
html.ozunia-amg .delete-agent-confirm:hover,
html.ozunia-amg .delete-agent-confirm:focus,
html.ozunia-amg .delete-agent-confirm.is-disabled {
  background: #c4001a !important;
  background-image: none !important;
  border: none !important;
  color: #fff !important;
}

html.ozunia-amg .search-history-dropdown {
  background: #16181b !important;
  border-color: #2a2d32 !important;
}

html.ozunia-amg .skeleton-item {
  background: #16181b !important;
}

html.ozunia-amg .skeleton-image,
html.ozunia-amg .skeleton-line,
html.ozunia-amg .skeleton-line-short {
  background: #1c1f24 !important;
}

/* ========== Template quick config ========== */
html.ozunia-amg .main-wrapper {
  background: transparent !important;
}

html.ozunia-amg .description-item .el-textarea__inner {
  background-color: #111214 !important;
  border-color: #2a2d32 !important;
  color: #f2f2f3 !important;
}

html.ozunia-amg .el-textarea .el-input__count {
  color: #7a8088 !important;
  background: transparent !important;
}

/* ========== Replacement word chips ========== */
html.ozunia-amg .replace-word-content .custom-tag {
  background: #1c1f24 !important;
  color: #c8ccd0 !important;
}

/* ========== Radio / switch leftovers ========== */
html.ozunia-amg .el-radio-button__inner {
  background: #1c1f24 !important;
  border-color: #2a2d32 !important;
  color: #a8adb4 !important;
}

html.ozunia-amg .el-radio-button__orig-radio:checked + .el-radio-button__inner,
html.ozunia-amg .el-radio-button.is-active .el-radio-button__inner {
  background: #c4001a !important;
  border-color: #c4001a !important;
  color: #fff !important;
  box-shadow: -1px 0 0 0 #c4001a !important;
}

html.ozunia-amg .el-switch.is-checked .el-switch__core {
  background-color: #c4001a !important;
  border-color: #c4001a !important;
}

/* ========== Charts / viz leftovers (progress, waves, rings) ========== */
html.ozunia-amg .el-loading-spinner .path,
html.ozunia-amg svg path[stroke="#6b8cff"],
html.ozunia-amg svg path[stroke="#5778ff"],
html.ozunia-amg svg path[stroke="#2f5bff"],
html.ozunia-amg svg path[stroke="#409eff"] {
  stroke: #c4001a !important;
}

html.ozunia-amg .el-loading-text {
  color: #c8ccd0 !important;
}

html.ozunia-amg .el-loading-mask {
  background-color: rgba(10, 10, 11, 0.62) !important;
}

/* ========== Inline stock blues (dialogs + page templates) ========== */
html.ozunia-amg [style*="color: #5778ff"],
html.ozunia-amg [style*="color:#5778ff"],
html.ozunia-amg [style*="color: #5778FF"],
html.ozunia-amg [style*="color:#5778FF"],
html.ozunia-amg [style*="color: #409EFF"],
html.ozunia-amg [style*="color:#409EFF"],
html.ozunia-amg [style*="color: #409eff"],
html.ozunia-amg [style*="color:#409eff"],
html.ozunia-amg [style*="color: #1890ff"],
html.ozunia-amg [style*="color:#1890ff"],
html.ozunia-amg [style*="color: #6b8cff"],
html.ozunia-amg [style*="color:#6b8cff"],
html.ozunia-amg [style*="color: #2f5bff"],
html.ozunia-amg [style*="color:#2f5bff"],
html.ozunia-amg [style*="color: #467afe"],
html.ozunia-amg [style*="color:#467afe"],
html.ozunia-amg [style*="color: #3765f8"],
html.ozunia-amg [style*="color:#3765f8"] {
  color: #e10600 !important;
}

html.ozunia-amg [style*="background: #5778ff"],
html.ozunia-amg [style*="background:#5778ff"],
html.ozunia-amg [style*="background-color: #5778ff"],
html.ozunia-amg [style*="background-color:#5778ff"],
html.ozunia-amg [style*="background: #409EFF"],
html.ozunia-amg [style*="background:#409EFF"],
html.ozunia-amg [style*="background: #3375fd"],
html.ozunia-amg [style*="background:#3375fd"],
html.ozunia-amg [style*="background: #4d94f7"],
html.ozunia-amg [style*="background:#4d94f7"],
html.ozunia-amg [style*="background: #4998ff"],
html.ozunia-amg [style*="background:#4998ff"] {
  background: #c4001a !important;
  background-color: #c4001a !important;
  color: #fff !important;
}

html.ozunia-amg [style*="color: #3d4566"],
html.ozunia-amg [style*="color:#3d4566"],
html.ozunia-amg [style*="color: #2c3e50"],
html.ozunia-amg [style*="color:#2c3e50"],
html.ozunia-amg [style*="color: #1f2a44"],
html.ozunia-amg [style*="color:#1f2a44"],
html.ozunia-amg [style*="color: #303133"],
html.ozunia-amg [style*="color:#303133"] {
  color: #f2f2f3 !important;
}

html.ozunia-amg [style*="color: #979db1"],
html.ozunia-amg [style*="color:#979db1"],
html.ozunia-amg [style*="color: #7079aa"],
html.ozunia-amg [style*="color:#7079aa"],
html.ozunia-amg [style*="color: #818cae"],
html.ozunia-amg [style*="color:#818cae"],
html.ozunia-amg [style*="color: #686f85"],
html.ozunia-amg [style*="color:#686f85"] {
  color: #a8adb4 !important;
}

html.ozunia-amg [style*="background: #e6ebff"],
html.ozunia-amg [style*="background:#e6ebff"],
html.ozunia-amg [style*="background: #eff4ff"],
html.ozunia-amg [style*="background:#eff4ff"],
html.ozunia-amg [style*="background: #f4f7ff"],
html.ozunia-amg [style*="background:#f4f7ff"] {
  background: #1c1f24 !important;
  background-color: #1c1f24 !important;
}

html.ozunia-amg [style*="background: #e6ebff"],
html.ozunia-amg [style*="border: 1px solid #adbdff"],
html.ozunia-amg [style*="border: 1px solid #adbdff"] {
  border-color: #8a0012 !important;
}

html.ozunia-amg [style*="background: #e6ebff"][style*="color: #5778ff"],
html.ozunia-amg .dialog-btn[style*="background: #e6ebff"] {
  background: #1c1f24 !important;
  color: #c8ccd0 !important;
  border-color: #2a2d32 !important;
}

/* ========== Page internals used on roles/models/params/devices ========== */
html.ozunia-amg .el-pager li.active,
html.ozunia-amg .el-pager li:not(.disabled).active,
html.ozunia-amg .pagination-wrapper .el-pager li.active {
  background: #c4001a !important;
  background-image: none !important;
  color: #fff !important;
  box-shadow: 0 1px 8px rgba(196, 0, 26, 0.35) !important;
}

html.ozunia-amg .drawer-header,
html.ozunia-amg .drawer-footer,
html.ozunia-amg .tts-advanced-drawer .el-drawer__header,
html.ozunia-amg .tts-advanced-drawer .el-drawer__body,
html.ozunia-amg .el-drawer {
  background: #16181b !important;
  border-color: #2a2d32 !important;
  color: #f2f2f3 !important;
}

html.ozunia-amg .drawer-title {
  color: #f2f2f3 !important;
}

html.ozunia-amg .drawer-close-btn:hover,
html.ozunia-amg .replacement-label i:hover {
  color: #e10600 !important;
  border-color: #e10600 !important;
}

html.ozunia-amg .replacement-word-select .el-tag,
html.ozunia-amg .replacement-tag,
html.ozunia-amg .color-dot {
  background: #c4001a !important;
  background-color: #c4001a !important;
  color: #fff !important;
  border-color: #c4001a !important;
}

html.ozunia-amg .user-message .message-content {
  background-color: #c4001a !important;
  color: #fff !important;
}

html.ozunia-amg .message-content,
html.ozunia-amg .tool-message .message-content {
  background-color: #1c1f24 !important;
  color: #f2f2f3 !important;
}

html.ozunia-amg .audio-icon,
html.ozunia-amg .tool-call-text,
html.ozunia-amg .tool-toggle-btn {
  color: #e10600 !important;
}

html.ozunia-amg .user-message .audio-icon {
  color: #fff !important;
}

html.ozunia-amg .mcp-access-point {
  border-top-color: #2a2d32 !important;
}

html.ozunia-amg .dialog-btn {
  border-radius: 6px !important;
}

/* ========== Function Management drawer (MCP Access Point) ==========
   Vue scoped SCSS still paints .mcp-access-point white and the URL
   field #f5f5f5. Theme already sets input/title color to #F2F2F3, so
   the bottom half becomes light-on-light until these surfaces go night. */
html.ozunia-amg .el-drawer:has(.function-manager),
html.ozunia-amg .el-drawer:has(.mcp-access-point),
html.ozunia-amg .el-drawer:has(.function-manager) .el-drawer__body,
html.ozunia-amg .el-drawer:has(.mcp-access-point) .el-drawer__body,
html.ozunia-amg .el-drawer:has(.function-manager) .el-drawer__container,
html.ozunia-amg .function-manager,
html.ozunia-amg .function-column,
html.ozunia-amg .params-column,
html.ozunia-amg .params-container {
  background: #16181b !important;
  background-color: #16181b !important;
  color: #f2f2f3 !important;
  border-color: #2a2d32 !important;
}

html.ozunia-amg .custom-header,
html.ozunia-amg .function-column,
html.ozunia-amg .el-drawer:has(.function-manager) .drawer-footer,
html.ozunia-amg .el-drawer:has(.mcp-access-point) .drawer-footer {
  background: #111214 !important;
  background-color: #111214 !important;
  border-color: #2a2d32 !important;
  color: #f2f2f3 !important;
}

html.ozunia-amg .custom-header {
  border-bottom: 1px solid #2a2d32 !important;
}

html.ozunia-amg .function-column {
  border-right: 1px solid #2a2d32 !important;
}

html.ozunia-amg .custom-header .bold-title,
html.ozunia-amg .column-title,
html.ozunia-amg .function-manager .column-title,
html.ozunia-amg .params-column .column-title,
html.ozunia-amg .func-tag,
html.ozunia-amg .func-tag span,
html.ozunia-amg .function-item,
html.ozunia-amg .function-item span {
  color: #f2f2f3 !important;
}

html.ozunia-amg .function-item:hover {
  background-color: #1c1f24 !important;
}

html.ozunia-amg .select-all-btn,
html.ozunia-amg .select-all-btn.el-button--text,
html.ozunia-amg .function-manager .el-button--text {
  color: #c4001a !important;
}

html.ozunia-amg .empty-tip,
html.ozunia-amg .function-manager .el-empty__description,
html.ozunia-amg .params-column .el-empty__description,
html.ozunia-amg .param-form .el-form-item__label,
html.ozunia-amg .param-item .el-form-item__label {
  color: #a8adb4 !important;
}

html.ozunia-amg .function-manager .el-empty,
html.ozunia-amg .params-column .el-empty {
  background: transparent !important;
}

html.ozunia-amg .mcp-access-point,
html.ozunia-amg .mcp-access-point.mcp-access-point,
html.ozunia-amg .mcp-container,
html.ozunia-amg .mcp-left,
html.ozunia-amg .mcp-right {
  background: #16181b !important;
  background-color: #16181b !important;
  color: #f2f2f3 !important;
}

html.ozunia-amg .mcp-access-point {
  border-top: 1px solid #2a2d32 !important;
}

html.ozunia-amg .mcp-header .bold-title,
html.ozunia-amg .mcp-access-point .bold-title,
html.ozunia-amg .mcp-left .bold-title,
html.ozunia-amg .mcp-right .bold-title,
html.ozunia-amg .mcp-right h4 {
  color: #f2f2f3 !important;
}

html.ozunia-amg .url-header,
html.ozunia-amg .url-header h4,
html.ozunia-amg .address-desc,
html.ozunia-amg .address-desc span {
  color: #a8adb4 !important;
}

html.ozunia-amg .mcp-access-point .doc-link,
html.ozunia-amg .address-desc .doc-link,
html.ozunia-amg .url-header .doc-link {
  color: #c4001a !important;
}

html.ozunia-amg .mcp-access-point .doc-link:hover,
html.ozunia-amg .address-desc .doc-link:hover {
  color: #e10600 !important;
}

/* Beat Vue scoped `.url-input .el-input__inner { background: #f5f5f5 !important }` */
html.ozunia-amg .mcp-access-point .url-input .el-input__inner,
html.ozunia-amg .url-input .el-input__inner,
html.ozunia-amg .mcp-access-point .el-input.is-disabled .el-input__inner,
html.ozunia-amg .mcp-access-point .el-textarea__inner {
  background: #111214 !important;
  background-color: #111214 !important;
  border-color: #2a2d32 !important;
  color: #f2f2f3 !important;
  -webkit-text-fill-color: #f2f2f3 !important;
}

html.ozunia-amg .mcp-access-point .url-input .el-input__inner::placeholder,
html.ozunia-amg .url-input .el-input__inner::placeholder,
html.ozunia-amg .mcp-access-point .el-textarea__inner::placeholder,
html.ozunia-amg .url-input input::placeholder {
  color: #a8adb4 !important;
  -webkit-text-fill-color: #a8adb4 !important;
  opacity: 1 !important;
}

html.ozunia-amg .mcp-access-point .inner-copy-btn,
html.ozunia-amg .url-input .inner-copy-btn,
html.ozunia-amg .url-input .el-input__suffix .inner-copy-btn,
html.ozunia-amg .url-input .el-button.inner-copy-btn {
  background: #c4001a !important;
  background-color: #c4001a !important;
  border: none !important;
  color: #fff !important;
}

html.ozunia-amg .mcp-access-point .inner-copy-btn:hover,
html.ozunia-amg .url-input .inner-copy-btn:hover {
  background: #e10600 !important;
  background-color: #e10600 !important;
  color: #fff !important;
}

html.ozunia-amg .status-container,
html.ozunia-amg .status-text,
html.ozunia-amg .mcp-right .status-text {
  color: #f2f2f3 !important;
}

html.ozunia-amg .status-indicator.disconnected {
  background-color: #a8adb4 !important;
}

html.ozunia-amg .status-indicator.connected {
  background-color: #3dcc7a !important;
}

html.ozunia-amg .refresh-btn,
html.ozunia-amg .status-container .refresh-btn {
  background: #1c1f24 !important;
  background-color: #1c1f24 !important;
  color: #c8ccd0 !important;
  border: 1px solid #2a2d32 !important;
}

html.ozunia-amg .refresh-btn:hover,
html.ozunia-amg .status-container .refresh-btn:hover {
  background: #c4001a !important;
  background-color: #c4001a !important;
  color: #fff !important;
  border-color: #c4001a !important;
}

html.ozunia-amg .mcp-tools-list .no-tools,
html.ozunia-amg .mcp-tools-list .no-tools span,
html.ozunia-amg .no-tools {
  color: #a8adb4 !important;
}

html.ozunia-amg .mcp-tools-list .tool-btn,
html.ozunia-amg .tool-btn.el-button {
  background: #1c1f24 !important;
  background-color: #1c1f24 !important;
  border-color: #2a2d32 !important;
  color: #c8ccd0 !important;
}

html.ozunia-amg .mcp-tools-list .tool-btn:hover,
html.ozunia-amg .tool-btn.el-button:hover {
  background: #c4001a !important;
  background-color: #c4001a !important;
  border-color: #c4001a !important;
  color: #fff !important;
}

html.ozunia-amg .el-drawer:has(.function-manager) .drawer-footer .el-button:not(.el-button--primary),
html.ozunia-amg .el-drawer:has(.mcp-access-point) .drawer-footer .el-button:not(.el-button--primary) {
  background: #1c1f24 !important;
  color: #f2f2f3 !important;
  border: 1px solid #2a2d32 !important;
}

html.ozunia-amg .el-drawer:has(.function-manager) .drawer-footer .el-button--primary,
html.ozunia-amg .el-drawer:has(.mcp-access-point) .drawer-footer .el-button--primary {
  background: #c4001a !important;
  border-color: #c4001a !important;
  color: #fff !important;
}

/* ========== Edit Source (context provider / API source) ==========
   Vue scoped SCSS still paints .headers-list #fcfcfc with a dashed
   #dcdfe6 border. Theme already darkens .el-input__inner, so Key/Value
   sit as night fields on a stock white chip until this container matches. */
html.ozunia-amg .context-provider-dialog,
html.ozunia-amg .context-provider-dialog.el-dialog,
html.ozunia-amg .el-dialog.context-provider-dialog,
html.ozunia-amg .context-provider-dialog .el-dialog__body,
html.ozunia-amg .context-provider-dialog .dialog-content {
  background: #16181b !important;
  background-color: #16181b !important;
  color: #f2f2f3 !important;
}

html.ozunia-amg .context-provider-dialog .provider-card,
html.ozunia-amg .context-provider-dialog .provider-card.el-card,
html.ozunia-amg .context-provider-dialog .el-card,
html.ozunia-amg .context-provider-dialog .el-card__body {
  background: #16181b !important;
  background-color: #16181b !important;
  border-color: #2a2d32 !important;
  box-shadow: none !important;
}

html.ozunia-amg .context-provider-dialog .label-text,
html.ozunia-amg .context-provider-dialog .separator,
html.ozunia-amg .context-provider-dialog .no-header-text,
html.ozunia-amg .context-provider-dialog .empty-header {
  color: #a8adb4 !important;
}

html.ozunia-amg .context-provider-dialog .headers-section,
html.ozunia-amg .context-provider-dialog .headers-list,
html.ozunia-amg .headers-list {
  background: #1c1f24 !important;
  background-color: #1c1f24 !important;
  border: 1px solid #2a2d32 !important;
  border-style: solid !important;
  border-color: #2a2d32 !important;
}

html.ozunia-amg .context-provider-dialog .headers-list:hover,
html.ozunia-amg .headers-list:hover {
  background: #1c1f24 !important;
  background-color: #1c1f24 !important;
  border-color: #2a2d32 !important;
}

/* Key / Value match API URL: charcoal field, hairline idle, AMG red focus */
html.ozunia-amg .context-provider-dialog .input-row .el-input__inner,
html.ozunia-amg .context-provider-dialog .header-row .el-input__inner,
html.ozunia-amg .context-provider-dialog .headers-list .el-input__inner {
  background: #111214 !important;
  background-color: #111214 !important;
  border-color: #c4001a !important;
  color: #f2f2f3 !important;
  -webkit-text-fill-color: #f2f2f3 !important;
}

html.ozunia-amg .context-provider-dialog .input-row .el-input__inner::placeholder,
html.ozunia-amg .context-provider-dialog .header-row .el-input__inner::placeholder,
html.ozunia-amg .context-provider-dialog .headers-list .el-input__inner::placeholder,
html.ozunia-amg .context-provider-dialog .header-row input::placeholder {
  color: #a8adb4 !important;
  -webkit-text-fill-color: #a8adb4 !important;
  opacity: 1 !important;
}

html.ozunia-amg .context-provider-dialog .input-row .el-input__inner:focus,
html.ozunia-amg .context-provider-dialog .header-row .el-input__inner:focus,
html.ozunia-amg .context-provider-dialog .headers-list .el-input__inner:focus {
  border-color: #c4001a !important;
}

html.ozunia-amg .context-provider-dialog .row-controls {
  opacity: 1 !important;
}

/* Beat theme `.el-button.is-plain` transparent + `.el-button.is-circle` wash */
html.ozunia-amg .context-provider-dialog .row-controls .el-button--primary,
html.ozunia-amg .context-provider-dialog .row-controls .el-button--primary.is-plain,
html.ozunia-amg .context-provider-dialog .row-controls .el-button--primary.is-circle,
html.ozunia-amg .context-provider-dialog .row-controls .el-button--primary.is-plain.is-circle {
  background: #c4001a !important;
  background-color: #c4001a !important;
  border-color: #c4001a !important;
  color: #fff !important;
  opacity: 1 !important;
}

html.ozunia-amg .context-provider-dialog .row-controls .el-button--danger,
html.ozunia-amg .context-provider-dialog .row-controls .el-button--danger.is-plain,
html.ozunia-amg .context-provider-dialog .row-controls .el-button--danger.is-circle,
html.ozunia-amg .context-provider-dialog .row-controls .el-button--danger.is-plain.is-circle {
  background: #8a0012 !important;
  background-color: #8a0012 !important;
  border-color: #8a0012 !important;
  color: #fff !important;
  opacity: 1 !important;
}

html.ozunia-amg .context-provider-dialog .row-controls .el-button--primary:hover,
html.ozunia-amg .context-provider-dialog .row-controls .el-button--primary.is-plain:hover {
  background: #e10600 !important;
  background-color: #e10600 !important;
  border-color: #e10600 !important;
  color: #fff !important;
}

html.ozunia-amg .context-provider-dialog .empty-header .el-button--text,
html.ozunia-amg .context-provider-dialog .empty-header .el-button--text:hover {
  color: #c4001a !important;
}

html.ozunia-amg .context-provider-dialog .dialog-content::-webkit-scrollbar-thumb {
  background: #2a2d32 !important;
}

html.ozunia-amg .context-provider-dialog .dialog-content::-webkit-scrollbar-track {
  background: #111214 !important;
}

html.ozunia-amg .context-provider-dialog .dialog-footer .el-button:not(.el-button--primary) {
  background: #1c1f24 !important;
  color: #f2f2f3 !important;
  border: 1px solid #2a2d32 !important;
}

html.ozunia-amg .context-provider-dialog .dialog-footer .el-button--primary {
  background: #c4001a !important;
  border-color: #c4001a !important;
  color: #fff !important;
}
