.hidden { display: none !important; }

/* ── Print ────────────────────────────────────────────────── */
#print-container { display: none; }

@media print {
  body > * { display: none !important; }
  #print-container {
    display: block !important;
    width: 100%;
  }
  #print-container img {
    width: 100%;
    height: auto;
  }
}

/* ── Editor view layout ───────────────────────────────────── */
#editor-view {
  flex-direction: column;
  overflow: hidden;
  position: relative; /* anchor for absolute header */
  background: #ffffff;
}

/* White background on editor header, flush to top of screen */
#editor-view .gallery-header {
  top: 0;
  left: 0;
  right: 0;
  padding: 16px 16px 8px;
  background: #ffffff;
}

/* Mobile header — hidden on desktop */
.editor-mobile-header {
  display: none;
}

/* View all button — hidden on desktop */
.editor-view-all-btn {
  display: none;
}

/* Canvas overlay controls — hidden on desktop, shown as dark circles on mobile */
.canvas-overlay-controls,
.canvas-overlay-controls-left {
  display: none;
}

.canvas-overlay-controls.toolbar-out {
  opacity: 0;
  pointer-events: none;
}

@media (max-width: 767px) {
  #editor-view {
    background: transparent;
  }

  #editor-view .gallery-header {
    display: none;
  }

  .editor-mobile-logo {
    height: 22px;
    width:  auto;
    display: block;
  }

  /* Hide scroll controls */
  #editor-view .scroll-controls {
    display: none;
  }

  #editor-view .gallery-cards-box {
    padding-bottom: 8px;
  }

  /* Show only first 6 drawings */
  #editor-scroll .img-card:nth-child(n+7) {
    display: none;
  }

  /* When show-all is active, reveal all and hide the button */
  #editor-scroll.show-all .img-card {
    display: block;
  }

  #editor-scroll.show-all ~ .editor-view-all-btn {
    display: none;
  }

  .editor-view-all-btn {
    display: block;
    margin: 8px auto 16px;
    padding: 13px 60px;
    width: fit-content;
    min-width: 240px;
    background: #58C1B9;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    border: none;
    border-radius: 14px;
    cursor: pointer;
    text-align: center;
  }
}

.editor-content {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 70px 24px 60px; /* top accounts for absolute header height */
  gap: 24px;
}

/* ── Mobile: editor-content + header — placed AFTER desktop rule to win cascade ── */
@media (max-width: 767px) {
  /* Mirror home-scroll / gallery structure: cover full viewport, scroll internally */
  .editor-content {
    position:   absolute;
    inset:      0;
    overflow-y: auto;
    padding:    24px 0 0;   /* 24px top matches home-scroll padding-top on mobile */
    align-items: stretch;
    flex:       none;       /* override flex:1 — size is now driven by inset:0 */
    gap:        0;          /* remove desktop 24px gap so footer spacing matches home/gallery */
  }

  /* Header row: same padding as .gallery-mobile-header (0 top, 12px sides) */
  .editor-mobile-header {
    display:         flex;
    align-items:     center;
    justify-content: space-between;
    padding:         0 12px;
    width:           100%;
    box-sizing:      border-box;
  }

  /* Hide eye/zoom/undo/redo buttons from toolbar — they move to canvas overlay */
  #tool-hide,
  #tool-zoom-in,
  #tool-zoom-out,
  #tool-undo,
  #tool-redo {
    display: none;
  }

  /* Hide left-actions and its divider since they're empty on mobile */
  .toolbar-left-actions,
  .editor-toolbar > .editor-toolbar-divider {
    display: none;
  }

  /* Canvas overlay: undo + redo (top-left corner of canvas) */
  .canvas-overlay-controls-left {
    position:       absolute;
    top:            12px;
    left:           12px;
    z-index:        5;
    display:        flex;
    flex-direction: row;
    gap:            8px;
    transition:     opacity 0.3s ease;
  }

  .canvas-overlay-controls-left.toolbar-out {
    opacity:        0;
    pointer-events: none;
  }

  /* Canvas overlay: dark circular buttons, top-right corner of canvas */
  .canvas-overlay-controls {
    position:   absolute;
    top:        12px;
    right:      12px;
    z-index:    5;
    display:    flex;
    flex-direction: row;
    gap:        8px;
    transition: opacity 0.3s ease;
  }

  .canvas-overlay-btn {
    width:           44px;
    height:          44px;
    border-radius:   50%;
    background:      #111;
    border:          none;
    cursor:          pointer;
    display:         flex;
    align-items:     center;
    justify-content: center;
    padding:         0;
    transition:      opacity 0.15s;
  }

  .canvas-overlay-btn:disabled {
    opacity: 0.3;
    cursor:  default;
  }

  .canvas-overlay-btn .tool-icon {
    width:      20px;
    height:     20px;
    filter:     invert(1);
    object-fit: contain;
  }
}

/* ── Image title row ─────────────────────────────────────── */
.editor-title-row {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
  height: 44px;
}

.editor-image-title {
  color: #ff9700;
  font-size: 1.875rem;
  font-weight: 600;
  font-family: Manrope, sans-serif;
  margin: 0;
}

/* ── Canvas section ──────────────────────────────────────── */
.editor-canvas-section {
  position: relative;
  width: 100%;
  display: flex;
  justify-content: center;
  padding-bottom: 0;
}

#editor-canvas-wrapper {
  position: relative;
  border: 3.5px solid #111;
  border-radius: 21px;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2);
  background: #fff;
  /* width/height set by JS */
  flex-shrink: 0;
}

#fill-canvas,
#stroke-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: block;
}

/* multiply: white → transparent, black stays black */
#stroke-canvas {
  mix-blend-mode: multiply;
  pointer-events: none;
}

#fill-canvas {
  cursor: crosshair;
}

/* ── Loading overlay ─────────────────────────────────────── */
#editor-loading {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.75);
  font-size: 0.9rem;
  color: #666;
  z-index: 10;
  pointer-events: none;
  font-family: Manrope, sans-serif;
}

#editor-loading.hidden {
  display: none;
}

/* ── Canvas zoom layer ───────────────────────────────────── */
#canvas-zoom-layer {
  position: absolute;
  inset: 0;
  transform-origin: 0 0;
  transition: transform 0.15s ease;
}

/* ── Collapsed toolbar tab ───────────────────────────────── */
.toolbar-collapsed-tab {
  position: absolute;
  /* top, left, height are set dynamically by _fitWrapper() */
  width: 70px;
  padding-left: 4px; /* nudge icon toward visual center (no left border) */
  background: #ffffff;
  border-radius: 0 999px 999px 0;
  border: 2px solid #111;
  border-left: none;
  box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 20;
  touch-action: none;
  user-select: none;
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
}

.toolbar-collapsed-tab.pill-out {
  transform: translateX(-110%);
  opacity: 0;
  pointer-events: none;
}

/* ── Bottom toolbar ─────────────────────────────────────── */
.editor-toolbar {
  position: absolute;
  bottom: 24px;
  left: 0;
  right: 0;
  height: 56px;
  background: #ffffff;
  display: flex;
  align-items: center;
  padding: 0 140px 0 8px;
  gap: 8px;
  z-index: 5;
  overflow: hidden;
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
}

.editor-toolbar.toolbar-out {
  transform: translateY(90px);
  opacity: 0;
  pointer-events: none;
}

.toolbar-left-actions {
  display: flex;
  align-items: center;
  gap: 0;
  flex-shrink: 0;
}

.toolbar-left-spacer {
  width: 6px;
}

.toolbar-swatches-fade {
  flex: 1;
  min-width: 0;
  position: relative;
}

.toolbar-swatches-fade::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 16px;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(to right, #ffffff, transparent);
}

.toolbar-swatches-wrap {
  position: relative;
  z-index: 1;
  overflow-x: auto;
  display: flex;
  align-items: center;
  width: 100%;
}

.toolbar-swatches-wrap::-webkit-scrollbar { display: none; }

.toolbar-swatches {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 32px 4px 16px;
  flex-shrink: 0;
}

.toolbar-swatches.hidden { display: none; }

.editor-toolbar-divider {
  width: 1px;
  height: 32px;
  background: #e0e0e0;
  flex-shrink: 0;
}

/* Divider inside the float aligns to center, not bottom */
.editor-toolbar-tools-float .editor-toolbar-divider {
  align-self: center;
}

/* Floating tool picker — positioned as sibling of toolbar inside canvas wrapper */
.editor-toolbar-tools-float {
  position: absolute;
  bottom: 24px;
  right: 0;
  height: 56px;
  display: flex;
  align-items: flex-end;
  padding: 0 12px 0 8px;
  background: #ffffff;
  z-index: 6;
  clip-path: inset(-9999px 0 0 -24px); /* allow overflow above + 24px to the left for fade */
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
}

.editor-toolbar-tools-float.toolbar-out {
  transform: translateY(90px);
  opacity: 0;
  pointer-events: none;
}

/* Right swatches fade — lives on the float so it paints above the toolbar */
.editor-toolbar-tools-float::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  right: 100%;
  width: 16px;
  background: linear-gradient(to left, #ffffff, transparent);
  pointer-events: none;
}

.editor-toolbar-tools {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  flex-shrink: 0;
}

/* Tool picker buttons — tall, slide up/down */
.editor-toolbar-tools .toolbar-tool-btn {
  width: 40px;
  height: 120px;
  border-radius: 12px 12px 0 0;
  background: transparent;
  border: none;
  padding: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  cursor: pointer;
  transform: translateY(24px);
  transition: transform 0.25s ease-out;
}

.editor-toolbar-tools .toolbar-tool-btn.active {
  transform: translateY(0);
  background: transparent;
}

.editor-toolbar-tools .toolbar-tool-btn:hover:not(:disabled) {
  background: transparent;
}

.editor-toolbar-tools .toolbar-tool-btn .tool-icon {
  width: auto;
  height: 100px;
  object-fit: contain;
  object-position: bottom center;
}

#tool-eraser {
  width: 62px;
}

.toolbar-tool-btn {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  border: none;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #111;
  transition: background 0.15s;
}

.toolbar-tool-btn:hover:not(:disabled) { background: #f0f0f0; }
.toolbar-tool-btn.active { background: #f0f0f0; }
.toolbar-tool-btn:disabled { color: #ccc; cursor: default; opacity: 0.3; }

.tool-icon { width: 20px; height: 20px; object-fit: contain; display: block; }

.toolbar-collapsed-tab .tool-icon {
  width: 24px;
  height: 24px;
  pointer-events: none;
  -webkit-user-drag: none;
  user-select: none;
}
.toolbar-tool-btn .tool-icon-selected   { display: none; }
.toolbar-tool-btn .tool-icon-unselected { display: block; }
.toolbar-tool-btn.active .tool-icon-selected   { display: block; }
.toolbar-tool-btn.active .tool-icon-unselected { display: none; }

.toolbar-texture-btn {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: none;
  overflow: visible;
  cursor: pointer;
  padding: 0;
  background: none;
  position: relative;
  transition: transform 0.15s;
}

.toolbar-texture-btn:hover {
  transform: scale(1.1);
}

.toolbar-texture-btn img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 50%;
  overflow: hidden;
}

.toolbar-texture-btn.active::after {
  content: '✓';
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  line-height: 1;
}

/* ── Canvas action buttons (Download / Print) ────────────── */
.canvas-actions {
  display: flex;
  gap: 4px;
}

.canvas-action-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  padding: 6px 8px;
  font-size: 0.75rem;
  font-weight: 600;
  font-family: Manrope, sans-serif;
  cursor: pointer;
  color: #111;
  opacity: 0.6;
  transition: opacity 0.15s;
}

.canvas-action-btn:hover {
  opacity: 1;
}

/* ── Color palette pill ──────────────────────────────────── */
.color-palette-pill {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 6px;
  background: #fff;
  border: 1px solid #111;
  border-radius: 999px;
  padding: 8px 14px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
  white-space: nowrap;
  z-index: 5;
}

.palette-arrow {
  background: none;
  border: none;
  cursor: pointer;
  color: #888;
  padding: 0 2px;
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.palette-arrow:hover {
  color: #111;
}

.palette-colors-scroll {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
  max-width: 55vw;
}

.palette-colors-scroll::-webkit-scrollbar {
  display: none;
}

.palette-color-btn {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  transition: transform 0.15s;
  padding: 0;
  position: relative;
}

.palette-color-btn:hover {
  transform: scale(1.1);
}

.palette-color-btn.active::after {
  content: '✓';
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  line-height: 1;
}

.palette-color-btn.swatch-white {
  border: 1.5px solid #111;
}

.palette-color-btn.active.swatch-white::after {
  color: #111;
}

.palette-divider {
  width: 1px;
  height: 24px;
  background: #ccc;
  margin: 0 2px;
  flex-shrink: 0;
}

/* Custom color picker button (conic-gradient rainbow) */
.palette-custom-wrap {
  position: relative;
  flex-shrink: 0;
  margin-right: 16px;
}

.palette-custom-btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1.5px solid #111;
  background: #fff;
  cursor: pointer;
  overflow: hidden;
  position: relative;
  padding: 0;
  transition: transform 0.15s;
}

.palette-custom-btn:hover {
  transform: scale(1.1);
}

.palette-custom-btn::before {
  content: '+';
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 300;
  color: #111;
  line-height: 1;
  pointer-events: none;
}

.palette-custom-btn.active::before {
  display: none;
}

.palette-custom-btn.active::after {
  content: '✓';
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  line-height: 1;
  pointer-events: none;
}

.palette-custom-btn.active.swatch-white::after {
  color: #111;
}

.palette-custom-btn.swatch-white {
  border: 1.5px solid #111;
}

.palette-custom-btn input[type="color"] {
  position: absolute;
  inset: -4px;
  width: calc(100% + 8px);
  height: calc(100% + 8px);
  border: none;
  padding: 0;
  opacity: 0;
  cursor: pointer;
}

/* ── Other coloring pages section ────────────────────────── */
.other-pages-section {
  width: 100%;
  max-width: 960px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.other-pages-heading {
  font-size: 1.5rem;
  font-weight: 500;
  font-family: Manrope, sans-serif;
  margin: 0 0 16px 0;
}


/* Single-row scroll for editor (overrides gallery's column+two-row layout) */
.editor-cards-box .cards-scroll {
  display: flex;
  flex-direction: row;
  gap: 28px;
  padding: 24px 36px;
  overflow-x: auto;
  scrollbar-width: none;
  min-height: unset;
}

.editor-cards-box .cards-scroll::-webkit-scrollbar {
  display: none;
}

/* ── Custom color picker modal ───────────────────────────── */
.cp-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.45);
}

.cp-overlay.hidden { display: none; }

.cp-modal {
  width: 300px;
  border-radius: 20px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.35);
  display: flex;
  flex-direction: column;
}

.cp-preview {
  height: 56px;
  width: 100%;
  flex-shrink: 0;
}

.cp-gradient {
  position: relative;
  width: 100%;
  height: 260px;
  cursor: crosshair;
  user-select: none;
  flex-shrink: 0;
  /* base hue color + white→transparent + black→transparent overlays */
  background-image:
    linear-gradient(to top, rgba(0,0,0,1), rgba(0,0,0,0)),
    linear-gradient(to right, rgba(255,255,255,1), rgba(255,255,255,0));
}

.cp-cursor {
  position: absolute;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2.5px solid #fff;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.4);
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.cp-hue {
  position: relative;
  height: 28px;
  margin: 14px 16px 0;
  border-radius: 14px;
  background: linear-gradient(to right,
    hsl(0,100%,50%), hsl(60,100%,50%), hsl(120,100%,50%),
    hsl(180,100%,50%), hsl(240,100%,50%), hsl(300,100%,50%), hsl(360,100%,50%));
  cursor: pointer;
  user-select: none;
}

.cp-hue-thumb {
  position: absolute;
  top: 50%;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2.5px solid #fff;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.4);
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.cp-buttons {
  display: flex;
  padding: 16px;
  gap: 12px;
}

/* ── Download modal ───────────────────────────────────────── */
.download-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
}

.download-modal-overlay.hidden {
  display: none;
}

/* Blurred canvas backdrop — applied to the canvas wrapper */
#editor-canvas-wrapper.blurred {
  filter: blur(6px);
}

.download-modal {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 340px;
  /* Lift the whole modal above the blurred canvas */
  filter: drop-shadow(0 8px 32px rgba(0, 0, 0, 0.28));
}

/* ── Title tab (the small bubble on top-left) ── */
.download-modal-tab {
  background: #fff;
  border: 1.5px solid #111;
  border-bottom: none;
  border-radius: 16px 16px 0 0;
  padding: 10px 28px;
  font-family: 'Baloo Thambi 2', system-ui, sans-serif;
  font-size: 22px;
  font-weight: 500;
  color: #111;
  line-height: 1;
  position: relative;
  z-index: 1;
  margin-bottom: -1.5px; /* overlap the card's top border to hide it under the tab */
}

/* ── Card body — square top-left where tab connects ── */
.download-modal-card {
  width: 100%;
  box-sizing: border-box;
  background: #fff;
  border: 1.5px solid #111;
  border-radius: 0 20px 20px 20px;
  padding: 24px 24px 20px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.download-modal-body {
  font-family: 'Baloo Thambi 2', system-ui, sans-serif;
  font-size: 18px;
  font-weight: 500;
  color: #5A5A5A;
  margin: 0;
  line-height: 1.5;
}

.download-modal-actions {
  display: flex;
  gap: 12px;
}

.download-modal-btn {
  flex: 1;
  padding: 13px 0;
  border-radius: 12px;
  font-family: 'Baloo', system-ui, sans-serif;
  font-size: 17px;
  font-weight: 400;
  cursor: pointer;
  transition: opacity 0.15s;
}

.download-modal-btn:hover {
  opacity: 0.85;
}

.download-modal-btn--cancel {
  background: #fff;
  border: 2px solid #58C1B9;
  color: #111;
}

.download-modal-btn--confirm {
  background: #58C1B9;
  border: 2px solid #58C1B9;
  color: #fff;
}

/* ── Editor mobile: 12px horizontal inset for all content ────
   Must live AFTER desktop rules to win the cascade.          */
@media (max-width: 767px) {
  .editor-title-row {
    padding: 0 12px;
  }

  .editor-image-title {
    flex:        1;
    min-width:   0;
    white-space: nowrap;
    overflow:    hidden;
  }

  .editor-canvas-section {
    padding: 0 12px;
  }

  .other-pages-section {
    padding: 0 12px;
    margin-top: 24px;
  }

  /* 2-column grid — must stay after .editor-cards-box .cards-scroll desktop rule */
  .editor-cards-box .cards-scroll {
    display: grid;
    grid-template-columns: repeat(2, 135px);
    justify-content: center;
    gap: 16px;
    overflow-x: hidden;
    padding: 20px 0;
    min-height: unset;
  }

  /* Tool buttons: animate width + opacity on expand/collapse */
  .editor-toolbar-tools .toolbar-tool-btn:not(.active) {
    max-width:  44px;
    opacity:    1;
    overflow:   hidden;
    transition: max-width 0.22s cubic-bezier(0.4, 0, 0.2, 1),
                opacity   0.18s ease;
  }

  /* Collapsed: shrink to 0 and fade out */
  .editor-toolbar-tools.tools-collapsed .toolbar-tool-btn:not(.active) {
    max-width:      0;
    opacity:        0;
    pointer-events: none;
  }

  /* Default visible state — define transitions so both directions animate */
  .editor-toolbar .toolbar-swatches-fade {
    max-width:  400px; /* never the actual constraint, just an animatable ceiling */
    overflow:   hidden;
    transition: max-width 0.22s cubic-bezier(0.4, 0, 0.2, 1),
                opacity   0.18s ease;
  }

  .editor-toolbar .editor-toolbar-divider {
    transition: opacity 0.18s ease;
  }

  .editor-toolbar #tool-undo,
  .editor-toolbar #tool-redo {
    max-width:  40px;
    overflow:   hidden;
    transition: max-width 0.22s cubic-bezier(0.4, 0, 0.2, 1),
                opacity   0.18s ease;
  }

  /* Expanded tools: fade + collapse swatches, divider and undo/redo */
  .editor-toolbar.toolbar-tools-open .toolbar-swatches-fade,
  .editor-toolbar.toolbar-tools-open #tool-undo,
  .editor-toolbar.toolbar-tools-open #tool-redo {
    max-width:      0;
    opacity:        0;
    pointer-events: none;
  }

  .editor-toolbar.toolbar-tools-open .editor-toolbar-divider {
    opacity:        0;
    pointer-events: none;
  }

  /* Collapsed (default): shrink right padding to match single tool width */
  .editor-toolbar {
    padding-right: 68px;
  }

  /* Expanded: restore full right padding for 3 tools */
  .editor-toolbar.toolbar-tools-open {
    padding-right: 148px;
  }
}

@media (max-width: 767px) and (orientation: landscape) {
  .editor-toolbar .toolbar-swatches-fade {
    max-width: none;
  }
}
