/**
 * Flexus Website Builder —  admin shell
 */
.fxwb {
  --fxwb-canvas: #f6f5f4;
  --fxwb-card: #ffffff;
  --fxwb-ink: #191918;
  --fxwb-muted: #787774;
  --fxwb-border: rgba(0,0,0,.08);
  --fxwb-blue: #0075de;
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  color: var(--fxwb-ink);
  margin: -12px -24px 0;
  min-height: calc(100vh - 80px);
  background: var(--fxwb-canvas);
}
.fxwb * { box-sizing: border-box; }
.fxwb__shell {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  min-height: calc(100vh - 80px);
}
.fxwb__side {
  border-right: 1px solid var(--fxwb-border);
  background: var(--fxwb-card);
  padding: 20px 12px;
  position: sticky;
  top: 0;
  align-self: start;
  min-height: calc(100vh - 80px);
}
.fxwb__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 10px 18px;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: -.02em;
}
.fxwb__brand-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--fxwb-blue);
}
.fxwb__nav { display: flex; flex-direction: column; gap: 2px; }
.fxwb__nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 8px;
  color: #615d59;
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  transition: background .12s ease, color .12s ease;
}
.fxwb__nav a:hover { background: #f6f5f4; color: var(--fxwb-ink); }
.fxwb__nav a.is-active {
  background: #e6f3fe;
  color: var(--fxwb-blue);
}
.fxwb__nav i { width: 16px; text-align: center; font-size: 13px; opacity: .85; }
.fxwb__nav-label {
  margin: 16px 12px 6px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--fxwb-muted);
}
.fxwb__main { padding: 28px 32px 48px; max-width: 1120px; }
.fxwb__head { margin-bottom: 24px; }
.fxwb__kicker {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--fxwb-blue);
  margin: 0 0 6px;
}
.fxwb__title {
  margin: 0 0 6px;
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -.03em;
  line-height: 1.15;
}
.fxwb__lead { margin: 0; color: var(--fxwb-muted); font-size: 14px; line-height: 1.5; max-width: 56ch; }
.fxwb__card {
  background: var(--fxwb-card);
  border: 1px solid var(--fxwb-border);
  border-radius: 14px;
  padding: 20px;
  margin-bottom: 16px;
  box-shadow: 0 1px 2px rgba(15,23,42,.04);
}
.fxwb__card h3 {
  margin: 0 0 14px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -.01em;
}
.fxwb__ok {
  background: #dcfce7;
  color: #166534;
  border: 1px solid #86efac;
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 13px;
  margin-bottom: 16px;
}
.fxwb__soon {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  background: #f6f5f4;
  border: 1px solid var(--fxwb-border);
  font-size: 11px;
  font-weight: 600;
  color: var(--fxwb-muted);
}
.fxwb__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 0;
  border-radius: 8px;
  padding: 9px 16px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  font-family: inherit;
}
.fxwb__btn--primary { background: var(--fxwb-blue); color: #fff; }
.fxwb__btn--ghost { background: #fff; color: var(--fxwb-ink); border: 1px solid var(--fxwb-border); }
.fxwb__btn--danger { background: #fff; color: #b91c1c; border: 1px solid #fecaca; }
.fxwb__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }

/* Color presets grid */
.fxwb-presets {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
@media (max-width: 1100px) { .fxwb-presets { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 800px) { .fxwb__shell { grid-template-columns: 1fr; } .fxwb-presets { grid-template-columns: repeat(2, 1fr); } }
.fxwb-preset {
  position: relative;
  border: 1px solid var(--fxwb-border);
  border-radius: 12px;
  background: #fff;
  padding: 14px;
  cursor: pointer;
  text-align: left;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.fxwb-preset:hover { border-color: rgba(0,0,0,.18); box-shadow: 0 4px 14px rgba(15,23,42,.06); }
.fxwb-preset.is-active {
  border-color: var(--fxwb-blue);
  box-shadow: 0 0 0 1px var(--fxwb-blue);
}
.fxwb-preset__swatches {
  display: flex;
  justify-content: flex-end;
  gap: 0;
  margin-bottom: 28px;
}
.fxwb-preset__swatch {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid #fff;
  margin-left: -6px;
  box-shadow: 0 0 0 1px rgba(0,0,0,.06);
}
.fxwb-preset__name {
  font-size: 13px;
  font-weight: 600;
  color: var(--fxwb-ink);
}
.fxwb-preset input { position: absolute; opacity: 0; pointer-events: none; }

/* Visual themes tab */
.fxwb-themes .fxwb-theme {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  min-height: 148px;
  text-align: left;
}
.fxwb-theme__tagline {
  font-size: 12px;
  line-height: 1.45;
  color: var(--fxwb-muted);
  font-weight: 400;
}
.fxwb-theme.is-soon {
  opacity: .72;
  cursor: not-allowed;
}
.fxwb-theme-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 20px;
  margin: 0;
}
.fxwb-theme-meta div {
  display: grid;
  gap: 4px;
}
.fxwb-theme-meta dt {
  margin: 0;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--fxwb-muted);
}
.fxwb-theme-meta dd {
  margin: 0;
  font-size: 13px;
}
.fxwb-theme-surfaces {
  margin-bottom: 18px;
}
.fxwb-theme-surfaces h4 {
  margin: 0 0 8px;
  font-size: 14px;
  font-weight: 600;
}
.fxwb-theme-surfaces__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.fxwb-theme-surfaces__list li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  background: #faf9f7;
  border: 1px solid var(--fxwb-border);
  font-size: 12px;
  color: #615d59;
}
.fxwb-theme-surfaces__list i {
  font-size: 10px;
  color: #16a34a;
}

/* Token editor */
.fxwb-tokens { display: grid; gap: 14px; }
.fxwb-token-group {
  border: 1px solid var(--fxwb-border);
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
}
.fxwb-token-group__head {
  padding: 12px 16px;
  background: #faf9f7;
  border-bottom: 1px solid var(--fxwb-border);
  font-size: 13px;
  font-weight: 600;
}
.fxwb-token-row {
  display: grid;
  grid-template-columns: 1fr 180px;
  gap: 12px;
  align-items: center;
  padding: 12px 16px;
  border-bottom: 1px solid var(--fxwb-border);
}
.fxwb-token-row:last-child { border-bottom: 0; }
.fxwb-token-row label { font-size: 13px; font-weight: 500; margin: 0; }
.fxwb-token-row input[type=color] {
  width: 100%;
  height: 36px;
  border: 1px solid var(--fxwb-border);
  border-radius: 8px;
  padding: 2px;
  cursor: pointer;
  background: #fff;
}
.fxwb-token-row select {
  width: 100%;
  border: 1px solid var(--fxwb-border);
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 13px;
  background: #fff;
}
.fxwb-preview {
  border: 1px solid var(--fxwb-border);
  border-radius: 12px;
  overflow: hidden;
  margin-top: 16px;
}
.fxwb-preview__bar {
  display: flex;
  gap: 8px;
  padding: 12px 16px;
  background: var(--preview-canvas, #f6f5f4);
  border-bottom: 1px solid var(--fxwb-border);
}
.fxwb-preview__chip {
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 500;
}
.fxwb-preview__chip--primary {
  background: var(--preview-primary, #0075de);
  color: #fff;
}
.fxwb-preview__chip--card {
  background: var(--preview-card, #fff);
  border: 1px solid var(--fxwb-border);
  color: var(--preview-text, #191918);
}
.fxwb-preview__body {
  padding: 16px;
  background: var(--preview-card, #fff);
  color: var(--preview-text, #191918);
  font-size: 14px;
}

/* ---- Live preview stage ---- */
.fxwb-live {
  position: sticky;
  top: 8px;
  z-index: 30;
  /* Don't block clicks on presets/fonts scrolling underneath */
  pointer-events: none;
}
.fxwb-live__head,
.fxwb-live__actions,
.fxwb-live__actions * {
  pointer-events: auto;
}
.fxwb-live__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}
.fxwb-live__actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  padding: 8px 10px;
  border-radius: 12px;
  border: 1px solid rgba(0, 117, 222, .28);
  background: #f0f7ff;
}
.fxwb-live__actions[hidden] { display: none !important; }
.fxwb-live__pending {
  font-size: 12px;
  font-weight: 700;
  color: var(--fxwb-ink);
  margin-right: 4px;
  max-width: 180px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.fxwb-stage {
  border: 1px solid var(--fxwb-border);
  border-radius: 14px;
  overflow: hidden;
  background: var(--preview-canvas, #f6f5f4);
  font-family: var(--preview-font, ui-sans-serif, system-ui, sans-serif);
  color: var(--preview-text, #191918);
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.02);
}
.fxwb-stage__nav {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  background: var(--preview-card, #fff);
  border-bottom: 1px solid rgba(0,0,0,.08);
}
.fxwb-stage__logo {
  font-weight: 700;
  font-size: 14px;
  margin-right: auto;
}
.fxwb-stage__link {
  font-size: 13px;
  opacity: .72;
}
.fxwb-stage__cta {
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--preview-primary, #0075de);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
}
.fxwb-stage__body {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 14px;
  padding: 18px;
}
@media (max-width: 900px) {
  .fxwb-stage__body { grid-template-columns: 1fr; }
  .fxwb-live__head { flex-direction: column; }
}
.fxwb-stage__hero { min-width: 0; }
.fxwb-stage__kicker {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--preview-primary, #0075de);
  margin-bottom: 6px;
}
.fxwb-stage__title {
  font-size: 22px;
  font-weight: 650;
  letter-spacing: -.02em;
  line-height: 1.25;
  margin-bottom: 8px;
}
.fxwb-stage__sub {
  font-size: 13px;
  line-height: 1.5;
  opacity: .78;
  margin-bottom: 14px;
  max-width: 42ch;
}
.fxwb-stage__row { display: flex; flex-wrap: wrap; gap: 8px; }
.fxwb-stage__btn {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--preview-primary, #0075de);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
}
.fxwb-stage__ghost {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--preview-card, #fff);
  border: 1px solid rgba(0,0,0,.12);
  color: var(--preview-text, #191918);
  font-size: 13px;
  font-weight: 600;
}
.fxwb-stage__card {
  background: var(--preview-card, #fff);
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 8px 24px rgba(15,23,42,.06);
}
.fxwb-stage__card-title {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 6px;
}
.fxwb-stage__card-body {
  font-size: 13px;
  line-height: 1.5;
  opacity: .78;
  margin-bottom: 14px;
}
.fxwb-stage__swatches { display: flex; }
.fxwb-stage__swatches span {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid var(--preview-card, #fff);
  margin-left: -6px;
  box-shadow: 0 0 0 1px rgba(0,0,0,.08);
}
.fxwb-stage__swatches span:first-child { margin-left: 0; }
.fxwb-preset.is-previewing,
.fxwb-font.is-previewing {
  border-color: #f59e0b;
  box-shadow: 0 0 0 1px #f59e0b;
}
.fxwb__hint {
  margin: 0 0 14px;
  font-size: 13px;
  color: #787774;
}
.fxwb-section-label {
  margin: 18px 0 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #787774;
}
.fxwb-section-label span { font-weight: 500; opacity: .7; }

/* ---- Font gallery ---- */
.fxwb-font-slots {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 0 0 18px;
}
@media (max-width: 900px) { .fxwb-font-slots { grid-template-columns: 1fr; } }
.fxwb-font-slot {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  text-align: left;
  border: 1px solid var(--fxwb-border);
  border-radius: 12px;
  background: #faf9f7;
  padding: 14px;
  cursor: pointer;
  transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
  min-width: 0;
  user-select: none;
}
.fxwb-font-slot:hover { border-color: rgba(0,0,0,.18); background: #fff; }
.fxwb-font-slot.is-active {
  background: #fff;
  border-color: var(--fxwb-blue);
  box-shadow: 0 0 0 1px var(--fxwb-blue);
}
.fxwb-font-slot:focus-visible {
  outline: 2px solid var(--fxwb-blue);
  outline-offset: 2px;
}
.fxwb-font-slot__role {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--fxwb-muted);
  font-family: ui-sans-serif, system-ui, sans-serif;
}
.fxwb-font-slot__where {
  font-size: 12px;
  color: var(--fxwb-muted);
  line-height: 1.35;
  font-family: ui-sans-serif, system-ui, sans-serif;
}
.fxwb-font-slot__name {
  margin-top: 6px;
  font-size: 16px;
  font-weight: 700;
  color: var(--fxwb-ink);
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.fxwb-font-slot__sample {
  font-size: 14px;
  color: #444;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.fxwb-font-slot__weights {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  margin-top: 10px;
  width: 100%;
}
.fxwb-font-slot__weights-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--fxwb-muted);
  margin-right: 2px;
  font-family: ui-sans-serif, system-ui, sans-serif;
}
.fxwb-font-weight {
  border: 1px solid var(--fxwb-border);
  background: #fff;
  border-radius: 6px;
  padding: 3px 7px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  color: #615d59;
  font-family: ui-sans-serif, system-ui, sans-serif;
}
.fxwb-font-weight.is-active {
  background: #191918;
  border-color: #191918;
  color: #fff;
}
.fxwb-font-weight.is-bold.is-active {
  background: var(--fxwb-blue);
  border-color: var(--fxwb-blue);
}
.fxwb-font-catalog-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 0 0 10px;
}
.fxwb-font-catalog-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--fxwb-ink);
}
.fxwb-font-catalog-title span {
  font-weight: 500;
  color: var(--fxwb-muted);
}
.fxwb-font-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.fxwb-font-tab {
  border: 1px solid var(--fxwb-border);
  background: #fff;
  border-radius: 999px;
  padding: 7px 14px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  color: var(--fxwb-ink);
}
.fxwb-font-tab em {
  font-style: normal;
  font-weight: 500;
  opacity: .55;
  margin-left: 4px;
}
.fxwb-font-tab.is-active {
  background: var(--fxwb-blue);
  border-color: var(--fxwb-blue);
  color: #fff;
}
.fxwb-font-role-filter {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin: 0 0 12px;
}
.fxwb-font-role-filter__label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--fxwb-muted);
  margin-right: 4px;
}
.fxwb-font-role-filter button {
  border: 0;
  background: #f3f2f0;
  border-radius: 8px;
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  color: #615d59;
}
.fxwb-font-role-filter button.is-active {
  background: #191918;
  color: #fff;
}
.fxwb-fonts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  max-height: 480px;
  overflow: auto;
  padding: 2px;
  align-content: start;
}
.fxwb-fonts[hidden] { display: none !important; }
.fxwb-fonts__banner {
  grid-column: 1 / -1;
  font-size: 12px;
  color: var(--fxwb-muted);
  padding: 4px 2px 2px;
}
.fxwb-font[hidden] { display: none !important; }
@media (max-width: 1100px) { .fxwb-fonts { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 700px) { .fxwb-fonts { grid-template-columns: 1fr; } }
.fxwb-font {
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-align: left;
  border: 1px solid var(--fxwb-border);
  border-radius: 12px;
  background: #fff;
  padding: 14px;
  cursor: pointer;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.fxwb-font:hover { border-color: rgba(0,0,0,.18); }
.fxwb-font.is-active {
  border-color: var(--fxwb-blue);
  box-shadow: 0 0 0 1px var(--fxwb-blue);
}
.fxwb-font.is-previewing {
  border-color: #f59e0b;
  box-shadow: 0 0 0 1px #f59e0b;
}
.fxwb-font__meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}
.fxwb-font__meta b {
  font-size: 12px;
  font-weight: 700;
  font-family: ui-sans-serif, system-ui, sans-serif;
  color: var(--fxwb-ink);
}
.fxwb-font__meta i {
  font-style: normal;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--fxwb-muted);
  font-family: ui-sans-serif, system-ui, sans-serif;
}
.fxwb-font__sample {
  font-size: 18px;
  line-height: 1.35;
  color: #191918;
  letter-spacing: -.01em;
}

/* Pages grid */
.fxwb-pages-cat { margin-bottom: 28px; }
.fxwb-pages-cat__head { margin-bottom: 12px; }
.fxwb-pages-cat__head h3 { margin: 0 0 4px; font-size: 17px; font-weight: 600; }
.fxwb-pages-cat__head p { margin: 0; font-size: 13px; color: var(--fxwb-muted); }
.fxwb-pages-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
@media (max-width: 900px) { .fxwb-pages-grid { grid-template-columns: 1fr 1fr; } }
.fxwb-page-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px;
  border: 1px solid var(--fxwb-border);
  border-radius: 12px;
  background: #fff;
  text-decoration: none;
  color: inherit;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.fxwb-page-card:hover {
  border-color: rgba(0,0,0,.16);
  box-shadow: 0 4px 14px rgba(15,23,42,.06);
}
.fxwb-page-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.fxwb-page-card__icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: #e6f3fe;
  color: var(--fxwb-blue);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
}
.fxwb-page-card h4 { margin: 0; font-size: 14px; font-weight: 600; }
.fxwb-page-card p { margin: 0; font-size: 12px; color: var(--fxwb-muted); line-height: 1.45; }
.fxwb-page-card__meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: auto;
  padding-top: 8px;
}
.fxwb-tag {
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 999px;
  background: #f6f5f4;
  color: #615d59;
}
.fxwb-tag--blue { background: #e6f3fe; color: var(--fxwb-blue); }
.fxwb-tag--soon { background: #fef3c7; color: #92400e; }

/* Legacy field forms inside builder */
.fxwb .fxa-row { margin-bottom: 14px; }
.fxwb .fxa-row label { display: block; font-size: 12px; font-weight: 600; margin: 0 0 4px; }
.fxwb .fxa-help { font-size: 11.5px; color: var(--fxwb-muted); margin: 3px 0 0; }
.fxwb input[type=text], .fxwb textarea {
  width: 100%;
  border: 1px solid rgba(0,0,0,.14);
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 13px;
  font-family: Inter, sans-serif;
}
.fxwb textarea { min-height: 90px; font-family: ui-monospace, Menlo, monospace; font-size: 12px; }
.fxwb .fxa-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

/* Section builder */
.fxwb-builder-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
  padding: 14px 16px;
  background: #fff;
  border: 1px solid var(--fxwb-border);
  border-radius: 12px;
}
.fxwb-builder-bar__left, .fxwb-builder-bar__right { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.fxwb-builder__list { display: flex; flex-direction: column; gap: 10px; }
.fxwb-section {
  background: #fff;
  border: 1px solid var(--fxwb-border);
  border-radius: 12px;
  overflow: hidden;
  transition: opacity .15s ease, box-shadow .15s ease;
}
.fxwb-section.is-dragging { opacity: .55; box-shadow: 0 8px 24px rgba(15,23,42,.12); }
.fxwb-section.is-disabled { opacity: .62; }
.fxwb-section.is-collapsed .fxwb-section__body { display: none; }
.fxwb-section__head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  background: #faf9f7;
  border-bottom: 1px solid var(--fxwb-border);
}
.fxwb-section__drag {
  border: 0;
  background: transparent;
  color: #a5a29e;
  cursor: grab;
  padding: 4px;
}
.fxwb-section__toggle { flex: 1; margin: 0; font-size: 13px; font-weight: 600; }
.fxwb-section__toggle input { margin-right: 8px; }
.fxwb-section__collapse {
  border: 0;
  background: transparent;
  color: #787774;
  cursor: pointer;
  padding: 4px 8px;
}
.fxwb-section__body { padding: 16px; }
.fxwb-image-field { display: flex; gap: 8px; }
.fxwb-image-field input { flex: 1; }

/* Image picker modal */
.fxwb-picker[hidden] { display: none !important; }
.fxwb-picker {
  position: fixed;
  inset: 0;
  background: rgba(15,23,42,.35);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.fxwb-picker__dialog {
  width: min(560px, 100%);
  background: #fff;
  border-radius: 14px;
  border: 1px solid var(--fxwb-border);
  box-shadow: 0 20px 50px rgba(15,23,42,.18);
  overflow: hidden;
}
.fxwb-picker__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid var(--fxwb-border);
}
.fxwb-picker__head h3 { margin: 0; font-size: 15px; }
.fxwb-picker__head button { border: 0; background: transparent; font-size: 22px; cursor: pointer; }
.fxwb-picker__tabs { display: flex; gap: 4px; padding: 10px 12px; border-bottom: 1px solid var(--fxwb-border); }
.fxwb-picker__tabs button {
  border: 0;
  background: #f6f5f4;
  border-radius: 8px;
  padding: 7px 12px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}
.fxwb-picker__tabs button.is-active { background: #e6f3fe; color: var(--fxwb-blue); }
.fxwb-picker__panel { display: none; padding: 16px; }
.fxwb-picker__panel.is-active { display: block; }
.fxwb-picker__panel input[type=text], .fxwb-picker__panel input[type=file] { width: 100%; margin-bottom: 10px; }
.fxwb-picker__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  max-height: 240px;
  overflow: auto;
}
.fxwb-picker__thumb {
  border: 1px solid var(--fxwb-border);
  border-radius: 8px;
  padding: 0;
  overflow: hidden;
  cursor: pointer;
  background: #fff;
}
.fxwb-picker__thumb img { width: 100%; height: 72px; object-fit: cover; display: block; }

/* Gallery grid */
.fxwb-gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
@media (max-width: 900px) { .fxwb-gallery-grid { grid-template-columns: repeat(2, 1fr); } }
.fxwb-gallery-item {
  background: #fff;
  border: 1px solid var(--fxwb-border);
  border-radius: 12px;
  overflow: hidden;
}
.fxwb-gallery-item img { width: 100%; height: 120px; object-fit: cover; display: block; }
.fxwb-gallery-item__meta {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 10px;
  font-size: 11px;
  color: #787774;
}
.fxwb-gallery-item__meta span { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fxwb-gallery-item__copy, .fxwb-gallery-item__del {
  border: 0;
  background: #f6f5f4;
  border-radius: 6px;
  padding: 4px 8px;
  cursor: pointer;
  color: #615d59;
}
.fxwb-gallery-item__del { color: #b91c1c; }

/* Menus table */
.fxwb-menu-table table { width: 100%; border-collapse: collapse; font-size: 12px; }
.fxwb-menu-table th, .fxwb-menu-table td { padding: 8px 6px; border-bottom: 1px solid var(--fxwb-border); text-align: left; }
.fxwb-menu-table input[type=text] { width: 100%; font-size: 12px; padding: 6px 8px; }

/* Plugins */
.fxwb-plugins-list { display: flex; flex-direction: column; gap: 12px; margin-top: 12px; }
.fxwb-plugin-card { display: block; }
.fxwb-plugin-card.is-off { opacity: 0.72; }
.fxwb-plugin-card__row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  flex-wrap: wrap;
}
.fxwb-plugin-card__info { min-width: 0; flex: 1 1 220px; }
.fxwb-plugin-card__title {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 4px;
}
.fxwb-plugin-card__title h3 { margin: 0; font-size: 14px; }
.fxwb-plugin-card__desc {
  margin: 0 0 6px;
  font-size: 13px;
  color: #615d59;
  line-height: 1.5;
}
.fxwb-plugin-card__meta {
  margin: 0;
  font-size: 12px;
  color: #787774;
}
.fxwb-plugin-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.fxwb-plugin-del { flex-shrink: 0; }
.fxwb__btn--danger { background: #fef2f2; color: #b91c1c; border: 1px solid #fecaca; }
.fxwb__btn--danger:hover { background: #fee2e2; }

/* License activation accordion */
.fxwb-lic-acc__lead {
  margin: 0 0 16px;
  font-size: 13px;
  line-height: 1.6;
  color: #615d59;
  max-width: 58ch;
}
.fxwb-lic-acc {
  border: 1px solid var(--fxwb-border);
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
}
.fxwb-lic-acc__trigger {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 14px 16px;
  border: 0;
  border-bottom: 1px solid var(--fxwb-border);
  background: #fff;
  color: var(--fxwb-ink);
  font-size: 13px;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition: background .12s ease;
}
.fxwb-lic-acc__trigger:last-of-type { border-bottom: 0; }
.fxwb-lic-acc__trigger:hover { background: #faf9f7; }
.fxwb-lic-acc__trigger.is-open {
  background: #f6f5f4;
  border-bottom-color: var(--fxwb-border);
}
.fxwb-lic-acc__radio {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid #c4c0ba;
  flex-shrink: 0;
  position: relative;
}
.fxwb-lic-acc__trigger.is-open .fxwb-lic-acc__radio {
  border-color: var(--fxwb-blue);
}
.fxwb-lic-acc__trigger.is-open .fxwb-lic-acc__radio::after {
  content: '';
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  background: var(--fxwb-blue);
}
.fxwb-lic-acc__trigger-label {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  min-width: 0;
}
.fxwb-lic-acc__trigger-label i {
  width: 16px;
  text-align: center;
  color: var(--fxwb-muted);
}
.fxwb-lic-acc__chevron {
  font-size: 11px;
  color: var(--fxwb-muted);
  transition: transform .15s ease;
}
.fxwb-lic-acc__trigger.is-open .fxwb-lic-acc__chevron { transform: rotate(180deg); }
.fxwb-lic-acc__panel {
  display: none;
  padding: 0 16px 18px 44px;
  border-bottom: 1px solid var(--fxwb-border);
  background: #faf9f7;
}
.fxwb-lic-acc__panel.is-open { display: block; }
.fxwb-lic-acc__panel:last-child { border-bottom: 0; }
.fxwb-lic-acc__body {
  margin: 0 0 14px;
  font-size: 13px;
  line-height: 1.65;
  color: #615d59;
  max-width: 62ch;
}
.fxwb-lic-acc__field label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 6px;
}
.fxwb-lic-acc__field { margin-bottom: 12px; max-width: 420px; }
.fxwb-lic-acc__note {
  margin: 8px 0 0;
  font-size: 12px;
  line-height: 1.55;
  color: #787774;
}
.fxwb-lic-acc__support { margin: 0 0 14px; }
.fxwb-lic-acc__form {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: flex-end;
}
