@charset "UTF-8";
:root {
  --ff-ai-primary: #1A7EFB;
  --ff-ai-primary-hover: #1565C9;
  --ff-ai-primary-light: rgba(26, 126, 251, 0.15);
  --ff-ai-primary-dark: #0F5FB5;
  --ff-ai-chat-bg: #f9fafb;
  --ff-ai-surface-muted: #f9fafb;
  --ff-ai-surface-soft: #f3f4f6;
  --ff-ai-surface-strong: #e5e7eb;
  --ff-ai-surface: #ffffff;
  --ff-ai-text-primary: #111827;
  --ff-ai-text-secondary: #374151;
  --ff-ai-text-muted: #6b7280;
  --ff-ai-text-placeholder: #9ca3af;
  --ff-ai-text-disabled: #d1d5db;
  --ff-ai-border: #e5e7eb;
  --ff-ai-border-subtle: #f3f4f6;
  --ff-ai-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
  --ff-ai-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --ff-ai-radius: 0.5rem;
  --ff-ai-radius-lg: 0.75rem;
  --ff-ai-radius-xl: 1rem;
  --ff-ai-radius-full: 9999px;
  --ff-ai-msg-bg-color: #ffffff;
  --ff-ai-msg-text-color: #111827;
  --ff-human-msg-bg-color: #1A7EFB;
  --ff-human-msg-text-color: #ffffff;
  --ff-msg-font-size: 15px;
  --ff-msg-border-radius: 12px;
  --ff-msg-spacing: 16px;
  --ff-msg-padding: 16px;
  --ff-msg-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
  --ff-header-bg: #ffffff;
  --ff-ai-header-text: #111827;
  --ff-input-bg: #ffffff;
  --ff-input-border: #e5e7eb;
  --ff-ai-transition-fast: 0.15s;
  --ff-ai-transition-normal: 0.3s;
  --ff-ai-transition-slow: 0.5s;
  --ff-ai-chat-font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --ff-ai-chat-font-scale: 1;
}

.ff-ai-chat-message {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  width: 100%;
}
.ff-ai-chat-message:last-child {
  margin-bottom: 0 !important;
}
.ff-ai-chat-message.ff-ai-chat-message-user {
  flex-direction: row-reverse;
}

.ff-ai-chat-message-avatar {
  flex-shrink: 0;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: var(--ff-ai-radius-full, 9999px);
  display: flex;
  align-items: center;
  justify-content: center;
  background: color-mix(in srgb, var(--ff-ai-accent, #1f2937) 25%, var(--ff-ai-chat-bg, #ffffff) 75%);
  color: var(--ff-ai-chat-text, white);
}
.ff-ai-chat-message-avatar svg {
  width: 1.125rem;
  height: 1.125rem;
}
.ff-ai-chat-message-user .ff-ai-chat-message-avatar {
  background: var(--ff-ai-accent, var(--ff-ai-primary, #1A7EFB));
  color: var(--ff-ai-chat-text, white);
}

.ff-ai-chat-message-content {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}
.ff-ai-chat-message-user .ff-ai-chat-message-content {
  align-items: flex-end;
}
.ff-ai-chat-message-assistant .ff-ai-chat-message-content {
  align-items: flex-start;
}

.ff-ai-chat-message-label {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--ff-ai-text-muted, #6b7280);
  padding: 0 0.25rem;
}

.ff-ai-chat-message-bubble {
  padding: var(--ff-msg-padding, 0.75rem 1rem);
  line-height: 1.6;
  word-wrap: break-word;
  width: -moz-fit-content;
  width: fit-content;
}

:root {
  --ff-ai-settings-primary: #1A7EFB;
  --ff-ai-settings-primary-light: #4D9EFC;
  --ff-ai-settings-primary-dark: #1565C9;
  --ff-ai-settings-bg: #f8fafc;
  --ff-ai-settings-card-bg: #ffffff;
  --ff-ai-settings-border: #e2e8f0;
  --ff-ai-settings-border-radius: 12px;
  --ff-ai-settings-shadow: 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.06);
  --ff-ai-settings-text-primary: #1e293b;
  --ff-ai-settings-text-secondary: #64748b;
  --ff-ai-settings-text-muted: #94a3b8;
  --ff-ai-settings-accent: #E8F2FF;
  --ff-ai-settings-success: #00B27F;
  --ff-ai-settings-warning: #FCBE2D;
  --ff-ai-settings-danger: #FF6154;
}

.ff_landing_page_items {
  margin-top: 0;
}

.ff_settings_form {
  max-width: 100%;
  margin: 0 auto;
}

.el-switch {
  --el-switch-on-color: var(--ff-ai-settings-primary);
  --el-switch-off-color: #dcdfe6;
}

.el-input,
.el-select,
.el-textarea {
  width: 100%;
}

.ff_ai_chat_select_full,
.el-form-item__content .ff_ai_chat_select_full,
.el-form-item__content .el-select {
  width: 100%;
}

.el-form-item .el-form-item__content {
  max-width: 100%;
}

.ff_type_radio_item {
  margin-bottom: 16px;
}

.ff_message_style_block {
  margin-bottom: 12px;
}

.ff_chat_design_tab .el-tabs {
  padding: 5px;
  background: #f2f2f2;
  border-radius: 5px;
  margin-bottom: 10px;
}
.ff_chat_design_tab .ff_message_style_block > * {
  margin-bottom: 12px;
}
.ff_chat_design_tab .ff_message_style_block > *:last-child {
  margin-bottom: 0;
}

.ff_chat_design_advanced {
  margin-top: 8px;
  border-top: 1px solid var(--ff-ai-settings-border);
  border-bottom: none;
}
.ff_chat_design_advanced > .el-collapse-item:last-child {
  margin-bottom: 0;
}
.ff_chat_design_advanced .el-collapse-item__header {
  font-size: 14px;
  font-weight: 600;
  color: var(--ff-ai-settings-text-primary);
  height: 52px;
  line-height: 52px;
  padding: 0 4px;
  border-bottom: 1px solid var(--ff-ai-settings-border);
  transition: background-color 150ms ease;
  gap: 10px;
}
.ff_chat_design_advanced .el-collapse-item__header:hover {
  background-color: rgba(26, 126, 251, 0.025);
}
.ff_chat_design_advanced .el-collapse-item__header.is-active {
  color: var(--ff-ai-settings-primary);
}
.ff_chat_design_advanced .el-collapse-item__header.is-active .ff_ai_chat_section_chip {
  opacity: 0;
  transform: translateX(8px);
}
.ff_chat_design_advanced .el-collapse-item__header .ff_ai_chat_section_chip {
  margin-left: auto;
  margin-right: 12px;
}
.ff_chat_design_advanced .el-collapse-item__wrap {
  background: transparent;
  border-bottom: 1px solid var(--ff-ai-settings-border);
}
.ff_chat_design_advanced .el-collapse-item__content {
  padding: 20px 4px 24px;
}

.ff_fullscreen_message_style {
  margin-bottom: 16px;
}

.ff_screen_ai-chat-settings {
  padding: 0;
}

.ff-ai-chat-settings-card {
  padding-top: 0;
}

.ff_form_application_container {
  padding: 24px;
}

.ff_ai_chat_title_row {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  flex: 1;
  min-width: 0;
}
.ff_ai_chat_title_row .ff_ai_chat_enable_switch {
  flex-shrink: 0;
  margin-top: 4px;
}
.ff_ai_chat_title_row .ff_ai_chat_title_text {
  flex: 1;
  min-width: 0;
}
.ff_ai_chat_title_row .ff_ai_chat_title_text .title {
  margin-bottom: 2px;
}
.ff_ai_chat_title_row .ff_ai_chat_title_text .text {
  margin-top: 2px;
}

.ff-ai-chat-sticky-header {
  position: sticky;
  top: 32px;
  z-index: 100;
  background: var(--ff-ai-settings-card-bg);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  padding-top: 24px;
}
.ff-ai-chat-sticky-header .ff-ai-chat-header-left {
  flex: 1;
  min-width: 0;
}
.ff-ai-chat-sticky-header .ff-ai-chat-header-title-row {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}
.ff-ai-chat-sticky-header .ff-ai-chat-header-switch {
  flex-shrink: 0;
  margin-top: 2px;
}
.ff-ai-chat-sticky-header .ff-ai-chat-header-text {
  flex: 1;
  min-width: 0;
}
.ff-ai-chat-sticky-header .ff-ai-chat-header-text h5 {
  margin: 0 0 8px 0;
  font-size: 20px;
  font-weight: 600;
  color: var(--ff-ai-settings-text-primary);
}
.ff-ai-chat-sticky-header .ff-ai-chat-header-text p {
  margin: 0;
  font-size: 14px;
  color: var(--ff-ai-settings-text-secondary);
  line-height: 1.5;
}

.ff-ai-chat-form-wrapper {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.ff-ai-chat-form-wrapper .ff_input_width {
  width: 100%;
}

.ff-ai-chat-form .el-form-item,
.ff_landing_page_items .el-form-item {
  padding-bottom: 18px;
  margin-bottom: 0;
  border-bottom: 1px solid transparent;
  transition: border-color 150ms ease;
}
.ff-ai-chat-form .el-form-item + .el-form-item,
.ff_landing_page_items .el-form-item + .el-form-item {
  padding-top: 18px;
  border-top: 1px solid var(--ff-ai-settings-border);
}
.ff-ai-chat-form .el-form-item:last-child,
.ff_landing_page_items .el-form-item:last-child {
  margin-bottom: 0 !important;
  padding-bottom: 0;
  border-bottom: none;
}
.ff-ai-chat-form .el-form-item .el-form-item__label,
.ff_landing_page_items .el-form-item .el-form-item__label {
  text-align: left;
  padding: 0 0 6px;
  line-height: 1.5;
  font-size: 13px;
  font-weight: 500;
  color: var(--ff-ai-settings-text-primary);
  width: 100% !important;
  float: none;
  display: block;
}
.ff-ai-chat-form .el-form-item .el-form-item__label::before,
.ff_landing_page_items .el-form-item .el-form-item__label::before {
  display: none;
}
.ff-ai-chat-form .el-form-item .el-form-item__content,
.ff_landing_page_items .el-form-item .el-form-item__content {
  width: 100%;
  line-height: 1.4;
  float: none;
}
.ff-ai-chat-form .el-form-item.ff_ai_chat_toggle_item,
.ff_landing_page_items .el-form-item.ff_ai_chat_toggle_item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.ff-ai-chat-form .el-form-item.ff_ai_chat_toggle_item .el-form-item__label,
.ff_landing_page_items .el-form-item.ff_ai_chat_toggle_item .el-form-item__label {
  width: auto !important;
  padding: 0;
  flex: 1;
  min-width: 0;
}
.ff-ai-chat-form .el-form-item.ff_ai_chat_toggle_item .el-form-item__content,
.ff_landing_page_items .el-form-item.ff_ai_chat_toggle_item .el-form-item__content {
  width: auto;
  flex: 0 0 auto;
}

.ff-ai-chat-settings-layout {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  min-height: 600px;
}
@media (max-width: 1200px) {
  .ff-ai-chat-settings-layout {
    flex-direction: column;
  }
}

.ff-ai-chat-sidebar,
.ffc_design_sidebar {
  width: 350px;
  flex: 0 0 350px;
  min-width: 0;
  background: var(--ff-ai-settings-card-bg);
  border: 1px solid var(--ff-ai-settings-border);
  border-radius: var(--ff-ai-settings-border-radius);
  overflow: hidden;
}
@media (max-width: 1200px) {
  .ff-ai-chat-sidebar,
  .ffc_design_sidebar {
    flex: 1 1 auto;
    width: 100%;
  }
}

.ff-ai-chat-sidebar .ff_tab,
.ffc_design_sidebar .ff_tab {
  display: flex;
  border-bottom: 1px solid #ececec;
}
.ff-ai-chat-sidebar .ff_tab .ff_tab_item:not(:last-child),
.ffc_design_sidebar .ff_tab .ff_tab_item:not(:last-child) {
  margin-right: 30px;
}
.ff-ai-chat-sidebar .ff_tab .ff_tab_item.active .ff_tab_link,
.ffc_design_sidebar .ff_tab .ff_tab_item.active .ff_tab_link {
  color: var(--ff-ai-settings-primary);
}
.ff-ai-chat-sidebar .ff_tab .ff_tab_item.active .ff_tab_link::after,
.ffc_design_sidebar .ff_tab .ff_tab_item.active .ff_tab_link::after {
  width: 100%;
}
.ff-ai-chat-sidebar .ff_tab .ff_tab_link,
.ffc_design_sidebar .ff_tab .ff_tab_link {
  padding-bottom: 16px;
  display: block;
  font-weight: 500;
  font-size: 16px;
  color: var(--ff-ai-settings-text-primary);
  position: relative;
}
.ff-ai-chat-sidebar .ff_tab .ff_tab_link::after,
.ffc_design_sidebar .ff_tab .ff_tab_link::after {
  position: absolute;
  content: "";
  bottom: -1px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--ff-ai-settings-primary);
  transition: 0.2s;
}
.ff-ai-chat-sidebar .ff_tab.ff_tab_center .ff_tab_item,
.ffc_design_sidebar .ff_tab.ff_tab_center .ff_tab_item {
  flex: 1;
  text-align: center;
}

.ff_landing .ff_landing_sidebar .ffc_sidebar_body {
  padding: 16px 1px 0 0;
}

.ff-landing-page-settings {
  --ff-ai-sticky-top: 32px;
  --ff-ai-card-head-h: 70px;
}

.ff-landing-page-settings .ff_card_head {
  position: sticky;
  top: var(--ff-ai-sticky-top);
  z-index: 20;
  background: var(--ff-ai-settings-card-bg);
  margin: 0;
  padding-top: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--ff-ai-settings-border);
}

.ff-landing-page-settings .ff_landing {
  display: flex;
  align-items: flex-start;
  gap: 24px;
}
@media (max-width: 1100px) {
  .ff-landing-page-settings .ff_landing {
    flex-direction: column;
    gap: 20px;
  }
}
.ff-landing-page-settings .ff_landing .ff_landing_sidebar {
  flex: 1 1 auto;
  min-width: 0;
  max-width: 720px;
}
@media (min-width: 1101px) {
  .ff-landing-page-settings .ff_landing .ff_landing_sidebar {
    min-width: 480px;
  }
}
@media (max-width: 1100px) {
  .ff-landing-page-settings .ff_landing .ff_landing_sidebar {
    flex: 1 1 100%;
    max-width: 100%;
    width: 100%;
  }
}
.ff-landing-page-settings .ff_landing .ff_landing_sidebar,
.ff-landing-page-settings .ff_landing .ff_landing_sidebar .ffc_sidebar_body {
  height: auto;
  max-height: none;
  overflow: visible;
}
.ff-landing-page-settings .ff_landing .ff_landing_preview {
  flex: 0 1 800px;
  max-width: 800px;
  min-width: 0;
  margin-top: 16px;
  position: sticky;
  top: calc(var(--ff-ai-sticky-top) + var(--ff-ai-card-head-h) + 16px);
  align-self: flex-start;
}
@media (max-width: 1100px) {
  .ff-landing-page-settings .ff_landing .ff_landing_preview {
    flex: 1 1 100%;
    max-width: 100%;
    width: 100%;
    margin-top: 0;
    position: static;
    top: auto;
  }
}
.ff-landing-page-settings .ff_landing .ff_landing_sidebar .ff_tab {
  flex-wrap: nowrap;
  overflow-x: auto;
  scrollbar-width: thin;
}
.ff-landing-page-settings .ff_landing .ff_landing_sidebar .ff_tab .ff_tab_item {
  flex: 0 0 auto;
}
.ff-landing-page-settings .ff_landing .ff_landing_sidebar .ff_tab .ff_tab_item:not(:last-child) {
  margin-right: 18px;
}
.ff-landing-page-settings .ff_landing .ff_landing_sidebar .ff_tab .ff_tab_link {
  white-space: nowrap;
  font-size: 14px;
  padding-bottom: 14px;
}

.ffc_sharing_settings .ff_card,
.ffc_sharing_settings .el-card {
  margin-bottom: 24px;
}

.ff-ai-chat-tab-content {
  padding: 0 8px;
}
.ff-ai-chat-tab-content.ff-ai-chat-tab-style .ff-ai-chat-form .el-form-item__label {
  width: 100% !important;
}
.ff-ai-chat-tab-content.ff-ai-chat-tab-style .ff-ai-chat-form .el-form-item__content {
  width: 100%;
}

.ff-ai-chat-layout-radio {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.ff-ai-chat-layout-radio .el-radio {
  display: flex;
  margin-right: 0;
  width: 100%;
}
.ff-ai-chat-layout-radio .el-radio .el-radio__label {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 12px 16px;
  border: 1px solid var(--ff-ai-settings-border);
  border-radius: 8px;
  background: var(--ff-ai-settings-card-bg);
  width: 100%;
}
.ff-ai-chat-layout-radio .ff-ai-chat-layout-option-title {
  font-weight: 500;
  color: var(--ff-ai-settings-text-primary);
  margin-bottom: 4px;
}
.ff-ai-chat-layout-radio .ff-ai-chat-layout-option-desc {
  font-size: 13px;
  color: var(--ff-ai-settings-text-secondary);
}

.ff-ai-chat-single-column {
  max-width: 640px;
  padding: 24px 0;
}

.ff-ai-chat-turn-on-message {
  margin: 0;
  font-size: 14px;
  color: var(--ff-ai-settings-text-secondary);
}

.ff-ai-chat-preview-column {
  position: relative;
}

.ff-form-item__content {
  width: 100%;
  max-width: 100%;
}

.ff-ai-chat-form-item .ff-ai-chat-label {
  display: flex;
  align-items: center;
  font-size: 14px;
  font-weight: 500;
  color: var(--ff-ai-settings-text-primary);
  line-height: 1.6;
}
.ff-ai-chat-form-item .ff-ai-chat-label .ff-icon {
  margin-left: 6px;
  color: var(--ff-ai-settings-text-muted);
  cursor: help;
}
.ff-ai-chat-form-item .ff-form-item__content > * {
  width: 100%;
}
.ff-ai-chat-form-item .el-input .el-input__inner,
.ff-ai-chat-form-item .el-input .el-textarea__inner,
.ff-ai-chat-form-item .el-select .el-input__inner,
.ff-ai-chat-form-item .el-select .el-textarea__inner,
.ff-ai-chat-form-item .el-textarea .el-input__inner,
.ff-ai-chat-form-item .el-textarea .el-textarea__inner {
  border-radius: 8px;
  border: 1px solid var(--ff-ai-settings-border);
}
.ff-ai-chat-form-item .el-input .el-input__inner:focus,
.ff-ai-chat-form-item .el-input .el-textarea__inner:focus,
.ff-ai-chat-form-item .el-select .el-input__inner:focus,
.ff-ai-chat-form-item .el-select .el-textarea__inner:focus,
.ff-ai-chat-form-item .el-textarea .el-input__inner:focus,
.ff-ai-chat-form-item .el-textarea .el-textarea__inner:focus {
  border-color: var(--ff-ai-settings-primary);
  box-shadow: 0 0 0 3px rgba(26, 126, 251, 0.1);
}
.ff-ai-chat-form-item .el-switch {
  margin-top: 4px;
}

.ff-ai-chat-conversation-style .el-radio {
  margin-right: 0;
  margin-bottom: 12px;
  width: 100%;
}
.ff-ai-chat-conversation-style .el-radio .el-radio__label {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 12px 16px;
  border: 1px solid var(--ff-ai-settings-border);
  border-radius: 8px;
  background: var(--ff-ai-settings-card-bg);
  transition: all 0.2s ease;
}
.ff-ai-chat-conversation-style .el-radio .el-radio__label .ff-ai-chat-style-name {
  font-weight: 500;
  color: var(--ff-ai-settings-text-primary);
  margin-bottom: 4px;
}
.ff-ai-chat-conversation-style .el-radio .el-radio__label .ff-ai-chat-style-description {
  font-size: 13px;
  color: var(--ff-ai-settings-text-secondary);
}
.ff-ai-chat-conversation-style .el-radio.is-checked .el-radio__label {
  border-color: var(--ff-ai-settings-primary);
  background: var(--ff-ai-settings-accent);
}

.ff-ai-chat-custom-prompt .el-textarea__inner {
  border-radius: 8px;
  border: 1px solid var(--ff-ai-settings-border);
  padding: 12px 16px;
  font-size: 14px;
  line-height: 1.5;
}
.ff-ai-chat-custom-prompt .el-textarea__inner:focus {
  border-color: var(--ff-ai-settings-primary);
  box-shadow: 0 0 0 3px rgba(26, 126, 251, 0.1);
}

.ff-ai-chat-embed-section {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.ff-ai-chat-embed-item {
  background: var(--ff-ai-settings-card-bg);
  border: 1px solid var(--ff-ai-settings-border);
  border-radius: 8px;
  padding: 16px;
}
.ff-ai-chat-embed-item .ff-ai-chat-embed-header {
  margin-bottom: 12px;
}
.ff-ai-chat-embed-item .ff-ai-chat-embed-header .ff-ai-chat-embed-title {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: var(--ff-ai-settings-text-primary);
  margin-bottom: 4px;
}
.ff-ai-chat-embed-item .ff-ai-chat-embed-header .ff-ai-chat-embed-subtitle {
  font-size: 13px;
  color: var(--ff-ai-settings-text-secondary);
}
.ff-ai-chat-embed-item .ff-ai-chat-embed-controls {
  display: flex;
  align-items: center;
  gap: 10px;
}
.ff-ai-chat-embed-item .ff-ai-chat-embed-controls .ff-ai-chat-embed-btn {
  flex: 1;
  display: flex;
  align-items: center;
  padding: 10px 12px;
  background: var(--ff-ai-settings-bg);
  border: 1px solid var(--ff-ai-settings-border);
  border-radius: 6px;
  font-size: 13px;
  color: var(--ff-ai-settings-text-primary);
  text-align: left;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ff-ai-chat-embed-item .ff-ai-chat-embed-controls .ff-ai-chat-embed-btn .el-icon {
  margin-right: 8px;
  color: var(--ff-ai-settings-text-muted);
}
.ff-ai-chat-embed-item .ff-ai-chat-embed-controls .ff-ai-chat-embed-btn .ff-ai-chat-embed-text {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ff-ai-chat-embed-item .ff-ai-chat-embed-controls .ff-ai-chat-embed-btn:hover {
  background: #f1f5f9;
  border-color: #cbd5e1;
}
.ff-ai-chat-embed-item .ff-ai-chat-embed-controls .ff-ai-chat-embed-action .el-icon {
  margin-right: 6px;
}

.ff_ai_unsupported_notice {
  padding: 10px 12px;
  margin-bottom: 12px;
  font-size: 12px;
  line-height: 1.5;
  color: #946800;
  background: #fef9e7;
  border: 1px solid #f5e6b8;
  border-radius: 6px;
}
.ff_ai_unsupported_notice .el-icon-warning-outline {
  font-size: 14px;
  margin-right: 4px;
  vertical-align: -1px;
}

.ff_ai_unsupported_list {
  margin: 4px 0 0;
  padding: 0 0 0 20px;
  list-style: disc;
}
.ff_ai_unsupported_list li {
  font-weight: 500;
  font-size: 12px;
}

.ff_ai_chat_status_badge {
  display: inline-block;
  margin-left: 8px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 500;
  line-height: 1.4;
  vertical-align: middle;
  white-space: nowrap;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ff_ai_chat_status_badge.ok {
  background: rgba(16, 185, 129, 0.12);
  color: #047857;
}
.ff_ai_chat_status_badge.warn {
  background: rgba(245, 158, 11, 0.12);
  color: #b45309;
}
.ff_ai_chat_status_badge.neutral {
  background: #f3f4f6;
  color: #6b7280;
}

.ff_ai_chat_dpa_body p {
  margin: 0 0 10px;
  font-size: 13px;
  line-height: 1.5;
}
.ff_ai_chat_dpa_body ul {
  margin: 8px 0 0 20px;
  list-style: disc;
  font-size: 13px;
}

.ff_ai_chat_conv_tab .ff_ai_chat_section_icon {
  margin-right: 10px;
  font-size: 16px;
  color: var(--ff-ai-settings-text-muted);
  vertical-align: -1px;
  transition: color 150ms ease-out;
}
.ff_ai_chat_conv_tab .el-collapse-item.is-active > .el-collapse-item__header .ff_ai_chat_section_icon {
  color: var(--ff-ai-settings-primary);
}
.ff_ai_chat_conv_tab .ff_ai_chat_inline_actions {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}
.ff_ai_chat_conv_tab .ff_ai_chat_tone_grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  width: 100%;
}
.ff_ai_chat_conv_tab .ff_ai_chat_tone_grid .el-radio-button {
  display: block;
  width: 100%;
}
.ff_ai_chat_conv_tab .ff_ai_chat_tone_grid .el-radio-button .el-radio-button__inner {
  display: block;
  width: 100%;
  padding: 10px 12px;
  font-size: 13px;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ff_ai_chat_conv_tab .ff_ai_chat_tone_grid .el-radio-button:nth-child(1) .el-radio-button__inner {
  border-radius: 6px 0 0 0;
}
.ff_ai_chat_conv_tab .ff_ai_chat_tone_grid .el-radio-button:nth-child(2) .el-radio-button__inner {
  border-radius: 0 6px 0 0;
  border-left: 0;
}
.ff_ai_chat_conv_tab .ff_ai_chat_tone_grid .el-radio-button:nth-child(3) .el-radio-button__inner {
  border-radius: 0 0 0 6px;
  border-top: 0;
}
.ff_ai_chat_conv_tab .ff_ai_chat_tone_grid .el-radio-button:nth-child(4) .el-radio-button__inner {
  border-radius: 0 0 6px 0;
  border-top: 0;
  border-left: 0;
}
.ff_ai_chat_conv_tab .ff_ai_chat_test_status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  padding: 6px 12px;
  border-radius: 9999px;
  font-size: 13px;
  line-height: 1.2;
}
.ff_ai_chat_conv_tab .ff_ai_chat_test_status.ok {
  color: #00B27F;
  background: rgba(0, 178, 127, 0.1);
}
.ff_ai_chat_conv_tab .ff_ai_chat_test_status.err {
  color: #FF6154;
  background: rgba(255, 97, 84, 0.1);
}
.ff_ai_chat_conv_tab .ff_ai_chat_test_status__icon {
  font-size: 16px;
  line-height: 1;
  color: currentColor;
  flex-shrink: 0;
}
.ff_ai_chat_conv_tab .ff_ai_chat_test_status__msg {
  font-weight: 500;
}
.ff_ai_chat_conv_tab .ff_ai_chat_test_status__cooldown {
  color: var(--ff-ai-settings-text-muted);
  font-size: 12px;
  font-weight: 400;
}
.ff_ai_chat_conv_tab .ff_ai_chat_test_status__cooldown::before {
  content: "·";
  margin-right: 4px;
  opacity: 0.5;
}
.ff_ai_chat_conv_tab .ff_ai_chat_help_link {
  display: inline-block;
  margin-top: 6px;
  font-size: 12px;
}
.ff_ai_chat_conv_tab .ff_ai_chat_char_count {
  float: right;
  font-size: 11px;
  color: #6b7280;
  font-weight: normal;
}
.ff_ai_chat_conv_tab .ff_ai_chat_char_count.over {
  color: #d97706;
}
.ff_ai_chat_conv_tab .ff_ai_chat_form_hint {
  margin: 4px 0 0;
  font-size: 12px;
  color: #6b7280;
}
.ff_ai_chat_conv_tab .ff_ai_chat_chip_inputs {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
}
.ff_ai_chat_conv_tab .ff_ai_chat_toggle_row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 0;
  font-size: 13px;
}
.ff_ai_chat_conv_tab .ff_ai_chat_cost_hint {
  color: #6b7280;
  font-size: 12px;
}
.ff_ai_chat_conv_tab .ff_ai_chat_mt_8 {
  margin-top: 8px;
}
.ff_ai_chat_conv_tab .ff_ai_chat_warn_text {
  color: #b45309;
  font-size: 13px;
  margin: 0 0 12px;
}
.ff_ai_chat_conv_tab .ff_ai_chat_reset_counts {
  list-style: disc;
  margin-left: 20px;
  font-size: 13px;
}

.ff_ai_chat_kb_tab .ff_ai_chat_kb_header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 20px;
}
.ff_ai_chat_kb_tab .ff_ai_chat_kb_header h4 {
  margin: 0 0 4px;
  font-size: 16px;
  font-weight: 600;
}
.ff_ai_chat_kb_tab .ff_ai_chat_kb_header p {
  margin: 0;
  font-size: 13px;
  color: var(--ff-ai-settings-text-muted);
}
.ff_ai_chat_kb_tab .ff_ai_chat_kb_meter {
  flex: 0 0 auto;
  position: relative;
  min-width: 132px;
  padding: 10px 16px 14px;
  border-radius: 10px;
  background: var(--ff-ai-settings-bg);
  font-size: 13px;
  line-height: 1.2;
  text-align: center;
  cursor: help;
  transition: background-color 250ms cubic-bezier(0.22, 1, 0.36, 1);
}
.ff_ai_chat_kb_tab .ff_ai_chat_kb_meter .ff_ai_chat_kb_meter__nums {
  display: flex;
  justify-content: center;
  align-items: baseline;
  gap: 2px;
}
.ff_ai_chat_kb_tab .ff_ai_chat_kb_meter .meter-count {
  font-size: 22px;
  font-weight: 600;
  color: var(--ff-ai-settings-text-primary);
  font-variant-numeric: tabular-nums;
  transition: color 250ms cubic-bezier(0.22, 1, 0.36, 1);
}
.ff_ai_chat_kb_tab .ff_ai_chat_kb_meter .meter-divider {
  margin: 0 4px;
  color: var(--ff-ai-settings-text-placeholder);
}
.ff_ai_chat_kb_tab .ff_ai_chat_kb_meter .meter-cap {
  color: var(--ff-ai-settings-text-muted);
  font-variant-numeric: tabular-nums;
}
.ff_ai_chat_kb_tab .ff_ai_chat_kb_meter .meter-label {
  display: block;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ff-ai-settings-text-muted);
  margin-top: 4px;
}
.ff_ai_chat_kb_tab .ff_ai_chat_kb_meter .ff_ai_chat_kb_meter__bar {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 6px;
  height: 3px;
  background: rgba(0, 0, 0, 0.06);
  border-radius: 2px;
  overflow: hidden;
}
.ff_ai_chat_kb_tab .ff_ai_chat_kb_meter .ff_ai_chat_kb_meter__bar-fill {
  height: 100%;
  background: var(--ff-ai-settings-text-placeholder);
  border-radius: 2px;
  transition: width 250ms cubic-bezier(0.22, 1, 0.36, 1), background-color 250ms cubic-bezier(0.22, 1, 0.36, 1);
}
.ff_ai_chat_kb_tab .ff_ai_chat_kb_meter.idle .ff_ai_chat_kb_meter__bar-fill {
  background: var(--ff-ai-settings-text-placeholder);
}
.ff_ai_chat_kb_tab .ff_ai_chat_kb_meter.ok {
  background: var(--ff-ai-settings-accent);
}
.ff_ai_chat_kb_tab .ff_ai_chat_kb_meter.ok .meter-count {
  color: var(--ff-ai-settings-primary);
}
.ff_ai_chat_kb_tab .ff_ai_chat_kb_meter.ok .ff_ai_chat_kb_meter__bar-fill {
  background: var(--ff-ai-settings-primary);
}
.ff_ai_chat_kb_tab .ff_ai_chat_kb_meter.amber {
  background: rgba(252, 190, 45, 0.14);
}
.ff_ai_chat_kb_tab .ff_ai_chat_kb_meter.amber .meter-count {
  color: #b45309;
}
.ff_ai_chat_kb_tab .ff_ai_chat_kb_meter.amber .ff_ai_chat_kb_meter__bar-fill {
  background: var(--ff-ai-settings-warning);
}
.ff_ai_chat_kb_tab .ff_ai_chat_kb_meter.red {
  background: rgba(255, 97, 84, 0.14);
}
.ff_ai_chat_kb_tab .ff_ai_chat_kb_meter.red .meter-count {
  color: #b91c1c;
}
.ff_ai_chat_kb_tab .ff_ai_chat_kb_meter.red .ff_ai_chat_kb_meter__bar-fill {
  background: var(--ff-ai-settings-danger);
}
.ff_ai_chat_kb_tab .ff_ai_chat_kb_actions {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.ff_ai_chat_kb_tab .ff_ai_chat_kb_cap_warn {
  font-size: 12px;
  color: #b91c1c;
}
.ff_ai_chat_kb_tab .ff_ai_chat_kb_cap_approach {
  font-size: 12px;
  color: #b45309;
}
.ff_ai_chat_kb_tab .ff_ai_chat_kb_form {
  margin-bottom: 20px;
  padding: 16px;
  border: 1px solid var(--ff-ai-settings-border);
  border-radius: 10px;
  background: var(--ff-ai-settings-bg);
}
.ff_ai_chat_kb_tab .ff_ai_chat_kb_form h5 {
  margin: 0 0 10px;
  font-size: 14px;
  font-weight: 600;
}
.ff_ai_chat_kb_tab .ff_ai_chat_kb_form .el-input + .el-input {
  margin-top: 8px;
}
.ff_ai_chat_kb_tab .ff_ai_chat_kb_form .ff_ai_chat_kb_form__textarea {
  margin-top: 8px;
}
.ff_ai_chat_kb_tab .ff_ai_chat_kb_form .ff_ai_chat_kb_form__hint {
  margin: 6px 0 8px;
  font-size: 12px;
  color: var(--ff-ai-settings-text-muted);
}
.ff_ai_chat_kb_tab .ff_ai_chat_kb_form .ff_ai_chat_kb_form__actions {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}
.ff_ai_chat_kb_tab .ff_ai_chat_kb_form .ff_ai_chat_kb_form__url {
  position: relative;
  margin-top: 8px;
}
.ff_ai_chat_kb_tab .ff_ai_chat_kb_form .ff_ai_chat_kb_form__url .ff_ai_chat_kb_form__url-dot {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ff-ai-settings-text-placeholder);
  transition: background-color 200ms ease-out, box-shadow 200ms ease-out;
}
.ff_ai_chat_kb_tab .ff_ai_chat_kb_form .ff_ai_chat_kb_form__url .ff_ai_chat_kb_form__url-dot.ok {
  background: var(--ff-ai-settings-success);
  box-shadow: 0 0 0 3px rgba(0, 178, 127, 0.18);
}
.ff_ai_chat_kb_tab .ff_ai_chat_kb_form .ff_ai_chat_kb_form__url .ff_ai_chat_kb_form__url-dot.red {
  background: var(--ff-ai-settings-danger);
  box-shadow: 0 0 0 3px rgba(255, 97, 84, 0.18);
}
.ff_ai_chat_kb_tab .ff_ai_chat_kb_form .ff_ai_chat_kb_form__url-status {
  font-weight: 500;
}
.ff_ai_chat_kb_tab .ff_ai_chat_kb_form .ff_ai_chat_kb_form__url-status.ok {
  color: var(--ff-ai-settings-success);
}
.ff_ai_chat_kb_tab .ff_ai_chat_kb_form .ff_ai_chat_kb_form__url-status.red {
  color: var(--ff-ai-settings-danger);
}
.ff_ai_chat_kb_tab .ff_ai_chat_kb_form .ff_ai_chat_kb_form__url-status.idle {
  color: var(--ff-ai-settings-text-muted);
}
.ff_ai_chat_kb_tab .ff_ai_chat_kb_sources h5 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px;
  font-size: 14px;
  font-weight: 600;
}
.ff_ai_chat_kb_tab .ff_ai_chat_kb_sources .ff_ai_chat_kb_sources__count {
  display: inline-flex;
  min-width: 22px;
  padding: 2px 8px;
  border-radius: 9999px;
  background: var(--ff-ai-settings-bg);
  color: var(--ff-ai-settings-text-secondary);
  font-size: 11px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  justify-content: center;
}
.ff_ai_chat_kb_tab .ff_ai_chat_kb_source_list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.ff_ai_chat_kb_tab .ff_ai_chat_kb_source_card {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  border: 1px solid var(--ff-ai-settings-border);
  border-radius: 12px;
  background: var(--ff-ai-settings-bg);
  transition: border-color 150ms ease-out, box-shadow 150ms ease-out;
}
.ff_ai_chat_kb_tab .ff_ai_chat_kb_source_card:hover, .ff_ai_chat_kb_tab .ff_ai_chat_kb_source_card:focus-within {
  border-color: var(--ff-ai-settings-border-hover, var(--ff-ai-settings-border));
  box-shadow: 0 0 0 1px rgba(26, 126, 251, 0.08);
}
.ff_ai_chat_kb_tab .ff_ai_chat_kb_source_card__main {
  flex: 1;
  min-width: 0;
}
.ff_ai_chat_kb_tab .ff_ai_chat_kb_source_card__title_row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 4px;
}
.ff_ai_chat_kb_tab .ff_ai_chat_kb_source_card__title {
  font-size: 14px;
  font-weight: 600;
  color: var(--ff-ai-settings-text-primary);
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ff_ai_chat_kb_tab .ff_ai_chat_kb_source_card__meta {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: nowrap;
  margin-top: 10px;
}
.ff_ai_chat_kb_tab .ff_ai_chat_kb_source_card__meta_item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  white-space: nowrap;
  color: var(--ff-ai-settings-text-secondary);
}
.ff_ai_chat_kb_tab .ff_ai_chat_kb_source_card__meta_label {
  color: var(--ff-ai-settings-text-muted);
}
.ff_ai_chat_kb_tab .ff_ai_chat_kb_source_card__actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.ff_ai_chat_kb_tab .ff_ai_chat_kb_loading {
  padding: 32px;
  text-align: center;
  color: var(--ff-ai-settings-text-muted);
  font-size: 13px;
}
.ff_ai_chat_kb_tab .ff_ai_chat_kb_loading .el-icon-loading {
  margin-right: 6px;
}
.ff_ai_chat_kb_tab .ff_ai_chat_kb_empty {
  max-width: 480px;
  margin: 8px auto 0;
  padding: 48px 24px 40px;
  text-align: center;
}
.ff_ai_chat_kb_tab .ff_ai_chat_kb_empty__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  margin-bottom: 16px;
  color: var(--ff-ai-settings-primary);
  background: var(--ff-ai-settings-accent);
  border-radius: 16px;
}
.ff_ai_chat_kb_tab .ff_ai_chat_kb_empty__icon svg {
  width: 28px;
  height: 28px;
}
.ff_ai_chat_kb_tab .ff_ai_chat_kb_empty__title {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 600;
  color: var(--ff-ai-settings-text-primary);
  letter-spacing: -0.01em;
}
.ff_ai_chat_kb_tab .ff_ai_chat_kb_empty__body {
  margin: 0 auto 20px;
  max-width: 380px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--ff-ai-settings-text-secondary);
}
.ff_ai_chat_kb_tab .ff_ai_chat_kb_empty__actions {
  display: inline-flex;
  gap: 8px;
  justify-content: center;
}
.ff_ai_chat_kb_tab .ff_ai_chat_kb_table__sub {
  margin-top: 2px;
  font-size: 12px;
  line-height: 1.4;
  color: var(--ff-ai-settings-text-placeholder);
  word-break: break-word;
}
.ff_ai_chat_kb_tab .ff_ai_chat_kb_table__type {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  flex-shrink: 0;
  padding: 2px 8px;
  font-size: 11px;
  font-weight: 500;
  line-height: 1.5;
  color: var(--ff-ai-settings-text-secondary);
  background: var(--ff-ai-settings-surface-muted, #f3f4f6);
  border-radius: 999px;
}
.ff_ai_chat_kb_tab .ff_ai_chat_kb_table__type svg {
  width: 13px;
  height: 13px;
  color: var(--ff-ai-settings-text-placeholder);
  flex-shrink: 0;
}
.ff_ai_chat_kb_tab .ff_ai_chat_kb_table__type--url svg {
  color: var(--ff-ai-settings-primary);
}

@media (prefers-reduced-motion: reduce) {
  .ff_ai_chat_kb_meter,
  .ff_ai_chat_kb_meter .meter-count,
  .ff_ai_chat_kb_meter__bar-fill,
  .ff_ai_chat_kb_form__url-dot {
    transition: none !important;
  }
}
.ff_ai_chat_display_tab .ff_ai_chat_display_hint {
  margin: 6px 0 0;
  font-size: 12px;
  color: #6b7280;
}
.ff_ai_chat_display_tab .ff_ai_chat_display_mt {
  margin-top: 8px;
}
.ff_ai_chat_display_tab .ff_ai_chat_display_toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 0;
  font-size: 13px;
}
.ff_ai_chat_display_tab .el-radio-group {
  display: flex;
  width: 100%;
}
.ff_ai_chat_display_tab .el-radio-button {
  flex: 1 1 0;
  min-width: 0;
}
.ff_ai_chat_display_tab .el-radio-button .el-radio-button__inner {
  display: block;
  width: 100%;
  padding: 9px 8px;
  font-size: 12px;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ff-ai-chat-settings-card .el-input__inner,
.ff-ai-chat-settings-card .el-textarea__inner,
.ff-ai-chat-settings-card .el-input-number__input,
.ffc_design_form_settings .el-input__inner,
.ffc_design_form_settings .el-textarea__inner,
.ffc_design_form_settings .el-input-number__input,
.ffc_sharing_settings .el-input__inner,
.ffc_sharing_settings .el-textarea__inner,
.ffc_sharing_settings .el-input-number__input,
.ff-ai-chat-form .el-input__inner,
.ff-ai-chat-form .el-textarea__inner,
.ff-ai-chat-form .el-input-number__input,
.ff-ai-chat-form-wrapper .el-input__inner,
.ff-ai-chat-form-wrapper .el-textarea__inner,
.ff-ai-chat-form-wrapper .el-input-number__input,
.ff-ai-chat-accordion .el-input__inner,
.ff-ai-chat-accordion .el-textarea__inner,
.ff-ai-chat-accordion .el-input-number__input {
  border-radius: 8px;
  border-color: var(--ff-ai-settings-border);
  transition: border-color 150ms ease, box-shadow 150ms ease;
}
.ff-ai-chat-settings-card .el-input__inner:hover,
.ff-ai-chat-settings-card .el-textarea__inner:hover,
.ff-ai-chat-settings-card .el-input-number__input:hover,
.ffc_design_form_settings .el-input__inner:hover,
.ffc_design_form_settings .el-textarea__inner:hover,
.ffc_design_form_settings .el-input-number__input:hover,
.ffc_sharing_settings .el-input__inner:hover,
.ffc_sharing_settings .el-textarea__inner:hover,
.ffc_sharing_settings .el-input-number__input:hover,
.ff-ai-chat-form .el-input__inner:hover,
.ff-ai-chat-form .el-textarea__inner:hover,
.ff-ai-chat-form .el-input-number__input:hover,
.ff-ai-chat-form-wrapper .el-input__inner:hover,
.ff-ai-chat-form-wrapper .el-textarea__inner:hover,
.ff-ai-chat-form-wrapper .el-input-number__input:hover,
.ff-ai-chat-accordion .el-input__inner:hover,
.ff-ai-chat-accordion .el-textarea__inner:hover,
.ff-ai-chat-accordion .el-input-number__input:hover {
  border-color: rgba(26, 126, 251, 0.4);
}
.ff-ai-chat-settings-card .el-input__inner:focus,
.ff-ai-chat-settings-card .el-textarea__inner:focus,
.ff-ai-chat-settings-card .el-input-number__input:focus,
.ffc_design_form_settings .el-input__inner:focus,
.ffc_design_form_settings .el-textarea__inner:focus,
.ffc_design_form_settings .el-input-number__input:focus,
.ffc_sharing_settings .el-input__inner:focus,
.ffc_sharing_settings .el-textarea__inner:focus,
.ffc_sharing_settings .el-input-number__input:focus,
.ff-ai-chat-form .el-input__inner:focus,
.ff-ai-chat-form .el-textarea__inner:focus,
.ff-ai-chat-form .el-input-number__input:focus,
.ff-ai-chat-form-wrapper .el-input__inner:focus,
.ff-ai-chat-form-wrapper .el-textarea__inner:focus,
.ff-ai-chat-form-wrapper .el-input-number__input:focus,
.ff-ai-chat-accordion .el-input__inner:focus,
.ff-ai-chat-accordion .el-textarea__inner:focus,
.ff-ai-chat-accordion .el-input-number__input:focus {
  border-color: var(--ff-ai-settings-primary);
  box-shadow: 0 0 0 3px rgba(26, 126, 251, 0.12);
}
.ff-ai-chat-settings-card .el-input-number .el-input-number__decrease,
.ff-ai-chat-settings-card .el-input-number .el-input-number__increase,
.ffc_design_form_settings .el-input-number .el-input-number__decrease,
.ffc_design_form_settings .el-input-number .el-input-number__increase,
.ffc_sharing_settings .el-input-number .el-input-number__decrease,
.ffc_sharing_settings .el-input-number .el-input-number__increase,
.ff-ai-chat-form .el-input-number .el-input-number__decrease,
.ff-ai-chat-form .el-input-number .el-input-number__increase,
.ff-ai-chat-form-wrapper .el-input-number .el-input-number__decrease,
.ff-ai-chat-form-wrapper .el-input-number .el-input-number__increase,
.ff-ai-chat-accordion .el-input-number .el-input-number__decrease,
.ff-ai-chat-accordion .el-input-number .el-input-number__increase {
  top: 1px;
  bottom: 1px;
  height: auto;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ff-ai-chat-settings-card .el-input-number .el-input-number__decrease,
.ffc_design_form_settings .el-input-number .el-input-number__decrease,
.ffc_sharing_settings .el-input-number .el-input-number__decrease,
.ff-ai-chat-form .el-input-number .el-input-number__decrease,
.ff-ai-chat-form-wrapper .el-input-number .el-input-number__decrease,
.ff-ai-chat-accordion .el-input-number .el-input-number__decrease {
  border-radius: 8px 0 0 8px;
}
.ff-ai-chat-settings-card .el-input-number .el-input-number__increase,
.ffc_design_form_settings .el-input-number .el-input-number__increase,
.ffc_sharing_settings .el-input-number .el-input-number__increase,
.ff-ai-chat-form .el-input-number .el-input-number__increase,
.ff-ai-chat-form-wrapper .el-input-number .el-input-number__increase,
.ff-ai-chat-accordion .el-input-number .el-input-number__increase {
  border-radius: 0 8px 8px 0;
}
.ff-ai-chat-settings-card .ff_ai_chat_hint,
.ff-ai-chat-settings-card .ff_ai_chat_form_hint,
.ffc_design_form_settings .ff_ai_chat_hint,
.ffc_design_form_settings .ff_ai_chat_form_hint,
.ffc_sharing_settings .ff_ai_chat_hint,
.ffc_sharing_settings .ff_ai_chat_form_hint,
.ff-ai-chat-form .ff_ai_chat_hint,
.ff-ai-chat-form .ff_ai_chat_form_hint,
.ff-ai-chat-form-wrapper .ff_ai_chat_hint,
.ff-ai-chat-form-wrapper .ff_ai_chat_form_hint,
.ff-ai-chat-accordion .ff_ai_chat_hint,
.ff-ai-chat-accordion .ff_ai_chat_form_hint {
  font-size: 12px;
  color: var(--ff-ai-settings-text-secondary);
  margin: 6px 0 0;
  line-height: 1.45;
}
.ff-ai-chat-settings-card .ff_ai_chat_tone_example,
.ffc_design_form_settings .ff_ai_chat_tone_example,
.ffc_sharing_settings .ff_ai_chat_tone_example,
.ff-ai-chat-form .ff_ai_chat_tone_example,
.ff-ai-chat-form-wrapper .ff_ai_chat_tone_example,
.ff-ai-chat-accordion .ff_ai_chat_tone_example {
  margin: 10px 0 0;
  padding: 8px 12px;
  font-size: 12px;
  background: var(--ff-ai-settings-accent);
  color: var(--ff-ai-settings-text-secondary);
  border-radius: 6px;
  border-left: 3px solid var(--ff-ai-settings-primary);
}
.ff-ai-chat-settings-card .ff_ai_chat_tone_example strong,
.ffc_design_form_settings .ff_ai_chat_tone_example strong,
.ffc_sharing_settings .ff_ai_chat_tone_example strong,
.ff-ai-chat-form .ff_ai_chat_tone_example strong,
.ff-ai-chat-form-wrapper .ff_ai_chat_tone_example strong,
.ff-ai-chat-accordion .ff_ai_chat_tone_example strong {
  color: var(--ff-ai-settings-text-primary);
}
.ff-ai-chat-settings-card .ff_ai_chat_tone_example em,
.ffc_design_form_settings .ff_ai_chat_tone_example em,
.ffc_sharing_settings .ff_ai_chat_tone_example em,
.ff-ai-chat-form .ff_ai_chat_tone_example em,
.ff-ai-chat-form-wrapper .ff_ai_chat_tone_example em,
.ff-ai-chat-accordion .ff_ai_chat_tone_example em {
  font-style: italic;
}
.ff-ai-chat-settings-card .ff_ai_chat_pool_count,
.ffc_design_form_settings .ff_ai_chat_pool_count,
.ffc_sharing_settings .ff_ai_chat_pool_count,
.ff-ai-chat-form .ff_ai_chat_pool_count,
.ff-ai-chat-form-wrapper .ff_ai_chat_pool_count,
.ff-ai-chat-accordion .ff_ai_chat_pool_count {
  display: inline-flex;
  align-items: center;
  height: 20px;
  padding: 0 8px;
  margin-left: 10px;
  background: var(--ff-ai-settings-accent);
  color: var(--ff-ai-settings-primary);
  font-size: 11px;
  font-weight: 600;
  border-radius: 999px;
}
.ff-ai-chat-settings-card .ff_ai_chat_pool_clear,
.ffc_design_form_settings .ff_ai_chat_pool_clear,
.ffc_sharing_settings .ff_ai_chat_pool_clear,
.ff-ai-chat-form .ff_ai_chat_pool_clear,
.ff-ai-chat-form-wrapper .ff_ai_chat_pool_clear,
.ff-ai-chat-accordion .ff_ai_chat_pool_clear {
  margin-left: auto;
  color: var(--ff-ai-settings-danger);
  font-size: 12px;
}
.ff-ai-chat-settings-card .ff_ai_chat_pool_clear:hover,
.ffc_design_form_settings .ff_ai_chat_pool_clear:hover,
.ffc_sharing_settings .ff_ai_chat_pool_clear:hover,
.ff-ai-chat-form .ff_ai_chat_pool_clear:hover,
.ff-ai-chat-form-wrapper .ff_ai_chat_pool_clear:hover,
.ff-ai-chat-accordion .ff_ai_chat_pool_clear:hover {
  color: var(--ff-ai-settings-danger);
  opacity: 0.8;
}
.ff-ai-chat-settings-card .ff_ai_chat_reset_title,
.ffc_design_form_settings .ff_ai_chat_reset_title,
.ffc_sharing_settings .ff_ai_chat_reset_title,
.ff-ai-chat-form .ff_ai_chat_reset_title,
.ff-ai-chat-form-wrapper .ff_ai_chat_reset_title,
.ff-ai-chat-accordion .ff_ai_chat_reset_title {
  background: var(--ff-ai-settings-accent);
  color: var(--ff-ai-settings-text-primary);
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 13px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-weight: 600;
}

.ff_landing--sc {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}
@media (max-width: 1280px) {
  .ff_landing--sc {
    grid-template-columns: minmax(0, 1fr);
  }
}
.ff_landing--sc .ff_landing_preview--sticky {
  position: sticky;
  top: 80px;
  max-height: calc(100vh - 100px);
  overflow: auto;
}

.ff_ai_chat_single_column {
  display: flex;
  flex-direction: column;
  gap: 28px;
  min-width: 0;
}

.ff_ai_chat_sc__group {
  background: var(--ff-ai-settings-card-bg, #fff);
  border: 1px solid var(--ff-ai-settings-border, #e2e8f0);
  border-radius: 14px;
  padding: 24px;
}

.ff_ai_chat_sc__group_header {
  display: grid;
  grid-template-columns: 36px 1fr;
  grid-template-areas: "badge title" "badge desc";
  -moz-column-gap: 14px;
       column-gap: 14px;
  row-gap: 4px;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--ff-ai-settings-border, #e2e8f0);
}

.ff_ai_chat_sc__group_badge {
  grid-area: badge;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: var(--ff-ai-settings-primary, #1A7EFB);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.ff_ai_chat_sc__group_title {
  grid-area: title;
  margin: 0;
  font-size: 17px;
  font-weight: 600;
  color: var(--ff-ai-settings-text-primary, #1e293b);
  letter-spacing: -0.005em;
}

.ff_ai_chat_sc__group_desc {
  grid-area: desc;
  margin: 0;
  font-size: 13px;
  color: var(--ff-ai-settings-text-secondary, #64748b);
  line-height: 1.5;
}

.ff_ai_chat_sc__group_body > .ff_screen_ai-chat-settings,
.ff_ai_chat_sc__group_body > .ffc_sharing_settings,
.ff_ai_chat_sc__group_body > .ff_chat_design_tab,
.ff_ai_chat_sc__group_body > .ff_ai_chat_conv_tab {
  padding: 0;
}
.ff_ai_chat_sc__group_body .el-collapse {
  border-top: none;
  margin-top: 0;
}

.ff_ai_chat_snippet_row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.ff_ai_chat_snippet_label {
  font-size: 12px;
  font-weight: 500;
  color: var(--ff-ai-settings-text-secondary, #64748b);
  margin-right: 4px;
}

.ff_ai_chat_snippet_chip {
  display: inline-flex;
  align-items: center;
  height: 26px;
  padding: 0 12px;
  background: var(--ff-ai-settings-card-bg, #fff);
  color: var(--ff-ai-settings-text-primary, #1e293b);
  font-size: 12px;
  font-weight: 500;
  line-height: 1;
  border: 1px solid var(--ff-ai-settings-border, #e2e8f0);
  border-radius: 999px;
  cursor: pointer;
  transition: background-color 120ms ease, border-color 120ms ease, color 120ms ease;
}
.ff_ai_chat_snippet_chip:hover {
  background: var(--ff-ai-settings-accent, #E8F2FF);
  border-color: var(--ff-ai-settings-primary, #1A7EFB);
  color: var(--ff-ai-settings-primary, #1A7EFB);
}
.ff_ai_chat_snippet_chip:focus-visible {
  outline: 2px solid var(--ff-ai-settings-primary, #1A7EFB);
  outline-offset: 2px;
}

.ff_ai_chat_section_num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  margin-right: 10px;
  border-radius: 999px;
  background: var(--ff-ai-settings-bg, #f1f5f9);
  color: var(--ff-ai-settings-text-secondary, #64748b);
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  flex-shrink: 0;
  transition: background-color 150ms ease, color 150ms ease;
}
.el-collapse-item__header.is-active .ff_ai_chat_section_num {
  background: var(--ff-ai-settings-primary, #1A7EFB);
  color: #ffffff;
}
.ff_ai_chat_section_num--danger {
  background: rgba(255, 97, 84, 0.12);
  color: var(--ff-ai-settings-danger, #FF6154);
}

.ff_ai_chat_section_chip {
  display: inline-flex;
  align-items: center;
  max-width: 220px;
  height: 22px;
  padding: 0 10px;
  background: var(--ff-ai-settings-bg, #f8fafc);
  color: var(--ff-ai-settings-text-secondary, #64748b);
  font-size: 12px;
  font-weight: 500;
  line-height: 22px;
  border-radius: 999px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: 0;
  margin-left: auto;
  margin-right: 12px;
  transition: opacity 150ms ease, transform 150ms ease;
}

.ff_ai_chat_save_btn {
  position: relative;
  transition: all 150ms ease;
}
.ff_ai_chat_save_btn.is-saved {
  background-color: var(--ff-ai-settings-success) !important;
  border-color: var(--ff-ai-settings-success) !important;
}

.ff_ai_chat_toggle_row {
  display: flex;
  align-items: center;
  gap: 12px;
}
.ff_ai_chat_toggle_row > span {
  font-size: 14px;
  font-weight: 500;
  color: var(--ff-ai-settings-text-primary);
  flex: 1;
  min-width: 0;
}
.ff_ai_chat_toggle_row > .ff-icon,
.ff_ai_chat_toggle_row > .el-tooltip {
  flex-shrink: 0;
}

.ff-ai-chat-settings-card .ff-control-content .el-color-picker.el-color-picker--mini,
.ff-ai-chat-settings-card .ff_each_style .el-color-picker.el-color-picker--mini,
.ff-ai-chat-settings-card .el-color-picker.el-color-picker--mini,
.ffc_design_form_settings .ff-control-content .el-color-picker.el-color-picker--mini,
.ffc_design_form_settings .ff_each_style .el-color-picker.el-color-picker--mini,
.ffc_design_form_settings .el-color-picker.el-color-picker--mini,
.ff_landing_page_items .ff-control-content .el-color-picker.el-color-picker--mini,
.ff_landing_page_items .ff_each_style .el-color-picker.el-color-picker--mini,
.ff_landing_page_items .el-color-picker.el-color-picker--mini,
.ff-ai-chat-form .ff-control-content .el-color-picker.el-color-picker--mini,
.ff-ai-chat-form .ff_each_style .el-color-picker.el-color-picker--mini,
.ff-ai-chat-form .el-color-picker.el-color-picker--mini {
  width: 44px;
  height: 44px;
}
.ff-ai-chat-settings-card .ff-control-content .el-color-picker.el-color-picker--mini .el-color-picker__trigger,
.ff-ai-chat-settings-card .ff_each_style .el-color-picker.el-color-picker--mini .el-color-picker__trigger,
.ff-ai-chat-settings-card .el-color-picker.el-color-picker--mini .el-color-picker__trigger,
.ffc_design_form_settings .ff-control-content .el-color-picker.el-color-picker--mini .el-color-picker__trigger,
.ffc_design_form_settings .ff_each_style .el-color-picker.el-color-picker--mini .el-color-picker__trigger,
.ffc_design_form_settings .el-color-picker.el-color-picker--mini .el-color-picker__trigger,
.ff_landing_page_items .ff-control-content .el-color-picker.el-color-picker--mini .el-color-picker__trigger,
.ff_landing_page_items .ff_each_style .el-color-picker.el-color-picker--mini .el-color-picker__trigger,
.ff_landing_page_items .el-color-picker.el-color-picker--mini .el-color-picker__trigger,
.ff-ai-chat-form .ff-control-content .el-color-picker.el-color-picker--mini .el-color-picker__trigger,
.ff-ai-chat-form .ff_each_style .el-color-picker.el-color-picker--mini .el-color-picker__trigger,
.ff-ai-chat-form .el-color-picker.el-color-picker--mini .el-color-picker__trigger {
  width: 44px;
  height: 44px;
  padding: 4px;
  border-radius: 8px;
  border: 1px solid var(--ff-ai-settings-border);
  background: var(--ff-ai-settings-card-bg);
  transition: border-color 150ms ease, box-shadow 150ms ease;
}
.ff-ai-chat-settings-card .ff-control-content .el-color-picker.el-color-picker--mini .el-color-picker__trigger:hover,
.ff-ai-chat-settings-card .ff_each_style .el-color-picker.el-color-picker--mini .el-color-picker__trigger:hover,
.ff-ai-chat-settings-card .el-color-picker.el-color-picker--mini .el-color-picker__trigger:hover,
.ffc_design_form_settings .ff-control-content .el-color-picker.el-color-picker--mini .el-color-picker__trigger:hover,
.ffc_design_form_settings .ff_each_style .el-color-picker.el-color-picker--mini .el-color-picker__trigger:hover,
.ffc_design_form_settings .el-color-picker.el-color-picker--mini .el-color-picker__trigger:hover,
.ff_landing_page_items .ff-control-content .el-color-picker.el-color-picker--mini .el-color-picker__trigger:hover,
.ff_landing_page_items .ff_each_style .el-color-picker.el-color-picker--mini .el-color-picker__trigger:hover,
.ff_landing_page_items .el-color-picker.el-color-picker--mini .el-color-picker__trigger:hover,
.ff-ai-chat-form .ff-control-content .el-color-picker.el-color-picker--mini .el-color-picker__trigger:hover,
.ff-ai-chat-form .ff_each_style .el-color-picker.el-color-picker--mini .el-color-picker__trigger:hover,
.ff-ai-chat-form .el-color-picker.el-color-picker--mini .el-color-picker__trigger:hover {
  border-color: var(--ff-ai-settings-primary);
}
.ff-ai-chat-settings-card .ff-control-content .el-color-picker.el-color-picker--mini .el-color-picker__color,
.ff-ai-chat-settings-card .ff_each_style .el-color-picker.el-color-picker--mini .el-color-picker__color,
.ff-ai-chat-settings-card .el-color-picker.el-color-picker--mini .el-color-picker__color,
.ffc_design_form_settings .ff-control-content .el-color-picker.el-color-picker--mini .el-color-picker__color,
.ffc_design_form_settings .ff_each_style .el-color-picker.el-color-picker--mini .el-color-picker__color,
.ffc_design_form_settings .el-color-picker.el-color-picker--mini .el-color-picker__color,
.ff_landing_page_items .ff-control-content .el-color-picker.el-color-picker--mini .el-color-picker__color,
.ff_landing_page_items .ff_each_style .el-color-picker.el-color-picker--mini .el-color-picker__color,
.ff_landing_page_items .el-color-picker.el-color-picker--mini .el-color-picker__color,
.ff-ai-chat-form .ff-control-content .el-color-picker.el-color-picker--mini .el-color-picker__color,
.ff-ai-chat-form .ff_each_style .el-color-picker.el-color-picker--mini .el-color-picker__color,
.ff-ai-chat-form .el-color-picker.el-color-picker--mini .el-color-picker__color {
  border-radius: 4px;
  border: none;
}
.ff-ai-chat-settings-card .ff-control-content .el-color-picker.el-color-picker--mini .el-color-picker__color-inner,
.ff-ai-chat-settings-card .ff_each_style .el-color-picker.el-color-picker--mini .el-color-picker__color-inner,
.ff-ai-chat-settings-card .el-color-picker.el-color-picker--mini .el-color-picker__color-inner,
.ffc_design_form_settings .ff-control-content .el-color-picker.el-color-picker--mini .el-color-picker__color-inner,
.ffc_design_form_settings .ff_each_style .el-color-picker.el-color-picker--mini .el-color-picker__color-inner,
.ffc_design_form_settings .el-color-picker.el-color-picker--mini .el-color-picker__color-inner,
.ff_landing_page_items .ff-control-content .el-color-picker.el-color-picker--mini .el-color-picker__color-inner,
.ff_landing_page_items .ff_each_style .el-color-picker.el-color-picker--mini .el-color-picker__color-inner,
.ff_landing_page_items .el-color-picker.el-color-picker--mini .el-color-picker__color-inner,
.ff-ai-chat-form .ff-control-content .el-color-picker.el-color-picker--mini .el-color-picker__color-inner,
.ff-ai-chat-form .ff_each_style .el-color-picker.el-color-picker--mini .el-color-picker__color-inner,
.ff-ai-chat-form .el-color-picker.el-color-picker--mini .el-color-picker__color-inner {
  border-radius: 4px;
}
.ff-ai-chat-settings-card .ff-control-content .el-color-picker.el-color-picker--mini .el-color-picker__icon,
.ff-ai-chat-settings-card .ff_each_style .el-color-picker.el-color-picker--mini .el-color-picker__icon,
.ff-ai-chat-settings-card .el-color-picker.el-color-picker--mini .el-color-picker__icon,
.ffc_design_form_settings .ff-control-content .el-color-picker.el-color-picker--mini .el-color-picker__icon,
.ffc_design_form_settings .ff_each_style .el-color-picker.el-color-picker--mini .el-color-picker__icon,
.ffc_design_form_settings .el-color-picker.el-color-picker--mini .el-color-picker__icon,
.ff_landing_page_items .ff-control-content .el-color-picker.el-color-picker--mini .el-color-picker__icon,
.ff_landing_page_items .ff_each_style .el-color-picker.el-color-picker--mini .el-color-picker__icon,
.ff_landing_page_items .el-color-picker.el-color-picker--mini .el-color-picker__icon,
.ff-ai-chat-form .ff-control-content .el-color-picker.el-color-picker--mini .el-color-picker__icon,
.ff-ai-chat-form .ff_each_style .el-color-picker.el-color-picker--mini .el-color-picker__icon,
.ff-ai-chat-form .el-color-picker.el-color-picker--mini .el-color-picker__icon {
  color: rgba(255, 255, 255, 0.85);
  font-size: 12px;
  line-height: 36px;
}
.ff-ai-chat-settings-card .ff-control-content .el-color-picker.el-color-picker--mini .el-color-picker__color.is-alpha .el-color-picker__icon,
.ff-ai-chat-settings-card .ff-control-content .el-color-picker.el-color-picker--mini .el-color-picker__color[style*="rgb(255, 255, 255)"] .el-color-picker__icon,
.ff-ai-chat-settings-card .ff-control-content .el-color-picker.el-color-picker--mini .el-color-picker__color[style*="rgb(254"] .el-color-picker__icon,
.ff-ai-chat-settings-card .ff-control-content .el-color-picker.el-color-picker--mini .el-color-picker__color[style*="#fff"] .el-color-picker__icon,
.ff-ai-chat-settings-card .ff_each_style .el-color-picker.el-color-picker--mini .el-color-picker__color.is-alpha .el-color-picker__icon,
.ff-ai-chat-settings-card .ff_each_style .el-color-picker.el-color-picker--mini .el-color-picker__color[style*="rgb(255, 255, 255)"] .el-color-picker__icon,
.ff-ai-chat-settings-card .ff_each_style .el-color-picker.el-color-picker--mini .el-color-picker__color[style*="rgb(254"] .el-color-picker__icon,
.ff-ai-chat-settings-card .ff_each_style .el-color-picker.el-color-picker--mini .el-color-picker__color[style*="#fff"] .el-color-picker__icon,
.ff-ai-chat-settings-card .el-color-picker.el-color-picker--mini .el-color-picker__color.is-alpha .el-color-picker__icon,
.ff-ai-chat-settings-card .el-color-picker.el-color-picker--mini .el-color-picker__color[style*="rgb(255, 255, 255)"] .el-color-picker__icon,
.ff-ai-chat-settings-card .el-color-picker.el-color-picker--mini .el-color-picker__color[style*="rgb(254"] .el-color-picker__icon,
.ff-ai-chat-settings-card .el-color-picker.el-color-picker--mini .el-color-picker__color[style*="#fff"] .el-color-picker__icon,
.ffc_design_form_settings .ff-control-content .el-color-picker.el-color-picker--mini .el-color-picker__color.is-alpha .el-color-picker__icon,
.ffc_design_form_settings .ff-control-content .el-color-picker.el-color-picker--mini .el-color-picker__color[style*="rgb(255, 255, 255)"] .el-color-picker__icon,
.ffc_design_form_settings .ff-control-content .el-color-picker.el-color-picker--mini .el-color-picker__color[style*="rgb(254"] .el-color-picker__icon,
.ffc_design_form_settings .ff-control-content .el-color-picker.el-color-picker--mini .el-color-picker__color[style*="#fff"] .el-color-picker__icon,
.ffc_design_form_settings .ff_each_style .el-color-picker.el-color-picker--mini .el-color-picker__color.is-alpha .el-color-picker__icon,
.ffc_design_form_settings .ff_each_style .el-color-picker.el-color-picker--mini .el-color-picker__color[style*="rgb(255, 255, 255)"] .el-color-picker__icon,
.ffc_design_form_settings .ff_each_style .el-color-picker.el-color-picker--mini .el-color-picker__color[style*="rgb(254"] .el-color-picker__icon,
.ffc_design_form_settings .ff_each_style .el-color-picker.el-color-picker--mini .el-color-picker__color[style*="#fff"] .el-color-picker__icon,
.ffc_design_form_settings .el-color-picker.el-color-picker--mini .el-color-picker__color.is-alpha .el-color-picker__icon,
.ffc_design_form_settings .el-color-picker.el-color-picker--mini .el-color-picker__color[style*="rgb(255, 255, 255)"] .el-color-picker__icon,
.ffc_design_form_settings .el-color-picker.el-color-picker--mini .el-color-picker__color[style*="rgb(254"] .el-color-picker__icon,
.ffc_design_form_settings .el-color-picker.el-color-picker--mini .el-color-picker__color[style*="#fff"] .el-color-picker__icon,
.ff_landing_page_items .ff-control-content .el-color-picker.el-color-picker--mini .el-color-picker__color.is-alpha .el-color-picker__icon,
.ff_landing_page_items .ff-control-content .el-color-picker.el-color-picker--mini .el-color-picker__color[style*="rgb(255, 255, 255)"] .el-color-picker__icon,
.ff_landing_page_items .ff-control-content .el-color-picker.el-color-picker--mini .el-color-picker__color[style*="rgb(254"] .el-color-picker__icon,
.ff_landing_page_items .ff-control-content .el-color-picker.el-color-picker--mini .el-color-picker__color[style*="#fff"] .el-color-picker__icon,
.ff_landing_page_items .ff_each_style .el-color-picker.el-color-picker--mini .el-color-picker__color.is-alpha .el-color-picker__icon,
.ff_landing_page_items .ff_each_style .el-color-picker.el-color-picker--mini .el-color-picker__color[style*="rgb(255, 255, 255)"] .el-color-picker__icon,
.ff_landing_page_items .ff_each_style .el-color-picker.el-color-picker--mini .el-color-picker__color[style*="rgb(254"] .el-color-picker__icon,
.ff_landing_page_items .ff_each_style .el-color-picker.el-color-picker--mini .el-color-picker__color[style*="#fff"] .el-color-picker__icon,
.ff_landing_page_items .el-color-picker.el-color-picker--mini .el-color-picker__color.is-alpha .el-color-picker__icon,
.ff_landing_page_items .el-color-picker.el-color-picker--mini .el-color-picker__color[style*="rgb(255, 255, 255)"] .el-color-picker__icon,
.ff_landing_page_items .el-color-picker.el-color-picker--mini .el-color-picker__color[style*="rgb(254"] .el-color-picker__icon,
.ff_landing_page_items .el-color-picker.el-color-picker--mini .el-color-picker__color[style*="#fff"] .el-color-picker__icon,
.ff-ai-chat-form .ff-control-content .el-color-picker.el-color-picker--mini .el-color-picker__color.is-alpha .el-color-picker__icon,
.ff-ai-chat-form .ff-control-content .el-color-picker.el-color-picker--mini .el-color-picker__color[style*="rgb(255, 255, 255)"] .el-color-picker__icon,
.ff-ai-chat-form .ff-control-content .el-color-picker.el-color-picker--mini .el-color-picker__color[style*="rgb(254"] .el-color-picker__icon,
.ff-ai-chat-form .ff-control-content .el-color-picker.el-color-picker--mini .el-color-picker__color[style*="#fff"] .el-color-picker__icon,
.ff-ai-chat-form .ff_each_style .el-color-picker.el-color-picker--mini .el-color-picker__color.is-alpha .el-color-picker__icon,
.ff-ai-chat-form .ff_each_style .el-color-picker.el-color-picker--mini .el-color-picker__color[style*="rgb(255, 255, 255)"] .el-color-picker__icon,
.ff-ai-chat-form .ff_each_style .el-color-picker.el-color-picker--mini .el-color-picker__color[style*="rgb(254"] .el-color-picker__icon,
.ff-ai-chat-form .ff_each_style .el-color-picker.el-color-picker--mini .el-color-picker__color[style*="#fff"] .el-color-picker__icon,
.ff-ai-chat-form .el-color-picker.el-color-picker--mini .el-color-picker__color.is-alpha .el-color-picker__icon,
.ff-ai-chat-form .el-color-picker.el-color-picker--mini .el-color-picker__color[style*="rgb(255, 255, 255)"] .el-color-picker__icon,
.ff-ai-chat-form .el-color-picker.el-color-picker--mini .el-color-picker__color[style*="rgb(254"] .el-color-picker__icon,
.ff-ai-chat-form .el-color-picker.el-color-picker--mini .el-color-picker__color[style*="#fff"] .el-color-picker__icon {
  color: var(--ff-ai-settings-text-secondary);
}

.ff-ai-collapse-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 0;
  background: transparent;
  border: 0;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  color: var(--ff-ai-settings-text, #111827);
}
.ff-ai-collapse-toggle i {
  font-size: 12px;
  color: var(--ff-ai-settings-text-secondary, #6b7280);
}
.ff-ai-collapse-toggle:hover {
  color: var(--ff-ai-primary, #1A7EFB);
}

.ff-ai-ui-labels {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 10px;
  padding: 12px;
  background: var(--ff-ai-surface-muted, #f9fafb);
  border: 1px solid var(--ff-ai-border-subtle, #f3f4f6);
  border-radius: var(--ff-ai-radius-lg, 0.75rem);
}

.ff-ai-chat-accordion {
  display: flex;
  gap: 24px;
  width: 100%;
  min-height: calc(100vh - 220px);
  align-items: flex-start;
  margin-top: 20px;
}
.ff-ai-chat-accordion__mobile-toggle {
  display: none;
}
.ff-ai-chat-accordion__column {
  width: 404px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  background: var(--ff-ai-surface);
  border-radius: var(--ff-ai-radius-lg);
  box-shadow: var(--ff-ai-shadow);
  overflow: hidden;
}
.ff-ai-chat-accordion__scroll {
  flex: 1;
  overflow-y: auto;
  scrollbar-gutter: stable;
  padding: 16px 0;
}
@supports not (scrollbar-gutter: stable) {
  .ff-ai-chat-accordion__scroll {
    padding-right: 8px;
  }
}
.ff-ai-chat-accordion__list {
  display: flex;
  flex-direction: column;
}
.ff-ai-chat-accordion__section {
  border-bottom: 1px solid var(--ff-ai-border-subtle);
}
.ff-ai-chat-accordion__section:last-child {
  border-bottom: 0;
}
.ff-ai-chat-accordion__row {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 24px;
  height: 56px;
  background: transparent;
  border: 0;
  cursor: pointer;
  text-align: left;
  font: inherit;
  color: var(--ff-ai-text-primary);
  transition: background-color var(--ff-ai-transition-fast) ease;
}
.ff-ai-chat-accordion__row:hover {
  background: var(--ff-ai-surface-soft);
}
.ff-ai-chat-accordion__row:focus-visible {
  outline: 2px solid var(--ff-ai-primary);
  outline-offset: -2px;
}
.ff-ai-chat-accordion__title {
  flex: 0 0 auto;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.ff-ai-chat-accordion__chip {
  flex: 0 1 auto;
  min-width: 0;
  max-width: 140px;
  margin-left: auto;
  font-size: 13px;
  color: var(--ff-ai-text-muted);
  padding: 4px 10px;
  background: var(--ff-ai-surface-soft);
  border-radius: var(--ff-ai-radius-full);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: right;
}
.ff-ai-chat-accordion__chev {
  margin-left: auto;
  color: var(--ff-ai-text-muted);
  font-size: 14px;
  transition: transform var(--ff-ai-transition-fast) ease;
}
.ff-ai-chat-accordion__chip + .ff-ai-chat-accordion__chev {
  margin-left: unset;
}
.ff-ai-chat-accordion__section.is-open .ff-ai-chat-accordion__row {
  padding-top: 8px;
  padding-bottom: 4px;
  height: auto;
  min-height: 40px;
  align-items: center;
}
.ff-ai-chat-accordion__section.is-open .ff-ai-chat-accordion__title {
  font-size: 18px;
}
.ff-ai-chat-accordion__section.is-drill-in .ff-ai-chat-accordion__chev {
  font-size: 16px;
}
.ff-ai-chat-accordion__body {
  padding: 4px 24px 24px;
  animation: ff-ai-section-fade 180ms ease-out;
}
.ff-ai-chat-accordion__footer {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  padding: 16px 24px;
  border-top: 1px solid var(--ff-ai-border-subtle);
  background: var(--ff-ai-surface);
  position: sticky;
  bottom: 0;
  z-index: 2;
}
.ff-ai-chat-accordion__footer:empty {
  display: none;
}
.ff-ai-chat-accordion__preview {
  flex: 1;
  position: sticky;
  top: 32px;
  min-height: 720px;
  background: var(--ff-ai-surface);
  border-radius: var(--ff-ai-radius-lg);
  box-shadow: var(--ff-ai-shadow);
  overflow: hidden;
}
.ff-ai-chat-accordion__drill-in {
  display: flex;
  flex-direction: column;
}
.ff-ai-chat-accordion__drill-in-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 16px 16px 8px 8px;
}
.ff-ai-chat-accordion__drill-in-title {
  flex: 1;
  font-size: 22px;
  font-weight: 700;
  margin: 0;
  letter-spacing: -0.02em;
  color: var(--ff-ai-text-primary);
}
.ff-ai-chat-accordion__drill-in-actions {
  display: flex;
  align-items: center;
  gap: 4px;
}
.ff-ai-chat-accordion__help {
  font-size: 12px;
  font-weight: 600;
  color: var(--ff-ai-primary);
  text-decoration: none;
  padding: 0 6px;
}
.ff-ai-chat-accordion__help:hover {
  text-decoration: underline;
}
.ff-ai-chat-accordion__back, .ff-ai-chat-accordion__icon-btn {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 0;
  border-radius: 6px;
  color: var(--ff-ai-text-muted);
  cursor: pointer;
  transition: background-color var(--ff-ai-transition-fast) ease, color var(--ff-ai-transition-fast) ease;
}
.ff-ai-chat-accordion__back:hover, .ff-ai-chat-accordion__icon-btn:hover {
  background: var(--ff-ai-surface-soft);
  color: var(--ff-ai-text-primary);
}
.ff-ai-chat-accordion__back:focus-visible, .ff-ai-chat-accordion__icon-btn:focus-visible {
  outline: 2px solid var(--ff-ai-primary);
  outline-offset: 1px;
}
.ff-ai-chat-accordion__drill-in-body {
  padding: 0 24px 24px;
}

.ff-ai-chat-section-num {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--ff-ai-surface-strong);
  color: var(--ff-ai-text-muted);
  font-size: 12px;
  font-weight: 700;
  line-height: 28px;
  text-align: center;
  transition: background-color var(--ff-ai-transition-fast) ease, color var(--ff-ai-transition-fast) ease;
}
.ff-ai-chat-section-num.is-active {
  background: var(--ff-ai-primary);
  color: #fff;
}

.ff-ai-chat-section-icon {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--ff-ai-surface-strong);
  color: var(--ff-ai-text-muted);
  font-size: 16px;
  transition: background-color var(--ff-ai-transition-fast) ease, color var(--ff-ai-transition-fast) ease;
}
.ff-ai-chat-section-icon.is-active {
  background: var(--ff-ai-primary);
  color: #fff;
}

.ff-ai-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.ff-ai-section__lead {
  margin: 0;
  font-size: 13px;
  color: var(--ff-ai-text-muted);
  line-height: 1.5;
}
.ff-ai-section__counter {
  font-size: 12px;
  color: var(--ff-ai-text-muted);
  text-align: right;
}
.ff-ai-section__sub-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--ff-ai-text-secondary);
  display: block;
}
.ff-ai-section__hint {
  margin: 0;
  font-size: 12px;
  color: var(--ff-ai-text-muted);
}
.ff-ai-section__placeholder {
  font-size: 13px;
  color: var(--ff-ai-text-muted);
  font-style: italic;
  padding: 16px;
  background: var(--ff-ai-surface-soft);
  border-radius: var(--ff-ai-radius);
  text-align: center;
}
.ff-ai-section__tone-row {
  display: flex;
  gap: 8px;
  align-items: stretch;
}
.ff-ai-section__tone-row .el-input {
  flex: 1;
}
.ff-ai-section__speed {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ff-ai-speed-group {
  display: inline-flex;
  border: 1px solid var(--ff-ai-border);
  border-radius: var(--ff-ai-radius);
  overflow: hidden;
  width: -moz-fit-content;
  width: fit-content;
}

.ff-ai-speed-btn {
  min-width: 56px;
  height: 36px;
  background: var(--ff-ai-surface);
  border: 0;
  border-right: 1px solid var(--ff-ai-border);
  font-size: 13px;
  font-weight: 600;
  color: var(--ff-ai-text-secondary);
  cursor: pointer;
  transition: background-color var(--ff-ai-transition-fast) ease, color var(--ff-ai-transition-fast) ease;
}
.ff-ai-speed-btn:last-child {
  border-right: 0;
}
.ff-ai-speed-btn:hover {
  background: var(--ff-ai-surface-soft);
}
.ff-ai-speed-btn.is-active {
  background: var(--ff-ai-primary);
  color: #fff;
}

.ff-ai-tones-trigger {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 0 14px;
  height: 40px;
  background: var(--ff-ai-primary);
  color: #fff;
  border: 0;
  border-radius: var(--ff-ai-radius);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color var(--ff-ai-transition-fast) ease;
  flex-shrink: 0;
}
.ff-ai-tones-trigger:hover {
  background: var(--ff-ai-primary-hover);
}

.ff-ai-tones-popover__body {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.ff-ai-tones-popover__lead {
  margin: 0;
  font-size: 12px;
  color: var(--ff-ai-text-muted);
  line-height: 1.5;
  padding: 0 4px 8px;
  border-bottom: 1px solid var(--ff-ai-border-subtle);
}
.ff-ai-tones-popover__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.ff-ai-tones-popover__item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 8px;
  border-radius: var(--ff-ai-radius);
  cursor: pointer;
  transition: background-color var(--ff-ai-transition-fast) ease;
}
.ff-ai-tones-popover__item:hover {
  background: var(--ff-ai-surface-soft);
}
.ff-ai-tones-popover__name {
  flex: 1;
  font-size: 13px;
  font-weight: 500;
  color: var(--ff-ai-text-primary);
}
.ff-ai-tones-popover__bars {
  display: inline-flex;
  gap: 3px;
}
.ff-ai-tones-popover__bar {
  width: 8px;
  height: 2px;
  border-radius: 1px;
  background: var(--ff-ai-surface-strong);
}
.ff-ai-tones-popover__bar.is-on {
  background: var(--ff-ai-primary);
}
.ff-ai-tones-popover__legend {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 4px 0;
  border-top: 1px solid var(--ff-ai-border-subtle);
  font-size: 11px;
  color: var(--ff-ai-text-muted);
}
.ff-ai-tones-popover__legend-scale {
  font-family: monospace;
}

.ff-ai-drill-in {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.ff-ai-drill-in__learn {
  font-size: 13px;
  color: var(--ff-ai-primary);
  text-decoration: none;
}
.ff-ai-drill-in__learn:hover {
  text-decoration: underline;
}

.ff-ai-field-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 4px;
}

.ff-ai-field-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.ff-ai-field-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ff-ai-text-secondary);
}

.ff-ai-field-affordances {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.ff-ai-field-help {
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--ff-ai-border);
  border-radius: 50%;
  background: var(--ff-ai-surface);
  color: var(--ff-ai-text-muted);
  font-size: 11px;
  font-weight: 600;
  cursor: help;
  padding: 0;
  line-height: 1;
}
.ff-ai-field-help:hover {
  color: var(--ff-ai-text-primary);
  border-color: var(--ff-ai-text-muted);
}

.ff-ai-lang-picker {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  background: var(--ff-ai-surface);
  border: 1px solid var(--ff-ai-border);
  border-radius: var(--ff-ai-radius);
  color: var(--ff-ai-text-secondary);
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: border-color var(--ff-ai-transition-fast) ease;
}
.ff-ai-lang-picker:hover {
  border-color: var(--ff-ai-text-muted);
}
.ff-ai-lang-picker__flag {
  font-size: 14px;
}
.ff-ai-lang-picker__code {
  text-transform: uppercase;
}
.ff-ai-lang-picker__chev {
  font-size: 10px;
  opacity: 0.6;
}

.ff-ai-sparkle {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--ff-ai-surface);
  border: 1px solid var(--ff-ai-border);
  border-radius: var(--ff-ai-radius);
  color: var(--ff-ai-primary);
  cursor: pointer;
  padding: 0;
  transition: background-color var(--ff-ai-transition-fast) ease, transform var(--ff-ai-transition-fast) ease;
}
.ff-ai-sparkle:hover:not(:disabled) {
  background: var(--ff-ai-primary-light);
  transform: scale(1.04);
}
.ff-ai-sparkle:disabled {
  opacity: 0.5;
  cursor: wait;
}
.ff-ai-sparkle__icon {
  width: 14px;
  height: 14px;
}
.ff-ai-sparkle__busy {
  font-size: 14px;
  animation: ff-ai-sparkle-spin 1s linear infinite;
}

@keyframes ff-ai-sparkle-spin {
  to {
    transform: rotate(360deg);
  }
}
@media (prefers-reduced-motion: reduce) {
  .ff-ai-sparkle__busy {
    animation: none;
  }
}
.ff-ai-divider {
  height: 1px;
  background: var(--ff-ai-border-subtle);
  margin: 8px 0;
}

.ff-ai-toggle-row {
  display: flex;
  align-items: center;
  gap: 12px;
}
.ff-ai-toggle-row__label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ff-ai-text-primary);
}

.ff-ai-chip-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.ff-ai-chip-remove {
  background: transparent;
  border: 0;
  color: var(--ff-ai-text-muted);
  font-size: 16px;
  cursor: pointer;
  padding: 0 6px;
}
.ff-ai-chip-remove:hover {
  color: var(--ff-ai-settings-danger, #ef4444);
}

.ff-ai-journey-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.ff-ai-journey-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 12px;
  border-radius: var(--ff-ai-radius);
  background: var(--ff-ai-surface);
  border: 1px solid var(--ff-ai-border-subtle);
  transition: border-color var(--ff-ai-transition-fast) ease;
}
.ff-ai-journey-row:hover {
  border-color: var(--ff-ai-border);
}
.ff-ai-journey-row.is-skipped {
  opacity: 0.5;
}
.ff-ai-journey-row__thumb {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  border-radius: 6px;
  background: var(--ff-ai-surface-soft);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--ff-ai-text-placeholder);
}
.ff-ai-journey-row__thumb-btn {
  border: 0;
  padding: 0;
  cursor: pointer;
}
.ff-ai-journey-row__label {
  max-width: 100%;
  font-size: 13px;
  font-weight: 500;
  color: var(--ff-ai-text-primary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ff-ai-journey-row__label-btn {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  background: transparent;
  border: 0;
  padding: 0;
  text-align: left;
  cursor: pointer;
}
.ff-ai-journey-row__meta {
  max-width: 100%;
  font-size: 11px;
  color: var(--ff-ai-text-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ff-ai-journey-row__badge {
  font-size: 11px;
  padding: 2px 8px;
  background: var(--ff-ai-surface-strong);
  color: var(--ff-ai-text-muted);
  border-radius: var(--ff-ai-radius-full);
}
.ff-ai-journey-row__position {
  flex: 0 0 auto;
  color: var(--ff-ai-text-muted);
  font-size: 14px;
}

.ff-ai-journey-footer {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--ff-ai-border-subtle);
}

.ff-ai-link {
  font-size: 13px;
  color: var(--ff-ai-primary);
  text-decoration: none;
}
.ff-ai-link:hover {
  text-decoration: underline;
}

.ff-ai-segmented {
  display: inline-flex;
  border: 1px solid var(--ff-ai-border);
  border-radius: var(--ff-ai-radius);
  overflow: hidden;
}
.ff-ai-segmented--half {
  display: flex;
  width: 100%;
}
.ff-ai-segmented--half .ff-ai-segmented__btn {
  flex: 1 1 50%;
  min-width: 0;
}
.ff-ai-segmented__btn {
  min-width: 80px;
  height: 36px;
  padding: 0 14px;
  background: var(--ff-ai-surface);
  border: 0;
  border-right: 1px solid var(--ff-ai-border);
  font-size: 13px;
  font-weight: 500;
  color: var(--ff-ai-text-secondary);
  cursor: pointer;
  transition: background-color var(--ff-ai-transition-fast) ease, color var(--ff-ai-transition-fast) ease;
}
.ff-ai-segmented__btn:last-child {
  border-right: 0;
}
.ff-ai-segmented__btn:hover {
  background: var(--ff-ai-surface-soft);
}
.ff-ai-segmented__btn.is-active {
  background: var(--ff-ai-primary);
  color: #fff;
}
.ff-ai-segmented__btn--brand.is-active {
  background: var(--ff-ai-primary);
  color: #fff;
}

.ff-ai-icon-btn {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--ff-ai-surface);
  border: 1px solid var(--ff-ai-border);
  border-radius: var(--ff-ai-radius);
  color: var(--ff-ai-text-secondary);
  cursor: pointer;
  padding: 0;
}
.ff-ai-icon-btn:hover {
  background: var(--ff-ai-surface-soft);
}
.ff-ai-icon-btn svg {
  width: 18px;
  height: 18px;
}

.ff-ai-media-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  max-height: 260px;
  overflow-y: auto;
}

.ff-ai-media-cell {
  position: relative;
  aspect-ratio: 1;
  border-radius: 6px;
  background-color: var(--ff-ai-surface-soft);
  overflow: hidden;
  cursor: grab;
}
.ff-ai-media-cell__play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 24px;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}
.ff-ai-media-cell__remove {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.65);
  color: #fff;
  border: 0;
  border-radius: 50%;
  font-size: 12px;
  line-height: 1;
  cursor: pointer;
  opacity: 0;
  transition: opacity var(--ff-ai-transition-fast) ease;
}
.ff-ai-media-cell:hover .ff-ai-media-cell__remove {
  opacity: 1;
}

.ff-ai-divider-dashed {
  position: relative;
  margin: 12px 0;
  border-top: 1px dashed var(--ff-ai-border);
  text-align: center;
}
.ff-ai-divider-dashed__text {
  position: relative;
  top: -10px;
  display: inline-block;
  padding: 0 12px;
  background: var(--ff-ai-surface);
  font-size: 12px;
  color: var(--ff-ai-text-muted);
}
.ff-ai-divider-dashed__badge {
  position: absolute;
  left: 6px;
  bottom: 6px;
  padding: 3px 6px;
  border-radius: 999px;
  background: rgba(17, 24, 39, 0.8);
  color: #fff;
  font-size: 10px;
  font-weight: 600;
}
.ff-ai-divider-dashed.is-previewing {
  box-shadow: 0 0 0 2px var(--ff-ai-primary);
}

.ff-ai-journey-row.is-active {
  border-color: var(--ff-ai-primary);
  box-shadow: 0 0 0 1px var(--ff-ai-primary-light);
}

.ff-ai-image-pos-popper.el-popover {
  padding: 16px;
}

.ff-ai-field-editor-popper.el-popover {
  padding: 0;
  border-radius: 14px;
  overflow: hidden;
}

.ff-ai-image-pos {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 260px;
}
.ff-ai-image-pos__header {
  font-size: 13px;
  color: var(--ff-ai-text-muted);
}
.ff-ai-image-pos__header strong {
  color: var(--ff-ai-text-primary);
  margin-left: 4px;
}
.ff-ai-image-pos__icons {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 4px;
}
.ff-ai-image-pos__icon {
  width: 100%;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--ff-ai-surface);
  border: 1px solid var(--ff-ai-border);
  border-radius: 6px;
  color: var(--ff-ai-text-secondary);
  cursor: pointer;
  padding: 4px;
  transition: background-color var(--ff-ai-transition-fast) ease, border-color var(--ff-ai-transition-fast) ease;
}
.ff-ai-image-pos__icon svg {
  width: 20px;
  height: 20px;
}
.ff-ai-image-pos__icon:hover {
  background: var(--ff-ai-surface-soft);
}
.ff-ai-image-pos__icon.is-active {
  background: var(--ff-ai-text-primary);
  border-color: var(--ff-ai-text-primary);
  color: #fff;
}
.ff-ai-image-pos__divider {
  height: 1px;
  background: var(--ff-ai-border-subtle);
}
.ff-ai-image-pos__label {
  font-size: 13px;
  font-weight: 600;
  color: var(--ff-ai-text-secondary);
  display: block;
  margin-bottom: 4px;
}
.ff-ai-image-pos__slider-row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.ff-ai-image-pos__slider-row .el-slider {
  flex: 1;
}
.ff-ai-image-pos__opacity-chip {
  font-size: 12px;
  color: var(--ff-ai-text-muted);
  font-variant-numeric: tabular-nums;
  min-width: 38px;
  text-align: right;
}
.ff-ai-image-pos__remove {
  width: 100%;
  background: transparent;
  border: 1px solid var(--ff-ai-border);
  border-radius: var(--ff-ai-radius);
  color: var(--ff-ai-settings-danger, #ef4444);
  font-size: 13px;
  font-weight: 500;
  padding: 8px;
  cursor: pointer;
}
.ff-ai-image-pos__remove:hover {
  background: rgba(239, 68, 68, 0.08);
  border-color: var(--ff-ai-settings-danger, #ef4444);
}

.ff-ai-field-editor {
  margin-top: 0;
  padding: 16px;
  border: 0;
  border-radius: 0;
  background: var(--ff-ai-surface);
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.ff-ai-field-editor__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.ff-ai-field-editor__title {
  margin: 0 0 4px;
  font-size: 16px;
  font-weight: 700;
  color: var(--ff-ai-text-primary);
}
.ff-ai-field-editor__hint, .ff-ai-field-editor__subtext {
  margin: 0;
  font-size: 12px;
  color: var(--ff-ai-text-muted);
  line-height: 1.45;
}
.ff-ai-field-editor__close {
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--ff-ai-text-muted);
  cursor: pointer;
}
.ff-ai-field-editor__close:hover {
  background: var(--ff-ai-surface);
  color: var(--ff-ai-text-primary);
}
.ff-ai-field-editor__info {
  padding: 10px 12px;
  border-radius: 8px;
  background: var(--ff-ai-surface-soft, rgba(148, 163, 184, 0.1));
  border: 1px solid var(--ff-ai-border-subtle, rgba(0, 0, 0, 0.06));
  font-size: 12px;
  line-height: 1.5;
  color: var(--ff-ai-text-secondary);
}
.ff-ai-field-editor__preview {
  border-radius: 12px;
  overflow: hidden;
  background: var(--ff-ai-surface);
  border: 1px solid var(--ff-ai-border-subtle);
  min-height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ff-ai-field-editor__preview.is-empty {
  background: linear-gradient(135deg, rgba(148, 163, 184, 0.12), rgba(148, 163, 184, 0.04));
}
.ff-ai-field-editor__preview-media {
  width: 100%;
  min-height: 140px;
  background-size: cover;
  background-position: center;
}
.ff-ai-field-editor__preview-empty {
  font-size: 13px;
  color: var(--ff-ai-text-muted);
}
.ff-ai-field-editor__group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.ff-ai-field-editor__label {
  font-size: 13px;
  font-weight: 600;
  color: var(--ff-ai-text-secondary);
}
.ff-ai-field-editor__warning {
  padding: 10px 12px;
  border-radius: var(--ff-ai-radius);
  background: rgba(245, 158, 11, 0.12);
  color: #92400e;
  font-size: 12px;
  line-height: 1.45;
}
.ff-ai-field-editor__slider {
  display: flex;
  align-items: center;
  gap: 12px;
}
.ff-ai-field-editor__slider .el-slider {
  flex: 1;
}
.ff-ai-field-editor__opacity {
  min-width: 40px;
  text-align: right;
  font-size: 12px;
  color: var(--ff-ai-text-muted);
}
.ff-ai-field-editor__footer {
  display: flex;
  justify-content: flex-start;
}
.ff-ai-field-editor__remove {
  background: transparent;
  border: 1px solid rgba(239, 68, 68, 0.25);
  color: var(--ff-ai-settings-danger, #ef4444);
  border-radius: var(--ff-ai-radius);
  padding: 8px 10px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.ff-ai-layout-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.ff-ai-layout-picker__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  border: 1px solid var(--ff-ai-border);
  border-radius: 8px;
  background: var(--ff-ai-surface);
  color: var(--ff-ai-text-secondary);
  cursor: pointer;
  padding: 0;
  transition: border-color 120ms ease, background 120ms ease;
}
.ff-ai-layout-picker__btn:hover {
  border-color: var(--ff-ai-primary);
}
.ff-ai-layout-picker__btn svg {
  width: 18px;
  height: 18px;
}
.ff-ai-layout-picker__btn.is-active {
  background: var(--ff-ai-primary);
  border-color: var(--ff-ai-primary);
  color: #fff;
}

.ff-ai-media-grid--compact {
  grid-template-columns: repeat(4, 1fr);
}
.ff-ai-media-grid--compact .ff-ai-media-cell {
  border: 0;
  padding: 0;
  cursor: pointer;
}
.ff-ai-media-grid--compact .ff-ai-media-cell.is-selected {
  box-shadow: 0 0 0 2px var(--ff-ai-primary);
}

.ff-ai-media-grid--scroll {
  max-height: 156px;
  overflow-y: auto;
  padding-right: 2px;
}

.ff-ai-color-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.ff-ai-color-cell {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--ff-ai-text-secondary);
}

.ff-ai-sub-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--ff-ai-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 8px 0 6px;
}

.ff-ai-drawer {
  position: fixed;
  top: var(--wp-admin--admin-bar--height, 32px);
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 9000;
  display: flex;
  justify-content: flex-end;
}
.ff-ai-drawer__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
}
.ff-ai-drawer__panel {
  position: relative;
  height: 100%;
  background: var(--ff-ai-surface);
  box-shadow: -8px 0 32px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  max-width: 100vw;
}
.ff-ai-drawer__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 24px 16px;
}
.ff-ai-drawer__title {
  margin: 0;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ff-ai-text-primary);
}
.ff-ai-drawer__close {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 0;
  border-radius: 6px;
  color: var(--ff-ai-text-muted);
  cursor: pointer;
}
.ff-ai-drawer__close:hover {
  background: var(--ff-ai-surface-soft);
  color: var(--ff-ai-text-primary);
}
.ff-ai-drawer__tabs {
  display: flex;
  gap: 4px;
  padding: 0 24px;
  background: var(--ff-ai-surface-soft);
  border-radius: var(--ff-ai-radius-full);
  margin: 0 24px;
}
.ff-ai-drawer__tab {
  flex: 1;
  padding: 8px 16px;
  background: transparent;
  border: 0;
  border-radius: var(--ff-ai-radius-full);
  font-size: 13px;
  font-weight: 600;
  color: var(--ff-ai-text-muted);
  cursor: pointer;
  transition: background-color var(--ff-ai-transition-fast) ease, color var(--ff-ai-transition-fast) ease;
}
.ff-ai-drawer__tab:hover {
  color: var(--ff-ai-text-primary);
}
.ff-ai-drawer__tab.is-active {
  background: var(--ff-ai-surface);
  color: var(--ff-ai-text-primary);
  box-shadow: var(--ff-ai-shadow);
}
.ff-ai-drawer__body {
  flex: 1;
  overflow-y: auto;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ff-drawer-right-enter-active,
.ff-drawer-right-leave-active {
  transition: opacity 180ms ease-out;
}
.ff-drawer-right-enter-active .ff-ai-drawer__panel,
.ff-drawer-right-leave-active .ff-ai-drawer__panel {
  transition: transform 240ms cubic-bezier(0.22, 1, 0.36, 1);
}

.ff-drawer-right-enter,
.ff-drawer-right-leave-to {
  opacity: 0;
}
.ff-drawer-right-enter .ff-ai-drawer__panel,
.ff-drawer-right-leave-to .ff-ai-drawer__panel {
  transform: translateX(100%);
}

@media (prefers-reduced-motion: reduce) {
  .ff-drawer-right-enter-active,
  .ff-drawer-right-leave-active,
  .ff-drawer-right-enter-active .ff-ai-drawer__panel,
  .ff-drawer-right-leave-active .ff-ai-drawer__panel {
    transition: none;
  }
}
.ff-ai-drawer__subtitle {
  margin: 4px 0 0;
  font-size: 13px;
  line-height: 1.5;
  color: var(--ff-ai-text-muted);
}

.ff-ai-share-tab {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.ff-ai-share-tab__actions {
  display: flex;
  gap: 8px;
}
.ff-ai-share-tab__hint {
  margin: 0;
  font-size: 12px;
  line-height: 1.5;
  color: var(--ff-ai-text-secondary);
}

.ff-ai-share-block {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px;
  background: var(--ff-ai-surface-muted);
  border: 1px solid var(--ff-ai-border-subtle);
  border-radius: var(--ff-ai-radius-lg);
}
.ff-ai-share-block .ff-ai-field-label {
  margin: 0;
}
.ff-ai-share-block__hint {
  margin: 0;
  font-size: 12px;
  line-height: 1.4;
  color: var(--ff-ai-text-muted);
}

.ff-ai-copy-field {
  display: flex;
}
.ff-ai-copy-field__input, .ff-ai-copy-field__textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 9px 12px;
  font-size: 13px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color: var(--ff-ai-text-secondary);
  background: var(--ff-ai-surface);
  border: 1px solid var(--ff-ai-border);
  border-radius: var(--ff-ai-radius);
  transition: border-color var(--ff-ai-transition-fast) ease, box-shadow var(--ff-ai-transition-fast) ease;
}
.ff-ai-copy-field__input:focus, .ff-ai-copy-field__textarea:focus {
  outline: 0;
  border-color: var(--ff-ai-primary);
  box-shadow: 0 0 0 3px var(--ff-ai-primary-light);
}
.ff-ai-copy-field__textarea {
  resize: vertical;
  line-height: 1.5;
  white-space: pre;
}

.ff-ai-share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 38px;
  padding: 0 16px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  border-radius: var(--ff-ai-radius);
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background-color var(--ff-ai-transition-fast) ease, border-color var(--ff-ai-transition-fast) ease, color var(--ff-ai-transition-fast) ease;
}
.ff-ai-share-btn i {
  font-size: 15px;
}
.ff-ai-share-btn--block {
  width: 100%;
}
.ff-ai-share-btn--primary {
  flex: 1;
  background: var(--ff-ai-primary);
  color: #fff;
}
.ff-ai-share-btn--primary:hover {
  background: var(--ff-ai-primary-hover);
}
.ff-ai-share-btn--ghost {
  background: var(--ff-ai-surface);
  border-color: var(--ff-ai-border);
  color: var(--ff-ai-text-secondary);
}
.ff-ai-share-btn--ghost:hover {
  border-color: var(--ff-ai-primary);
  color: var(--ff-ai-primary);
}
.ff-ai-share-btn.is-copied {
  background: var(--ff-ai-success, #16a34a);
  border-color: var(--ff-ai-success, #16a34a);
  color: #fff;
}

.ff-ai-hidden-row {
  display: grid;
  grid-template-columns: 1fr 2fr auto;
  gap: 8px;
  align-items: center;
}

.ff-ai-settings-section {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.ff-ai-settings-section__title {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  color: var(--ff-ai-text-primary);
}
.ff-ai-settings-section__limit-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.ff-ai-settings-section__quick-chips {
  display: flex;
  gap: 4px;
}
.ff-ai-settings-section__progress {
  margin-top: 8px;
}
.ff-ai-settings-section--danger .ff-ai-settings-section__title {
  color: var(--ff-ai-settings-danger, #ef4444);
}

.ff-ai-settings-section__test-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
  flex-wrap: wrap;
}

.ff_ai_chat_speed_btn {
  display: inline-flex !important;
  align-items: center;
  gap: 4px;
}
.ff_ai_chat_speed_btn__label {
  font-size: 13px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.ff-ai-micro-label {
  display: block;
  font-size: 11px;
  font-weight: 500;
  color: var(--ff-ai-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 4px;
}

.ff-ai-field-pair {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.ff-ai-field-pair--nested {
  padding-left: 28px;
}

.ff-ai-toggle-row--sub {
  gap: 8px;
}
.ff-ai-toggle-row--sub .ff-ai-toggle-row__label {
  font-size: 13px;
  font-weight: 500;
  color: var(--ff-ai-text-secondary);
}

.ff-ai-color-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.ff-ai-color-chip .el-color-picker,
.ff-ai-color-chip .el-color-picker__trigger {
  width: 40px;
  height: 40px;
}
.ff-ai-color-chip .el-color-picker__trigger {
  padding: 4px;
  border-radius: 8px;
  border: 1px solid var(--ff-ai-border, #e5e7eb);
  background: var(--ff-ai-surface, #ffffff);
  transition: border-color 150ms ease, box-shadow 150ms ease;
}
.ff-ai-color-chip .el-color-picker__trigger:hover {
  border-color: var(--ff-ai-primary, #2563eb);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}
.ff-ai-color-chip .el-color-picker__color {
  border-radius: 5px;
  border: none;
}
.ff-ai-color-chip .el-color-picker__color-inner {
  border-radius: 5px;
}
.ff-ai-color-chip .el-color-picker__icon {
  color: rgba(255, 255, 255, 0.9);
  font-size: 12px;
}
.ff-ai-color-chip .el-color-picker__color.is-alpha .el-color-picker__icon,
.ff-ai-color-chip .el-color-picker__color[style*="rgb(255, 255, 255)"] .el-color-picker__icon,
.ff-ai-color-chip .el-color-picker__color[style*="#fff"] .el-color-picker__icon {
  color: var(--ff-ai-text-secondary, #6b7280);
}
.ff-ai-color-chip__value {
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  text-transform: uppercase;
  color: var(--ff-ai-text-secondary);
  letter-spacing: 0.02em;
}

.ff-ai-advanced-colors {
  margin-top: 4px;
}
.ff-ai-advanced-colors__toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 8px 0;
  background: transparent;
  border: none;
  font-size: 13px;
  font-weight: 600;
  color: var(--ff-ai-text-primary);
  cursor: pointer;
}
.ff-ai-advanced-colors__toggle i {
  color: var(--ff-ai-text-secondary);
}
.ff-ai-advanced-colors__body {
  padding-top: 4px;
}
.ff-ai-advanced-colors__hint {
  margin: 0 0 14px;
  font-size: 12px;
  line-height: 1.5;
  color: var(--ff-ai-text-secondary);
}
.ff-ai-advanced-colors__group {
  margin-bottom: 20px;
}
.ff-ai-advanced-colors__group .ff-ai-row {
  padding: 6px 0;
}
.ff-ai-advanced-colors__group .ff-ai-row + .ff-ai-row {
  border-top: 1px solid var(--ff-ai-border-soft, rgba(0, 0, 0, 0.04));
}
.ff-ai-advanced-colors__group-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ff-ai-text-secondary);
  margin-bottom: 8px;
}

.ff-ai-card {
  background: var(--ff-ai-surface-soft);
  border-radius: var(--ff-ai-radius-lg);
  padding: 0;
  margin-bottom: 8px;
}
.ff-ai-card--inline, .ff-ai-card:not(:has(.ff-ai-card__body)) {
  background: transparent;
}
.ff-ai-card__header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ff-ai-text-secondary);
  border-bottom: 1px solid var(--ff-ai-border-subtle);
}
.ff-ai-card__header-toggle {
  flex-shrink: 0;
}
.ff-ai-card__header-title {
  flex: 1;
  font-size: 13px;
  font-weight: 600;
  color: var(--ff-ai-text-primary);
}
.ff-ai-card__header-action {
  flex-shrink: 0;
}
.ff-ai-card__body {
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.ff-ai-card__header:last-child {
  border-bottom: 0;
}
.ff-ai-card--inline .ff-ai-card__header {
  border-bottom: 0;
}

.ff-ai-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 32px;
}
.ff-ai-row__label {
  font-size: 13px;
  font-weight: 500;
  color: var(--ff-ai-text-secondary);
  flex: 1;
}

.ff-ai-bubble-grid {
  display: grid;
  grid-template-columns: minmax(40px, auto) 1fr 1fr;
  row-gap: 8px;
  -moz-column-gap: 12px;
       column-gap: 12px;
  align-items: center;
}
.ff-ai-bubble-grid__row-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--ff-ai-text-muted);
}
.ff-ai-bubble-grid__cell {
  display: flex;
  align-items: center;
  gap: 6px;
}
.ff-ai-bubble-grid__sub {
  font-size: 11px;
  color: var(--ff-ai-text-muted);
  text-transform: lowercase;
}

.ff-ai-media-pick {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.ff-ai-media-pick__btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  font-size: 12px;
  background: var(--ff-ai-surface);
  border: 1px solid var(--ff-ai-border);
  border-radius: var(--ff-ai-radius);
  color: var(--ff-ai-text-secondary);
  cursor: pointer;
}
.ff-ai-media-pick__btn:hover {
  border-color: var(--ff-ai-primary);
  color: var(--ff-ai-primary);
}
.ff-ai-media-pick__btn i {
  font-size: 14px;
}
.ff-ai-media-pick__preview {
  width: 32px;
  height: 32px;
  border-radius: var(--ff-ai-radius);
  background-color: var(--ff-ai-surface-strong);
  background-size: cover;
  background-position: center;
  border: 1px solid var(--ff-ai-border);
}
.ff-ai-media-pick__preview--avatar {
  border-radius: 50%;
}
.ff-ai-media-pick__clear {
  width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 0;
  color: var(--ff-ai-text-muted);
  font-size: 16px;
  cursor: pointer;
  border-radius: 50%;
}
.ff-ai-media-pick__clear:hover {
  background: rgba(239, 68, 68, 0.12);
  color: var(--ff-ai-settings-danger, #ef4444);
}

.ff-ai-avatar-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.ff-ai-card--avatar {
  position: relative;
}
.ff-ai-card--avatar .ff-ai-avatar-row .ff-ai-media-pick__clear {
  position: absolute;
  top: 14px;
  right: 14px;
}

.ff-ai-suggest-popover.el-popover {
  padding: 0;
  max-height: 480px;
}

.ff-ai-suggest {
  display: flex;
  flex-direction: column;
  max-height: 480px;
}
.ff-ai-suggest__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  border-bottom: 1px solid var(--ff-ai-border-subtle);
}
.ff-ai-suggest__title {
  font-size: 12px;
  font-weight: 600;
  color: var(--ff-ai-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.ff-ai-suggest__close {
  width: 22px;
  height: 22px;
  background: transparent;
  border: 0;
  color: var(--ff-ai-text-muted);
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  border-radius: 4px;
}
.ff-ai-suggest__close:hover {
  background: var(--ff-ai-surface-soft);
  color: var(--ff-ai-text-primary);
}
.ff-ai-suggest__state {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 24px;
  font-size: 13px;
  color: var(--ff-ai-text-muted);
  justify-content: center;
}
.ff-ai-suggest__state i {
  font-size: 16px;
}
.ff-ai-suggest__state--err {
  color: var(--ff-ai-settings-danger, #ef4444);
}
.ff-ai-suggest__list {
  list-style: none;
  margin: 0;
  padding: 4px;
  overflow-y: auto;
  flex: 1;
}
.ff-ai-suggest__item {
  padding: 10px 12px;
  border-radius: var(--ff-ai-radius);
  cursor: pointer;
  transition: background-color var(--ff-ai-transition-fast) ease;
}
.ff-ai-suggest__item + .ff-ai-suggest__item {
  margin-top: 2px;
}
.ff-ai-suggest__item:hover {
  background: var(--ff-ai-primary-light);
}
.ff-ai-suggest__item-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--ff-ai-text-primary);
  margin-bottom: 4px;
}
.ff-ai-suggest__item-statement {
  font-size: 12px;
  color: var(--ff-ai-text-secondary);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.ff-ai-suggest__item-cta {
  font-size: 11px;
  color: var(--ff-ai-primary);
  font-weight: 500;
  margin-top: 4px;
}
.ff-ai-suggest__footer {
  padding: 8px;
  border-top: 1px solid var(--ff-ai-border-subtle);
}
.ff-ai-suggest__more {
  width: 100%;
  padding: 8px;
  background: transparent;
  border: 0;
  color: var(--ff-ai-primary);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  border-radius: var(--ff-ai-radius);
}
.ff-ai-suggest__more:hover:not(:disabled) {
  background: var(--ff-ai-primary-light);
}
.ff-ai-suggest__more:disabled {
  color: var(--ff-ai-text-muted);
  cursor: not-allowed;
}

.ff-ai-test-result {
  margin: 0;
  font-size: 12px;
  padding: 4px 10px;
  border-radius: var(--ff-ai-radius);
}
.ff-ai-test-result.ok {
  color: #057a55;
  background: rgba(5, 122, 85, 0.08);
}
.ff-ai-test-result.err {
  color: var(--ff-ai-settings-danger, #ef4444);
  background: rgba(239, 68, 68, 0.08);
}

.ff-ai-media-cell.is-dragging {
  opacity: 0.5;
}

.ff-ai-journey-row.is-drop-target {
  border-color: var(--ff-ai-primary);
  background: var(--ff-ai-primary-light);
}

.ff-ai-chip-btn {
  min-width: 40px;
  height: 28px;
  padding: 0 10px;
  background: var(--ff-ai-surface);
  border: 1px solid var(--ff-ai-border);
  border-radius: var(--ff-ai-radius-full);
  font-size: 12px;
  font-weight: 500;
  color: var(--ff-ai-text-secondary);
  cursor: pointer;
}
.ff-ai-chip-btn:hover {
  background: var(--ff-ai-surface-soft);
}
.ff-ai-chip-btn.is-active {
  background: var(--ff-ai-primary);
  border-color: var(--ff-ai-primary);
  color: #fff;
}

@keyframes ff-ai-section-fade {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.ff-drill-in-enter-active,
.ff-drill-in-leave-active {
  transition: transform 240ms cubic-bezier(0.22, 1, 0.36, 1), opacity 180ms ease-out;
}

.ff-drill-in-enter,
.ff-drill-in-leave-to {
  transform: translateX(16px);
  opacity: 0;
}

@media (prefers-reduced-motion: reduce) {
  .ff-drill-in-enter-active,
  .ff-drill-in-leave-active {
    transition: none;
  }
  .ff-ai-chat-accordion__body {
    animation: none;
  }
}
@media (max-width: 1279px) {
  .ff-ai-chat-accordion {
    flex-direction: column;
    min-height: 0;
  }
  .ff-ai-chat-accordion__mobile-toggle {
    display: inline-flex;
    gap: 6px;
    padding: 6px;
    background: var(--ff-ai-surface-soft);
    border-radius: var(--ff-ai-radius-lg);
  }
  .ff-ai-chat-accordion__mobile-btn {
    flex: 1 1 50%;
    height: 40px;
    border: 0;
    border-radius: var(--ff-ai-radius);
    background: transparent;
    color: var(--ff-ai-text-secondary);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
  }
  .ff-ai-chat-accordion__mobile-btn.is-active {
    background: var(--ff-ai-surface);
    color: var(--ff-ai-text-primary);
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08);
  }
  .ff-ai-chat-accordion__column {
    width: 100%;
  }
  .ff-ai-chat-accordion__preview {
    position: static;
    width: 100%;
    min-height: 480px;
  }
}
.ff_ai_chat_share_hint {
  margin: 12px 0 0;
  font-size: 12px;
  color: var(--ff-ai-settings-text-muted);
}

.ff_ai_chat_share_stats {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 28px;
  margin: 20px 0 0;
  padding: 14px 16px;
  background: var(--ff-ai-settings-bg);
  border: 1px solid var(--ff-ai-settings-border);
  border-radius: 8px;
  font-size: 13px;
}
.ff_ai_chat_share_stats .ff_ai_chat_share_stat {
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.ff_ai_chat_share_stats .ff_ai_chat_share_stat dt {
  margin: 0;
  color: var(--ff-ai-settings-text-secondary);
  font-weight: 500;
}
.ff_ai_chat_share_stats .ff_ai_chat_share_stat dt .el-icon-info {
  margin-left: 2px;
  font-size: 13px;
  color: var(--ff-ai-settings-text-muted);
  cursor: help;
}
.ff_ai_chat_share_stats .ff_ai_chat_share_stat dd {
  margin: 0;
  font-weight: 600;
  font-size: 15px;
  color: var(--ff-ai-settings-text-primary);
  font-variant-numeric: tabular-nums;
}

.ff_ai_chat_share_stats_loading {
  margin: 20px 0 0;
  padding: 14px 16px;
  background: var(--ff-ai-settings-bg);
  border: 1px solid var(--ff-ai-settings-border);
  border-radius: 8px;
  font-size: 13px;
  color: var(--ff-ai-settings-text-muted);
}

.ff_ai_chat_conv_tab .ff_ai_chat_stats_card {
  display: flex;
  justify-content: space-between;
  padding: 10px 12px;
  background: #f9fafb;
  border-radius: 6px;
  font-size: 14px;
}
.ff_ai_chat_conv_tab .ff_ai_chat_stats_table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 6px;
}
.ff_ai_chat_conv_tab .ff_ai_chat_stats_table th, .ff_ai_chat_conv_tab .ff_ai_chat_stats_table td {
  padding: 6px 8px;
  border-bottom: 1px solid #e5e7eb;
  text-align: left;
  font-size: 13px;
}
.ff_ai_chat_conv_tab .ff_ai_chat_stats_table .ff_ai_chat_stats_total td {
  font-weight: 600;
  border-top: 2px solid #e5e7eb;
}

.ff_ai_empty_state {
  max-width: 720px;
  margin: 0 auto;
  padding: 48px 24px 40px;
  text-align: center;
}
.ff_ai_empty_state__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  margin-bottom: 20px;
  color: var(--ff-ai-settings-primary);
  background: var(--ff-ai-settings-accent);
  border-radius: 16px;
}
.ff_ai_empty_state__icon svg {
  width: 28px;
  height: 28px;
}
.ff_ai_empty_state__title {
  margin: 0 0 12px;
  font-size: 24px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--ff-ai-settings-text-primary);
  letter-spacing: -0.01em;
}
.ff_ai_empty_state__subhead {
  margin: 0 auto 28px;
  max-width: 540px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--ff-ai-settings-text-secondary);
}
.ff_ai_empty_state__benefits {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
  margin: 0 auto 28px;
  max-width: 640px;
  padding: 0;
  list-style: none;
  text-align: left;
}
.ff_ai_empty_state__benefit {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.ff_ai_empty_state__benefit-icon {
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
  margin-top: 2px;
  color: var(--ff-ai-settings-primary);
}
.ff_ai_empty_state__benefit-label {
  margin-bottom: 4px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ff-ai-settings-text-primary);
  line-height: 1.4;
}
.ff_ai_empty_state__benefit-body {
  margin: 0;
  font-size: 12px;
  line-height: 1.5;
  color: var(--ff-ai-settings-text-muted);
}
.ff_ai_empty_state__cost {
  margin: 0 0 24px;
  font-size: 12px;
  line-height: 1.5;
  color: var(--ff-ai-settings-text-muted);
}
.ff_ai_empty_state__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 220px;
  padding: 12px 28px;
  font-size: 14px;
  font-weight: 500;
}
.ff_ai_empty_state__cta:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(26, 126, 251, 0.25);
}
.ff_ai_empty_state__cta-icon {
  width: 16px;
  height: 16px;
  margin-right: 8px;
  flex-shrink: 0;
  color: currentColor;
  vertical-align: middle;
}
.ff_ai_empty_state__secondary {
  display: block;
  margin: 16px auto 0;
  padding: 6px 8px;
  font-size: 13px;
  color: var(--ff-ai-settings-text-secondary);
  background: transparent;
  border: 0;
  cursor: pointer;
  text-decoration: none;
  transition: color 150ms ease-out;
}
.ff_ai_empty_state__secondary:hover {
  color: var(--ff-ai-settings-primary);
  text-decoration: underline;
}
.ff_ai_empty_state__secondary:focus-visible {
  outline: none;
  color: var(--ff-ai-settings-primary);
  text-decoration: underline;
  box-shadow: 0 0 0 3px rgba(26, 126, 251, 0.15);
  border-radius: 4px;
}

.ff_ai_active_toggle {
  margin-bottom: 16px;
}

.ff-ai-empty-fade-enter-active {
  transition: opacity 250ms cubic-bezier(0.22, 1, 0.36, 1), transform 250ms cubic-bezier(0.22, 1, 0.36, 1);
}

.ff-ai-empty-fade-enter {
  opacity: 0;
  transform: translateY(8px);
}

.ff-ai-empty-fade-enter-to {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 720px) {
  .ff_ai_empty_state {
    padding: 32px 20px 28px;
  }
  .ff_ai_empty_state__benefits {
    grid-template-columns: 1fr;
    gap: 16px;
    max-width: 380px;
  }
  .ff_ai_empty_state__cta {
    width: 100%;
    min-width: 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  .ff-ai-empty-fade-enter-active {
    transition: none;
  }
  .ff-ai-empty-fade-enter {
    opacity: 1;
    transform: none;
  }
}
.ff-ai-chat-style-section {
  padding: 20px 0 0;
  margin-top: 20px;
  border-top: 1px solid var(--ff-ai-settings-border);
}
.ff-ai-chat-style-section:first-child {
  margin-top: 0;
  border-top: none;
  padding-top: 0;
}
.ff-ai-chat-style-section + .ff-ai-chat-style-section {
  margin-top: 20px;
}
.ff-ai-chat-style-section .ff-ai-chat-style-header {
  margin-bottom: 14px;
  padding-bottom: 0;
  border-bottom: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.ff-ai-chat-style-section .ff-ai-chat-style-header .ff-ai-chat-style-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--ff-ai-settings-text-primary);
  margin: 0;
  letter-spacing: -0.005em;
  display: flex;
  align-items: center;
  gap: 10px;
}
.ff-ai-chat-style-section .ff-control-content .ff-control-field {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
  overflow: visible;
  clear: both;
}
.ff-ai-chat-style-section .ff-control-content .ff-control-field:last-child {
  margin-bottom: 0;
}
.ff-ai-chat-style-section .ff-control-content .ff-control-field:has(.ff-control-input-wrapper .el-switch) {
  flex-direction: row-reverse;
  justify-content: flex-end;
}
.ff-ai-chat-style-section .ff-control-content .ff-control-field:has(.ff-control-input-wrapper .el-switch) .ff-control-title {
  margin-right: 0;
  flex: 1;
}
.ff-ai-chat-style-section .ff-control-content .ff-control-field:has(.ff-control-input-wrapper .el-switch) .ff-control-input-wrapper {
  flex: 0 0 auto;
  justify-content: flex-start;
}
.ff-ai-chat-style-section .ff-control-content .ff-control-title {
  width: auto;
  float: none;
  display: inline-block;
  margin-bottom: 0;
  margin-right: auto;
  font-size: 14px;
  font-weight: 500;
  color: var(--ff-ai-settings-text-primary);
  flex-shrink: 0;
}
.ff-ai-chat-style-section .ff-control-content .ff-control-input-wrapper {
  width: auto;
  float: none;
  display: flex;
  align-items: center;
  text-align: right;
  flex: 1;
  justify-content: flex-end;
}
.ff-ai-chat-style-section .ff-control-content .ff-control-input-wrapper .el-select {
  max-width: 220px;
  width: 100%;
}
.ff-ai-chat-style-section > *:not(.ff-ai-chat-style-header) {
  margin-bottom: 16px;
}
.ff-ai-chat-style-section > *:not(.ff-ai-chat-style-header):last-child {
  margin-bottom: 0;
}

.ff-ai-chat-shadow-header {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--ff-ai-settings-border);
}
.ff-ai-chat-shadow-header .ff-ai-chat-switch {
  margin-right: 12px;
}
.ff-ai-chat-shadow-header .ff-ai-chat-shadow-label {
  font-size: 15px;
  font-weight: 600;
  color: var(--ff-ai-settings-text-primary);
  margin: 0;
}

.ff-ai-chat-shadow-content {
  margin-top: 16px;
}
.ff-ai-chat-shadow-content .ff_each_style {
  background: var(--ff-ai-settings-card-bg);
  border: 1px solid var(--ff-ai-settings-border);
  border-radius: 8px;
  padding: 16px;
}

.ff_type_settings .ff-type-control {
  padding: 0 2px;
}
.ff_type_settings .ff-type-control .el-slider__input {
  clear: both;
}
.ff_type_settings .ff-type-control .ff-type-value {
  width: 130px !important;
}

.ff-control-content .ff-control-field {
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  overflow: visible;
  clear: both;
}
.ff-control-content .ff-control-field:last-child {
  margin-bottom: 0;
}
.ff-control-content .ff-control-title {
  display: inline-block;
  width: auto;
  float: none;
  font-size: 14px;
  color: var(--ff-ai-settings-text-primary);
  font-weight: 500;
  margin-bottom: 0;
  margin-right: 16px;
  flex-shrink: 0;
}
.ff-control-content .ff-ai-chat-control-help {
  color: var(--ff-ai-settings-text-muted);
  cursor: help;
  font-size: 13px;
  margin-left: 5px;
  vertical-align: middle;
}
.ff-control-content .ff-control-input-wrapper .el-select {
  max-width: 180px;
  width: 100%;
}

.ff-type-control {
  margin-bottom: 15px;
}
.ff-type-control:last-child {
  margin-bottom: 0;
}
.ff-type-control .ff-type-value {
  display: flex;
  align-items: center;
  gap: 8px;
}
.ff-type-control .ff-type-slider {
  margin-top: 10px;
}
.ff-type-control .ff-type-custom {
  width: 100%;
}

.ff_border_config .ff_section_title {
  font-size: 14px;
  font-weight: 500;
  color: #303133;
  margin-bottom: 16px;
  margin-top: 0;
}
.ff_border_config .ff-control-content .ff-control-field.ff_input_wrapper_full {
  margin-bottom: 15px;
}
.ff_border_config .ff-control-content .ff-control-field.ff_each_style {
  margin-top: 15px;
}

.ff_each_style {
  position: relative;
  padding: 0px 0px 15px;
}
.ff_each_style:last-child {
  padding-bottom: 0 !important;
}
.ff_each_style .ff-control-title {
  width: 50%;
  float: left;
  font-size: 14px;
  font-weight: 500;
}
.ff_each_style .ff-control-title-auto {
  width: auto;
}
.ff_each_style .ff-control-dimensions {
  overflow: hidden;
  margin: 0;
  padding: 0;
}
.ff_each_style .ff-control-dimensions li {
  float: left;
  width: 20%;
  list-style: none;
  margin: 0;
  padding: 0;
}
.ff_each_style .ff-control-dimensions li:first-child input {
  border-left: 1px solid #d5dadf;
  border-radius: 3px 0 0 3px;
}
.ff_each_style .ff-control-dimensions li input {
  display: block;
  text-align: center;
  width: 100%;
  border-color: #d5dadf;
  height: 27px;
  padding: 4px 0;
  border-radius: 0;
}
.ff_each_style .ff-control-dimensions li input:focus {
  border-color: #a4afb7;
  margin-left: 0;
  width: 100%;
  outline: 0;
}
.ff_each_style .ff-control-dimensions li label {
  display: block;
  text-align: center;
  color: #989898;
  font-size: 9px;
  text-transform: uppercase;
  padding-top: 0px;
}
.ff_each_style .ff-control-dimensions li .ff_item_linkable {
  border: 1px solid #d5dadf;
  padding: 3px 16px;
  height: 30px;
  display: inline-block;
  font-size: 10px;
  vertical-align: top;
  border-top-right-radius: 3px;
  border-bottom-right-radius: 3px;
}
.ff_each_style .ff-control-dimensions li .ff_item_linkable.ff_item_linked {
  background-color: #606266;
  border-color: #606266;
  color: #ffffff;
}
.ff_each_style .ff-control-dimensions li .ff_item_linkable span {
  font-size: 17px;
  margin-top: 4px;
}
.ff_each_style .ff-linked {
  cursor: pointer;
}
.ff_each_style .ff_section_title {
  font-size: 18px;
  font-weight: 500;
  margin-bottom: 10px;
  margin-top: 10px;
}

.ff-ai-chat-ui-controls {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-bottom: 18px;
}
.ff-ai-chat-ui-controls .ff-control-input-wrapper .el-input {
  max-width: 220px;
}
.ff-ai-chat-ui-controls .ff-ai-chat-logo-control {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}
.ff-ai-chat-ui-controls .ff-ai-chat-logo-preview {
  align-items: center;
  border: 1px solid var(--ff-ai-settings-border);
  border-radius: 6px;
  display: flex;
  height: 34px;
  justify-content: center;
  width: 34px;
}
.ff-ai-chat-ui-controls .ff-ai-chat-logo-preview img {
  max-height: 26px;
  max-width: 26px;
  -o-object-fit: contain;
     object-fit: contain;
}

.ff_type_settings {
  width: 100%;
}
.ff_type_settings .ff-type-control {
  margin-bottom: 10px;
  overflow: hidden;
  display: block;
}
.ff_type_settings .ff-type-control .ff-control-title,
.ff_type_settings .ff-type-control .ff-type-value {
  display: inline-block;
  color: #808184;
  font-size: 12px;
}
.ff_type_settings .ff-type-control .ff-type-value {
  float: right;
  width: 110px;
}
.ff_type_settings .ff-type-control.ff-type-full {
  width: 100%;
}
.ff_type_settings .ff-type-control.ff-type-full .ff-type-value {
  width: 100%;
  float: none;
}

.ff_fullscreen_visuals_section {
  margin-bottom: 20px;
}
.ff_fullscreen_visuals_section .ff_fullscreen_visuals_content {
  margin-bottom: 16px;
}
.ff_fullscreen_visuals_section .ff_fullscreen_visuals_actions {
  margin-bottom: 12px;
}
.ff_fullscreen_visuals_section .ff_fullscreen_media_pool {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 12px;
  max-height: 280px;
  overflow-y: auto;
}
.ff_fullscreen_visuals_section .ff_fullscreen_media_pool_item {
  position: relative;
  aspect-ratio: 1;
  border: 1px solid #dcdfe6;
  border-radius: 4px;
  overflow: hidden;
  background: #f5f7fa;
  transition: border-color 0.2s, box-shadow 0.2s, z-index 0s;
}
.ff_fullscreen_visuals_section .ff_fullscreen_media_pool_item:hover {
  z-index: 10;
  border-color: #409eff;
  box-shadow: 0 4px 12px rgba(64, 158, 255, 0.35);
}
.ff_fullscreen_visuals_section .ff_fullscreen_media_pool_item.ff_fullscreen_media_pool_item_draggable {
  cursor: grab;
}
.ff_fullscreen_visuals_section .ff_fullscreen_media_pool_item.ff_fullscreen_media_pool_item_draggable:active {
  cursor: grabbing;
}
.ff_fullscreen_visuals_section .ff_fullscreen_media_pool_item .ff_fullscreen_media_thumb {
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
  border-radius: 3px;
  display: block;
}
.ff_fullscreen_visuals_section .ff_fullscreen_media_pool_item .ff_fullscreen_media_pool_drag_icon {
  position: absolute;
  bottom: 4px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  border-radius: 4px;
  padding: 2px 6px;
  opacity: 0;
  transition: opacity 0.2s;
  pointer-events: none;
  z-index: 1;
}
.ff_fullscreen_visuals_section .ff_fullscreen_media_pool_item .ff_fullscreen_media_pool_drag_icon .dashicons {
  font-size: 16px;
  width: 16px;
  height: 16px;
}
.ff_fullscreen_visuals_section .ff_fullscreen_media_pool_item.ff_fullscreen_media_pool_item_draggable:hover .ff_fullscreen_media_pool_drag_icon {
  opacity: 1;
}
.ff_fullscreen_visuals_section .ff_fullscreen_media_pool_item .ff_fullscreen_media_placeholder {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #909399;
}
.ff_fullscreen_visuals_section .ff_fullscreen_media_pool_item .ff_fullscreen_media_remove {
  position: absolute;
  top: 2px;
  right: 4px;
  cursor: pointer;
  color: #909399;
  font-size: 16px;
  line-height: 1;
  z-index: 2;
}
.ff_fullscreen_visuals_section .ff_fullscreen_media_pool_item .ff_fullscreen_media_remove:hover {
  color: #f56c6c;
}
.ff_fullscreen_visuals_section .ff_fullscreen_media_pool_item .ff_fullscreen_media_url_input {
  position: absolute;
  inset: 0;
}
.ff_fullscreen_visuals_section .ff_fullscreen_media_pool_item .ff_fullscreen_media_url_input .el-input__inner {
  font-size: 11px;
  padding: 2px 20px 2px 4px;
  height: 100%;
}

.ff_fullscreen_fields_section {
  margin-bottom: 20px;
}
.ff_fullscreen_fields_section .ff_fullscreen_fields_list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 12px;
}
.ff_fullscreen_fields_section .ff_fullscreen_field_row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 10px;
  border: 1px solid transparent;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}
.ff_fullscreen_fields_section .ff_fullscreen_field_row:hover {
  background: #f5f7fa;
}
.ff_fullscreen_fields_section .ff_fullscreen_field_row.ff_fullscreen_field_row_active {
  background: #fff;
  border-color: #dcdfe6;
}
.ff_fullscreen_fields_section .ff_fullscreen_field_thumb {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border: 1px solid #dcdfe6;
  border-radius: 4px;
  overflow: hidden;
  background: #f5f7fa;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.2s, background 0.2s;
}
.ff_fullscreen_fields_section .ff_fullscreen_field_thumb.ff_fullscreen_field_thumb_drop_over {
  border-color: #409eff;
  background: #ecf5ff;
}
.ff_fullscreen_fields_section .ff_fullscreen_field_thumb.ff_fullscreen_field_thumb_color {
  min-height: 40px;
}
.ff_fullscreen_fields_section .ff_fullscreen_field_thumb img {
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
}
.ff_fullscreen_fields_section .ff_fullscreen_field_thumb .ff_fullscreen_field_placeholder {
  color: #c0c4cc;
  font-size: 20px;
}
.ff_fullscreen_fields_section .ff_fullscreen_field_label {
  flex: 1;
  font-size: 13px;
  min-width: 0;
}
.ff_fullscreen_fields_section .ff_fullscreen_field_row_active .ff_fullscreen_field_label {
  font-weight: 600;
}
.ff_fullscreen_fields_section .ff_fullscreen_field_position_icon {
  flex-shrink: 0;
  color: #606266;
  cursor: pointer;
  padding: 4px;
}
.ff_fullscreen_fields_section .ff_fullscreen_field_position_icon i {
  font-size: 18px;
}
.ff_fullscreen_fields_section .ff_fullscreen_no_fields {
  font-size: 13px;
  color: #909399;
  margin: 12px 0 0;
}

.ff_fullscreen_pool_picker_popover {
  max-width: 320px;
}

.ff_fullscreen_pool_picker_panel {
  padding: 8px 0;
}
.ff_fullscreen_pool_picker_panel .ff_fullscreen_pool_picker_title {
  font-weight: 600;
  font-size: 13px;
  margin-bottom: 10px;
  padding: 0 4px;
}
.ff_fullscreen_pool_picker_panel .ff_fullscreen_pool_picker_list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  max-height: 200px;
  overflow-y: auto;
  margin-bottom: 10px;
  padding: 0 4px;
}
.ff_fullscreen_pool_picker_panel .ff_fullscreen_pool_picker_item {
  position: relative;
  z-index: 1;
  aspect-ratio: 1;
  border: 1px solid #dcdfe6;
  border-radius: 4px;
  overflow: hidden;
  cursor: pointer;
  background: #f5f7fa;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.ff_fullscreen_pool_picker_panel .ff_fullscreen_pool_picker_item:hover {
  z-index: 2;
  border-color: #409eff;
  box-shadow: 0 0 0 2px rgba(64, 158, 255, 0.2);
}
.ff_fullscreen_pool_picker_panel .ff_fullscreen_pool_picker_item img {
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
  display: block;
}
.ff_fullscreen_pool_picker_panel .ff_fullscreen_pool_picker_empty {
  font-size: 12px;
  color: #909399;
  margin: 0 0 10px;
  padding: 0 4px;
}
.ff_fullscreen_pool_picker_panel .el-button {
  padding: 0 4px;
}

.ff_fullscreen_image_position_panel .ff_fullscreen_image_position_title,
.ff_fullscreen_image_position_panel .ff_fullscreen_image_placement_title,
.ff_fullscreen_image_placement_panel .ff_fullscreen_image_position_title,
.ff_fullscreen_image_placement_panel .ff_fullscreen_image_placement_title {
  margin-bottom: 12px;
}
.ff_fullscreen_image_position_panel .ff_fullscreen_opacity_form_item,
.ff_fullscreen_image_placement_panel .ff_fullscreen_opacity_form_item {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.ff_fullscreen_image_position_panel .ff_fullscreen_opacity_form_item .el-form-item__label,
.ff_fullscreen_image_placement_panel .ff_fullscreen_opacity_form_item .el-form-item__label {
  text-align: left;
}
.ff_fullscreen_image_position_panel .ff-control-field,
.ff_fullscreen_image_placement_panel .ff-control-field {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}
.ff_fullscreen_image_position_panel .ff-control-field .ff-control-title,
.ff_fullscreen_image_placement_panel .ff-control-field .ff-control-title {
  flex: 0 0 130px;
  margin: 0;
  color: var(--ff-ai-settings-text-primary);
  font-size: 14px;
  font-weight: 500;
}
.ff_fullscreen_image_position_panel .ff-control-field .ff-control-input-wrapper,
.ff_fullscreen_image_placement_panel .ff-control-field .ff-control-input-wrapper {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  justify-content: flex-end;
}
.ff_fullscreen_image_position_panel .ff-control-field .el-select,
.ff_fullscreen_image_placement_panel .ff-control-field .el-select {
  width: 150px;
  max-width: 100%;
}

.ff-styling-preview-area {
  background: var(--ff-ai-settings-card-bg);
  border: 1px solid var(--ff-ai-settings-border);
  border-radius: var(--ff-ai-settings-border-radius);
  box-shadow: var(--ff-ai-settings-shadow);
  overflow: hidden;
}
@media (max-width: 1200px) {
  .ff-styling-preview-area {
    position: relative;
    top: 0;
    margin-top: 20px;
  }
}

.ff-ai-chat-sticky-preview {
  position: sticky;
  top: 136px;
  max-height: calc(100vh - 120px);
  overflow-y: auto;
}

.ff-preview-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--ff-ai-settings-border);
  background: var(--ff-ai-settings-bg);
  position: sticky;
  top: 0;
  z-index: 10;
}
.ff-preview-header h4 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  color: var(--ff-ai-settings-text-primary);
}

.ff-preview-messages {
  display: flex;
  flex-direction: column;
  background: var(--ff-ai-surface-muted, #f9fafb);
  padding: 20px;
  min-height: 300px;
}

.fcc_design_preview .ff_browser {
  width: 100%;
}
.fcc_design_preview .browser-frame {
  border-radius: 10px;
  box-shadow: 0 0 3px #E6ECEF;
  overflow: hidden;
  max-width: 100%;
}
.fcc_design_preview .browser-controls {
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: space-around;
  background: #E6ECEF;
  color: #BEC4C6;
}
.fcc_design_preview .ff_preview_topbar {
  margin-bottom: 12px;
  border: 1px solid rgba(190, 196, 198, 0.35);
  border-radius: 10px;
  background: #f6f8f9;
  overflow: hidden;
}
.fcc_design_preview .ff_preview_statebar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  background: #f6f8f9;
}
.fcc_design_preview .ff_preview_note {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  padding: 8px 12px;
  font-size: 12px;
  line-height: 1.4;
  color: #6b7280;
  background: #eef2f4;
  border-top: 1px solid rgba(190, 196, 198, 0.35);
}
.fcc_design_preview .ff_preview_note__icon {
  flex: 0 0 auto;
  font-size: 13px;
  line-height: 1;
}
.fcc_design_preview .ff_preview_statebar__controls {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.fcc_design_preview .ff_preview_statebar__btn {
  border: 0;
  border-radius: 999px;
  background: #e9eef1;
  color: #425466;
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  padding: 9px 12px;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, opacity 0.15s ease;
}
.fcc_design_preview .ff_preview_statebar__btn:hover:not(:disabled) {
  background: #dde6eb;
  color: #243443;
}
.fcc_design_preview .ff_preview_statebar__btn.is-active {
  background: #111827;
  color: #ffffff;
}
.fcc_design_preview .ff_preview_statebar__btn.is-disabled, .fcc_design_preview .ff_preview_statebar__btn:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}
.fcc_design_preview .ff_preview_statebar__hint {
  color: #6b7280;
  font-size: 12px;
  line-height: 1.4;
  text-align: right;
}
.fcc_design_preview .ff_preview_statebar__meta {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}
.fcc_design_preview .ff_preview_statebar__badge {
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.14);
  color: #047857;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
}
.fcc_design_preview .ff_preview_statebar__live {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 4px 4px;
  min-width: 0;
}
.fcc_design_preview .ff_preview_statebar__live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.18);
  flex-shrink: 0;
  animation: ff-ai-live-pulse 1.6s ease-in-out infinite;
}
.fcc_design_preview .ff_preview_statebar__live-label {
  font-size: 12px;
  font-weight: 600;
  color: #111827;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
@keyframes ff-ai-live-pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.45;
  }
}
.fcc_design_preview .ff_preview_statebar__secondary {
  border: 0;
  border-radius: 999px;
  background: #ffffff;
  color: #111827;
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  padding: 9px 12px;
  cursor: pointer;
  box-shadow: inset 0 0 0 1px rgba(190, 196, 198, 0.8);
}
.fcc_design_preview .ff_preview_statebar__secondary.is-live {
  background: #111827;
  color: #ffffff;
  box-shadow: none;
}
.fcc_design_preview .window-controls {
  flex: 0 0 60px;
  margin: 0 2%;
}
.fcc_design_preview .window-controls span {
  display: inline-block;
  width: 15px;
  height: 15px;
  border-radius: 50px;
  background: #FF8585;
}
.fcc_design_preview .window-controls span.minimise {
  background: #FFD071;
}
.fcc_design_preview .window-controls span.maximise {
  background: #74ED94;
}
.fcc_design_preview .page-controls {
  flex: 0 0 70px;
  margin-right: 2%;
}
.fcc_design_preview .page-controls span {
  display: inline-block;
  width: 30px;
  text-align: center;
  padding-top: 5px;
  height: 20px;
  font-size: 13px;
  line-height: 11px;
}
.fcc_design_preview .url-bar {
  flex-grow: 1;
  margin-right: 2%;
  padding: 5px 5px 0 10px;
  font-family: monospace;
  font-size: 13px;
  color: rgb(135.6557377049, 146.6721311475, 150.3442622951);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.fcc_design_preview .white-container {
  height: 25px;
  min-width: 30px;
  border-radius: 3px;
  background: white;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
}
.fcc_design_preview #ff_ai_chat_preview_iframe_holder {
  min-height: 600px;
  background: #fff;
  border-bottom-left-radius: 8px;
  border-bottom-right-radius: 8px;
}
.fcc_design_preview .browser-frame.ffc_browser_mobile {
  max-width: 375px;
  margin: 0 auto;
}
.fcc_design_preview .ff_browser--fullscreen .browser-frame {
  border-radius: 12px;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.08);
}
.fcc_design_preview .ff_browser--fullscreen #ff_ai_chat_preview_iframe_holder {
  border-radius: 12px;
  min-height: 720px;
}
.fcc_design_preview .fcc_device_switcher {
  text-align: center;
  margin-top: 20px;
}
@media (max-width: 991px) {
  .fcc_design_preview .ff_preview_statebar {
    align-items: flex-start;
    flex-direction: column;
  }
  .fcc_design_preview .ff_preview_statebar__hint {
    text-align: left;
  }
}

@media (max-width: 1024px) {
  .ff-stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 768px) {
  .ff-chat-styling-container {
    width: 100%;
    max-width: 100%;
  }
  .ff-ai-chat-form .el-form-item .el-form-item__label {
    width: 100% !important;
    float: none;
    padding: 0 0 8px 0;
  }
  .ff-ai-chat-form .el-form-item .el-form-item__content {
    width: 100%;
    margin-left: 0 !important;
  }
  .ff-ai-chat-sticky-header {
    position: relative;
    top: auto;
  }
  .ff-ai-chat-sticky-preview {
    position: relative;
    top: 0;
    max-height: none;
  }
  #ff_ai_chat_settings_app {
    padding: 16px 16px 0;
  }
  .ff-ai-chat-embed-section .ff-ai-chat-embed-controls {
    flex-direction: column;
  }
  .ff-ai-chat-embed-section .ff-ai-chat-embed-controls .ff-ai-chat-embed-action {
    margin-top: 10px;
    width: 100%;
  }
  .ff-stats-grid {
    grid-template-columns: 1fr;
  }
  .ff-ai-chat-form .el-form-item {
    margin-bottom: 24px !important;
  }
}
