/* Small additions on top of Tailwind (CDN build cannot @apply from external CSS). */
html { scroll-behavior: smooth; }

/* Gallery filter chips */
.gallery-chip { border-color: #cbd5e1; color: #475569; background: #fff; transition: all .15s; }
.gallery-chip:hover { background: #f1f5f9; }
.gallery-chip[aria-pressed="true"] { background: #4f46e5; border-color: #4f46e5; color: #fff; }
.dark .gallery-chip { background: #1e293b; border-color: #475569; color: #cbd5e1; }
.dark .gallery-chip:hover { background: #334155; }
.dark .gallery-chip[aria-pressed="true"] { background: #6366f1; border-color: #6366f1; color: #fff; }

/* Viewport / device toggles + editor tabs */
.viewport-btn, .device-btn { color: #475569; background: transparent; }
.viewport-btn:hover, .device-btn:hover { background: #f1f5f9; }
.viewport-btn[aria-pressed="true"], .device-btn[aria-pressed="true"] { background: #4f46e5; color: #fff; }
.dark .viewport-btn, .dark .device-btn { color: #cbd5e1; }
.dark .viewport-btn:hover, .dark .device-btn:hover { background: #334155; }
.dark .viewport-btn[aria-pressed="true"], .dark .device-btn[aria-pressed="true"] { background: #6366f1; color: #fff; }

.tab-btn { color: #64748b; border-bottom: 2px solid transparent; }
.tab-btn:hover { color: #0f172a; }
.tab-btn[aria-selected="true"] { color: #4f46e5; border-bottom-color: #4f46e5; }
.dark .tab-btn { color: #94a3b8; }
.dark .tab-btn:hover { color: #fff; }
.dark .tab-btn[aria-selected="true"] { color: #a5b4fc; border-bottom-color: #a5b4fc; }

/* Editor side-panel helpers */
.eb-lib-item { cursor: grab; }
.eb-lib-item:active { cursor: grabbing; }
.eb-layer.drag-over { box-shadow: 0 -2px 0 0 #4f46e5; }
details.eb-sec > summary { cursor: pointer; list-style: none; }
details.eb-sec > summary::-webkit-details-marker { display: none; }
details.eb-sec[open] > summary .chev { transform: rotate(90deg); }
input[type="color"].eb-color { padding: 0; width: 2.25rem; height: 2.25rem; border: 1px solid #cbd5e1; border-radius: .5rem; background: none; cursor: pointer; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition-duration: .01ms !important; }
}
