/* hub-beer-library.css — Scoped Beer Library Homepage Styles for Cellador Operations Hub */

#view-beer-library {
  overflow-y: auto;
  height: 100%;
  background: #f8f9fa;
  color: #1a1a1a;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 13.5px;
}

#view-beer-library * {
  box-sizing: border-box;
}

/* ───────────────────────────────────────────────────────────────────────────
   Top Action Bar
   ─────────────────────────────────────────────────────────────────────────── */
#view-beer-library .bl-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 28px;
  background: #231f20;
  border-bottom: 2px solid #b38b47;
  position: sticky;
  top: 0;
  z-index: 40;
  flex-wrap: wrap;
  gap: 14px;
}

#view-beer-library .bl-topbar-left {
  display: flex;
  align-items: center;
  gap: 18px;
}

#view-beer-library .bl-title-wrap {
  display: flex;
  flex-direction: column;
}

#view-beer-library .bl-title {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 9px;
}

#view-beer-library .bl-tag {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  padding: 2px 7px;
  background: rgba(179, 139, 71, 0.25);
  color: #e6c587;
  border: 1px solid rgba(179, 139, 71, 0.45);
  border-radius: 4px;
}

#view-beer-library .bl-subtitle {
  font-size: 12px;
  color: #9da0ac;
  margin-top: 2px;
}

#view-beer-library .bl-topbar-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

#view-beer-library .bl-live-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: #18191c;
  border: 1px solid #32343a;
  border-radius: 20px;
  padding: 5px 12px;
  font-size: 12px;
  font-weight: 500;
  color: #d1d5db;
}

#view-beer-library .bl-live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 6px #10b981;
  animation: bl-pulse 2s infinite ease-in-out;
}

@keyframes bl-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

/* Topbar Actions & Sync Dropdown */
#view-beer-library .bl-dropdown-wrap {
  position: relative;
  display: inline-block;
}

#view-beer-library .bl-dropdown-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  width: 310px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.15), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
  z-index: 100;
  padding: 6px 0;
  animation: bl-dropdown-fade 0.15s ease-out;
}

@keyframes bl-dropdown-fade {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

#view-beer-library .bl-dropdown-section-title {
  font-size: 10.5px;
  font-weight: 700;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 8px 14px 4px 14px;
}

#view-beer-library .bl-dropdown-item {
  width: 100%;
  display: block;
  text-align: left;
  background: transparent;
  border: none;
  padding: 8px 14px;
  cursor: pointer;
  transition: background 0.12s ease;
  font-family: inherit;
}

#view-beer-library .bl-dropdown-item:hover {
  background: #f1f5f9;
}

#view-beer-library .bl-dd-item-title {
  font-size: 13px;
  font-weight: 600;
  color: #1e293b;
  display: flex;
  align-items: center;
  gap: 6px;
}

#view-beer-library .bl-dd-item-desc {
  font-size: 11px;
  color: #64748b;
  margin-top: 2px;
  line-height: 1.3;
}

#view-beer-library .bl-dropdown-divider {
  height: 1px;
  background: #f1f5f9;
  margin: 6px 0;
}

/* Buttons */
.bl-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 6px;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid #3a3b42;
  background: #2b2c32;
  color: #ffffff;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.bl-btn:hover {
  background: #383941;
  border-color: #4f505a;
}

.bl-btn-primary {
  background: #b38b47;
  border-color: #b38b47;
  color: #ffffff;
}

.bl-btn-primary:hover {
  background: #c79c54;
  border-color: #c79c54;
}

.bl-btn-danger {
  background: rgba(239, 68, 68, 0.15);
  border-color: rgba(239, 68, 68, 0.4);
  color: #f87171;
}

.bl-btn-danger:hover {
  background: rgba(239, 68, 68, 0.25);
  border-color: #ef4444;
}

.bl-btn-small {
  padding: 4px 9px;
  font-size: 11.5px;
  border-radius: 4px;
}

/* ───────────────────────────────────────────────────────────────────────────
   Filter & Search Bar
   ─────────────────────────────────────────────────────────────────────────── */
#view-beer-library .bl-filterbar {
  background: #ffffff;
  border-bottom: 1px solid #e5e7eb;
  padding: 14px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

#view-beer-library .bl-search-wrap {
  position: relative;
  flex: 1;
  min-width: 260px;
  max-width: 440px;
}

#view-beer-library .bl-search-icon {
  position: absolute;
  left: 11px;
  top: 50%;
  transform: translateY(-50%);
  color: #9ca3af;
  pointer-events: none;
}

#view-beer-library .bl-search-input {
  width: 100%;
  padding: 8px 12px 8px 34px;
  border-radius: 6px;
  border: 1px solid #d1d5db;
  font-size: 13px;
  outline: none;
  background: #f9fafb;
  transition: all 0.15s ease;
}

#view-beer-library .bl-search-input:focus {
  background: #ffffff;
  border-color: #b38b47;
  box-shadow: 0 0 0 3px rgba(179, 139, 71, 0.12);
}

#view-beer-library .bl-filter-group {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

#view-beer-library .bl-status-pills {
  display: flex;
  background: #f3f4f6;
  border-radius: 6px;
  padding: 3px;
  gap: 2px;
}

#view-beer-library .bl-status-pill-btn {
  background: transparent;
  border: none;
  color: #4b5563;
  padding: 5px 12px;
  font-size: 12px;
  font-weight: 600;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.12s ease;
  display: flex;
  align-items: center;
  gap: 5px;
}

#view-beer-library .bl-status-pill-btn:hover {
  color: #111827;
}

#view-beer-library .bl-status-pill-btn.active {
  background: #ffffff;
  color: #111827;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
}

#view-beer-library .bl-sort-select {
  padding: 6px 10px;
  border-radius: 6px;
  border: 1px solid #d1d5db;
  font-size: 12.5px;
  color: #374151;
  background: #ffffff;
  outline: none;
  cursor: pointer;
}

#view-beer-library .bl-sort-select:focus {
  border-color: #b38b47;
}

#view-beer-library .bl-filter-drawer-toggle {
  display: inline-flex;
  align-items: center;
  font-size: 12px;
  font-weight: 600;
  padding: 5px 11px;
}

#view-beer-library .bl-filter-drawer-toggle.active {
  border-color: #b38b47;
  background: #fef8ee;
  color: #8c734b;
}

#view-beer-library .bl-filter-badge {
  background: #b38b47;
  color: #ffffff;
  font-size: 10px;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: 10px;
  margin-left: 5px;
}

/* ───────────────────────────────────────────────────────────────────────────
   Filter Drawer
   ─────────────────────────────────────────────────────────────────────────── */
#view-beer-library .bl-filter-drawer {
  background: #fbfbfb;
  border-bottom: 1px solid #e5e7eb;
  padding: 16px 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

#view-beer-library .bl-filter-drawer-grid {
  display: grid;
  grid-template-columns: 140px 180px minmax(280px, 1fr);
  gap: 20px;
  align-items: start;
}

@media (max-width: 1024px) {
  #view-beer-library .bl-filter-drawer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  #view-beer-library .bl-filter-drawer-grid {
    grid-template-columns: 1fr;
  }
}

#view-beer-library .bl-filter-col {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

#view-beer-library .bl-filter-col-title {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #6b7280;
  font-weight: 700;
  margin-bottom: 2px;
}

#view-beer-library .bl-filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

#view-beer-library .bl-checkbox-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 9px;
  border-radius: 5px;
  border: 1px solid #d1d5db;
  background: #ffffff;
  font-size: 12px;
  color: #374151;
  cursor: pointer;
  user-select: none;
  transition: all 0.12s ease;
}

#view-beer-library .bl-checkbox-chip:hover {
  border-color: #9ca3af;
}

#view-beer-library .bl-checkbox-chip input[type="checkbox"] {
  cursor: pointer;
  accent-color: #b38b47;
  margin: 0;
}

#view-beer-library .bl-checkbox-chip.checked {
  border-color: #b38b47;
  background: #fef8ee;
  color: #8c734b;
  font-weight: 600;
}

#view-beer-library .bl-checkbox-chip.ontap-chip.checked {
  border-color: #d98c4a;
  background: #fff4e6;
  color: #c25e00;
  font-weight: 700;
}

#view-beer-library .bl-checkbox-chip.onshelf-chip.checked {
  border-color: #3b82f6;
  background: #eff6ff;
  color: #1d4ed8;
  font-weight: 700;
}

#view-beer-library .bl-checkbox-chip.starred-chip.checked {
  border-color: #f59e0b;
  background: #fffbeb;
  color: #b45309;
  font-weight: 700;
}

#view-beer-library .bl-star-filter-wrap {
  display: inline-flex;
  align-items: center;
  border-radius: 6px;
  border: 1px solid #d1d5db;
  background: #ffffff;
  overflow: hidden;
  transition: all 0.15s ease;
}

#view-beer-library .bl-star-filter-wrap.has-starred {
  border-color: #fcd34d;
  background: #fffbeb;
}

#view-beer-library .bl-star-filter-wrap.active {
  border-color: #f59e0b;
  background: #fef3c7;
  box-shadow: 0 0 0 1px rgba(245, 158, 11, 0.25);
}

#view-beer-library .bl-star-filter-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 11px;
  font-size: 12px;
  font-weight: 600;
  color: #4b5563;
  background: transparent;
  border: none;
  cursor: pointer;
  user-select: none;
  transition: all 0.12s ease;
}

#view-beer-library .bl-star-filter-btn:hover {
  color: #111827;
  background: rgba(245, 158, 11, 0.08);
}

#view-beer-library .bl-star-filter-wrap.has-starred .bl-star-filter-btn {
  color: #92400e;
}

#view-beer-library .bl-star-filter-wrap.active .bl-star-filter-btn {
  color: #78350f;
  font-weight: 700;
}

#view-beer-library .bl-star-clear-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 5px 8px;
  font-size: 11px;
  font-weight: 700;
  color: #b45309;
  background: rgba(245, 158, 11, 0.12);
  border: none;
  border-left: 1px solid #fde68a;
  cursor: pointer;
  transition: all 0.12s ease;
}

#view-beer-library .bl-star-clear-btn:hover {
  background: #fde68a;
  color: #78350f;
}

#view-beer-library .bl-filter-drawer-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 10px;
  border-top: 1px dashed #e5e7eb;
}

#view-beer-library .bl-filter-readout {
  font-size: 12px;
  color: #6b7280;
}

/* ───────────────────────────────────────────────────────────────────────────
   Beer Grid & Cards
   ─────────────────────────────────────────────────────────────────────────── */
#view-beer-library .bl-content {
  padding: 20px 28px 60px 28px;
}

#view-beer-library .bl-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 20px;
}

#view-beer-library .bl-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  display: flex;
  flex-direction: column;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

#view-beer-library .bl-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(179, 139, 71, 0.14);
  border-color: #b38b47;
}

/* Card Artwork Banner */
#view-beer-library .bl-card-art {
  height: 140px;
  background: linear-gradient(135deg, #1f2025 0%, #2b2d35 100%);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-bottom: 1px solid #e5e7eb;
}

#view-beer-library .bl-card-art img {
  max-height: 120px;
  max-width: 90%;
  object-fit: contain;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.35));
  transition: transform 0.2s ease;
}

#view-beer-library .bl-card:hover .bl-card-art img {
  transform: scale(1.04);
}

#view-beer-library .bl-card-no-art {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: #8b8f9e;
  font-size: 11.5px;
}

#view-beer-library .bl-card-no-art svg {
  opacity: 0.5;
}

/* Card Header Overlays */
#view-beer-library .bl-badge-status {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 3px 8px;
  border-radius: 4px;
  z-index: 2;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}

.bl-badge-status.active {
  background: #ecfdf5;
  color: #047857;
  border: 1px solid #a7f3d0;
}

.bl-badge-status.inactive {
  background: #fffbeb;
  color: #b45309;
  border: 1px solid #fde68a;
}

.bl-badge-status.retired {
  background: #f3f4f6;
  color: #6b7280;
  border: 1px solid #e5e7eb;
}

#view-beer-library .bl-format-tag {
  position: absolute;
  bottom: 8px;
  left: 10px;
  font-size: 10px;
  font-weight: 600;
  padding: 2px 7px;
  background: rgba(0, 0, 0, 0.55);
  color: #f3f4f6;
  backdrop-filter: blur(4px);
  border-radius: 4px;
}

/* Card Body */
#view-beer-library .bl-card-body {
  padding: 16px 18px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

#view-beer-library .bl-card-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

#view-beer-library .bl-card-ontap-btn {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 3px 8px;
  font-size: 11px;
  font-weight: 700;
  border-radius: 12px;
  border: 1px solid #d1d5db;
  background: #f3f4f6;
  color: #4b5563;
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
  line-height: 1.2;
}

#view-beer-library .bl-card-ontap-btn:hover {
  background: #e5e7eb;
  color: #111827;
  border-color: #9ca3af;
}

#view-beer-library .bl-card-ontap-btn.is-on-tap {
  background: #ecfdf5;
  color: #047857;
  border-color: #6ee7b7;
  box-shadow: 0 0 0 1px rgba(16, 185, 129, 0.2);
}

#view-beer-library .bl-card-ontap-btn.is-on-tap:hover {
  background: #d1fae5;
  color: #065f46;
  border-color: #34d399;
}

#view-beer-library .bl-card-onshelf-btn {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 3px 8px;
  font-size: 11px;
  font-weight: 700;
  border-radius: 12px;
  border: 1px solid #d1d5db;
  background: #f3f4f6;
  color: #4b5563;
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
  line-height: 1.2;
}

#view-beer-library .bl-card-onshelf-btn:hover {
  background: #e5e7eb;
  color: #111827;
  border-color: #9ca3af;
}

#view-beer-library .bl-card-onshelf-btn.is-on-shelf {
  background: #eff6ff;
  color: #1d4ed8;
  border-color: #93c5fd;
  box-shadow: 0 0 0 1px rgba(59, 130, 246, 0.2);
}

#view-beer-library .bl-card-onshelf-btn.is-on-shelf:hover {
  background: #dbeafe;
  color: #1e40af;
  border-color: #60a5fa;
}

#view-beer-library .bl-btn-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #9ca3af;
  margin-right: 2px;
  flex-shrink: 0;
  transition: all 0.15s ease;
}

#view-beer-library .bl-card-ontap-btn.is-on-tap .bl-btn-dot {
  background: #10b981;
  box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.25);
}

#view-beer-library .bl-card-onshelf-btn.is-on-shelf .bl-btn-dot {
  background: #3b82f6;
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.25);
}

#view-beer-library .bl-card-star-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 3px 8px;
  font-size: 12px;
  font-weight: 700;
  border-radius: 12px;
  border: 1px solid #d1d5db;
  background: #f3f4f6;
  color: #6b7280;
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
  line-height: 1.1;
}

#view-beer-library .bl-card-star-btn:hover {
  background: #fef3c7;
  color: #b45309;
  border-color: #fcd34d;
}

#view-beer-library .bl-card-star-btn.is-starred {
  background: #fef3c7;
  color: #b45309;
  border-color: #f59e0b;
  box-shadow: 0 0 0 1px rgba(245, 158, 11, 0.25);
}

#view-beer-library .bl-card-star-btn.is-starred:hover {
  background: #fde68a;
  color: #92400e;
  border-color: #d97706;
}

#view-beer-library .bl-card.is-starred-card {
  border-color: #f59e0b;
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.12), 0 0 0 1px rgba(245, 158, 11, 0.25);
}

#view-beer-library .bl-card-name {
  font-size: 16.5px;
  font-weight: 700;
  color: #111827;
  line-height: 1.25;
  margin: 0;
}

#view-beer-library .bl-card-subtitle {
  font-size: 12px;
  font-weight: 500;
  color: #6b7280;
  font-style: italic;
  margin-top: -4px;
  margin-bottom: 8px;
  line-height: 1.35;
}

#view-beer-library .bl-card-desc {
  font-size: 12.5px;
  color: #4b5563;
  line-height: 1.45;
  margin: 0 0 12px 0;
}

/* Formats and Batches Sections */
#view-beer-library .bl-card-section {
  padding-top: 10px;
  margin-top: 10px;
  border-top: 1px solid #f3f4f6;
}

#view-beer-library .bl-card-section:first-of-type {
  margin-top: auto;
}

#view-beer-library .bl-card-section-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #8c734b;
  margin-bottom: 6px;
}

#view-beer-library .bl-card-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  align-items: center;
}

#view-beer-library .bl-format-pill {
  font-size: 11px;
  padding: 2.5px 7px;
  border-radius: 4px;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  color: #374151;
  display: inline-flex;
  align-items: center;
  line-height: 1.35;
}

#view-beer-library .bl-format-pill strong {
  color: #111827;
}

#view-beer-library .bl-format-pill.retail-pour {
  background: #eff6ff;
  border-color: #bfdbfe;
  color: #1e40af;
}

#view-beer-library .bl-format-pill.retail-pour strong {
  color: #1e3a8a;
}

#view-beer-library .bl-format-pill.retail {
  background: #fdfaf6;
  border-color: #f3e8d7;
  color: #44403c;
}

#view-beer-library .bl-format-pill.wholesale {
  background: #fafaf9;
  border-color: #e7e5e4;
  color: #292524;
}

#view-beer-library .bl-crv-hint {
  color: #047857;
  font-weight: 600;
  font-size: 10px;
  margin-left: 3px;
}

#view-beer-library .bl-pill-stock {
  font-size: 9.5px;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: 4px;
  background: #ecfdf5;
  color: #047857;
  border: 1px solid #a7f3d0;
  margin-left: 5px;
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
}
#view-beer-library .bl-pill-stock.out {
  background: #fef2f2;
  color: #b91c1c;
  border-color: #fecaca;
}
#view-beer-library .bl-pill-sold {
  font-size: 9.5px;
  font-weight: 600;
  padding: 1px 5px;
  border-radius: 4px;
  background: #f1f5f9;
  color: #475569;
  border: 1px solid #cbd5e1;
  margin-left: 4px;
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
}
#view-beer-library .bl-pill-qbo-stock {
  font-size: 9.5px;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: 4px;
  background: #f0fdfa;
  color: #0f766e;
  border: 1px solid #99f6e4;
  margin-left: 5px;
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
}

#view-beer-library .bl-card-batches {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

#view-beer-library .bl-batch-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11.5px;
  line-height: 1.3;
}

#view-beer-library .bl-batch-date {
  font-size: 10px;
  font-weight: 600;
  padding: 1.5px 6px;
  border-radius: 3px;
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
  white-space: nowrap;
}

#view-beer-library .bl-batch-name {
  color: #374151;
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#view-beer-library .bl-batch-date-pill {
  font-size: 11px;
  font-weight: 600;
  padding: 2.5px 8px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  line-height: 1.35;
  white-space: nowrap;
}

#view-beer-library .bl-batch-date-pill.active {
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}

#view-beer-library .bl-batch-date-pill.conditioning {
  background: #fffbeb;
  color: #92400e;
  border: 1px solid #fde68a;
}

#view-beer-library .bl-batch-date-pill.in_production,
#view-beer-library .bl-batch-date-pill.production,
#view-beer-library .bl-batch-date-pill.pre_packaging {
  background: #eff6ff;
  color: #1e40af;
  border: 1px solid #bfdbfe;
}

#view-beer-library .bl-batch-date-pill.inactive {
  background: #fff7ed;
  color: #c2410c;
  border: 1px solid #fed7aa;
}

#view-beer-library .bl-batch-date-pill.library {
  background: #faf5ff;
  color: #7e22ce;
  border: 1px solid #e9d5ff;
}

#view-beer-library .bl-batch-date-pill.retired {
  background: #f1f5f9;
  color: #64748b;
  border: 1px solid #cbd5e1;
}

#view-beer-library .bl-select.bl-batch-status {
  padding: 4px 6px;
  font-size: 12px;
  border-radius: 4px;
}

/* ───────────────────────────────────────────────────────────────────────────
   Empty State
   ─────────────────────────────────────────────────────────────────────────── */
#view-beer-library .bl-empty-state {
  text-align: center;
  padding: 60px 20px;
  background: #ffffff;
  border: 1px dashed #d1d5db;
  border-radius: 10px;
  color: #6b7280;
}

#view-beer-library .bl-empty-state svg {
  color: #9ca3af;
  margin-bottom: 12px;
}

#view-beer-library .bl-empty-state h3 {
  font-size: 16px;
  color: #111827;
  margin: 0 0 6px 0;
}

/* ───────────────────────────────────────────────────────────────────────────
   Editor Drawer / Modal
   ─────────────────────────────────────────────────────────────────────────── */
.bl-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(3px);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s ease;
}

.bl-modal-backdrop.active {
  opacity: 1;
  visibility: visible;
}

.bl-modal-card {
  width: 100%;
  max-width: 820px;
  max-height: 90vh;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: scale(0.97);
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.bl-modal-backdrop.active .bl-modal-card {
  transform: scale(1);
}

.bl-modal-header {
  padding: 16px 24px;
  background: #231f20;
  border-bottom: 2px solid #b38b47;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.bl-modal-title-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}

.bl-modal-title {
  font-size: 17px;
  font-weight: 700;
  color: #ffffff;
  margin: 0;
}

.bl-modal-close {
  background: transparent;
  border: none;
  color: #9da0ac;
  cursor: pointer;
  padding: 6px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.bl-modal-close:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
}

/* Modal Subnav Tabs */
.bl-editor-tabs {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  background: #151619;
  border-bottom: 1px solid #2d2e35;
  padding: 4px 16px;
  gap: 4px;
}

.bl-editor-tab-btn {
  background: transparent;
  border: none;
  color: #9da0ac;
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 600;
  border-radius: 4px;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: normal;
  text-align: center;
  line-height: 1.3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.bl-editor-tab-btn:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.05);
}

.bl-editor-tab-btn.active {
  color: #e6c587;
  background: rgba(179, 139, 71, 0.12);
  border-bottom-color: #b38b47;
}

/* Modal Body */
.bl-modal-body {
  padding: 24px;
  overflow-y: auto;
  flex: 1;
  background: #fafbfc;
}

.bl-editor-panel {
  display: none;
}

.bl-editor-panel.active {
  display: block;
}

/* Form Controls */
.bl-form-section {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 18px 20px;
  margin-bottom: 18px;
}

.bl-form-section-title {
  font-size: 13.5px;
  font-weight: 700;
  color: #111827;
  margin: 0 0 14px 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.bl-field-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
  margin-bottom: 14px;
}

.bl-field-row.cols-3 {
  grid-template-columns: repeat(3, 1fr);
}

.bl-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-bottom: 14px;
}

.bl-field:last-child {
  margin-bottom: 0;
}

.bl-field label {
  font-size: 12px;
  font-weight: 600;
  color: #374151;
}

.bl-field .hint {
  font-size: 11px;
  color: #6b7280;
  margin-top: 2px;
}

.bl-input, .bl-select, .bl-textarea {
  padding: 8px 12px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-size: 13px;
  color: #111827;
  background: #ffffff;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  width: 100%;
}

.bl-input:focus, .bl-select:focus, .bl-textarea:focus {
  border-color: #b38b47;
  box-shadow: 0 0 0 3px rgba(179, 139, 71, 0.12);
}

.bl-textarea {
  min-height: 80px;
  resize: vertical;
  line-height: 1.45;
}

/* Repeatable Row lists (Formats) */
.bl-rows-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 12px;
}

.bl-rows-table th {
  font-size: 11.5px;
  font-weight: 600;
  color: #6b7280;
  text-align: left;
  padding: 6px 8px;
  border-bottom: 1px solid #e5e7eb;
}

.bl-rows-table td {
  padding: 6px 8px;
  vertical-align: middle;
}

/* Labels & Media Manager inside Modal */
.bl-labels-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 14px;
  margin-bottom: 16px;
}

.bl-label-item {
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #ffffff;
  padding: 10px;
  display: flex;
  flex-direction: column;
  position: relative;
}

.bl-label-item img {
  width: 100%;
  height: 110px;
  object-fit: contain;
  background: #1f2025;
  border-radius: 6px;
  padding: 6px;
}

.bl-label-item-meta {
  margin-top: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.bl-label-format-badge {
  font-size: 11px;
  font-weight: 600;
  color: #b38b47;
}

/* Google Drive & Images Tab Styles */
.bl-drive-tip-banner {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 6px;
  padding: 10px 14px;
  font-size: 12px;
  color: #1e40af;
  line-height: 1.45;
  margin-bottom: 14px;
}

.bl-img-thumb-preview {
  width: 64px;
  height: 64px;
  background: #18181b;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.bl-img-thumb-preview img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.bl-img-thumb-placeholder {
  font-size: 11px;
  color: #9ca3af;
  font-weight: 500;
}

.bl-img-thumb-err {
  font-size: 10px;
  color: #ef4444;
  font-weight: 600;
}

.bl-btn-drive-open {
  background: #f0fdf4;
  color: #166534;
  border: 1px solid #bbf7d0;
  font-weight: 600;
}
.bl-btn-drive-open:hover {
  background: #dcfce7;
  color: #14532d;
  border-color: #86efac;
}

.bl-card-drive-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 9999px;
  font-size: 11px;
  font-weight: 600;
  background: #f3f4f6;
  color: #374151;
  text-decoration: none;
  border: 1px solid #e5e7eb;
  transition: all 0.15s ease;
}
.bl-card-drive-pill:hover {
  background: #e5e7eb;
  color: #111827;
  border-color: #d1d5db;
}

/* Batch Card Blocks in Manage Batches */
.bl-batch-blocks-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 12px;
}

.bl-batch-block {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 14px 16px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: relative;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.bl-batch-block:hover {
  border-color: #cbd5e1;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}

.bl-batch-block-row {
  display: grid;
  gap: 12px;
  align-items: flex-end;
}

.bl-batch-block-row-1 {
  grid-template-columns: 2fr 1.3fr 1.3fr auto;
}

.bl-batch-block-row-2 {
  grid-template-columns: 0.9fr 1.1fr 1.1fr 2.5fr;
}

.bl-batch-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.bl-batch-field label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: #6b7280;
}

.bl-batch-remove-btn {
  height: 36px;
  width: 36px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.bl-link-batch-bar {
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 14px;
  margin-bottom: 14px;
}

.bl-link-search-match-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  color: #1e40af;
  cursor: pointer;
  transition: all 0.15s ease;
}
.bl-link-search-match-pill:hover {
  background: #dbeafe;
  border-color: #93c5fd;
}

/* Modal Footer */
.bl-modal-footer {
  padding: 14px 24px;
  background: #ffffff;
  border-top: 1px solid #e5e7eb;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.bl-modal-footer-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* ───────────────────────────────────────────────────────────────────────────
   Google Drive Folder Scanner & Visual Image Gallery
   ─────────────────────────────────────────────────────────────────────────── */
.bl-drive-scan-row {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-top: 8px;
}

.bl-drive-scan-status {
  margin-top: 10px;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 12px;
  line-height: 1.4;
  display: none;
}
.bl-drive-scan-status.active {
  display: block;
}
.bl-drive-scan-status.loading {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  color: #1e40af;
}
.bl-drive-scan-status.success {
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: #065f46;
}
.bl-drive-scan-status.error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
}

.bl-image-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 14px;
  margin-top: 14px;
}

.bl-image-card {
  background: #ffffff;
  border: 1.5px solid #e5e7eb;
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  transition: all 0.15s ease;
  position: relative;
}

.bl-image-card:hover {
  border-color: #cbd5e1;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.08);
}

.bl-image-card.is-hero {
  border-color: #f59e0b;
  box-shadow: 0 0 0 1px #f59e0b, 0 4px 12px rgba(245, 158, 11, 0.15);
}

.bl-image-card-header {
  padding: 8px 10px;
  background: #f8fafc;
  border-bottom: 1px solid #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

.bl-image-card.is-hero .bl-image-card-header {
  background: #fffbeb;
  border-bottom-color: #fef3c7;
}

.bl-hero-btn {
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 4px;
  border: 1px solid #d1d5db;
  background: #ffffff;
  color: #4b5563;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: all 0.15s ease;
}

.bl-hero-btn:hover {
  background: #f3f4f6;
  border-color: #9ca3af;
  color: #111827;
}

.bl-image-card.is-hero .bl-hero-btn {
  background: #f59e0b;
  border-color: #d97706;
  color: #ffffff;
  font-weight: 700;
}

.bl-img-card-remove {
  background: transparent;
  border: none;
  color: #9ca3af;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 4px;
  transition: all 0.15s ease;
}

.bl-img-card-remove:hover {
  background: #fee2e2;
  color: #dc2626;
}

.bl-img-card-preview {
  height: 140px;
  background: #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 8px;
  position: relative;
}

.bl-img-card-preview img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 4px;
  transition: transform 0.2s ease;
}

.bl-img-card-preview img:hover {
  transform: scale(1.04);
}

.bl-img-card-err {
  font-size: 11px;
  color: #dc2626;
  background: #fee2e2;
  padding: 4px 8px;
  border-radius: 4px;
  font-weight: 500;
}

.bl-img-card-body {
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
  background: #ffffff;
}

.bl-img-card-body .bl-select {
  font-size: 11.5px;
  padding: 4px 6px;
}

.bl-img-card-body .bl-input {
  font-size: 11.5px;
  padding: 4px 6px;
}

.bl-img-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 2px;
  font-size: 11px;
}

.bl-img-card-link {
  color: #2563eb;
  text-decoration: none;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.bl-img-card-link:hover {
  text-decoration: underline;
  color: #1d4ed8;
}

.bl-bulk-paste-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(2px);
  z-index: 250;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.bl-bulk-paste-card {
  background: #ffffff;
  border-radius: 10px;
  width: 100%;
  max-width: 520px;
  padding: 20px;
  box-shadow: 0 20px 35px rgba(0, 0, 0, 0.25);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* ───────────────────────────────────────────────────────────────────────────
   Channel Status Strip on Beer Cards
   ─────────────────────────────────────────────────────────────────────────── */
.bl-card-channels {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 6px 8px;
  margin-top: 10px;
}

.bl-channel-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 5px 4px;
  border-radius: 5px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  text-align: center;
  min-width: 0;
  transition: all 0.15s ease;
  cursor: pointer;
  user-select: none;
}

.bl-channel-badge:hover {
  transform: translateY(-1.5px);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.08);
  border-color: #b38b47;
}

.bl-channel-badge .bl-ch-label {
  font-weight: 700;
  color: #64748b;
  font-size: 9.5px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 2px;
  line-height: 1;
}

.bl-channel-badge .bl-ch-val {
  color: #334155;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
}

.bl-channel-badge .bl-ch-sold {
  color: #dc2626 !important;
  font-weight: 800;
  letter-spacing: -0.01em;
}

/* Specific Channel Highlights */
.bl-channel-badge.woo.in-stock {
  background: #ecfdf5;
  border-color: #a7f3d0;
  color: #065f46;
}
.bl-channel-badge.woo.in-stock .bl-ch-label {
  color: #047857;
}
.bl-channel-badge.woo.in-stock .bl-ch-val {
  color: #065f46;
  font-size: 10.5px;
  font-weight: 700;
}
.bl-channel-badge.woo.in-stock .bl-ch-sold {
  color: #dc2626 !important;
  font-weight: 800;
}

.bl-channel-badge.woo.draft {
  background: #f1f5f9;
  border-color: #cbd5e1;
}
.bl-channel-badge.woo.draft .bl-ch-label {
  color: #64748b;
}
.bl-channel-badge.woo.draft .bl-ch-val {
  color: #475569;
}

.bl-channel-badge.woo.out-of-stock {
  background: #fef2f2;
  border-color: #fecaca;
}
.bl-channel-badge.woo.out-of-stock .bl-ch-label {
  color: #b91c1c;
}
.bl-channel-badge.woo.out-of-stock .bl-ch-val {
  color: #991b1b;
}

.bl-channel-badge.square.active {
  background: #eff6ff;
  border-color: #bfdbfe;
  color: #1e40af;
}

.bl-channel-badge.square.live {
  background: #ecfdf5;
  border-color: #a7f3d0;
  color: #065f46;
}

.bl-channel-badge.untappd.active {
  background: #fffbeb;
  border-color: #fde68a;
  color: #92400e;
}
.bl-channel-badge.untappd.active .bl-ch-val {
  color: #b45309;
  font-weight: 600;
}

.bl-channel-badge.beergang.active {
  background: #f5f3ff;
  border-color: #ddd6fe;
  color: #5b21b6;
}
.bl-channel-badge.beergang.active .bl-ch-label {
  color: #7c3aed;
}
.bl-channel-badge.beergang.active .bl-ch-val {
  color: #5b21b6;
  font-weight: 700;
}

.bl-channel-badge.qbo.active {
  background: #f0fdfa;
  border-color: #99f6e4;
  color: #0f766e;
}
.bl-channel-badge.qbo.active .bl-ch-label {
  color: #0d9488;
}
.bl-channel-badge.qbo.active .bl-ch-val {
  color: #0f766e;
  font-weight: 700;
}

.bl-channel-badge.unlinked {
  opacity: 0.65;
  background: #f8fafc;
  border-style: dashed;
}

/* ───────────────────────────────────────────────────────────────────────────
   Integrations & Webstore Tab in Editor Modal (With Subtabs)
   ─────────────────────────────────────────────────────────────────────────── */
.bl-integration-subtabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  border-bottom: 1px solid #e2e8f0;
  padding-bottom: 12px;
  margin-bottom: 16px;
}

.bl-subtab-btn {
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  color: #475569;
  padding: 7px 14px;
  font-size: 12.5px;
  font-weight: 600;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.bl-subtab-btn:hover {
  background: #f1f5f9;
  border-color: #94a3b8;
  color: #1e293b;
}

.bl-subtab-btn.active {
  background: #1e293b;
  border-color: #0f172a;
  color: #ffffff;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.bl-subtab-chip {
  font-size: 10px;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 999px;
  text-transform: uppercase;
}

.bl-subtab-chip.live {
  background: #047857;
  color: #ffffff;
}

.bl-subtab-chip.draft {
  background: #cbd5e1;
  color: #334155;
}

.bl-integration-subpanel {
  display: none;
}

.bl-integration-subpanel.active {
  display: block;
}

.bl-integration-grid.cols-4 {
  grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 640px) {
  .bl-integration-grid.cols-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

.bl-integration-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 16px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.03);
}

.bl-integration-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid #f1f5f9;
}

.bl-integration-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
  color: #0f172a;
}

.bl-integration-status-pill {
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.bl-integration-status-pill.connected {
  background: #dcfce7;
  color: #166534;
  border: 1px solid #86efac;
}

.bl-integration-status-pill.draft {
  background: #f1f5f9;
  color: #475569;
  border: 1px solid #cbd5e1;
}

.bl-integration-status-pill.unlinked {
  background: #f3f4f6;
  color: #6b7280;
  border: 1px solid #e5e7eb;
}

.bl-integration-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}

.bl-integration-stat {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 10px 12px;
}

.bl-integration-stat-label {
  font-size: 10.5px;
  text-transform: uppercase;
  font-weight: 700;
  color: #64748b;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}

.bl-integration-stat-val {
  font-size: 15px;
  font-weight: 700;
  color: #1e293b;
}

.bl-integration-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 12px;
}

.bl-sync-alert {
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 12px;
  margin-top: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.bl-sync-alert.success {
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}

.bl-sync-alert.warning {
  background: #fffbeb;
  color: #92400e;
  border: 1px solid #fde68a;
}

.bl-sync-alert.error {
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

.bl-category-checkbox-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.bl-category-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #ffffff;
  border: 1px solid #d1d5db;
  border-radius: 18px;
  padding: 4px 12px;
  font-size: 12px;
  color: #374151;
  cursor: pointer;
  user-select: none;
  transition: all 0.15s ease;
}

.bl-category-chip:hover {
  border-color: #b38b47;
  background: #fdfaf6;
}

.bl-category-chip input[type="checkbox"] {
  cursor: pointer;
  accent-color: #b38b47;
  margin: 0;
}

.bl-category-chip.selected {
  background: #fef7ec;
  border-color: #b38b47;
  color: #92400e;
  font-weight: 600;
}

.bl-mockup-picker-grid {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 6px;
  margin-top: 6px;
}

.bl-mockup-tile {
  width: 90px;
  height: 90px;
  border-radius: 6px;
  border: 2px solid #e2e8f0;
  background: #f8fafc;
  cursor: pointer;
  position: relative;
  flex-shrink: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
}

.bl-mockup-tile:hover {
  border-color: #b38b47;
}

.bl-mockup-tile.selected {
  border-color: #b38b47;
  box-shadow: 0 0 0 2px rgba(179, 139, 71, 0.3);
  background: #fef7ec;
}

.bl-mockup-tile img {
  width: 100%;
  height: 66px;
  object-fit: contain;
}

.bl-mockup-tile-badge {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(15, 23, 42, 0.75);
  color: #ffffff;
  font-size: 8.5px;
  text-align: center;
  padding: 1px 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ───────────────────────────────────────────────────────────────────────────
   Data Health & Rolling Backups Modal / Sync Pill
   ─────────────────────────────────────────────────────────────────────────── */
.bl-sync-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #1e293b;
  border: 1px solid #334155;
  border-radius: 20px;
  padding: 5px 12px;
  font-size: 11.5px;
  font-weight: 600;
  color: #f8fafc;
  transition: all 0.2s ease;
}

.bl-sync-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.6);
}

.bl-sync-pill.saving .bl-sync-dot {
  background: #f59e0b;
  box-shadow: 0 0 8px rgba(245, 158, 11, 0.6);
}

.bl-sync-pill.error .bl-sync-dot {
  background: #ef4444;
  box-shadow: 0 0 8px rgba(239, 68, 68, 0.6);
}

.bl-btn-secondary {
  background: #f8fafc;
  color: #334155;
  border: 1px solid #cbd5e1;
}

.bl-btn-secondary:hover {
  background: #f1f5f9;
  border-color: #94a3b8;
  color: #0f172a;
}

.bl-backup-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  gap: 12px;
  transition: background 0.15s ease;
}

.bl-backup-row:hover {
  background: #f8fafc;
}

.bl-backup-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.bl-backup-time {
  font-size: 13px;
  font-weight: 600;
  color: #0f172a;
}

.bl-backup-meta {
  font-size: 11px;
  color: #64748b;
}

.bl-backup-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
