/* ==========================================================================
   CREOSLAB UNIFIED CANVAS STUDIO (CAROUSEL & PRICELIST FREE EDITOR)
   - Mojo + Canva inspired interaction model with CreosLab dark-gold aesthetic
   - Responsive: Sticky sidebar on Desktop (>=960px), collapsible Bottom Sheet on Mobile
   ========================================================================== */

#toolDesignView,
#toolQuoteView {
  max-width: 1520px;
}

.creos-studio-shell {
  display: flex;
  flex-direction: column;
  gap: 12px;
  color: #f4f4f5;
  user-select: none;
  -webkit-user-select: none;
}

/* Top Studio Toolbar */
.creos-topbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 14px;
  padding: 10px 14px;
  border-radius: 16px;
  background: rgba(15, 18, 26, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.09);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.38);
}

.creos-topbar-group {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.creos-mode-pills {
  display: inline-flex;
  padding: 3px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.creos-mode-pill {
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 700;
  color: #a1a5b0;
  transition: background 0.2s ease, color 0.2s ease, transform 0.16s ease;
}

.creos-mode-pill.is-active {
  background: #fbbf24;
  color: #08090b;
}

.creos-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 36px;
  padding: 7px 13px;
  border-radius: 10px;
  font-size: 12.5px;
  font-weight: 700;
  color: #e4e4e7;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: background 0.18s ease, border-color 0.18s ease, transform 0.14s ease, color 0.18s ease;
  cursor: pointer;
}

.creos-btn:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.11);
  border-color: rgba(255, 255, 255, 0.22);
}

.creos-btn:disabled {
  opacity: 0.36;
  cursor: not-allowed;
}

.creos-btn--gold {
  background: #fbbf24;
  color: #08090b;
  border-color: #fbbf24;
}

.creos-btn--gold:hover:not(:disabled) {
  background: #fcd34d;
  border-color: #fcd34d;
}

.creos-btn--primary {
  background: #ffffff;
  color: #08090b;
  border-color: #ffffff;
}

.creos-btn--primary:hover:not(:disabled) {
  background: #f4f4f5;
}

.creos-btn.is-active {
  background: rgba(251, 191, 36, 0.18);
  border-color: #fbbf24;
  color: #fde68a;
}

.creos-icon-btn {
  width: 36px;
  padding: 0;
}

.creos-select-pill {
  min-height: 36px;
  padding: 6px 11px;
  border-radius: 10px;
  background: #141824;
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #f4f4f5;
  font-size: 12.5px;
  font-weight: 600;
}

/* Main Split Grid (Stage Left + Inspector Right) */
.creos-workspace-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 375px;
  gap: 14px;
  align-items: start;
}

.creos-canvas-column {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}

/* Canvas Viewport Stage with Pan + Zoom + Bleed + Guides */
.creos-stage-viewport {
  position: relative;
  height: clamp(440px, 65vh, 720px);
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background-color: #0b0d12;
  background-image: radial-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 22px 22px;
  overflow: hidden;
  touch-action: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

.creos-stage-viewport.is-panning-tool {
  cursor: grab;
}

.creos-stage-viewport.is-panning-active {
  cursor: grabbing;
}

.creos-stage-transform {
  position: relative;
  transform-origin: center center;
  will-change: transform;
}

.creos-artboard-wrap {
  position: relative;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.85), 0 0 0 1px rgba(255, 255, 255, 0.12);
  border-radius: 4px;
  background: #0e1015;
  transition: opacity 0.18s ease, transform 0.2s cubic-bezier(0.22, 1, 0.36, 1);
}

.creos-artboard-wrap.is-switching {
  opacity: 0.45;
  transform: scale(0.985);
}

#creosBleedCanvas {
  position: absolute;
  pointer-events: none;
  z-index: 1;
}

#creosMainCanvas {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  z-index: 2;
  border-radius: 4px;
}

.creos-guides-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 4;
}

.creos-guide-line {
  position: absolute;
  background: #fbbf24;
  box-shadow: 0 0 8px rgba(251, 191, 36, 0.85);
}

.creos-guide-line.is-x {
  top: -120px;
  bottom: -120px;
  width: 1.5px;
}

.creos-guide-line.is-y {
  left: -120px;
  right: -120px;
  height: 1.5px;
}

.creos-bleed-frame {
  position: absolute;
  inset: 0;
  pointer-events: none;
  border: 1px dashed rgba(251, 191, 36, 0.16);
  z-index: 3;
}

/* Selection & Transform Gizmo Overlay */
.creos-overlay-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 5;
}

.creos-sel-box {
  position: absolute;
  border: 2px solid #fbbf24;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.65);
  pointer-events: none;
  transform-origin: center center;
}

.creos-sel-box.is-locked {
  border-style: dashed;
  border-color: #94a3b8;
}

.creos-handle {
  position: absolute;
  pointer-events: auto;
  width: 28px;
  height: 28px;
  transform: translate(-50%, -50%);
  display: grid;
  place-items: center;
  touch-action: none;
}

.creos-handle::after {
  content: "";
  width: 12px;
  height: 12px;
  border-radius: 3px;
  background: #ffffff;
  border: 2px solid #fbbf24;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.65);
}

.creos-handle[data-handle="n"],
.creos-handle[data-handle="s"] { cursor: ns-resize; }
.creos-handle[data-handle="e"],
.creos-handle[data-handle="w"] { cursor: ew-resize; }
.creos-handle[data-handle="nw"],
.creos-handle[data-handle="se"] { cursor: nwse-resize; }
.creos-handle[data-handle="ne"],
.creos-handle[data-handle="sw"] { cursor: nesw-resize; }

.creos-handle[data-handle="n"]::after,
.creos-handle[data-handle="s"]::after { width: 18px; height: 8px; border-radius: 99px; }
.creos-handle[data-handle="e"]::after,
.creos-handle[data-handle="w"]::after { width: 8px; height: 18px; border-radius: 99px; }

.creos-rotate-handle {
  position: absolute;
  left: 50%;
  top: -34px;
  width: 34px;
  height: 34px;
  transform: translate(-50%, -50%);
  pointer-events: auto;
  display: grid;
  place-items: center;
  cursor: grab;
  touch-action: none;
}

.creos-rotate-handle::before {
  content: "";
  position: absolute;
  bottom: -6px;
  left: 50%;
  width: 2px;
  height: 14px;
  background: #fbbf24;
  transform: translateX(-50%);
}

.creos-rotate-handle::after {
  content: "";
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: #11141c;
  border: 2px solid #fbbf24;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.65);
}

.creos-quick-pill-bar {
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 8;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 8px;
  border-radius: 999px;
  background: rgba(12, 14, 20, 0.92);
  border: 1px solid rgba(251, 191, 36, 0.35);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(8px);
}

.creos-quick-pill-bar button {
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 700;
  color: #f4f4f5;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.creos-quick-pill-bar button:hover {
  background: rgba(251, 191, 36, 0.2);
  color: #fbbf24;
}

.creos-zoom-hud {
  position: absolute;
  bottom: 12px;
  right: 12px;
  z-index: 8;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px 6px;
  border-radius: 12px;
  background: rgba(12, 14, 20, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.creos-zoom-hud button {
  min-width: 30px;
  height: 28px;
  padding: 0 7px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  color: #e4e4e7;
}

.creos-zoom-hud button.is-active,
.creos-zoom-hud button:hover {
  background: rgba(251, 191, 36, 0.2);
  color: #fbbf24;
}

/* Inline Canvas Textarea Overlay */
.creos-inline-editor {
  position: absolute;
  z-index: 9;
  padding: 4px 6px;
  border-radius: 6px;
  background: rgba(9, 11, 16, 0.92);
  border: 2px solid #fbbf24;
  color: #ffffff;
  resize: none;
  outline: none;
  overflow: auto;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.75);
}

/* Slide Strip */
.creos-slides-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(15, 18, 26, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.creos-slides-list {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  overflow-x: auto;
  padding: 2px;
  scrollbar-width: thin;
}

.creos-slide-thumb {
  position: relative;
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border-radius: 10px;
  border: 2px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.02);
  transition: border-color 0.18s ease, transform 0.16s ease, background 0.18s ease;
  cursor: pointer;
}

.creos-slide-thumb:hover {
  border-color: rgba(255, 255, 255, 0.35);
}

.creos-slide-thumb.is-active {
  border-color: #fbbf24;
  background: rgba(251, 191, 36, 0.12);
  transform: translateY(-2px);
}

.creos-slide-thumb canvas {
  display: block;
  height: 74px;
  width: auto;
  border-radius: 6px;
}

.creos-slide-thumb span {
  font-size: 10.5px;
  font-weight: 700;
  color: #cbd5e1;
  max-width: 78px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.creos-slide-actions {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.creos-slide-actions-row {
  display: flex;
  gap: 5px;
}

/* Contextual Right Inspector Panel (Desktop) / Bottom Sheet (Mobile) */
.creos-inspector {
  background: rgba(15, 18, 26, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 18px;
  display: flex;
  flex-direction: column;
  max-height: clamp(540px, 76vh, 840px);
  overflow: hidden;
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.22s ease;
}

.creos-inspector-tabs {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(0, 1fr);
  gap: 4px;
  padding: 8px;
  background: rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  flex-shrink: 0;
}

.creos-insp-tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 8px 4px;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 700;
  color: #9ca3af;
  transition: background 0.18s ease, color 0.18s ease;
  cursor: pointer;
}

.creos-insp-tab.is-active {
  background: rgba(251, 191, 36, 0.16);
  color: #fbbf24;
}

.creos-inspector-body {
  padding: 14px;
  overflow-y: auto;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.creos-section-title {
  font-size: 11.5px;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #fbbf24;
  margin: 4px 0 2px;
}

.creos-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.creos-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}

.creos-field-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 12px;
  color: #a1a5b0;
}

.creos-field-group input[type="text"],
.creos-field-group input[type="number"],
.creos-field-group textarea,
.creos-field-group select {
  width: 100%;
  padding: 8px 10px;
  border-radius: 9px;
  background: #10131d;
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #ffffff;
  font-size: 12.5px;
}

.creos-field-group input[type="color"] {
  width: 100%;
  height: 36px;
  border-radius: 9px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: #10131d;
  padding: 3px;
}

.creos-field-group input[type="range"] {
  width: 100%;
  accent-color: #fbbf24;
}

/* Template Gallery Grid inside Inspector */
.creos-cat-pills {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: thin;
}

.creos-cat-pill {
  flex: 0 0 auto;
  padding: 5px 11px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  color: #cbd5e1;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  cursor: pointer;
}

.creos-cat-pill.is-active {
  background: #fbbf24;
  color: #08090b;
  border-color: #fbbf24;
}

.creos-tpl-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.creos-tpl-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 6px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1.5px solid rgba(255, 255, 255, 0.09);
  text-align: left;
  cursor: pointer;
  transition: border-color 0.2s ease, transform 0.18s ease, background 0.2s ease;
}

.creos-tpl-card:hover {
  border-color: rgba(251, 191, 36, 0.65);
  transform: translateY(-2px);
}

.creos-tpl-card.is-selected {
  border-color: #fbbf24;
  background: rgba(251, 191, 36, 0.11);
}

.creos-tpl-card canvas {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 8px;
  background: #090b10;
  display: block;
}

.creos-tpl-card b {
  font-size: 11.5px;
  line-height: 1.3;
  color: #f8fafc;
}

.creos-tpl-card small {
  font-size: 10px;
  color: #94a3b8;
}

.creos-swatch-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.creos-swatch-btn {
  width: 26px;
  height: 26px;
  border-radius: 999px;
  border: 2px solid rgba(255, 255, 255, 0.25);
  cursor: pointer;
}

.creos-swatch-btn.is-active {
  border-color: #ffffff;
  box-shadow: 0 0 0 2px #fbbf24;
}

/* Font Preview List */
.creos-font-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-height: 210px;
  overflow-y: auto;
  padding: 6px;
  border-radius: 10px;
  background: #0d1018;
  border: 1px solid rgba(255, 255, 255, 0.09);
}

.creos-font-opt {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 7px 10px;
  border-radius: 8px;
  color: #e4e4e7;
  font-size: 15px;
  text-align: left;
  cursor: pointer;
}

.creos-font-opt small {
  font-family: var(--font-mono);
  font-size: 10px;
  color: #9ca3af;
}

.creos-font-opt:hover {
  background: rgba(255, 255, 255, 0.07);
}

.creos-font-opt.is-active {
  background: rgba(251, 191, 36, 0.18);
  color: #fbbf24;
}

/* Layer Items */
.creos-layer-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.creos-layer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  cursor: pointer;
}

.creos-layer-row.is-selected {
  border-color: #fbbf24;
  background: rgba(251, 191, 36, 0.12);
}

.creos-layer-row.is-locked-row {
  opacity: 0.78;
}

.creos-layer-main {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  flex: 1;
}

.creos-layer-main b {
  font-size: 12px;
  color: #f4f4f5;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.creos-layer-actions {
  display: flex;
  gap: 3px;
}

.creos-layer-mini {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  display: grid;
  place-items: center;
  color: #cbd5e1;
  background: rgba(255, 255, 255, 0.04);
}

.creos-layer-mini:hover {
  background: rgba(251, 191, 36, 0.2);
  color: #fbbf24;
}

/* Mobile Sheet Handle & Floating Trigger */
.creos-mobile-sheet-head {
  display: none;
  flex-shrink: 0;
}

.creos-mobile-dock {
  display: none;
}

/* Package Cards inside Pricelist Tab */
.creos-pkg-card {
  padding: 10px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.09);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.creos-pkg-card.is-featured {
  border-color: rgba(251, 191, 36, 0.55);
  background: rgba(251, 191, 36, 0.06);
}

.creos-pkg-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

@media (max-width: 959px) {
  .creos-workspace-grid {
    grid-template-columns: 1fr;
  }

  .creos-stage-viewport {
    height: 52vh;
    min-height: 330px;
  }

  .creos-handle {
    width: 38px;
    height: 38px;
  }

  .creos-handle::after {
    width: 14px;
    height: 14px;
  }

  .creos-rotate-handle {
    width: 42px;
    height: 42px;
    top: -38px;
  }

  .creos-mobile-dock {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    padding: 8px 10px;
    border-radius: 14px;
    background: rgba(15, 18, 26, 0.96);
    border: 1px solid rgba(255, 255, 255, 0.1);
  }

  .creos-mobile-dock button {
    flex: 1 0 auto;
    min-height: 38px;
    padding: 7px 12px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.05);
    color: #f4f4f5;
    font-size: 12px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
  }

  .creos-mobile-dock button.is-active {
    background: #fbbf24;
    color: #08090b;
  }

  .creos-inspector {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 60;
    max-height: 56vh;
    padding-bottom: env(safe-area-inset-bottom, 8px);
    border-radius: 20px 20px 0 0;
    border-bottom: 0;
    box-shadow: 0 -20px 60px rgba(0, 0, 0, 0.85);
    transform: translateY(0);
  }

  .creos-inspector.is-sheet-closed {
    transform: translateY(108%);
    pointer-events: none;
    opacity: 0;
  }

  .creos-mobile-sheet-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 14px 4px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  }

  .creos-mobile-sheet-head b {
    font-size: 12.5px;
    color: #fbbf24;
  }
}

/* Moodboard Stepper, Swatches, Assets Bank & Multi-Page Preview Modal */
.creos-topbar {
  flex-direction: column;
  align-items: stretch;
}

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

.creos-mb-stepper {
  display: flex;
  align-items: center;
  gap: 6px;
  overflow-x: auto;
  padding-top: 6px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  scrollbar-width: none;
}

.creos-mb-step {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #cbd5e1;
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.16s ease, color 0.16s ease, border-color 0.16s ease;
}

.creos-mb-step span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 17px;
  height: 17px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  font-size: 10.5px;
}

.creos-mb-step.is-active {
  background: rgba(251, 191, 36, 0.18);
  border-color: rgba(251, 191, 36, 0.65);
  color: #fbbf24;
}

.creos-mb-step.is-active span {
  background: #fbbf24;
  color: #08090b;
}

.creos-mb-arrow {
  color: #64748b;
  font-weight: 700;
  font-size: 13px;
}

.creos-mb-swatch-row {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.creos-mb-swatch-row input[type="color"] {
  width: 30px;
  height: 30px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 7px;
  background: transparent;
  cursor: pointer;
}

.creos-asset-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.creos-asset-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 6px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.creos-asset-thumb {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 8px;
  overflow: hidden;
  background: #12151f;
  cursor: pointer;
}

.creos-asset-thumb canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.creos-asset-meta {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.creos-asset-meta span {
  font-size: 11px;
  font-weight: 700;
  color: #e2e8f0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.creos-asset-btns {
  display: flex;
  gap: 4px;
}

.creos-asset-btns .creos-btn {
  height: 26px;
  padding: 0 7px;
  font-size: 10.5px;
  flex: 1;
}

.creos-preview-modal {
  position: fixed;
  inset: 0;
  z-index: 95;
  background: rgba(4, 6, 12, 0.86);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
}

.creos-preview-dialog {
  width: min(1160px, 100%);
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: #0d1018;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 18px;
  padding: 18px;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.85);
}

.creos-preview-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 12px;
}

.creos-preview-head h3 {
  margin: 0;
  font-size: 17px;
  color: #f8fafc;
}

.creos-preview-head small {
  display: block;
  color: #94a3b8;
  font-size: 12px;
  margin-top: 2px;
}

.creos-preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 14px;
  overflow-y: auto;
  padding-right: 4px;
}

.creos-preview-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 10px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.creos-preview-item canvas {
  width: 100%;
  height: auto;
  border-radius: 8px;
  display: block;
  background: #141824;
}

.creos-preview-item-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.creos-preview-item-foot b {
  display: block;
  font-size: 12px;
  color: #f8fafc;
}

.creos-preview-item-foot small {
  display: block;
  font-size: 10.5px;
  color: #94a3b8;
}
