menu.idcreatorToolbar {
  width: 260px;
  min-width: 260px;
  flex-shrink: 0;
  height: 100%;
  color: #3f4652;
  z-index: 50;
}

@media (max-width: 768px) {
  menu.idcreatorToolbar {
    width: 100%;
    min-width: 0;
  }
}

h1.toolbarTitle,
.toolbarTitle {
  font-size: 16px;
  text-align: center;
  margin-bottom: 1px;
  padding: 5px 0px;
  background-color: #111818;
  color: #bdc4c4;
  border-radius: 15px 15px 0px 0px;
}

menu.idcreatorToolbar ul {
  list-style-type: none;
  padding: 12px;
  margin-bottom: 0px;
}

@media (max-width: 768px) {
  h1.toolbarTitle,
  .toolbarTitle {
    display: none;
  }
}

span {
  color: #070707;
  margin-right: 5px;
  font-size: smaller;
}

span.separator {
  width: 100%;
  margin: 5px 0px;
  border: 1px solid #8db1af;
}

menu.idcreatorToolbar li {
  align-items: center;
  justify-content: space-between;
  display: flex;
  margin-bottom: 4px;
}

.btn-toolbar {
  padding: 0.25rem 0.25rem;
  margin-left: 5px;
}

.text-field {
  width: 180px;
  height: 100px;
}

.button-active {
  box-shadow: 0 0 0 0.1rem #8dadac;
}

.slow .toggle-group {
  transition: left 0.7s;
  -webkit-transition: left 0.7s;
}

/* ==========================================================================
   EASYIDCARD RANGE SLIDERS (#0e3e3d Forest Teal Theme)
   ========================================================================== */
menu.idcreatorToolbar input[type="range"],
menu.idcreatorToolbar .custom-range,
.idcreator-container-inner input[type="range"],
.idcreator-container-inner .custom-range {
  -webkit-appearance: none;
  appearance: none;
  height: 18px;
  background: transparent;
  cursor: pointer;
  accent-color: #0e3e3d;
}

menu.idcreatorToolbar .custom-range::-webkit-slider-runnable-track,
.idcreator-container-inner input[type="range"]::-webkit-slider-runnable-track {
  height: 5px;
  background: #cbd5e1;
  border-radius: 999px;
  border: none;
}

menu.idcreatorToolbar .custom-range::-webkit-slider-thumb,
.idcreator-container-inner input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 15px;
  height: 15px;
  margin-top: -5px;
  background: #0e3e3d;
  border: 2px solid #ffffff;
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.35);
  transition: transform 0.12s ease, background-color 0.12s ease;
}

menu.idcreatorToolbar .custom-range::-webkit-slider-thumb:hover,
.idcreator-container-inner input[type="range"]::-webkit-slider-thumb:hover {
  background: #145352;
  transform: scale(1.12);
}

menu.idcreatorToolbar .custom-range:focus::-webkit-slider-thumb,
.idcreator-container-inner input[type="range"]:focus::-webkit-slider-thumb {
  box-shadow: 0 0 0 3px rgba(14, 62, 61, 0.25);
}

menu.idcreatorToolbar .custom-range::-moz-range-track,
.idcreator-container-inner input[type="range"]::-moz-range-track {
  height: 5px;
  background: #cbd5e1;
  border-radius: 999px;
  border: none;
}

menu.idcreatorToolbar .custom-range::-moz-range-progress,
.idcreator-container-inner input[type="range"]::-moz-range-progress {
  height: 5px;
  background: #0e3e3d;
  border-radius: 999px;
}

menu.idcreatorToolbar .custom-range::-moz-range-thumb,
.idcreator-container-inner input[type="range"]::-moz-range-thumb {
  width: 15px;
  height: 15px;
  background: #0e3e3d;
  border: 2px solid #ffffff;
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.35);
}

/* ==========================================================================
   PHOTO ACTION BUTTONS (Crop, Set as Background, Replace)
   ========================================================================== */
.eic-photo-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 32px;
  padding: 5px 11px;
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.2;
  color: #0e3e3d;
  background-color: #ffffff;
  border: 1px solid #b8c7c6;
  border-radius: 7px;
  box-shadow: 0 1px 2px rgba(14, 62, 61, 0.08);
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s ease;
}

.eic-photo-action-btn:hover {
  background-color: #0e3e3d;
  border-color: #0e3e3d;
  color: #ffffff;
}

.eic-photo-action-btn:active {
  transform: translateY(1px);
}

/* Override global span rule inside EIC buttons & modals */
.eic-photo-action-btn span,
.eic-modal span {
  color: inherit;
  margin-right: 0;
  font-size: inherit;
}

/* ==========================================================================
   UNIFIED MOBILE-FIRST MODAL SYSTEM (.eic-modal)
   Mobile (< 768px): Bottom Sheet with Drag Pill + Safe Area Inset + 44px Targets
   Desktop (>= 768px): Centered Studio Dialog
   ========================================================================== */
.eic-modal .modal-dialog {
  margin: 0;
  width: 100%;
  max-width: 100%;
  min-height: 100%;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.eic-modal.fade .modal-dialog {
  transform: translateY(28px);
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}

.eic-modal.show .modal-dialog {
  transform: translateY(0);
}

.eic-modal .modal-content {
  width: 100%;
  max-height: 92dvh;
  max-height: 92vh;
  border: none;
  border-radius: 20px 20px 0 0;
  box-shadow: 0 -10px 35px rgba(15, 23, 42, 0.28);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #ffffff;
}

/* Mobile Sheet Drag Pill */
.eic-sheet-pill-wrap {
  background: #0e3e3d;
  padding: 8px 0 2px;
  display: flex;
  justify-content: center;
  flex-shrink: 0;
}

.eic-sheet-pill {
  width: 38px;
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.35);
}

/* Modal Header */
.eic-modal .modal-header {
  background: #0e3e3d;
  color: #ffffff;
  border-bottom: 1px solid #165250;
  padding: 10px 16px 12px;
  align-items: center;
  flex-shrink: 0;
}

.eic-modal .modal-title {
  font-size: 15.5px;
  font-weight: 700;
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
}

.eic-modal .modal-header .close {
  color: #cbd5e1;
  opacity: 1;
  text-shadow: none;
  font-size: 22px;
  line-height: 1;
  min-width: 36px;
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  padding: 0;
  margin: 0 0 0 auto;
  transition: background 0.15s ease, color 0.15s ease;
}

.eic-modal .modal-header .close:hover {
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff;
}

/* Modal Scrollable Body */
.eic-modal .modal-body {
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  flex: 1 1 auto;
  padding: 14px 16px;
}

.eic-modal .modal-body.eic-dark-stage {
  background: #0f172a;
  padding: 10px 12px;
}

/* Cropper.js Accent Match */
.eic-modal .cropper-view-box {
  outline: 2px solid #34d399;
  outline-color: rgba(52, 211, 153, 0.9);
}

.eic-modal .cropper-line,
.eic-modal .cropper-point {
  background-color: #34d399;
}

/* Sticky Modal Footer with Safe-Area Inset */
.eic-modal .modal-footer,
.eic-crop-bar {
  background: #f8fafc;
  border-top: 1px solid #e2e8f0;
  padding: 10px 14px calc(12px + env(safe-area-inset-bottom, 0px));
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex-shrink: 0;
}

.eic-modal-footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
}

.eic-crop-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

/* Segmented Controls (44px mobile touch height) */
.eic-seg-group {
  display: inline-flex;
  background: #e2e8f0;
  padding: 3px;
  border-radius: 10px;
  gap: 2px;
}

.eic-seg-group.eic-seg-full {
  display: flex;
  width: 100%;
}

.eic-seg-group.eic-seg-full .eic-seg-btn {
  flex: 1;
  justify-content: center;
}

.eic-seg-btn {
  border: none;
  background: transparent;
  color: #475569;
  font-size: 13px;
  font-weight: 600;
  min-height: 38px;
  padding: 6px 12px;
  border-radius: 8px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: all 0.15s ease;
}

.eic-seg-btn:hover {
  color: #0f172a;
}

.eic-seg-btn.active {
  background: #ffffff;
  color: #0e3e3d;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.14);
}

.eic-context-pill {
  font-size: 12px;
  font-weight: 600;
  color: #0e3e3d;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  padding: 5px 11px;
  border-radius: 20px;
}

/* Zoom / Rotate / Nudge Clusters */
.eic-tool-cluster {
  display: inline-flex;
  align-items: center;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  overflow: hidden;
}

.eic-tool-btn {
  border: none;
  border-right: 1px solid #e2e8f0;
  background: #ffffff;
  color: #334155;
  height: 40px;
  min-width: 42px;
  padding: 0 12px;
  font-size: 13px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  cursor: pointer;
  transition: background 0.12s ease, color 0.12s ease;
}

.eic-tool-btn:last-child {
  border-right: none;
}

.eic-tool-btn:hover {
  background: #f0fdf4;
  color: #0e3e3d;
}

.eic-tool-btn:active {
  background: #dcfce7;
}

/* Primary & Secondary CTAs (44px Touch Targets) */
.eic-crop-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 8px;
  border-top: 1px solid #e2e8f0;
}

.eic-btn-cancel {
  min-height: 44px;
  padding: 0 18px;
  font-size: 14px;
  font-weight: 600;
  color: #475569;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.eic-btn-cancel:hover {
  background: #f1f5f9;
  color: #0f172a;
}

.eic-btn-apply {
  min-height: 44px;
  padding: 0 22px;
  font-size: 14px;
  font-weight: 600;
  color: #ffffff;
  background: #0d9488;
  border: 1px solid #0d9488;
  border-radius: 10px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  box-shadow: 0 2px 6px rgba(14, 62, 61, 0.25);
  transition: all 0.15s ease;
}

.eic-btn-apply:hover:not(:disabled) {
  background: #0f766e;
  border-color: #0f766e;
}

.eic-btn-apply:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

@media (max-width: 767.98px) {
  .eic-crop-footer .eic-btn-cancel,
  .eic-crop-footer .eic-btn-apply,
  .eic-modal-footer-row .eic-btn-cancel,
  .eic-modal-footer-row .eic-btn-apply {
    flex: 1;
  }
}

/* Desktop Breakpoint: Morph Bottom Sheet into Centered Studio Dialog */
@media (min-width: 768px) {
  .eic-modal .modal-dialog {
    margin: 1.75rem auto;
    max-width: 500px;
    min-height: calc(100% - 3.5rem);
    align-items: center;
  }

  .eic-modal .modal-dialog.modal-lg {
    max-width: 760px;
  }

  .eic-modal.fade .modal-dialog {
    transform: translateY(-14px);
  }

  .eic-modal.show .modal-dialog {
    transform: translateY(0);
  }

  .eic-modal .modal-content {
    border: 1px solid #cbd5e1;
    border-radius: 16px;
    max-height: calc(100vh - 3.5rem);
    box-shadow: 0 22px 50px rgba(15, 23, 42, 0.3);
  }

  .eic-sheet-pill-wrap {
    display: none;
  }

  .eic-modal .modal-header {
    padding: 13px 18px;
  }

  .eic-modal .modal-footer,
  .eic-crop-bar {
    padding: 12px 18px;
  }

  .eic-seg-btn {
    min-height: 34px;
    font-size: 12.5px;
  }

  .eic-tool-btn {
    height: 34px;
    min-width: 36px;
    padding: 0 10px;
  }

  .eic-btn-cancel,
  .eic-btn-apply {
    min-height: 38px;
    border-radius: 8px;
    font-size: 13.5px;
  }
}


/* ==========================================================================
   OPTION 2: UNIFIED FLOATING PILL BAR (#topControlBar)
   Reuses #topControlBar across Mobile (full-width) & Desktop (floating pill)
   ========================================================================== */
#topControlBar {
  display: flex !important;
  align-items: center;
  justify-content: center;
  background-color: #eaeaea;
  min-height: 40px;
  padding: 4px 10px;
  gap: 6px;
}

#topControlBar > div:first-child {
  display: flex;
  align-items: center;
  justify-content: space-evenly;
  flex-wrap: wrap;
  gap: 6px;
  width: 100%;
}

.eic-pill-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  height: 32px;
  padding: 0 10px;
  font-size: 12.5px;
  font-weight: 600;
  color: #1e293b;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.14s ease;
}

.eic-pill-btn:hover:not(.disabled) {
  background: #f0fdf4;
  border-color: #0e3e3d;
  color: #0e3e3d;
}

.eic-pill-btn.disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.eic-pill-btn.eic-pill-locked {
  background: #fef3c7;
  border-color: #f59e0b;
  color: #92400e;
}

.eic-pill-btn.eic-pill-danger {
  color: #dc2626;
  border-color: #fecaca;
  background: #fff5f5;
}

.eic-pill-btn.eic-pill-danger:hover {
  background: #dc2626;
  border-color: #dc2626;
  color: #ffffff;
}

.eic-pill-btn span {
  color: inherit;
  margin-right: 0;
  font-size: inherit;
}

/* Mobile: compact icon-only pills inside full-width bar */
@media (max-width: 768px) {
  .eic-pill-label {
    display: none;
  }
  .eic-pill-btn {
    padding: 0 9px;
    height: 32px;
  }
}

/* Desktop: Centered Floating Pill Bar above the ID Card Canvas */
@media (min-width: 769px) {
  #topControlBar {
    width: fit-content !important;
    max-width: calc(100% - 24px);
    margin: 12px auto 4px auto !important;
    padding: 6px 14px !important;
    height: auto !important;
    background: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 999px !important;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.10) !important;
  }

  #topControlBar > div:first-child {
    width: auto !important;
    justify-content: center !important;
    gap: 6px !important;
  }

  #topControlBar #buttonPunchslot {
    margin-top: 0 !important;
    padding-left: 8px;
    margin-left: 2px;
    border-left: 1px solid #e2e8f0;
    display: inline-flex;
    align-items: center;
    gap: 6px;
  }
}


/* ==========================================================================
   UNIFIED OVERLAY SLIDE-OUT QUICK FILL STUDIO (Mobile & Desktop)
   Slides OVER workspace content so the canvas & toolbars stay fixed behind.
   Hides cleanly into a persistent bottom dock (Quick Fill + SAVE & ORDER).
   ========================================================================== */
.eic-qe-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(2px);
  z-index: 1040;
  animation: eicFadeIn 0.2s ease;
}

@keyframes eicFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.eic-qe-shell {
  position: fixed;
  background: #ffffff;
  color: #0f172a;
  text-align: left;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  z-index: 1050;
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1), visibility 0.28s;
}

.eic-qe-header {
  background: #0e3e3d;
  color: #ffffff;
  padding: 12px 16px;
  flex-shrink: 0;
}

.eic-qe-drag-pill {
  width: 38px;
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.38);
  margin: 0 auto 8px auto;
  cursor: pointer;
}

.eic-qe-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.eic-qe-badge-icon {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.14);
  color: #a7f3d0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.eic-qe-title {
  font-size: 15px;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.2;
}

.eic-qe-subtitle {
  font-size: 11.5px;
  color: #cbd5e1;
  line-height: 1.2;
  margin-top: 2px;
}

.eic-qe-preview-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 34px;
  padding: 0 12px;
  font-size: 12.5px;
  font-weight: 600;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s ease;
}

.eic-qe-preview-btn:hover {
  background: rgba(255, 255, 255, 0.26);
}

.eic-qe-preview-btn span {
  color: inherit !important;
  margin-right: 0 !important;
  font-size: inherit !important;
}

/* Front / Back Side Switcher Tabs */
.eic-qe-side-tabs {
  display: flex;
  background: rgba(0, 0, 0, 0.28);
  padding: 3px;
  border-radius: 10px;
  gap: 3px;
  margin-top: 11px;
}

.eic-qe-side-tab {
  flex: 1;
  border: none;
  background: transparent;
  color: #cbd5e1;
  font-size: 12.5px;
  font-weight: 600;
  min-height: 34px;
  padding: 6px 8px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.eic-qe-side-tab.active {
  background: #ffffff;
  color: #0e3e3d;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.22);
}

/* Scrollable Form Body */
.eic-qe-body {
  padding: 14px;
  background: #f8fafc;
  flex: 1 1 auto;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.eic-qe-field-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 11px;
  padding: 11px 12px;
  margin-bottom: 10px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.eic-qe-field-card:hover {
  border-color: #94a3b8;
}

.eic-qe-field-card.is-focused {
  border-color: #0d9488;
  box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.14);
}

.eic-qe-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin-bottom: 6px;
}

.eic-qe-label {
  font-size: 12.5px;
  font-weight: 700;
  color: #1e293b;
  margin: 0;
}

.eic-qe-meta {
  font-size: 11.5px;
  color: #64748b;
}

.eic-qe-autofit-pill {
  font-size: 10.5px;
  font-weight: 700;
  color: #0f766e;
  background: #ccfbf1;
  border: 1px solid #99f6e4;
  padding: 1px 7px;
  border-radius: 999px;
}

.eic-qe-input {
  width: 100%;
  height: 42px;
  padding: 0 12px;
  font-size: 14px;
  font-weight: 500;
  color: #0f172a;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 9px;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.eic-qe-input:focus {
  border-color: #0d9488;
  box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.15);
}

/* Photo Upload Row */
.eic-qe-photo-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.eic-qe-thumb {
  width: 58px;
  height: 58px;
  border-radius: 10px;
  object-fit: cover;
  border: 1px solid #cbd5e1;
  background: #f1f5f9;
  flex-shrink: 0;
}

.eic-qe-thumb.is-circle {
  border-radius: 50%;
}

/* Brand Swatches */
.eic-qe-swatches {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.eic-qe-swatch {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 2px solid #ffffff;
  box-shadow: 0 0 0 1px #cbd5e1;
  cursor: pointer;
  padding: 0;
  position: relative;
  transition: transform 0.12s ease;
}

.eic-qe-swatch:hover {
  transform: scale(1.1);
}

.eic-qe-swatch.active {
  box-shadow: 0 0 0 2px #0d9488;
  transform: scale(1.08);
}

.eic-qe-swatch-custom {
  background: conic-gradient(#ef4444, #f59e0b, #10b981, #3b82f6, #8b5cf6, #ef4444);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-weight: 800;
  font-size: 14px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.eic-qe-swatch-custom span {
  color: #ffffff !important;
  margin-right: 0 !important;
  font-size: 14px !important;
}

.eic-qe-color-native {
  width: 34px;
  height: 34px;
  padding: 0;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  cursor: pointer;
}

/* Sticky Bottom Footer inside Quick Fill */
.eic-qe-footer {
  background: #ffffff;
  border-top: 1px solid #e2e8f0;
  padding: 12px 14px calc(12px + env(safe-area-inset-bottom, 0px));
  flex-shrink: 0;
}

.eic-qe-footer-row {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
}

/* Persistent Floating Bottom Dock when Overlay Drawer is Hidden (Mobile & Desktop) */
.eic-qe-minimized-dock {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: 14px;
  z-index: 1035;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.22);
  padding: 8px 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  width: max-content;
  max-width: calc(100vw - 24px);
}

.eic-qe-dock-edit {
  min-height: 44px;
  padding: 0 16px;
  font-size: 13.5px;
  font-weight: 700;
  color: #0e3e3d;
  background: #f0fdf4;
  border: 1.5px solid #0e3e3d;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s ease;
}

.eic-qe-dock-edit:hover {
  background: #dcfce7;
}

.eic-qe-dock-edit span {
  color: inherit !important;
  margin-right: 0 !important;
  font-size: inherit !important;
}

.eic-qe-dock-save {
  flex: 1;
}

/* ==========================================================================
   MOBILE VIEWPORT (< 768px): Bottom-Up Slide-Over Sheet (92dvh)
   ========================================================================== */
@media (max-width: 767.98px) {
  #document-container {
    padding-bottom: 78px;
  }

  #card-preview-container {
    display: block !important;
    width: 0 !important;
    min-width: 0 !important;
    max-width: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    border: none !important;
    overflow: visible !important;
  }

  .eic-qe-shell {
    left: 0;
    right: 0;
    bottom: 0;
    height: 92dvh;
    height: 92vh;
    max-height: 92dvh;
    max-height: 92vh;
    border-radius: 20px 20px 0 0;
    box-shadow: 0 -12px 40px rgba(15, 23, 42, 0.34);
    transform: translateY(0);
  }

  .eic-qe-shell.is-hidden {
    transform: translateY(105%);
    visibility: hidden;
    pointer-events: none;
  }

  .eic-qe-minimized-dock {
    left: 0;
    right: 0;
    bottom: 0;
    transform: none;
    width: 100%;
    max-width: 100%;
    border-radius: 0;
    border-left: none;
    border-right: none;
    border-bottom: none;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom, 0px));
  }

  .eic-qe-input {
    height: 46px;
    font-size: 16px; /* Prevents iOS Safari auto-zoom on focus */
  }
}

/* ==========================================================================
   DESKTOP VIEWPORT (>= 768px): Left Slide-Over Drawer Above Content
   Content behind (#idcreator-container) stays 100% stationary!
   ========================================================================== */
@media (min-width: 768px) {
  .eic-qe-shell {
    top: 0;
    left: 0;
    bottom: 0;
    width: 390px;
    max-width: 90vw;
    height: 100vh;
    height: 100dvh;
    border-right: 1px solid #cbd5e1;
    border-radius: 0 18px 18px 0;
    box-shadow: 12px 0 40px rgba(15, 23, 42, 0.26);
    transform: translateX(0);
  }

  .eic-qe-shell.is-hidden {
    transform: translateX(-105%);
    visibility: hidden;
    pointer-events: none;
  }
}


/* ==========================================================================
   ESTIMATED PRICE PILL (Shown only in New Customer / Template Flow)
   ========================================================================== */
.eic-nav-price-pill {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  padding: 4px 11px;
  color: #ffffff;
  white-space: nowrap;
}

.eic-nav-price-pill span {
  color: inherit !important;
  margin-right: 0 !important;
}

.eic-nav-price-lbl {
  font-size: 11px;
  color: #cbd5e1 !important;
  font-weight: 500;
}

.eic-nav-price-val {
  font-size: 13.5px;
  font-weight: 800;
  color: #5eead4 !important;
}

.eic-nav-price-unit {
  font-size: 11px;
  color: #cbd5e1 !important;
}

.eic-qe-inline-price {
  font-weight: 800;
  color: #ccfbf1 !important;
  margin-right: 4px !important;
}

@media (max-width: 767.98px) {
  .eic-nav-price-pill {
    display: none; /* Mobile shows price cleanly at thumb-zone bottom bar */
  }

  .eic-mobile-add-btn {
    background: #0e3e3d;
    color: #ffffff;
    font-weight: 600;
    font-size: 12px;
    border-radius: 999px;
    padding: 3px 10px;
  }
}

/* ==========================================================================
   CANVAS ELEMENTS / LAYERS LIST (#cardLayersPanel)
   ========================================================================== */
.eic-layers-box {
  padding: 10px 8px;
}

.eic-layers-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 360px;
  overflow-y: auto;
}

.eic-layer-row {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 9px;
  padding: 6px 8px;
  cursor: pointer;
  transition: all 0.14s ease;
}

.eic-layer-row:hover {
  border-color: #94a3b8;
}

.eic-layer-row.active {
  border-color: #0d9488;
  background: #f0fdfa;
  box-shadow: 0 0 0 2px rgba(13, 148, 136, 0.15);
}

.eic-layer-icon {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  background: #e2e8f0;
  color: #0f172a;
  font-size: 12px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.eic-layer-icon.type-text { background: #dbeafe; color: #1d4ed8; }
.eic-layer-icon.type-photo { background: #dcfce7; color: #15803d; }
.eic-layer-icon.type-barcode { background: #fef3c7; color: #b45309; }
.eic-layer-icon.type-panel { background: #f3e8ff; color: #7e22ce; }

.eic-layer-title {
  font-size: 12px;
  font-weight: 700;
  color: #0f172a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.eic-layer-sub {
  font-size: 10.5px;
  color: #64748b;
}

.eic-layer-actions {
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.eic-layer-btn {
  border: 1px solid #cbd5e1;
  background: #f8fafc;
  color: #334155;
  height: 22px;
  min-width: 22px;
  padding: 0 4px;
  border-radius: 5px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.eic-layer-btn:hover:not(:disabled) {
  background: #0e3e3d;
  border-color: #0e3e3d;
  color: #ffffff;
}

.eic-layer-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.eic-layer-btn.locked {
  background: #fef3c7;
  border-color: #f59e0b;
  color: #92400e;
}

.eic-layer-btn.edit {
  padding: 0 6px;
  color: #0e3e3d;
}

/* ==========================================================================
   DESKTOP OPTION A: CONNECTED 4-TAB FOLDER HEADER INSIDE #controls
   Reclaims 75px top bar height; fuses active tab directly into inspector panel.
   ========================================================================== */
@media (min-width: 769px) {
  #controls {
    width: 272px !important;
    min-width: 272px !important;
    display: flex !important;
    flex-direction: column !important;
    padding: 8px 6px 8px 8px !important;
  }

  #controls .idcreatorNavbar {
    background: transparent !important;
    height: auto !important;
    padding: 0 !important;
    margin: 0 !important;
    width: 100% !important;
  }

  .eic-connected-dock-nav {
    width: 100%;
  }

  .eic-dock-layers-bar {
    margin-bottom: 6px;
  }

  .eic-dock-layers-btn {
    width: 100%;
    height: 32px;
    border-radius: 9px;
    border: 1px solid #cbd5e1;
    background: #ffffff;
    color: #0e3e3d;
    font-size: 12px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    cursor: pointer;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
    transition: all 0.14s ease;
  }

  .eic-dock-layers-btn span {
    color: inherit !important;
    margin-right: 0 !important;
    font-size: inherit !important;
  }

  .eic-dock-layers-btn:hover,
  .eic-dock-layers-btn.active {
    background: #0e3e3d;
    border-color: #0e3e3d;
    color: #ffffff;
  }

  .eic-dock-tabs {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    background: #0e3e3d;
    padding: 5px 5px 0 5px;
    border-radius: 14px 14px 0 0;
    gap: 3px;
  }

  .eic-dock-rail-divider,
  .eic-dock-tab-layers-rail {
    display: none !important;
  }

  .eic-dock-tab {
    border: none;
    background: transparent;
    color: #cbd5e1;
    border-radius: 9px 9px 0 0;
    padding: 7px 2px 6px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    cursor: pointer;
    transition: all 0.14s ease;
  }

  .eic-dock-tab:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
  }

  .eic-dock-tab.active {
    background: #efefef;
    color: #0e3e3d;
    box-shadow: 0 -2px 6px rgba(0, 0, 0, 0.12);
  }

  .eic-dock-sprite {
    width: 28px !important;
    height: 28px !important;
    margin: 0 !important;
    background-size: contain !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
  }

  .eic-dock-tab-lbl {
    font-size: 11px;
    font-weight: 700;
    color: inherit !important;
    margin: 0 !important;
  }

  /* Fuse inspector panel flush underneath the active folder tab */
  #controls menu.idcreatorToolbar {
    width: 100% !important;
    min-width: 100% !important;
    margin-top: 0 !important;
  }

  #controls .idcreator-container-inner {
    border-radius: 0 0 14px 14px !important;
    border-top: none !important;
    margin-top: 0 !important;
  }

  #controls .toolbarTitle {
    border-radius: 0 !important;
    background: #1d5251 !important;
    color: #ffffff !important;
    font-size: 12px !important;
    letter-spacing: 0.6px;
  }
}


/* ==========================================================================
   OPTION A VISUAL CONNECTION & LAYOUT FIXES (Desktop >= 769px & Mobile <= 768px)
   ========================================================================== */
@media (min-width: 769px) {
  /* Remove empty top navbar gap in #mainArea so floating pill & card sit high */
  #mainArea > nav.idcreatorNavbar {
    display: none !important;
  }

  #controls {
    width: 272px !important;
    min-width: 272px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    padding: 8px 6px 8px 8px !important;
  }

  /* Style #nav-buttons directly (whether wrapped in .idcreatorNavbar or standalone) */
  #controls > .eic-connected-dock-nav,
  #controls .idcreatorNavbar {
    width: 100% !important;
    height: auto !important;
    background: transparent !important;
    padding: 0 !important;
    margin: 0 !important;
    display: block !important;
  }

  .eic-dock-layers-bar {
    margin-bottom: 6px;
  }

  .eic-dock-tabs {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    background: #0e3e3d !important;
    padding: 6px 6px 0 6px !important;
    border-radius: 14px 14px 0 0 !important;
    gap: 4px !important;
    margin: 0 !important;
  }

  .eic-dock-tab {
    border: none !important;
    background: transparent;
    color: #cbd5e1;
    border-radius: 9px 9px 0 0 !important;
    padding: 7px 2px 7px !important;
    margin: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 3px !important;
    cursor: pointer;
    position: relative;
  }

  .eic-dock-tab.active {
    background: #1d5251 !important;
    color: #ffffff !important;
    box-shadow: none !important;
  }

  /* Fuse the active toolbar directly beneath the 4-tab folder header */
  #controls menu.idcreatorToolbar {
    width: 100% !important;
    min-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  #controls .idcreator-container-inner {
    border-radius: 0 0 14px 14px !important;
    border: 1px solid #cbd5e1 !important;
    border-top: none !important;
    margin-top: 0 !important;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.12) !important;
  }

  #controls .toolbarTitle {
    border-radius: 0 !important;
    background: #1d5251 !important;
    color: #ffffff !important;
    font-size: 11.5px !important;
    font-weight: 700 !important;
    letter-spacing: 0.7px;
    padding: 6px 0 !important;
    margin: 0 !important;
  }
}

/* Mobile <= 768px: Keep mobile nav bar pinned above card stage */
@media (max-width: 768px) {
  #mainArea > nav.idcreatorNavbar {
    min-height: 0 !important;
    padding: 0 !important;
    background: transparent !important;
  }

  #controls > .eic-connected-dock-nav {
    position: fixed;
    top: 56px;
    left: 0;
    right: 0;
    z-index: 60;
    background: #f8fafc;
    border-bottom: 1px solid #cbd5e1;
  }

  #mainArea {
    padding-top: 44px;
  }
}


/* ==========================================================================
   EXACT WIDTH SYNC & FULL-WIDTH INNER CONTROLS FOR OPTION A CONNECTED DOCK
   ========================================================================== */
@media (min-width: 769px) {
  #controls,
  #controls *,
  #controls *::before,
  #controls *::after {
    box-sizing: border-box;
  }

  #controls {
    width: 276px !important;
    min-width: 276px !important;
    max-width: 276px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    padding: 8px 6px 8px 8px !important;
  }

  #controls > #nav-buttons,
  #controls .eic-connected-dock-nav {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    display: block !important;
  }

  .eic-dock-layers-bar {
    width: 100% !important;
    margin-bottom: 6px !important;
  }

  .eic-dock-layers-btn {
    width: 100% !important;
  }

  .eic-dock-tabs {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    width: 100% !important;
    max-width: 100% !important;
    background: #0e3e3d !important;
    padding: 6px 6px 0 6px !important;
    border-radius: 14px 14px 0 0 !important;
    gap: 4px !important;
    margin: 0 !important;
  }

  .eic-dock-tab {
    width: 100% !important;
    min-width: 0 !important;
    overflow: hidden;
    border: none !important;
    background: transparent;
    color: #cbd5e1;
    border-radius: 9px 9px 0 0 !important;
    padding: 7px 2px 6px !important;
    margin: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 3px !important;
    cursor: pointer;
  }

  .eic-dock-tab.active {
    background: #1d5251 !important;
    color: #ffffff !important;
  }

  /* Match inspector container width 1:1 with the 4-tab header above */
  #controls menu.idcreatorToolbar {
    width: 100% !important;
    min-width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  #controls .idcreator-container-inner {
    width: 100% !important;
    max-width: 100% !important;
    border-radius: 0 0 14px 14px !important;
    border: 1px solid #cbd5e1 !important;
    border-top: none !important;
    margin: 0 !important;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.12) !important;
  }

  #controls .toolbarTitle {
    width: 100% !important;
    border-radius: 0 !important;
    background: #1d5251 !important;
    color: #ffffff !important;
    font-size: 11.5px !important;
    font-weight: 700 !important;
    letter-spacing: 0.7px;
    padding: 6px 0 !important;
    margin: 0 !important;
  }

  /* Stretch every individual control row & widget inside the panel to fill the full width */
  #controls menu.idcreatorToolbar > .idcreator-container-inner > div,
  #controls menu.idcreatorToolbar ul,
  #controls menu.idcreatorToolbar li,
  #controls menu.idcreatorToolbar li > div,
  #controls menu.idcreatorToolbar .text-field,
  #controls menu.idcreatorToolbar textarea.form-control,
  #controls menu.idcreatorToolbar select.form-control,
  #controls menu.idcreatorToolbar input.form-control {
    width: 100% !important;
    max-width: 100% !important;
  }

  #controls menu.idcreatorToolbar ul {
    padding: 10px 12px !important;
  }

  #controls menu.idcreatorToolbar li:not([style*="display: none"]) {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 6px;
  }

  /* Override hardcoded inline width:216px on legacy sidebar wrappers */
  #controls menu.idcreatorToolbar div[style*="width:216px"],
  #controls menu.idcreatorToolbar div[style*="width: 216px"] {
    width: 100% !important;
  }
}


/* ==========================================================================
   PIXEL-EXACT FLUSH ALIGNMENT BETWEEN 4-TAB BAR AND INSPECTOR PANEL
   Eliminates any left/right overhang on either side
   ========================================================================== */
@media (min-width: 769px) {
  #controls {
    width: 268px !important;
    min-width: 268px !important;
    max-width: 268px !important;
    padding: 8px 0 8px 8px !important;
    margin: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    box-sizing: border-box !important;
  }

  #controls .eic-nav-buttons-root,
  #controls .eic-connected-dock-nav,
  #controls .eic-dock-layers-bar {
    width: 260px !important;
    min-width: 260px !important;
    max-width: 260px !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    box-sizing: border-box !important;
  }

  #controls .eic-dock-tabs {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    width: 260px !important;
    min-width: 260px !important;
    max-width: 260px !important;
    margin: 0 !important;
    padding: 5px 5px 0 5px !important;
    background: #0e3e3d !important;
    border-radius: 14px 14px 0 0 !important;
    gap: 3px !important;
    box-sizing: border-box !important;
  }

  #controls .eic-dock-tab {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 6px 0 !important;
    box-sizing: border-box !important;
  }

  #controls .eic-dock-sprite {
    width: 26px !important;
    height: 26px !important;
    min-width: 26px !important;
    max-width: 26px !important;
    margin: 0 auto !important;
  }

  /* Match menu.idcreatorToolbar & .idcreator-container-inner to exact 260px width with zero horizontal margin */
  #controls menu.idcreatorToolbar {
    width: 260px !important;
    min-width: 260px !important;
    max-width: 260px !important;
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box !important;
  }

  #controls .idcreator-container-inner {
    width: 260px !important;
    min-width: 260px !important;
    max-width: 260px !important;
    margin: 0 !important;
    border-radius: 0 0 14px 14px !important;
    border: 1px solid #cbd5e1 !important;
    border-top: none !important;
    box-sizing: border-box !important;
  }

  #controls .toolbarTitle {
    width: 100% !important;
    margin: 0 !important;
    border-radius: 0 !important;
    box-sizing: border-box !important;
  }
}

/* ==========================================================================
   DEDICATED CARD ITEMS COMPONENT (<card-items-panel>) STYLES
   ========================================================================== */
.eic-card-items-wrap {
  padding: 10px;
}

.eic-card-items-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  font-weight: 700;
  color: #475569;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  margin-bottom: 8px;
}

.eic-card-items-meta span {
  color: inherit !important;
  margin-right: 0 !important;
  font-size: inherit !important;
}

.eic-card-items-empty {
  background: #ffffff;
  border: 1px dashed #cbd5e1;
  border-radius: 9px;
  padding: 16px 10px;
  text-align: center;
  font-size: 12px;
  color: #64748b;
  line-height: 1.45;
}

.eic-card-items-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 380px;
  overflow-y: auto;
}

.eic-card-item-row {
  display: flex;
  align-items: center;
  gap: 7px;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 9px;
  padding: 6px 7px;
  cursor: pointer;
  transition: all 0.14s ease;
}

.eic-card-item-row:hover {
  border-color: #94a3b8;
}

.eic-card-item-row.active {
  border-color: #0d9488;
  background: #f0fdfa;
  box-shadow: 0 0 0 2px rgba(13, 148, 136, 0.14);
}

.eic-card-item-badge {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.eic-card-item-badge.kind-text { background: #dbeafe; color: #1d4ed8; }
.eic-card-item-badge.kind-photo { background: #dcfce7; color: #15803d; }
.eic-card-item-badge.kind-barcode { background: #fef3c7; color: #b45309; }
.eic-card-item-badge.kind-panel { background: #f3e8ff; color: #7e22ce; }

.eic-card-item-info {
  flex: 1;
  min-width: 0;
}

.eic-card-item-name {
  font-size: 12px;
  font-weight: 700;
  color: #0f172a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.eic-card-item-type {
  font-size: 10.5px;
  color: #64748b;
}

.eic-card-item-actions {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  flex-shrink: 0;
}

.eic-ci-btn {
  border: 1px solid #cbd5e1;
  background: #f8fafc;
  color: #334155;
  height: 22px;
  min-width: 20px;
  padding: 0 4px;
  border-radius: 5px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.eic-ci-btn:hover:not(:disabled) {
  background: #0e3e3d;
  border-color: #0e3e3d;
  color: #ffffff;
}

.eic-ci-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.eic-ci-btn.locked {
  background: #fef3c7;
  border-color: #f59e0b;
  color: #92400e;
}

.eic-ci-btn.danger:hover {
  background: #dc2626;
  border-color: #dc2626;
  color: #ffffff;
}


/* ==========================================================================
   V4 POLISH:
   1. Hide redundant .toolbarTitle headers (active tab/button already labels it)
   2. Fix info alert boxes when no element is selected on the card
   3. Light-grey Card Elements list rows + Front/Back side switcher
   ========================================================================== */
@media (min-width: 769px) {
  #controls .toolbarTitle {
    display: none !important;
  }

  /* Fix info alert boxes inside #toolbar-text, #toolbar-photo, #toolbar-panel */
  #controls menu.idcreatorToolbar li .alert.alert-info {
    display: block !important;
    width: 100% !important;
    margin: 6px 0 2px 0 !important;
    padding: 11px 12px !important;
    font-size: 12px !important;
    line-height: 1.48 !important;
    font-weight: 400 !important;
    color: #1e293b !important;
    background-color: #f8fafc !important;
    border: 1px solid #cbd5e1 !important;
    border-left: 3px solid #1d5251 !important;
    border-radius: 9px !important;
    text-align: left !important;
  }

  /* Remove extra leading <br> space inside legacy info alerts */
  #controls menu.idcreatorToolbar li .alert.alert-info > br:first-child {
    display: none !important;
  }

  /* Ensure photo preview + action buttons wrap neatly when an image is selected */
  #controls #toolbar-photo ul li {
    flex-wrap: wrap !important;
  }
}

/* Front / Back Side Switcher inside Card Elements */
.eic-ci-side-switch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  background: #e2e8f0;
  padding: 3px;
  border-radius: 9px;
  margin-bottom: 10px;
}

.eic-ci-side-btn {
  border: none;
  background: transparent;
  color: #475569;
  font-size: 12px;
  font-weight: 700;
  padding: 5px 8px;
  border-radius: 7px;
  cursor: pointer;
  transition: all 0.14s ease;
}

.eic-ci-side-btn:hover {
  color: #0f172a;
}

.eic-ci-side-btn.active {
  background: #1d5251;
  color: #ffffff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.18);
}

/* Light-Grey Card Elements Rows */
.eic-card-item-row {
  background: #f4f6f8 !important;
  border: 1px solid #d8dee6 !important;
}

.eic-card-item-row:hover {
  background: #eaeff4 !important;
  border-color: #94a3b8 !important;
}

.eic-card-item-row.active {
  background: #e6f4f1 !important;
  border-color: #0d9488 !important;
  box-shadow: 0 0 0 2px rgba(13, 148, 136, 0.14) !important;
}


/* ==========================================================================
   V5 FIXES:
   1. Ensure Crop / Save / Text modals always render ABOVE .modal-backdrop
   2. Collapsible Info / Tip toggle button in sidebar inspectors
   3. Compact Angle pill input inside #topControlBar
   ========================================================================== */
.eic-modal {
  z-index: 1065 !important;
}

.eic-tip-li {
  margin-top: 8px !important;
  margin-bottom: 0 !important;
}

.eic-tip-toggle-btn {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 6px;
  background: #e2e8f0;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 5px 9px;
  font-size: 11.5px;
  font-weight: 700;
  color: #1e293b;
  cursor: pointer;
  transition: background 0.14s ease;
}

.eic-tip-toggle-btn:hover {
  background: #cbd5e1;
}

.eic-tip-q {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #1d5251;
  color: #ffffff !important;
  font-size: 11px !important;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 !important;
  flex-shrink: 0;
}

.eic-tip-card {
  margin-top: 6px !important;
  margin-bottom: 0 !important;
}

.eic-pill-angle-wrap {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 32px;
  padding: 0 8px;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 999px;
  color: #1e293b;
}

.eic-pill-angle-input {
  width: 44px;
  height: 24px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  padding: 0 4px;
  font-size: 12px;
  font-weight: 700;
  color: #0f172a;
  text-align: center;
  background: #f8fafc;
}

.eic-pill-angle-input:focus {
  outline: none;
  border-color: #0d9488;
  background: #ffffff;
}


/* ==========================================================================
   V6 POLISH:
   1. Hover-expanding labels on secondary pill buttons (Undo stays always visible)
   2. Space-preserving Slot On | Slot Off segmented pill
   ========================================================================== */
.eic-pill-expandable {
  gap: 0 !important;
  transition: all 0.18s ease !important;
}

.eic-pill-hover-label {
  max-width: 0;
  opacity: 0;
  overflow: hidden;
  white-space: nowrap;
  margin: 0 !important;
  font-size: 12px !important;
  font-weight: 600;
  color: inherit !important;
  transition: max-width 0.2s ease, opacity 0.16s ease, margin-left 0.2s ease;
}

@media (min-width: 769px) {
  .eic-pill-expandable:hover .eic-pill-hover-label,
  .eic-pill-expandable:focus-within .eic-pill-hover-label {
    max-width: 74px;
    opacity: 1;
    margin-left: 5px !important;
  }

  .eic-pill-angle-wrap.eic-pill-expandable:hover .eic-pill-hover-label,
  .eic-pill-angle-wrap.eic-pill-expandable:focus-within .eic-pill-hover-label {
    margin-right: 4px !important;
  }
}

/* Space-preserving Slot On | Slot Off segmented toggle */
.eic-slot-seg {
  display: inline-flex;
  align-items: center;
  background: #e2e8f0;
  padding: 2px;
  border-radius: 999px;
  border: 1px solid #cbd5e1;
  height: 32px;
}

.eic-slot-seg-btn {
  border: none;
  background: transparent;
  color: #475569;
  font-size: 11.5px;
  font-weight: 700;
  height: 26px;
  padding: 0 9px;
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.14s ease;
}

.eic-slot-seg-btn:hover {
  color: #0f172a;
}

.eic-slot-seg-btn.active {
  background: #ffffff;
  color: #0f172a;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.12), inset 0 0 0 1px #cbd5e1;
}


/* ==========================================================================
   V7 FIX:
   1. Exact 260px flush width on .eic-dock-layers-btn above #controls
   ========================================================================== */
@media (min-width: 769px) {
  #controls .eic-dock-layers-bar {
    width: 260px !important;
    min-width: 260px !important;
    max-width: 260px !important;
    margin: 0 0 6px 0 !important;
    padding: 0 !important;
    display: block !important;
    box-sizing: border-box !important;
  }

  #controls .eic-dock-layers-btn {
    width: 260px !important;
    min-width: 260px !important;
    max-width: 260px !important;
    margin: 0 !important;
    padding: 0 12px !important;
    box-sizing: border-box !important;
  }
}


/* ==========================================================================
   V8 POLISH:
   Top-placed collapsible Help Tip spacing inside inspector panels
   ========================================================================== */
.eic-tip-li {
  margin-top: 0 !important;
  margin-bottom: 8px !important;
}


/* ==========================================================================
   V12 ADMIN WORKSPACE ISOLATION (body:has(#adminPanel))
   ========================================================================== */
body:has(#adminPanel) #controls {
  width: 326px !important;
  min-width: 326px !important;
  max-width: 326px !important;
  padding: 8px !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 8px !important;
}

body:has(#adminPanel) #controls .eic-nav-buttons-root,
body:has(#adminPanel) #controls .eic-connected-dock-nav,
body:has(#adminPanel) #controls .eic-dock-layers-bar,
body:has(#adminPanel) #controls .eic-dock-layers-btn,
body:has(#adminPanel) #controls .eic-dock-tabs {
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
}

body:has(#adminPanel) #controls menu.idcreatorToolbar {
  width: 100% !important;
  min-width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  margin: 0 !important;
}

body:has(#adminPanel) #controls .idcreator-container-inner {
  width: 100% !important;
  min-width: 100% !important;
  max-width: 100% !important;
  min-height: unset !important;
  height: auto !important;
  border: 1px solid #cbd5e1 !important;
}

body:has(#adminPanel) #controls #zoomPan .idcreator-container-inner,
body:has(#adminPanel) #controls #cdp .idcreator-container-inner {
  border-radius: 10px !important;
}

body:has(#adminPanel) #controls #zoomPan .toolbarTitle,
body:has(#adminPanel) #controls #cdp .toolbarTitle {
  display: block !important;
  border-radius: 9px 9px 0 0 !important;
  background: #1d5251 !important;
  color: #ffffff !important;
  font-size: 12.5px !important;
  padding: 6px 10px !important;
}

/* Hide any legacy Bootstrap Toggle wrapper around #punchonToggle */
#buttonPunchslot .toggle,
#punchonToggle + .toggle-group {
  display: none !important;
}

/* Keep Admin #topControlBar full-width bar (Undo, Punch Slot, Vertical Orientation) */
body:has(#adminPanel) #topControlBar {
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 0 8px 0 !important;
  padding: 4px 10px !important;
  min-height: 38px !important;
  height: auto !important;
  flex-wrap: wrap !important;
  gap: 6px !important;
  background-color: #eaeaea !important;
  border: none !important;
  border-radius: 0 0 7px 7px !important;
  box-shadow: 0 0 1px 0 rgb(134, 127, 127) !important;
  justify-content: space-between !important;
}

body:has(#adminPanel) #topControlBar > div:first-child {
  width: auto !important;
  justify-content: flex-start !important;
  gap: 8px !important;
}

body:has(#adminPanel) #topControlBar #buttonPunchslot {
  border-left: none !important;
  padding-left: 0 !important;
  margin-left: 0 !important;
}


/* ==========================================================================
   V13 POLISH:
   1. Wider #controls (290px inner width) with flush Card Elements button & 4 tabs above
   2. Larger, easier-to-read text inside Help / Tip boxes (.eic-tip-card)
   ========================================================================== */
@media (min-width: 769px) {
  #controls {
    width: 298px !important;
    min-width: 298px !important;
    max-width: 298px !important;
    padding: 8px 0 8px 8px !important;
  }

  #controls .eic-nav-buttons-root,
  #controls .eic-connected-dock-nav,
  #controls .eic-dock-layers-bar,
  #controls .eic-dock-layers-btn,
  #controls .eic-dock-tabs,
  #controls menu.idcreatorToolbar,
  #controls .idcreator-container-inner {
    width: 290px !important;
    min-width: 290px !important;
    max-width: 290px !important;
  }

  #controls .eic-dock-layers-btn {
    height: 36px !important;
    font-size: 13px !important;
    margin-bottom: 6px !important;
  }

  #controls .eic-dock-tab-lbl {
    font-size: 11.5px !important;
  }

  #controls menu.idcreatorToolbar li .alert.alert-info,
  #controls .eic-tip-card {
    font-size: 13px !important;
    line-height: 1.52 !important;
    padding: 12px 13px !important;
  }
}

.eic-tip-toggle-btn {
  font-size: 12.5px !important;
  padding: 6px 10px !important;
}

.eic-tip-card {
  font-size: 13px !important;
  line-height: 1.52 !important;
}


/* ==========================================================================
   V14 POLISH:
   1. Lighter, higher-contrast active states for Card Elements & Front/Back Side tabs
   2. Larger Text | Photo | Panel | Barcode folder icons (34px)
   3. Tidier, evenly aligned control flow inside #controls
   ========================================================================== */
@media (min-width: 769px) {
  /* Lighter, crisp active state on Card Elements button */
  #controls .eic-dock-layers-btn {
    background: #ffffff !important;
    color: #0e3e3d !important;
    border: 1.5px solid #cbd5e1 !important;
    border-radius: 10px !important;
    transition: all 0.15s ease !important;
  }

  #controls .eic-dock-layers-btn:hover {
    background: #f0fdfa !important;
    border-color: #0d9488 !important;
    color: #0f766e !important;
  }

  #controls .eic-dock-layers-btn.active {
    background: #ccfbf1 !important;
    border-color: #0d9488 !important;
    color: #0e3e3d !important;
    box-shadow: 0 2px 6px rgba(13, 148, 136, 0.18) !important;
  }

  /* Larger Text | Photo | Panel | Barcode folder icons */
  #controls .eic-dock-tabs {
    padding: 7px 6px 0 6px !important;
    gap: 4px !important;
  }

  #controls .eic-dock-tab {
    padding: 8px 2px 7px !important;
    gap: 5px !important;
  }

  #controls .eic-dock-sprite {
    width: 34px !important;
    height: 34px !important;
    min-width: 34px !important;
    max-width: 34px !important;
    background-size: contain !important;
  }

  #controls .eic-dock-tab-lbl {
    font-size: 12px !important;
    letter-spacing: 0.2px;
  }

  /* Tidy, structured flow inside inspector panels */
  #controls menu.idcreatorToolbar ul {
    padding: 12px 14px !important;
    display: flex;
    flex-direction: column;
    gap: 8px;
  }

  #controls menu.idcreatorToolbar li:not([style*="display: none"]) {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 0 !important;
    min-height: 28px;
  }

  #controls menu.idcreatorToolbar span {
    font-size: 12.5px !important;
    font-weight: 600;
    color: #334155 !important;
    margin-right: 0 !important;
  }

  #controls menu.idcreatorToolbar span.separator {
    margin: 4px 0 !important;
    border: none !important;
    border-top: 1px solid #cbd5e1 !important;
    height: 1px;
  }

  #controls menu.idcreatorToolbar input[type="number"],
  #controls menu.idcreatorToolbar select.btn,
  #controls menu.idcreatorToolbar select.form-control {
    border: 1px solid #cbd5e1 !important;
    border-radius: 7px !important;
    background-color: #ffffff !important;
    color: #0f172a !important;
    font-size: 12.5px !important;
    height: 30px !important;
    padding: 2px 8px !important;
  }

  #controls menu.idcreatorToolbar input[type="color"] {
    width: 34px !important;
    height: 30px !important;
    padding: 2px !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 7px !important;
    background: #ffffff !important;
    cursor: pointer;
  }

  #controls menu.idcreatorToolbar .btn-toolbar {
    background: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 7px !important;
    padding: 4px 7px !important;
    margin-left: 0 !important;
  }

  #controls menu.idcreatorToolbar .btn-toolbar:hover {
    background: #f0fdfa !important;
    border-color: #0d9488 !important;
  }

  #controls #toolbar-photo ul li:has(#photo-preview-img) {
    justify-content: flex-start !important;
    gap: 8px !important;
    padding: 6px 0 !important;
  }

  #controls #photo-preview-img {
    width: 72px !important;
    height: 72px !important;
    object-fit: cover;
    border: 1px solid #cbd5e1;
    border-radius: 10px !important;
  }
}

/* Lighter, crisp Front Side | Back Side segmented toggle in Card Elements */
.eic-ci-side-switch {
  background: #e2e8f0 !important;
  padding: 3px !important;
  border-radius: 10px !important;
  border: 1px solid #cbd5e1 !important;
}

.eic-ci-side-btn {
  color: #475569 !important;
  font-weight: 600 !important;
  border-radius: 8px !important;
  padding: 6px 8px !important;
}

.eic-ci-side-btn.active {
  background: #ffffff !important;
  color: #0e3e3d !important;
  font-weight: 700 !important;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.14), inset 0 0 0 1.5px #0d9488 !important;
}


/* ==========================================================================
   V15 POLISH:
   1. Lighter white background on Card Elements list rows (.eic-card-item-row)
   2. Distinct warm-amber active state on Card Elements button (.eic-dock-layers-btn.active)
   3. Larger control & tab icons (38px folder icons, 18px toolbar/pill icons)
   4. Photo inspector: 104x104px thumbnail with larger Replace button + Crop stacked right beside it
   ========================================================================== */
.eic-card-item-row {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04) !important;
}

.eic-card-item-row:hover {
  background: #f8fafc !important;
  border-color: #94a3b8 !important;
}

.eic-card-item-row.active {
  background: #f0fdfa !important;
  border-color: #0d9488 !important;
  box-shadow: 0 0 0 2px rgba(13, 148, 136, 0.16) !important;
}

/* Distinct active color for Card Elements button so it stands apart from the teal tabs */
@media (min-width: 769px) {
  #controls .eic-dock-layers-btn.active {
    background: #fef3c7 !important;
    border-color: #d97706 !important;
    color: #92400e !important;
    box-shadow: 0 2px 6px rgba(217, 119, 6, 0.18) !important;
  }

  /* Slightly larger folder tab icons (38px) & inspector icons */
  #controls .eic-dock-sprite {
    width: 38px !important;
    height: 38px !important;
    min-width: 38px !important;
    max-width: 38px !important;
    background-size: contain !important;
  }

  #controls menu.idcreatorToolbar .btn-toolbar svg {
    width: 1.55em !important;
    height: 1.55em !important;
  }
}

.eic-pill-btn svg {
  width: 17px !important;
  height: 17px !important;
}

/* Photo Selected Hero Layout: Large Thumbnail Left + Stacked Replace (larger) & Crop Right */
#controls .eic-photo-hero-li:not(:has(#photo-preview-img[src]:not([src=""]))) {
  display: none !important;
}

#controls .eic-photo-hero-li {
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  gap: 8px !important;
  padding: 4px 0 !important;
}

#controls .eic-photo-hero-top {
  display: flex !important;
  align-items: stretch !important;
  gap: 10px !important;
  width: 100% !important;
}

#controls #photo-preview-img.eic-photo-hero-thumb {
  width: 104px !important;
  height: 104px !important;
  min-width: 104px !important;
  object-fit: cover !important;
  border-radius: 12px !important;
  border: 1.5px solid #cbd5e1 !important;
  background: #ffffff !important;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.08) !important;
}

#controls .eic-photo-hero-stack {
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  gap: 7px !important;
  flex: 1 1 auto !important;
  min-width: 0 !important;
}

/* Never force display:block !important on Vue v-show wrappers! */
#controls .eic-photo-hero-stack > div,
#controls .eic-photo-hero-bg-row > div {
  width: 100% !important;
}

/* Larger primary Replace button */
#controls #photo-replace .eic-photo-action-btn {
  width: 100% !important;
  min-height: 42px !important;
  padding: 8px 12px !important;
  font-size: 13.5px !important;
  font-weight: 700 !important;
  background-color: #0e3e3d !important;
  border-color: #0e3e3d !important;
  color: #ffffff !important;
}

#controls #photo-replace .eic-photo-action-btn:hover {
  background-color: #0d9488 !important;
  border-color: #0d9488 !important;
}

/* Crop button neatly stacked directly under Replace */
#controls #btnCrop .eic-photo-action-btn {
  width: 100% !important;
  min-height: 34px !important;
  padding: 5px 10px !important;
  font-size: 12.5px !important;
  font-weight: 600 !important;
}

/* Full-width Set as Background button below */
#controls .eic-photo-hero-bg-row {
  width: 100% !important;
}

#controls #btnSetBackground .eic-photo-action-btn {
  width: 100% !important;
  min-height: 34px !important;
}


/* ==========================================================================
   V17 POLISH:
   1. Photo thumbnails & Panel color swatches inside Card Elements list rows
   2. Distinct light sky-blue active color on Card Elements button
   3. Slightly larger controls tab icons (42px)
   ========================================================================== */
.eic-card-item-badge.has-thumb {
  width: 28px;
  height: 28px;
  padding: 0;
  overflow: hidden;
  background: #ffffff !important;
  border: 1px solid #cbd5e1;
}

.eic-card-item-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.eic-card-item-badge.has-swatch {
  width: 28px;
  height: 28px;
  border: 1.5px solid rgba(15, 23, 42, 0.22);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35);
}

@media (min-width: 769px) {
  /* Distinct light sky-ice active state for Card Elements button */
  #controls .eic-dock-layers-btn.active {
    background: #e0f2fe !important;
    border-color: #0284c7 !important;
    color: #075985 !important;
    box-shadow: 0 2px 6px rgba(2, 132, 199, 0.16) !important;
  }

  /* Slightly larger controls tab icons (42px) */
  #controls .eic-dock-sprite {
    width: 42px !important;
    height: 42px !important;
    min-width: 42px !important;
    max-width: 42px !important;
    background-size: contain !important;
  }
}


/* ==========================================================================
   V18 POLISH:
   1. Card Elements active button: exact #effdfa background
   2. Bigger, light-tinted Replace button (not dark)
   3. Zero empty gaps when AI Portrait / Set as Background / Legacy rows are hidden
   4. Clean, modern, unified styling across Text, Panel, and Barcode inspectors
   ========================================================================== */
@media (min-width: 769px) {
  #controls .eic-dock-layers-btn.active {
    background: #effdfa !important;
    border-color: #0d9488 !important;
    color: #0e3e3d !important;
    box-shadow: 0 2px 6px rgba(13, 148, 136, 0.16) !important;
  }
}

/* Bigger, light-tinted Replace button (not dark) */
#controls #photo-replace .eic-photo-action-btn {
  width: 100% !important;
  min-height: 46px !important;
  padding: 9px 14px !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  background-color: #effdfa !important;
  border: 1.5px solid #0d9488 !important;
  color: #0e3e3d !important;
  box-shadow: 0 1px 3px rgba(13, 148, 136, 0.12) !important;
}

#controls #photo-replace .eic-photo-action-btn:hover {
  background-color: #ccfbf1 !important;
  border-color: #0f766e !important;
  color: #0e3e3d !important;
}

/* Collapse empty <li> / wrapper rows when child controls (AI, Set as Background, etc.) are hidden */
#controls menu.idcreatorToolbar li:empty,
#controls .eic-ai-portrait-li:empty,
#controls .eic-photo-hero-bg-row:empty,
#controls .eic-photo-hero-bg-row:not(:has(button)) {
  display: none !important;
  margin: 0 !important;
  padding: 0 !important;
  min-height: 0 !important;
}

/* Hide legacy separator lines inside #toolbar-photo if any remain */
#controls #toolbar-photo li:has(> span.separator:only-child) {
  display: none !important;
}

/* ==========================================================================
   TIDY & MODERNIZE BARCODE, PANEL & TEXT INSPECTORS
   ========================================================================== */
@media (min-width: 769px) {
  /* Uniform sleek buttons inside Text, Panel & Barcode inspectors */
  #controls menu.idcreatorToolbar button.btn-light,
  #controls menu.idcreatorToolbar button.btn-secondary,
  #controls menu.idcreatorToolbar button.btn-dark,
  #controls menu.idcreatorToolbar button.btn-info,
  #controls menu.idcreatorToolbar button.btn-outline-dark,
  #controls menu.idcreatorToolbar button.btn-outline-secondary {
    border-radius: 8px !important;
    font-weight: 600 !important;
    font-size: 12.5px !important;
    min-height: 32px;
    transition: all 0.14s ease;
  }

  /* Top primary Add CTA bar inside Text, Photo, Panel */
  #controls menu.idcreatorToolbar > .idcreator-container-inner > div > ul[style*="#1d5251"],
  #controls menu.idcreatorToolbar > .idcreator-container-inner > ul[style*="#1d5251"] {
    padding: 8px 12px !important;
    background-color: #1d5251 !important;
  }

  #controls menu.idcreatorToolbar ul[style*="#1d5251"] button.btn-light {
    background: #ffffff !important;
    color: #0e3e3d !important;
    border: none !important;
    font-weight: 700 !important;
    min-height: 34px !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.18);
  }

  #controls menu.idcreatorToolbar ul[style*="#1d5251"] button.btn-light:hover {
    background: #effdfa !important;
    color: #0e3e3d !important;
  }

  /* Barcode & QR Inspector tidy layout */
  #controls #toolbar-barcode ul {
    padding: 12px !important;
    gap: 9px !important;
  }

  #controls #toolbar-barcode li {
    flex-wrap: wrap !important;
    gap: 6px !important;
  }

  #controls #toolbar-barcode input[type="text"],
  #controls #toolbar-barcode textarea,
  #controls #toolbar-barcode select {
    width: 100% !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 8px !important;
    padding: 6px 10px !important;
    font-size: 12.5px !important;
    background: #ffffff !important;
    color: #0f172a !important;
  }

  #controls #toolbar-barcode input[type="text"]:focus,
  #controls #toolbar-barcode textarea:focus,
  #controls #toolbar-barcode select:focus {
    outline: none !important;
    border-color: #0d9488 !important;
    box-shadow: 0 0 0 2px rgba(13, 148, 136, 0.16) !important;
  }

  #controls #toolbar-barcode button {
    width: 100% !important;
    justify-content: center !important;
  }

  /* Panel Inspector tidy rows */
  #controls #toolbar-panel ul {
    padding: 12px !important;
    gap: 8px !important;
  }

  #controls #toolbar-panel li {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 9px;
    padding: 7px 10px !important;
  }

  #controls #toolbar-panel li.eic-tip-li,
  #controls #toolbar-panel li:has(> span.separator:only-child),
  #controls #toolbar-panel li:has(> input[style*="display: none"]:first-child) {
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
  }

  #controls #toolbar-panel li:has(> input[style*="display: none"]:first-child) {
    display: none !important;
  }

  /* Text Inspector tidy textarea & grouped control rows */
  #controls #toolbar-text textarea.text-field {
    border: 1.5px solid #cbd5e1 !important;
    border-radius: 9px !important;
    padding: 8px 10px !important;
    font-size: 13px !important;
    background: #ffffff !important;
    color: #0f172a !important;
    box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.04);
  }

  #controls #toolbar-text textarea.text-field:focus {
    border-color: #0d9488 !important;
    box-shadow: 0 0 0 2px rgba(13, 148, 136, 0.16) !important;
  }
}


/* ==========================================================================
   V19 POLISH:
   1. Compact, clean spacing around "Add new panel" / "Add new text" / "Add new image"
   2. Replace button matches Crop button colors (#ffffff / #0e3e3d), just slightly larger
   3. Panel-style white card rows on Rounded Corners, Transparency & Barcode Color
   4. Fine separator above AI Portrait Studio + clean card container
   ========================================================================== */
@media (min-width: 769px) {
  /* Fix bloated space around Add new panel / Add new text / Add new image */
  #controls menu.idcreatorToolbar > .idcreator-container-inner > div > ul[style*="#1d5251"],
  #controls menu.idcreatorToolbar > .idcreator-container-inner > ul[style*="#1d5251"] {
    padding: 6px 10px !important;
    margin: 0 !important;
    background-color: #1d5251 !important;
    display: block !important;
  }

  #controls menu.idcreatorToolbar ul[style*="#1d5251"] li {
    margin: 0 !important;
    padding: 0 !important;
    min-height: 0 !important;
    display: block !important;
  }

  #controls menu.idcreatorToolbar ul[style*="#1d5251"] button.btn-light {
    width: 100% !important;
    min-height: 31px !important;
    padding: 4px 10px !important;
    margin: 0 !important;
    font-size: 12.5px !important;
    font-weight: 700 !important;
    line-height: 1.25 !important;
  }
}

/* Replace button: same clean colors as Crop button, just a bit larger */
#controls #photo-replace .eic-photo-action-btn {
  width: 100% !important;
  min-height: 40px !important;
  padding: 7px 12px !important;
  font-size: 13.5px !important;
  font-weight: 700 !important;
  color: #0e3e3d !important;
  background-color: #ffffff !important;
  border: 1px solid #b8c7c6 !important;
  border-radius: 7px !important;
  box-shadow: 0 1px 2px rgba(14, 62, 61, 0.08) !important;
}

#controls #photo-replace .eic-photo-action-btn:hover {
  background-color: #0e3e3d !important;
  border-color: #0e3e3d !important;
  color: #ffffff !important;
}

/* Panel-style white card rows for Rounded Corners, Transparency, Barcode Color */
@media (min-width: 769px) {
  #controls menu.idcreatorToolbar li.eic-panel-card-row {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 8px !important;
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 9px !important;
    padding: 7px 10px !important;
    margin: 0 !important;
  }

  #controls #toolbar-barcode li.eic-panel-card-row {
    flex-wrap: nowrap !important;
  }
}

/* Fine separator & panel-style card for AI Portrait Studio */
.eic-ai-portrait-box {
  width: 100%;
}

.eic-fine-separator {
  width: 100%;
  height: 1px;
  background-color: #cbd5e1;
  margin: 2px 0 8px 0;
}

.eic-ai-portrait-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 9px;
  padding: 8px 10px;
}


/* ==========================================================================
   V20 POLISH:
   1. Fix bloated space around "Add new panel" (#paneladd ul)
   2. Photo Boost button styling on customer & admin photo inspector
   3. Clean Barcode / QR Color swatches (20x20 circles + custom '+' swatch)
   4. Clean Text Inspector card rows + Live Font Preview Dropdown
   ========================================================================== */
@media (min-width: 769px) {
  /* Force compact, crisp bar around Add new panel / Add new text / Add new image */
  #controls #paneladd ul,
  #controls #text-add ul,
  #controls #toolbar-panel ul[style*="#1d5251"],
  #controls #toolbar-text ul[style*="#1d5251"],
  #controls #toolbar-photo ul[style*="#1d5251"] {
    padding: 6px 10px !important;
    margin: 0 !important;
    min-height: 0 !important;
    height: auto !important;
    background-color: #1d5251 !important;
    display: block !important;
  }

  #controls #paneladd ul li,
  #controls #text-add ul li,
  #controls #toolbar-panel ul[style*="#1d5251"] li,
  #controls #toolbar-text ul[style*="#1d5251"] li,
  #controls #toolbar-photo ul[style*="#1d5251"] li {
    padding: 0 !important;
    margin: 0 !important;
    min-height: 0 !important;
    height: auto !important;
    background: transparent !important;
    border: none !important;
    display: block !important;
  }

  #controls #paneladd button,
  #controls #text-add button,
  #controls #photo-add button {
    width: 100% !important;
    min-height: 31px !important;
    height: 31px !important;
    padding: 4px 10px !important;
    margin: 0 !important;
    font-size: 12.5px !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
  }
}

/* Photo Boost & Set as Background stack inside .eic-photo-hero-bg-row */
#controls .eic-photo-hero-bg-row {
  display: flex !important;
  flex-direction: column !important;
  gap: 6px !important;
  width: 100% !important;
}

#controls #photo-boost .eic-photo-action-btn {
  width: 100% !important;
  min-height: 34px !important;
}

#controls #photo-boost .eic-photo-action-btn.is-boosted {
  background-color: #effdfa !important;
  border-color: #0d9488 !important;
  color: #0e3e3d !important;
  box-shadow: inset 0 0 0 1px #0d9488 !important;
}

/* Clean Barcode / QR Color Swatches (override #toolbar-barcode button width:100%) */
#controls #toolbar-barcode #eic-barcode-color-li {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  flex-wrap: nowrap !important;
  gap: 8px !important;
  padding: 7px 10px !important;
}

#controls #toolbar-barcode .eic-bc-color-lbl {
  font-size: 12.5px !important;
  font-weight: 600 !important;
  color: #334155 !important;
  white-space: nowrap !important;
}

#controls #toolbar-barcode .eic-bc-swatch-group {
  display: inline-flex !important;
  align-items: center !important;
  gap: 5px !important;
  flex-shrink: 0 !important;
}

#controls #toolbar-barcode button.eic-bc-swatch {
  width: 20px !important;
  min-width: 20px !important;
  max-width: 20px !important;
  height: 20px !important;
  min-height: 20px !important;
  padding: 0 !important;
  margin: 0 !important;
  border-radius: 50% !important;
  border: 1.5px solid #cbd5e1 !important;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.15) !important;
  cursor: pointer !important;
  transition: transform 0.12s ease !important;
}

#controls #toolbar-barcode button.eic-bc-swatch:hover {
  transform: scale(1.14) !important;
  border-color: #0d9488 !important;
}

#controls #toolbar-barcode .eic-bc-custom-pill {
  position: relative !important;
  width: 20px !important;
  height: 20px !important;
  margin: 0 !important;
  border-radius: 50% !important;
  background: conic-gradient(#ef4444, #f59e0b, #10b981, #3b82f6, #8b5cf6, #ef4444) !important;
  border: 1.5px solid #cbd5e1 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  overflow: hidden !important;
}

#controls #toolbar-barcode .eic-bc-custom-pill input[type="color"] {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  opacity: 0 !important;
  cursor: pointer !important;
  padding: 0 !important;
  border: none !important;
}

#controls #toolbar-barcode .eic-bc-custom-pill span {
  color: #ffffff !important;
  font-size: 12px !important;
  font-weight: 800 !important;
  line-height: 1 !important;
  margin: 0 !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.55) !important;
  pointer-events: none !important;
}

/* ==========================================================================
   CLEAN TEXT INSPECTOR CARDS + LIVE FONT PREVIEW PICKER
   ========================================================================== */
@media (min-width: 769px) {
  #controls #toolbar-text ul {
    padding: 12px !important;
    gap: 8px !important;
  }

  /* Group Size + Color row as a sleek white card matching Panel & Photo */
  #controls #toolbar-text ul > li:has(#text-size) {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 9px !important;
    padding: 7px 10px !important;
    margin: 0 !important;
  }

  #controls #toolbar-text ul > li:has(#textStyle) {
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  #controls #toolbar-text #text-size > div,
  #controls #toolbar-text #textcolorpicker > div {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
  }

  #controls #toolbar-text #textcolorpicker span {
    width: auto !important;
    text-align: left !important;
  }
}

.eic-font-picker-root {
  width: 100%;
  position: relative;
}

.eic-font-dropdown-wrap {
  position: relative;
  flex: 1 1 auto;
  min-width: 0;
}

.eic-font-trigger-btn {
  width: 100%;
  min-height: 32px;
  padding: 4px 9px;
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  cursor: pointer;
  color: #0f172a;
  transition: border-color 0.14s ease, background 0.14s ease;
}

.eic-font-trigger-btn:hover {
  background: #ffffff;
  border-color: #0d9488;
}

.eic-font-preview-txt {
  font-size: 14px !important;
  color: #0f172a !important;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin: 0 !important;
}

.eic-font-caret {
  font-size: 11px !important;
  color: #64748b !important;
  margin: 0 !important;
  flex-shrink: 0;
}

.eic-font-menu {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  max-height: 240px;
  overflow-y: auto;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.22);
  padding: 4px;
  z-index: 120;
}

.eic-font-option {
  width: 100%;
  border: none;
  background: transparent;
  padding: 6px 9px;
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  text-align: left;
  cursor: pointer;
  color: #0f172a;
  transition: background 0.12s ease;
}

.eic-font-option:hover {
  background: #f1f5f9;
}

.eic-font-option.active {
  background: #effdfa;
  color: #0e3e3d;
}

.eic-font-option-name {
  font-size: 15px !important;
  line-height: 1.3;
  color: inherit !important;
  margin: 0 !important;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.eic-font-check {
  font-size: 12px !important;
  font-weight: 800;
  color: #0d9488 !important;
  margin: 0 !important;
  flex-shrink: 0;
}


/* ==========================================================================
   V21 FIXES:
   1. Restore Admin Mappings & Fields (#cdp) & Zoom (#zoomPan) layout from global
      customer inspector overrides
   2. Light mint hover state on Photo Action buttons (Replace, Crop, Photo Boost,
      Set as Background) instead of dark fill
   ========================================================================== */

/* Light, crisp hover state on Photo Action buttons (no dark fill on hover) */
.eic-photo-action-btn:hover,
#controls #photo-replace .eic-photo-action-btn:hover,
#controls #btnCrop .eic-photo-action-btn:hover,
#controls #photo-boost .eic-photo-action-btn:hover,
#controls #btnSetBackground .eic-photo-action-btn:hover {
  background-color: #effdfa !important;
  border-color: #0d9488 !important;
  color: #0e3e3d !important;
  box-shadow: 0 2px 5px rgba(13, 148, 136, 0.14) !important;
}

/* Restore Admin Mappings & Fields (#cdp) & Zoom (#zoomPan) clean layout */
@media (min-width: 769px) {
  body:has(#adminPanel) #controls #cdp .idcreator-container-inner > div {
    padding: 10px !important;
  }

  body:has(#adminPanel) #controls #cdp ul.list-group {
    padding: 4px 2px !important;
    display: block !important;
  }

  body:has(#adminPanel) #controls #cdp ul.list-group > li.list-group-item {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    justify-content: flex-start !important;
    gap: 6px !important;
    padding: 8px !important;
    margin-bottom: 8px !important;
    background-color: #f8f9fa !important;
    border: 1px solid #ced4da !important;
    border-radius: 6px !important;
  }

  body:has(#adminPanel) #controls #cdp ul.list-group > li.list-group-item > div {
    width: 100% !important;
  }

  body:has(#adminPanel) #controls #cdp ul.list-group > li.list-group-item > div:last-child {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 8px !important;
  }

  body:has(#adminPanel) #controls #cdp span.badge {
    color: #ffffff !important;
    min-width: 24px !important;
    padding: 5px 7px !important;
    font-size: 11px !important;
  }

  body:has(#adminPanel) #controls #cdp span.badge-warning {
    color: #212529 !important;
  }

  body:has(#adminPanel) #controls #cdp input[type="number"] {
    width: 54px !important;
    height: 21px !important;
    padding: 1px 4px !important;
    font-size: 11px !important;
    border-radius: 3px !important;
  }

  body:has(#adminPanel) #controls #cdp select.form-control-sm {
    height: 28px !important;
    font-size: 12px !important;
    padding: 2px 6px !important;
  }

  body:has(#adminPanel) #controls #cdp .btn-sm {
    min-height: 0 !important;
    padding: 2px 6px !important;
    font-size: 11px !important;
  }

  body:has(#adminPanel) #controls #zoomPan ul {
    padding: 10px 12px !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 7px !important;
  }

  body:has(#adminPanel) #controls #zoomPan li {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    min-height: 0 !important;
  }

  body:has(#adminPanel) #controls #zoomPan input.form-control-sm,
  body:has(#adminPanel) #controls #zoomPan select.form-control-sm {
    width: 72px !important;
    height: 25px !important;
    padding: 2px 5px !important;
    font-size: 12px !important;
  }
}


/* ==========================================================================
   V23 CROPPER.JS MOBILE TOUCH & MASK FIXES
   ========================================================================== */
.eic-modal .eic-dark-stage {
  touch-action: none !important;
  overscroll-behavior: contain;
}

.eic-modal .cropper-container {
  touch-action: none !important;
  max-width: 100% !important;
  max-height: 100% !important;
}

.eic-modal .cropper-modal {
  background-color: #000000 !important;
  opacity: 0.68 !important;
}

.eic-modal .cropper-view-box {
  outline: 2px solid #34d399 !important;
  outline-color: rgba(52, 211, 153, 0.95) !important;
}

.eic-modal .cropper-face {
  background-color: transparent !important;
  opacity: 1 !important;
}

.eic-modal .cropper-dashed {
  border-color: rgba(255, 255, 255, 0.55) !important;
}

@media (max-width: 768px) {
  /* Larger touch-friendly crop handles on mobile */
  .eic-modal .cropper-point {
    width: 14px !important;
    height: 14px !important;
    opacity: 0.95 !important;
    border-radius: 50% !important;
    background-color: #34d399 !important;
    border: 2px solid #0f172a !important;
  }

  .eic-modal .cropper-point.point-nw { top: -7px !important; left: -7px !important; }
  .eic-modal .cropper-point.point-ne { top: -7px !important; right: -7px !important; }
  .eic-modal .cropper-point.point-sw { bottom: -7px !important; left: -7px !important; }
  .eic-modal .cropper-point.point-se { bottom: -7px !important; right: -7px !important; }
  .eic-modal .cropper-point.point-n,
  .eic-modal .cropper-point.point-s,
  .eic-modal .cropper-point.point-e,
  .eic-modal .cropper-point.point-w {
    display: none !important;
  }
}


/* ==========================================================================
   V24 POLISH:
   Subtle active state on Text Align & Style buttons (#effdfa + #0d9488 border)
   ========================================================================== */
#controls menu.idcreatorToolbar .btn-toolbar.active,
#controls menu.idcreatorToolbar .btn-toolbar.button-active,
.btn-toolbar.active,
.btn-toolbar.button-active {
  background-color: #effdfa !important;
  border-color: #0d9488 !important;
  color: #0e3e3d !important;
  box-shadow: inset 0 0 0 1px #0d9488, 0 1px 2px rgba(13, 148, 136, 0.14) !important;
}

#controls menu.idcreatorToolbar .btn-toolbar.active svg,
#controls menu.idcreatorToolbar .btn-toolbar.button-active svg,
.btn-toolbar.active svg,
.btn-toolbar.button-active svg {
  color: #0e3e3d !important;
  fill: currentColor !important;
}


/* ==========================================================================
   V25 POLISH:
   Generous, identical padding & button height across all 3 desktop Add New bars
   (Add new text, Add new image, Add new panel)
   ========================================================================== */
@media (min-width: 769px) {
  #controls #text-add ul,
  #controls #paneladd ul,
  #controls #toolbar-text ul[style*="#1d5251"],
  #controls #toolbar-photo ul[style*="#1d5251"],
  #controls #toolbar-panel ul[style*="#1d5251"] {
    padding: 12px 14px !important;
    margin: 0 !important;
    min-height: 0 !important;
    height: auto !important;
    background-color: #1d5251 !important;
    display: block !important;
    box-sizing: border-box !important;
  }

  #controls #text-add ul li,
  #controls #paneladd ul li,
  #controls #toolbar-text ul[style*="#1d5251"] li,
  #controls #toolbar-photo ul[style*="#1d5251"] li,
  #controls #toolbar-panel ul[style*="#1d5251"] li,
  #controls #photo-add li {
    padding: 0 !important;
    margin: 0 !important;
    min-height: 0 !important;
    height: auto !important;
    background: transparent !important;
    border: none !important;
    display: block !important;
    width: 100% !important;
  }

  #controls #text-add button,
  #controls #photo-add button,
  #controls #paneladd button,
  #controls #toolbar-text ul[style*="#1d5251"] button.btn-light,
  #controls #toolbar-photo ul[style*="#1d5251"] button.btn-light,
  #controls #toolbar-panel ul[style*="#1d5251"] button.btn-light {
    width: 100% !important;
    min-height: 36px !important;
    height: 36px !important;
    padding: 7px 14px !important;
    margin: 0 !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    line-height: 1.25 !important;
    border-radius: 8px !important;
    background-color: #ffffff !important;
    color: #0e3e3d !important;
    border: none !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.16) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-sizing: border-box !important;
  }

  #controls #text-add button:hover,
  #controls #photo-add button:hover,
  #controls #paneladd button:hover,
  #controls #toolbar-text ul[style*="#1d5251"] button.btn-light:hover,
  #controls #toolbar-photo ul[style*="#1d5251"] button.btn-light:hover,
  #controls #toolbar-panel ul[style*="#1d5251"] button.btn-light:hover {
    background-color: #effdfa !important;
    color: #0e3e3d !important;
  }
}


/* ==========================================================================
   V26 MOBILE TOOLBAR ALIGNMENT, FONT DROPDOWN POPOVER & MOBILE CROP BUTTON
   ========================================================================== */
@media (max-width: 768px) {
  #mobileToolbar {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-wrap: wrap !important;
    gap: 6px !important;
    padding: 6px 10px !important;
    margin: 0 !important;
    min-height: 44px;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
  }

  #mobileToolbar:empty {
    display: none !important;
  }

  /* Clean, uniform 34px pills inside #mobileToolbar */
  .eic-mobile-ctrl-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 5px !important;
    height: 34px !important;
    padding: 0 10px !important;
    font-size: 12.5px !important;
    font-weight: 600 !important;
    color: #0e3e3d !important;
    background: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 8px !important;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06) !important;
    cursor: pointer !important;
    white-space: nowrap !important;
  }

  .eic-mobile-ctrl-btn span {
    color: inherit !important;
    margin-right: 0 !important;
    font-size: inherit !important;
  }

  #mobileToolbar .eic-font-picker-root {
    width: 132px !important;
    flex: 0 0 132px !important;
  }

  #mobileToolbar .eic-font-picker-li {
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    display: flex !important;
    align-items: center !important;
  }

  #mobileToolbar .eic-font-trigger-btn {
    height: 34px !important;
    min-height: 34px !important;
    padding: 0 8px !important;
    background: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 8px !important;
  }

  /* Render font dropdown menu as a fixed floating popover on mobile so it never clips */
  #mobileToolbar .eic-font-menu {
    position: fixed !important;
    top: 146px !important;
    left: 16px !important;
    right: 16px !important;
    width: auto !important;
    max-height: 52vh !important;
    z-index: 1085 !important;
    border-radius: 12px !important;
    box-shadow: 0 16px 38px rgba(15, 23, 42, 0.32) !important;
    padding: 6px !important;
  }

  #mobileToolbar .eic-font-option {
    padding: 9px 12px !important;
  }

  .eic-mobile-size-pill {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
  }

  .eic-mobile-size-pill.is-expanded {
    background: #ffffff;
    border: 1px solid #0d9488;
    border-radius: 9px;
    padding: 2px 6px;
  }

  .eic-mobile-size-pill.is-expanded .eic-mobile-ctrl-btn {
    border: none !important;
    box-shadow: none !important;
    height: 30px !important;
    padding: 0 4px !important;
  }

  .eic-mobile-size-range {
    width: 115px !important;
    margin: 0 !important;
  }

  .eic-mobile-size-close {
    border: none;
    background: #e2e8f0;
    color: #334155;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    font-size: 16px;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
  }

  #mobileToolbar #text-colorpicker-mobile > div {
    margin-left: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
  }

  #mobileToolbar #text-colorpicker-mobile input[type="color"] {
    width: 34px !important;
    height: 34px !important;
    padding: 2px !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 8px !important;
    background: #ffffff !important;
    cursor: pointer;
  }

  /* Ensure Crop button in #mobileToolbar is always crisp and visible */
  #mobileToolbar .eic-crop-btn-wrap .eic-photo-action-btn {
    height: 34px !important;
    min-height: 34px !important;
    padding: 0 11px !important;
    border-radius: 8px !important;
  }
}


/* ==========================================================================
   V27 FIXES:
   1. Mobile Add-New strip (+ Text, Photo, Panel, Barcode) always visible
   2. Mobile Font Size slider full-width focus mode (restores cleanly on close)
   3. Strict element-type filtering inside #mobileToolbar (hides Panel gradient on Barcode)
   4. Admin "Mappings & Fields" header styling
   ========================================================================== */
@media (max-width: 768px) {
  #idcreator-container {
    flex-direction: column !important;
  }

  #controls {
    width: 100% !important;
    min-width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  #controls > .eic-nav-buttons-root,
  #controls .eic-mobile-nav-strip {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    width: 100% !important;
    min-height: 44px !important;
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: center !important;
    background: #f1f5f9 !important;
    border-bottom: 1px solid #cbd5e1 !important;
    padding: 5px 8px !important;
    margin: 0 !important;
    z-index: 40 !important;
  }

  #mainArea {
    padding-top: 0 !important;
  }

  .eic-mobile-add-row {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    width: 100% !important;
  }

  .eic-mobile-plus-lbl {
    font-size: 20px !important;
    font-weight: 800 !important;
    color: #0e3e3d !important;
    line-height: 1 !important;
    margin-right: 2px !important;
  }

  .eic-mobile-add-tile {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 36px !important;
    height: 36px !important;
    padding: 3px !important;
    background: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 9px !important;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08) !important;
    cursor: pointer !important;
  }

  .eic-mobile-add-tile > div {
    width: 26px !important;
    height: 26px !important;
    background-size: contain !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
    margin: 0 !important;
  }

  /* Hide #mobileToolbar when nothing is selected on canvas */
  body:not(.eic-sel-text):not(.eic-sel-photo):not(.eic-sel-panel):not(.eic-sel-barcode) #mobileToolbar {
    display: none !important;
  }

  /* Strict per-element control isolation inside #mobileToolbar */
  body.eic-sel-barcode #mobileToolbar > *:not(#btn-update-barcode-mobile):not(#textModalEl),
  body.eic-sel-text #mobileToolbar > *:not(#text-field-mobile):not(#text-family-mobile):not(#text-size-mobile):not(#text-colorpicker-mobile):not(#textModalEl),
  body.eic-sel-photo #mobileToolbar > *:not(#photo-replace-mobile):not(#btnCropMobile):not(#btnSetBackgroundMobile):not(#textModalEl),
  body.eic-sel-panel #mobileToolbar > *:not(#paneladd-mobile):not(#panelcolorpickerMobile):not(#panelborderradiusMobile):not(#panelstrokewidthMobile):not(#textModalEl) {
    display: none !important;
  }

  /* Ensure mobile Photo controls (Replace, Crop, Set as Background) display side-by-side cleanly */
  body.eic-sel-photo #mobileToolbar #photo-replace-mobile,
  body.eic-sel-photo #mobileToolbar #btnCropMobile,
  body.eic-sel-photo #mobileToolbar #btnSetBackgroundMobile {
    display: inline-flex !important;
    align-items: center !important;
  }

  #mobileToolbar .eic-setbg-btn-wrap .eic-photo-action-btn {
    height: 34px !important;
    min-height: 34px !important;
    padding: 0 10px !important;
    border-radius: 8px !important;
  }

  /* Font Size Slider Focus Mode: hides siblings so slider has full width and never clips off-screen */
  #mobileToolbar.eic-mobile-size-focus {
    margin-left: 0 !important;
    justify-content: center !important;
  }

  #mobileToolbar.eic-mobile-size-focus > *:not(#text-size-mobile) {
    display: none !important;
  }

  #mobileToolbar.eic-mobile-size-focus #text-size-mobile {
    width: 100% !important;
    display: flex !important;
    justify-content: center !important;
  }

  #mobileToolbar.eic-mobile-size-focus .eic-mobile-size-pill.is-expanded {
    width: 100% !important;
    max-width: 340px !important;
    justify-content: space-between !important;
    padding: 3px 10px !important;
  }

  #mobileToolbar.eic-mobile-size-focus .eic-mobile-size-range {
    flex: 1 1 auto !important;
    width: auto !important;
    min-width: 140px !important;
  }
}

/* Admin "Mappings & Fields" Header Polish */
body:has(#adminPanel) #controls #cdp .toolbarTitle.eic-admin-cdp-header {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  background: #0e3e3d !important;
  color: #ffffff !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  letter-spacing: 0.2px !important;
  padding: 8px 12px !important;
  margin: 0 !important;
  border-radius: 9px 9px 0 0 !important;
  border-bottom: 1px solid #165250 !important;
  cursor: pointer !important;
  user-select: none !important;
}

body:has(#adminPanel) #controls #cdp .toolbarTitle.eic-admin-cdp-header:hover {
  background: #145352 !important;
}

body:has(#adminPanel) #controls #cdp .eic-admin-cdp-title-group {
  display: inline-flex !important;
  align-items: center !important;
  gap: 7px !important;
  color: #ffffff !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  margin: 0 !important;
}

body:has(#adminPanel) #controls #cdp .eic-admin-cdp-count {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-width: 22px !important;
  height: 19px !important;
  padding: 0 6px !important;
  border-radius: 999px !important;
  background: rgba(255, 255, 255, 0.16) !important;
  color: #ccfbf1 !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  margin: 0 !important;
}

body:has(#adminPanel) #controls #cdp .eic-admin-cdp-caret {
  color: #cbd5e1 !important;
  font-size: 13px !important;
  line-height: 1 !important;
  margin: 0 !important;
}


/* ==========================================================================
   V28 FIXES:
   1. Permanent circular crop mask lock (.eic-crop-shape-circle) during drag/resize/zoom
   2. Mobile instruction header + always-available Add New tiles above controls
   3. Reserved fixed-height #mobileToolbar slot so canvas never jumps vertically
   4. Unconditional, high-contrast Admin "Mappings & Fields" header styling
   ========================================================================== */

/* 1. Permanent Circular Crop Mask Lock */
.eic-modal.eic-crop-shape-circle .cropper-view-box,
.eic-modal.eic-crop-shape-circle .cropper-face {
  border-radius: 50% !important;
  -webkit-border-radius: 50% !important;
}

.eic-modal.eic-crop-shape-circle .cropper-view-box {
  outline: 2px solid #34d399 !important;
  box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.4) !important;
}

/* 2 & 3. Mobile Instruction Deck + Non-Jumping Reserved Controls Bar */
@media (max-width: 768px) {
  .eic-mobile-header-deck {
    width: 100% !important;
    background: #f1f5f9 !important;
    border-bottom: 1px solid #cbd5e1 !important;
    padding: 6px 10px 7px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 5px !important;
  }

  .eic-mobile-guide-text {
    font-size: 11.5px !important;
    font-weight: 600 !important;
    color: #334155 !important;
    text-align: center !important;
    line-height: 1.25 !important;
  }

  #controls .eic-mobile-nav-strip {
    background: transparent !important;
    border-bottom: none !important;
    padding: 0 !important;
    min-height: 36px !important;
  }

  .eic-mobile-add-tile {
    width: auto !important;
    min-width: 64px !important;
    height: 34px !important;
    padding: 0 9px !important;
    gap: 5px !important;
    border-radius: 8px !important;
  }

  .eic-mobile-add-tile > div {
    width: 20px !important;
    height: 20px !important;
  }

  .eic-mobile-add-tile > span {
    font-size: 11.5px !important;
    font-weight: 700 !important;
    color: #0e3e3d !important;
    margin: 0 !important;
  }

  /* Allocate permanent height for #mobileToolbar so canvas NEVER jumps when selecting/deselecting! */
  #mobileToolbar {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-wrap: wrap !important;
    gap: 6px !important;
    min-height: 48px !important;
    padding: 6px 10px !important;
    margin: 0 !important;
    background: #f8fafc !important;
    border-bottom: 1px solid #e2e8f0 !important;
    box-sizing: border-box !important;
  }

  body:not(.eic-sel-text):not(.eic-sel-photo):not(.eic-sel-panel):not(.eic-sel-barcode) #mobileToolbar {
    display: flex !important;
    visibility: visible !important;
  }

  body:not(.eic-sel-text):not(.eic-sel-photo):not(.eic-sel-panel):not(.eic-sel-barcode) #mobileToolbar > * {
    display: none !important;
  }

  body:not(.eic-sel-text):not(.eic-sel-photo):not(.eic-sel-panel):not(.eic-sel-barcode) #mobileToolbar::before {
    content: "Select an element on the card to adjust its properties";
    font-size: 11.5px;
    font-weight: 500;
    color: #64748b;
  }
}

/* 4. Admin "Mappings & Fields" Header (Always visible & properly styled) */
#controls #cdp .eic-admin-cdp-header {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  width: 100% !important;
  background: #0e3e3d !important;
  color: #ffffff !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  letter-spacing: 0.2px !important;
  padding: 9px 12px !important;
  margin: 0 !important;
  border-radius: 9px 9px 0 0 !important;
  border-bottom: 1px solid #165250 !important;
  cursor: pointer !important;
  user-select: none !important;
  box-sizing: border-box !important;
}

#controls #cdp .eic-admin-cdp-header:hover {
  background: #145352 !important;
}

#controls #cdp .eic-admin-cdp-header.is-warning {
  background: #d97706 !important;
  color: #ffffff !important;
}

#controls #cdp .eic-admin-cdp-title-group {
  display: inline-flex !important;
  align-items: center !important;
  gap: 7px !important;
  color: #ffffff !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  margin: 0 !important;
}

#controls #cdp .eic-admin-cdp-count {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-width: 22px !important;
  height: 19px !important;
  padding: 0 6px !important;
  border-radius: 999px !important;
  background: rgba(255, 255, 255, 0.18) !important;
  color: #ccfbf1 !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  margin: 0 !important;
}

#controls #cdp .eic-admin-cdp-caret {
  color: #cbd5e1 !important;
  font-size: 14px !important;
  line-height: 1 !important;
  margin: 0 !important;
}


/* ==========================================================================
   V33 FIX: BRING #controls BACK ON-SCREEN FOR MOBILE ADD-NEW BUTTONS
   Overrides legacy off-screen positioning (left: -1000px / position: fixed)
   from output/all.css while keeping desktop <menu> sidebars hidden on mobile.
   ========================================================================== */
@media (max-width: 768px) {
  #controls {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
    transform: none !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    width: 100% !important;
    min-width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    overflow: visible !important;
    padding: 0 !important;
    margin: 0 !important;
    z-index: 45 !important;
    background: transparent !important;
  }

  /* Keep desktop inspector sidebars inside #controls hidden on mobile */
  #controls > menu.idcreatorToolbar {
    display: none !important;
  }

  /* Ensure mobile Add New header deck (+ Text, Photo, Panel, Code) is always visible */
  #controls > .eic-nav-buttons-root,
  #controls .eic-mobile-header-deck {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    transform: none !important;
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    width: 100% !important;
  }

  #controls .eic-mobile-nav-strip {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    width: 100% !important;
  }
}


/* ==========================================================================
   V34 MOBILE ADD-NEW BAR & CONSISTENT BACKGROUND STYLING
   - Removes instructional text height
   - Hides Add-New bar when an element is selected
   - Crisp inline SVG icons + consistent #f8fafc / #0e3e3d palette across mobile
   ========================================================================== */
@media (max-width: 768px) {
  .eic-mobile-header-deck {
    width: 100% !important;
    background: #f8fafc !important;
    border-bottom: 1px solid #e2e8f0 !important;
    padding: 6px 10px !important;
    margin: 0 !important;
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 46px !important;
    box-sizing: border-box !important;
  }

  #controls .eic-mobile-nav-strip {
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
    min-height: 0 !important;
    width: 100% !important;
  }

  .eic-mobile-add-row {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 7px !important;
    width: 100% !important;
  }

  .eic-mobile-plus-lbl {
    font-size: 18px !important;
    font-weight: 800 !important;
    color: #0e3e3d !important;
    line-height: 1 !important;
    margin: 0 2px 0 0 !important;
  }

  .eic-mobile-add-tile {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 5px !important;
    width: auto !important;
    min-width: 66px !important;
    height: 34px !important;
    padding: 0 10px !important;
    background: #ffffff !important;
    color: #0e3e3d !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 8px !important;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06) !important;
    cursor: pointer !important;
    transition: background-color 0.14s ease, border-color 0.14s ease !important;
  }

  .eic-mobile-add-tile:active,
  .eic-mobile-add-tile:hover {
    background: #effdfa !important;
    border-color: #0d9488 !important;
    color: #0e3e3d !important;
  }

  .eic-mobile-add-tile svg {
    color: #0e3e3d !important;
    stroke: currentColor !important;
    flex-shrink: 0 !important;
  }

  .eic-mobile-add-tile > span {
    font-size: 12px !important;
    font-weight: 700 !important;
    color: #0e3e3d !important;
    margin: 0 !important;
    line-height: 1 !important;
  }

  /* Consistent #f8fafc background across #mobileToolbar & #topControlBar on mobile */
  #mobileToolbar {
    background: #f8fafc !important;
    border-bottom: 1px solid #e2e8f0 !important;
    min-height: 46px !important;
    padding: 6px 10px !important;
  }

  /* Hide empty placeholder text in #mobileToolbar when nothing is selected (Add-New bar is shown instead) */
  body:not(.eic-sel-text):not(.eic-sel-photo):not(.eic-sel-panel):not(.eic-sel-barcode) #mobileToolbar {
    display: none !important;
  }

  #topControlBar {
    background-color: #f8fafc !important;
    border-bottom: 1px solid #e2e8f0 !important;
  }
}


/* ==========================================================================
   V35 MOBILE ZERO-SHIFT ADD-NEW BAR (GRAYED OUT WHEN ELEMENT SELECTED)
   ========================================================================== */
@media (max-width: 768px) {
  .eic-mobile-header-deck.is-disabled .eic-mobile-plus-lbl {
    color: #94a3b8 !important;
  }

  .eic-mobile-header-deck.is-disabled .eic-mobile-add-tile,
  .eic-mobile-add-tile:disabled {
    background: #f1f5f9 !important;
    color: #94a3b8 !important;
    border-color: #e2e8f0 !important;
    box-shadow: none !important;
    opacity: 0.55 !important;
    cursor: not-allowed !important;
    pointer-events: none !important;
  }

  .eic-mobile-header-deck.is-disabled .eic-mobile-add-tile svg,
  .eic-mobile-add-tile:disabled svg,
  .eic-mobile-header-deck.is-disabled .eic-mobile-add-tile > span,
  .eic-mobile-add-tile:disabled > span {
    color: #94a3b8 !important;
  }

  /* Keep #mobileToolbar height reserved even when nothing is selected so canvas never jumps */
  body:not(.eic-sel-text):not(.eic-sel-photo):not(.eic-sel-panel):not(.eic-sel-barcode) #mobileToolbar {
    display: flex !important;
    min-height: 48px !important;
    background: #f8fafc !important;
    border-bottom: 1px solid #e2e8f0 !important;
  }

  body:not(.eic-sel-text):not(.eic-sel-photo):not(.eic-sel-panel):not(.eic-sel-barcode) #mobileToolbar > * {
    display: none !important;
  }

  body:not(.eic-sel-text):not(.eic-sel-photo):not(.eic-sel-panel):not(.eic-sel-barcode) #mobileToolbar::before {
    content: "Tap an element on the card to edit it";
    font-size: 11.5px;
    font-weight: 500;
    color: #64748b;
  }
}


/* ==========================================================================
   V36 FIXES:
   1) Admin "Mappings & Fields" header & inner spans forced pure white (#ffffff)
   2) Breakpoint-crossing blocking overlay (.eic-breakpoint-blocker)
   3) 15px separation between pill menu (#topControlBar) and card canvas (#card-container)
   4) margin-top: 0 on .canva-container / #canva-container
   ========================================================================== */
#controls #cdp .eic-admin-cdp-header,
#controls #cdp .eic-admin-cdp-header span,
#controls #cdp .eic-admin-cdp-title-group,
#controls #cdp .eic-admin-cdp-title-group span {
  color: #ffffff !important;
}

#controls #cdp .eic-admin-cdp-count {
  color: #ccfbf1 !important;
}

/* 3 & 4: 15px separation below pill menu + 0 top margin on .canva-container */
#card-container {
  margin-top: 15px !important;
}

.canva-container,
#canva-container {
  margin-top: 0 !important;
}

/* Breakpoint Switch Blocking Overlay */
#eic-breakpoint-blocker {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 20000;
  background: rgba(15, 23, 42, 0.78);
  backdrop-filter: blur(4px);
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.eic-bp-card {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 16px;
  max-width: 380px;
  width: 100%;
  padding: 24px 20px;
  text-align: center;
  box-shadow: 0 20px 45px rgba(15, 23, 42, 0.35);
}

.eic-bp-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 12px auto;
  border-radius: 12px;
  background: #effdfa;
  border: 1px solid #99f6e4;
  color: #0e3e3d;
  display: flex;
  align-items: center;
  justify-content: center;
}

.eic-bp-title {
  font-size: 17px;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 8px 0;
}

.eic-bp-desc {
  font-size: 13.5px;
  line-height: 1.48;
  color: #475569;
  margin: 0 0 18px 0;
}

.eic-bp-reload-btn {
  width: 100%;
}


/* ==========================================================================
   V37 POLISH:
   1) `.eic-dock-tab.active` & connected Add-New header bar below set to #266160
   2) Crisp inline SVG icons inside `.eic-dock-tabs` replacing sprite images
   ========================================================================== */
@media (min-width: 769px) {
  #controls .eic-dock-tab {
    color: #cbd5e1 !important;
    padding: 9px 2px 8px !important;
    gap: 5px !important;
    transition: background-color 0.15s ease, color 0.15s ease !important;
  }

  #controls .eic-dock-tab:hover {
    background-color: rgba(38, 97, 96, 0.45) !important;
    color: #ffffff !important;
  }

  #controls .eic-dock-tab.active {
    background-color: #266160 !important;
    color: #ffffff !important;
  }

  #controls .eic-dock-icon-wrap {
    width: 34px !important;
    height: 34px !important;
    border-radius: 9px !important;
    background: rgba(255, 255, 255, 0.08) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 auto !important;
    transition: background-color 0.15s ease, transform 0.15s ease !important;
  }

  #controls .eic-dock-tab.active .eic-dock-icon-wrap {
    background: rgba(255, 255, 255, 0.16) !important;
  }

  #controls .eic-dock-icon-wrap svg {
    width: 20px !important;
    height: 20px !important;
    color: inherit !important;
    stroke: currentColor !important;
  }

  /* Match connected Add-New controller header bar below to #266160 */
  #controls #text-add ul,
  #controls #paneladd ul,
  #controls #toolbar-text ul[style*="#1d5251"],
  #controls #toolbar-photo ul[style*="#1d5251"],
  #controls #toolbar-panel ul[style*="#1d5251"],
  #controls menu.idcreatorToolbar > .idcreator-container-inner > div > ul[style*="#1d5251"],
  #controls menu.idcreatorToolbar > .idcreator-container-inner > ul[style*="#1d5251"] {
    background-color: #266160 !important;
  }

  #controls .toolbarTitle {
    background-color: #266160 !important;
  }
}


/* ==========================================================================
   V39: DASHED BOUNDING BOX + OFF-CANVAS SELECTION VISIBILITY
   ========================================================================== */
#card-container,
#canva-container,
.canva-container,
#canva-container .canvas-container {
  overflow: visible !important;
}

/* Unified CR80 Card Corner Radius (14px) across Fabric wrapper, lower-canvas & upper-canvas */
#canva-container .canvas-container,
#canva-container .canvas-container > canvas,
#canva-container .lower-canvas,
#canva-container .upper-canvas,
#creator {
  border-radius: 14px !important;
}

#eic-offcanvas-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 25;
  overflow: visible;
}

#eic-offcanvas-overlay .eic-oc-box {
  position: absolute;
  border: 1.5px dashed #0d9488;
  box-sizing: border-box;
  pointer-events: none;
}

#eic-offcanvas-overlay.is-locked .eic-oc-box {
  border-color: #f59e0b;
}

#eic-offcanvas-overlay.is-locked .eic-oc-rot-stem,
#eic-offcanvas-overlay.is-locked .eic-oc-rot-knob,
#eic-offcanvas-overlay.is-locked .eic-oc-tr-knob {
  display: none;
}

#eic-offcanvas-overlay .eic-oc-rot-stem {
  position: absolute;
  left: 50%;
  top: -22px;
  width: 1.5px;
  height: 22px;
  background: #0d9488;
  transform: translateX(-50%);
}

#eic-offcanvas-overlay .eic-oc-rot-knob {
  position: absolute;
  left: 50%;
  top: -31px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #ffffff;
  border: 1.5px solid #0d9488;
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.22);
  transform: translateX(-50%);
}

#eic-offcanvas-overlay .eic-oc-tr-knob {
  position: absolute;
  right: -10px;
  top: -10px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #0d9488;
  border: 2px solid #ffffff;
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.25);
}


/* ==========================================================================
   V40: MODERN STUDIO DESIGN SYSTEM (LIVE CUSTOMER CREATOR)
   - Crisp White Top Header (#ffffff + #e2e8f0 hairline)
   - Light Segmented 4-Tab Sidebar Dock (#e2e8f0 container -> #ffffff active tab)
   - Soft Mint Connected Add-New Bar (#f0fdfa)
   - Dot-Grid Studio Canvas Backdrop (#eef2f6)
   ========================================================================== */

/* 1. Top Studio Header Bar */
nav.eic-studio-navbar,
body:not(:has(#adminPanel)) > nav.navbar {
  background: #ffffff !important;
  border-bottom: 1px solid #e2e8f0 !important;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04) !important;
}

/* Convert white SVG logo into crisp forest-teal (#0e3e3d) on light header */
nav.eic-studio-navbar .eic-studio-brand-logo,
body:not(:has(#adminPanel)) > nav.navbar .navbar-brand img {
  filter: brightness(0) saturate(100%) invert(18%) sepia(24%) saturate(1350%) hue-rotate(131deg) brightness(93%) contrast(94%);
}

nav.eic-studio-navbar .nav-link,
body:not(:has(#adminPanel)) > nav.navbar .nav-link {
  color: #475569 !important;
  font-weight: 600 !important;
  font-size: 13.5px !important;
  transition: color 0.15s ease !important;
}

nav.eic-studio-navbar .nav-link:hover,
body:not(:has(#adminPanel)) > nav.navbar .nav-link:hover {
  color: #0d9488 !important;
}

/* Estimated Price Pill on Light Header */
nav.eic-studio-navbar .eic-nav-price-pill,
body:not(:has(#adminPanel)) > nav.navbar .eic-nav-price-pill {
  background: #f0fdfa !important;
  border: 1px solid #99f6e4 !important;
  color: #0e3e3d !important;
}

nav.eic-studio-navbar .eic-nav-price-lbl,
body:not(:has(#adminPanel)) > nav.navbar .eic-nav-price-lbl {
  color: #475569 !important;
}

nav.eic-studio-navbar .eic-nav-price-val,
body:not(:has(#adminPanel)) > nav.navbar .eic-nav-price-val {
  color: #0d9488 !important;
}

nav.eic-studio-navbar .eic-nav-price-unit,
body:not(:has(#adminPanel)) > nav.navbar .eic-nav-price-unit {
  color: #64748b !important;
}

/* Primary SAVE & ORDER CTA Pill in Header */
nav.eic-studio-navbar #saveBtn .btn-info,
body:not(:has(#adminPanel)) > nav.navbar #saveBtn .btn-info {
  background: #0d9488 !important;
  border-color: #0d9488 !important;
  color: #ffffff !important;
  border-radius: 10px !important;
  padding: 7px 18px !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  letter-spacing: 0.3px !important;
  box-shadow: 0 2px 6px rgba(13, 148, 136, 0.25) !important;
  transition: background-color 0.15s ease, transform 0.12s ease !important;
}

nav.eic-studio-navbar #saveBtn .btn-info:hover,
body:not(:has(#adminPanel)) > nav.navbar #saveBtn .btn-info:hover {
  background: #0f766e !important;
  border-color: #0f766e !important;
}

/* 2. Dot-Grid Studio Canvas Stage */
body:not(:has(#adminPanel)) #mainArea,
body:not(:has(#adminPanel)) #idcreator-container {
  background-color: #eef2f6 !important;
  background-image: radial-gradient(#cbd5e1 1px, transparent 1px) !important;
  background-size: 18px 18px !important;
}

body:not(:has(#adminPanel)) #canva-container .canvas-container {
  border-radius: 14px !important;
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.13), 0 0 0 1px rgba(15, 23, 42, 0.06) !important;
}

/* 3. Light Segmented 4-Tab Sidebar Dock (Desktop >= 769px) */
@media (min-width: 769px) {
  #controls .eic-dock-tabs {
    background: #e2e8f0 !important;
    border: 1px solid #cbd5e1 !important;
    border-bottom: none !important;
    padding: 5px 5px 0 5px !important;
    border-radius: 14px 14px 0 0 !important;
    gap: 4px !important;
  }

  #controls .eic-dock-tab {
    background: transparent !important;
    color: #475569 !important;
    border: none !important;
    border-top: 2.5px solid transparent !important;
    border-radius: 9px 9px 0 0 !important;
    padding: 8px 2px 7px !important;
    gap: 5px !important;
    transition: all 0.15s ease !important;
  }

  #controls .eic-dock-tab:hover {
    background: rgba(255, 255, 255, 0.65) !important;
    color: #0f172a !important;
  }

  #controls .eic-dock-tab.active {
    background: #ffffff !important;
    color: #0e3e3d !important;
    border-top: 2.5px solid #0d9488 !important;
    box-shadow: 0 -2px 6px rgba(15, 23, 42, 0.05) !important;
  }

  #controls .eic-dock-icon-wrap {
    width: 34px !important;
    height: 34px !important;
    border-radius: 9px !important;
    background: rgba(15, 23, 42, 0.05) !important;
    color: inherit !important;
  }

  #controls .eic-dock-tab.active .eic-dock-icon-wrap {
    background: #ccfbf1 !important;
    color: #0e3e3d !important;
  }

  #controls .eic-dock-tab-lbl {
    color: inherit !important;
    font-weight: 700 !important;
  }

  /* Connected Add-New Bar Below Active Tab: Soft Mint Surface (#f0fdfa) */
  #controls #text-add ul,
  #controls #paneladd ul,
  #controls #toolbar-text ul[style*="#1d5251"],
  #controls #toolbar-photo ul[style*="#1d5251"],
  #controls #toolbar-panel ul[style*="#1d5251"],
  #controls menu.idcreatorToolbar > .idcreator-container-inner > div > ul[style*="#1d5251"],
  #controls menu.idcreatorToolbar > .idcreator-container-inner > ul[style*="#1d5251"] {
    background-color: #f0fdfa !important;
    border-bottom: 1px solid #ccfbf1 !important;
  }

  #controls #text-add button,
  #controls #photo-add button,
  #controls #paneladd button,
  #controls #toolbar-text ul[style*="#1d5251"] button.btn-light,
  #controls #toolbar-photo ul[style*="#1d5251"] button.btn-light,
  #controls #toolbar-panel ul[style*="#1d5251"] button.btn-light {
    background-color: #ffffff !important;
    color: #0e3e3d !important;
    border: 1.5px solid #0d9488 !important;
    box-shadow: 0 1px 3px rgba(13, 148, 136, 0.12) !important;
  }

  #controls #text-add button:hover,
  #controls #photo-add button:hover,
  #controls #paneladd button:hover,
  #controls #toolbar-text ul[style*="#1d5251"] button.btn-light:hover,
  #controls #toolbar-photo ul[style*="#1d5251"] button.btn-light:hover,
  #controls #toolbar-panel ul[style*="#1d5251"] button.btn-light:hover {
    background-color: #0d9488 !important;
    border-color: #0d9488 !important;
    color: #ffffff !important;
  }

  #controls .idcreator-container-inner {
    background-color: #f8fafc !important;
    border: 1px solid #cbd5e1 !important;
    border-top: none !important;
  }

  #controls .toolbarTitle {
    background-color: #f0fdfa !important;
    color: #0e3e3d !important;
    border-bottom: 1px solid #ccfbf1 !important;
  }
}


/* ==========================================================================
   V41: BRAND LOGO PALETTE (#003366 NAVY + #F5A623 AMBER GOLD) & FULL-STAGE
   STUDIO BACKGROUND SYNC (body, .body-background, #card-container, #card-preview-container)
   ========================================================================== */

/* 1. Remove previous CSS filter on the logo so native brand colors render cleanly */
nav.eic-studio-navbar .eic-studio-brand-logo,
body:not(:has(#adminPanel)) > nav.navbar .navbar-brand img {
  filter: none !important;
  -webkit-filter: none !important;
}

/* 2. Apply unified studio background across body, .body-background, #card-container & #card-preview-container */
body:not(:has(#adminPanel)),
body:not(:has(#adminPanel)).body-background,
body:not(:has(#adminPanel)) .body-background,
body:not(:has(#adminPanel)) #document-container,
body:not(:has(#adminPanel)) #idcreator-container,
body:not(:has(#adminPanel)) #mainArea,
body:not(:has(#adminPanel)) #card-container,
body:not(:has(#adminPanel)) #card-preview-container {
  background-color: #eef2f6 !important;
  background-image: radial-gradient(#cbd5e1 1px, transparent 1px) !important;
  background-size: 18px 18px !important;
}

body:not(:has(#adminPanel)) #card-container {
  border: none !important;
  box-shadow: none !important;
}

body:not(:has(#adminPanel)) #card-preview-container {
  border-right: 1px solid #dbe3ec !important;
}

/* 3. Brand-Harmonized SAVE & ORDER + Estimated Price Pill (#003366 Navy + #F5A623 Amber Gold) */
nav.eic-studio-navbar .nav-link:hover,
body:not(:has(#adminPanel)) > nav.navbar .nav-link:hover {
  color: #003366 !important;
}

nav.eic-studio-navbar .eic-nav-price-pill,
body:not(:has(#adminPanel)) > nav.navbar .eic-nav-price-pill {
  background: #fffbeb !important;
  border: 1.5px solid #fcd34d !important;
  color: #003366 !important;
  padding: 5px 13px !important;
  box-shadow: 0 1px 2px rgba(0, 51, 102, 0.06) !important;
}

nav.eic-studio-navbar .eic-nav-price-lbl,
body:not(:has(#adminPanel)) > nav.navbar .eic-nav-price-lbl {
  color: #78350f !important;
  font-weight: 600 !important;
}

nav.eic-studio-navbar .eic-nav-price-val,
body:not(:has(#adminPanel)) > nav.navbar .eic-nav-price-val {
  color: #003366 !important;
  font-weight: 800 !important;
}

nav.eic-studio-navbar .eic-nav-price-unit,
body:not(:has(#adminPanel)) > nav.navbar .eic-nav-price-unit {
  color: #92400e !important;
}

nav.eic-studio-navbar #saveBtn .btn-info,
body:not(:has(#adminPanel)) > nav.navbar #saveBtn .btn-info {
  background: linear-gradient(135deg, #003366 0%, #00478f 100%) !important;
  border: 1.5px solid #002855 !important;
  color: #ffffff !important;
  border-radius: 10px !important;
  padding: 8px 20px !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  letter-spacing: 0.4px !important;
  box-shadow: 0 3px 10px rgba(0, 51, 102, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.16) !important;
  transition: all 0.16s ease !important;
}

nav.eic-studio-navbar #saveBtn .btn-info:hover,
body:not(:has(#adminPanel)) > nav.navbar #saveBtn .btn-info:hover {
  background: linear-gradient(135deg, #00264d 0%, #003b75 100%) !important;
  border-color: #f5a623 !important;
  box-shadow: 0 4px 14px rgba(0, 51, 102, 0.32), 0 0 0 2px rgba(245, 166, 35, 0.35) !important;
  transform: translateY(-1px) !important;
}

/* 4. Align Sidebar Dock & Primary CTAs with Brand Navy (#003366) + Gold (#F5A623) Accent */
@media (min-width: 769px) {
  body:not(:has(#adminPanel)) #controls .eic-dock-tab.active {
    color: #003366 !important;
    border-top: 3px solid #f5a623 !important;
  }

  body:not(:has(#adminPanel)) #controls .eic-dock-tab.active .eic-dock-icon-wrap {
    background: #e6eff8 !important;
    color: #003366 !important;
  }

  body:not(:has(#adminPanel)) #controls #text-add ul,
  body:not(:has(#adminPanel)) #controls #paneladd ul,
  body:not(:has(#adminPanel)) #controls #toolbar-text ul[style*="#1d5251"],
  body:not(:has(#adminPanel)) #controls #toolbar-photo ul[style*="#1d5251"],
  body:not(:has(#adminPanel)) #controls #toolbar-panel ul[style*="#1d5251"],
  body:not(:has(#adminPanel)) #controls menu.idcreatorToolbar > .idcreator-container-inner > div > ul[style*="#1d5251"],
  body:not(:has(#adminPanel)) #controls menu.idcreatorToolbar > .idcreator-container-inner > ul[style*="#1d5251"] {
    background-color: #f0f5fa !important;
    border-bottom: 1px solid #dbe6f2 !important;
  }

  body:not(:has(#adminPanel)) #controls #text-add button,
  body:not(:has(#adminPanel)) #controls #photo-add button,
  body:not(:has(#adminPanel)) #controls #paneladd button,
  body:not(:has(#adminPanel)) #controls #toolbar-text ul[style*="#1d5251"] button.btn-light,
  body:not(:has(#adminPanel)) #controls #toolbar-photo ul[style*="#1d5251"] button.btn-light,
  body:not(:has(#adminPanel)) #controls #toolbar-panel ul[style*="#1d5251"] button.btn-light {
    color: #003366 !important;
    border: 1.5px solid #003366 !important;
  }

  body:not(:has(#adminPanel)) #controls #text-add button:hover,
  body:not(:has(#adminPanel)) #controls #photo-add button:hover,
  body:not(:has(#adminPanel)) #controls #paneladd button:hover,
  body:not(:has(#adminPanel)) #controls #toolbar-text ul[style*="#1d5251"] button.btn-light:hover,
  body:not(:has(#adminPanel)) #controls #toolbar-photo ul[style*="#1d5251"] button.btn-light:hover,
  body:not(:has(#adminPanel)) #controls #toolbar-panel ul[style*="#1d5251"] button.btn-light:hover {
    background-color: #003366 !important;
    border-color: #003366 !important;
    color: #ffffff !important;
  }
}

/* Quick Fill & Modal Primary Apply CTAs in Brand Navy (#003366) */
body:not(:has(#adminPanel)) .eic-btn-apply {
  background: #003366 !important;
  border-color: #003366 !important;
  box-shadow: 0 2px 6px rgba(0, 51, 102, 0.25) !important;
}

body:not(:has(#adminPanel)) .eic-btn-apply:hover:not(:disabled) {
  background: #00478f !important;
  border-color: #00478f !important;
}

body:not(:has(#adminPanel)) .eic-qe-inline-price {
  color: #fcd34d !important;
}


/* ==========================================================================
   V42: BRAND NAVY (#003366) + AMBER GOLD (#F5A623) UNIFIED SYSTEM
   1) Unified Save & Order Capsule Component (.eic-save-capsule)
   2) Crisp '+' Prefix on All Desktop Add-New Buttons
   3) Brand Color Scheme on All Modals, Crop Modals & Quick Fill Cards
   ========================================================================== */

/* 1. Unified Save & Order Capsule Component */
.eic-save-capsule {
  display: inline-flex;
  align-items: center;
  background: #f8fafc;
  border: 1.5px solid #cbd5e1;
  border-radius: 12px;
  padding: 3px;
  gap: 4px;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.06);
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

.eic-save-capsule:hover {
  border-color: #94a3b8;
  box-shadow: 0 4px 12px rgba(0, 51, 102, 0.12);
}

.eic-save-price-seg {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  padding: 0 10px 0 11px;
  white-space: nowrap;
}

.eic-save-price-seg span {
  margin-right: 0 !important;
}

.eic-save-price-lbl {
  font-size: 11px !important;
  font-weight: 600;
  color: #64748b !important;
}

.eic-save-price-val {
  font-size: 14px !important;
  font-weight: 800;
  color: #003366 !important;
}

.eic-save-price-unit {
  font-size: 11px !important;
  font-weight: 500;
  color: #64748b !important;
}

.eic-save-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  height: 36px;
  padding: 0 16px;
  border: none;
  border-radius: 9px;
  background: linear-gradient(135deg, #003366 0%, #00478f 100%);
  color: #ffffff;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.45px;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 2px 6px rgba(0, 51, 102, 0.25);
  transition: all 0.16s ease;
}

.eic-save-cta-btn span {
  color: #ffffff !important;
  margin-right: 0 !important;
  font-size: inherit !important;
}

.eic-save-cta-btn svg {
  color: #f5a623;
  transition: transform 0.16s ease;
}

.eic-save-cta-btn:hover {
  background: linear-gradient(135deg, #00264d 0%, #003b75 100%);
  box-shadow: 0 4px 12px rgba(0, 51, 102, 0.34);
}

.eic-save-cta-btn:hover svg {
  transform: translateX(2px);
}

@media (max-width: 767.98px) {
  .eic-save-price-seg {
    display: none;
  }
}

/* 2. '+' Sign on Desktop Add-New Buttons (Text, Image, Panel) */
.eic-add-plus {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 17px !important;
  font-weight: 800 !important;
  line-height: 1 !important;
  margin-right: 6px !important;
  color: inherit !important;
}

.eic-add-new-btn span {
  color: inherit !important;
}

@media (min-width: 769px) {
  #controls #paneladd button::before {
    content: "+";
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
    font-weight: 800;
    line-height: 1;
    margin-right: 6px;
  }
}

/* 3. Brand Color Scheme (#003366 Navy + #F5A623 Amber Gold) Across All Modals, Crop & Quick Fill */
.eic-modal .modal-header,
.eic-sheet-pill-wrap {
  background: linear-gradient(135deg, #002855 0%, #003366 100%) !important;
  border-bottom-color: #004080 !important;
}

.eic-modal .modal-header {
  border-bottom: 2px solid #f5a623 !important;
}

.eic-modal .modal-title svg {
  color: #f5a623 !important;
}

.eic-modal .cropper-view-box {
  outline: 2px solid #f5a623 !important;
  outline-color: rgba(245, 166, 35, 0.95) !important;
}

.eic-modal .cropper-line,
.eic-modal .cropper-point {
  background-color: #f5a623 !important;
}

.eic-modal .eic-seg-btn.active {
  color: #003366 !important;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.14), inset 0 -2px 0 #f5a623 !important;
}

.eic-modal .eic-context-pill {
  color: #003366 !important;
  background: #eff6ff !important;
  border-color: #bfdbfe !important;
}

.eic-modal .eic-tool-btn:hover {
  background: #eff6ff !important;
  color: #003366 !important;
}

/* Quick Fill Slide-Over Drawer & Field Cards */
.eic-qe-header {
  background: linear-gradient(135deg, #002855 0%, #003366 100%) !important;
  border-bottom: 2px solid #f5a623 !important;
}

.eic-qe-badge-icon {
  background: rgba(245, 166, 35, 0.18) !important;
  color: #fcd34d !important;
}

.eic-qe-side-tab.active {
  color: #003366 !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.22), inset 0 -2px 0 #f5a623 !important;
}

.eic-qe-field-card {
  background: #ffffff !important;
  border: 1px solid #dbe3ec !important;
  border-radius: 12px !important;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04) !important;
}

.eic-qe-field-card:hover {
  border-color: #93c5fd !important;
}

.eic-qe-field-card.is-focused {
  border-color: #003366 !important;
  box-shadow: 0 0 0 3px rgba(0, 51, 102, 0.12), inset 3px 0 0 #f5a623 !important;
}

.eic-qe-input:focus {
  border-color: #003366 !important;
  box-shadow: 0 0 0 3px rgba(0, 51, 102, 0.12) !important;
}

.eic-qe-autofit-pill {
  color: #92400e !important;
  background: #fffbeb !important;
  border-color: #fde68a !important;
}

.eic-qe-swatch.active {
  box-shadow: 0 0 0 2px #003366, 0 0 0 4px #f5a623 !important;
}

.eic-qe-dock-edit {
  color: #003366 !important;
  background: #f0f5fa !important;
  border: 1.5px solid #003366 !important;
}

.eic-qe-dock-edit:hover {
  background: #e2ecf7 !important;
}

/* Off-Canvas Selection & Dashed Box Accent Match (#003366 Navy + #F5A623 Locked) */
#eic-offcanvas-overlay .eic-oc-box {
  border-color: #003366 !important;
}

#eic-offcanvas-overlay .eic-oc-rot-stem,
#eic-offcanvas-overlay .eic-oc-tr-knob {
  background: #003366 !important;
}

#eic-offcanvas-overlay .eic-oc-rot-knob {
  border-color: #003366 !important;
}


/* ==========================================================================
   V43: WARM COPPER-GOLD SAVE CTA, #A8BACC WORKSPACE BACKDROP & UNIFIED
   CONTROLLER / BARCODE / PANEL / TIP STYLING
   ========================================================================== */

/* 1. Save & Order CTA: linear-gradient(135deg, #e19c4b 0, #8f2e00 100%) */
.eic-save-cta-btn,
nav.eic-studio-navbar #saveBtn .btn-info,
body:not(:has(#adminPanel)) > nav.navbar #saveBtn .btn-info,
.eic-qe-dock-save,
.eic-qe-footer .eic-btn-apply {
  background: linear-gradient(135deg, #e19c4b 0, #8f2e00 100%) !important;
  border: 1px solid #8f2e00 !important;
  color: #ffffff !important;
  box-shadow: 0 3px 10px rgba(143, 46, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.28) !important;
  transition: filter 0.16s ease, transform 0.14s ease, box-shadow 0.16s ease !important;
}

.eic-save-cta-btn:hover,
nav.eic-studio-navbar #saveBtn .btn-info:hover,
body:not(:has(#adminPanel)) > nav.navbar #saveBtn .btn-info:hover,
.eic-qe-dock-save:hover,
.eic-qe-footer .eic-btn-apply:hover:not(:disabled) {
  background: linear-gradient(135deg, #ebaa5c 0, #a33600 100%) !important;
  border-color: #7c2600 !important;
  box-shadow: 0 5px 14px rgba(143, 46, 0, 0.36), inset 0 1px 0 rgba(255, 255, 255, 0.32) !important;
  transform: translateY(-1px) !important;
}

.eic-save-cta-btn svg {
  color: #ffffff !important;
}

/* 2. Workspace Background Color (#a8bacc) — keeping #card-preview-container as is */
body:not(:has(#adminPanel)),
body:not(:has(#adminPanel)).body-background,
body:not(:has(#adminPanel)) .body-background,
body:not(:has(#adminPanel)) #document-container,
body:not(:has(#adminPanel)) #idcreator-container,
body:not(:has(#adminPanel)) #mainArea,
body:not(:has(#adminPanel)) #card-container {
  background-color: #a8bacc !important;
  background-image: none !important;
}

/* Restore #card-preview-container to its clean neutral surface */
body:not(:has(#adminPanel)) #card-preview-container {
  background-color: #efefef !important;
  background-image: none !important;
  border-right: 1px solid #cbd5e1 !important;
}

/* Elevated card shadow on #a8bacc studio backdrop */
body:not(:has(#adminPanel)) #canva-container .canvas-container {
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.22), 0 0 0 1px rgba(15, 23, 42, 0.08) !important;
}

/* Front / Back flip buttons on #a8bacc stage */
body:not(:has(#adminPanel)) #flip-badge-buttons .btn-light {
  background: #ffffff !important;
  border: 1px solid #cbd5e1 !important;
  color: #1e293b !important;
  font-weight: 700 !important;
  padding: 5px 16px !important;
}

body:not(:has(#adminPanel)) #flip-badge-buttons .btn-dark {
  background: #003366 !important;
  border-color: #003366 !important;
  color: #ffffff !important;
}

/* 3. Text, Photo, Panel & Barcode Tip Classes (.eic-tip-toggle-btn, .eic-tip-card) */
#controls .eic-tip-toggle-btn {
  background: #ffffff !important;
  border: 1px solid #cbd5e1 !important;
  border-radius: 9px !important;
  padding: 7px 10px !important;
  font-size: 12.5px !important;
  font-weight: 700 !important;
  color: #003366 !important;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04) !important;
}

#controls .eic-tip-toggle-btn:hover {
  background: #f0f5fa !important;
  border-color: #003366 !important;
}

#controls .eic-tip-q {
  background: #003366 !important;
  color: #ffffff !important;
  width: 18px !important;
  height: 18px !important;
}

#controls menu.idcreatorToolbar li .alert.alert-info,
#controls .eic-tip-card {
  background-color: #ffffff !important;
  border: 1px solid #cbd5e1 !important;
  border-left: 3.5px solid #e19c4b !important;
  border-radius: 9px !important;
  color: #1e293b !important;
  font-size: 12.5px !important;
  line-height: 1.5 !important;
  padding: 10px 12px !important;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05) !important;
}

#controls .eic-tip-card strong {
  color: #003366 !important;
}

/* 4. Sidebar Controller, Barcode & Panel Brand Color Scheme (#003366 + #e19c4b) */
@media (min-width: 769px) {
  /* Card Elements top button */
  body:not(:has(#adminPanel)) #controls .eic-dock-layers-btn {
    background: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    color: #003366 !important;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.10) !important;
  }

  body:not(:has(#adminPanel)) #controls .eic-dock-layers-btn:hover {
    background: #f0f5fa !important;
    border-color: #003366 !important;
  }

  body:not(:has(#adminPanel)) #controls .eic-dock-layers-btn.active {
    background: #003366 !important;
    border-color: #003366 !important;
    color: #ffffff !important;
    box-shadow: 0 3px 8px rgba(0, 51, 102, 0.24) !important;
  }

  /* 4-Tab Dock Header (Text | Photo | Panel | Barcode) */
  body:not(:has(#adminPanel)) #controls .eic-dock-tabs {
    background: #dde5ee !important;
    border: 1px solid #c3cfdc !important;
    border-bottom: none !important;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.08) !important;
  }

  body:not(:has(#adminPanel)) #controls .eic-dock-tab {
    color: #334155 !important;
  }

  body:not(:has(#adminPanel)) #controls .eic-dock-tab:hover {
    background: rgba(255, 255, 255, 0.72) !important;
    color: #003366 !important;
  }

  body:not(:has(#adminPanel)) #controls .eic-dock-tab.active {
    background: #ffffff !important;
    color: #003366 !important;
    border-top: 3px solid #e19c4b !important;
  }

  body:not(:has(#adminPanel)) #controls .eic-dock-icon-wrap {
    background: rgba(0, 51, 102, 0.06) !important;
  }

  body:not(:has(#adminPanel)) #controls .eic-dock-tab.active .eic-dock-icon-wrap {
    background: #e6eff8 !important;
    color: #003366 !important;
  }

  /* Inspector Body Surface */
  body:not(:has(#adminPanel)) #controls .idcreator-container-inner {
    background-color: #f4f7fa !important;
    border: 1px solid #c3cfdc !important;
    border-top: none !important;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.14) !important;
  }

  /* Connected Add-New Bar (Text, Photo, Panel) */
  body:not(:has(#adminPanel)) #controls #text-add ul,
  body:not(:has(#adminPanel)) #controls #paneladd ul,
  body:not(:has(#adminPanel)) #controls #toolbar-text ul[style*="#1d5251"],
  body:not(:has(#adminPanel)) #controls #toolbar-photo ul[style*="#1d5251"],
  body:not(:has(#adminPanel)) #controls #toolbar-panel ul[style*="#1d5251"],
  body:not(:has(#adminPanel)) #controls menu.idcreatorToolbar > .idcreator-container-inner > div > ul[style*="#1d5251"],
  body:not(:has(#adminPanel)) #controls menu.idcreatorToolbar > .idcreator-container-inner > ul[style*="#1d5251"] {
    background-color: #eaf0f6 !important;
    border-bottom: 1px solid #d5e0ec !important;
  }

  body:not(:has(#adminPanel)) #controls #text-add button,
  body:not(:has(#adminPanel)) #controls #photo-add button,
  body:not(:has(#adminPanel)) #controls #paneladd button,
  body:not(:has(#adminPanel)) #controls #toolbar-text ul[style*="#1d5251"] button.btn-light,
  body:not(:has(#adminPanel)) #controls #toolbar-photo ul[style*="#1d5251"] button.btn-light,
  body:not(:has(#adminPanel)) #controls #toolbar-panel ul[style*="#1d5251"] button.btn-light {
    background-color: #ffffff !important;
    color: #003366 !important;
    border: 1.5px solid #003366 !important;
    box-shadow: 0 1px 3px rgba(0, 51, 102, 0.10) !important;
  }

  body:not(:has(#adminPanel)) #controls #text-add button:hover,
  body:not(:has(#adminPanel)) #controls #photo-add button:hover,
  body:not(:has(#adminPanel)) #controls #paneladd button:hover,
  body:not(:has(#adminPanel)) #controls #toolbar-text ul[style*="#1d5251"] button.btn-light:hover,
  body:not(:has(#adminPanel)) #controls #toolbar-photo ul[style*="#1d5251"] button.btn-light:hover,
  body:not(:has(#adminPanel)) #controls #toolbar-panel ul[style*="#1d5251"] button.btn-light:hover {
    background-color: #003366 !important;
    border-color: #003366 !important;
    color: #ffffff !important;
  }

  /* Barcode & QR Inspector Controls */
  body:not(:has(#adminPanel)) #controls #toolbar-barcode button.btn-light,
  body:not(:has(#adminPanel)) #controls #toolbar-barcode button.btn-secondary,
  body:not(:has(#adminPanel)) #controls #toolbar-barcode button.btn-dark,
  body:not(:has(#adminPanel)) #controls #toolbar-barcode button.btn-info,
  body:not(:has(#adminPanel)) #controls #toolbar-barcode button.btn-outline-dark,
  body:not(:has(#adminPanel)) #controls #toolbar-barcode button.btn-outline-secondary {
    background: #ffffff !important;
    border: 1.5px solid #003366 !important;
    color: #003366 !important;
    font-weight: 700 !important;
  }

  body:not(:has(#adminPanel)) #controls #toolbar-barcode button.btn-light:hover,
  body:not(:has(#adminPanel)) #controls #toolbar-barcode button.btn-secondary:hover,
  body:not(:has(#adminPanel)) #controls #toolbar-barcode button.btn-dark:hover,
  body:not(:has(#adminPanel)) #controls #toolbar-barcode button.btn-info:hover,
  body:not(:has(#adminPanel)) #controls #toolbar-barcode button.btn-outline-dark:hover,
  body:not(:has(#adminPanel)) #controls #toolbar-barcode button.btn-outline-secondary:hover {
    background: #003366 !important;
    border-color: #003366 !important;
    color: #ffffff !important;
  }

  body:not(:has(#adminPanel)) #controls #toolbar-barcode input[type="text"]:focus,
  body:not(:has(#adminPanel)) #controls #toolbar-barcode textarea:focus,
  body:not(:has(#adminPanel)) #controls #toolbar-barcode select:focus,
  body:not(:has(#adminPanel)) #controls #toolbar-text textarea.text-field:focus {
    border-color: #003366 !important;
    box-shadow: 0 0 0 2px rgba(0, 51, 102, 0.16) !important;
  }

  /* Panel Inspector Rows & Range Sliders */
  body:not(:has(#adminPanel)) #controls #toolbar-panel li {
    background: #ffffff !important;
    border: 1px solid #d5e0ec !important;
    border-radius: 9px !important;
  }

  body:not(:has(#adminPanel)) #controls #toolbar-panel li.eic-tip-li,
  body:not(:has(#adminPanel)) #controls #toolbar-panel li:has(> span.separator:only-child),
  body:not(:has(#adminPanel)) #controls #toolbar-panel li:has(> input[style*="display: none"]:first-child) {
    background: transparent !important;
    border: none !important;
  }

  body:not(:has(#adminPanel)) #controls menu.idcreatorToolbar input[type="range"],
  body:not(:has(#adminPanel)) #controls menu.idcreatorToolbar .custom-range {
    accent-color: #003366 !important;
  }

  body:not(:has(#adminPanel)) #controls menu.idcreatorToolbar .custom-range::-webkit-slider-thumb {
    background: #003366 !important;
  }

  body:not(:has(#adminPanel)) #controls menu.idcreatorToolbar .custom-range::-moz-range-thumb {
    background: #003366 !important;
  }

  /* Text Style, Align & Photo Action Active/Hover States */
  body:not(:has(#adminPanel)) #controls menu.idcreatorToolbar .btn-toolbar.active,
  body:not(:has(#adminPanel)) #controls menu.idcreatorToolbar .btn-toolbar.button-active {
    background-color: #e6eff8 !important;
    border-color: #003366 !important;
    color: #003366 !important;
    box-shadow: inset 0 0 0 1px #003366 !important;
  }

  body:not(:has(#adminPanel)) #controls menu.idcreatorToolbar .btn-toolbar:hover {
    background-color: #f0f5fa !important;
    border-color: #003366 !important;
  }

  body:not(:has(#adminPanel)) .eic-photo-action-btn {
    color: #003366 !important;
    border-color: #bfd0e2 !important;
  }

  body:not(:has(#adminPanel)) .eic-photo-action-btn:hover,
  body:not(:has(#adminPanel)) #controls #photo-replace .eic-photo-action-btn:hover,
  body:not(:has(#adminPanel)) #controls #btnCrop .eic-photo-action-btn:hover,
  body:not(:has(#adminPanel)) #controls #photo-boost .eic-photo-action-btn:hover,
  body:not(:has(#adminPanel)) #controls #btnSetBackground .eic-photo-action-btn:hover {
    background-color: #e6eff8 !important;
    border-color: #003366 !important;
    color: #003366 !important;
  }

  /* Card Elements Active Row & Front/Back Switch */
  body:not(:has(#adminPanel)) .eic-card-item-row.active {
    background: #e6eff8 !important;
    border-color: #003366 !important;
    box-shadow: 0 0 0 2px rgba(0, 51, 102, 0.14) !important;
  }

  body:not(:has(#adminPanel)) .eic-ci-side-btn.active {
    color: #003366 !important;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.14), inset 0 0 0 1.5px #003366 !important;
  }
}

/* Floating Pill Bar Slot Active Toggle (Subtle Clean Pill) */
body:not(:has(#adminPanel)) .eic-slot-seg-btn.active {
  background: #ffffff !important;
  color: #0f172a !important;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.12), inset 0 0 0 1px #cbd5e1 !important;
}

body:not(:has(#adminPanel)) .eic-pill-btn:hover:not(.disabled) {
  background: #f0f5fa !important;
  border-color: #003366 !important;
  color: #003366 !important;
}


/* ==========================================================================
   V44 POLISH:
   1) Unified '+ Add new ...' Spacing & Non-White Hover Across Text, Photo & Panel
   2) #card-preview-container Background -> #eaeff4
   3) Modern Clean Studio Modal Design (Replaces Heavy Dark Modal Header)
   ========================================================================== */

/* 1. Identical '+' Spacing & Crisp Light-Tint Hover on All 3 Add-New Buttons */
@media (min-width: 769px) {
  body:not(:has(#adminPanel)) #controls #text-add button,
  body:not(:has(#adminPanel)) #controls #photo-add button,
  body:not(:has(#adminPanel)) #controls #paneladd button,
  body:not(:has(#adminPanel)) #controls #toolbar-text ul[style*="#1d5251"] button.btn-light,
  body:not(:has(#adminPanel)) #controls #toolbar-photo ul[style*="#1d5251"] button.btn-light,
  body:not(:has(#adminPanel)) #controls #toolbar-panel ul[style*="#1d5251"] button.btn-light {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    width: 100% !important;
    min-height: 36px !important;
    height: 36px !important;
    padding: 0 14px !important;
    background-color: #ffffff !important;
    color: #003366 !important;
    border: 1.5px solid #bfd0e2 !important;
    border-radius: 9px !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05) !important;
    transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease !important;
  }

  .eic-add-plus {
    margin-right: 0 !important;
    font-size: 17px !important;
    font-weight: 800 !important;
    line-height: 1 !important;
    color: #003366 !important;
  }

  #controls #paneladd button::before {
    content: "+" !important;
    margin-right: 0 !important;
    font-size: 17px !important;
    font-weight: 800 !important;
    line-height: 1 !important;
    color: #003366 !important;
  }

  /* Keep text dark navy (#003366) on hover — never switch to white text */
  body:not(:has(#adminPanel)) #controls #text-add button:hover,
  body:not(:has(#adminPanel)) #controls #photo-add button:hover,
  body:not(:has(#adminPanel)) #controls #paneladd button:hover,
  body:not(:has(#adminPanel)) #controls #toolbar-text ul[style*="#1d5251"] button.btn-light:hover,
  body:not(:has(#adminPanel)) #controls #toolbar-photo ul[style*="#1d5251"] button.btn-light:hover,
  body:not(:has(#adminPanel)) #controls #toolbar-panel ul[style*="#1d5251"] button.btn-light:hover {
    background-color: #e6eff8 !important;
    border-color: #003366 !important;
    color: #003366 !important;
  }

  body:not(:has(#adminPanel)) #controls #text-add button:hover .eic-add-plus,
  body:not(:has(#adminPanel)) #controls #photo-add button:hover .eic-add-plus,
  body:not(:has(#adminPanel)) #controls #paneladd button:hover::before {
    color: #003366 !important;
  }
}

/* 2. #card-preview-container Background -> #eaeff4 */
body:not(:has(#adminPanel)) #card-preview-container {
  background-color: #eaeff4 !important;
  background-image: none !important;
  border-right: 1px solid #cbd5e1 !important;
}

/* 3. Modern Clean Studio Modal Look (Crop, Save, Text, QR, Blank Helper) */
.eic-modal .modal-content {
  border: 1px solid #cbd5e1 !important;
  border-radius: 18px !important;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.28), 0 4px 16px rgba(15, 23, 42, 0.08) !important;
  background: #ffffff !important;
  overflow: hidden !important;
}

@media (max-width: 767.98px) {
  .eic-modal .modal-content {
    border-radius: 22px 22px 0 0 !important;
  }
}

.eic-sheet-pill-wrap {
  background: #ffffff !important;
  padding: 10px 0 2px !important;
}

.eic-sheet-pill {
  background: #cbd5e1 !important;
}

.eic-modal .modal-header {
  background: #ffffff !important;
  color: #0f172a !important;
  border-bottom: 1px solid #e2e8f0 !important;
  padding: 16px 20px 14px !important;
  position: relative !important;
}

/* Subtle top brand accent bar across the modal */
.eic-modal .modal-header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3.5px;
  background: linear-gradient(90deg, #003366 0%, #004c99 65%, #e19c4b 100%);
}

.eic-modal .modal-title {
  font-size: 16.5px !important;
  font-weight: 800 !important;
  letter-spacing: -0.2px !important;
  color: #0f172a !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 10px !important;
}

.eic-modal .modal-title svg {
  width: 30px !important;
  height: 30px !important;
  padding: 6px !important;
  border-radius: 9px !important;
  background: #f0f5fa !important;
  border: 1px solid #dbe6f2 !important;
  color: #003366 !important;
  flex-shrink: 0 !important;
}

.eic-modal .modal-header .close {
  width: 34px !important;
  height: 34px !important;
  min-width: 34px !important;
  min-height: 34px !important;
  border-radius: 10px !important;
  background: #f1f5f9 !important;
  border: 1px solid #e2e8f0 !important;
  color: #475569 !important;
  font-size: 20px !important;
  font-weight: 500 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: all 0.15s ease !important;
}

.eic-modal .modal-header .close:hover {
  background: #e2e8f0 !important;
  color: #0f172a !important;
}

.eic-modal .modal-body {
  background: #ffffff !important;
  padding: 18px 20px !important;
}

.eic-modal .modal-body.eic-dark-stage {
  background: #0f172a !important;
  padding: 12px 16px !important;
}

.eic-modal .modal-footer,
.eic-crop-bar {
  background: #f8fafc !important;
  border-top: 1px solid #e2e8f0 !important;
  padding: 14px 20px !important;
}


/* ==========================================================================
   V46 POLISH:
   Restore Suggested Light Studio Dot-Grid Workspace Background (#eef2f6)
   (Keeping #card-preview-container at #eaeff4)
   ========================================================================== */
body:not(:has(#adminPanel)),
body:not(:has(#adminPanel)).body-background,
body:not(:has(#adminPanel)) .body-background,
body:not(:has(#adminPanel)) #document-container,
body:not(:has(#adminPanel)) #idcreator-container,
body:not(:has(#adminPanel)) #mainArea,
body:not(:has(#adminPanel)) #card-container {
  background-color: #eef2f6 !important;
  background-image: radial-gradient(#cbd5e1 1px, transparent 1px) !important;
  background-size: 18px 18px !important;
}

body:not(:has(#adminPanel)) #canva-container .canvas-container {
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.14), 0 0 0 1px rgba(15, 23, 42, 0.06) !important;
}


/* ==========================================================================
   V47 POLISH:
   Modern Clean Studio Redesign for Quick Fill Card Drawer & Controls
   (Matches V44 Modal Header & Studio Surface Palette)
   ========================================================================== */
.eic-qe-shell {
  background: #ffffff !important;
  border-right: 1px solid #cbd5e1 !important;
  box-shadow: 16px 0 48px rgba(15, 23, 42, 0.22), 0 4px 16px rgba(15, 23, 42, 0.08) !important;
}

@media (max-width: 767.98px) {
  .eic-qe-shell {
    border-right: none !important;
    border-top: 1px solid #cbd5e1 !important;
    border-radius: 22px 22px 0 0 !important;
    box-shadow: 0 -14px 44px rgba(15, 23, 42, 0.26) !important;
  }
}

.eic-qe-header {
  background: #ffffff !important;
  color: #0f172a !important;
  border-bottom: 1px solid #e2e8f0 !important;
  padding: 16px 18px 14px !important;
  position: relative !important;
}

/* Subtle top brand accent hairline matching V44 modals */
.eic-qe-header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3.5px;
  background: linear-gradient(90deg, #003366 0%, #004c99 65%, #e19c4b 100%);
}

.eic-qe-drag-pill {
  background: #cbd5e1 !important;
  margin-bottom: 10px !important;
}

.eic-qe-badge-icon {
  width: 34px !important;
  height: 34px !important;
  border-radius: 10px !important;
  background: #f0f5fa !important;
  border: 1px solid #dbe6f2 !important;
  color: #003366 !important;
}

.eic-qe-title {
  font-size: 16px !important;
  font-weight: 800 !important;
  letter-spacing: -0.2px !important;
  color: #0f172a !important;
}

.eic-qe-subtitle {
  font-size: 12px !important;
  font-weight: 500 !important;
  color: #64748b !important;
  margin-top: 2px !important;
}

.eic-qe-preview-btn {
  background: #f1f5f9 !important;
  border: 1px solid #cbd5e1 !important;
  color: #003366 !important;
  font-size: 12.5px !important;
  font-weight: 700 !important;
  min-height: 34px !important;
  padding: 0 13px !important;
  border-radius: 10px !important;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04) !important;
  transition: all 0.15s ease !important;
}

.eic-qe-preview-btn:hover {
  background: #e6eff8 !important;
  border-color: #003366 !important;
  color: #003366 !important;
}

/* Modern Light Segmented Front / Back Switcher */
.eic-qe-side-tabs {
  background: #eef2f6 !important;
  border: 1px solid #dbe3ec !important;
  padding: 3px !important;
  border-radius: 10px !important;
  gap: 4px !important;
  margin-top: 13px !important;
}

.eic-qe-side-tab {
  color: #475569 !important;
  font-size: 12.5px !important;
  font-weight: 700 !important;
  min-height: 32px !important;
  border-radius: 8px !important;
  transition: all 0.15s ease !important;
}

.eic-qe-side-tab:hover {
  color: #003366 !important;
}

.eic-qe-side-tab.active {
  background: #ffffff !important;
  color: #003366 !important;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.10), inset 0 0 0 1px #cbd5e1 !important;
}

/* Clean Studio Body & Field Cards */
.eic-qe-body {
  background: #f4f7fa !important;
  padding: 14px 16px !important;
}

.eic-qe-field-card {
  background: #ffffff !important;
  border: 1px solid #d5e0ec !important;
  border-radius: 12px !important;
  padding: 12px 13px !important;
  margin-bottom: 10px !important;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04) !important;
  transition: border-color 0.15s ease, box-shadow 0.15s ease !important;
}

.eic-qe-field-card:hover {
  border-color: #94a3b8 !important;
}

.eic-qe-field-card.is-focused {
  border-color: #003366 !important;
  box-shadow: 0 0 0 3px rgba(0, 51, 102, 0.10) !important;
}

.eic-qe-label {
  font-size: 12.5px !important;
  font-weight: 700 !important;
  color: #1e293b !important;
}

.eic-qe-input {
  height: 40px !important;
  border: 1.5px solid #cbd5e1 !important;
  border-radius: 9px !important;
  background: #f8fafc !important;
  color: #0f172a !important;
  font-size: 13.5px !important;
  transition: all 0.15s ease !important;
}

.eic-qe-input:hover {
  background: #ffffff !important;
  border-color: #94a3b8 !important;
}

.eic-qe-input:focus {
  background: #ffffff !important;
  border-color: #003366 !important;
  box-shadow: 0 0 0 3px rgba(0, 51, 102, 0.12) !important;
}

.eic-qe-thumb {
  border-radius: 10px !important;
  border: 1.5px solid #cbd5e1 !important;
  background: #f8fafc !important;
}

.eic-qe-swatch.active {
  box-shadow: 0 0 0 2px #ffffff, 0 0 0 4px #003366 !important;
}

/* Sticky Bottom Footer & Minimized Dock */
.eic-qe-footer {
  background: #ffffff !important;
  border-top: 1px solid #e2e8f0 !important;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px)) !important;
}

.eic-qe-footer .eic-btn-cancel,
.eic-qe-dock-edit {
  background: #f1f5f9 !important;
  border: 1px solid #cbd5e1 !important;
  color: #003366 !important;
  font-weight: 700 !important;
  border-radius: 10px !important;
}

.eic-qe-footer .eic-btn-cancel:hover,
.eic-qe-dock-edit:hover {
  background: #e6eff8 !important;
  border-color: #003366 !important;
  color: #003366 !important;
}


/* ==========================================================================
   V48 POLISH:
   Unified Brand Navy (#003366) & Warm Copper-Amber (#e19c4b) Canvas Selection
   Bounding Box & Handles Theme
   ========================================================================== */
#eic-offcanvas-overlay .eic-oc-box {
  border: 1.5px dashed #003366 !important;
}

#eic-offcanvas-overlay.is-locked .eic-oc-box {
  border-color: #e19c4b !important;
}

#eic-offcanvas-overlay .eic-oc-rot-stem,
#eic-offcanvas-overlay .eic-oc-tr-knob {
  background: #003366 !important;
}

#eic-offcanvas-overlay .eic-oc-rot-knob {
  border: 1.5px solid #003366 !important;
  background: #ffffff !important;
}


/* ==========================================================================
   V49 POLISH:
   Set #card-preview-container Background to #f8fafc
   ========================================================================== */
body:not(:has(#adminPanel)) #card-preview-container {
  background-color: #f8fafc !important;
  background-image: none !important;
  border-right: 1px solid #cbd5e1 !important;
}


/* ==========================================================================
   V50 POLISH:
   1) Quick Fill Card Save & Order Capsule (`Est. $2.49 / card` + CTA)
   2) Draggable Layer Sorting Grip & Drop-Indicator States in Card Elements
   ========================================================================== */
.eic-qe-save-capsule {
  min-height: 44px;
  padding: 3px;
  border-radius: 11px;
  background: #f8fafc;
  border: 1.5px solid #cbd5e1;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
}

.eic-qe-save-capsule .eic-save-price-seg {
  display: inline-flex !important;
  align-items: baseline;
  padding: 0 9px 0 10px;
}

.eic-qe-save-capsule .eic-save-cta-btn {
  height: 36px !important;
  min-height: 36px !important;
  padding: 0 14px !important;
  border-radius: 8px !important;
  flex: 1 1 auto;
}

.eic-qe-minimized-dock .eic-qe-save-capsule {
  flex: 1 1 auto;
}

/* Card Elements Draggable Layer Rows */
.eic-card-item-row[draggable="true"] {
  user-select: none;
  position: relative;
}

.eic-ci-drag-grip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 24px;
  color: #94a3b8;
  cursor: grab;
  flex-shrink: 0;
  margin-right: -2px !important;
  border-radius: 4px;
  transition: color 0.14s ease, background-color 0.14s ease;
}

.eic-card-item-row:hover .eic-ci-drag-grip {
  color: #003366;
  background: rgba(0, 51, 102, 0.06);
}

.eic-ci-drag-grip:active {
  cursor: grabbing;
}

.eic-card-item-row.is-dragging {
  opacity: 0.45 !important;
  border-style: dashed !important;
  border-color: #003366 !important;
}

.eic-card-item-row.drop-above {
  box-shadow: 0 -2.5px 0 0 #e19c4b, 0 2px 6px rgba(0, 51, 102, 0.10) !important;
  border-top-color: #e19c4b !important;
}

.eic-card-item-row.drop-below {
  box-shadow: 0 2.5px 0 0 #e19c4b, 0 2px 6px rgba(0, 51, 102, 0.10) !important;
  border-bottom-color: #e19c4b !important;
}


/* ==========================================================================
   V51 POLISH:
   Studio Segmented Capsule Theme for Front / Back Toggle Under Card Canvas
   ========================================================================== */
body:not(:has(#adminPanel)) #flip-badge-buttons {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: #f8fafc !important;
  border: 1.5px solid #cbd5e1 !important;
  border-radius: 12px !important;
  padding: 3px !important;
  gap: 4px !important;
  margin-top: 18px !important;
  box-shadow: 0 3px 10px rgba(15, 23, 42, 0.08) !important;
}

body:not(:has(#adminPanel)) #flip-badge-buttons .btn {
  min-width: 78px !important;
  height: 32px !important;
  padding: 0 16px !important;
  border-radius: 9px !important;
  font-size: 12.5px !important;
  font-weight: 700 !important;
  letter-spacing: 0.3px !important;
  border: none !important;
  transition: all 0.16s ease !important;
}

body:not(:has(#adminPanel)) #flip-badge-buttons .btn-light:not(.btn-dark) {
  background: transparent !important;
  color: #475569 !important;
  box-shadow: none !important;
}

body:not(:has(#adminPanel)) #flip-badge-buttons .btn-light:not(.btn-dark):hover {
  background: #e6eff8 !important;
  color: #003366 !important;
}

body:not(:has(#adminPanel)) #flip-badge-buttons .btn-dark {
  background: linear-gradient(135deg, #003366 0%, #00478f 100%) !important;
  color: #ffffff !important;
  box-shadow: 0 2px 6px rgba(0, 51, 102, 0.24), inset 0 -2px 0 #e19c4b !important;
}


/* ==========================================================================
   V52 FIX:
   Explicit Studio Capsule Theme on #flip-badge-wrap / #flip-badge-buttons
   (Overrides Bootstrap .btn-group radius & color rules cleanly)
   ========================================================================== */
#flip-badge-wrap,
.eic-fb-wrap {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  margin-top: 18px !important;
}

#flip-badge-buttons.eic-fb-capsule {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: #f8fafc !important;
  border: 1.5px solid #cbd5e1 !important;
  border-radius: 12px !important;
  padding: 3px !important;
  gap: 4px !important;
  margin-top: 0 !important;
  box-shadow: 0 3px 10px rgba(15, 23, 42, 0.12) !important;
}

#flip-badge-buttons.eic-fb-capsule > .eic-fb-btn {
  min-width: 82px !important;
  height: 32px !important;
  padding: 0 18px !important;
  margin: 0 !important;
  border-radius: 9px !important;
  font-size: 12.5px !important;
  font-weight: 700 !important;
  letter-spacing: 0.3px !important;
  border: none !important;
  box-shadow: none !important;
  transition: all 0.16s ease !important;
}

#flip-badge-buttons.eic-fb-capsule > .eic-fb-btn:not(.is-active) {
  background: transparent !important;
  color: #475569 !important;
}

#flip-badge-buttons.eic-fb-capsule > .eic-fb-btn:not(.is-active):hover {
  background: #e6eff8 !important;
  color: #003366 !important;
}

#flip-badge-buttons.eic-fb-capsule > .eic-fb-btn.is-active {
  background: linear-gradient(135deg, #003366 0%, #00478f 100%) !important;
  color: #ffffff !important;
  box-shadow: 0 2px 6px rgba(0, 51, 102, 0.28), inset 0 -2.5px 0 #e19c4b !important;
}


/* ==========================================================================
   V54 POLISH:
   Optional Quick Fill Company/Brand Accordion & Non-Intrusive Hide/Restore
   ========================================================================== */
.eic-qe-empty-primary {
  font-size: 12.5px;
  color: #64748b;
  background: #ffffff;
  border: 1px dashed #cbd5e1;
  border-radius: 10px;
  padding: 12px;
  text-align: center;
  margin-bottom: 10px;
}

.eic-qe-hide-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  color: #94a3b8;
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.14s ease;
}

.eic-qe-field-card:hover .eic-qe-hide-btn {
  color: #64748b;
}

.eic-qe-hide-btn:hover {
  background: #f1f5f9 !important;
  border-color: #cbd5e1 !important;
  color: #003366 !important;
}

.eic-qe-brand-section {
  margin-top: 12px;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  background: #ffffff;
  overflow: hidden;
}

.eic-qe-brand-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 12px;
  border: none;
  background: #f0f5fa;
  color: #003366;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  text-align: left;
  transition: background-color 0.14s ease;
}

.eic-qe-brand-toggle:hover {
  background: #e6eff8;
}

.eic-qe-brand-toggle-left {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: inherit !important;
}

.eic-qe-brand-toggle-left span,
.eic-qe-brand-toggle-right span {
  color: inherit !important;
  margin-right: 0 !important;
  font-size: inherit !important;
}

.eic-qe-brand-toggle-right {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #475569 !important;
  font-size: 11.5px !important;
}

.eic-qe-brand-pill {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  color: #003366 !important;
  padding: 1px 8px;
  border-radius: 999px;
  font-size: 11px !important;
  font-weight: 700;
}

.eic-qe-brand-body {
  padding: 10px 10px 2px 10px;
  background: #f8fafc;
  border-top: 1px solid #e2e8f0;
}

.eic-qe-hidden-bar {
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px dashed #cbd5e1;
}

.eic-qe-hidden-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: transparent;
  border: none;
  padding: 4px 2px;
  font-size: 12px;
  font-weight: 600;
  color: #64748b;
  cursor: pointer;
}

.eic-qe-hidden-toggle:hover {
  color: #003366;
}

.eic-qe-hidden-toggle span {
  color: inherit !important;
  margin-right: 0 !important;
  font-size: inherit !important;
}

.eic-qe-hidden-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
}

.eic-qe-restore-chip {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: #003366;
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.14s ease;
}

.eic-qe-restore-chip:hover {
  background: #e6eff8;
  border-color: #003366;
}

.eic-qe-restore-chip span {
  color: inherit !important;
  margin-right: 0 !important;
  font-size: inherit !important;
}


/* ==========================================================================
   V55 POLISH:
   1) Subtle, understated Front / Back Switcher positioned closer to card (8px)
   2) Clear "Slot Guide · Preview" label & pill styling in #topControlBar
   ========================================================================== */
#flip-badge-wrap,
.eic-fb-wrap {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  margin-top: 8px !important;
}

#flip-badge-buttons.eic-fb-capsule {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: rgba(255, 255, 255, 0.58) !important;
  backdrop-filter: blur(4px) !important;
  border: 1px solid rgba(148, 163, 184, 0.45) !important;
  border-radius: 999px !important;
  padding: 2px !important;
  gap: 2px !important;
  margin-top: 0 !important;
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.06) !important;
}

#flip-badge-buttons.eic-fb-capsule > .eic-fb-btn {
  min-width: 66px !important;
  height: 25px !important;
  padding: 0 14px !important;
  margin: 0 !important;
  border-radius: 999px !important;
  font-size: 11.5px !important;
  font-weight: 600 !important;
  letter-spacing: 0.2px !important;
  border: none !important;
  box-shadow: none !important;
  transition: all 0.15s ease !important;
}

#flip-badge-buttons.eic-fb-capsule > .eic-fb-btn:not(.is-active) {
  background: transparent !important;
  color: #475569 !important;
}

#flip-badge-buttons.eic-fb-capsule > .eic-fb-btn:not(.is-active):hover {
  background: rgba(255, 255, 255, 0.72) !important;
  color: #003366 !important;
}

#flip-badge-buttons.eic-fb-capsule > .eic-fb-btn.is-active {
  background: #ffffff !important;
  color: #003366 !important;
  font-weight: 700 !important;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.12), inset 0 0 0 1px rgba(0, 51, 102, 0.22) !important;
}

/* Slot Guide · Preview Label in Top Floating Pill Bar */
.eic-slot-guide-ctrl {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.eic-slot-guide-lbl {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px !important;
  font-weight: 700 !important;
  color: #334155 !important;
  margin: 0 !important;
  white-space: nowrap;
}

.eic-slot-guide-lbl span {
  margin-right: 0 !important;
}

.eic-slot-free-tag {
  font-size: 10px !important;
  font-weight: 700 !important;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  color: #003366 !important;
  background: #e6eff8;
  border: 1px solid #bfd0e2;
  padding: 1px 6px;
  border-radius: 999px;
  line-height: 1.3;
}


/* ==========================================================================
   V66 POLISH:
   1) Ultra-subtle Front | Back switcher below the card canvas
   2) Refined, subtle active state on Card Elements (10) button
   3) Dimmed background veil over sibling controls when Tips are open +
      1 | 2 | Video pagination controls inside Tips
   ========================================================================== */

/* 1. Subtle, quiet Front | Back switcher directly beneath the card */
#flip-badge-wrap,
.eic-fb-wrap {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  margin-top: 10px !important;
}

#flip-badge-buttons.eic-fb-capsule {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: rgba(255, 255, 255, 0.34) !important;
  backdrop-filter: blur(4px) !important;
  border: 1px solid rgba(255, 255, 255, 0.42) !important;
  border-radius: 999px !important;
  padding: 2px !important;
  gap: 2px !important;
  margin-top: 0 !important;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05) !important;
}

#flip-badge-buttons.eic-fb-capsule > .eic-fb-btn {
  min-width: 62px !important;
  height: 23px !important;
  padding: 0 13px !important;
  margin: 0 !important;
  border-radius: 999px !important;
  font-size: 11px !important;
  font-weight: 600 !important;
  letter-spacing: 0.2px !important;
  border: none !important;
  box-shadow: none !important;
  transition: all 0.15s ease !important;
}

#flip-badge-buttons.eic-fb-capsule > .eic-fb-btn:not(.is-active) {
  background: transparent !important;
  color: #334155 !important;
}

#flip-badge-buttons.eic-fb-capsule > .eic-fb-btn:not(.is-active):hover {
  background: rgba(255, 255, 255, 0.52) !important;
  color: #0f172a !important;
}

#flip-badge-buttons.eic-fb-capsule > .eic-fb-btn.is-active {
  background: rgba(255, 255, 255, 0.88) !important;
  color: #1e293b !important;
  font-weight: 700 !important;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.10) !important;
}

/* 2. Refined, subtle active state on Card Elements (10) button (no heavy dark block) */
@media (min-width: 769px) {
  body:not(:has(#adminPanel)) #controls .eic-dock-layers-btn {
    background: rgba(255, 255, 255, 0.92) !important;
    border: 1px solid #cbd5e1 !important;
    color: #334155 !important;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06) !important;
  }

  body:not(:has(#adminPanel)) #controls .eic-dock-layers-btn:hover {
    background: #ffffff !important;
    border-color: #94a3b8 !important;
    color: #0f172a !important;
  }

  body:not(:has(#adminPanel)) #controls .eic-dock-layers-btn.active {
    background: #ffffff !important;
    border: 1.5px solid #94a3b8 !important;
    border-left: 3.5px solid #e19c4b !important;
    color: #0f172a !important;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.09) !important;
  }
}

/* Tips stay self-contained without dimming sibling controls */

#controls .eic-tip-li.is-tip-open {
  position: relative;
  z-index: 6;
}

#controls .eic-tip-li.is-tip-open .eic-tip-card {
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.14) !important;
  border-color: #94a3b8 !important;
}

.eic-tip-pager {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 9px;
  padding-top: 7px;
  border-top: 1px solid #e2e8f0;
}

.eic-tip-dots {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.eic-tip-page-btn {
  min-width: 22px;
  height: 21px;
  padding: 0 6px;
  border-radius: 6px;
  border: 1px solid #cbd5e1;
  background: #f8fafc;
  color: #475569;
  font-size: 11px !important;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  transition: all 0.14s ease;
}

.eic-tip-page-btn:hover {
  background: #e2e8f0;
  color: #0f172a;
}

.eic-tip-page-btn.active {
  background: #003366 !important;
  border-color: #003366 !important;
  color: #ffffff !important;
}

.eic-tip-page-btn.eic-tip-vid-btn span {
  color: inherit !important;
  margin-right: 0 !important;
  font-size: 10.5px !important;
}

.eic-tip-next-link {
  border: none;
  background: transparent;
  color: #003366;
  font-size: 11.5px;
  font-weight: 700;
  padding: 2px 4px;
  cursor: pointer;
}

.eic-tip-next-link:hover {
  text-decoration: underline;
}

.eic-tip-video-slot {
  padding: 2px 0;
}

.eic-tip-video-thumb {
  display: flex;
  align-items: center;
  gap: 9px;
  background: #f1f5f9;
  border: 1px dashed #94a3b8;
  border-radius: 8px;
  padding: 8px 10px;
}

.eic-tip-play-badge {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #003366;
  color: #ffffff !important;
  font-size: 11px !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin: 0 !important;
}


/* ==========================================================================
   V67 POLISH:
   Smart Panel Quick Layouts (Header, Footer, Side Stripe, Card Border) +
   Wizard-Ready Brand Theme Palette Swatches
   ========================================================================== */
.eic-panel-presets-root {
  width: 100%;
}

.eic-preset-section {
  padding: 10px 12px 6px 12px;
  border-bottom: 1px solid #d5e0ec;
  background: #f8fafc;
}

.eic-preset-section-hdr {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: #475569;
  margin-bottom: 7px;
}

.eic-preset-section-hdr span {
  color: inherit !important;
  margin-right: 0 !important;
  font-size: inherit !important;
}

.eic-preset-orient-tag {
  background: #e6eff8;
  border: 1px solid #bfd0e2;
  color: #003366 !important;
  padding: 1px 6px;
  border-radius: 999px;
  font-size: 10px !important;
  text-transform: none;
  letter-spacing: 0;
}

.eic-preset-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

.eic-preset-tile {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 6px 8px;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  color: #1e293b;
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
  text-align: left;
  transition: all 0.14s ease;
}

.eic-preset-tile:hover {
  background: #f0f5fa;
  border-color: #003366;
  color: #003366;
}

.eic-preset-tile span {
  color: inherit !important;
  margin-right: 0 !important;
  font-size: inherit !important;
}

.eic-preset-mini {
  width: 24px;
  height: 17px;
  border-radius: 3px;
  border: 1.5px solid #94a3b8;
  background: #ffffff;
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
  display: inline-block;
}

.eic-preset-tile:hover .eic-preset-mini {
  border-color: #003366;
}

.eic-preset-mini i {
  display: block;
  position: absolute;
  background: #003366;
}

.eic-preset-mini i.is-header {
  top: 0; left: 0; right: 0; height: 5px;
}

.eic-preset-mini i.is-footer {
  bottom: 0; left: 0; right: 0; height: 4px;
}

.eic-preset-mini i.is-stripe {
  top: 0; bottom: 0; left: 0; width: 5px;
}

.eic-preset-mini i.is-frame {
  inset: 2px;
  background: transparent;
  border: 1.5px solid #003366;
  border-radius: 2px;
}

/* Theme Palette Strip */
.eic-theme-strip {
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px dashed #cbd5e1;
}

.eic-theme-dots {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 5px;
}

.eic-theme-pill {
  height: 22px;
  padding: 0;
  border-radius: 999px;
  border: 1.5px solid #cbd5e1;
  overflow: hidden;
  display: flex;
  cursor: pointer;
  background: #ffffff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08);
  transition: transform 0.12s ease, border-color 0.12s ease;
}

.eic-theme-pill:hover {
  transform: scale(1.1);
  border-color: #003366;
}

.eic-theme-pill.active {
  border-color: #003366;
  box-shadow: 0 0 0 2px #ffffff, 0 0 0 3.5px #e19c4b;
}

.eic-theme-half {
  flex: 1;
  height: 100%;
  margin: 0 !important;
  display: block;
}

.eic-mobile-panel-presets {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}


/* ==========================================================================
   V68 POLISH:
   1) Lighter, softer selected state on Front / Back toggle
   2) Restore '+ Add new panel' header bar & button styling inside .eic-panel-presets-root
   3) Mini layout icons for Right Stripe & Side Split
   ========================================================================== */
#flip-badge-buttons.eic-fb-capsule {
  background: rgba(255, 255, 255, 0.28) !important;
  border: 1px solid rgba(255, 255, 255, 0.45) !important;
}

#flip-badge-buttons.eic-fb-capsule > .eic-fb-btn:not(.is-active) {
  background: transparent !important;
  color: #334155 !important;
}

#flip-badge-buttons.eic-fb-capsule > .eic-fb-btn.is-active {
  background: rgba(255, 255, 255, 0.92) !important;
  color: #003366 !important;
  font-weight: 700 !important;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.10), inset 0 0 0 1px rgba(203, 213, 225, 0.9) !important;
}

/* Restore '+ Add new panel' top bar & white bordered button inside .eic-panel-presets-root */
@media (min-width: 769px) {
  body:not(:has(#adminPanel)) #controls .eic-panel-presets-root > div > ul:first-child {
    padding: 12px 14px !important;
    margin: 0 !important;
    background-color: #eaf0f6 !important;
    border-bottom: 1px solid #d5e0ec !important;
    display: block !important;
  }

  body:not(:has(#adminPanel)) #controls .eic-panel-presets-root > div > ul:first-child > li {
    padding: 0 !important;
    margin: 0 !important;
    display: block !important;
    background: transparent !important;
    border: none !important;
  }

  body:not(:has(#adminPanel)) #controls .eic-panel-presets-root button.eic-add-new-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    width: 100% !important;
    min-height: 36px !important;
    height: 36px !important;
    padding: 0 14px !important;
    background-color: #ffffff !important;
    color: #003366 !important;
    border: 1.5px solid #bfd0e2 !important;
    border-radius: 9px !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05) !important;
    transition: background-color 0.15s ease, border-color 0.15s ease !important;
  }

  body:not(:has(#adminPanel)) #controls .eic-panel-presets-root button.eic-add-new-btn:hover {
    background-color: #e6eff8 !important;
    border-color: #003366 !important;
    color: #003366 !important;
  }
}

.eic-preset-mini i.is-stripe-right {
  top: 0; bottom: 0; right: 0; width: 5px;
}

.eic-preset-mini i.is-split {
  top: 0; bottom: 0; left: 0; width: 9px;
}


/* ==========================================================================
   V70 POLISH:
   1) Light Blue selected active state on Front | Back flip toggle
   2) Gradient Preset chips & Brand Theme Setup Wizard launch button
   ========================================================================== */
#flip-badge-buttons.eic-fb-capsule {
  background: rgba(255, 255, 255, 0.42) !important;
  border: 1px solid rgba(255, 255, 255, 0.55) !important;
}

#flip-badge-buttons.eic-fb-capsule > .eic-fb-btn:not(.is-active) {
  background: transparent !important;
  color: #334155 !important;
}

#flip-badge-buttons.eic-fb-capsule > .eic-fb-btn:not(.is-active):hover {
  background: rgba(224, 242, 254, 0.55) !important;
  color: #0369a1 !important;
}

#flip-badge-buttons.eic-fb-capsule > .eic-fb-btn.is-active {
  background: #e0f2fe !important;
  color: #0369a1 !important;
  font-weight: 700 !important;
  box-shadow: 0 1px 3px rgba(3, 105, 161, 0.16), inset 0 0 0 1px #7dd3fc !important;
}

/* Gradient Presets & Brand Setup Wizard Button */
.eic-grad-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5px;
}

.eic-grad-chip {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 7px;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 7px;
  font-size: 11px;
  font-weight: 700;
  color: #1e293b;
  cursor: pointer;
  text-align: left;
  transition: all 0.14s ease;
}

.eic-grad-chip:hover {
  background: #f0f5fa;
  border-color: #003366;
  color: #003366;
}

.eic-grad-chip span {
  color: inherit !important;
  margin-right: 0 !important;
  font-size: inherit !important;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.eic-grad-swatch {
  width: 16px;
  height: 16px;
  border-radius: 4px;
  border: 1px solid rgba(15, 23, 42, 0.2);
  flex-shrink: 0;
  margin: 0 !important;
  display: inline-block;
}

.eic-wizard-launch-btn {
  margin-top: 8px;
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 8px;
  border: 1px solid #bfd0e2;
  background: #e6eff8;
  color: #003366;
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.14s ease;
}

.eic-wizard-launch-btn:hover {
  background: #003366;
  border-color: #003366;
  color: #ffffff;
}

.eic-wizard-launch-btn span {
  color: inherit !important;
  margin-right: 0 !important;
  font-size: inherit !important;
}


/* ==========================================================================
   V72 POLISH:
   1) Custom Palette Colors row inside Panel Theme Palette
   2) Top-placed Panel Tip + Dimmed Backdrop Over Controls Behind/Below Open Tips
   3) Subtle, Light Front / Back Flip Component Below Card (Never Dark Blue)
   ========================================================================== */

/* 1. Custom Palette Colors Row */
.eic-custom-palette-box {
  margin-top: 8px;
  padding: 6px 8px;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

.eic-custom-palette-inputs {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.eic-custom-pal-item {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin: 0 !important;
  font-size: 11px;
  font-weight: 600;
  color: #334155;
  cursor: pointer;
}

.eic-custom-pal-item span {
  color: inherit !important;
  margin-right: 0 !important;
  font-size: inherit !important;
}

.eic-custom-pal-item input[type="color"] {
  width: 22px !important;
  height: 22px !important;
  padding: 0 !important;
  border: 1px solid #cbd5e1 !important;
  border-radius: 5px !important;
  background: transparent !important;
  cursor: pointer;
}

.eic-custom-pal-apply {
  border: 1px solid #bfd0e2;
  background: #f0f5fa;
  color: #003366;
  border-radius: 6px;
  padding: 3px 9px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.14s ease;
}

.eic-custom-pal-apply:hover {
  background: #e6eff8;
  border-color: #003366;
}

/* 2. Top Panel Tip Container + Dimmed Overlay Behind/Below Open Tips */
#controls .eic-panel-top-tip-ul {
  padding: 10px 12px 4px 12px !important;
  margin: 0 !important;
  background: transparent !important;
}

#controls .eic-panel-top-tip-ul > li.eic-tip-li {
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  border: none !important;
}

@media (min-width: 769px) {
  #controls .idcreator-container-inner {
    position: relative;
  }

  /* When any Tip drawer is open inside an inspector, dim & lock all controls behind/below it */
  #controls .idcreator-container-inner:has(.eic-tip-li.is-tip-open)::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.34);
    backdrop-filter: blur(1px);
    border-radius: 0 0 14px 14px;
    z-index: 4;
    pointer-events: auto;
  }

  #controls .idcreator-container-inner:has(.eic-tip-li.is-tip-open) .eic-tip-li.is-tip-open {
    position: relative;
    z-index: 10;
  }

  #controls .idcreator-container-inner:has(.eic-tip-li.is-tip-open) .eic-tip-li.is-tip-open .eic-tip-toggle-btn,
  #controls .idcreator-container-inner:has(.eic-tip-li.is-tip-open) .eic-tip-li.is-tip-open .eic-tip-card {
    background-color: #ffffff !important;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.24) !important;
  }
}

/* 3. Subtle, Light Front / Back Flip Component Below Card (Overrides Bootstrap .btn-dark / .btn-light) */
#flip-badge-wrap,
.eic-fb-wrap {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  margin-top: 10px !important;
}

body:not(:has(#adminPanel)) #flip-badge-buttons,
#flip-badge-buttons.eic-fb-capsule {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: rgba(255, 255, 255, 0.36) !important;
  backdrop-filter: blur(4px) !important;
  border: 1px solid rgba(255, 255, 255, 0.5) !important;
  border-radius: 999px !important;
  padding: 2px !important;
  gap: 2px !important;
  margin-top: 0 !important;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05) !important;
}

body:not(:has(#adminPanel)) #flip-badge-buttons .btn,
#flip-badge-buttons.eic-fb-capsule > .eic-fb-btn {
  min-width: 62px !important;
  height: 23px !important;
  padding: 0 13px !important;
  margin: 0 !important;
  border-radius: 999px !important;
  font-size: 11px !important;
  font-weight: 600 !important;
  letter-spacing: 0.2px !important;
  border: none !important;
  box-shadow: none !important;
  transition: all 0.15s ease !important;
}

body:not(:has(#adminPanel)) #flip-badge-buttons .btn:not(.is-active),
#flip-badge-buttons.eic-fb-capsule > .eic-fb-btn:not(.is-active) {
  background: transparent !important;
  color: #475569 !important;
}

body:not(:has(#adminPanel)) #flip-badge-buttons .btn:not(.is-active):hover,
#flip-badge-buttons.eic-fb-capsule > .eic-fb-btn:not(.is-active):hover {
  background: rgba(255, 255, 255, 0.52) !important;
  color: #1e293b !important;
}

body:not(:has(#adminPanel)) #flip-badge-buttons .btn.is-active,
body:not(:has(#adminPanel)) #flip-badge-buttons .btn-dark,
#flip-badge-buttons.eic-fb-capsule > .eic-fb-btn.is-active {
  background: rgba(255, 255, 255, 0.90) !important;
  color: #1e293b !important;
  font-weight: 700 !important;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.10), inset 0 0 0 1px rgba(203, 213, 225, 0.85) !important;
}


/* ==========================================================================
   V74 POLISH:
   1) Top Tip Bars Across All Inspectors + Clear '×' Close Button
   2) Bigger, Comfortable Subtle Front / Back Switcher Below Card
   ========================================================================== */

/* 1. Clear '×' Close Button & Header in Open Tip Cards */
.eic-tip-right-glyph {
  margin-left: auto !important;
  margin-right: 0 !important;
  font-size: 14px !important;
  font-weight: 800 !important;
  line-height: 1 !important;
  color: #475569 !important;
}

.eic-tip-card-hdr {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
  padding-bottom: 5px;
  border-bottom: 1px solid #e2e8f0;
}

.eic-tip-card-kicker {
  font-size: 11px !important;
  font-weight: 800 !important;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: #003366 !important;
  margin: 0 !important;
}

.eic-tip-close-x {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  border: 1px solid #cbd5e1;
  background: #f8fafc;
  color: #334155;
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  cursor: pointer;
  transition: all 0.14s ease;
}

.eic-tip-close-x:hover {
  background: #fee2e2;
  border-color: #fca5a5;
  color: #b91c1c;
}

/* 2. Bigger, Comfortable Subtle Front / Back Flip Component Below Card */
#flip-badge-wrap,
.eic-fb-wrap {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  margin-top: 14px !important;
}

body:not(:has(#adminPanel)) #flip-badge-buttons,
#flip-badge-buttons.eic-fb-capsule {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: rgba(255, 255, 255, 0.44) !important;
  backdrop-filter: blur(5px) !important;
  border: 1px solid rgba(255, 255, 255, 0.65) !important;
  border-radius: 999px !important;
  padding: 3px !important;
  gap: 4px !important;
  margin-top: 0 !important;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.07) !important;
}

body:not(:has(#adminPanel)) #flip-badge-buttons .btn,
#flip-badge-buttons.eic-fb-capsule > .eic-fb-btn {
  min-width: 84px !important;
  height: 31px !important;
  padding: 0 20px !important;
  margin: 0 !important;
  border-radius: 999px !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  letter-spacing: 0.25px !important;
  border: none !important;
  box-shadow: none !important;
  transition: all 0.15s ease !important;
}

body:not(:has(#adminPanel)) #flip-badge-buttons .btn:not(.is-active),
#flip-badge-buttons.eic-fb-capsule > .eic-fb-btn:not(.is-active) {
  background: transparent !important;
  color: #334155 !important;
}

body:not(:has(#adminPanel)) #flip-badge-buttons .btn:not(.is-active):hover,
#flip-badge-buttons.eic-fb-capsule > .eic-fb-btn:not(.is-active):hover {
  background: rgba(255, 255, 255, 0.62) !important;
  color: #0f172a !important;
}

body:not(:has(#adminPanel)) #flip-badge-buttons .btn.is-active,
body:not(:has(#adminPanel)) #flip-badge-buttons .btn-dark,
#flip-badge-buttons.eic-fb-capsule > .eic-fb-btn.is-active {
  background: rgba(255, 255, 255, 0.94) !important;
  color: #1e293b !important;
  font-weight: 700 !important;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.12), inset 0 0 0 1px rgba(203, 213, 225, 0.9) !important;
}


/* ==========================================================================
   V75 POLISH:
   Make Panel Hint Header, Close '×' Button & Pager 100% Identical to Text,
   Photo & Barcode Hints (overrides `#controls #toolbar-panel` generic styles)
   ========================================================================== */
#controls .eic-panel-top-tip-ul {
  padding: 10px 12px 4px 12px !important;
  margin: 0 !important;
  background: transparent !important;
  border: none !important;
}

#controls .eic-panel-top-tip-ul > li.eic-tip-li,
#controls #toolbar-panel li.eic-tip-li {
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  min-height: 0 !important;
}

#controls #toolbar-panel .eic-tip-toggle-btn,
#controls .eic-tip-toggle-btn {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 6px !important;
  width: 100% !important;
  min-height: 32px !important;
  height: auto !important;
  background: #ffffff !important;
  border: 1px solid #cbd5e1 !important;
  border-radius: 9px !important;
  padding: 7px 10px !important;
  font-size: 12.5px !important;
  font-weight: 700 !important;
  color: #003366 !important;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04) !important;
}

#controls #toolbar-panel .eic-tip-toggle-btn:hover,
#controls .eic-tip-toggle-btn:hover {
  background: #f0f5fa !important;
  border-color: #003366 !important;
  color: #003366 !important;
}

#controls #toolbar-panel .eic-tip-right-glyph,
#controls .eic-tip-right-glyph {
  margin-left: auto !important;
  margin-right: 0 !important;
  font-size: 15px !important;
  font-weight: 800 !important;
  line-height: 1 !important;
  color: #475569 !important;
}

#controls #toolbar-panel .eic-tip-close-x,
#controls .eic-tip-close-x {
  width: 24px !important;
  min-width: 24px !important;
  max-width: 24px !important;
  height: 24px !important;
  min-height: 24px !important;
  padding: 0 !important;
  margin: 0 !important;
  border-radius: 6px !important;
  border: 1px solid #cbd5e1 !important;
  background: #f8fafc !important;
  color: #334155 !important;
  font-size: 16px !important;
  font-weight: 700 !important;
  line-height: 1 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
}

#controls #toolbar-panel .eic-tip-close-x:hover,
#controls .eic-tip-close-x:hover {
  background: #fee2e2 !important;
  border-color: #fca5a5 !important;
  color: #b91c1c !important;
}

#controls #toolbar-panel .eic-tip-page-btn,
#controls .eic-tip-page-btn {
  min-width: 22px !important;
  height: 21px !important;
  min-height: 21px !important;
  padding: 0 6px !important;
  font-size: 11px !important;
}

#controls #toolbar-panel .eic-tip-next-link,
#controls .eic-tip-next-link {
  min-height: 0 !important;
  padding: 2px 4px !important;
  font-size: 11.5px !important;
  background: transparent !important;
  border: none !important;
}


/* ==========================================================================
   V79 POLISH:
   1) Main Panel Settings (Color, Radius, Border) placed ABOVE Panel Presets
   2) Simplified 3-item Panel Presets (Horizontal Bar, Vertical Bar, Card Border)
   ========================================================================== */
#controls #toolbar-panel ul.eic-panel-main-props-ul:not(:has(li:not([style*="display: none"]))) {
  display: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

#controls #toolbar-panel ul.eic-panel-main-props-ul.is-panel-selected {
  padding-top: 6px !important;
  padding-bottom: 10px !important;
  border-bottom: 1px solid #d5e0ec !important;
}

.eic-preset-grid.eic-preset-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 5px;
}

.eic-preset-grid.eic-preset-grid-3 .eic-preset-tile {
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 7px 4px;
  gap: 5px;
  font-size: 11px;
  line-height: 1.2;
}

.eic-preset-grid.eic-preset-grid-3 .eic-preset-mini {
  width: 28px;
  height: 19px;
}


/* ==========================================================================
   V81: LEFT-DOCKED SLIDE-OVER DRAWER FOR ADMIN BATCH CSV (.eic-modal-left-drawer)
   Keeps the live ID card canvas in the center completely unobstructed!
   ========================================================================== */
.eic-modal.eic-modal-left-drawer {
  pointer-events: none !important;
  background: transparent !important;
}

.eic-modal.eic-modal-left-drawer .modal-dialog.eic-drawer-left-dialog {
  pointer-events: auto !important;
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  bottom: 0 !important;
  margin: 0 !important;
  width: 470px !important;
  max-width: 92vw !important;
  min-height: 100vh !important;
  min-height: 100dvh !important;
  height: 100vh !important;
  height: 100dvh !important;
  display: flex !important;
  align-items: stretch !important;
  justify-content: flex-start !important;
}

.eic-modal.eic-modal-left-drawer.fade .modal-dialog.eic-drawer-left-dialog {
  transform: translateX(-104%) !important;
  transition: transform 0.26s cubic-bezier(0.22, 1, 0.36, 1) !important;
}

.eic-modal.eic-modal-left-drawer.show .modal-dialog.eic-drawer-left-dialog {
  transform: translateX(0) !important;
}

.eic-modal.eic-modal-left-drawer .modal-content {
  width: 100% !important;
  height: 100% !important;
  max-height: 100vh !important;
  max-height: 100dvh !important;
  border-radius: 0 18px 18px 0 !important;
  border-left: none !important;
  border-right: 1px solid #cbd5e1 !important;
  box-shadow: 14px 0 42px rgba(15, 23, 42, 0.26) !important;
}

.eic-modal.eic-modal-left-drawer .modal-body {
  max-height: none !important;
  flex: 1 1 auto !important;
}


/* ==========================================================================
   V82 POLISH:
   1) Consistent Segmented Pill Style for Fill Style (Solid | Gradient) Switch
   2) Clean Spacing for Panel Properties (Color, Radius, Border Width & Color)
      Placed Directly Under Panel Presets
   ========================================================================== */
#controls #toolbar-panel ul.eic-panel-main-props-ul.is-panel-selected {
  padding-top: 10px !important;
  padding-bottom: 10px !important;
  border-bottom: none !important;
}

#controls #panelcolorpicker .btn-group,
#controls #panelcolorpickerMobile .btn-group,
#panelcolorpicker .btn-group {
  display: inline-flex !important;
  align-items: center !important;
  background: #e2e8f0 !important;
  padding: 2.5px !important;
  border-radius: 9px !important;
  border: 1px solid #cbd5e1 !important;
  gap: 2px !important;
}

#controls #panelcolorpicker .btn-group .btn,
#controls #panelcolorpickerMobile .btn-group .btn,
#panelcolorpicker .btn-group .btn {
  border: none !important;
  border-radius: 7px !important;
  min-height: 26px !important;
  height: 26px !important;
  padding: 0 10px !important;
  margin: 0 !important;
  font-size: 11.5px !important;
  font-weight: 700 !important;
  line-height: 1 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-shadow: none !important;
  transition: all 0.14s ease !important;
}

#controls #panelcolorpicker .btn-group .btn:not(.active):not(.btn-dark):not(.btn-secondary),
#controls #panelcolorpickerMobile .btn-group .btn:not(.active):not(.btn-dark):not(.btn-secondary),
#panelcolorpicker .btn-group .btn:not(.active):not(.btn-dark):not(.btn-secondary) {
  background: transparent !important;
  color: #475569 !important;
}

#controls #panelcolorpicker .btn-group .btn:not(.active):not(.btn-dark):not(.btn-secondary):hover,
#panelcolorpicker .btn-group .btn:not(.active):not(.btn-dark):not(.btn-secondary):hover {
  background: rgba(255, 255, 255, 0.65) !important;
  color: #003366 !important;
}

#controls #panelcolorpicker .btn-group .btn.active,
#controls #panelcolorpicker .btn-group .btn-dark,
#controls #panelcolorpicker .btn-group .btn-secondary,
#controls #panelcolorpickerMobile .btn-group .btn.active,
#controls #panelcolorpickerMobile .btn-group .btn-dark,
#panelcolorpicker .btn-group .btn.active,
#panelcolorpicker .btn-group .btn-dark {
  background: #ffffff !important;
  color: #003366 !important;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.14), inset 0 0 0 1px rgba(0, 51, 102, 0.22) !important;
}


/* ==========================================================================
   V84 POLISH:
   1) Compact Unified Panel Properties Card (Fill Style, Color, Radius, and
      Single-Line Border Size + Border Color) placed right below Add New Panel
      so Panel Presets & Theme Palette stay visible above the fold.
   2) Subtle, Refined Barcode / QR Controller Buttons
   ========================================================================== */
@media (min-width: 769px) {
  /* Group all active panel property rows into one clean, compact white card */
  body:not(:has(#adminPanel)) #controls #toolbar-panel ul.eic-panel-main-props-ul.is-panel-selected {
    margin: 8px 12px 4px 12px !important;
    padding: 8px 10px !important;
    background: #ffffff !important;
    border: 1px solid #d5e0ec !important;
    border-radius: 10px !important;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04) !important;
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 6px 8px !important;
  }

  /* Strip inner individual row borders/backgrounds so they form one seamless group without separators */
  body:not(:has(#adminPanel)) #controls #toolbar-panel ul.eic-panel-main-props-ul.is-panel-selected > div,
  body:not(:has(#adminPanel)) #controls #toolbar-panel ul.eic-panel-main-props-ul.is-panel-selected li {
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    min-height: 28px !important;
    box-shadow: none !important;
  }

  body:not(:has(#adminPanel)) #controls #toolbar-panel ul.eic-panel-main-props-ul.is-panel-selected li:has(> span.separator:only-child),
  body:not(:has(#adminPanel)) #controls #toolbar-panel ul.eic-panel-main-props-ul.is-panel-selected span.separator {
    display: none !important;
  }

  /* Fill Style & Color + Rounded Corners span full width of the compact group */
  body:not(:has(#adminPanel)) #controls #toolbar-panel ul.eic-panel-main-props-ul.is-panel-selected > #panelcolorpicker,
  body:not(:has(#adminPanel)) #controls #toolbar-panel ul.eic-panel-main-props-ul.is-panel-selected > #panelborderradius {
    width: 100% !important;
    flex: 1 1 100% !important;
  }

  body:not(:has(#adminPanel)) #controls #toolbar-panel ul.eic-panel-main-props-ul.is-panel-selected > #panelcolorpicker > div,
  body:not(:has(#adminPanel)) #controls #toolbar-panel ul.eic-panel-main-props-ul.is-panel-selected > #panelborderradius > div {
    width: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 6px !important;
  }

  body:not(:has(#adminPanel)) #controls #toolbar-panel ul.eic-panel-main-props-ul.is-panel-selected li {
    width: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 6px !important;
  }

  /* Put Border Size (#panelstrokewidth) and Border Color (#panelstrokecolorpicker) on ONE compact line */
  body:not(:has(#adminPanel)) #controls #toolbar-panel ul.eic-panel-main-props-ul.is-panel-selected > #panelstrokewidth {
    width: auto !important;
    flex: 1 1 auto !important;
    min-width: 0 !important;
  }

  body:not(:has(#adminPanel)) #controls #toolbar-panel ul.eic-panel-main-props-ul.is-panel-selected > #panelstrokecolorpicker {
    width: auto !important;
    flex: 0 0 auto !important;
  }

  body:not(:has(#adminPanel)) #controls #toolbar-panel ul.eic-panel-main-props-ul.is-panel-selected > #panelstrokewidth li,
  body:not(:has(#adminPanel)) #controls #toolbar-panel ul.eic-panel-main-props-ul.is-panel-selected > #panelstrokecolorpicker li {
    width: auto !important;
    justify-content: flex-start !important;
    gap: 6px !important;
  }

  body:not(:has(#adminPanel)) #controls #toolbar-panel ul.eic-panel-main-props-ul.is-panel-selected > #panelstrokewidth input[type="number"] {
    width: 52px !important;
    height: 28px !important;
    padding: 2px 6px !important;
  }

  body:not(:has(#adminPanel)) #controls #toolbar-panel ul.eic-panel-main-props-ul.is-panel-selected > #panelstrokecolorpicker input[type="color"] {
    width: 30px !important;
    height: 28px !important;
  }

  /* Keep Panel Presets & Theme Palette compact below so everything stays visible without scrolling */
  body:not(:has(#adminPanel)) #controls .eic-preset-section {
    padding: 8px 12px 8px 12px !important;
    border-top: 1px solid #d5e0ec !important;
    border-bottom: none !important;
    margin-top: 4px !important;
  }

  body:not(:has(#adminPanel)) #controls .eic-theme-strip {
    margin-top: 8px !important;
    padding-top: 7px !important;
  }

  /* 2. More Subtle Buttons on the Barcode / QR Controller */
  body:not(:has(#adminPanel)) #controls #toolbar-barcode button.btn-light,
  body:not(:has(#adminPanel)) #controls #toolbar-barcode button.btn-secondary,
  body:not(:has(#adminPanel)) #controls #toolbar-barcode button.btn-dark,
  body:not(:has(#adminPanel)) #controls #toolbar-barcode button.btn-info,
  body:not(:has(#adminPanel)) #controls #toolbar-barcode button.btn-outline-dark,
  body:not(:has(#adminPanel)) #controls #toolbar-barcode button.btn-outline-secondary {
    background: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    color: #334155 !important;
    font-weight: 600 !important;
    font-size: 12px !important;
    min-height: 31px !important;
    padding: 4px 10px !important;
    border-radius: 8px !important;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04) !important;
    transition: all 0.14s ease !important;
  }

  body:not(:has(#adminPanel)) #controls #toolbar-barcode button.btn-light:hover,
  body:not(:has(#adminPanel)) #controls #toolbar-barcode button.btn-secondary:hover,
  body:not(:has(#adminPanel)) #controls #toolbar-barcode button.btn-dark:hover,
  body:not(:has(#adminPanel)) #controls #toolbar-barcode button.btn-info:hover,
  body:not(:has(#adminPanel)) #controls #toolbar-barcode button.btn-outline-dark:hover,
  body:not(:has(#adminPanel)) #controls #toolbar-barcode button.btn-outline-secondary:hover {
    background: #f0f5fa !important;
    border-color: #94a3b8 !important;
    color: #003366 !important;
  }
}


/* ==========================================================================
   V85:
   1) Hide Smart Guides / Ruler / Grid UI completely on batch.html
   2) Harmonize Admin Right-Hand Controller (#controls: Text, Photo, Panel,
      Barcode, Card Elements) with the Customer View Studio Design System
      while keeping #adminPanel, #zoomPan, #labelfield, and #cdp intact.
   ========================================================================== */
body.eic-batch-page #eic-card-grid-overlay,
body.eic-batch-page #eic-card-ruler-wrap,
body.eic-batch-page #eic-smart-guides-overlay,
body.eic-batch-page #centering-guidelines,
body.eic-batch-page .eic-smart-guide,
body.eic-batch-page .eic-ruler-bar,
body.eic-batch-page .eic-ruler-corner,
body.eic-batch-page [id*="smart-guide"],
body.eic-batch-page [class*="smart-guide"],
body.eic-batch-page [id*="centering-guideline"],
body.eic-batch-page [class*="centering-guideline"] {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

@media (min-width: 769px) {
  /* Card Elements top button on Admin matching Customer View */
  body:has(#adminPanel) #controls .eic-dock-layers-btn {
    background: rgba(255, 255, 255, 0.96) !important;
    border: 1px solid #cbd5e1 !important;
    color: #334155 !important;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06) !important;
  }

  body:has(#adminPanel) #controls .eic-dock-layers-btn:hover {
    background: #ffffff !important;
    border-color: #94a3b8 !important;
    color: #0f172a !important;
  }

  body:has(#adminPanel) #controls .eic-dock-layers-btn.active {
    background: #ffffff !important;
    border: 1.5px solid #94a3b8 !important;
    border-left: 3.5px solid #e19c4b !important;
    color: #0f172a !important;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.09) !important;
  }

  /* 4-Tab Dock Header (Text | Photo | Panel | Barcode) on Admin matching Customer View */
  body:has(#adminPanel) #controls .eic-dock-tabs {
    background: #dde5ee !important;
    border: 1px solid #c3cfdc !important;
    border-bottom: none !important;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.08) !important;
  }

  body:has(#adminPanel) #controls .eic-dock-tab {
    background: transparent !important;
    color: #334155 !important;
    border: none !important;
    border-top: 2.5px solid transparent !important;
  }

  body:has(#adminPanel) #controls .eic-dock-tab:hover {
    background: rgba(255, 255, 255, 0.72) !important;
    color: #003366 !important;
  }

  body:has(#adminPanel) #controls .eic-dock-tab.active {
    background: #ffffff !important;
    color: #003366 !important;
    border-top: 3px solid #e19c4b !important;
  }

  body:has(#adminPanel) #controls .eic-dock-icon-wrap {
    background: rgba(0, 51, 102, 0.06) !important;
    color: inherit !important;
  }

  body:has(#adminPanel) #controls .eic-dock-tab.active .eic-dock-icon-wrap {
    background: #e6eff8 !important;
    color: #003366 !important;
  }

  /* Inspector Body Surface for Text, Photo, Panel, Barcode & Card Elements on Admin */
  body:has(#adminPanel) #controls #toolbar-layers .idcreator-container-inner,
  body:has(#adminPanel) #controls #toolbar-text .idcreator-container-inner,
  body:has(#adminPanel) #controls #toolbar-photo .idcreator-container-inner,
  body:has(#adminPanel) #controls #toolbar-panel .idcreator-container-inner,
  body:has(#adminPanel) #controls #toolbar-barcode .idcreator-container-inner {
    background-color: #f4f7fa !important;
    border: 1px solid #c3cfdc !important;
    border-top: none !important;
    border-radius: 0 0 14px 14px !important;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.14) !important;
  }

  /* Connected Add-New Bar (Text, Photo, Panel) on Admin matching Customer View */
  body:has(#adminPanel) #controls #text-add ul,
  body:has(#adminPanel) #controls #paneladd ul,
  body:has(#adminPanel) #controls .eic-panel-presets-root > div > ul:first-child,
  body:has(#adminPanel) #controls #toolbar-text ul[style*="#1d5251"],
  body:has(#adminPanel) #controls #toolbar-photo ul[style*="#1d5251"],
  body:has(#adminPanel) #controls #toolbar-panel ul[style*="#1d5251"] {
    padding: 12px 14px !important;
    margin: 0 !important;
    background-color: #eaf0f6 !important;
    border-bottom: 1px solid #d5e0ec !important;
    display: block !important;
  }

  body:has(#adminPanel) #controls #text-add ul li,
  body:has(#adminPanel) #controls #paneladd ul li,
  body:has(#adminPanel) #controls .eic-panel-presets-root > div > ul:first-child > li,
  body:has(#adminPanel) #controls #toolbar-photo ul[style*="#1d5251"] li {
    padding: 0 !important;
    margin: 0 !important;
    display: block !important;
    background: transparent !important;
    border: none !important;
  }

  body:has(#adminPanel) #controls #text-add button,
  body:has(#adminPanel) #controls #photo-add button,
  body:has(#adminPanel) #controls #paneladd button,
  body:has(#adminPanel) #controls .eic-panel-presets-root button.eic-add-new-btn,
  body:has(#adminPanel) #controls #toolbar-text ul[style*="#1d5251"] button.btn-light,
  body:has(#adminPanel) #controls #toolbar-photo ul[style*="#1d5251"] button.btn-light,
  body:has(#adminPanel) #controls #toolbar-panel ul[style*="#1d5251"] button.btn-light {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    width: 100% !important;
    min-height: 36px !important;
    height: 36px !important;
    padding: 0 14px !important;
    background-color: #ffffff !important;
    color: #003366 !important;
    border: 1.5px solid #bfd0e2 !important;
    border-radius: 9px !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05) !important;
    transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease !important;
  }

  body:has(#adminPanel) #controls #text-add button:hover,
  body:has(#adminPanel) #controls #photo-add button:hover,
  body:has(#adminPanel) #controls #paneladd button:hover,
  body:has(#adminPanel) #controls .eic-panel-presets-root button.eic-add-new-btn:hover,
  body:has(#adminPanel) #controls #toolbar-text ul[style*="#1d5251"] button.btn-light:hover,
  body:has(#adminPanel) #controls #toolbar-photo ul[style*="#1d5251"] button.btn-light:hover,
  body:has(#adminPanel) #controls #toolbar-panel ul[style*="#1d5251"] button.btn-light:hover {
    background-color: #e6eff8 !important;
    border-color: #003366 !important;
    color: #003366 !important;
  }

  /* Compact Unified Panel Properties Card + Single-Line Border Size & Color on Admin */
  body:has(#adminPanel) #controls #toolbar-panel ul.eic-panel-main-props-ul.is-panel-selected {
    margin: 8px 12px 4px 12px !important;
    padding: 8px 10px !important;
    background: #ffffff !important;
    border: 1px solid #d5e0ec !important;
    border-radius: 10px !important;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04) !important;
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 6px 8px !important;
  }

  body:has(#adminPanel) #controls #toolbar-panel ul.eic-panel-main-props-ul.is-panel-selected > div,
  body:has(#adminPanel) #controls #toolbar-panel ul.eic-panel-main-props-ul.is-panel-selected li {
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    min-height: 28px !important;
    box-shadow: none !important;
  }

  body:has(#adminPanel) #controls #toolbar-panel ul.eic-panel-main-props-ul.is-panel-selected li:has(> span.separator:only-child),
  body:has(#adminPanel) #controls #toolbar-panel ul.eic-panel-main-props-ul.is-panel-selected span.separator {
    display: none !important;
  }

  body:has(#adminPanel) #controls #toolbar-panel ul.eic-panel-main-props-ul.is-panel-selected > #panelcolorpicker,
  body:has(#adminPanel) #controls #toolbar-panel ul.eic-panel-main-props-ul.is-panel-selected > #panelborderradius {
    width: 100% !important;
    flex: 1 1 100% !important;
  }

  body:has(#adminPanel) #controls #toolbar-panel ul.eic-panel-main-props-ul.is-panel-selected > #panelcolorpicker > div,
  body:has(#adminPanel) #controls #toolbar-panel ul.eic-panel-main-props-ul.is-panel-selected > #panelborderradius > div {
    width: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 6px !important;
  }

  body:has(#adminPanel) #controls #toolbar-panel ul.eic-panel-main-props-ul.is-panel-selected li {
    width: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 6px !important;
  }

  body:has(#adminPanel) #controls #toolbar-panel ul.eic-panel-main-props-ul.is-panel-selected > #panelstrokewidth {
    width: auto !important;
    flex: 1 1 auto !important;
    min-width: 0 !important;
  }

  body:has(#adminPanel) #controls #toolbar-panel ul.eic-panel-main-props-ul.is-panel-selected > #panelstrokecolorpicker {
    width: auto !important;
    flex: 0 0 auto !important;
  }

  body:has(#adminPanel) #controls #toolbar-panel ul.eic-panel-main-props-ul.is-panel-selected > #panelstrokewidth li,
  body:has(#adminPanel) #controls #toolbar-panel ul.eic-panel-main-props-ul.is-panel-selected > #panelstrokecolorpicker li {
    width: auto !important;
    justify-content: flex-start !important;
    gap: 6px !important;
  }

  body:has(#adminPanel) #controls #toolbar-panel ul.eic-panel-main-props-ul.is-panel-selected > #panelstrokewidth input[type="number"] {
    width: 52px !important;
    height: 28px !important;
    padding: 2px 6px !important;
  }

  body:has(#adminPanel) #controls #toolbar-panel ul.eic-panel-main-props-ul.is-panel-selected > #panelstrokecolorpicker input[type="color"] {
    width: 30px !important;
    height: 28px !important;
  }

  body:has(#adminPanel) #controls .eic-preset-section {
    padding: 8px 12px 8px 12px !important;
    border-top: 1px solid #d5e0ec !important;
    border-bottom: none !important;
    margin-top: 4px !important;
  }

  /* Subtle Barcode Buttons + Brand Navy Accents on Admin Controller */
  body:has(#adminPanel) #controls #toolbar-barcode button.btn-light,
  body:has(#adminPanel) #controls #toolbar-barcode button.btn-secondary,
  body:has(#adminPanel) #controls #toolbar-barcode button.btn-dark,
  body:has(#adminPanel) #controls #toolbar-barcode button.btn-info,
  body:has(#adminPanel) #controls #toolbar-barcode button.btn-outline-dark,
  body:has(#adminPanel) #controls #toolbar-barcode button.btn-outline-secondary {
    background: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    color: #334155 !important;
    font-weight: 600 !important;
    font-size: 12px !important;
    min-height: 31px !important;
    padding: 4px 10px !important;
    border-radius: 8px !important;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04) !important;
    transition: all 0.14s ease !important;
  }

  body:has(#adminPanel) #controls #toolbar-barcode button.btn-light:hover,
  body:has(#adminPanel) #controls #toolbar-barcode button.btn-secondary:hover,
  body:has(#adminPanel) #controls #toolbar-barcode button.btn-dark:hover,
  body:has(#adminPanel) #controls #toolbar-barcode button.btn-info:hover,
  body:has(#adminPanel) #controls #toolbar-barcode button.btn-outline-dark:hover,
  body:has(#adminPanel) #controls #toolbar-barcode button.btn-outline-secondary:hover {
    background: #f0f5fa !important;
    border-color: #94a3b8 !important;
    color: #003366 !important;
  }

  body:has(#adminPanel) #controls menu.idcreatorToolbar input[type="range"],
  body:has(#adminPanel) #controls menu.idcreatorToolbar .custom-range {
    accent-color: #003366 !important;
  }

  body:has(#adminPanel) #controls menu.idcreatorToolbar .custom-range::-webkit-slider-thumb {
    background: #003366 !important;
  }

  body:has(#adminPanel) #controls menu.idcreatorToolbar .custom-range::-moz-range-thumb {
    background: #003366 !important;
  }

  body:has(#adminPanel) #controls menu.idcreatorToolbar .btn-toolbar.active,
  body:has(#adminPanel) #controls menu.idcreatorToolbar .btn-toolbar.button-active {
    background-color: #e6eff8 !important;
    border-color: #003366 !important;
    color: #003366 !important;
    box-shadow: inset 0 0 0 1px #003366 !important;
  }

  body:has(#adminPanel) #controls .eic-photo-action-btn {
    color: #003366 !important;
    border-color: #bfd0e2 !important;
  }

  body:has(#adminPanel) #controls .eic-photo-action-btn:hover,
  body:has(#adminPanel) #controls #photo-replace .eic-photo-action-btn:hover,
  body:has(#adminPanel) #controls #btnCrop .eic-photo-action-btn:hover,
  body:has(#adminPanel) #controls #photo-boost .eic-photo-action-btn:hover,
  body:has(#adminPanel) #controls #btnSetBackground .eic-photo-action-btn:hover {
    background-color: #e6eff8 !important;
    border-color: #003366 !important;
    color: #003366 !important;
  }

  body:has(#adminPanel) #controls .eic-card-item-row.active {
    background: #e6eff8 !important;
    border-color: #003366 !important;
    box-shadow: 0 0 0 2px rgba(0, 51, 102, 0.14) !important;
  }

  body:has(#adminPanel) #controls .eic-ci-side-btn.active {
    color: #003366 !important;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.14), inset 0 0 0 1.5px #003366 !important;
  }
}


/* ==========================================================================
   V107 SINGLE TOP "+ Add new panel" BAR + FILL STYLE / PANEL PROPS + PRESETS
   ========================================================================== */
.eic-panel-add-top-bar {
  display: none !important;
}

body:not(.eic-sel-panel) #controls #toolbar-panel ul.eic-panel-main-props-ul:not(.is-panel-selected) {
  display: none !important;
}

@media (min-width: 769px) {
  /* Single "+ Add new panel" bar directly under Panel Editing Tips */
  #controls #toolbar-panel ul.eic-panel-add-ul {
    padding: 12px 14px !important;
    margin: 0 !important;
    background-color: #eaf0f6 !important;
    border-top: 1px solid #d5e0ec !important;
    border-bottom: 1px solid #d5e0ec !important;
    display: block !important;
    width: 100% !important;
  }

  #controls #toolbar-panel ul.eic-panel-add-ul li {
    padding: 0 !important;
    margin: 0 !important;
    background: transparent !important;
    border: none !important;
    display: block !important;
    width: 100% !important;
    min-height: 0 !important;
  }

  #controls #toolbar-panel ul.eic-panel-add-ul button.eic-add-new-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    width: 100% !important;
    min-height: 36px !important;
    height: 36px !important;
    padding: 0 14px !important;
    background-color: #ffffff !important;
    color: #003366 !important;
    border: 1.5px solid #bfd0e2 !important;
    border-radius: 9px !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05) !important;
    transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease !important;
  }

  #controls #toolbar-panel ul.eic-panel-add-ul button.eic-add-new-btn:hover {
    background-color: #e6eff8 !important;
    border-color: #003366 !important;
    color: #003366 !important;
  }

  #controls #toolbar-panel ul.eic-panel-add-ul button.eic-add-new-btn::before,
  #controls #paneladd button::before {
    content: none !important;
    display: none !important;
  }

  /* Selected Panel Properties (Fill Style, Fill Color, Radius, Border) directly below "+ Add new panel" */
  body.eic-sel-panel #controls #toolbar-panel ul.eic-panel-main-props-ul,
  #controls #toolbar-panel ul.eic-panel-main-props-ul.is-panel-selected {
    display: flex !important;
    visibility: visible !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 8px !important;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    margin: 0 !important;
    padding: 12px 12px 6px 12px !important;
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    overflow: visible !important;
  }

  #controls #toolbar-panel .eic-panel-prop-block,
  #controls #toolbar-panel .eic-panel-prop-stack {
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
    width: 100% !important;
  }

  /* Individual white card rows matching Text & Photo (.eic-panel-card-row) */
  #controls #toolbar-panel ul.eic-panel-main-props-ul li.eic-panel-card-row {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 8px !important;
    width: 100% !important;
    min-height: 36px !important;
    padding: 7px 10px !important;
    margin: 0 !important;
    background: #ffffff !important;
    border: 1px solid #d5e0ec !important;
    border-radius: 9px !important;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03) !important;
    box-sizing: border-box !important;
  }

  #controls #toolbar-panel ul.eic-panel-main-props-ul li.eic-panel-card-row > span {
    font-size: 12.5px !important;
    font-weight: 600 !important;
    color: #334155 !important;
    white-space: nowrap !important;
    margin: 0 !important;
  }

  /* Segmented Fill Style toggle (Solid | Gradient) */
  #controls #toolbar-panel .eic-fill-seg {
    display: inline-flex !important;
    align-items: center !important;
    background: #e2e8f0 !important;
    padding: 2.5px !important;
    border-radius: 8px !important;
    border: 1px solid #cbd5e1 !important;
    gap: 2px !important;
  }

  #controls #toolbar-panel .eic-fill-seg .btn {
    border: none !important;
    border-radius: 6px !important;
    height: 24px !important;
    min-height: 24px !important;
    padding: 0 10px !important;
    margin: 0 !important;
    font-size: 11.5px !important;
    font-weight: 700 !important;
    line-height: 1 !important;
    box-shadow: none !important;
  }

  #controls #toolbar-panel .eic-fill-seg .btn.btn-light {
    background: transparent !important;
    color: #475569 !important;
  }

  #controls #toolbar-panel .eic-fill-seg .btn.btn-dark {
    background: #ffffff !important;
    color: #003366 !important;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.14) !important;
  }

  #controls #toolbar-panel ul.eic-panel-main-props-ul input[type="color"] {
    width: 32px !important;
    min-width: 32px !important;
    max-width: 32px !important;
    height: 28px !important;
    padding: 1px !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 6px !important;
    background: #ffffff !important;
    cursor: pointer !important;
  }

  #controls #toolbar-panel ul.eic-panel-main-props-ul input[type="range"],
  #controls #toolbar-panel ul.eic-panel-main-props-ul .custom-range {
    width: 112px !important;
    max-width: 112px !important;
    flex: 0 0 112px !important;
  }

  #controls #toolbar-panel ul.eic-panel-main-props-ul input[type="number"] {
    width: 56px !important;
    height: 28px !important;
    padding: 2px 6px !important;
    font-size: 12px !important;
    text-align: center !important;
  }

  #controls #toolbar-panel ul.eic-panel-main-props-ul li[style*="display: none"],
  #controls #toolbar-panel ul.eic-panel-main-props-ul li:has(> span.separator:only-child),
  #controls #toolbar-panel ul.eic-panel-main-props-ul span.separator {
    display: none !important;
  }
}

/* Barcode Empty Input Red Validation Highlight */
#barcode-input.eic-barcode-input-error,
#toolbar-barcode input.eic-barcode-input-error {
  border: 1.5px solid #dc2626 !important;
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.18) !important;
  background-color: #fef2f2 !important;
}

/* ==========================================================================
   V110 MASTER CONTROL PANEL UNIFICATION & STUDIO POLISH
   Harmonizes spacing, card rows, inputs, buttons, and grids across
   Text, Photo, Panel, Barcode, and Card Elements inspectors.
   ========================================================================== */
@media (min-width: 769px) {
  /* 1. Outer #controls column & connected 4-tab folder shell (310px inner width) */
  #controls {
    width: 320px !important;
    min-width: 320px !important;
    max-width: 320px !important;
    padding: 10px 0 12px 10px !important;
    margin: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    box-sizing: border-box !important;
  }

  #controls .eic-nav-buttons-root,
  #controls .eic-connected-dock-nav,
  #controls .eic-dock-layers-bar,
  #controls .eic-dock-layers-btn,
  #controls .eic-dock-tabs,
  #controls menu.idcreatorToolbar,
  #controls .idcreator-container-inner {
    width: 310px !important;
    min-width: 310px !important;
    max-width: 310px !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    box-sizing: border-box !important;
  }

  /* Top Card Elements button */
  #controls .eic-dock-layers-bar {
    margin-bottom: 8px !important;
  }

  #controls .eic-dock-layers-btn {
    height: 36px !important;
    border-radius: 10px !important;
    background: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    color: #0f172a !important;
    font-size: 12.5px !important;
    font-weight: 700 !important;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06) !important;
  }

  #controls .eic-dock-layers-btn:hover {
    background: #f8fafc !important;
    border-color: #003366 !important;
    color: #003366 !important;
  }

  #controls .eic-dock-layers-btn.active {
    background: #ffffff !important;
    border: 1.5px solid #003366 !important;
    border-left: 4px solid #e19c4b !important;
    color: #003366 !important;
  }

  /* 4-Tab Dock Header */
  #controls .eic-dock-tabs {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    background: #dde5ee !important;
    border: 1px solid #c3cfdc !important;
    border-bottom: none !important;
    border-radius: 14px 14px 0 0 !important;
    padding: 5px 5px 0 5px !important;
    gap: 4px !important;
  }

  #controls .eic-dock-tab {
    padding: 8px 2px 7px !important;
    border-radius: 9px 9px 0 0 !important;
    border: none !important;
    border-top: 3px solid transparent !important;
    background: transparent !important;
    color: #475569 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 4px !important;
  }

  #controls .eic-dock-tab:hover {
    background: rgba(255, 255, 255, 0.65) !important;
    color: #003366 !important;
  }

  #controls .eic-dock-tab.active {
    background: #ffffff !important;
    color: #003366 !important;
    border-top: 3px solid #e19c4b !important;
  }

  #controls .eic-dock-icon-wrap {
    width: 32px !important;
    height: 32px !important;
    border-radius: 8px !important;
    background: rgba(0, 51, 102, 0.06) !important;
  }

  #controls .eic-dock-tab.active .eic-dock-icon-wrap {
    background: #e6eff8 !important;
    color: #003366 !important;
  }

  #controls .eic-dock-tab-lbl {
    font-size: 11.5px !important;
    font-weight: 700 !important;
  }

  /* Inspector Body Container */
  #controls .idcreator-container-inner {
    background: #f4f7fa !important;
    border: 1px solid #c3cfdc !important;
    border-top: none !important;
    border-radius: 0 0 14px 14px !important;
    padding-bottom: 10px !important;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.12) !important;
    overflow: visible !important;
  }

  /* 2. Uniform Top Tips Bar across Text, Photo, Panel, Barcode */
  #controls .eic-panel-top-tip-ul {
    padding: 10px 12px 8px 12px !important;
    margin: 0 !important;
    background: transparent !important;
    border: none !important;
  }

  /* 3. Uniform "+ Add new ..." Action Band across Text, Photo & Panel */
  #controls #text-add ul,
  #controls #toolbar-photo ul[style*="#1d5251"],
  #controls #toolbar-panel ul.eic-panel-add-ul {
    padding: 10px 12px !important;
    margin: 0 !important;
    background: #eaf0f6 !important;
    border-top: 1px solid #d5e0ec !important;
    border-bottom: 1px solid #d5e0ec !important;
    display: block !important;
  }

  #controls #text-add ul li,
  #controls #photo-add li,
  #controls #toolbar-panel ul.eic-panel-add-ul li {
    padding: 0 !important;
    margin: 0 !important;
    background: transparent !important;
    border: none !important;
    display: block !important;
  }

  #controls #text-add button,
  #controls #photo-add button,
  #controls #toolbar-panel ul.eic-panel-add-ul button.eic-add-new-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    width: 100% !important;
    height: 36px !important;
    min-height: 36px !important;
    padding: 0 14px !important;
    background: #ffffff !important;
    color: #003366 !important;
    border: 1.5px solid #bfd0e2 !important;
    border-radius: 9px !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05) !important;
  }

  #controls #text-add button:hover,
  #controls #photo-add button:hover,
  #controls #toolbar-panel ul.eic-panel-add-ul button.eic-add-new-btn:hover {
    background: #e6eff8 !important;
    border-color: #003366 !important;
    color: #003366 !important;
  }

  /* 4. Uniform Property Lists & White Card Rows across ALL 4 Tabs */
  #controls #toolbar-text > .idcreator-container-inner > ul:last-child,
  #controls #toolbar-photo > .idcreator-container-inner > ul:last-child,
  #controls #toolbar-barcode > .idcreator-container-inner > ul {
    padding: 10px 12px 4px 12px !important;
    margin: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
  }

  /* Uniform white card rows (.eic-panel-card-row + Size/Color row) */
  #controls menu.idcreatorToolbar li.eic-panel-card-row,
  #controls #toolbar-text ul > li:has(#text-size) {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 8px !important;
    width: 100% !important;
    min-height: 38px !important;
    padding: 7px 10px !important;
    margin: 0 !important;
    background: #ffffff !important;
    border: 1px solid #d5e0ec !important;
    border-radius: 9px !important;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03) !important;
    box-sizing: border-box !important;
  }

  #controls menu.idcreatorToolbar li.eic-panel-card-row > span,
  #controls #toolbar-text #text-size span,
  #controls #toolbar-text #textcolorpicker span {
    font-size: 12.5px !important;
    font-weight: 600 !important;
    color: #334155 !important;
    white-space: nowrap !important;
    margin: 0 !important;
  }

  /* Text Style row (Bold / Italic / Underline / Vertical) as a clean white card */
  #controls #toolbar-text ul > li:has(#textStyle) > #textStyle {
    width: 100% !important;
  }

  /* Textarea in Text tab */
  #controls #toolbar-text textarea.text-field {
    width: 100% !important;
    min-height: 76px !important;
    height: 76px !important;
    padding: 8px 10px !important;
    border: 1.5px solid #cbd5e1 !important;
    border-radius: 9px !important;
    background: #ffffff !important;
    color: #0f172a !important;
    font-size: 13px !important;
    line-height: 1.4 !important;
  }

  /* Consistent compact inputs & color swatches inside card rows */
  #controls menu.idcreatorToolbar input[type="number"] {
    width: 56px !important;
    height: 28px !important;
    padding: 2px 6px !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 6px !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    text-align: center !important;
    background: #f8fafc !important;
  }

  #controls menu.idcreatorToolbar input[type="color"] {
    width: 30px !important;
    min-width: 30px !important;
    max-width: 30px !important;
    height: 28px !important;
    padding: 1px !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 6px !important;
    background: #ffffff !important;
    cursor: pointer !important;
  }

  #controls menu.idcreatorToolbar input[type="range"],
  #controls menu.idcreatorToolbar .custom-range {
    width: 114px !important;
    max-width: 114px !important;
    flex: 0 0 114px !important;
  }

  /* 5. Panel Inspector: Presets, Icons & Theme Palette cleanly spaced */
  #controls #toolbar-panel .eic-preset-section {
    padding: 10px 12px 6px 12px !important;
    margin-top: 6px !important;
    background: transparent !important;
    border-top: 1px solid #d5e0ec !important;
    border-bottom: none !important;
  }

  #controls #toolbar-panel .eic-preset-grid.eic-preset-grid-3 {
    gap: 6px !important;
  }

  #controls #toolbar-panel .eic-preset-tile {
    padding: 7px 4px !important;
    border-radius: 8px !important;
    border: 1px solid #cbd5e1 !important;
    background: #ffffff !important;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03) !important;
  }

  #controls #toolbar-panel .eic-preset-tile:hover {
    background: #f0f5fa !important;
    border-color: #003366 !important;
  }

  #controls #toolbar-panel .eic-icon-chip-grid {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 6px !important;
  }

  #controls #toolbar-panel .eic-icon-chip {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 4px !important;
    padding: 6px 4px !important;
    background: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 8px !important;
    color: #1e293b !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    transition: all 0.14s ease !important;
  }

  #controls #toolbar-panel .eic-icon-chip:hover {
    background: #f0f5fa !important;
    border-color: #003366 !important;
    color: #003366 !important;
  }

  #controls #toolbar-panel .eic-icon-chip span {
    color: inherit !important;
    margin: 0 !important;
    font-size: inherit !important;
  }

  #controls #toolbar-panel .eic-shadow-pill-btn {
    border: 1px solid #cbd5e1 !important;
    background: #f8fafc !important;
    color: #334155 !important;
    border-radius: 7px !important;
    padding: 3px 9px !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    transition: all 0.14s ease !important;
  }

  #controls #toolbar-panel .eic-shadow-pill-btn.active {
    background: #eef2ff !important;
    border-color: #94a3b8 !important;
    color: #1e293b !important;
    box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.06) !important;
  }

  /* 6. Barcode Inspector clean card layout */
  #controls #toolbar-barcode .eic-tip-li {
    margin-bottom: 2px !important;
  }

  #controls #toolbar-barcode #btn-update-barcode {
    width: 100% !important;
  }
}

/* ==========================================================================
   V111 PANEL CONTROLLER ICON & LAYOUT MASTER FIX
   Restores missing mini-icons (.is-circle, .is-line, .is-watermark),
   fixes icon/button sizing, and removes conflicting box-in-box borders.
   ========================================================================== */
@media (min-width: 769px) {
  /* Reset any generic li borders/backgrounds inside #toolbar-panel */
  #controls #toolbar-panel ul {
    list-style: none !important;
  }

  #controls #toolbar-panel .eic-panel-top-tip-ul {
    padding: 10px 12px 8px 12px !important;
    margin: 0 !important;
    background: transparent !important;
    border: none !important;
  }

  #controls #toolbar-panel .eic-panel-top-tip-ul > li,
  #controls #toolbar-panel li.eic-tip-li {
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
    display: block !important;
  }

  /* Single "+ Add new panel" strip */
  #controls #toolbar-panel ul.eic-panel-add-ul {
    padding: 10px 12px !important;
    margin: 0 !important;
    background: #eaf0f6 !important;
    border-top: 1px solid #d5e0ec !important;
    border-bottom: 1px solid #d5e0ec !important;
    display: block !important;
    width: 100% !important;
  }

  #controls #toolbar-panel ul.eic-panel-add-ul > li {
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
    display: block !important;
    width: 100% !important;
  }

  #controls #toolbar-panel ul.eic-panel-add-ul button.eic-add-new-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    width: 100% !important;
    height: 36px !important;
    min-height: 36px !important;
    padding: 0 14px !important;
    background: #ffffff !important;
    color: #003366 !important;
    border: 1.5px solid #bfd0e2 !important;
    border-radius: 9px !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05) !important;
    cursor: pointer !important;
  }

  #controls #toolbar-panel ul.eic-panel-add-ul button.eic-add-new-btn:hover {
    background: #e6eff8 !important;
    border-color: #003366 !important;
    color: #003366 !important;
  }

  /* Selected Panel Properties (Fill Style, Fill Color, Radius, Border) */
  body.eic-sel-panel #controls #toolbar-panel ul.eic-panel-main-props-ul,
  #controls #toolbar-panel ul.eic-panel-main-props-ul.is-panel-selected {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 8px !important;
    width: 100% !important;
    padding: 10px 12px 4px 12px !important;
    margin: 0 !important;
    background: transparent !important;
    border: none !important;
  }

  #controls #toolbar-panel .eic-panel-prop-block,
  #controls #toolbar-panel .eic-panel-prop-stack {
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
    width: 100% !important;
  }

  #controls #toolbar-panel ul.eic-panel-main-props-ul li.eic-panel-card-row {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 8px !important;
    width: 100% !important;
    min-height: 38px !important;
    padding: 7px 10px !important;
    margin: 0 !important;
    background: #ffffff !important;
    border: 1px solid #d5e0ec !important;
    border-radius: 9px !important;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03) !important;
    box-sizing: border-box !important;
  }

  #controls #toolbar-panel ul.eic-panel-main-props-ul li.eic-panel-card-row > span {
    font-size: 12.5px !important;
    font-weight: 600 !important;
    color: #334155 !important;
    margin: 0 !important;
    white-space: nowrap !important;
  }

  /* Panels & Shapes Section */
  #controls #toolbar-panel .eic-panel-presets-root {
    width: 100% !important;
    display: block !important;
  }

  #controls #toolbar-panel .eic-preset-section {
    padding: 10px 12px 8px 12px !important;
    margin-top: 6px !important;
    background: transparent !important;
    border-top: 1px solid #d5e0ec !important;
    border-bottom: none !important;
  }

  #controls #toolbar-panel .eic-preset-section-hdr {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.45px !important;
    color: #475569 !important;
    margin-bottom: 8px !important;
  }

  #controls #toolbar-panel .eic-preset-section-hdr > span {
    color: #475569 !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    margin: 0 !important;
  }

  /* 3x3 Panels & Shapes Grid */
  #controls #toolbar-panel .eic-preset-grid.eic-preset-grid-3 {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 6px !important;
    width: 100% !important;
  }

  #controls #toolbar-panel .eic-preset-tile {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 5px !important;
    width: 100% !important;
    min-height: 54px !important;
    padding: 7px 4px !important;
    margin: 0 !important;
    background: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 8px !important;
    color: #1e293b !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    line-height: 1.15 !important;
    text-align: center !important;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03) !important;
    cursor: pointer !important;
    transition: all 0.14s ease !important;
  }

  #controls #toolbar-panel .eic-preset-tile:hover {
    background: #f0f5fa !important;
    border-color: #003366 !important;
    color: #003366 !important;
  }

  #controls #toolbar-panel .eic-preset-tile > span:last-child {
    color: inherit !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    margin: 0 !important;
    white-space: nowrap !important;
  }

  /* Mini card preview frame inside each shape tile */
  #controls #toolbar-panel .eic-preset-mini {
    width: 30px !important;
    height: 20px !important;
    border-radius: 3.5px !important;
    border: 1.5px solid #94a3b8 !important;
    background: #f8fafc !important;
    position: relative !important;
    overflow: hidden !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0 !important;
    margin: 0 !important;
  }

  #controls #toolbar-panel .eic-preset-tile:hover .eic-preset-mini {
    border-color: #003366 !important;
  }

  #controls #toolbar-panel .eic-preset-mini svg {
    width: 100% !important;
    height: 100% !important;
    display: block !important;
  }

  #controls #toolbar-panel .eic-preset-mini i {
    display: block !important;
    position: absolute !important;
    background: #003366 !important;
    font-style: normal !important;
  }

  #controls #toolbar-panel .eic-preset-mini i.is-header {
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    height: 6px !important;
  }

  #controls #toolbar-panel .eic-preset-mini i.is-stripe {
    top: 0 !important;
    bottom: 0 !important;
    left: 0 !important;
    width: 6px !important;
  }

  #controls #toolbar-panel .eic-preset-mini i.is-frame {
    inset: 2px !important;
    background: transparent !important;
    border: 1.5px solid #003366 !important;
    border-radius: 2px !important;
  }

  /* Missing mini-icons restored: Circle, Divider Line, and Watermark */
  #controls #toolbar-panel .eic-preset-mini i.is-circle {
    position: static !important;
    width: 11px !important;
    height: 11px !important;
    border-radius: 50% !important;
    background: #003366 !important;
  }

  #controls #toolbar-panel .eic-preset-mini i.is-line {
    left: 3px !important;
    right: 3px !important;
    top: 50% !important;
    height: 2px !important;
    transform: translateY(-50%) !important;
    background: #003366 !important;
    border-radius: 1px !important;
  }

  #controls #toolbar-panel .eic-preset-mini i.is-watermark {
    position: static !important;
    background: transparent !important;
    color: #003366 !important;
    opacity: 0.45 !important;
    font-size: 8.5px !important;
    font-weight: 900 !important;
    letter-spacing: 0.3px !important;
    transform: rotate(-14deg) !important;
    line-height: 1 !important;
  }

  /* Badge Icons & Seals 3x2 Grid */
  #controls #toolbar-panel .eic-theme-strip {
    margin-top: 10px !important;
    padding-top: 9px !important;
    border-top: 1px dashed #cbd5e1 !important;
  }

  #controls #toolbar-panel .eic-icon-chip-grid {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 6px !important;
    width: 100% !important;
  }

  #controls #toolbar-panel .eic-icon-chip {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 4px !important;
    width: 100% !important;
    min-height: 50px !important;
    padding: 6px 4px !important;
    margin: 0 !important;
    background: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 8px !important;
    color: #003366 !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03) !important;
    cursor: pointer !important;
    transition: all 0.14s ease !important;
  }

  #controls #toolbar-panel .eic-icon-chip:hover {
    background: #f0f5fa !important;
    border-color: #003366 !important;
    color: #003366 !important;
  }

  #controls #toolbar-panel .eic-icon-chip svg {
    width: 18px !important;
    height: 18px !important;
    min-width: 18px !important;
    min-height: 18px !important;
    fill: currentColor !important;
    display: block !important;
    flex-shrink: 0 !important;
  }

  #controls #toolbar-panel .eic-icon-chip > span {
    color: #1e293b !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    margin: 0 !important;
    line-height: 1.15 !important;
  }

  #controls #toolbar-panel .eic-icon-chip:hover > span {
    color: #003366 !important;
  }

  /* Theme Palette Pills & Custom Color Row */
  #controls #toolbar-panel .eic-theme-dots {
    display: grid !important;
    grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
    gap: 5px !important;
    width: 100% !important;
  }

  #controls #toolbar-panel .eic-theme-pill {
    height: 24px !important;
    min-height: 24px !important;
    padding: 0 !important;
    border-radius: 999px !important;
    border: 1.5px solid #cbd5e1 !important;
    overflow: hidden !important;
    display: flex !important;
  }

  #controls #toolbar-panel .eic-custom-palette-box {
    margin-top: 8px !important;
    padding: 6px 8px !important;
    background: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 8px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 6px !important;
  }

  #controls #toolbar-panel .eic-custom-pal-item > span {
    color: #334155 !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    margin: 0 !important;
  }

  #controls #toolbar-panel .eic-custom-pal-item input[type="color"] {
    width: 24px !important;
    min-width: 24px !important;
    max-width: 24px !important;
    height: 24px !important;
  }

  #controls #toolbar-panel .eic-custom-pal-apply {
    min-height: 24px !important;
    height: 24px !important;
    padding: 0 9px !important;
    font-size: 11px !important;
    font-weight: 700 !important;
  }
}

/* ==========================================================================
   V112 SCREENSHOT POLISH & EXACT SPECIFICITY OVERRIDES
   Fixes:
   1. Selected Panel card right-edge overflow (overrides V84 body:not(:has(#adminPanel)))
   2. Compact "+ Shadow" pill button
   3. Comfortable bottom padding on 3x3 Panels & Shapes + Badge Icons tiles
   4. Vivid two-tone Theme Palette pills + compact "Apply" button
   ========================================================================== */
@media (min-width: 769px) {
  /* 1. Selected Panel Card: fits cleanly inside 274px sidebar with zero overflow */
  body:not(:has(#adminPanel)) #controls #toolbar-panel ul.eic-panel-main-props-ul.is-panel-selected,
  body:has(#adminPanel) #controls #toolbar-panel ul.eic-panel-main-props-ul.is-panel-selected,
  body.eic-sel-panel #controls #toolbar-panel ul.eic-panel-main-props-ul {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 8px !important;
    width: auto !important;
    max-width: calc(100% - 24px) !important;
    margin: 10px 12px 4px 12px !important;
    padding: 10px 11px !important;
    background: #ffffff !important;
    border: 1px solid #d5e0ec !important;
    border-radius: 10px !important;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05) !important;
    box-sizing: border-box !important;
  }

  body:not(:has(#adminPanel)) #controls #toolbar-panel ul.eic-panel-main-props-ul.is-panel-selected > div,
  body:not(:has(#adminPanel)) #controls #toolbar-panel ul.eic-panel-main-props-ul.is-panel-selected li.eic-panel-card-row,
  body:has(#adminPanel) #controls #toolbar-panel ul.eic-panel-main-props-ul.is-panel-selected > div,
  body:has(#adminPanel) #controls #toolbar-panel ul.eic-panel-main-props-ul.is-panel-selected li.eic-panel-card-row {
    width: 100% !important;
    max-width: 100% !important;
    min-height: 28px !important;
    padding: 0 !important;
    margin: 0 !important;
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 8px !important;
  }

  body:not(:has(#adminPanel)) #controls #toolbar-panel ul.eic-panel-main-props-ul.is-panel-selected > #panelcolorpicker > div,
  body:not(:has(#adminPanel)) #controls #toolbar-panel ul.eic-panel-main-props-ul.is-panel-selected > #panelborderradius > div,
  body:not(:has(#adminPanel)) #controls #toolbar-panel ul.eic-panel-main-props-ul.is-panel-selected > #panelstrokewidth > div {
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
    width: 100% !important;
  }

  /* 2. Compact "+ Shadow" pill button next to PANELS & SHAPES */
  body:not(:has(#adminPanel)) #controls #toolbar-panel .eic-preset-section-hdr,
  #controls #toolbar-panel .eic-preset-section-hdr {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 6px !important;
    min-height: 22px !important;
    margin-bottom: 8px !important;
  }

  body:not(:has(#adminPanel)) #controls #toolbar-panel button.eic-shadow-pill-btn,
  #controls #toolbar-panel button.eic-shadow-pill-btn {
    width: auto !important;
    min-width: 0 !important;
    flex: 0 0 auto !important;
    height: 23px !important;
    min-height: 23px !important;
    padding: 0 9px !important;
    margin: 0 !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 7px !important;
    background: #f8fafc !important;
    color: #334155 !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    line-height: 1 !important;
    white-space: nowrap !important;
    box-shadow: none !important;
    transition: all 0.14s ease !important;
  }

  body:not(:has(#adminPanel)) #controls #toolbar-panel button.eic-shadow-pill-btn:hover,
  #controls #toolbar-panel button.eic-shadow-pill-btn:hover {
    background: #f1f5f9 !important;
    border-color: #94a3b8 !important;
    color: #0f172a !important;
  }

  body:not(:has(#adminPanel)) #controls #toolbar-panel button.eic-shadow-pill-btn.active,
  #controls #toolbar-panel button.eic-shadow-pill-btn.active {
    background: #eef2ff !important;
    border-color: #94a3b8 !important;
    color: #1e293b !important;
    box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.06) !important;
  }

  /* 3. Comfortable height & vertical breathing room on 3x3 Tiles & Badge Icons */
  body:not(:has(#adminPanel)) #controls #toolbar-panel button.eic-preset-tile,
  #controls #toolbar-panel button.eic-preset-tile {
    min-height: 58px !important;
    height: auto !important;
    padding: 8px 4px 7px 4px !important;
    gap: 6px !important;
  }

  body:not(:has(#adminPanel)) #controls #toolbar-panel button.eic-icon-chip,
  #controls #toolbar-panel button.eic-icon-chip {
    min-height: 54px !important;
    height: auto !important;
    padding: 8px 4px 7px 4px !important;
    gap: 5px !important;
  }

  /* 4. Vivid Two-Tone Theme Palette Pills */
  body:not(:has(#adminPanel)) #controls #toolbar-panel .eic-theme-dots,
  #controls #toolbar-panel .eic-theme-dots {
    display: grid !important;
    grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
    gap: 5px !important;
    width: 100% !important;
  }

  body:not(:has(#adminPanel)) #controls #toolbar-panel button.eic-theme-pill,
  #controls #toolbar-panel button.eic-theme-pill {
    width: 100% !important;
    min-width: 0 !important;
    height: 24px !important;
    min-height: 24px !important;
    padding: 0 !important;
    margin: 0 !important;
    border-radius: 999px !important;
    border: 1.5px solid #cbd5e1 !important;
    overflow: hidden !important;
    display: flex !important;
    flex-direction: row !important;
    align-items: stretch !important;
    background: transparent !important;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.10) !important;
  }

  body:not(:has(#adminPanel)) #controls #toolbar-panel button.eic-theme-pill:hover,
  #controls #toolbar-panel button.eic-theme-pill:hover {
    transform: scale(1.08) !important;
    border-color: #003366 !important;
  }

  body:not(:has(#adminPanel)) #controls #toolbar-panel button.eic-theme-pill.active,
  #controls #toolbar-panel button.eic-theme-pill.active {
    border-color: #003366 !important;
    box-shadow: 0 0 0 2px #ffffff, 0 0 0 3.5px #e19c4b !important;
  }

  body:not(:has(#adminPanel)) #controls #toolbar-panel .eic-theme-half,
  #controls #toolbar-panel .eic-theme-half {
    flex: 1 1 50% !important;
    width: 50% !important;
    height: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    display: block !important;
  }

  /* 5. Compact Custom Palette Row & "Apply" Button */
  body:not(:has(#adminPanel)) #controls #toolbar-panel .eic-custom-palette-box,
  #controls #toolbar-panel .eic-custom-palette-box {
    margin-top: 8px !important;
    padding: 6px 8px !important;
    background: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 9px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 6px !important;
  }

  body:not(:has(#adminPanel)) #controls #toolbar-panel button.eic-custom-pal-apply,
  #controls #toolbar-panel button.eic-custom-pal-apply {
    width: auto !important;
    min-width: 0 !important;
    flex: 0 0 auto !important;
    height: 26px !important;
    min-height: 26px !important;
    padding: 0 11px !important;
    margin: 0 !important;
    border: 1px solid #bfd0e2 !important;
    border-radius: 7px !important;
    background: #f0f5fa !important;
    color: #003366 !important;
    font-size: 11.5px !important;
    font-weight: 700 !important;
    line-height: 1 !important;
  }

  body:not(:has(#adminPanel)) #controls #toolbar-panel button.eic-custom-pal-apply:hover,
  #controls #toolbar-panel button.eic-custom-pal-apply:hover {
    background: #003366 !important;
    border-color: #003366 !important;
    color: #ffffff !important;
  }
}

/* ==========================================================================
   V114 CONSISTENT FILL STYLE, COLOR SWATCH PILLS & RICH THEME PALETTE
   ========================================================================== */
@media (min-width: 769px) {
  /* Consistent Segmented Control matching Card Elements Front/Back & Slot On/Off */
  body:not(:has(#adminPanel)) #controls #toolbar-panel .eic-fill-seg,
  body:has(#adminPanel) #controls #toolbar-panel .eic-fill-seg,
  #controls #toolbar-panel .eic-fill-seg {
    display: inline-flex !important;
    align-items: center !important;
    background: #e2e8f0 !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 9px !important;
    padding: 2.5px !important;
    gap: 2px !important;
    height: 30px !important;
  }

  body:not(:has(#adminPanel)) #controls #toolbar-panel button.eic-fill-seg-btn,
  body:has(#adminPanel) #controls #toolbar-panel button.eic-fill-seg-btn,
  #controls #toolbar-panel button.eic-fill-seg-btn {
    width: auto !important;
    min-width: 52px !important;
    height: 23px !important;
    min-height: 23px !important;
    padding: 0 9px !important;
    margin: 0 !important;
    border: none !important;
    border-radius: 6.5px !important;
    background: transparent !important;
    color: #475569 !important;
    font-size: 11.5px !important;
    font-weight: 700 !important;
    line-height: 1 !important;
    box-shadow: none !important;
    cursor: pointer !important;
    transition: all 0.15s ease !important;
  }

  body:not(:has(#adminPanel)) #controls #toolbar-panel button.eic-fill-seg-btn:hover:not(.active),
  body:has(#adminPanel) #controls #toolbar-panel button.eic-fill-seg-btn:hover:not(.active),
  #controls #toolbar-panel button.eic-fill-seg-btn:hover:not(.active) {
    background: rgba(255, 255, 255, 0.55) !important;
    color: #003366 !important;
  }

  body:not(:has(#adminPanel)) #controls #toolbar-panel button.eic-fill-seg-btn.active,
  body:has(#adminPanel) #controls #toolbar-panel button.eic-fill-seg-btn.active,
  #controls #toolbar-panel button.eic-fill-seg-btn.active {
    background: #ffffff !important;
    color: #003366 !important;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.14), inset 0 0 0 1px rgba(0, 51, 102, 0.22) !important;
  }

  /* Fill Color Hex Pill + Swatch Alignment */
  #controls #toolbar-panel .eic-color-pill-wrap {
    display: inline-flex !important;
    align-items: center !important;
    gap: 7px !important;
  }

  #controls #toolbar-panel .eic-color-hex-tag {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    color: #64748b !important;
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 6px !important;
    padding: 3px 7px !important;
    margin: 0 !important;
    line-height: 1.2 !important;
  }

  /* Gradient Start -> End + Direction Selector */
  #controls #toolbar-panel .eic-grad-controls-row {
    display: inline-flex !important;
    align-items: center !important;
    gap: 5px !important;
  }

  #controls #toolbar-panel .eic-grad-arrow {
    font-size: 11px !important;
    font-weight: 700 !important;
    color: #64748b !important;
    margin: 0 !important;
  }

  #controls #toolbar-panel select.eic-grad-dir-select {
    width: 62px !important;
    min-width: 62px !important;
    height: 28px !important;
    min-height: 28px !important;
    padding: 0 6px !important;
    margin: 0 !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 6px !important;
    background: #f8fafc !important;
    color: #1e293b !important;
    font-size: 11.5px !important;
    font-weight: 700 !important;
    cursor: pointer !important;
  }

  /* Richer Theme Palette Pills with subtle diagonal sheen */
  body:not(:has(#adminPanel)) #controls #toolbar-panel button.eic-theme-pill,
  body:has(#adminPanel) #controls #toolbar-panel button.eic-theme-pill,
  #controls #toolbar-panel button.eic-theme-pill {
    height: 26px !important;
    min-height: 26px !important;
    border-radius: 8px !important;
    border: 1.5px solid #cbd5e1 !important;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.35) !important;
  }
}

/* ==========================================================================
   V116 EXPANDED 12-SWATCH THEME PALETTE (6x2 GRID) & FOOTER MINI ICON
   ========================================================================== */
@media (min-width: 769px) {
  body:not(:has(#adminPanel)) #controls #toolbar-panel .eic-theme-dots,
  body:has(#adminPanel) #controls #toolbar-panel .eic-theme-dots,
  #controls #toolbar-panel .eic-theme-dots {
    display: grid !important;
    grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
    gap: 6px !important;
    width: 100% !important;
  }

  #controls #toolbar-panel .eic-preset-mini i.is-footer {
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    height: 5px !important;
    background: #003366 !important;
  }
}

/* ==========================================================================
   V117 SAVED BRAND THEMES, GRADIENT ANGLE/SWAP & TEXT BACKGROUND PILL
   ========================================================================== */
@media (min-width: 769px) {
  /* Saved Brand Themes Section */
  #controls #toolbar-panel .eic-saved-themes-box {
    margin-top: 8px !important;
    padding: 7px 8px !important;
    background: #ffffff !important;
    border: 1px solid #d5e0ec !important;
    border-radius: 9px !important;
  }

  #controls #toolbar-panel .eic-saved-themes-hdr {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    font-size: 10.5px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.35px !important;
    color: #475569 !important;
    margin-bottom: 6px !important;
  }

  #controls #toolbar-panel .eic-saved-themes-hdr > span {
    color: #475569 !important;
    font-size: 10.5px !important;
    margin: 0 !important;
  }

  #controls #toolbar-panel button.eic-saved-clear-link {
    width: auto !important;
    min-height: 0 !important;
    height: auto !important;
    padding: 0 4px !important;
    margin: 0 !important;
    border: none !important;
    background: transparent !important;
    color: #94a3b8 !important;
    font-size: 10.5px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
  }

  #controls #toolbar-panel button.eic-saved-clear-link:hover {
    color: #dc2626 !important;
    background: transparent !important;
  }

  #controls #toolbar-panel .eic-saved-themes-grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 5px !important;
  }

  #controls #toolbar-panel .eic-saved-theme-chip {
    display: flex !important;
    align-items: center !important;
    gap: 5px !important;
    padding: 4px 6px !important;
    background: #f8fafc !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 7px !important;
    cursor: pointer !important;
    transition: all 0.14s ease !important;
  }

  #controls #toolbar-panel .eic-saved-theme-chip:hover {
    background: #f0f5fa !important;
    border-color: #003366 !important;
  }

  #controls #toolbar-panel .eic-saved-theme-chip.active {
    background: #e6eff8 !important;
    border-color: #003366 !important;
  }

  #controls #toolbar-panel .eic-saved-swatch-pair {
    display: inline-flex !important;
    width: 16px !important;
    height: 16px !important;
    border-radius: 50% !important;
    overflow: hidden !important;
    border: 1px solid #94a3b8 !important;
    flex-shrink: 0 !important;
    margin: 0 !important;
  }

  #controls #toolbar-panel .eic-saved-swatch-pair i {
    flex: 1 1 50% !important;
    height: 100% !important;
    display: block !important;
  }

  #controls #toolbar-panel .eic-saved-theme-lbl {
    font-size: 10.5px !important;
    font-weight: 700 !important;
    color: #1e293b !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    flex: 1 1 auto !important;
    margin: 0 !important;
  }

  #controls #toolbar-panel button.eic-saved-del-btn {
    width: 16px !important;
    min-width: 16px !important;
    height: 16px !important;
    min-height: 16px !important;
    padding: 0 !important;
    margin: 0 !important;
    border: none !important;
    background: transparent !important;
    color: #94a3b8 !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    line-height: 1 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  #controls #toolbar-panel button.eic-saved-del-btn:hover {
    color: #dc2626 !important;
    background: transparent !important;
  }

  /* Custom Palette Save Button */
  body:not(:has(#adminPanel)) #controls #toolbar-panel button.eic-custom-pal-save,
  #controls #toolbar-panel button.eic-custom-pal-save {
    width: auto !important;
    min-width: 0 !important;
    flex: 0 0 auto !important;
    height: 26px !important;
    min-height: 26px !important;
    padding: 0 9px !important;
    margin: 0 !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 7px !important;
    background: #ffffff !important;
    color: #334155 !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    line-height: 1 !important;
  }

  body:not(:has(#adminPanel)) #controls #toolbar-panel button.eic-custom-pal-save:hover,
  #controls #toolbar-panel button.eic-custom-pal-save:hover {
    background: #fef3c7 !important;
    border-color: #e19c4b !important;
    color: #92400e !important;
  }

  /* Gradient Color Swap & Angle Pills */
  body:not(:has(#adminPanel)) #controls #toolbar-panel button.eic-grad-swap-btn,
  #controls #toolbar-panel button.eic-grad-swap-btn {
    width: 26px !important;
    min-width: 26px !important;
    height: 26px !important;
    min-height: 26px !important;
    padding: 0 !important;
    margin: 0 !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 6px !important;
    background: #f8fafc !important;
    color: #003366 !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    line-height: 1 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  body:not(:has(#adminPanel)) #controls #toolbar-panel button.eic-grad-swap-btn:hover,
  #controls #toolbar-panel button.eic-grad-swap-btn:hover {
    background: #e6eff8 !important;
    border-color: #003366 !important;
  }

  #controls #toolbar-panel .eic-grad-angle-group {
    display: inline-flex !important;
    align-items: center !important;
    gap: 3px !important;
  }

  body:not(:has(#adminPanel)) #controls #toolbar-panel button.eic-grad-ang-chip,
  #controls #toolbar-panel button.eic-grad-ang-chip {
    width: auto !important;
    min-width: 28px !important;
    height: 25px !important;
    min-height: 25px !important;
    padding: 0 5px !important;
    margin: 0 !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 6px !important;
    background: #f8fafc !important;
    color: #475569 !important;
    font-size: 10.5px !important;
    font-weight: 700 !important;
    line-height: 1 !important;
  }

  body:not(:has(#adminPanel)) #controls #toolbar-panel button.eic-grad-ang-chip.active,
  #controls #toolbar-panel button.eic-grad-ang-chip.active {
    background: #003366 !important;
    border-color: #003366 !important;
    color: #ffffff !important;
  }

  #controls #toolbar-panel input.eic-grad-ang-input {
    width: 46px !important;
    min-width: 46px !important;
    height: 25px !important;
    padding: 0 4px !important;
    font-size: 11px !important;
  }


  /* Unified Border Group Card inside #toolbar-panel (higher specificity than V112/V126 row overrides) */
  body:not(:has(#adminPanel)) #controls #toolbar-panel ul.eic-panel-main-props-ul.is-panel-selected li.eic-panel-card-row.eic-border-group-card,
  body:has(#adminPanel) #controls #toolbar-panel ul.eic-panel-main-props-ul.is-panel-selected li.eic-panel-card-row.eic-border-group-card,
  #controls #toolbar-panel li.eic-panel-card-row.eic-border-group-card {
    display: flex !important;
    flex-direction: column !important;
    flex-wrap: nowrap !important;
    align-items: stretch !important;
    justify-content: flex-start !important;
    gap: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  body:not(:has(#adminPanel)) #controls #toolbar-panel ul.eic-panel-main-props-ul.is-panel-selected li.eic-panel-card-row.eic-border-group-card.is-border-expanded,
  body:has(#adminPanel) #controls #toolbar-panel ul.eic-panel-main-props-ul.is-panel-selected li.eic-panel-card-row.eic-border-group-card.is-border-expanded,
  #controls #toolbar-panel li.eic-panel-card-row.eic-border-group-card.is-border-expanded {
    background: #f8fafc !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 10px !important;
    padding: 8px 10px !important;
    margin-top: 2px !important;
  }

  #controls #toolbar-panel .eic-border-group-header {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 8px !important;
    width: 100% !important;
    min-height: 26px !important;
  }

  #controls #toolbar-panel .eic-border-group-title {
    font-size: 12px !important;
    font-weight: 700 !important;
    color: #334155 !important;
    white-space: nowrap !important;
  }

  #controls #toolbar-panel .eic-border-slider-wrap {
    display: inline-flex !important;
    align-items: center !important;
    gap: 7px !important;
    margin-left: auto !important;
  }

  #controls #toolbar-panel .eic-border-slider-wrap input[type="range"]#panel-stroke-width {
    width: 96px !important;
    margin: 0 !important;
  }

  #controls #toolbar-panel .eic-border-px-badge {
    min-width: 22px !important;
    text-align: center !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    color: #334155 !important;
    background: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 5px !important;
    padding: 1px 4px !important;
    line-height: 1.35 !important;
  }

  #controls #toolbar-panel .eic-border-group-subcontrols {
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
    margin-top: 8px !important;
    padding-top: 8px !important;
    border-top: 1px dashed #cbd5e1 !important;
    width: 100% !important;
  }

  #controls #toolbar-panel .eic-border-group-subrow {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 8px !important;
    width: 100% !important;
  }

  #controls #toolbar-panel .eic-border-group-sublabel {
    font-size: 11px !important;
    font-weight: 600 !important;
    color: #64748b !important;
    white-space: nowrap !important;
  }

  #controls #toolbar-panel .eic-border-group-subrow input[type="color"]#panel-stroke-color-inline {
    width: 24px !important;
    min-width: 24px !important;
    max-width: 24px !important;
    height: 22px !important;
    padding: 1px !important;
    border-radius: 6px !important;
  }

  /* Unified Text Background Pill Card inside #toolbar-text */
  #controls #toolbar-text li.eic-text-pill-group-card {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 0 !important;
    width: 100% !important;
  }

  #controls #toolbar-text li.eic-text-pill-group-card.is-pill-expanded {
    background: #f8fafc !important;
    border-color: #cbd5e1 !important;
  }

  #controls #toolbar-text .eic-text-pill-header {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    width: 100% !important;
    min-height: 26px !important;
  }

  #controls #toolbar-text .eic-text-pill-title {
    font-size: 12px !important;
    font-weight: 700 !important;
    color: #334155 !important;
  }

  #controls #toolbar-text .eic-text-pill-subcontrols {
    display: flex !important;
    flex-direction: column !important;
    gap: 7px !important;
    margin-top: 8px !important;
    padding-top: 8px !important;
    border-top: 1px dashed #cbd5e1 !important;
    width: 100% !important;
  }

  #controls #toolbar-text .eic-text-pill-subrow {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 8px !important;
    width: 100% !important;
  }

  #controls #toolbar-text .eic-text-pill-sublabel {
    font-size: 11px !important;
    font-weight: 600 !important;
    color: #64748b !important;
  }

  #controls #toolbar-text .eic-fill-seg {
    display: inline-flex !important;
    align-items: center !important;
    background: #e2e8f0 !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 8px !important;
    padding: 2px !important;
    gap: 2px !important;
    height: 28px !important;
  }

  #controls #toolbar-text button.eic-fill-seg-btn {
    width: auto !important;
    min-width: 48px !important;
    height: 22px !important;
    min-height: 22px !important;
    padding: 0 9px !important;
    margin: 0 !important;
    border: none !important;
    border-radius: 6px !important;
    background: transparent !important;
    color: #475569 !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    line-height: 1 !important;
  }

  #controls #toolbar-text button.eic-fill-seg-btn.active {
    background: #ffffff !important;
    color: #003366 !important;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.14) !important;
  }

  #controls #toolbar-text button.eic-shadow-pill-btn {
    border: 1px solid #cbd5e1 !important;
    background: #f8fafc !important;
    color: #334155 !important;
    border-radius: 7px !important;
    padding: 3px 9px !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    transition: all 0.14s ease !important;
  }

  #controls #toolbar-text button.eic-shadow-pill-btn:hover {
    background: #f1f5f9 !important;
    border-color: #94a3b8 !important;
    color: #0f172a !important;
  }

  #controls #toolbar-text button.eic-shadow-pill-btn.active {
    background: #eef2ff !important;
    border-color: #94a3b8 !important;
    color: #1e293b !important;
    box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.06) !important;
  }
}

/* ==========================================================================
   V119 OPACITY ROW STACK FIX & RESET / TEXT PILL POLISH
   ========================================================================== */
@media (min-width: 769px) {
  /* Stack Radius and Opacity vertically on separate rows inside #panelborderradius */
  body:not(:has(#adminPanel)) #controls #toolbar-panel ul.eic-panel-main-props-ul.is-panel-selected > #panelborderradius,
  body:has(#adminPanel) #controls #toolbar-panel ul.eic-panel-main-props-ul.is-panel-selected > #panelborderradius,
  #controls #toolbar-panel ul.eic-panel-main-props-ul.is-panel-selected > #panelborderradius,
  body:not(:has(#adminPanel)) #controls #toolbar-panel ul.eic-panel-main-props-ul.is-panel-selected > div.eic-panel-prop-block,
  body:has(#adminPanel) #controls #toolbar-panel ul.eic-panel-main-props-ul.is-panel-selected > div.eic-panel-prop-block {
    display: flex !important;
    flex-direction: column !important;
    flex-wrap: nowrap !important;
    align-items: stretch !important;
    gap: 8px !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  #controls #toolbar-panel ul.eic-panel-main-props-ul.is-panel-selected > #panelborderradius > li.eic-panel-card-row {
    width: 100% !important;
    max-width: 100% !important;
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
  }
}

/* ==========================================================================
   V121 9-TILE SHAPES GRID MINI ICONS (.is-box, .is-split) & FLIP CONTROLS
   ========================================================================== */
@media (min-width: 769px) {
  #controls #toolbar-panel .eic-preset-mini i.is-box {
    inset: 4px 6px !important;
    border-radius: 2.5px !important;
    background: #003366 !important;
  }

  #controls #toolbar-panel .eic-preset-mini i.is-split {
    top: 0 !important;
    bottom: 0 !important;
    left: 0 !important;
    width: 11px !important;
    background: #003366 !important;
  }
}

/* ==========================================================================
   V124 MOBILE SINGLE-ROW PANEL CONTROLS + SOLID COLOR SWATCH
   ========================================================================== */
@media (max-width: 768px) {
  body.eic-sel-panel #mobileToolbar {
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    justify-content: center !important;
    gap: 5px !important;
    padding: 5px 8px !important;
  }

  body.eic-sel-panel #mobileToolbar > #paneladd-mobile {
    display: none !important;
  }

  .eic-mobile-panel-color-wrap {
    display: inline-flex !important;
    align-items: center !important;
    gap: 5px !important;
    margin-left: 0 !important;
    background: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    padding: 3px 6px !important;
    border-radius: 8px !important;
    flex-shrink: 0 !important;
  }

  .eic-mobile-panel-swatch {
    width: 26px !important;
    height: 26px !important;
    padding: 1px !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 6px !important;
    background: #ffffff !important;
    cursor: pointer !important;
    flex-shrink: 0 !important;
  }

  body.eic-sel-panel #mobileToolbar > #panelborderradiusMobile > div,
  body.eic-sel-panel #mobileToolbar > #panelstrokewidthMobile > div {
    margin-left: 0 !important;
    background: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 8px !important;
    padding: 2px 5px !important;
    height: 34px !important;
  }
}

/* ==========================================================================
   V125 ADMIN (index1.html) TEXT / PHOTO / PANEL / BARCODE CONTROLLER SYNC
   ========================================================================== */
@media (min-width: 769px) {
  /* Match 4-tab dock & inspector panels 1:1 to 284px inner width of 300px Admin #controls */
  body:has(#adminPanel) #controls .eic-nav-buttons-root,
  body:has(#adminPanel) #controls .eic-connected-dock-nav,
  body:has(#adminPanel) #controls .eic-dock-layers-bar,
  body:has(#adminPanel) #controls .eic-dock-layers-btn,
  body:has(#adminPanel) #controls .eic-dock-tabs,
  body:has(#adminPanel) #controls #toolbar-layers,
  body:has(#adminPanel) #controls #toolbar-text,
  body:has(#adminPanel) #controls #toolbar-photo,
  body:has(#adminPanel) #controls #toolbar-panel,
  body:has(#adminPanel) #controls #toolbar-barcode,
  body:has(#adminPanel) #controls #toolbar-layers .idcreator-container-inner,
  body:has(#adminPanel) #controls #toolbar-text .idcreator-container-inner,
  body:has(#adminPanel) #controls #toolbar-photo .idcreator-container-inner,
  body:has(#adminPanel) #controls #toolbar-panel .idcreator-container-inner,
  body:has(#adminPanel) #controls #toolbar-barcode .idcreator-container-inner {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
  }

  /* Prevent #controls #toolbar-barcode button { width: 100% } from distorting color swatches */
  #controls #toolbar-barcode button.eic-bc-swatch {
    width: 20px !important;
    min-width: 20px !important;
    max-width: 20px !important;
    height: 20px !important;
    min-height: 20px !important;
    padding: 0 !important;
    border-radius: 50% !important;
  }

  /* Tidy Admin Photo Image Border (#strokeW) & Filters (#buttonsFilters) */
  body:has(#adminPanel) #controls #toolbar-photo #strokeW li:has(> span.separator:only-child),
  body:has(#adminPanel) #controls #toolbar-photo #buttonsFilters li:has(> span.separator:only-child) {
    display: none !important;
  }

  body:has(#adminPanel) #controls #toolbar-photo #strokeW li:not(:has(> span.separator:only-child)),
  body:has(#adminPanel) #controls #toolbar-photo #backdropMaskPanel li:not(:has(> span.separator:only-child)) {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    justify-content: flex-start !important;
    gap: 7px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    background: #ffffff !important;
    border: 1px solid #d5e0ec !important;
    border-radius: 9px !important;
    padding: 8px 10px !important;
    margin: 0 !important;
  }

  body:has(#adminPanel) #controls #toolbar-photo #buttonsFilters > div {
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
    margin-top: 4px !important;
  }

  body:has(#adminPanel) #controls #toolbar-photo #buttonsFilters li:not(:has(> span.separator:only-child)) {
    background: #ffffff !important;
    border: 1px solid #d5e0ec !important;
    border-radius: 9px !important;
    padding: 7px 10px !important;
    margin: 0 !important;
  }
}

/* ==========================================================================
   V126 ADMIN (index1.html) PANEL INSPECTOR MASTER FIX
   Overrides V85 `body:has(#adminPanel) #controls #toolbar-panel` legacy rules
   so Panel properties, 9-tile Shapes grid, Theme Palette & Custom Palette
   match easyidcreatorM.html 1:1 inside the 300px Admin sidebar.
   ========================================================================== */
@media (min-width: 769px) {
  /* 1. Selected Panel Properties Card on Admin (stack rows cleanly, full width) */
  body:has(#adminPanel) #controls #toolbar-panel ul.eic-panel-main-props-ul.is-panel-selected {
    display: flex !important;
    flex-direction: column !important;
    flex-wrap: nowrap !important;
    align-items: stretch !important;
    gap: 8px !important;
    width: auto !important;
    max-width: calc(100% - 24px) !important;
    margin: 10px 12px 4px 12px !important;
    padding: 10px 11px !important;
    background: #ffffff !important;
    border: 1px solid #d5e0ec !important;
    border-radius: 10px !important;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05) !important;
    box-sizing: border-box !important;
  }

  body:has(#adminPanel) #controls #toolbar-panel ul.eic-panel-main-props-ul.is-panel-selected > #panelcolorpicker,
  body:has(#adminPanel) #controls #toolbar-panel ul.eic-panel-main-props-ul.is-panel-selected > #panelborderradius,
  body:has(#adminPanel) #controls #toolbar-panel ul.eic-panel-main-props-ul.is-panel-selected > #panelstrokewidth,
  body:has(#adminPanel) #controls #toolbar-panel ul.eic-panel-main-props-ul.is-panel-selected > div.eic-panel-prop-block {
    display: flex !important;
    flex-direction: column !important;
    flex-wrap: nowrap !important;
    align-items: stretch !important;
    gap: 8px !important;
    width: 100% !important;
    max-width: 100% !important;
    flex: 1 1 auto !important;
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  body:has(#adminPanel) #controls #toolbar-panel ul.eic-panel-main-props-ul.is-panel-selected > #panelcolorpicker > div,
  body:has(#adminPanel) #controls #toolbar-panel ul.eic-panel-main-props-ul.is-panel-selected > #panelborderradius > div,
  body:has(#adminPanel) #controls #toolbar-panel ul.eic-panel-main-props-ul.is-panel-selected > #panelstrokewidth > div {
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
    width: 100% !important;
  }

  body:has(#adminPanel) #controls #toolbar-panel ul.eic-panel-main-props-ul.is-panel-selected li.eic-panel-card-row,
  body:has(#adminPanel) #controls #toolbar-panel ul.eic-panel-main-props-ul.is-panel-selected > #panelstrokewidth li {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 8px !important;
    width: 100% !important;
    max-width: 100% !important;
    min-height: 28px !important;
    padding: 0 !important;
    margin: 0 !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
  }

  body:has(#adminPanel) #controls #toolbar-panel ul.eic-panel-main-props-ul.is-panel-selected > #panelstrokewidth input[type="number"] {
    width: 56px !important;
    height: 28px !important;
    padding: 2px 6px !important;
  }

  body:has(#adminPanel) #controls #toolbar-panel ul.eic-panel-main-props-ul.is-panel-selected > #panelstrokewidth input[type="color"] {
    width: 30px !important;
    min-width: 30px !important;
    max-width: 30px !important;
    height: 28px !important;
    padding: 1px !important;
  }

  /* 2. Panels & Shapes 3x3 Grid + Theme Palette on Admin (overrides V85) */
  body:has(#adminPanel) #controls #toolbar-panel .eic-preset-section {
    padding: 10px 12px 8px 12px !important;
    margin-top: 6px !important;
    background: transparent !important;
    border-top: 1px solid #d5e0ec !important;
    border-bottom: none !important;
  }

  body:has(#adminPanel) #controls #toolbar-panel .eic-preset-grid.eic-preset-grid-3 {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 6px !important;
    width: 100% !important;
  }

  body:has(#adminPanel) #controls #toolbar-panel button.eic-preset-tile {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    width: 100% !important;
    min-height: 58px !important;
    height: auto !important;
    padding: 8px 4px 7px 4px !important;
    margin: 0 !important;
    background: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 8px !important;
    color: #1e293b !important;
    font-size: 11px !important;
    font-weight: 700 !important;
  }

  body:has(#adminPanel) #controls #toolbar-panel button.eic-preset-tile:hover {
    background: #f0f5fa !important;
    border-color: #003366 !important;
    color: #003366 !important;
  }

  body:has(#adminPanel) #controls #toolbar-panel button.eic-custom-pal-save,
  body:has(#adminPanel) #controls #toolbar-panel button.eic-custom-pal-apply,
  body:has(#adminPanel) #controls #toolbar-panel button.eic-grad-swap-btn,
  body:has(#adminPanel) #controls #toolbar-panel button.eic-grad-ang-chip,
  body:has(#adminPanel) #controls #toolbar-panel button.eic-shadow-pill-btn {
    width: auto !important;
    min-width: 0 !important;
  }
}

/* ==========================================================================
   V127 ADMIN (index1.html) `admin.css` BUTTON & PANEL OVERRIDE FIX
   Neutralizes `css/admin/admin.css` generic `#controls button` sizing/padding
   rules that were squashing `.eic-preset-tile`, blanking `.eic-theme-pill`,
   and blowing up `.eic-custom-pal-save` / `.eic-custom-pal-apply`.
   ========================================================================== */
@media (min-width: 769px) {
  /* 1. Flush connection between 4-tab folder header and active inspector on index1.html */
  body:has(#adminPanel) #controls > .eic-nav-buttons-root {
    margin-bottom: -8px !important;
  }

  /* 2. Reset `admin.css` button overrides on 9-tile Panels & Shapes buttons */
  body:has(#adminPanel) #controls #toolbar-panel .eic-preset-grid.eic-preset-grid-3 button.eic-preset-tile {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 5px !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    height: 58px !important;
    min-height: 58px !important;
    max-height: 58px !important;
    padding: 7px 4px !important;
    margin: 0 !important;
    background: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 9px !important;
    color: #1e293b !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    line-height: 1.15 !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
  }

  body:has(#adminPanel) #controls #toolbar-panel .eic-preset-grid.eic-preset-grid-3 button.eic-preset-tile:hover {
    background: #f0f5fa !important;
    border-color: #003366 !important;
    color: #003366 !important;
  }

  body:has(#adminPanel) #controls #toolbar-panel button.eic-preset-tile > span:last-child {
    display: block !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    font-size: 11px !important;
    line-height: 1.15 !important;
    text-align: center !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }

  /* 3. Restore vivid two-tone Theme Palette pills against `admin.css` button background/padding */
  body:has(#adminPanel) #controls #toolbar-panel .eic-theme-dots button.eic-theme-pill {
    display: flex !important;
    flex-direction: row !important;
    align-items: stretch !important;
    justify-content: stretch !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    height: 26px !important;
    min-height: 26px !important;
    max-height: 26px !important;
    padding: 0 !important;
    margin: 0 !important;
    border: 1.5px solid #cbd5e1 !important;
    border-radius: 8px !important;
    background: transparent !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
  }

  body:has(#adminPanel) #controls #toolbar-panel .eic-theme-dots button.eic-theme-pill > span.eic-theme-half {
    display: block !important;
    flex: 1 1 50% !important;
    width: 50% !important;
    min-width: 0 !important;
    height: 100% !important;
    min-height: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
  }

  /* 4. Compact Save & Apply buttons inside Custom Palette box (stop overflowing right edge) */
  body:has(#adminPanel) #controls #toolbar-panel .eic-custom-palette-box {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 4px !important;
    padding: 6px 7px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  body:has(#adminPanel) #controls #toolbar-panel .eic-custom-palette-inputs {
    display: inline-flex !important;
    align-items: center !important;
    gap: 5px !important;
    flex-shrink: 1 !important;
    min-width: 0 !important;
  }

  body:has(#adminPanel) #controls #toolbar-panel .eic-custom-pal-item {
    gap: 3px !important;
    font-size: 10.5px !important;
  }

  body:has(#adminPanel) #controls #toolbar-panel .eic-custom-pal-item span {
    font-size: 10.5px !important;
  }

  body:has(#adminPanel) #controls #toolbar-panel .eic-custom-palette-box button.eic-custom-pal-save,
  body:has(#adminPanel) #controls #toolbar-panel .eic-custom-palette-box button.eic-custom-pal-apply {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
    flex: 0 0 auto !important;
    height: 26px !important;
    min-height: 26px !important;
    max-height: 26px !important;
    padding: 0 8px !important;
    margin: 0 !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    line-height: 1 !important;
    border-radius: 6px !important;
    box-sizing: border-box !important;
  }
}

/* ==========================================================================
   V128 ULTRA-HIGH SPECIFICITY ADMIN PANEL & BUTTON FIX (#idcreator-container #controls #toolbar-panel)
   Beats any multi-ID selector in `css/admin/admin.css` regardless of bundle order.
   ========================================================================== */
@media (min-width: 769px) {
  /* 1. Flush connection between 4-tab folder header and active inspector */
  #idcreator-container #controls > #nav-buttons,
  #idcreator-container #controls > .eic-nav-buttons-root {
    margin-bottom: -8px !important;
  }

  /* 2. 9-Tile Panels & Shapes Buttons: full 58px height, centered icon + label, zero clipping */
  #idcreator-container #controls #toolbar-panel .eic-preset-grid.eic-preset-grid-3 > button.eic-preset-tile {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 5px !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    height: 58px !important;
    min-height: 58px !important;
    max-height: 58px !important;
    padding: 7px 4px !important;
    margin: 0 !important;
    background: #ffffff !important;
    background-color: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 9px !important;
    color: #1e293b !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    line-height: 1.15 !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04) !important;
  }

  #idcreator-container #controls #toolbar-panel .eic-preset-grid.eic-preset-grid-3 > button.eic-preset-tile:hover {
    background: #f0f5fa !important;
    background-color: #f0f5fa !important;
    border-color: #003366 !important;
    color: #003366 !important;
  }

  #idcreator-container #controls #toolbar-panel .eic-preset-grid.eic-preset-grid-3 > button.eic-preset-tile > span:last-child {
    display: block !important;
    width: 100% !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    font-size: 11px !important;
    line-height: 1.15 !important;
    text-align: center !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }

  /* 3. Two-Tone Theme Palette Swatch Pills (12 pills in 6x2 grid) */
  #idcreator-container #controls #toolbar-panel .eic-theme-dots > button.eic-theme-pill {
    display: flex !important;
    flex-direction: row !important;
    align-items: stretch !important;
    justify-content: stretch !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    height: 26px !important;
    min-height: 26px !important;
    max-height: 26px !important;
    padding: 0 !important;
    margin: 0 !important;
    border: 1.5px solid #cbd5e1 !important;
    border-radius: 8px !important;
    background: transparent !important;
    background-color: transparent !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
  }

  #idcreator-container #controls #toolbar-panel .eic-theme-dots > button.eic-theme-pill > span.eic-theme-half {
    display: block !important;
    flex: 1 1 50% !important;
    width: 50% !important;
    min-width: 0 !important;
    height: 100% !important;
    min-height: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
  }

  /* 4. Custom Palette Save & Apply Buttons (compact, never overflow right edge) */
  #idcreator-container #controls #toolbar-panel .eic-custom-palette-box {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 4px !important;
    padding: 6px 7px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  #idcreator-container #controls #toolbar-panel .eic-custom-palette-box button.eic-custom-pal-save,
  #idcreator-container #controls #toolbar-panel .eic-custom-palette-box button.eic-custom-pal-apply {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
    flex: 0 0 auto !important;
    height: 26px !important;
    min-height: 26px !important;
    max-height: 26px !important;
    padding: 0 8px !important;
    margin: 0 !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    line-height: 1 !important;
    border-radius: 6px !important;
    box-sizing: border-box !important;
  }
}

/* ==========================================================================
   V129: 1A BRAND WIZARD ENTRY, 2A CARD BASE SWATCHES & 3A QUICK FILL QA SIM
   ========================================================================== */
@media (min-width: 769px) {
  #controls #toolbar-panel button.eic-wizard-launch-btn {
    margin-top: 8px !important;
    width: 100% !important;
    min-height: 34px !important;
    height: 34px !important;
    padding: 0 10px !important;
    border-radius: 9px !important;
    border: 1.5px solid #003366 !important;
    background: #e6eff8 !important;
    color: #003366 !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    cursor: pointer !important;
  }

  #controls #toolbar-panel button.eic-wizard-launch-btn:hover {
    background: #003366 !important;
    color: #ffffff !important;
  }

  /* 3A: Mobile width simulation mode for Quick Fill QA on Desktop */
  .eic-qe-shell.is-mobile-sim {
    width: 375px !important;
    max-width: 375px !important;
    left: 24px !important;
    top: auto !important;
    bottom: 0 !important;
    height: 86vh !important;
    border-radius: 20px 20px 0 0 !important;
    border: 1.5px solid #003366 !important;
  }
}

/* ==========================================================================
   V141: 4-TAB DOCK SPACING & LARGER ICONS (Desktop >= 769px)
   Adds clean breathing room below the label and enlarges icon wrap & SVGs
   ========================================================================== */
@media (min-width: 769px) {
  #idcreator-container #controls .eic-dock-tabs {
    padding: 7px 6px 0 6px !important;
    gap: 5px !important;
  }

  #idcreator-container #controls .eic-dock-tab {
    padding: 11px 2px 12px !important;
    gap: 7px !important;
    justify-content: center !important;
  }

  #idcreator-container #controls .eic-dock-icon-wrap {
    width: 38px !important;
    height: 38px !important;
    border-radius: 10px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 auto !important;
  }

  #idcreator-container #controls .eic-dock-icon-wrap svg {
    width: 24px !important;
    height: 24px !important;
  }

  #idcreator-container #controls .eic-dock-tab-lbl {
    font-size: 11.5px !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
    margin: 0 !important;
    padding-bottom: 1px !important;
  }
}

/* ==========================================================================
   V142: CLOSE '×' BADGE ON ACTIVE CARD ELEMENTS BUTTON
   ========================================================================== */
@media (min-width: 769px) {
  #controls .eic-dock-layers-btn {
    position: relative !important;
  }

  #controls .eic-dock-layers-close {
    position: absolute !important;
    right: 9px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    width: 20px !important;
    height: 20px !important;
    border-radius: 6px !important;
    background: rgba(15, 23, 42, 0.08) !important;
    color: inherit !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    line-height: 1 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 !important;
    transition: background-color 0.14s ease, color 0.14s ease !important;
  }

  #controls .eic-dock-layers-btn:hover .eic-dock-layers-close {
    background: rgba(220, 38, 38, 0.14) !important;
    color: #b91c1c !important;
  }
}

/* ==========================================================================
   V143: GREY OUT THE 4 CONTROLLER TABS WHEN CARD ELEMENTS IS EXPANDED
   ========================================================================== */
@media (min-width: 769px) {
  #controls .eic-dock-tabs.is-dimmed,
  #idcreator-container #controls .eic-dock-tabs.is-dimmed {
    background: #e2e8f0 !important;
    border-color: #cbd5e1 !important;
    box-shadow: none !important;
    transition: background-color 0.16s ease, opacity 0.16s ease !important;
  }

  #controls .eic-dock-tabs.is-dimmed .eic-dock-tab,
  #idcreator-container #controls .eic-dock-tabs.is-dimmed .eic-dock-tab {
    opacity: 0.45 !important;
    color: #64748b !important;
    background: transparent !important;
    border-top-color: transparent !important;
    transition: opacity 0.16s ease, color 0.16s ease, background-color 0.16s ease !important;
  }

  #controls .eic-dock-tabs.is-dimmed .eic-dock-icon-wrap,
  #idcreator-container #controls .eic-dock-tabs.is-dimmed .eic-dock-icon-wrap {
    background: rgba(15, 23, 42, 0.05) !important;
    color: #64748b !important;
  }

  #controls .eic-dock-tabs.is-dimmed .eic-dock-tab:hover,
  #idcreator-container #controls .eic-dock-tabs.is-dimmed .eic-dock-tab:hover {
    opacity: 0.9 !important;
    background: rgba(255, 255, 255, 0.72) !important;
    color: #003366 !important;
  }
}

/* ==========================================================================
   V146: DATABASE-PROGRAMMABLE LOCKED SELF-FILL MODE (`body.eic-schema-locked`)
   Activated via `aSetting.quickFillConfig.lockSchema = true` or
   `window.setQuickFillLockSchema(true)` for corporate/membership self-fill.
   ========================================================================== */
body.eic-schema-locked #controls,
body.eic-schema-locked #topControlBar,
body.eic-schema-locked #mobileToolbar {
  display: none !important;
}

body.eic-schema-locked #canva-container .upper-canvas {
  pointer-events: none !important;
}

/* ==========================================================================
   V147: INLINE FIELD LABEL RENAMING INSIDE QUICK FILL
   ========================================================================== */
.eic-qe-label.is-renamable {
  cursor: pointer;
  border-bottom: 1px dashed transparent;
  transition: color 0.14s ease, border-color 0.14s ease;
}

.eic-qe-label.is-renamable:hover {
  color: #003366 !important;
  border-bottom-color: #003366;
}

.eic-qe-inline-rename {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex: 1 1 auto;
  min-width: 0;
}

.eic-qe-rename-input {
  height: 26px;
  padding: 0 8px;
  font-size: 12.5px;
  font-weight: 700;
  color: #0f172a;
  background: #ffffff;
  border: 1.5px solid #003366;
  border-radius: 6px;
  outline: none;
  flex: 1 1 auto;
  min-width: 80px;
}

.eic-qe-rename-save,
.eic-qe-rename-cancel {
  width: 24px;
  height: 26px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
}

.eic-qe-rename-save {
  background: #003366;
  border: 1px solid #003366;
  color: #ffffff;
}

.eic-qe-rename-save:hover {
  background: #00478f;
}

.eic-qe-rename-cancel {
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  color: #475569;
}

.eic-qe-rename-cancel:hover {
  background: #e2e8f0;
  color: #0f172a;
}


/* ==========================================================================
   V198: Exact 1:1 Parity Between `+ Add new image` (`#photo-add-label`) and
   `+ Add new text` (`#text-add`) Across Customer & Admin Views
   ========================================================================== */
#idcreator-container #controls #toolbar-photo ul:has(#photo-add-wrap),
#idcreator-container #controls #toolbar-photo ul:has(#photo-add-label),
#controls #toolbar-photo ul[style*="1d5251"] {
  padding: 10px 12px !important;
  margin: 0 !important;
  background-color: #eaf0f6 !important;
  border-top: 1px solid #d5e0ec !important;
  border-bottom: 1px solid #d5e0ec !important;
  display: block !important;
  box-sizing: border-box !important;
}

#idcreator-container #controls #photo-add-wrap,
#idcreator-container #controls #photo-add-wrap > li,
#controls #toolbar-photo ul[style*="1d5251"] li {
  padding: 0 !important;
  margin: 0 !important;
  background: transparent !important;
  border: none !important;
  display: block !important;
  width: 100% !important;
}

#idcreator-container #controls #photo-add-label,
#idcreator-container #controls #toolbar-photo label.eic-add-new-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  width: 100% !important;
  min-height: 36px !important;
  height: 36px !important;
  padding: 0 14px !important;
  margin: 0 !important;
  background-color: #ffffff !important;
  color: #003366 !important;
  border: 1.5px solid #bfd0e2 !important;
  border-radius: 9px !important;
  font-family: inherit !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  letter-spacing: 0 !important;
  line-height: 1 !important;
  text-transform: none !important;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05) !important;
  cursor: pointer !important;
  position: relative !important;
  overflow: hidden !important;
  box-sizing: border-box !important;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease !important;
}

#idcreator-container #controls #photo-add-label:hover,
#idcreator-container #controls #toolbar-photo label.eic-add-new-btn:hover {
  background-color: #e6eff8 !important;
  border-color: #003366 !important;
  color: #003366 !important;
}

#idcreator-container #controls #photo-add-label .eic-add-plus,
#idcreator-container #controls #toolbar-photo label.eic-add-new-btn .eic-add-plus {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin-right: 0 !important;
  font-size: 17px !important;
  font-weight: 800 !important;
  line-height: 1 !important;
  color: #003366 !important;
}

#idcreator-container #controls #photo-add-label span,
#idcreator-container #controls #toolbar-photo label.eic-add-new-btn span {
  color: #003366 !important;
}


/* ==========================================================================
   V200: Left Slide-Over Drawer Polish for Brand Theme Studio (`drawerLeft: true`)
   Keeps the live ID card canvas unobstructed in the center while previewing
   ========================================================================== */
@media (min-width: 768px) {
  .eic-modal.eic-modal-left-drawer .modal-dialog.eic-drawer-left-dialog {
    width: 420px !important;
    max-width: 42vw !important;
  }
}
@media (max-width: 767.98px) {
  .eic-modal.eic-modal-left-drawer .modal-dialog.eic-drawer-left-dialog {
    width: 100% !important;
    max-width: 100% !important;
    top: auto !important;
    height: 78vh !important;
    min-height: 78vh !important;
  }
  .eic-modal.eic-modal-left-drawer .modal-content {
    border-radius: 18px 18px 0 0 !important;
  }
}


/* ============================================================================
   BRAND THEME STUDIO — SITE-HARMONIZED STUDIO PALETTE (#003366 NAVY + #E19C4B COPPER-GOLD)
   ============================================================================ */
.eic-bs-card {
  background: #ffffff;
  border: 1px solid #e5eaf1;
  border-radius: 12px;
  padding: 10px 11px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03);
}
.eic-bs-label {
  display: block;
  font-size: 11.5px;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 6px;
  letter-spacing: -0.01em;
}
.eic-bs-input {
  border-radius: 8px !important;
  border: 1px solid #dce3ec !important;
  background-color: #f8fafc !important;
  color: #0f172a !important;
  font-size: 11.5px !important;
  height: 30px !important;
  transition: border-color 0.16s ease, box-shadow 0.16s ease, background-color 0.16s ease;
}
.eic-bs-input:focus {
  background-color: #ffffff !important;
  border-color: #475569 !important;
  box-shadow: 0 0 0 3px rgba(71, 85, 105, 0.10) !important;
}
.eic-bs-btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 29px;
  padding: 0 10px;
  border-radius: 8px;
  border: 1px solid #dce3ec;
  background: #ffffff;
  color: #334155;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.16s ease;
}
.eic-bs-btn-outline:hover {
  background: #f8fafc;
  border-color: #94a3b8;
  color: #0f172a;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05);
}
.eic-bs-link-danger {
  background: none;
  border: none;
  padding: 0 3px;
  font-size: 12px;
  font-weight: 600;
  color: #94a3b8;
  cursor: pointer;
  transition: color 0.15s ease;
}
.eic-bs-link-danger:hover {
  color: #dc2626;
  text-decoration: none;
}
.eic-bs-shuffle-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  padding: 2.5px 10px;
  font-size: 10.5px;
  font-weight: 600;
  color: #475569;
  cursor: pointer;
  transition: all 0.16s ease;
}
.eic-bs-shuffle-btn:hover {
  background: #f1f5f9;
  border-color: #cbd5e1;
  color: #0f172a;
}
.eic-bs-seg-pill {
  padding: 5px 6px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  background: #f8fafc;
  color: #475569;
  border: 1px solid #e2e8f0;
  transition: all 0.16s ease;
}
.eic-bs-seg-pill:hover {
  background: #f1f5f9;
  border-color: #cbd5e1;
  color: #0f172a;
}
.eic-bs-seg-pill.active {
  background: #eff6ff;
  color: #1e40af;
  border-color: #93c5fd;
  font-weight: 700;
}
.eic-bs-palette-chip {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 7px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 11px;
  font-weight: 600;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  color: #334155;
  min-width: 0;
  transition: all 0.15s ease;
}
.eic-bs-palette-chip:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
  color: #0f172a;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05);
}
.eic-bs-palette-chip.is-logo {
  background: #f0fdfa;
  border-color: #99f6e4;
}
.eic-bs-palette-chip.active {
  background: #eff6ff;
  border: 1.5px solid #93c5fd;
  color: #1e3a8a;
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.10);
}
.eic-bs-palette-chip.eic-bs-swatch-only {
  padding: 4px;
  justify-content: center;
}
.eic-bs-swatch-bar {
  display: flex;
  width: 100%;
  height: 22px;
  border-radius: 5px;
  overflow: hidden;
  border: 1px solid rgba(15, 23, 42, 0.10);
}
.eic-bs-swatch-bar > i {
  flex: 1;
  display: block;
  height: 100%;
}
.eic-bs-swatch-dual {
  display: inline-flex;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  overflow: hidden;
  border: 1px solid rgba(15, 23, 42, 0.16);
  flex-shrink: 0;
}
.eic-bs-swatch-dual > i {
  flex: 1;
  display: block;
}
.eic-bs-palette-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.eic-bs-saved-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 10.5px;
  font-weight: 600;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  color: #334155;
  transition: all 0.15s ease;
}
.eic-bs-saved-pill:hover {
  border-color: #94a3b8;
  color: #0f172a;
}
.eic-bs-saved-pill.active {
  background: #eff6ff;
  border-color: #93c5fd;
  color: #1e3a8a;
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.10);
}
.eic-bs-custom-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
  margin-top: 8px;
  background: #f8fafc;
  border: 1px solid #e5eaf1;
  border-radius: 9px;
  padding: 6px 8px;
}
.eic-bs-color-well {
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 600;
  color: #475569;
  cursor: pointer;
}
.eic-bs-color-well input[type="color"] {
  width: 20px;
  height: 20px;
  border: 1px solid #cbd5e1;
  border-radius: 5px;
  padding: 0;
  cursor: pointer;
  background: transparent;
}
.eic-bs-save-btn {
  background: #ffffff;
  border: 1px solid #dce3ec;
  border-radius: 7px;
  padding: 3px 9px;
  font-size: 10.5px;
  font-weight: 600;
  color: #334155;
  cursor: pointer;
  transition: all 0.15s ease;
}
.eic-bs-save-btn:hover {
  background: #f1f5f9;
  border-color: #94a3b8;
  color: #0f172a;
}
.eic-bs-font-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 6px 9px;
  border-radius: 8px;
  cursor: pointer;
  text-align: left;
  min-width: 0;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  transition: all 0.14s ease;
}
.eic-bs-font-card:hover {
  background: #f8fafc;
  border-color: #003366;
}
.eic-bs-font-card.recommended {
  background: #fffbeb;
  border-color: #e19c4b;
}
.eic-bs-font-card.active {
  background: #f0f5fa;
  border: 1.5px solid #003366;
  box-shadow: 0 0 0 2px rgba(225, 156, 75, 0.28);
}
.eic-bs-tint-chip {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 5px 6px;
  border-radius: 7px;
  font-size: 10.5px;
  font-weight: 700;
  min-width: 0;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  color: #1e293b;
  transition: all 0.14s ease;
}
.eic-bs-tint-chip:hover:not(:disabled) {
  border-color: #003366;
  color: #003366;
}
.eic-bs-tint-chip.active {
  background: #f0f5fa;
  border: 1.5px solid #003366;
  color: #003366;
  box-shadow: 0 0 0 2px rgba(225, 156, 75, 0.25);
}
.eic-bs-status-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 7px 11px;
  margin-bottom: 10px;
}
.eic-bs-live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.16);
  flex-shrink: 0;
}
.eic-bs-compare-btn {
  padding: 3.5px 11px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  background: #ffffff;
  color: #475569;
  border: 1px solid #cbd5e1;
  transition: all 0.16s ease;
}
.eic-bs-compare-btn:hover {
  background: #f1f5f9;
  color: #0f172a;
}
.eic-bs-compare-btn.is-branded {
  background: #eff6ff;
  color: #1e40af;
  border-color: #93c5fd;
}
.eic-bs-footer {
  background: #ffffff !important;
  border-top: 1px solid #e5eaf1 !important;
  padding: 10px 14px !important;
}
.eic-bs-btn-cancel {
  min-height: 36px;
  padding: 0 15px;
  font-size: 12.5px;
  font-weight: 600;
  color: #475569;
  background: #ffffff;
  border: 1px solid #dce3ec;
  border-radius: 9px;
  cursor: pointer;
  transition: all 0.16s ease;
}
.eic-bs-btn-cancel:hover {
  background: #f8fafc;
  color: #0f172a;
  border-color: #94a3b8;
}
.eic-bs-btn-primary {
  flex: 1;
  min-height: 36px;
  padding: 0 16px;
  font-size: 12.5px;
  font-weight: 600;
  color: #1e3a8a;
  background: #eff6ff;
  border: 1px solid #93c5fd;
  border-radius: 9px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  box-shadow: 0 1px 2px rgba(30, 58, 138, 0.06);
  transition: all 0.16s ease;
}
.eic-bs-btn-primary:hover {
  background: #dbeafe;
  border-color: #60a5fa;
  color: #1e3a8a;
  box-shadow: 0 2px 6px rgba(30, 58, 138, 0.10);
}
.eic-bs-btn-primary.eic-bs-btn-apply-badge {
  background: #ffffff;
  border: 1.5px solid #c7d2fe;
  color: #1e1b4b;
  font-weight: 700;
  gap: 8px;
  box-shadow: 0 1px 3px rgba(79, 70, 229, 0.08);
}
.eic-bs-btn-primary.eic-bs-btn-apply-badge:hover {
  background: #f5f3ff;
  border-color: #818cf8;
  color: #1e1b4b;
  box-shadow: 0 3px 8px rgba(79, 70, 229, 0.14);
}
.eic-bs-apply-icon-badge {
  width: 20px;
  height: 20px;
  border-radius: 6px;
  background: linear-gradient(135deg, #4f46e5 0%, #6366f1 100%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 1px 3px rgba(79, 70, 229, 0.28);
}


/* ============================================================================
   BRAND THEME STUDIO LIVE-PREVIEW LOCK (body.eic-brand-preview-lock)
   Keeps the ID card 100% sharp in the center while softly blurring & dimming
   surrounding toolbars so users immediately see editing is paused until Apply.
   ============================================================================ */
body.eic-brand-preview-lock #canva-container,
body.eic-brand-preview-lock #controls,
body.eic-brand-preview-lock #topControlBar,
body.eic-brand-preview-lock #flip-badge-to-frontback,
body.eic-brand-preview-lock #adminPanel {
  pointer-events: none !important;
  user-select: none !important;
}
body.eic-brand-preview-lock #controls,
body.eic-brand-preview-lock #topControlBar,
body.eic-brand-preview-lock #adminPanel {
  opacity: 0.38 !important;
  filter: blur(2.5px) saturate(0.7) !important;
  -webkit-filter: blur(2.5px) saturate(0.7) !important;
  transition: opacity 0.2s ease, filter 0.2s ease !important;
}
body.eic-brand-preview-lock #flip-badge-to-frontback {
  opacity: 0.25 !important;
  filter: blur(1.5px) !important;
  -webkit-filter: blur(1.5px) !important;
}
body.eic-brand-preview-lock .eic-qe-minimized-dock,
body.eic-brand-preview-lock .eic-qe-shell,
body.eic-brand-preview-lock .eic-qe-backdrop {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  transform: translateY(16px) !important;
  transition: opacity 0.16s ease, transform 0.16s ease !important;
}
body.eic-brand-preview-lock #canva-container {
  position: relative !important;
  z-index: 15 !important;
  box-shadow: 0 0 0 2px rgba(0, 51, 102, 0.22), 0 20px 46px rgba(15, 23, 42, 0.2) !important;
  border-radius: 12px !important;
  transition: box-shadow 0.2s ease !important;
}
body.eic-brand-preview-lock #canva-container::after {
  content: "Preview Mode · Click Apply Brand Theme on the left to unlock editing";
  position: absolute;
  bottom: -36px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(15, 23, 42, 0.9);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: #f8fafc;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  padding: 5px 14px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.15px;
  white-space: nowrap;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.22);
  z-index: 25;
  pointer-events: none;
}


/* ============================================================================
   CENTERED IN-YOUR-FACE PROMPT WHEN USER CLICKS CARD DURING BRAND THEME PREVIEW
   ============================================================================ */
.eic-bs-center-prompt-backdrop {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  background: rgba(15, 23, 42, 0.36) !important;
  backdrop-filter: blur(2px) !important;
  -webkit-backdrop-filter: blur(2px) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 16px !important;
  z-index: 1090 !important;
  pointer-events: auto !important;
}
.eic-bs-center-prompt-card {
  width: 100% !important;
  max-width: 390px !important;
  background: #ffffff !important;
  border: 2px solid #e19c4b !important;
  border-radius: 16px !important;
  padding: 18px 20px !important;
  box-shadow: 0 22px 50px rgba(15, 23, 42, 0.34), 0 0 0 1px rgba(0, 51, 102, 0.12) !important;
  pointer-events: auto !important;
  animation: eicPromptPop 0.16s cubic-bezier(0.22, 1, 0.36, 1) !important;
}
@keyframes eicPromptPop {
  from { opacity: 0; transform: scale(0.94) translateY(6px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}


/* ==========================================================================
   V297: MULTI-SELECTION INSPECTOR PANEL (#toolbar-multi)
   Hides single-element controls and displays clean group align/lock/delete
   ========================================================================== */
#controls #toolbar-multi,
body:has(#adminPanel) #controls #toolbar-multi {
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
}

#controls #toolbar-multi .idcreator-container-inner,
body:has(#adminPanel) #controls #toolbar-multi .idcreator-container-inner {
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  padding: 10px 12px !important;
  box-sizing: border-box !important;
}

#controls #toolbar-multi .eic-multi-inspector-wrap {
  display: flex !important;
  flex-direction: column !important;
  gap: 9px !important;
  width: 100% !important;
}

#controls #toolbar-multi .eic-multi-summary-card,
#controls #toolbar-multi .eic-multi-card {
  background: #ffffff !important;
  border: 1px solid #d5e0ec !important;
  border-radius: 10px !important;
  padding: 9px 10px !important;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04) !important;
}

#controls #toolbar-multi .eic-multi-summary-card {
  background: #f8fafc !important;
  border-color: #cbd5e1 !important;
}

#controls #toolbar-multi .eic-multi-summary-top {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 6px !important;
  margin-bottom: 4px !important;
}

#controls #toolbar-multi .eic-multi-badge {
  display: inline-flex !important;
  align-items: center !important;
  background: #eef2ff !important;
  border: 1px solid #cbd5e1 !important;
  color: #1e293b !important;
  border-radius: 999px !important;
  padding: 2px 8px !important;
  font-size: 11px !important;
  font-weight: 700 !important;
}

#controls #toolbar-multi .eic-multi-types {
  font-size: 11px !important;
  font-weight: 600 !important;
  color: #475569 !important;
}

#controls #toolbar-multi .eic-multi-sub {
  font-size: 11px !important;
  line-height: 1.35 !important;
  color: #64748b !important;
}

#controls #toolbar-multi .eic-multi-card-lbl {
  font-size: 11px !important;
  font-weight: 700 !important;
  color: #475569 !important;
  margin-bottom: 6px !important;
}

#controls #toolbar-multi .eic-multi-btn-row {
  display: flex !important;
  align-items: center !important;
  gap: 5px !important;
  width: 100% !important;
}

#controls #toolbar-multi button.eic-multi-act-btn {
  flex: 1 1 0 !important;
  min-width: 0 !important;
  height: 28px !important;
  min-height: 28px !important;
  padding: 0 6px !important;
  margin: 0 !important;
  border: 1px solid #cbd5e1 !important;
  border-radius: 7px !important;
  background: #f8fafc !important;
  color: #334155 !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 4px !important;
  cursor: pointer !important;
  transition: all 0.14s ease !important;
}

#controls #toolbar-multi button.eic-multi-act-btn:hover {
  background: #f1f5f9 !important;
  border-color: #94a3b8 !important;
  color: #0f172a !important;
}

#controls #toolbar-multi button.eic-multi-act-btn.active {
  background: #eef2ff !important;
  border-color: #94a3b8 !important;
  color: #1e293b !important;
}

#controls #toolbar-multi button.eic-multi-act-btn.is-danger {
  color: #b91c1c !important;
  border-color: #fecaca !important;
  background: #fef2f2 !important;
}

#controls #toolbar-multi button.eic-multi-act-btn.is-danger:hover {
  background: #fee2e2 !important;
  border-color: #f87171 !important;
}

@media (max-width: 768px) {
  body.eic-sel-multi #mobileToolbar {
    display: none !important;
  }
}


/* ==========================================================================
   V304: DECORATIVE CORNER MASK STRIP & LIVE PREVIEW IN CROP MODALS
   ========================================================================== */
.eic-mask-strip {
  display: flex !important;
  align-items: center !important;
  gap: 5px !important;
  flex-wrap: wrap !important;
  padding-top: 7px !important;
  margin-top: 6px !important;
  border-top: 1px solid #e2e8f0 !important;
}

.eic-mask-strip-lbl {
  font-size: 11px !important;
  font-weight: 700 !important;
  color: #475569 !important;
  margin-right: 2px !important;
}

button.eic-mask-pill {
  height: 24px !important;
  min-height: 24px !important;
  padding: 0 9px !important;
  margin: 0 !important;
  border-radius: 999px !important;
  border: 1px solid #cbd5e1 !important;
  background: #f8fafc !important;
  color: #334155 !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  line-height: 1 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  transition: all 0.14s ease !important;
}

button.eic-mask-pill:hover {
  background: #f1f5f9 !important;
  border-color: #94a3b8 !important;
  color: #0f172a !important;
}

button.eic-mask-pill.active {
  background: #eef2ff !important;
  border-color: #6366f1 !important;
  color: #1e293b !important;
  box-shadow: 0 0 0 1px rgba(99, 102, 241, 0.2) !important;
}

.eic-modal.eic-crop-shape-rounded .cropper-view-box,
.eic-modal.eic-crop-shape-rounded .cropper-face {
  border-radius: 18% !important;
}

.eic-modal.eic-crop-shape-leaf .cropper-view-box,
.eic-modal.eic-crop-shape-leaf .cropper-face {
  border-radius: 36% 6% 36% 6% !important;
}

.eic-modal.eic-crop-shape-leaf_sharp .cropper-view-box,
.eic-modal.eic-crop-shape-leaf_sharp .cropper-face {
  border-radius: 36% 0px 36% 0px !important;
}

.eic-modal.eic-crop-shape-arch .cropper-view-box,
.eic-modal.eic-crop-shape-arch .cropper-face {
  border-radius: 50% 50% 8% 8% / 38% 38% 6% 6% !important;
}

.eic-modal.eic-crop-shape-chamfer .cropper-view-box,
.eic-modal.eic-crop-shape-chamfer .cropper-face {
  clip-path: polygon(16% 0%, 84% 0%, 100% 16%, 100% 84%, 84% 100%, 16% 100%, 0% 84%, 0% 16%) !important;
  -webkit-clip-path: polygon(16% 0%, 84% 0%, 100% 16%, 100% 84%, 84% 100%, 16% 100%, 0% 84%, 0% 16%) !important;
}


/* ==========================================================================
   V318: DESKTOP STICKY CARD CANVAS + FULL-HEIGHT / ADAPTIVE INSPECTOR (>= 769px)
   ========================================================================== */
@media (min-width: 769px) {
  /* Ancestor containers MUST have overflow: visible so CSS position: sticky works */
  body,
  #kont,
  #document-container,
  #idcreator-container {
    overflow: visible !important;
  }

  body:not(:has(#adminPanel)) #idcreator-container {
    display: flex !important;
    align-items: flex-start !important;
  }

  body:not(:has(#adminPanel)) #controls {
    position: sticky !important;
    top: 10px !important;
    align-self: flex-start !important;
    max-height: calc(100vh - 20px) !important;
    display: flex !important;
    flex-direction: column !important;
  }

  body:not(:has(#adminPanel)) #controls menu.idcreatorToolbar {
    display: flex !important;
    flex-direction: column !important;
    min-height: 0 !important;
    max-height: calc(100vh - 96px) !important;
  }

  body:not(:has(#adminPanel)) #controls menu.idcreatorToolbar[style*="display: none"],
  body:not(:has(#adminPanel)) #controls menu.idcreatorToolbar[style*="display:none"] {
    display: none !important;
  }

  body:not(:has(#adminPanel)) #controls .idcreator-container-inner {
    overflow-y: auto !important;
    overflow-x: hidden !important;
    max-height: calc(100vh - 96px) !important;
    padding-bottom: 14px !important;
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 transparent;
  }

  body:not(:has(#adminPanel)) #controls .idcreator-container-inner::-webkit-scrollbar {
    width: 5px;
  }

  body:not(:has(#adminPanel)) #controls .idcreator-container-inner::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 999px;
  }

  body:not(:has(#adminPanel)) #mainArea {
    position: sticky !important;
    top: 10px !important;
    align-self: flex-start !important;
    flex: 1 1 auto !important;
    min-width: 0 !important;
    height: auto !important;
    min-height: 0 !important;
    padding-bottom: 18px !important;
    z-index: 20 !important;
  }

  /* Admin editor: allow tall monitor inspector height + sticky canvas & top bar */
  body:has(#adminPanel) #idcreator-container {
    display: flex !important;
    align-items: flex-start !important;
  }

  body:has(#adminPanel) #controls {
    position: sticky !important;
    top: 8px !important;
    align-self: flex-start !important;
    max-height: calc(100vh - 16px) !important;
    overflow: visible !important;
  }

  body:has(#adminPanel) #controls menu.idcreatorToolbar {
    display: flex !important;
    flex-direction: column !important;
    flex: 1 1 auto !important;
    min-height: 0 !important;
    max-height: calc(100vh - 120px) !important;
  }

  body:has(#adminPanel) #controls menu.idcreatorToolbar[style*="display: none"],
  body:has(#adminPanel) #controls menu.idcreatorToolbar[style*="display:none"] {
    display: none !important;
  }

  body:has(#adminPanel) #controls menu.idcreatorToolbar .idcreator-container-inner {
    flex: 1 1 auto !important;
    min-height: 0 !important;
    height: auto !important;
    max-height: calc(100vh - 120px) !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    padding-bottom: 18px !important;
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 transparent;
  }

  body:has(#adminPanel) #controls menu.idcreatorToolbar .idcreator-container-inner::-webkit-scrollbar {
    width: 5px;
  }

  body:has(#adminPanel) #controls menu.idcreatorToolbar .idcreator-container-inner::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 999px;
  }

  body:has(#adminPanel) #mainArea {
    position: sticky !important;
    top: 8px !important;
    align-self: flex-start !important;
    flex: 1 1 auto !important;
    min-width: 0 !important;
    height: auto !important;
    min-height: 0 !important;
    padding-bottom: 18px !important;
    z-index: 20 !important;
  }
}

/* ==========================================================================
   V339: SMALLER DESKTOP VIEWPORT ANTI-JUMP RESERVED HEIGHT & LOWER CANVAS
   Prevents #topControlBar wrapping from shifting #card-container when tools appear
   ========================================================================== */
@media (min-width: 769px) and (max-width: 1240px) {
  body:not(:has(#adminPanel)) #topControlBar {
    min-height: 82px !important;
    border-radius: 20px !important;
    padding: 6px 12px !important;
    gap: 5px !important;
    align-content: center !important;
  }

  body:not(:has(#adminPanel)) #topControlBar > div:first-child {
    gap: 5px !important;
    row-gap: 5px !important;
  }

  body:not(:has(#adminPanel)) #card-container {
    margin-top: 26px !important;
  }

  body:has(#adminPanel) #topControlBar {
    min-height: 84px !important;
    padding: 6px 12px !important;
    gap: 5px !important;
    align-content: center !important;
  }

  body:has(#adminPanel) #card-container {
    margin-top: 26px !important;
  }
}

/* ==========================================================================
   V346: TITLE CASE + ICON FOR COLLAPSIBLE PANELS & SHAPES HEADER
   ========================================================================== */
#controls #toolbar-panel .eic-preset-section-hdr.eic-shapes-collapse-hdr,
#controls #toolbar-panel .eic-preset-section-hdr.eic-shapes-collapse-hdr > span {
  text-transform: none !important;
  letter-spacing: 0 !important;
  font-size: 12px !important;
  color: #1e293b !important;
}

/* ==========================================================================
   V347: SUBTLE TRANSLUCENT STUDIO CAPSULE FOR &switch=1 TEMPLATE SWITCHER
   ========================================================================== */
[class*="template-switch"],
[id*="template-switch"],
[class*="templateSwitcher"],
[id*="templateSwitcher"] {
  background: rgba(255, 255, 255, 0.56) !important;
  backdrop-filter: blur(6px) !important;
  -webkit-backdrop-filter: blur(6px) !important;
  border: 1px solid rgba(255, 255, 255, 0.72) !important;
  border-radius: 999px !important;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06) !important;
  color: #334155 !important;
  padding: 3px 10px !important;
  transition: background-color 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease !important;
}

[class*="template-switch"]:hover,
[id*="template-switch"]:hover,
[class*="templateSwitcher"]:hover,
[id*="templateSwitcher"]:hover {
  background: rgba(255, 255, 255, 0.88) !important;
  border-color: rgba(203, 213, 225, 0.95) !important;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.09) !important;
}

[class*="template-switch"] select,
[id*="template-switch"] select,
[class*="templateSwitcher"] select,
[id*="templateSwitcher"] select,
[class*="template-switch"] input,
[id*="template-switch"] input,
[class*="templateSwitcher"] input,
[id*="templateSwitcher"] input {
  background: rgba(248, 250, 252, 0.85) !important;
  border: 1px solid rgba(203, 213, 225, 0.85) !important;
  border-radius: 999px !important;
  color: #1e293b !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  height: 28px !important;
  padding: 0 10px !important;
  box-shadow: none !important;
}

[class*="template-switch"] select:focus,
[id*="template-switch"] select:focus,
[class*="templateSwitcher"] select:focus,
[id*="templateSwitcher"] select:focus,
[class*="template-switch"] input:focus,
[id*="template-switch"] input:focus,
[class*="templateSwitcher"] input:focus,
[id*="templateSwitcher"] input:focus {
  outline: none !important;
  background: #ffffff !important;
  border-color: rgba(0, 51, 102, 0.38) !important;
}

[class*="template-switch"] button,
[id*="template-switch"] button,
[class*="templateSwitcher"] button,
[id*="templateSwitcher"] button {
  background: rgba(255, 255, 255, 0.72) !important;
  border: 1px solid rgba(203, 213, 225, 0.85) !important;
  border-radius: 999px !important;
  color: #334155 !important;
  font-size: 11.5px !important;
  font-weight: 600 !important;
  height: 26px !important;
  padding: 0 10px !important;
  box-shadow: none !important;
  transition: all 0.14s ease !important;
}

[class*="template-switch"] button:hover:not(:disabled),
[id*="template-switch"] button:hover:not(:disabled),
[class*="templateSwitcher"] button:hover:not(:disabled),
[id*="templateSwitcher"] button:hover:not(:disabled) {
  background: #ffffff !important;
  border-color: rgba(0, 51, 102, 0.35) !important;
  color: #003366 !important;
}


/* Subtle Quick Fill label rename & quiet reorder grip for repeat returning customers */
.eic-qe-subtle-reorder {
  transition: opacity 0.16s ease;
}
.eic-qe-field-card:hover .eic-qe-subtle-reorder {
  opacity: 0.85 !important;
}
.eic-qe-label-subtle.is-renamable {
  cursor: text;
  border-bottom: 1px dashed transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.eic-qe-label-editable-wrap:hover .eic-qe-label-subtle.is-renamable {
  color: #0f172a;
  border-bottom-color: #cbd5e1;
}
.eic-qe-rename-subtle-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  padding: 0;
  border: none;
  background: transparent;
  color: #94a3b8;
  border-radius: 4px;
  opacity: 0;
  cursor: pointer;
  transition: opacity 0.15s ease, color 0.15s ease, background-color 0.15s ease;
}
.eic-qe-field-card:hover .eic-qe-rename-subtle-btn,
.eic-qe-label-editable-wrap:hover .eic-qe-rename-subtle-btn,
.eic-qe-rename-subtle-btn:focus-visible {
  opacity: 0.65;
}
.eic-qe-rename-subtle-btn:hover {
  opacity: 1 !important;
  color: #475569;
  background: #f1f5f9;
}
@media (hover: none) {
  .eic-qe-rename-subtle-btn {
    opacity: 0.35;
  }
}
.eic-qe-inline-rename .eic-qe-rename-input {
  height: 24px;
  font-size: 12px;
  font-weight: 600;
  color: #1e293b;
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  padding: 0 7px;
  box-shadow: none;
}
.eic-qe-inline-rename .eic-qe-rename-input:focus {
  background: #ffffff;
  border-color: #94a3b8;
  outline: none;
}


/* Ultra-subtle Quick Fill field labels & whisper-quiet edit icon */
.eic-qe-label.eic-qe-label-quiet {
  font-size: 12px !important;
  font-weight: 600 !important;
  color: #475569 !important;
  letter-spacing: 0 !important;
  border-bottom: none !important;
  transition: color 0.15s ease !important;
}
.eic-qe-label-editable-wrap:hover .eic-qe-label.eic-qe-label-quiet.is-renamable {
  color: #1e293b !important;
  border-bottom: none !important;
}
.eic-qe-field-card:hover .eic-qe-rename-subtle-btn {
  opacity: 0 !important;
}
.eic-qe-label-editable-wrap:hover .eic-qe-rename-subtle-btn,
.eic-qe-rename-subtle-btn:focus-visible {
  opacity: 0.45 !important;
}
.eic-qe-rename-subtle-btn:hover {
  opacity: 0.85 !important;
  color: #334155 !important;
  background: rgba(148, 163, 184, 0.14) !important;
}
@media (hover: none) {
  .eic-qe-rename-subtle-btn {
    opacity: 0.25 !important;
  }
}
.eic-qe-inline-rename .eic-qe-rename-input {
  height: 23px !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  color: #334155 !important;
  background: #f8fafc !important;
  border: 1px solid #cbd5e1 !important;
  border-radius: 5px !important;
  padding: 0 6px !important;
  box-shadow: none !important;
}
.eic-qe-inline-rename .eic-qe-rename-save,
.eic-qe-inline-rename .eic-qe-rename-cancel {
  width: 21px !important;
  height: 23px !important;
  font-size: 11px !important;
  border-radius: 5px !important;
  background: #f1f5f9 !important;
  border: 1px solid #cbd5e1 !important;
  color: #475569 !important;
}
.eic-qe-inline-rename .eic-qe-rename-save:hover {
  background: #e2e8f0 !important;
  color: #0f172a !important;
}

/* Refined Subtle-Yet-Clear CTA Style for Apply Crop Button in Photo & Quick Fill Crop Modals */
#cropModal .eic-btn-apply,
#cropModalQE .eic-btn-apply {
  min-height: 36px !important;
  height: 36px !important;
  padding: 0 16px !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  letter-spacing: 0.01em !important;
  color: #ffffff !important;
  background: linear-gradient(180deg, #1e3a5f 0%, #152c4a 100%) !important;
  border: 1px solid #10233c !important;
  border-radius: 9px !important;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.14) !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  transition: background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease, transform 0.12s ease !important;
}
#cropModal .eic-btn-apply:hover:not(:disabled),
#cropModalQE .eic-btn-apply:hover:not(:disabled) {
  background: linear-gradient(180deg, #254875 0%, #1a365b 100%) !important;
  border-color: #152c4a !important;
  color: #ffffff !important;
  box-shadow: 0 3px 8px rgba(15, 23, 42, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.18) !important;
}
#cropModal .eic-btn-apply:active:not(:disabled),
#cropModalQE .eic-btn-apply:active:not(:disabled) {
  transform: translateY(0.5px) !important;
}
#cropModal .eic-btn-apply svg,
#cropModalQE .eic-btn-apply svg {
  color: #fbbf24 !important;
  flex-shrink: 0;
}
#cropModal .eic-btn-cancel,
#cropModalQE .eic-btn-cancel {
  min-height: 36px !important;
  height: 36px !important;
  padding: 0 14px !important;
  font-size: 13px !important;
  border-radius: 9px !important;
}
