/* OROXA V0.21 · shell, production selector and timeline editor */
@media (min-width:821px){
  .sidebar{overflow:visible!important;z-index:220!important}
  .nav-account-actions,.profile-menu{position:relative;z-index:230}
  .profile-popover{z-index:260!important;max-height:calc(100vh - 88px);overflow:auto}
  .engine-cards-compact{grid-template-columns:1fr!important}
  .engine-cards-compact .engine-card{min-height:78px!important;grid-template-columns:44px minmax(0,1fr)!important;align-items:center!important}
  .engine-cards-compact .engine-copy{min-width:0}
  .engine-cards-compact .engine-copy strong{display:flex!important;align-items:center;flex-wrap:wrap;gap:5px;font-size:14px!important}
  .engine-cards-compact .engine-copy small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:10px!important}
  .engine-cards-compact .engine-price{display:block;margin-top:5px;font-size:10px!important}
}

.profile-language{display:grid;grid-template-columns:1fr auto;align-items:center;gap:10px;padding:8px 10px;color:#aeb5c6;font-size:11px}
.profile-language select{max-width:104px;min-height:30px;border:1px solid rgba(255,255,255,.1);border-radius:8px;background:#0b0e14;color:#fff;padding:4px 7px;font:inherit}
.package-saving-note,.public-saving-note{margin:12px 3px 0;color:#8e96a8;font-size:11px}
.public-saving-note{width:min(1320px,calc(100% - 48px));margin:12px auto 0;text-align:center}

.short-editor-workspace{display:grid!important;grid-template-rows:auto minmax(560px,1fr) auto auto;gap:10px!important}
.editor-project-bar{position:sticky;top:140px;z-index:40;min-height:62px!important;background:rgba(14,16,24,.95)!important;backdrop-filter:blur(18px)}
.short-editor-grid{grid-template-columns:260px minmax(460px,1fr) 300px!important;min-height:600px!important;gap:10px!important}
.editor-library-panel,.editor-inspector-panel{padding:14px!important;border-radius:16px!important;overflow:hidden}
.editor-library-panel{display:flex;flex-direction:column}
.editor-library-caption{margin:8px 0!important}
.editor-upload-actions{display:grid;grid-template-columns:1fr 1fr;gap:7px;margin:10px 0 3px}
.editor-upload-actions label{min-height:40px;display:flex;align-items:center;justify-content:center;gap:7px;border:1px solid rgba(139,92,246,.35);border-radius:10px;background:rgba(119,75,220,.1);color:#e7e1fa;font-size:10px;font-weight:800;cursor:pointer}
.editor-upload-actions label:hover{border-color:#8e68ec;background:rgba(119,75,220,.2)}
.editor-upload-actions input{position:absolute;opacity:0;pointer-events:none}
.editor-upload-actions img{width:16px;filter:brightness(0) invert(1)}
.editor-upload-actions label.is-loading{opacity:.55;pointer-events:none}.editor-upload-actions label.is-loading:after{content:"…"}
.editor-media-title{display:flex;align-items:center;justify-content:space-between;margin:12px 0 6px;color:#989fb1;font-size:9px;letter-spacing:.12em}
.editor-media-title small{letter-spacing:0;color:#687187}
.editor-library{max-height:210px!important}
.editor-audio-library{max-height:165px!important}
.editor-image-asset>img{width:34px;height:34px;object-fit:cover;border-radius:9px}
.editor-library-empty.compact{min-height:82px}
.editor-audio-library-head{margin-top:13px!important;padding-top:12px!important}
.editor-canvas-panel{min-height:600px!important;padding:12px!important;background:radial-gradient(circle at 50% 44%,rgba(107,73,205,.12),transparent 34%),repeating-linear-gradient(0deg,rgba(255,255,255,.025) 0,rgba(255,255,255,.025) 1px,transparent 1px,transparent 28px),repeating-linear-gradient(90deg,rgba(255,255,255,.025) 0,rgba(255,255,255,.025) 1px,transparent 1px,transparent 28px),#0b0f17!important}
.editor-phone{position:relative!important;width:min(330px,68%)!important;aspect-ratio:9/16;height:auto!important;max-height:490px;margin:auto;overflow:hidden}
.editor-phone video{position:absolute;inset:0;width:100%;height:100%}
.editor-image-overlay-layer{position:absolute;inset:0;z-index:7;overflow:hidden;pointer-events:none}
.editor-image-overlay{position:absolute;display:block;padding:0;border:2px solid transparent;background:none;cursor:grab;pointer-events:auto;touch-action:none;transform:translate(-50%,-50%)}
.editor-image-overlay.selected{border-color:#9e78ff;box-shadow:0 0 0 2px rgba(35,14,64,.65),0 0 22px rgba(139,92,246,.35)}
.editor-image-overlay:active{cursor:grabbing}
.editor-image-overlay img{display:block;width:100%;height:auto;pointer-events:none;user-select:none}
.editor-inspector-panel{align-content:start;overflow:auto;max-height:600px}
.editor-selected-card{margin-top:10px!important}
.editor-image-inspector label{display:grid;grid-template-columns:1fr auto;gap:5px;margin-top:10px;color:#aeb4c4;font-size:10px}
.editor-image-inspector input{grid-column:1/-1;width:100%;accent-color:#8b5cf6}
.editor-image-inspector>button{width:100%;margin-top:10px;min-height:36px;border:1px solid rgba(239,104,124,.2);border-radius:9px;background:rgba(158,57,76,.08);color:#f2a0ad}
.editor-timeline-panel{padding:13px!important;border-radius:16px!important;background:linear-gradient(180deg,#121620,#0b0e15)!important}
.editor-timeline-panel header{position:sticky;left:0;display:flex;align-items:center;justify-content:space-between}
.editor-timeline{min-height:92px!important;display:flex!important;gap:7px!important;overflow-x:auto;padding:8px!important;border:1px solid rgba(255,255,255,.08);border-radius:12px;background:repeating-linear-gradient(90deg,transparent 0,transparent 79px,rgba(255,255,255,.026) 80px)}
.timeline-clip{flex:0 0 145px!important;min-height:72px!important}
.timeline-join{display:none!important}
.timeline-track-label.image{color:#6ed9cb}
.editor-image-timeline{position:relative;min-height:58px;border:1px solid rgba(70,210,190,.16);border-radius:12px;background:linear-gradient(90deg,rgba(33,170,154,.04),rgba(139,92,246,.035)),repeating-linear-gradient(90deg,transparent 0,transparent calc(10% - 1px),rgba(255,255,255,.035) 10%);overflow:hidden}
.timeline-image-clip{position:absolute;top:7px;height:42px;min-width:58px;display:flex;align-items:center;gap:7px;padding:0 10px;border:1px solid rgba(73,220,197,.34);border-radius:9px;background:linear-gradient(90deg,rgba(42,177,159,.42),rgba(91,82,208,.34));color:#fff;overflow:hidden;cursor:grab}
.timeline-image-clip.selected{box-shadow:0 0 0 2px rgba(112,224,205,.65)}
.timeline-image-clip img{width:28px;height:28px;object-fit:cover;border-radius:6px}
.timeline-image-clip span{display:grid;min-width:0;text-align:left}.timeline-image-clip b{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:9px}.timeline-image-clip small{font-size:8px;opacity:.72}
.editor-audio-timeline{min-height:58px!important}.timeline-audio-clip{top:7px!important;height:42px!important;cursor:grab}
.editor-footnote{margin:0!important;padding:9px 12px;border:1px solid rgba(255,255,255,.06);border-radius:10px;background:#0c0f16;color:#858da0;font-size:10px}

@media(max-width:1280px) and (min-width:821px){
  .short-editor-grid{grid-template-columns:230px minmax(390px,1fr) 250px!important}
  .editor-phone{width:min(300px,78%)!important}
}
@media(max-width:820px){
  .profile-popover{position:fixed!important;right:10px!important;top:68px!important;left:auto!important;z-index:300!important;max-height:70vh;overflow:auto}
  .short-editor-workspace{display:flex!important;flex-direction:column}
  .editor-project-bar{position:static!important}
  .short-editor-grid{display:flex!important;flex-direction:column!important;min-height:0!important}
  .editor-canvas-panel{order:1!important;min-height:520px!important}.editor-library-panel{order:2!important}.editor-inspector-panel{order:3!important;display:block!important;max-height:none}
  .editor-phone{width:min(300px,88%)!important;max-height:440px}
  .editor-library{grid-template-columns:1fr 1fr!important;max-height:310px!important}
  .editor-timeline-panel{overflow-x:auto}.editor-timeline,.editor-image-timeline,.editor-audio-timeline{min-width:660px}
}
