/* Inter is bundled with the plugin (@fontsource/inter), not loaded from Google Fonts. */
@import '@fontsource/inter/latin-400.css';
@import '@fontsource/inter/latin-500.css';
@import '@fontsource/inter/latin-600.css';
@import '@fontsource/inter/latin-700.css';

/* Accent color: Global Settings › Appearance sets --formglut-admin-accent; the shades follow it. */
:root {
  --fg-accent: var(--formglut-admin-accent, #e94560);
  --fg-accent-dark: color-mix(in srgb, var(--fg-accent) 82%, #000);
  --fg-accent-light: color-mix(in srgb, var(--fg-accent) 65%, #fff);
  --fg-accent-border: color-mix(in srgb, var(--fg-accent) 30%, #fff);
  --fg-accent-soft: color-mix(in srgb, var(--fg-accent) 8%, #fff);
  --fg-accent-softer: color-mix(in srgb, var(--fg-accent) 4%, #fff);
}


* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: #f5f6fa;
  min-height: 100vh;
  overflow: auto !important;
  width: 100% !important;
}

/* Header */
.fg-header {
  background: linear-gradient(135deg, #0f0f1a 0%, #1a1a2e 50%, #16213e 100%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  height: 64px;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}
.fg-header-left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 120px;
}
.fg-header-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}
.fg-logo-img {
  height: 36px;
  width: auto;
  display: block;
  margin-top:3px;
}
.fg-header-right { display: flex; gap: 8px; align-items: center; min-width: 120px; justify-content: flex-end; }
.fg-header-nav { display: flex; align-items: center; gap: 2px; background: rgba(255,255,255,0.06); border-radius: 8px; padding: 3px; }
.fg-header-nav a {
  color: rgba(255,255,255,0.65);
  padding: 7px 18px;
  border-radius: 6px;
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  transition: all 0.2s;
}
.fg-header-nav a:link, .fg-header-nav a:visited {
  color: rgba(255,255,255,0.65);
}
.fg-header-nav a:hover {
  color: #fff;
  background: rgba(255,255,255,0.08);
}
.fg-header-nav a:active {
  color: #fff;
  background: rgba(255,255,255,0.12);
}
.fg-header-nav a.active, .fg-header-nav a.active:link, .fg-header-nav a.active:visited {
  background: var(--fg-accent);
  color: #fff;
  box-shadow: 0 2px 8px color-mix(in srgb, var(--fg-accent) 30%, transparent);
}

/* Layout */
.fg-content { max-width: 1280px; margin: 0 auto; padding: 32px; }

.fg-page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
}
.fg-page-title { font-size: 26px; font-weight: 700; line-height: 1.3; color: #1a1a2e; }
.fg-page-subtitle { color: #64748b; font-size: 14px; line-height: 1.5; margin-top: 8px; }

.fg-table-wrap {
  background: #fff;
  border-radius: 14px;
  border: 1px solid #e8ecf1;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

/* Status Dot */
.fg-status-dot {
  width: 8px; height: 8px; border-radius: 50%; display: inline-block;
  margin-left: 6px; margin-right: 4px; vertical-align: middle; position: relative; top: -1px;
}
.fg-status-dot.active { background: #10b981; }
.fg-status-dot.draft { background: #f59e0b; }
.fg-status-dot.closed { background: #ef4444; }

/* Shortcode */
.fg-shortcode {
  background: #f4f6f9;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 6px 12px;
  font-family: 'SF Mono', Monaco, monospace;
  font-size: 15px;
  color: #475569;
  cursor: pointer;
  transition: all 0.2s;
}
.fg-shortcode:hover { border-color: var(--fg-accent); color: var(--fg-accent); background: #fef2f2; }
.fg-shortcode:active { border-color: var(--fg-accent); color: var(--fg-accent); background: #fef2f2; }

/* Row actions */
.fg-row-actions {
  display: flex; flex-wrap: wrap; gap: 2px; margin-top: 6px;
  align-items: center;
}
.fg-row-actions a svg { font-size: 11px; margin-right: 2px; }
.fg-row-actions a, .fg-row-actions span {
  font-size: 12px; color: #64748b; text-decoration: none;
  padding: 1px 4px; border-radius: 3px; cursor: pointer;
  transition: all 0.15s;
}
.fg-row-actions a:link, .fg-row-actions a:visited { color: #64748b; }
.fg-row-actions a:hover, .fg-row-actions span:hover { color: var(--fg-accent); }
.fg-row-actions a:active, .fg-row-actions span:active { color: var(--fg-accent); }
.fg-row-actions .fg-action-sep { color: #d1d5db; padding: 0 1px; cursor: default; font-size: 11px; }
.fg-row-actions .fg-action-delete { color: #ef4444; }
.fg-row-actions .fg-action-delete:link, .fg-row-actions .fg-action-delete:visited { color: #ef4444; }
.fg-row-actions .fg-action-delete:hover { color: #dc2626; background: #fef2f2; }
.fg-row-actions .fg-action-delete:active { color: #dc2626; background: #fef2f2; }
.fg-row-actions .ant-switch { margin-top: 0 !important; line-height: 1; display: inline-flex; align-items: center; }

/* Back to admin link */
.fg-header-back {
  color: rgba(255,255,255,0.45);
  text-decoration: none;
  font-size: 14px;
  padding: 6px 10px;
  border-radius: 8px;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 2px;
}
.fg-header-back:link, .fg-header-back:visited {
  color: rgba(255,255,255,0.45);
}
.fg-header-back .svg-inline--fa {
  vertical-align: middle;
}
.fg-header-back:hover {
  color: #fff;
  background: rgba(255,255,255,0.08);
}
.fg-header-back:active {
  color: #fff;
  background: rgba(255,255,255,0.12);
}

/* Filter Tabs */
.fg-filter-tabs {
  display: flex; gap: 4px; margin-bottom: 16px;
  background: #fff; border-radius: 10px; padding: 4px;
  border: 1px solid #e8ecf1;
}
.fg-filter-tab {
  padding: 8px 16px; border-radius: 8px; border: none; background: none;
  font-size: 13px; font-weight: 500; color: #64748b; cursor: pointer;
  transition: all 0.15s; display: flex; align-items: center; gap: 6px;
}
.fg-filter-tab:hover { color: #1a1a2e; background: #f8fafc; }
.fg-filter-tab:active { color: #1a1a2e; background: #f8fafc; }
.fg-filter-tab.active { color: #fff; background: var(--fg-accent); }
.fg-filter-tab.active .fg-filter-count { background: rgba(255,255,255,0.25); color: #fff; }
.fg-filter-count {
  font-size: 11px; font-weight: 600; background: #f1f5f9; color: #64748b;
  padding: 1px 7px; border-radius: 10px;
}

/* Stats Row */
.fg-stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}
.fg-stat-card {
  background: #fff;
  border-radius: 12px;
  padding: 20px;
  border: 1px solid #e8ecf1;
  transition: all 0.2s;
}
.fg-stat-card:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
  transform: translateY(-1px);
}
.fg-stat-label { font-size: 13px; color: #64748b; font-weight: 500; margin-bottom: 10px; }
.fg-stat-value { font-size: 28px; font-weight: 700; color: #1a1a2e; margin: 0; line-height: 1.2; }
.fg-stat-change { font-size: 12px; font-weight: 600; }
.fg-stat-change.up { color: #10b981; }
.fg-stat-change.down { color: #ef4444; }

/* Bulk Action Bar */
.fg-bulk-bar {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 20px; background: #fafbff; border-bottom: 1px solid #eef0f6;
  border-left: 3px solid var(--fg-accent);
  font-size: 13px; color: #1a1a2e; font-weight: 500;
}
.fg-bulk-bar > span:first-child {
  display: inline-flex; align-items: center;
  padding: 3px 12px; margin-right: 8px;
  background: var(--fg-accent); color: #fff; border-radius: 999px;
  font-size: 12px; font-weight: 600; letter-spacing: .2px;
}
.fg-bulk-bar .fg-bulk-btn {
  display: inline-flex; align-items: center; gap: 6px;
  height: 30px; padding: 0 12px; border-radius: 6px;
  background: #fff; border-color: #e2e8f0; color: #334155; font-weight: 500;
  box-shadow: 0 1px 2px rgba(15,23,42,.04);
}
.fg-bulk-bar .fg-bulk-btn:hover { border-color: var(--fg-accent); color: var(--fg-accent); }
.fg-bulk-bar .fg-bulk-btn.ant-btn-dangerous { color: #dc2626; border-color: #fecaca; }
.fg-bulk-bar .fg-bulk-btn.ant-btn-dangerous:hover { background: #fef2f2; border-color: #dc2626; color: #dc2626; }
.fg-bulk-bar .fg-bulk-btn svg, .fg-bulk-bar .fg-bulk-clear svg { font-size: 12px; }
.fg-bulk-bar .fg-bulk-clear {
  margin-left: auto; display: inline-flex; align-items: center; gap: 6px;
  color: #64748b; background: transparent;
}
.fg-bulk-bar .fg-bulk-clear:hover { color: #1a1a2e; background: #eef0f6; }

/* Table Toolbar */
.fg-table-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid #f0f0f0;
}
.fg-table-toolbar-left { display: flex; gap: 8px; align-items: center; }
.fg-table-toolbar-right { display: flex; gap: 8px; align-items: center; }

/* Create Form Cards */
.fg-create-card {
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  padding: 32px 24px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
  background: #fff;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.fg-create-card:hover {
  border-color: var(--fg-accent);
  box-shadow: 0 8px 24px color-mix(in srgb, var(--fg-accent) 12%, transparent);
  transform: translateY(-2px);
}
.fg-create-card-icon { font-size: 36px; color: var(--fg-accent); margin-bottom: 16px; }
.fg-create-card-title { font-size: 16px; font-weight: 700; color: #1a1a2e; margin-bottom: 6px; }
.fg-create-card-desc { font-size: 13px; color: #64748b; line-height: 1.5; }

/* Settings Layout */
.fg-settings-layout {
  max-width: 720px;
  margin: 0 auto;
}

/* Card */
.fg-card {
  background: #fff;
  border-radius: 12px;
  border: 1px solid #e8ecf1;
  padding: 28px;
  margin-bottom: 20px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.fg-card-title {
  font-size: 17px;
  font-weight: 700;
  color: #1a1a2e;
  margin-bottom: 22px;
  display: flex;
  align-items: center;
}

/* Empty State */
.fg-empty-state { text-align: center; padding: 48px 20px; }
.fg-empty-icon { font-size: 48px; color: #cbd5e1; margin-bottom: 16px; }
.fg-empty-title { font-size: 18px; font-weight: 700; color: #1a1a2e; margin-bottom: 6px; }
.fg-empty-desc { font-size: 14px; color: #64748b; }

/* Entry Detail */
.fg-back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #64748b;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  margin-bottom: 16px;
  transition: color 0.15s;
}
.fg-back-link:link, .fg-back-link:visited { color: #64748b; }
.fg-back-link:hover { color: var(--fg-accent); }
.fg-back-link:active { color: var(--fg-accent); }

.fg-page-title-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.fg-entry-card {
  background: #fff;
  border: 1px solid #e8ecf1;
  border-radius: 12px;
  margin-bottom: 20px;
  overflow: hidden;
}
.fg-entry-card-header {
  padding: 16px 20px;
  border-bottom: 1px solid #f0f0f0;
  background: #fafbfc;
}
.fg-entry-card-title {
  font-size: 15px;
  font-weight: 700;
  color: #1a1a2e;
}
.fg-entry-card-body {
  padding: 4px 20px;
}

.fg-entry-row {
  display: flex;
  padding: 14px 0;
  border-bottom: 1px solid #f0f0f0;
}
.fg-entry-row:last-child { border-bottom: none; }
.fg-entry-label {
  width: 200px;
  min-width: 200px;
  font-size: 13px;
  font-weight: 600;
  color: #475569;
  padding-right: 16px;
}
.fg-entry-value {
  flex: 1;
  font-size: 14px;
  color: #1a1a2e;
  white-space: pre-wrap;
  word-break: break-word;
}
.fg-entry-rich { white-space: normal; }
.fg-entry-rich > :first-child { margin-top: 0; }
.fg-entry-rich > :last-child { margin-bottom: 0; }

.fg-meta-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  padding: 20px;
}
.fg-meta-item {
  padding: 12px;
  background: #f8fafc;
  border-radius: 8px;
}
.fg-meta-item-label {
  font-size: 11px;
  font-weight: 600;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}
.fg-meta-item-value {
  font-size: 13px;
  color: #1a1a2e;
  word-break: break-all;
}

/* Status Badge */
.fg-status-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.5;
}
.fg-status-badge.unread { background: #eff6ff; color: #2563eb; }
.fg-status-badge.read { background: #f0fdf4; color: #16a34a; }
.fg-status-badge.spam { background: #fef3c7; color: #d97706; }
.fg-status-badge.trash { background: #fef2f2; color: #dc2626; }

/* Print */
@media print {
  .fg-header, .fg-back-link, .fg-page-header .ant-space { display: none !important; }
  .fg-content { max-width: 100%; padding: 0; }
}

/* Responsive */
@media (max-width: 782px) {
  .fg-meta-grid { grid-template-columns: repeat(2, 1fr); }
  .fg-entry-row { flex-direction: column; gap: 4px; }
  .fg-entry-label { width: auto; min-width: auto; }
}

/* Message positioning - top center */
.ant-message {
  top: 24px !important;
  bottom: auto !important;
  left: 50% !important;
  right: auto !important;
  transform: translateX(-50%) !important;
}
.ant-message-notice {
  text-align: center !important;
}

/* Stop WP admin / browser focus styles from flashing on antd inner inputs */
.ant-input-affix-wrapper input.ant-input,
.ant-input-affix-wrapper input.ant-input:focus,
.ant-picker input,
.ant-picker input:focus,
.ant-select-selection-search-input,
.ant-select-selection-search-input:focus {
  border: none !important;
  box-shadow: none !important;
  outline: none !important;
  background: transparent;
}
.fg-settings-hint { font-size: 13px; color: #64748b; background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 8px; padding: 10px 14px; margin-top: 8px; }

/* Toolbar controls: search input and selects share one height (override WP admin input styles) */
.fg-table-toolbar .ant-input-affix-wrapper,
.fg-table-toolbar .ant-select .ant-select-selector,
.fg-table-toolbar .ant-picker { height: 42px !important; box-sizing: border-box; }
.fg-table-toolbar .ant-input-affix-wrapper { padding: 0 12px; align-items: center; }
.fg-table-toolbar .ant-input-affix-wrapper input.ant-input {
  min-height: 0 !important; height: 100% !important; padding: 0 !important; margin: 0; line-height: 40px;
}
.fg-table-toolbar .ant-select .ant-select-selection-item,
.fg-table-toolbar .ant-select .ant-select-selection-placeholder { line-height: 40px !important; }
.fg-table-toolbar .ant-select-selection-search-input { min-height: 0 !important; height: 40px !important; }
.fg-table-toolbar .ant-select .ant-select-selector { height: 36px !important; }
.fg-table-toolbar .ant-select .ant-select-selection-item,
.fg-table-toolbar .ant-select .ant-select-selection-placeholder { line-height: 34px !important; }
.fg-table-toolbar .ant-select-selection-search-input { height: 34px !important; }
.fg-table-toolbar .ant-select .ant-select-arrow {
  top: 50% !important; bottom: auto !important; height: auto !important; margin-top: 0 !important;
  transform: translateY(-38%); display: inline-flex; align-items: center; line-height: 1;
}
.fg-table-toolbar .ant-select .ant-select-arrow svg { display: block; }

/* ── Form settings page ───────────────────────────────────────────── */
.fg-fs-top { max-width: 1100px; margin: 0 auto 20px; }
.fg-fs-back { display: inline-flex; align-items: center; gap: 8px; color: #64748b; text-decoration: none; font-size: 13px; margin-bottom: 10px; }
.fg-fs-back:hover { color: var(--fg-accent); }
.fg-fs-titlebar { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.fg-fs-formname { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 6px; color: #334155; }
.fg-fs-id { background: #f1f5f9; color: #64748b; font-size: 12px; font-weight: 600; padding: 2px 10px; border-radius: 999px; }
.fg-fs-code { display: inline-flex; align-items: center; gap: 8px; border: 1px dashed #cbd5e1; background: #fff; color: #475569; font: 12px ui-monospace, Menlo, monospace; padding: 3px 10px; border-radius: 8px; cursor: pointer; }
.fg-fs-code:hover { border-color: var(--fg-accent); color: var(--fg-accent); }
.fg-fs-actions { display: flex; align-items: center; gap: 14px; }
.fg-fs-unsaved { font-size: 12.5px; color: #c2410c; background: #fff7ed; padding: 4px 12px; border-radius: 999px; }
.fg-fs-note { margin-top: 12px; font-size: 13px; color: #64748b; background: #f8fafc; border: 1px solid #e5e7eb; border-radius: 10px; padding: 10px 14px; }
.fg-fs-layout { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 22px; max-width: 1100px; margin: 0 auto; align-items: start; }
.fg-fs-nav { position: sticky; top: 16px; display: flex; flex-direction: column; gap: 4px; background: #fff; border: 1px solid #e5e7eb; border-radius: 14px; padding: 8px; }
.fg-fs-nav button { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; border: 0; background: transparent; padding: 10px 12px; border-radius: 10px; color: #475569; font-size: 14px; font-weight: 500; cursor: pointer; transition: background .12s, color .12s; }
.fg-fs-nav button .ic { width: 30px; height: 30px; border-radius: 8px; background: #f1f5f9; color: #64748b; display: inline-flex; align-items: center; justify-content: center; font-size: 13px; flex: none; }
.fg-fs-nav button:hover { background: #f8fafc; }
.fg-fs-nav button.active { background: var(--fg-accent-soft); color: var(--fg-accent); font-weight: 600; }
.fg-fs-nav button.active .ic { background: var(--fg-accent); color: #fff; }
.fg-fs-card { background: #fff; border: 1px solid #e5e7eb; border-radius: 14px; padding: 0 26px 10px; box-shadow: 0 1px 2px rgba(15,23,42,.04); }
.fg-fs-card-head { display: flex; gap: 14px; align-items: center; padding: 22px 0 18px; border-bottom: 1px solid #f0f0f0; }
.fg-fs-card-head .ic { width: 42px; height: 42px; border-radius: 12px; background: var(--fg-accent-soft); color: var(--fg-accent); display: inline-flex; align-items: center; justify-content: center; font-size: 17px; flex: none; }
.fg-fs-card-head h2 { margin: 0; font-size: 18px; font-weight: 700; color: #0f172a; }
.fg-fs-card-head p { margin: 2px 0 0; font-size: 13px; color: #64748b; }
.fg-fs-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 380px); gap: 28px; align-items: center; padding: 18px 0; border-bottom: 1px solid #f3f4f6; }
.fg-fs-row:last-of-type { border-bottom: 0; }
.fg-fs-row.has-divider { margin-top: 10px; border-top: 1px solid #e5e7eb; }
.fg-fs-row.is-wide { align-items: start; }
.fg-fs-row.is-switch .fg-fs-control { display: flex; justify-content: flex-end; }
.fg-fs-label label { display: block; font-size: 14px; font-weight: 600; color: #1e293b; }
.fg-fs-help { margin-top: 3px; font-size: 12.5px; line-height: 1.5; color: #64748b; }
.fg-fs-control .ant-input, .fg-fs-control .ant-input-number, .fg-fs-control .ant-select { border-radius: 8px; }
.fg-fs-control .ant-input, .fg-fs-control .ant-select-selector { padding-top: 6px; padding-bottom: 6px; }
.fg-fs-control input.ant-input { height: 38px; }
.fg-fs-control .ant-select-selector { min-height: 38px; }
.fg-fs-tags { margin: 6px 0 18px; padding: 14px 16px; background: #f8fafc; border: 1px solid #e5e7eb; border-radius: 12px; }
.fg-fs-tags-title { font-size: 13px; font-weight: 600; color: #334155; display: flex; align-items: center; gap: 8px; }
.fg-fs-tags-title span { font-weight: 400; color: #94a3b8; font-size: 12px; }
.fg-fs-tags-sub { margin: 12px 0 6px; font-size: 12px; text-transform: uppercase; letter-spacing: .5px; color: #94a3b8; font-weight: 600; }
.fg-fs-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.fg-fs-chips button { border: 1px solid #e2e8f0; background: #fff; color: #475569; font: 12px ui-monospace, Menlo, monospace; padding: 3px 10px; border-radius: 999px; cursor: pointer; }
.fg-fs-chips button:hover { border-color: var(--fg-accent); color: var(--fg-accent); }
.fg-fs-empty { max-width: 420px; margin: 0 auto; background: #fff; border: 1px solid #e5e7eb; border-radius: 14px; padding: 32px; }
.fg-fs-empty-title { font-size: 18px; font-weight: 700; margin-bottom: 6px; }
@media (max-width: 900px) {
  .fg-fs-layout { grid-template-columns: 1fr; }
  .fg-fs-nav { position: static; flex-direction: row; overflow-x: auto; }
  .fg-fs-nav button { white-space: nowrap; width: auto; }
  .fg-fs-row { grid-template-columns: 1fr; gap: 10px; }
  .fg-fs-row.is-switch { grid-template-columns: 1fr auto; align-items: center; }
}

.fg-fs-page { min-height: 100vh; background: #f0f2f5; }
.fg-fs-body { padding: 26px 24px 60px; }

/* Smart tags picker */
.fg-fs-label-line { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.fg-fs-info { display: inline-flex; color: #94a3b8; font-size: 13px; cursor: help; margin-left: -2px; }
.fg-fs-info:hover, .fg-fs-info:focus { color: var(--fg-accent, #4f46e5); outline: none; }
.fg-tag-btn { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border: 1px solid #cbd5e1; background: #f8fafc; color: #334155; font-size: 12px; border-radius: 999px; cursor: pointer; transition: background .12s, border-color .12s; }
.fg-tag-btn strong { font-weight: 700; }
.fg-tag-btn svg { font-size: 12px; color: #475569; }
.fg-tag-btn .chev { font-size: 9px; color: #64748b; }
.fg-tag-btn:hover, .fg-tag-btn:focus-visible { background: #e2e8f0; border-color: #94a3b8; outline: none; }
.fg-tag-popover .ant-popover-inner { padding: 0; border-radius: 12px; overflow: hidden; }
.fg-tag-pop { width: 340px; max-height: 380px; overflow-y: auto; padding: 12px 8px 10px; }
.fg-tag-title { font-size: 14px; font-weight: 700; color: #1e293b; padding: 0 10px; }
.fg-tag-hint { font-size: 12.5px; line-height: 1.5; color: #64748b; padding: 4px 10px 8px; }
.fg-tag-group { font-size: 11px; text-transform: uppercase; letter-spacing: .6px; font-weight: 700; color: #94a3b8; padding: 8px 10px 4px; }
.fg-tag-item { display: flex; align-items: center; gap: 8px; padding: 7px 10px; border-radius: 8px; cursor: pointer; }
.fg-tag-item:hover, .fg-tag-item:focus-visible { background: #f1f5f9; outline: none; }
.fg-tag-item .name { flex: 1; min-width: 0; font-size: 13px; color: #1e293b; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fg-tag-item code { font: 11px ui-monospace, Menlo, monospace; color: #64748b; background: #f8fafc; border: 1px solid #e5e7eb; border-radius: 6px; padding: 1px 6px; max-width: 130px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fg-tag-item .copy { border: 0; background: transparent; color: #94a3b8; cursor: pointer; padding: 4px 6px; border-radius: 6px; }
.fg-tag-item .copy:hover { background: #e5e7eb; color: #1e293b; }
.fg-tag-item .copy.done { color: #059669; }

/* Single entry: files, notes, print */
.fg-entry-files { display: flex; flex-direction: column; gap: 4px; }
.fg-entry-files a { color: #334155; text-decoration: none; }
.fg-entry-files a:hover { color: var(--fg-accent); }
.fg-notes-hint { font-weight: 400; font-size: 12px; color: #94a3b8; margin-left: 8px; }
.fg-note { padding: 10px 12px; border: 1px solid #eef0f4; border-radius: 10px; background: #fafbfc; margin-bottom: 10px; }
.fg-note-head { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: #64748b; }
.fg-note-head strong { color: #1e293b; }
.fg-note-del { margin-left: auto; border: 0; background: transparent; color: #94a3b8; cursor: pointer; padding: 2px 6px; border-radius: 6px; }
.fg-note-del:hover { color: #dc2626; background: #fef2f2; }
.fg-note-text { margin-top: 4px; white-space: pre-wrap; color: #334155; font-size: 13.5px; }
@media print {
  .fg-header, .fg-back-link, .fg-page-header .ant-space, .fg-notes-card, .ant-message { display: none !important; }
  .fg-content { padding: 0 !important; max-width: none !important; }
  .fg-entry-card { box-shadow: none !important; break-inside: avoid; }
}

/* Email log */
.fg-emaillog-list { margin: 4px 0 18px; overflow-x: auto; }
.fg-emaillog-list table { width: 100%; border-collapse: collapse; font-size: 13px; }
.fg-emaillog-list th { text-align: left; font-size: 11px; text-transform: uppercase; letter-spacing: .5px; color: #94a3b8; padding: 8px; border-bottom: 1px solid #f0f0f0; }
.fg-emaillog-list td { padding: 8px; border-bottom: 1px solid #f5f5f5; vertical-align: top; color: #334155; }
.fg-log-sent { color: #059669; font-weight: 600; } .fg-log-failed { color: #dc2626; font-weight: 600; }

/* Template picker */
.fg-tpl-modal .ant-modal-content { padding: 0; overflow: hidden; border-radius: 16px; }
.fg-tpl-modal .ant-modal-close { top: 14px; right: 14px; }
.fg-tpl { display: grid; grid-template-columns: 250px minmax(0, 1fr); height: min(86vh, 900px); }
.fg-tpl-side { display: flex; flex-direction: column; gap: 14px; padding: 22px 16px; background: #f8fafc; border-right: 1px solid #eef0f4; overflow-y: auto; }
.fg-tpl-side-title { font-size: 17px; font-weight: 700; color: #0f172a; padding: 0 4px; }
.fg-tpl-cats { display: flex; flex-direction: column; gap: 2px; }
.fg-tpl-cats button { display: flex; align-items: center; gap: 8px; width: 100%; padding: 7px 10px; border: 0; border-radius: 8px; background: transparent; color: #334155; font: inherit; font-size: 13px; text-align: left; cursor: pointer; }
.fg-tpl-cats button span { margin-left: auto; font-size: 11px; color: #94a3b8; background: #fff; border: 1px solid #e2e8f0; border-radius: 999px; padding: 0 7px; }
.fg-tpl-cats button:hover { background: #eef2f7; }
.fg-tpl-cats button.active { background: color-mix(in srgb, var(--fg-accent) 12%, #fff); color: var(--fg-accent); font-weight: 600; }
.fg-tpl-cats button.active span { border-color: transparent; color: var(--fg-accent); }
.fg-tpl-cats-label { margin: 12px 10px 4px; font-size: 11px; font-weight: 600; letter-spacing: .5px; text-transform: uppercase; color: #94a3b8; }
.fg-tpl-main { display: flex; flex-direction: column; min-width: 0; overflow-y: auto; padding: 22px 26px 30px; }
.fg-tpl-head { display: flex; align-items: baseline; gap: 10px; margin: 0 40px 16px 0; }
.fg-tpl-head h2 { margin: 0; font-size: 20px; color: #0f172a; }
.fg-tpl-head span { color: #94a3b8; font-size: 13px; }
.fg-tpl-loading { display: flex; justify-content: center; padding: 80px 0; }
.fg-tpl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 18px; }
.fg-tpl-empty { grid-column: 1 / -1; padding: 40px 0; }
.fg-tpl-card { display: flex; flex-direction: column; border: 1px solid #e5e7eb; border-radius: 14px; background: #fff; overflow: hidden; transition: border-color .15s, box-shadow .15s, transform .15s; font: inherit; text-align: left; padding: 0; }
.fg-tpl-card:hover { border-color: color-mix(in srgb, var(--fg-accent) 55%, #e5e7eb); box-shadow: 0 10px 28px rgba(15, 23, 42, .08); transform: translateY(-2px); }
.fg-tpl-thumb { position: relative; height: 200px; background: linear-gradient(180deg, #f8fafc, #f1f5f9); border-bottom: 1px solid #eef0f4; overflow: hidden; }
.fg-tpl-overlay { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 8px; background: rgba(15, 23, 42, .45); opacity: 0; transition: opacity .15s; }
.fg-tpl-card:hover .fg-tpl-overlay, .fg-tpl-card:focus-within .fg-tpl-overlay { opacity: 1; }
.fg-tpl-body { display: flex; flex-direction: column; gap: 5px; padding: 12px 14px 14px; border: 0; background: transparent; font: inherit; text-align: left; cursor: pointer; flex: 1; }
.fg-tpl-name { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 14px; color: #0f172a; }
.fg-tpl-desc { font-size: 12.5px; line-height: 1.45; color: #64748b; }
.fg-tpl-tags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 2px; }
.fg-tpl-tags span { font-size: 10.5px; font-weight: 600; padding: 1px 7px; border-radius: 999px; background: #f1f5f9; color: #475569; }
.fg-tpl-blank { cursor: pointer; border-style: dashed; }
.fg-tpl-blank .fg-tpl-thumb { display: flex; align-items: center; justify-content: center; font-size: 30px; color: var(--fg-accent); background: color-mix(in srgb, var(--fg-accent) 5%, #fff); }

/* Real form in the card (scaled iframe) */
.fg-tpl-real { position: absolute; inset: 0; overflow: hidden; background: #fff; }
.fg-tpl-real iframe { position: absolute; left: 0; top: 0; border: 0; transform-origin: 0 0; pointer-events: none; }
.fg-tpl-real::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 40px; background: linear-gradient(transparent, #fff); pointer-events: none; }
.fg-tpl-real-empty { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: #f8fafc; }

/* Template icons: same tones as the Pro Features page */
.fg-tpl-ic { display: inline-flex; align-items: center; justify-content: center; flex: none; border-radius: 9px; background: #eef2f6; color: #d9546b; }
.fg-tpl-ic-sm { width: 26px; height: 26px; border-radius: 7px; font-size: 12px; }
.fg-tpl-ic-md { width: 40px; height: 40px; font-size: 17px; }
.fg-tpl-ic-lg { width: 56px; height: 56px; border-radius: 15px; font-size: 23px; }
.fg-tone-0 { color: #d6284a; background: #fbdde3; } .fg-tone-1 { color: #e0600f; background: #fbe3cf; } .fg-tone-2 { color: #c88a06; background: #f8e8b8; }
.fg-tone-3 { color: #1f9150; background: #cdecdb; } .fg-tone-4 { color: #0f8f86; background: #c8ebe8; } .fg-tone-5 { color: #1e78c4; background: #cfe4f6; }
.fg-tone-6 { color: #3f50c8; background: #d6dbf6; } .fg-tone-7 { color: #8240cc; background: #e5d6f6; } .fg-tone-8 { color: #c8357f; background: #f8d3e6; }

/* Pro note at the top of the picker */
.fg-tpl-banner { display: flex; align-items: center; gap: 12px; margin: 0 40px 18px 0; padding: 11px 14px; border-radius: 12px; background: linear-gradient(90deg, #f5f3ff, #fdf2f8); border: 1px solid #ede9fe; font-size: 13.5px; color: #334155; }
.fg-tpl-banner-ic { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 8px; background: #fff; color: #7c3aed; flex: none; }
.fg-tpl-banner-text { flex: 1; }
.fg-tpl-banner a { color: #7c3aed; font-weight: 600; white-space: nowrap; text-decoration: none; }
.fg-tpl-banner a:hover { text-decoration: underline; }
.fg-tpl-banner-x { border: 0; background: transparent; color: #94a3b8; cursor: pointer; padding: 4px; }
.fg-tpl-banner-x:hover { color: #475569; }

/* Live preview */
.fg-tpv { display: grid; grid-template-columns: minmax(0, 1fr) 320px; height: min(86vh, 900px); }
.fg-tpv-stage { display: flex; flex-direction: column; min-width: 0; background: #f1f5f9; }
.fg-tpv-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 16px; background: #fff; border-bottom: 1px solid #e2e8f0; }
.fg-tpv-back { border: 0; background: transparent; color: #334155; font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; display: inline-flex; gap: 8px; align-items: center; }
.fg-tpv-back:hover { color: var(--fg-accent); }
.fg-tpv-devices { display: flex; gap: 4px; padding: 4px; background: #f1f5f9; border-radius: 8px; }
.fg-tpv-devices button { width: 34px; height: 30px; border: 0; border-radius: 6px; background: transparent; color: #64748b; cursor: pointer; }
.fg-tpv-devices button.active { background: #fff; color: var(--fg-accent); box-shadow: 0 1px 2px rgba(0, 0, 0, .08); }
.fg-tpv-nav { display: flex; align-items: center; gap: 8px; font-size: 12px; color: #64748b; }
.fg-tpv-nav button { width: 30px; height: 30px; border: 1px solid #e2e8f0; border-radius: 6px; background: #fff; color: #334155; cursor: pointer; }
.fg-tpv-nav button:disabled { opacity: .4; cursor: default; }
.fg-tpv-canvas { flex: 1; display: flex; justify-content: center; padding: 20px; overflow: auto; }
.fg-tpv-loading { align-self: center; }
.fg-tpv-frame { height: 100%; min-height: 420px; border: 0; border-radius: 12px; background: #fff; box-shadow: 0 2px 12px rgba(15, 23, 42, .08); transition: width .25s ease; }
.fg-tpv-side { padding: 26px 22px; overflow-y: auto; border-left: 1px solid #eef0f4; display: flex; flex-direction: column; gap: 10px; }
.fg-tpv-side h2 { margin: 0; font-size: 20px; color: #0f172a; }
.fg-tpv-desc { margin: 0; color: #475569; font-size: 13.5px; line-height: 1.55; }
.fg-tpv-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 6px; }
.fg-tpv-meta span { font-size: 11.5px; padding: 2px 9px; border-radius: 999px; background: #f1f5f9; color: #475569; }
.fg-tpv-hint { margin: 0; text-align: center; font-size: 12px; color: #94a3b8; }
.fg-tpv-side h3 { margin: 12px 0 0; font-size: 12px; text-transform: uppercase; letter-spacing: .5px; color: #94a3b8; }
.fg-tpv-fields { list-style: none; margin: 0; padding: 0; }
.fg-tpv-fields li { display: flex; justify-content: space-between; gap: 8px; padding: 7px 0; border-bottom: 1px solid #f1f5f9; font-size: 13px; color: #334155; }
.fg-tpv-fields em { font-style: normal; font-size: 11px; color: #94a3b8; }
@media (max-width: 900px) {
  .fg-tpl, .fg-tpv { grid-template-columns: 1fr; height: auto; max-height: 90vh; }
  .fg-tpl-side { border-right: 0; border-bottom: 1px solid #eef0f4; }
  .fg-tpv-side { border-left: 0; border-top: 1px solid #eef0f4; }
  .fg-tpv-canvas { min-height: 60vh; }
}
.fg-pro-pill { display: inline-block; font-size: 10px; font-weight: 700; padding: 1px 7px; border-radius: 999px; background: #f5f3ff; color: #7c3aed; vertical-align: middle; margin-left: 4px; }

/* Migrator */
.fg-mig-source { border: 1px solid #eef0f4; border-radius: 10px; margin-bottom: 12px; overflow: hidden; }
.fg-mig-head { display: flex; justify-content: space-between; align-items: center; padding: 10px 14px; background: #f8fafc; border-bottom: 1px solid #eef0f4; }
.fg-mig-row { display: flex; align-items: center; gap: 10px; padding: 8px 14px; border-bottom: 1px solid #f5f5f5; cursor: pointer; }
.fg-mig-row:last-child { border-bottom: 0; }
.fg-mig-row .t { flex: 1; color: #1e293b; }
.fg-mig-row .m { color: #94a3b8; font-size: 12px; }
.fg-mig-results { margin-top: 14px; display: flex; flex-direction: column; gap: 6px; font-size: 13px; }
.fg-mig-results .ok { color: #065f46; } .fg-mig-results .bad { color: #b91c1c; }

/* Data & Logs page */
.fg-tools-card { min-width: 0; padding-bottom: 26px; }
.fg-tools-card .fg-fs-row { padding: 16px 0; }
.fg-tools-card .fg-fs-row.is-wide { grid-template-columns: minmax(0, 1fr); gap: 12px; }
.fg-tools-card .fg-fs-row.is-switch { grid-template-columns: minmax(0, 1fr) auto; }
.fg-tools-card .fg-fs-row.is-switch .fg-fs-control { justify-content: flex-end; }
.fg-tools-card .fg-fs-row .fg-fs-control > div[style*="flex"] { max-width: 100%; }
.fg-tools-card .ant-table-wrapper { margin-top: 4px; }
.fg-tools-card .ant-table { border: 1px solid #eef0f4; border-radius: 10px; overflow: hidden; }
.fg-tools-card .ant-table-thead > tr > th { background: #f8fafc !important; font-size: 12px; text-transform: uppercase; letter-spacing: .4px; color: #64748b; font-weight: 600; }
.fg-tools-card .ant-table-tbody > tr > td { color: #334155; font-size: 13px; }
.fg-tools-card .ant-table-tbody > tr:hover > td { background: var(--fg-accent-softer) !important; }
.fg-tools-card .ant-pagination .ant-pagination-item-active { border-color: var(--fg-accent); }
.fg-tools-card .ant-pagination .ant-pagination-item-active a { color: var(--fg-accent); }
.fg-tool-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 8px; max-height: 320px; overflow: auto; padding: 2px; }
.fg-tool-list label { display: flex; align-items: center; gap: 10px; cursor: pointer; padding: 10px 12px; border: 1px solid #e5e7eb; border-radius: 10px; background: #fff; transition: border-color .15s, background .15s; }
.fg-tool-list label:hover { border-color: var(--fg-accent); background: var(--fg-accent-softer); }
.fg-tool-list label span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #1e293b; font-weight: 500; }
.fg-tool-list em { color: #94a3b8; font-style: normal; font-size: 12px; white-space: nowrap; }
.fg-drop.ant-upload-wrapper .ant-upload-drag { border-radius: 12px; border: 2px dashed #e2e8f0; background: #f8fafc; padding: 18px 0; }
.fg-drop.ant-upload-wrapper .ant-upload-drag:hover { border-color: var(--fg-accent); background: var(--fg-accent-softer); }
.fg-drop-ic { width: 46px; height: 46px; margin: 0 auto 8px; border-radius: 50%; background: var(--fg-accent-soft); color: var(--fg-accent); display: flex; align-items: center; justify-content: center; font-size: 18px; }
.fg-drop-t { font-weight: 600; color: #1e293b; }
.fg-drop-s { font-size: 12.5px; color: #94a3b8; margin-top: 2px; }
.fg-log-settings { display: flex; flex-wrap: wrap; gap: 10px 26px; margin: 18px 0 14px; padding: 12px 16px; background: #f8fafc; border: 1px solid #eef0f4; border-radius: 10px; color: #475569; font-size: 13px; }
.fg-log-settings label { display: inline-flex; align-items: center; gap: 8px; }
.fg-log-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 14px; }
.fg-log-filters .ant-btn-dangerous { margin-left: auto; }
.fg-url { font-family: ui-monospace, Menlo, monospace; font-size: 12px; word-break: break-all; }
.fg-log-detail { max-height: 420px; overflow: auto; background: #0f172a; color: #e2e8f0; padding: 14px; border-radius: 10px; font-size: 12px; white-space: pre-wrap; word-break: break-word; }
.fg-status-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 10px; margin: 18px 0 4px; }
.fg-status-stat { border: 1px solid #eef0f4; background: #f8fafc; border-radius: 12px; padding: 14px 16px; display: flex; flex-direction: column; }
.fg-status-stat b { font-size: 24px; line-height: 1.1; color: var(--fg-accent); }
.fg-status-stat span { color: #64748b; font-size: 12px; margin-top: 4px; }
.fg-tool-h { margin: 26px 0 10px; font-size: 13px; text-transform: uppercase; letter-spacing: .5px; color: #64748b; font-weight: 700; display: flex; align-items: center; gap: 10px; }
.fg-check { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 8px; }
.fg-check:nth-child(odd) { background: #f8fafc; }
.fg-check em { margin-left: auto; color: #b45309; font-style: normal; font-size: 12px; text-align: right; }
.fg-tool-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.fg-env { border-collapse: collapse; width: 100%; font-size: 13px; border: 1px solid #eef0f4; border-radius: 10px; }
.fg-env th { text-align: left; width: 200px; color: #64748b; font-weight: 500; padding: 9px 14px; border-bottom: 1px solid #f1f5f9; background: #f8fafc; }
.fg-env td { padding: 9px 14px; border-bottom: 1px solid #f1f5f9; word-break: break-word; color: #1e293b; }
.fg-task-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
.fg-task { display: flex; flex-direction: column; gap: 6px; padding: 16px; border: 1px solid #e5e7eb; border-radius: 12px; background: #fff; }
.fg-task.danger { border-color: #fde2e4; background: #fffafa; }
.fg-task-t { font-weight: 600; color: #1e293b; }
.fg-task-d { font-size: 12.5px; color: #64748b; line-height: 1.5; flex: 1; margin-bottom: 8px; }
.fg-task .ant-btn { align-self: flex-start; }
.fg-mig-intro { color: #64748b; margin: 16px 0 14px; font-size: 13.5px; line-height: 1.6; }
.fg-mig-empty { text-align: center; padding: 34px 20px; border: 1px dashed #dbe0e8; border-radius: 12px; background: #f8fafc; }
.fg-mig-empty .t { font-weight: 600; color: #1e293b; }
.fg-mig-empty .s { color: #64748b; font-size: 13px; margin: 4px 0 14px; }
.fg-mig-empty .chips { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.fg-mig-empty .chips span { padding: 4px 12px; border-radius: 999px; background: #fff; border: 1px solid #e2e8f0; color: #475569; font-size: 12.5px; }
.fg-tools-card .fg-mig-source { border-radius: 12px; }
.fg-tools-card .fg-mig-row:hover { background: var(--fg-accent-softer); }
@media (max-width: 782px) { .fg-log-filters .ant-btn-dangerous { margin-left: 0; } .fg-tool-list { grid-template-columns: 1fr; } }

/* Log filter bar: one height, and neutralise WordPress admin input styles inside Ant controls. */
.fg-log-filters .ant-input-affix-wrapper, .fg-log-filters .ant-select .ant-select-selector, .fg-log-filters .ant-picker { height: 38px; min-height: 38px; border-radius: 8px; box-sizing: border-box; }
.fg-log-filters .ant-input-affix-wrapper { width: 240px; padding: 0 12px; align-items: center; }
.fg-log-filters .ant-input-affix-wrapper .ant-input-prefix { margin-right: 8px; color: #94a3b8; font-size: 13px; }
.fg-log-filters .ant-input-affix-wrapper:hover, .fg-log-filters .ant-input-affix-wrapper-focused { border-color: var(--fg-accent); box-shadow: none; }
.fg-log-filters input, .fg-log-filters input:focus { box-shadow: none !important; outline: none !important; min-height: 0 !important; height: auto !important; margin: 0 !important; background: transparent !important; border: 0 !important; padding: 0 !important; line-height: 1.5; }
.fg-log-filters .ant-select .ant-select-selector { align-items: center; padding: 0 12px; }
.fg-log-filters .ant-select-single .ant-select-selection-search { inset-inline-start: 12px; }
.fg-log-filters .ant-select-single .ant-select-selection-item, .fg-log-filters .ant-select-single .ant-select-selection-placeholder { line-height: 36px; }
.fg-log-filters .ant-picker { padding: 0 12px; }
.fg-log-filters .ant-picker-focused, .fg-log-filters .ant-picker:hover, .fg-log-filters .ant-select:not(.ant-select-disabled):hover .ant-select-selector, .fg-log-filters .ant-select-focused .ant-select-selector { border-color: var(--fg-accent) !important; box-shadow: none !important; }
.fg-log-filters .ant-btn { height: 38px; border-radius: 8px; display: inline-flex; align-items: center; gap: 8px; }
.fg-log-settings .ant-input-number { border-radius: 6px; }
.fg-log-settings .ant-input-number input { height: 28px !important; box-shadow: none !important; border: 0 !important; }
.fg-log-settings .ant-switch-checked { background: var(--fg-accent); }
.fg-log-filters { padding: 12px; background: #fff; border: 1px solid #eef0f4; border-radius: 12px; }

/* Migration tab */
.fg-mig-option { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 14px 18px; margin-bottom: 16px; border: 1px solid var(--fg-accent-border); background: var(--fg-accent-softer); border-radius: 12px; }
.fg-mig-option .t { font-weight: 600; color: #1e293b; }
.fg-mig-option .s { color: #64748b; font-size: 12.5px; margin-top: 2px; line-height: 1.5; }
.fg-mig-option .ant-switch-checked { background: var(--fg-accent); }
.fg-mig-head .name { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.fg-mig-head .pill { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: #64748b; background: #fff; border: 1px solid #e5e7eb; border-radius: 999px; padding: 2px 10px; }
.fg-mig-head .pill.entries { color: var(--fg-accent); border-color: var(--fg-accent-border); background: var(--fg-accent-soft); }
.fg-mig-row .chip { font-size: 12px; color: #64748b; background: #f1f5f9; border-radius: 999px; padding: 2px 10px; white-space: nowrap; }
.fg-mig-row .chip.has { color: var(--fg-accent-dark); background: var(--fg-accent-soft); font-weight: 600; }
.fg-mig-row .chip.zero { color: #94a3b8; }
.fg-mig-row.on { background: var(--fg-accent-softer); }
.fg-mig-progress { margin-top: 14px; padding: 12px 16px; border: 1px solid #e5e7eb; border-radius: 10px; background: #f8fafc; font-size: 13px; color: #475569; }
.fg-mig-results > div { display: flex; gap: 10px; align-items: flex-start; padding: 10px 14px; border-radius: 10px; }
.fg-mig-results .ok { background: #ecfdf5; } .fg-mig-results .bad { background: #fef2f2; }
.fg-mig-results svg { margin-top: 3px; }
.fg-mig-actions { margin-top: 16px; }
.fg-fs-help.fg-fs-warn { color: #b45309; }
