:root {
  --bg: #f1f5f9;
  --surface: #ffffff;
  --border: #e2e8f0;
  --text: #0f172a;
  --muted: #64748b;
  --primary: #15803d;
  --primary-hover: #166534;
  --accent-bg: #f0fdf4;
  --danger: #dc2626;
  --warn: #d97706;
  --radius: 10px;
}

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

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.45;
  font-size: 14px;
}

[hidden] {
  display: none !important;
}

/* Login Screen */
.auth-screen {
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.auth-card {
  width: 100%;
  max-width: 400px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 28px;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.06);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.auth-badge {
  align-self: flex-start;
  background: var(--accent-bg);
  color: var(--primary);
  font-size: 11px;
  font-weight: 800;
  padding: 4px 9px;
  border-radius: 99px;
}

.auth-card h1 {
  font-size: 1.35rem;
  font-weight: 800;
}

.auth-card p {
  color: var(--muted);
  font-size: 0.9rem;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 8px;
}

.auth-form label {
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-weight: 600;
  font-size: 0.85rem;
}

.auth-form input,
.filter-group select,
.filter-group input {
  height: 38px;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font: inherit;
  background: #fff;
  color: var(--text);
}

.auth-error {
  background: #fef2f2;
  color: var(--danger);
  border: 1px solid #fecaca;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 0.85rem;
}

/* Buttons */
.btn-primary,
.btn-secondary,
.btn-ghost {
  height: 38px;
  padding: 0 16px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.86rem;
  cursor: pointer;
  border: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
}

.btn-primary:hover {
  background: var(--primary-hover);
}

.btn-secondary {
  background: #fff;
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-ghost {
  background: transparent;
  color: var(--muted);
}

/* Topbar */
.topbar {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

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

.brand-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--primary);
}

.topbar-brand strong {
  display: block;
  font-size: 1rem;
}

.topbar-brand small {
  color: var(--muted);
  font-size: 0.78rem;
}

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

.user-pill {
  font-size: 0.8rem;
  color: var(--muted);
  background: var(--bg);
  padding: 5px 10px;
  border-radius: 99px;
}

/* Filters Bar */
.filters-bar {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 14px 24px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
  align-items: end;
}

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

.filter-group label {
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

/* Dashboard Content */
.dashboard-content {
  max-width: 1360px;
  margin: 0 auto;
  padding: 22px 24px 48px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.panel-section {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

.section-header h2 {
  font-size: 1rem;
  font-weight: 800;
}

.denom-note {
  font-size: 0.78rem;
  color: var(--muted);
}

/* KPI Grid */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}

.kpi-card {
  border: 1px solid var(--border);
  border-radius: 9px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: #fafafa;
}

.kpi-card-highlight {
  background: var(--accent-bg);
  border-color: #bbf7d0;
}

.kpi-title {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--muted);
}

.kpi-value {
  font-size: 1.7rem;
  font-weight: 900;
  color: var(--text);
}

.kpi-denom {
  font-size: 0.76rem;
  color: var(--muted);
}

/* Tables */
.table-wrap {
  width: 100%;
  overflow-x: auto;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}

.data-table th,
.data-table td {
  padding: 10px 12px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

.data-table th {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--muted);
  background: #f8fafc;
}

.empty-cell {
  text-align: center !important;
  color: var(--muted);
  padding: 20px !important;
}

.bar-inline-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.bar-inline-track {
  width: 72px;
  height: 7px;
  background: #e2e8f0;
  border-radius: 99px;
  overflow: hidden;
}

.bar-inline-fill {
  height: 100%;
  background: var(--primary);
  border-radius: 99px;
}

.badge-good {
  color: var(--primary);
  font-weight: 700;
}

.badge-warn {
  color: var(--warn);
  font-weight: 700;
}

.badge-danger {
  color: var(--danger);
  font-weight: 700;
}

.two-col-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(460px, 1fr));
  gap: 20px;
}

@media (max-width: 640px) {
  .two-col-grid {
    grid-template-columns: 1fr;
  }
}

/* Answers Distribution */
.answers-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.answer-step-group {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.answer-step-title {
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--text);
}

.answer-option-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.answer-option-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
}

/* Performance Cards */
.perf-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.perf-card {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.perf-label {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--muted);
}

.perf-value {
  font-size: 1.35rem;
  font-weight: 900;
}

.perf-card small {
  font-size: 0.74rem;
  color: var(--muted);
}

/* Bot Summary */
.bot-summary-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.bot-counter {
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.bot-counter span {
  font-size: 0.74rem;
  color: var(--muted);
}

.bot-counter strong {
  font-size: 1.2rem;
  font-weight: 800;
}

/* ==========================================================================
   CONSTRUTOR VISUAL DE FUNIS (CRUD)
   ========================================================================== */

.topbar-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--bg);
  padding: 4px;
  border-radius: 10px;
  border: 1px solid var(--border);
}

.nav-tab {
  height: 34px;
  padding: 0 14px;
  border-radius: 7px;
  border: none;
  background: transparent;
  color: var(--muted);
  font-weight: 700;
  font-size: 0.84rem;
  cursor: pointer;
  transition: all 0.12s ease;
}

.nav-tab:hover {
  color: var(--text);
}

.nav-tab.is-active {
  background: var(--surface);
  color: var(--primary);
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08);
}

.btn-xs {
  height: 28px !important;
  padding: 0 10px !important;
  font-size: 0.76rem !important;
  border-radius: 6px !important;
}

.btn-danger-xs {
  height: 28px;
  padding: 0 10px;
  font-size: 0.76rem;
  border-radius: 6px;
  border: 1px solid #fecaca;
  background: #fef2f2;
  color: var(--danger);
  font-weight: 700;
  cursor: pointer;
}

.btn-danger-xs:hover {
  background: #fee2e2;
}

.builder-editor-shell {
  display: flex;
  flex-direction: column;
  height: calc(100dvh - 67px);
  overflow: hidden;
}

.builder-toolbar {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 10px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-shrink: 0;
}

.builder-toolbar-left,
.builder-toolbar-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.builder-title-meta {
  display: flex;
  align-items: center;
  gap: 8px;
}

.builder-title-meta strong {
  font-size: 0.95rem;
}

.builder-title-meta code {
  background: var(--accent-bg);
  color: var(--primary);
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 700;
}

.save-status-pill {
  background: var(--accent-bg);
  color: var(--primary);
  border: 1px solid #bbf7d0;
  padding: 4px 10px;
  border-radius: 99px;
  font-size: 0.78rem;
  font-weight: 700;
}

.builder-three-cols {
  display: grid;
  grid-template-columns: 330px 1fr 390px;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

@media (max-width: 1200px) {
  .builder-editor-shell {
    height: auto;
    overflow: visible;
  }
  .builder-three-cols {
    grid-template-columns: 1fr;
    overflow: visible;
  }
}

.builder-col {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
  overflow: hidden;
  border-right: 1px solid var(--border);
  background: var(--surface);
}

.builder-col-right {
  border-right: none;
  background: #e2e8f0;
}

.builder-subtabs {
  display: flex;
  border-bottom: 1px solid var(--border);
  background: #f8fafc;
  flex-shrink: 0;
  overflow-x: auto;
}

.builder-subtab {
  flex: 1;
  padding: 10px 8px;
  border: none;
  border-bottom: 2px solid transparent;
  background: transparent;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--muted);
  cursor: pointer;
  white-space: nowrap;
}

.builder-subtab.is-active {
  color: var(--primary);
  border-bottom-color: var(--primary);
  background: var(--surface);
}

.builder-left-pane,
.builder-center-pane {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
}

.builder-pane-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  font-weight: 800;
  font-size: 0.84rem;
}

.builder-steps-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.step-list-item {
  border: 1px solid var(--border);
  border-radius: 9px;
  padding: 10px 12px;
  background: #fff;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: border-color 0.12s ease, background 0.12s ease;
}

.step-list-item:hover {
  border-color: #cbd5e1;
}

.step-list-item.is-selected {
  border-color: var(--primary);
  background: var(--accent-bg);
  box-shadow: 0 0 0 1px var(--primary);
}

.step-item-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

.step-item-badge {
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  padding: 2px 7px;
  border-radius: 99px;
  background: #e2e8f0;
  color: var(--text);
}

.step-item-title {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.step-item-actions {
  display: flex;
  align-items: center;
  gap: 4px;
}

.step-icon-btn {
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 5px;
  padding: 2px 6px;
  font-size: 0.72rem;
  cursor: pointer;
}

.step-icon-btn:hover {
  background: #f1f5f9;
}

/* Forms inside Builder */
.form-stack {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.form-row-3 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 10px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.form-field > span {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text);
}

.form-field input,
.form-field select,
.form-field textarea {
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: 7px;
  font: inherit;
  font-size: 0.84rem;
  color: var(--text);
  background: #fff;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: 2px solid var(--primary);
  border-color: transparent;
}

.code-textarea {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace !important;
  font-size: 0.8rem !important;
  background: #0f172a !important;
  color: #f8fafc !important;
  line-height: 1.45;
}

.form-checkbox {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.83rem;
  font-weight: 600;
  cursor: pointer;
}

.color-picker-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 6px 0;
  border-bottom: 1px solid #f1f5f9;
}

.color-picker-row > span {
  font-size: 0.8rem;
  font-weight: 600;
}

.color-input-pair {
  display: flex;
  align-items: center;
  gap: 6px;
}

.color-input-pair input[type="color"] {
  width: 32px;
  height: 30px;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 1px;
  background: #fff;
  cursor: pointer;
}

.color-input-pair input[type="text"] {
  width: 92px;
  height: 30px;
  padding: 0 8px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-family: monospace;
  font-size: 0.8rem;
}

.callout-box {
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: 9px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.callout-box strong {
  font-size: 0.85rem;
}

.callout-box p {
  font-size: 0.79rem;
  color: var(--muted);
}

.snippet-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}

.cards-stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.subcard-box {
  border: 1px solid var(--border);
  border-radius: 9px;
  padding: 12px;
  background: #fff;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.subcard-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  border-bottom: 1px solid #f1f5f9;
  padding-bottom: 8px;
}

.builder-divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 8px 0;
}

/* Mobile Preview Column */
.preview-header {
  padding: 10px 14px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 800;
  font-size: 0.82rem;
}

.phone-mockup-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  overflow: auto;
}

.phone-mockup-frame {
  width: 345px;
  height: 680px;
  background: #fff;
  border: 10px solid #1e293b;
  border-radius: 34px;
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.18);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.phone-mockup-frame iframe {
  width: 100%;
  height: 100%;
  border: none;
  background: #fff;
}

/* ==========================================================================
   RICH TEXT EDITOR VISUAL (2+ CORES NA HEADLINE / SUBHEADLINE) & UX LEIGO
   ========================================================================== */

.rich-field-wrap {
  border: 1px solid var(--border);
  border-radius: 9px;
  background: #fff;
  overflow: hidden;
  transition: box-shadow 0.12s ease, border-color 0.12s ease;
}

.rich-field-wrap:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(21, 128, 61, 0.15);
}

.rich-toolbar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px;
  padding: 6px 10px;
  background: #f8fafc;
  border-bottom: 1px solid var(--border);
}

.rich-toolbar-hint {
  font-size: 0.72rem;
  color: var(--muted);
  margin-right: 4px;
  font-weight: 600;
}

.rich-btn {
  height: 26px;
  min-width: 26px;
  padding: 0 7px;
  border: 1px solid var(--border);
  border-radius: 5px;
  background: #fff;
  color: var(--text);
  font-size: 0.75rem;
  font-weight: 800;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.rich-btn:hover {
  background: #f1f5f9;
}

.rich-color-swatch {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid #fff;
  box-shadow: 0 0 0 1px #cbd5e1;
  cursor: pointer;
  padding: 0;
  transition: transform 0.1s ease;
}

.rich-color-swatch:hover {
  transform: scale(1.14);
}

.rich-custom-color-label {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 5px;
  padding: 2px 6px;
  cursor: pointer;
}

.rich-custom-color-label input[type="color"] {
  width: 18px;
  height: 18px;
  border: none;
  padding: 0;
  background: transparent;
  cursor: pointer;
}

.rich-editor-box {
  padding: 10px 12px;
  min-height: 44px;
  outline: none;
  font-size: 0.96rem;
  font-weight: 800;
  line-height: 1.35;
  color: var(--text);
  cursor: text;
}

.rich-editor-box.is-subheadline {
  font-size: 0.86rem;
  font-weight: 500;
  min-height: 38px;
}

.rich-editor-box.is-card {
  font-size: 0.95rem;
  font-weight: 400;
  min-height: 44px;
}

.rich-editor-box b,
.rich-editor-box strong {
  font-weight: 700;
}

.rich-editor-box i,
.rich-editor-box em {
  font-style: italic;
}

.rich-editor-box u {
  text-decoration: underline;
}

.bullet-item-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.bullet-item-row input {
  flex: 1;
}

.advanced-details {
  border: 1px dashed var(--border);
  border-radius: 8px;
  padding: 8px 12px;
  background: #fafafa;
  font-size: 0.78rem;
}

.advanced-details summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--muted);
  user-select: none;
}

.advanced-details[open] summary {
  margin-bottom: 10px;
}

/* ==========================================================================
   ARQUITETURA DE BLOCOS VISUAIS EMPILHÁVEIS (DRAG & DROP) & ABAS DE VERSÃO A/B
   ========================================================================== */

.ab-version-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  padding: 10px 12px;
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: 10px;
}

.ab-version-tabs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.ab-version-pill {
  height: 30px;
  padding: 0 12px;
  border-radius: 99px;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text);
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.ab-version-pill:hover {
  border-color: #94a3b8;
}

.ab-version-pill.is-active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.ab-version-add-btn {
  height: 30px;
  padding: 0 12px;
  border-radius: 99px;
  border: 1px dashed var(--primary);
  background: var(--accent-bg);
  color: var(--primary);
  font-size: 0.76rem;
  font-weight: 800;
  cursor: pointer;
}

.ab-version-add-btn:hover {
  background: #dcfce7;
}

.blocks-canvas-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.visual-block-card {
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fff;
  overflow: hidden;
  transition: border-color 0.12s ease, box-shadow 0.12s ease;
}

.visual-block-card.is-open {
  border-color: var(--primary);
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.06);
}

.visual-block-card.is-dragging {
  opacity: 0.45;
  border-style: dashed;
}

.visual-block-card.is-drag-over {
  border-top: 3px solid var(--primary);
}

.visual-block-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  background: #f8fafc;
  cursor: pointer;
  user-select: none;
}

.visual-block-card.is-open .visual-block-header {
  background: var(--accent-bg);
  border-bottom: 1px solid #bbf7d0;
}

.visual-block-header-left {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  flex: 1;
}

.drag-handle {
  cursor: grab;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1;
  padding: 2px 4px;
}

.block-type-tag {
  font-size: 0.72rem;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 6px;
  background: #e2e8f0;
  color: var(--text);
  white-space: nowrap;
}

.block-summary-preview {
  font-size: 0.8rem;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.visual-block-body {
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.add-block-palette {
  border: 2px dashed #cbd5e1;
  border-radius: 12px;
  padding: 14px;
  background: #f8fafc;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.add-block-palette-title {
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

.palette-block-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  color: var(--text);
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  text-align: left;
  transition: border-color 0.12s ease, transform 0.08s ease, background 0.12s ease;
}

.palette-block-btn:hover {
  border-color: var(--primary);
  background: var(--accent-bg);
  transform: translateY(-1px);
}




