.smart-editor[open]{width:min(560px,calc(100vw - 20px))}
.smart-editor .element-settings-body{display:grid;grid-auto-rows:max-content;gap:14px;padding-block:12px}
.smart-editor p{margin:0;line-height:1.5}
.smart-editor-help,.smart-editor-form small{color:#cbc8d3}
.smart-editor-thread{display:grid;gap:10px;max-height:37dvh;overflow:auto;overscroll-behavior:contain}
.smart-editor-turn{border:1px solid #44414d;border-radius:13px;background:#23212b;padding:10px 12px;overflow-wrap:anywhere}
.smart-editor-turn.user{margin-left:clamp(12px,6vw,44px);background:#302742}
.smart-editor-turn strong{display:block;margin-bottom:4px;font-size:.8rem;color:#e1d8ef}
.smart-editor-form{display:grid;gap:8px}
.smart-editor-form label{font-weight:600}
.smart-editor-form textarea{box-sizing:border-box;width:100%;resize:vertical;min-height:65px;padding:10px;
  background:#14131a;border:1px solid #585461;border-radius:10px;color:#fff;font:inherit;font-size:16px}
.smart-editor-form small{line-height:1.4}
.smart-editor-examples,.smart-editor-review{display:flex;flex-wrap:wrap;gap:8px}
.smart-editor-examples button{background:#262330;color:#ece6f6;border:1px solid #565060;border-radius:10px;padding:6px 10px;text-align:left}
.smart-editor-review button{flex:1 1 124px}
.ve-shell>.smart-editor-launch {
  position: fixed;
  right: max(18px, calc(12px + env(safe-area-inset-right, 0px)));
  bottom: calc(74px + env(safe-area-inset-bottom, 0px));
  z-index: 47;
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  padding: 0;
  border: 1px solid #ff9aa5;
  border-radius: 16px;
  background: #ed2335;
  box-shadow: 0 5px 20px #0009;
  cursor: pointer;
  touch-action: manipulation;
}
.ve-shell>.smart-editor-launch img { display: block; width: 42px; height: 42px; }
.ve-shell>.smart-editor-launch:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.ve-shell>.smart-editor-launch:disabled { opacity: .6; cursor: wait; }
@media (max-width: 800px) {
  .ve-shell>.smart-editor-launch {
    bottom: calc(82px + env(safe-area-inset-bottom, 0px));
  }
}


.smart-editor-paid{display:grid;gap:8px;padding:12px;border:1px solid #524763;border-radius:12px}
.smart-editor-paid progress{width:100%;height:8px;accent-color:#c7a8ff}
.smart-workflow ul,.smart-workflow ol{margin:0;padding-inline-start:1.25rem;overflow-wrap:anywhere}
.smart-workflow ul li{padding-block:.35rem}
.smart-workflow ul li span:last-of-type{display:block;color:#cbc3da}
.smart-workflow :is(img,video,audio){width:100%}
.smart-workflow :is(img,video){max-height:240px;object-fit:contain;border-radius:8px}
.smart-editor progress{max-width:100%;accent-color:#c7a8ff}

.smart-editor .smart-editor-media .ve-ai-dialog[open] {
  position: static;
  inset: auto;
  width: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  overflow: visible;
  transform: none;
}

.smart-clip-panel :is(h3,ul){margin:0}
.smart-clip-panel label{display:grid;gap:5px}
.smart-clip-panel :is(input:not([type=checkbox]),select){width:100%;min-height:44px;box-sizing:border-box;
  border:1px solid #585461;border-radius:8px;padding:6px 9px;background:#14131a;color:#fff;font:inherit;font-size:16px}
.smart-clip-fields{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(150px,100%),1fr));gap:10px}
.smart-clip-cuts{list-style:none;padding:0;max-height:12rem;overflow-y:auto}
.smart-clip-cuts label{display:flex;align-items:center;gap:9px;min-height:36px}
.smart-clip-cuts input{accent-color:#c7a8ff;width:18px;height:18px}
.smart-clip-card{display:grid;gap:8px;padding:10px;border:1px solid #44414d;border-radius:10px;overflow-wrap:anywhere}
.smart-clip-preview{display:grid;gap:8px}
.smart-clip-preview video{width:100%;max-height:35dvh;object-fit:contain;border-radius:8px;background:#000}

.smart-editor :is(.smart-editor-form,.smart-editor-paid) select {
  display:block;width:100%;min-height:44px;box-sizing:border-box;padding:8px 10px;
  border:1px solid #585461;border-radius:8px;background:#14131a;color:#fff;font:inherit;font-size:16px;
}
.smart-editor-target-preview{display:block;max-width:100%;max-height:130px;object-fit:contain;border-radius:8px;margin-block-start:8px}

.smart-editor .element-settings-body,
.smart-clip-panel,
.smart-clip-card,
.smart-clip-preview {
  grid-template-columns: minmax(0, 1fr);
  min-inline-size: 0;
}

.smart-clip-panel video {
  display: block;
  min-inline-size: 0;
  max-inline-size: 100%;
}

.smart-clip-panel .ve-toolbar {
  min-inline-size: 0;
  flex-wrap: wrap;
}

.smart-review-items{display:grid;gap:8px;margin:0;padding-inline-start:1.4rem;overflow-wrap:anywhere}
ul.smart-review-items{list-style:none;padding:0}
.ve-smart-version{display:flex;align-items:center;flex-wrap:wrap;gap:8px 12px;margin:8px 0 12px;color:#cbc8d3}
.smart-subject-frame{margin-inline:auto;position:relative;overflow:hidden;border-radius:10px;background:#12101b}
.smart-subject-frame canvas{display:block;width:100%;height:auto;touch-action:none;cursor:crosshair}
.smart-subject-zone{position:absolute;border:2px solid #e5ccff;background:#d9adff15;pointer-events:none}
.smart-subject-zone.is-mask{border-radius:50%;background:#d9adff12;backdrop-filter:blur(9px)}
