[data-wie-editor] .wie-canvas-stage{ position:relative; }
[data-wie-editor] .wie-frames-status.is-error{ color:#ff8d8d; }
[data-wie-editor] .wie-frames-card{
  display:flex; flex-direction:column; gap:8px; padding:16px 18px; margin-bottom:14px;
  border-radius:24px; border:1px solid rgba(94,198,255,.22);
  background:linear-gradient(180deg, rgba(12,25,58,.95), rgba(6,13,31,.95));
  box-shadow:0 12px 24px rgba(0,0,0,.24);
}
[data-wie-editor] .wie-frames-card strong{ font-size:15px; color:#eef6ff; }
[data-wie-editor] .wie-frames-card small{ color:#b7c7eb; line-height:1.45; }
[data-wie-editor] .wie-frames-card-meta{ color:#d9e8ff; font-size:13px; }
[data-wie-editor] .wie-frames-count{ display:inline-block; min-width:2ch; font-weight:800; color:#9ef9ef; }
[data-wie-editor] .wie-frames-btn-row{ gap:10px; flex-wrap:wrap; }
[data-wie-editor] .wie-frames-btn-row .button{ flex:1 1 120px; }
[data-wie-editor] .wie-frames-btn-row .button.is-active{
  border-color:rgba(124,255,240,.8); box-shadow:0 0 0 1px rgba(124,255,240,.28), 0 10px 24px rgba(4,198,255,.18);
}
[data-wie-editor] .wie-frames-stage{
  position:absolute; inset:0; z-index:7; display:flex; flex-direction:column; padding:10px;
  background: radial-gradient(circle at top left, rgba(29,67,150,.28), transparent 34%),
              radial-gradient(circle at bottom right, rgba(14,214,214,.12), transparent 28%),
              linear-gradient(180deg, rgba(5,12,30,.98), rgba(4,9,24,.98));
  border-left:1px solid rgba(70,128,255,.18);
}
[data-wie-editor] .wie-frames-stage[hidden]{ display:none !important; }
[data-wie-editor] .wie-frames-stage-shell{ display:flex; flex-direction:column; width:100%; height:100%; min-height:0; gap:10px; }
[data-wie-editor] .wie-frames-stage-bar{
  display:flex; align-items:center; justify-content:space-between; gap:12px; padding:8px 10px;
  border-radius:18px; border:1px solid rgba(94,198,255,.18); background:rgba(9,19,45,.72);
}
[data-wie-editor] .wie-frames-stage-title{ font-size:15px; font-weight:700; color:#f2f7ff; }
[data-wie-editor] .wie-frames-stage-actions{ display:flex; gap:10px; flex-wrap:wrap; }
[data-wie-editor] .wie-frames-viewer-wrap{
  position:relative; flex:1 1 auto; min-height:260px; display:flex; align-items:center; justify-content:center; overflow:hidden;
  border-radius:24px; border:1px solid rgba(94,198,255,.16);
  background:linear-gradient(45deg, rgba(255,255,255,.03) 25%, transparent 25%, transparent 75%, rgba(255,255,255,.03) 75%, rgba(255,255,255,.03)),
             linear-gradient(45deg, rgba(255,255,255,.03) 25%, transparent 25%, transparent 75%, rgba(255,255,255,.03) 75%, rgba(255,255,255,.03)),
             #071126;
  background-position:0 0, 12px 12px; background-size:24px 24px;
}
[data-wie-editor] .wie-frames-viewer{
  display:block; max-width:100%; max-height:100%; border-radius:18px; box-shadow:0 20px 40px rgba(0,0,0,.35);
  touch-action:none; cursor:grab;
}
[data-wie-editor] .wie-frames-viewer.is-dragging{ cursor:grabbing; }
[data-wie-editor] .wie-frames-filmstrip{ display:flex; gap:8px; overflow:auto; padding:4px 2px 2px; }
[data-wie-editor] .wie-frames-filmstrip::-webkit-scrollbar{ height:10px; }
[data-wie-editor] .wie-frames-filmstrip::-webkit-scrollbar-thumb{ background:rgba(116,163,255,.35); border-radius:999px; }
[data-wie-editor] .wie-frames-thumb{
  flex:0 0 auto; display:flex; flex-direction:column; align-items:center; gap:6px; width:82px; padding:6px;
  border-radius:18px; border:1px solid rgba(80,120,200,.25); background:rgba(11,21,50,.78); color:#dbe9ff;
}
[data-wie-editor] .wie-frames-thumb img{
  width:68px; height:68px; object-fit:contain; border-radius:12px; display:block; background:#0a1228;
}
[data-wie-editor] .wie-frames-thumb span{ font-size:12px; font-weight:700; }
[data-wie-editor] .wie-frames-thumb.is-active{ border-color:rgba(124,255,240,.8); box-shadow:0 0 0 1px rgba(124,255,240,.28), 0 10px 24px rgba(4,198,255,.18); }
[data-wie-editor] canvas.wie-canvas.wie-frames-canvas-muted{ opacity:.04; pointer-events:none; }
[data-wie-editor] .wie-panel-frames .wie-output{ min-width:68px; text-align:center; }
@media (max-width:980px){
  [data-wie-editor] .wie-frames-stage{ padding:8px; }
  [data-wie-editor] .wie-frames-stage-bar{ flex-direction:column; align-items:stretch; }
  [data-wie-editor] .wie-frames-stage-actions{ justify-content:stretch; }
  [data-wie-editor] .wie-frames-stage-actions .button{ flex:1 1 auto; }
  [data-wie-editor] .wie-frames-thumb{ width:74px; }
  [data-wie-editor] .wie-frames-thumb img{ width:60px; height:60px; }
}
