.st-page { background: var(--bg); }
.st-main { max-width: 1360px; margin: 0 auto; padding: 22px 20px 80px; }
.st-hero { text-align: center; padding: 18px 0 14px; }
.st-hero h1 { margin: 0 0 10px; font-size: clamp(28px, 5vw, 44px); line-height: 1.08; font-weight: 800; letter-spacing: -.02em; }
.st-hero .accent { color: var(--green); }
.st-hero p { margin: 0 auto; max-width: 620px; color: var(--muted); font-size: 15.5px; line-height: 1.55; }
body.st-editing .st-hero { display: none; }

.st-source { max-width: 720px; margin: 18px auto 0; display: flex; flex-direction: column; gap: 12px; }
body.st-editing .st-source { max-width: none; flex-direction: row; align-items: center; gap: 12px; margin-top: 4px; }
body.st-editing .st-source .em-src { flex: 1; min-width: 0; }
body.st-editing .st-source .st-load { flex: 0 1 360px; }
body.st-editing .st-recent { display: none; }
.st-srcact { display: flex; gap: 8px; flex: 1 0 100%; }
.st-source .st-srcact .btn { flex: 1 1 0; width: auto; min-width: 0; height: 40px; padding: 0 10px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; white-space: nowrap; }
.st-addclip svg { flex: none; color: var(--green); }
.st-addclip:disabled { opacity: .5; cursor: default; }
.st-srchint { flex: 1 0 100%; margin: 0; color: var(--muted); font-size: 12px; line-height: 1.4; }
.st-parts { flex: 1 0 100%; padding-top: 10px; border-top: 1px solid rgba(255, 255, 255, .07); }
.st-parts[hidden] { display: none; }
.st-parts h4 { margin: 0 0 8px; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.st-parts ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.st-parts li { display: flex; align-items: center; gap: 10px; min-width: 0; font-size: 12.5px; }
.st-parts li b { flex: none; width: 20px; height: 20px; display: grid; place-items: center; border-radius: 7px; background: var(--green-dim); color: var(--green); font-size: 11px; }
.st-parts li span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.st-parts li small { flex: none; color: var(--muted); font-size: 11.5px; font-variant-numeric: tabular-nums; }
.st-clipmark { position: absolute; top: 0; bottom: 0; width: 0; border-left: 2px dashed rgba(255, 255, 255, .9); margin-left: -1px; pointer-events: none; z-index: 6; filter: drop-shadow(0 0 2px rgba(0, 0, 0, .8)); }
.st-clipmark b { position: absolute; top: 3px; left: 0; transform: translateX(-50%); padding: 1px 7px; border-radius: 999px; background: #0b0f10; border: 1px solid rgba(255, 255, 255, .45); color: var(--green); font-size: 10.5px; line-height: 1.5; font-weight: 800; }
@media (min-width: 961px) {
  body.st-editing .st-source .st-load { display: none; }
  .st-chg.open { position: fixed; inset: 0; z-index: 500; display: grid; place-items: center; padding: 16px; background: rgba(4, 7, 8, .72); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); animation: stFade .18s ease; }
  .st-chg > div { position: relative; width: min(440px, 100%); padding: 24px 22px 20px; border-radius: 22px; border: 1px solid rgba(255, 255, 255, .1); background: linear-gradient(180deg, #151c20, #0d1215); box-shadow: 0 30px 80px rgba(0, 0, 0, .6); animation: stChgIn .24s cubic-bezier(.2, .8, .2, 1); }
  .st-chg i.grab { display: none; }
  .st-chg h3 { margin: 0 34px 4px 0; font-size: 18px; }
  .st-chg .x { position: absolute; top: 14px; right: 14px; width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .05); color: var(--muted); cursor: pointer; }
  .st-chg .x:hover { color: var(--text); background: rgba(255, 255, 255, .1); }
  .st-chg .opt { display: flex; align-items: center; gap: 14px; width: 100%; padding: 13px 14px; margin-bottom: 8px; border: 1px solid #2a3336; border-radius: 15px; background: rgba(255, 255, 255, .035); color: var(--text); font: inherit; text-align: left; cursor: pointer; transition: border-color .15s, background .15s, transform .15s; }
  .st-chg .opt:hover { border-color: var(--green); background: rgba(83, 252, 24, .06); transform: translateY(-1px); }
  .st-chg .opt .ic { flex: none; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px; background: rgba(83, 252, 24, .1); color: var(--green); }
  .st-chg .opt b { display: block; font-size: 15px; }
  .st-chg .opt small { display: block; margin-top: 1px; color: var(--muted); font-size: 12.5px; }
  .st-chg form { display: none; gap: 8px; margin: 0 0 8px; }
  .st-chg.link form { display: flex; }
  .st-chg form input { flex: 1; min-width: 0; height: 46px; padding: 0 14px; border: 1px solid #2a3336; border-radius: 13px; background: #090d0f; color: var(--text); font: inherit; outline: none; }
  .st-chg form input:focus { border-color: var(--green); box-shadow: 0 0 0 3px var(--green-dim); }
  .st-chg form .btn { height: 46px; padding: 0 20px; }
  .st-chg.add .opt[data-act=up] { display: none; }
}
.st-chg .x { display: none; }
.st-chg .sub { margin: 0 0 16px; color: var(--muted); font-size: 13px; line-height: 1.45; }
.st-chg.add .opt[data-act=up] { display: none; }
@keyframes stChgIn { from { opacity: 0; transform: translateY(10px) scale(.97); } to { opacity: 1; transform: none; } }
.st-load { display: flex; gap: 10px; margin: 0; }
.st-load input { flex: 1; min-width: 0; height: 44px; padding: 0 16px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--text); font: inherit; font-size: 15px; outline: none; }
.st-load input:focus { border-color: var(--green); box-shadow: 0 0 0 3px var(--green-dim); }
.st-load .btn { height: 44px; padding: 0 22px; }
.st-source .em-pick-card[hidden], .st-source .em-src[hidden] { display: none; }
.st-source .em-src { margin: 0; }
.st-status { min-height: 22px; text-align: center; margin: 8px 0 0; color: var(--muted); font-size: 14px; }
.st-status.err { color: var(--danger); }

/* Proyectos guardados */
.st-recent { max-width: 920px; margin: 22px auto 0; }
.st-recent h2 { margin: 0 0 12px; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.st-recent-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 12px; }
.st-rc { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 8px 8px 10px; text-align: left; border: 1px solid #2a3336; border-radius: 14px; background: linear-gradient(180deg, #11171a, #0e1315); color: var(--text); cursor: pointer; font: inherit; transition: border-color .15s, transform .15s; }
.st-rc:hover { border-color: rgba(83, 252, 24, .5); transform: translateY(-2px); }
.st-rc .th { position: relative; display: block; aspect-ratio: 16 / 9; border-radius: 9px; overflow: hidden; background: #151b1e; }
.st-rc .th img { width: 100%; height: 100%; object-fit: cover; display: block; }
.st-rc b { font-size: 13px; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; padding: 0 2px; }
.st-rc { min-width: 0; }
.st-rc small { color: #6f7a7e; font-size: 12px; padding: 0 2px; display: flex; min-width: 0; }
.st-rc small .sub { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.st-rc small .ago { flex: none; white-space: pre; }
.st-rc .rm { position: absolute; top: 14px; right: 14px; width: 26px; height: 26px; border-radius: 50%; border: 0; background: rgba(0, 0, 0, .65); color: #fff; font-size: 16px; line-height: 1; cursor: pointer; opacity: 0; transition: opacity .15s; display: grid; place-items: center; }
.st-rc:hover .rm, .st-rc:focus-within .rm { opacity: 1; }
@media (hover: none) { .st-rc .rm { opacity: 1; } }

/* Estructura del editor */
.st-stage { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 22px; margin-top: 12px; align-items: start; }
.st-stage[hidden] { display: none; }
.st-left { min-width: 0; position: relative; }
/* pantalla de carga: el clip se está descargando; hasta que esté listo no se puede editar (las acciones se bloquean y el panel se atenúa) */
.st-ldov { position: absolute; inset: -6px; z-index: 40; display: grid; place-items: center; padding: 20px; border-radius: 22px; background: radial-gradient(520px 260px at 50% 24%, rgba(83, 252, 24, .12), transparent 70%), rgba(8, 11, 12, .8); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); opacity: 0; transition: opacity .3s ease; }
.st-ldov.show { opacity: 1; }
.st-ldov[hidden] { display: none; }
.st-ldov-card { width: min(380px, 100%); text-align: center; transform: translateY(8px); transition: transform .4s cubic-bezier(.2, .8, .2, 1); }
.st-ldov.show .st-ldov-card { transform: none; }
.st-ring { position: relative; width: 112px; height: 112px; margin: 0 auto 18px; }
.st-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); overflow: visible; }   /* sin esto el brillo del arco se corta en la caja cuadrada del SVG */
.st-ring circle { fill: none; stroke-width: 7; }
.st-ring .bg { stroke: rgba(255, 255, 255, .08); }
.st-ring .fg { stroke: var(--green); stroke-linecap: round; stroke-dasharray: 289; stroke-dashoffset: 289; transition: stroke-dashoffset .35s ease; filter: drop-shadow(0 0 7px rgba(83, 252, 24, .55)); }
.st-ring b { position: absolute; inset: 0; display: grid; place-items: center; font-size: 26px; font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.st-ldov h3 { margin: 0 0 6px; font-size: 21px; letter-spacing: -.02em; }
.st-ldov p { margin: 0 auto 18px; max-width: 320px; color: var(--muted); font-size: 13.5px; line-height: 1.55; }
.st-steps { list-style: none; display: grid; gap: 8px; margin: 0 auto 16px; padding: 0; max-width: 310px; text-align: left; }
.st-steps li { display: flex; align-items: center; gap: 11px; padding: 10px 13px; border: 1px solid rgba(255, 255, 255, .08); border-radius: 13px; background: rgba(255, 255, 255, .03); color: var(--muted); font-size: 13.5px; font-weight: 600; transition: color .25s, border-color .25s, background .25s; }
.st-steps li i { flex: none; width: 18px; height: 18px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .16); border-top-color: var(--green); animation: stSpin .8s linear infinite; }
.st-steps li.ok { color: var(--text); border-color: rgba(83, 252, 24, .3); background: rgba(83, 252, 24, .06); }
.st-steps li.ok i { animation: none; border: 0; background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230b0f10' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.500 4.500 4.500L19 7.500'/%3E%3C/svg%3E") center / 12px no-repeat; }
@keyframes stSpin { to { transform: rotate(360deg); } }
.st-stage.loading .st-panel { opacity: .4; pointer-events: none; filter: saturate(.6); transition: opacity .3s; }
.st-stage.loading .st-left > *:not(.st-ldov) { pointer-events: none; user-select: none; }
/* «cargando» al saltar a una zona que aún no se ha descargado */
.st-buf { position: absolute; top: 10px; right: 10px; z-index: 6; display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 9px; border-radius: 999px; background: rgba(10, 14, 15, .82); border: 1px solid rgba(255, 255, 255, .12); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); font-size: 12px; font-weight: 700; color: #dfe6e4; pointer-events: none; animation: stBufIn .2s ease; }
.st-buf[hidden] { display: none; }
.st-buf i { width: 14px; height: 14px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .18); border-top-color: var(--green); animation: stSpin .7s linear infinite; }
@keyframes stBufIn { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .st-steps li i, .st-buf i { animation-duration: 2s; } }
@media (min-width: 961px) { .st-left { position: sticky; top: 66px; } }
.st-pvbar { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; min-height: 34px; }
.st-tgl { display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 14px; border-radius: 999px; border: 1px solid #2a3336; background: var(--surface-2); color: var(--text); font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; transition: border-color .15s, background .15s, color .15s; }
.st-tgl:hover { border-color: #3a4549; }
.st-tgl[aria-pressed=true] { border-color: var(--green); background: var(--green-dim); color: var(--green); }
.st-saved { font-size: 12.5px; color: #6f7a7e; display: inline-flex; align-items: center; gap: 6px; }
.st-saved::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--green); opacity: .8; }
.st-saved:empty { display: none; }

.st-viewwrap { display: flex; justify-content: center; align-items: flex-start; gap: 14px; background: repeating-conic-gradient(#12171a 0 25%, #0e1214 0 50%) 0 0 / 22px 22px; border: 1px solid #2a3336; border-radius: 16px; padding: 12px; min-height: 240px; }
.st-fig { margin: 0; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.st-fig figcaption { display: none; font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #6f7a7e; }
.st-viewwrap.dual .st-fig figcaption { display: block; }
.st-fig canvas { display: block; max-width: 100%; max-height: min(calc(100vh - 372px), 640px); min-height: 200px; width: auto; height: auto; border-radius: 6px; box-shadow: 0 18px 50px rgba(0, 0, 0, .55); background: #000; touch-action: none; -webkit-user-select: none; user-select: none; }
.st-viewwrap.dual .st-fig { flex: 1 1 0; }
.st-viewwrap.dual .st-origfig { flex: 1.35 1 0; }
.st-viewwrap.dual .st-fig canvas { max-height: min(calc(100vh - 392px), 600px); }
#stCanvas.can-drag, #stOrig.can-drag { cursor: grab; }
#stCanvas.dragging, #stOrig.dragging { cursor: grabbing; }
.st-grip { margin: 8px 0 0; text-align: center; font-size: 12.5px; color: #6f7a7e; }

/* Controles de reproducción y edición */
.st-ctl { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 14px; margin-top: 10px; }
.st-step { display: inline-flex; align-items: center; gap: 6px; }
.st-step button { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; border: 1px solid #2a3336; background: var(--surface-2); color: var(--text); cursor: pointer; }
.st-step button:hover { border-color: var(--green); }
.st-step .st-play { width: 42px; height: 42px; border: 0; background: var(--green); color: #0b0e0f; }
.st-step .st-play:active { transform: scale(.94); }
.st-time { display: inline-flex; flex-direction: column; line-height: 1.2; font-variant-numeric: tabular-nums; min-width: 78px; }
.st-time b { color: var(--text); font-size: 14px; font-weight: 700; }
.st-time small { color: #6f7a7e; font-size: 11.5px; }
.st-tools { display: inline-flex; align-items: center; gap: 6px; flex: 1; justify-content: center; flex-wrap: wrap; }
.st-tool { display: inline-flex; align-items: center; gap: 7px; height: 34px; padding: 0 12px; border-radius: 10px; border: 1px solid #2a3336; background: var(--surface-2); color: var(--text); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; transition: border-color .15s, opacity .15s; }
.st-tool.icon { width: 34px; padding: 0; justify-content: center; }
.st-tool:hover:not(:disabled) { border-color: var(--green); }
.st-tool:disabled { opacity: .35; cursor: default; }
.st-zoomc { display: inline-flex; align-items: center; gap: 6px; margin-left: auto; }
.st-zoomc input { width: 110px; accent-color: var(--green); }

/* Línea de tiempo profesional */
.st-tlbody { position: relative; margin-top: 10px; border: 1px solid #2a3336; border-radius: 14px; overflow: hidden; background: #0c1012; touch-action: none; cursor: pointer; -webkit-user-select: none; user-select: none; }
.st-ruler { height: 24px; border-bottom: 1px solid #1b2326; background: #0e1315; }
.st-ruler canvas { display: block; width: 100%; height: 100%; }
.st-tl { position: relative; height: 64px; overflow: hidden; }
.st-film { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .85; -webkit-user-drag: none; }
@keyframes stPulse { 50% { opacity: .55; } }
.st-track { position: absolute; inset: 0; }
.st-gaps, .st-segs { position: absolute; inset: 0; pointer-events: none; }
.st-gap { position: absolute; top: 0; bottom: 0; background: repeating-linear-gradient(135deg, rgba(5, 7, 8, .84) 0 6px, rgba(18, 24, 27, .9) 6px 12px); pointer-events: auto; cursor: pointer; }
.st-gap::after { content: attr(data-t); position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); font-size: 10.5px; font-weight: 700; color: #7b878b; white-space: nowrap; }
.st-clip { position: absolute; top: 0; bottom: 0; border: 1.500px solid rgba(255, 255, 255, .35); border-radius: 6px; box-sizing: border-box; background: rgba(255, 255, 255, .02); }
.st-clip.on { border: 2px solid var(--green); background: rgba(83, 252, 24, .07); }
.st-h { position: absolute; top: -1px; bottom: -1px; width: 14px; background: var(--green); cursor: ew-resize; pointer-events: auto; z-index: 4; }
.st-h::before { content: ''; position: absolute; top: 0; bottom: 0; left: -12px; right: -12px; }
.st-h::after { content: ''; position: absolute; top: 50%; left: 50%; width: 2px; height: 16px; margin: -8px 0 0 -1px; border-radius: 2px; background: rgba(0, 0, 0, .55); }
.st-h.l { left: -2px; border-radius: 8px 0 0 8px; }
.st-h.r { right: -2px; border-radius: 0 8px 8px 0; }
.st-headlayer { position: absolute; inset: 0; pointer-events: none; z-index: 6; }
.st-head { position: absolute; top: 0; bottom: 0; width: 2px; margin-left: -1px; background: #fff; box-shadow: 0 0 0 1px rgba(0, 0, 0, .35), 0 0 12px rgba(255, 255, 255, .5); }
.st-head::before { content: ''; position: absolute; top: 0; bottom: 0; left: -10px; right: -10px; pointer-events: auto; cursor: ew-resize; }
.st-knob { position: absolute; top: 2px; left: 50%; width: 14px; height: 16px; margin-left: -7px; background: #fff; border-radius: 4px 4px 7px 7px; box-shadow: 0 0 0 1px rgba(0, 0, 0, .35), 0 2px 8px rgba(0, 0, 0, .5); pointer-events: auto; cursor: ew-resize; }
.st-kfl { position: absolute; inset: 0; pointer-events: none; z-index: 5; }
.st-kfm { position: absolute; bottom: 5px; width: 18px; height: 18px; margin-left: -9px; padding: 0; border: 0; background: none; pointer-events: auto; cursor: pointer; }
.st-kfm::before { content: ''; position: absolute; inset: 3px; transform: rotate(45deg); border-radius: 3px; background: #fff; box-shadow: 0 0 0 1.500px rgba(0, 0, 0, .55), 0 2px 6px rgba(0, 0, 0, .5); transition: transform .15s, background .15s; }
.st-kfm:hover::before { transform: rotate(45deg) scale(1.15); }
.st-kfm.on::before { background: #ffd23f; box-shadow: 0 0 0 1.500px rgba(0, 0, 0, .6), 0 0 12px rgba(255, 210, 63, .75); transform: rotate(45deg) scale(1.2); }
.st-tlbody.grabbing, .st-tlbody.grabbing * { cursor: grabbing !important; }
.st-tlbody.scrubbing, .st-tlbody.scrubbing * { cursor: ew-resize !important; }
.st-scroll { position: relative; height: 10px; margin-top: 6px; border-radius: 6px; background: #151b1e; }
.st-scroll[hidden] { display: none; }
.st-scroll i { position: absolute; top: 0; bottom: 0; border-radius: 6px; background: #3a4549; cursor: grab; min-width: 24px; }
.st-scroll i:hover { background: var(--green); }
.st-help { margin: 8px 0 0; font-size: 12.5px; color: #6f7a7e; }

/* Panel */
.st-panel { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.st-ptabs { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; padding: 4px; border-radius: 14px; border: 1px solid #2a3336; background: #0b0f10; }
.st-ptabs button { border: 0; background: transparent; color: var(--muted); font: inherit; font-weight: 700; font-size: 13px; padding: 10px 4px; border-radius: 10px; cursor: pointer; transition: background .15s, color .15s; }
.st-ptabs button.on { background: rgba(83, 252, 24, .14); color: var(--green); box-shadow: inset 0 0 0 1px rgba(83, 252, 24, .35); }
.st-psec { display: flex; flex-direction: column; gap: 12px; }
.st-psec[hidden] { display: none; }
.st-grp { padding: 14px 16px 16px; border: 1px solid #2a3336; border-radius: 14px; background: linear-gradient(180deg, #11171a, #0e1315); }
.st-grp h3 { margin: 0 0 12px; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.st-grp-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.st-grp-h h3 { margin: 0; flex: 1 1 auto; min-width: 0; }
.st-rs { flex: none; width: 28px; height: 28px; padding: 0; display: grid; place-items: center; border-radius: 50%; border: 1px solid #2a3336; background: rgba(255, 255, 255, .03); color: var(--muted); cursor: pointer; transition: color .15s, border-color .15s, background .15s, transform .25s; animation: stRsIn .22s ease; }
.st-rs[hidden] { display: none; }
.st-rs::before { content: ''; width: 15px; height: 15px; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 12a9 9 0 1 0 3-6.7M3 4v5h5'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 12a9 9 0 1 0 3-6.7M3 4v5h5'/%3E%3C/svg%3E") center / contain no-repeat; transition: transform .35s ease; }
.st-rs:hover { color: var(--green); border-color: var(--green); background: var(--green-dim); }
.st-rs:hover::before { transform: rotate(-200deg); }
.st-rs:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }
@keyframes stRsIn { from { opacity: 0; transform: scale(.7); } to { opacity: 1; transform: none; } }
.st-resetall { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid #2a3336; background: rgba(255, 255, 255, .03); color: var(--muted); font: inherit; font-size: 12.5px; font-weight: 600; cursor: pointer; transition: color .15s, border-color .15s, background .15s; }
.st-resetall:hover { color: var(--text); border-color: #3a4549; background: rgba(255, 255, 255, .06); }
.st-grp { scroll-margin-top: 12px; }
.st-sub-p { margin: 4px 0 0; font-size: 12.5px; line-height: 1.45; color: var(--muted); }
[data-dep][hidden], .st-bpane[hidden], .st-grp[hidden], [data-lt][hidden] { display: none; }

.st-seg { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.st-seg.two { grid-template-columns: 1fr 1fr; }
.st-seg button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; min-height: 40px; padding: 8px 4px; border: 1px solid #2a3336; border-radius: 10px; background: var(--surface-2); color: var(--text); font: inherit; font-size: 12.5px; font-weight: 600; cursor: pointer; transition: border-color .15s, background .15s; }
.st-seg.two button, .st-seg.four button { flex-direction: row; }
.st-seg button:hover { border-color: #3a4549; }
.st-seg button.on { border-color: var(--green); background: var(--green-dim); color: var(--green); }
.st-seg .r { display: block; border: 2px solid currentColor; border-radius: 3px; opacity: .85; }
.r11 { width: 18px; height: 18px; } .r916 { width: 12px; height: 21px; } .r45 { width: 16px; height: 20px; } .r34 { width: 15px; height: 20px; } .r169 { width: 24px; height: 14px; }
.st-seg[data-k="fmt"] { grid-template-columns: repeat(5, 1fr); }
.st-hint { margin: 10px 0 0; font-size: 12.5px; line-height: 1.5; color: var(--muted); }

.st-lays { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; margin-bottom: 4px; }
.st-lays button { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 9px 2px 7px; border: 1px solid #2a3336; border-radius: 10px; background: var(--surface-2); color: var(--muted); font: inherit; font-size: 10.5px; font-weight: 600; cursor: pointer; line-height: 1.15; text-align: center; }
.st-lays button svg { display: block; }
.st-lays button.on { border-color: var(--green); background: var(--green-dim); color: var(--green); }
.st-lays button:hover { border-color: #3a4549; }

.st-row { display: grid; grid-template-columns: 86px 1fr 52px; align-items: center; gap: 10px; margin-top: 12px; font-size: 13.5px; }
.st-fadrow { grid-template-columns: 70px 1fr 92px; }
.st-fadrow b { display: flex; align-items: center; justify-content: flex-end; gap: 6px; white-space: nowrap; }
.st-fadrow b.auto span { color: var(--green); }
.st-auto { font-style: normal; font-size: 9.5px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; line-height: 1; padding: 3px 6px; border-radius: 999px; color: var(--green); background: rgba(83, 252, 24, .12); box-shadow: inset 0 0 0 1px rgba(83, 252, 24, .35); }
.st-fadeauto { margin: 12px 0 0; padding: 9px 11px; border-radius: 10px; font-size: 12px; line-height: 1.45; color: var(--muted); background: rgba(83, 252, 24, .06); box-shadow: inset 0 0 0 1px rgba(83, 252, 24, .16); }
.st-fadeauto[hidden] { display: none; }
.st-fadeauto .st-link { margin-left: 4px; font-weight: 700; }
.st-row b { font-weight: 600; text-align: right; font-size: 12.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.st-sub { margin-top: 14px; font-size: 13px; color: var(--muted); }
.st-sub > span { display: block; margin-bottom: 8px; }
.st-field { display: block; margin-bottom: 10px; font-size: 13px; color: var(--muted); }
.st-field > span { display: block; margin-bottom: 6px; }
.st-field input[type=text], .st-field textarea { width: 100%; height: 40px; padding: 0 12px; border-radius: 10px; border: 1px solid #2a3336; background: #0b0f10; color: var(--text); font: inherit; font-size: 14px; outline: none; }
.st-field textarea { height: auto; padding: 10px 12px; resize: vertical; margin-bottom: 4px; }
.st-field input:focus, .st-field textarea:focus { border-color: var(--green); box-shadow: 0 0 0 3px var(--green-dim); }
.st-inl { display: flex; gap: 8px; align-items: center; }
.st-check { display: flex; align-items: center; gap: 10px; margin-top: 12px; font-size: 13.5px; cursor: pointer; }
.st-check input { accent-color: var(--green); width: 17px; height: 17px; }
.st-bpane { margin-top: 12px; }

.st-colors { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.st-colors button { width: 28px; height: 28px; border-radius: 50%; border: 2px solid #2a3336; cursor: pointer; padding: 0; transition: transform .12s; }
.st-colors button:hover { transform: scale(1.1); }
.st-colors button.on { border-color: #fff; box-shadow: 0 0 0 2px var(--green); }
.st-colors input[type=color] { width: 32px; height: 32px; padding: 0; border: 0; border-radius: 50%; background: none; cursor: pointer; }
.st-colors input[type=color]::-webkit-color-swatch-wrapper { padding: 0; }
.st-colors input[type=color]::-webkit-color-swatch { border: 2px solid #2a3336; border-radius: 50%; }

.st-drop { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 16px 12px; margin-bottom: 12px; border: 1.500px dashed #3a4549; border-radius: 12px; background: rgba(255, 255, 255, .02); color: var(--muted); text-align: center; cursor: pointer; transition: border-color .15s, background .15s; }
.st-drop:hover, .st-drop.over { border-color: var(--green); background: var(--green-dim); color: var(--text); }
.st-drop b { color: var(--text); font-size: 14px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.st-drop small { font-size: 12px; line-height: 1.4; }
.st-drop svg { color: var(--green); }

.st-chip { padding: 7px 12px; border-radius: 999px; border: 1px solid #2a3336; background: var(--surface-2); color: var(--text); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; white-space: nowrap; }
.st-chip:hover { border-color: var(--green); }
.st-chip.danger:hover { border-color: var(--danger); color: var(--danger); }

.st-sw { width: 44px; height: 26px; border-radius: 999px; border: 0; background: #2a3236; position: relative; cursor: pointer; transition: background .2s; flex: none; }
.st-sw::after { content: ''; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: transform .2s; }
.st-sw[aria-checked=true] { background: var(--green); }
.st-sw[aria-checked=true]::after { transform: translateX(18px); background: #0b0e0f; }

.st-kf-tools { display: grid; grid-template-columns: 44px 1fr 44px; gap: 8px; margin-top: 12px; }
.st-kbtn { display: flex; align-items: center; justify-content: center; gap: 8px; height: 40px; border-radius: 10px; border: 1px solid #2a3336; background: var(--surface-2); color: var(--text); font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; }
.st-kbtn:hover { border-color: var(--green); }
.st-kbtn.add { color: #ffd23f; border-color: rgba(255, 210, 63, .4); background: rgba(255, 210, 63, .07); }
.st-kbtn:disabled, .st-link:disabled { opacity: .4; cursor: default; }
.st-kf-foot { display: flex; align-items: center; gap: 14px; margin-top: 12px; font-size: 12.5px; color: var(--muted); }

/* Elementos */
.st-add { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.st-add button { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 14px 4px 12px; border: 1px solid #2a3336; border-radius: 12px; background: var(--surface-2); color: var(--text); font: inherit; font-size: 12.5px; font-weight: 700; cursor: pointer; transition: border-color .15s, transform .12s; }
.st-add button svg { color: var(--green); }
.st-add button:hover { border-color: var(--green); transform: translateY(-1px); }
.st-layers { display: flex; flex-direction: column; gap: 6px; }
.st-layer { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border: 1px solid #2a3336; border-radius: 10px; background: var(--surface-2); color: var(--text); font: inherit; font-size: 13px; font-weight: 600; text-align: left; cursor: pointer; }
.st-layer.on { border-color: var(--green); background: var(--green-dim); }
.st-layer i { width: 22px; height: 22px; border-radius: 6px; flex: none; border: 1px solid rgba(255, 255, 255, .18); }
.st-layer span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.st-variants { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.st-variants button { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 8px 4px 6px; border: 1px solid #2a3336; border-radius: 10px; background: #0b0f10; color: var(--muted); font: inherit; font-size: 11px; font-weight: 600; cursor: pointer; }
.st-variants button canvas { width: 100%; height: 34px; object-fit: contain; }
.st-variants button.on { border-color: var(--green); color: var(--green); background: var(--green-dim); }
.st-lbtns { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }

.st-panel input[type=range] { accent-color: var(--green); }
.st-export { display: flex; flex-direction: column; gap: 10px; }
.st-go { height: 50px; font-size: 16px; font-weight: 800; width: 100%; }
.st-go[disabled] { opacity: .7; cursor: progress; }
.st-result { display: flex; flex-direction: column; gap: 10px; }
.st-result video { width: 100%; max-height: 420px; border-radius: 10px; background: #000; }
.st-result .btn { width: 100%; justify-content: center; text-align: center; }
.st-link { background: none; border: 0; color: var(--muted); font: inherit; font-size: 13px; text-decoration: underline; cursor: pointer; padding: 4px; align-self: center; }
.st-link.left { align-self: flex-start; margin-top: 8px; padding-left: 0; }

.st-toast { position: fixed; left: 50%; bottom: 22px; transform: translateX(-50%); z-index: 60; display: flex; align-items: center; gap: 12px; padding: 12px 14px 12px 18px; border-radius: 14px; background: #151b1e; border: 1px solid rgba(83, 252, 24, .4); box-shadow: 0 18px 50px rgba(0, 0, 0, .6); font-size: 14px; max-width: calc(100vw - 24px); }
.st-toast[hidden] { display: none; }
.st-toast button { border: 0; background: none; color: var(--green); font: inherit; font-weight: 700; cursor: pointer; }
.st-toast .x { color: var(--muted); font-size: 20px; line-height: 1; }

@media (max-width: 1100px) { .st-stage { grid-template-columns: minmax(0, 1fr) 360px; } }
@media (max-width: 960px) {
  .st-stage { grid-template-columns: 1fr; }
  .st-fig canvas { max-height: 52vh; }
  .st-viewwrap.dual { flex-direction: column; align-items: center; }
  .st-viewwrap.dual .st-fig, .st-viewwrap.dual .st-origfig { flex: none; width: 100%; }
  .st-viewwrap.dual .st-fig canvas { max-height: 34vh; }
  .st-main { padding: 14px 14px 70px; }
  .st-load { flex-direction: column; }
  body.st-editing .st-source { flex-direction: column; align-items: stretch; }
  body.st-editing .st-source .st-load { flex: none; }
  .st-grip { display: none; }
  .st-zoomc { margin-left: 0; }
  .st-tools { justify-content: flex-start; }
}
@media (max-width: 480px) { .st-tool span { display: none; } .st-tool { padding: 0; width: 38px; justify-content: center; } }

/* v4: original como panel aparte, menús, accesibilidad */
.st-viewwrap.dual, .st-origfig { display: none; }
body.st-orig .st-main { max-width: 1700px; }
.st-stage.with-orig { grid-template-columns: minmax(300px, 0.78fr) minmax(0, 1.55fr) 400px; }
.st-origcol { align-self: start; padding: 14px; border: 1px solid #2a3336; border-radius: 16px; background: linear-gradient(180deg, #11171a, #0e1315); display: flex; flex-direction: column; gap: 10px; }
.st-origcol[hidden] { display: none; }
@media (min-width: 1281px) { .st-origcol { position: sticky; top: 66px; } }
.st-oc-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.st-oc-head b { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.st-oc-head .st-link { padding: 0; }
.st-oc-body { border-radius: 10px; overflow: hidden; background: #000; border: 1px solid #232b2e; }
.st-oc-body canvas { display: block; width: 100%; height: auto; touch-action: none; -webkit-user-select: none; user-select: none; }
.st-oc-info { margin: 0; font-size: 13px; font-weight: 600; color: var(--green); font-variant-numeric: tabular-nums; }
.st-origcol .st-hint { margin: 0; }
.st-origcol .st-chip { align-self: flex-start; }
.st-menuwrap { position: relative; display: inline-flex; }
.st-menu { position: absolute; z-index: 40; bottom: calc(100% + 8px); left: 0; min-width: 270px; padding: 6px; border-radius: 14px; background: #151b1e; border: 1px solid #2f3a3e; box-shadow: 0 18px 50px rgba(0, 0, 0, .6); }
.st-menu[hidden] { display: none; }
.st-menu > button { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; width: 100%; padding: 10px 12px; border: 0; border-radius: 10px; background: none; color: var(--text); font: inherit; text-align: left; cursor: pointer; }
.st-menu > button:hover, .st-menu > button:focus-visible { background: rgba(83, 252, 24, .1); }
.st-menu b { font-size: 13.5px; }
.st-menu small { color: var(--muted); font-size: 12px; }
.st-keys { right: 0; left: auto; min-width: 300px; padding: 14px 16px; }
.st-keys h4 { margin: 0 0 10px; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.st-keys dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 8px 14px; align-items: center; font-size: 13px; }
.st-keys dt { display: flex; gap: 4px; flex-wrap: wrap; }
.st-keys kbd { padding: 2px 7px; border-radius: 6px; border: 1px solid #3a4549; background: #0b0f10; font: 600 11.5px Inter, system-ui, sans-serif; color: var(--text); }
.st-keys dd { margin: 0; color: var(--muted); }
.st-page button:focus-visible, .st-page a:focus-visible, .st-page input:focus-visible, .st-page [role=button]:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }
@media (max-width: 1280px) {
  .st-stage.with-orig { grid-template-columns: minmax(0, 1fr) 380px; }
  .st-stage.with-orig .st-origcol { grid-column: 1 / -1; position: static; flex-direction: row; flex-wrap: wrap; align-items: flex-start; }
  .st-stage.with-orig .st-oc-body { flex: 0 1 460px; width: 460px; max-width: 100%; }
  .st-stage.with-orig .st-oc-head { flex: 1 0 100%; }
}
@media (max-width: 960px) {
  .st-stage.with-orig { grid-template-columns: 1fr; }
  .st-stage.with-orig .st-oc-body { flex: 1 1 100%; width: 100%; }
}
@media (max-width: 560px) { .st-menu { position: fixed; left: 12px; right: 12px; bottom: 12px; min-width: 0; } .st-keys { display: none; } }
/* v4b: barra de herramientas en dos filas */
.st-ctl { gap: 10px 14px; }
.st-tools { order: 3; flex: 1 0 100%; justify-content: flex-start; gap: 8px; padding-top: 10px; border-top: 1px solid #1b2326; }
.st-tools .st-menuwrap { order: 10; margin-left: auto; }
.st-tools .st-menu { left: auto; right: 0; }
.st-zoomc { margin-left: auto; }
.st-tool { white-space: nowrap; }
.st-time { flex: 1; }
@media (max-width: 480px) { .st-time { min-width: 0; } .st-tools .st-menuwrap { margin-left: 0; } .st-tool span { display: inline; } .st-tool { width: auto; padding: 0 10px; } .st-tool.icon { width: 34px; padding: 0; } }

/* v5: tipografías, textos, flash de grupo, cursores */
.st-seg.three { grid-template-columns: repeat(3, 1fr); }
.st-seg.three button { flex-direction: row; }
#stPillMove button { font-size: 12px; }
#stCanvas.can-edit { cursor: pointer; }
.st-tip { margin: 0; padding: 10px 14px; border-radius: 12px; background: rgba(83, 252, 24, .07); border: 1px solid rgba(83, 252, 24, .22); color: var(--text); font-size: 13px; line-height: 1.45; }
.st-det { margin-top: 12px; border: 1px solid #2a3336; border-radius: 12px; background: #0b0f10; }
.st-det > summary { cursor: pointer; padding: 11px 14px; font-size: 13px; font-weight: 700; color: var(--text); list-style: none; display: flex; align-items: center; justify-content: space-between; }
.st-det > summary::-webkit-details-marker { display: none; }
.st-det > summary::after { content: ''; width: 8px; height: 8px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); margin-top: -3px; transition: transform .2s; }
.st-det[open] > summary::after { transform: rotate(-135deg); margin-top: 3px; }
.st-det > div { padding: 2px 14px 14px; }
.st-ts .st-row { grid-template-columns: 84px 1fr 44px; }
.st-fonts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px; margin: 8px 0 12px; max-height: 188px; overflow-y: auto; padding-right: 2px; }
.st-fonts button { padding: 9px 10px; border: 1px solid #2a3336; border-radius: 10px; background: var(--surface-2); color: var(--text); font-size: 16px; line-height: 1.1; text-align: left; cursor: pointer; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.st-fonts button:hover { border-color: #3a4549; }
.st-fonts button.on { border-color: var(--green); background: var(--green-dim); color: var(--green); }
.st-tsrow { display: flex; align-items: center; gap: 6px; }
.st-tsrow button { min-width: 34px; height: 34px; padding: 0 8px; display: grid; place-items: center; border: 1px solid #2a3336; border-radius: 9px; background: var(--surface-2); color: var(--text); font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; }
.st-tsrow button.on { border-color: var(--green); background: var(--green-dim); color: var(--green); }
.st-tsrow button:disabled { opacity: .35; cursor: default; }
@keyframes stFlash { 0% { box-shadow: 0 0 0 0 rgba(83, 252, 24, .75); border-color: var(--green); } 100% { box-shadow: 0 0 0 14px rgba(83, 252, 24, 0); border-color: #2a3336; } }
.st-flash { animation: stFlash .9s ease-out 1; }
.st-clip { box-shadow: 0 0 0 1px #0c1012; }

/* v8: pantalla completa de la vista previa (solo escala el lienzo ya dibujado) */
.st-fsbar { display: none; }
.st-viewwrap.is-fs { position: fixed; inset: 0; z-index: 90; width: 100vw; height: 100vh; margin: 0; padding: 0; border: 0; border-radius: 0; background: #000; display: flex; align-items: center; justify-content: center; }
.st-viewwrap.is-fs:fullscreen { position: static; }
.st-viewwrap.is-fs .st-fig { width: 100%; height: 100%; margin: 0; }
.st-viewwrap.is-fs .st-fig canvas { width: 100vw; height: 100vh; max-width: none; max-height: none; min-height: 0; object-fit: contain; border-radius: 0; box-shadow: none; background: #000; pointer-events: none; cursor: none; }
.st-viewwrap.is-fs .st-fsbar { display: flex; position: absolute; left: 0; right: 0; bottom: 0; align-items: center; gap: 14px; padding: 28px 22px 18px; background: linear-gradient(0deg, rgba(0, 0, 0, .72), rgba(0, 0, 0, 0)); color: #fff; transition: opacity .25s; z-index: 2; }
.st-viewwrap.is-fs.idle .st-fsbar { opacity: 0; pointer-events: none; }
.st-viewwrap.is-fs.idle { cursor: none; }
.st-fsbar button { width: 44px; height: 44px; flex: none; display: grid; place-items: center; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .16); color: #fff; cursor: pointer; backdrop-filter: blur(6px); }
.st-fsbar button:hover { background: rgba(255, 255, 255, .28); }
#stFsPlay { background: var(--green); color: #0b0e0f; }
#stFsPlay:hover { background: #7dff4d; }
.st-fstime { font-variant-numeric: tabular-nums; font-weight: 600; font-size: 14px; min-width: 62px; }
.st-fsbar input[type=range] { flex: 1; accent-color: var(--green); height: 28px; }
body.st-fs-lock { overflow: hidden; }
/* la pantalla completa de respaldo debe quedar por encima de todo */
body.st-fs-lock .st-left { position: static; }
body.st-fs-lock .topbar { z-index: 1; }

/* ---- selector de emojis ---- */
.st-has-emo { position: relative; }
.st-emo-btn { position: absolute; right: 8px; bottom: 12px; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 9px; border: 1px solid transparent; background: transparent; cursor: pointer; font-size: 17px; line-height: 1; font-family: "Noto Color Emoji", system-ui, sans-serif; opacity: .75; transition: background .15s, opacity .15s; }
.st-emo-btn:hover, .st-emo-btn.on { opacity: 1; background: var(--surface-2); border-color: #2a3336; }
.st-has-emo textarea { padding-right: 44px; }
.st-emo { position: fixed; z-index: 400; width: 332px; max-width: calc(100vw - 16px); display: flex; flex-direction: column; background: #101517; border: 1px solid #2a3336; border-radius: 16px; box-shadow: 0 18px 50px rgba(0, 0, 0, .55); overflow: hidden; }
.st-emo[hidden] { display: none; }
.st-emo-top { padding: 10px 10px 6px; }
.st-emo-q { width: 100%; height: 36px; padding: 0 12px; border-radius: 10px; border: 1px solid #2a3336; background: #0b0f10; color: var(--text); font: inherit; font-size: 14px; outline: none; }
.st-emo-q:focus { border-color: var(--green); box-shadow: 0 0 0 3px var(--green-dim); }
.st-emo-tabs { display: flex; gap: 2px; padding: 2px 8px 6px; border-bottom: 1px solid #1d2528; overflow-x: auto; scrollbar-width: none; }
.st-emo-tabs button { flex: 1 0 auto; min-width: 34px; height: 34px; border: 0; border-bottom: 2px solid transparent; border-radius: 8px 8px 0 0; background: transparent; cursor: pointer; font-size: 18px; font-family: "Noto Color Emoji", system-ui, sans-serif; opacity: .55; }
.st-emo-tabs button:hover { opacity: .9; }
.st-emo-tabs button.on { opacity: 1; border-bottom-color: var(--green); background: rgba(83, 252, 24, .06); }
.st-emo-grid { display: grid; grid-template-columns: repeat(8, 1fr); gap: 2px; padding: 8px; height: 252px; overflow-y: auto; align-content: start; }
.st-emo-grid button { aspect-ratio: 1; border: 0; border-radius: 9px; background: transparent; cursor: pointer; font-size: 23px; line-height: 1; padding: 0; font-family: "Noto Color Emoji", system-ui, sans-serif; }
.st-emo-grid button:hover { background: var(--surface-2); transform: scale(1.12); }
.st-emo-none { grid-column: 1 / -1; margin: 30px 0; text-align: center; color: var(--muted); font-size: 13px; }

.st-emo-btn img { width: 20px; height: 20px; display: block; }
.st-emo-tabs button img { width: 22px; height: 22px; display: block; margin: 0 auto; }
.st-emo-grid button img { width: 100%; height: 100%; display: block; pointer-events: none; }

#stVolPre.busy { opacity: .55; pointer-events: none; }

/* ---- selección de vídeo / imagen en la vista ---- */
.st-fig { position: relative; }
.st-sel { position: absolute; z-index: 2; pointer-events: none; border-radius: 4px; }
.st-sel[hidden] { display: none; }
.st-sel .c { position: absolute; width: 20px; height: 20px; border: 0 solid #fff; filter: drop-shadow(0 0 2px rgba(0, 0, 0, .65)); transition: border-color .18s; }
.st-sel .tl { left: 7px; top: 7px; border-top-width: 3px; border-left-width: 3px; border-top-left-radius: 7px; }
.st-sel .tr { right: 7px; top: 7px; border-top-width: 3px; border-right-width: 3px; border-top-right-radius: 7px; }
.st-sel .bl { left: 7px; bottom: 7px; border-bottom-width: 3px; border-left-width: 3px; border-bottom-left-radius: 7px; }
.st-sel .br { right: 7px; bottom: 7px; border-bottom-width: 3px; border-right-width: 3px; border-bottom-right-radius: 7px; }
.st-sel.hover .c { border-color: rgba(255, 255, 255, .7); }
.st-sel.on { box-shadow: inset 0 0 0 2px rgba(83, 252, 24, .9), inset 0 0 0 3px rgba(0, 0, 0, .28), 0 0 22px rgba(83, 252, 24, .18); }
.st-sel.on .c { border-color: #53fc18; }
.st-sel-chip { position: absolute; left: 14px; top: 14px; padding: 4px 11px 4px 9px; border-radius: 999px; font-size: 11.5px; font-weight: 800; letter-spacing: .02em; color: #53fc18; background: rgba(9, 13, 15, .74); border: 1px solid rgba(83, 252, 24, .45); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); opacity: 0; white-space: nowrap; }
.st-sel-chip::before { content: ''; display: inline-block; width: 6px; height: 6px; margin-right: 6px; border-radius: 50%; background: #53fc18; vertical-align: 1px; }
.st-sel.pulse { animation: stSelIn .38s cubic-bezier(.2, .8, .2, 1); }
.st-sel.pulse .st-sel-chip { animation: stSelChip 2.6s ease forwards; }
@keyframes stSelIn { from { opacity: 0; transform: scale(.985); } to { opacity: 1; transform: scale(1); } }
@keyframes stSelChip { 0% { opacity: 0; transform: translateY(-4px); } 12%, 70% { opacity: 1; transform: none; } 100% { opacity: 0; } }
#stCanvas { touch-action: pan-y; }
#stCanvas.sel-on { touch-action: none; }
#stCanvas.can-pick { cursor: pointer; }
#stOrig.is-sel { box-shadow: 0 0 0 2px rgba(83, 252, 24, .9), 0 0 18px rgba(83, 252, 24, .2); border-radius: 4px; }
.st-viewwrap.is-fs .st-sel { display: none; }
@media (prefers-reduced-motion: reduce) { .st-sel.pulse, .st-sel.pulse .st-sel-chip { animation: none; } }

/* ---- ediciones (proyectos) del clip ---- */
.st-proj { position: relative; display: flex; align-items: center; gap: 6px; margin-bottom: 10px; padding: 5px 6px 5px 12px; border: 1px solid #2a3336; border-radius: 14px; background: linear-gradient(180deg, #12181a, #0e1315); }
.st-proj[hidden] { display: none; }
.st-proj-ic { flex: none; color: var(--green); }
.st-proj input { flex: 1; min-width: 0; height: 32px; padding: 0 8px; border: 1px solid transparent; border-radius: 9px; background: transparent; color: var(--text); font: inherit; font-size: 14.5px; font-weight: 700; outline: none; text-overflow: ellipsis; transition: background .15s, border-color .15s; }
.st-proj input:hover { background: rgba(255, 255, 255, .04); }
.st-proj input:focus { background: #0b0f10; border-color: var(--green); box-shadow: 0 0 0 3px var(--green-dim); }
.st-proj-b { flex: none; display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-width: 34px; height: 32px; padding: 0 10px; border: 1px solid #2a3336; border-radius: 9px; background: var(--surface-2); color: var(--text); font: inherit; font-size: 12.5px; font-weight: 800; cursor: pointer; transition: border-color .15s, color .15s; }
.st-proj-b:hover, .st-proj-b[aria-expanded=true] { border-color: var(--green); color: var(--green); }
.st-proj-b.new { padding: 0; width: 34px; }
.st-pmenu { position: absolute; left: 0; right: 0; top: calc(100% + 8px); z-index: 60; padding: 6px; border: 1px solid #2a3336; border-radius: 14px; background: #101517; box-shadow: 0 18px 50px rgba(0, 0, 0, .55); max-height: 340px; overflow-y: auto; }
.st-pmenu[hidden] { display: none; }
.st-pr { display: flex; align-items: center; gap: 2px; border-radius: 10px; }
.st-pr:hover { background: rgba(255, 255, 255, .04); }
.st-pr.on { background: rgba(83, 252, 24, .08); box-shadow: inset 0 0 0 1px rgba(83, 252, 24, .3); }
.st-pr-main { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 8px 10px; border: 0; background: transparent; color: var(--text); font: inherit; text-align: left; cursor: pointer; }
.st-pr-main b { max-width: 100%; font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.st-pr-main small { color: #6f7a7e; font-size: 12px; }
.st-pr.on .st-pr-main small { color: var(--green); }
.st-pr-b { flex: none; width: 32px; height: 32px; display: grid; place-items: center; border: 0; border-radius: 8px; background: transparent; color: #8a969a; cursor: pointer; }
.st-pr-b:hover { background: rgba(255, 255, 255, .08); color: var(--text); }
.st-pr-b.del.arm { width: auto; padding: 0 10px; background: rgba(255, 80, 80, .16); color: #ff7a7a; }
.st-pr-b.del.arm::after { content: attr(title); margin-left: 6px; font-size: 12px; font-weight: 800; }
.st-pm-empty { margin: 10px; color: var(--muted); font-size: 13px; }
.st-pm-new { display: flex; align-items: center; gap: 10px; width: 100%; margin-top: 4px; padding: 10px; border: 1px dashed #34414a; border-radius: 10px; background: transparent; color: var(--green); font: inherit; font-size: 13.5px; font-weight: 800; cursor: pointer; }
.st-pm-new:hover { background: rgba(83, 252, 24, .07); border-color: rgba(83, 252, 24, .5); }
.st-pm-new span { font-size: 18px; line-height: 1; }

/* ---- cuenta y nube ---- */
.nav-right { display: inline-flex; align-items: center; gap: 10px; }
.st-acct { position: relative; }
.st-acct[hidden] { display: none; }
.st-acct-btn { gap: 8px; }
.st-acct-btn.in { padding-left: 6px; }
.st-acct-btn .nm { max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 700; }
.st-av { width: 26px; height: 26px; border-radius: 50%; object-fit: cover; flex: none; background: #1c2427; }
.st-av.ph { display: inline-grid; place-items: center; font-size: 13px; font-weight: 800; color: var(--green); }
.st-av.lg { width: 40px; height: 40px; font-size: 17px; }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--green); flex: none; }
.dot.syncing { background: #f5c542; animation: stPulse 1s ease-in-out infinite; }
.dot.err { background: #ff6b6b; }
@keyframes stPulse { 50% { opacity: .35; } }
.st-acct-menu { position: absolute; right: 0; top: calc(100% + 8px); z-index: 120; width: 250px; padding: 8px; border: 1px solid #2a3336; border-radius: 14px; background: #101517; box-shadow: 0 18px 50px rgba(0, 0, 0, .55); }
.st-acct-menu[hidden] { display: none; }
.st-am-h { display: flex; align-items: center; gap: 10px; padding: 8px 8px 10px; }
.st-am-h b { display: block; font-size: 14px; max-width: 170px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.st-am-h small { color: var(--muted); font-size: 12px; display: block; max-width: 170px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.st-am-s { display: flex; align-items: center; gap: 8px; margin: 0 4px 6px; padding: 8px 10px; border-radius: 10px; background: rgba(83, 252, 24, .07); color: var(--green); font-size: 12.5px; font-weight: 700; }
.st-am-s.syncing { background: rgba(245, 197, 66, .08); color: #f5c542; }
.st-am-s.err { background: rgba(255, 107, 107, .08); color: #ff8a8a; }
.st-acct-menu button { display: block; width: 100%; padding: 10px; border: 0; border-radius: 10px; background: transparent; color: var(--text); font: inherit; font-size: 13.5px; font-weight: 600; text-align: left; cursor: pointer; }
.st-acct-menu button:hover { background: rgba(255, 255, 255, .06); }
.st-acct-menu button.out { color: #ff8a8a; }
.st-modal { position: fixed; inset: 0; z-index: 500; display: grid; place-items: center; padding: 16px; background: rgba(4, 7, 8, .72); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); animation: stFade .18s ease; }
.st-modal[hidden] { display: none; }
body.st-modal-open { overflow: hidden; }
@keyframes stFade { from { opacity: 0; } }
.st-auth { position: relative; width: min(400px, 100%); padding: 30px 26px 22px; text-align: center; border: 1px solid #2a3336; border-radius: 22px; background: linear-gradient(180deg, #131a1d, #0d1214); box-shadow: 0 30px 80px rgba(0, 0, 0, .6); animation: stPop .22s cubic-bezier(.2, .8, .2, 1); }
@keyframes stPop { from { opacity: 0; transform: translateY(10px) scale(.98); } }
.st-auth-x { position: absolute; right: 12px; top: 12px; width: 34px; height: 34px; display: grid; place-items: center; border: 0; border-radius: 10px; background: transparent; color: var(--muted); cursor: pointer; }
.st-auth-x:hover { background: rgba(255, 255, 255, .07); color: var(--text); }
.st-auth-ic { width: 54px; height: 54px; margin: 0 auto 14px; display: grid; place-items: center; border-radius: 16px; color: var(--green); background: rgba(83, 252, 24, .1); box-shadow: inset 0 0 0 1px rgba(83, 252, 24, .25); }
.st-auth h2 { margin: 0 0 8px; font-size: 20px; }
.st-auth p { margin: 0 0 20px; color: var(--muted); font-size: 14px; line-height: 1.5; }
.st-auth-btns { display: grid; gap: 10px; }
.st-auth-b { display: flex; align-items: center; justify-content: center; gap: 12px; height: 48px; border-radius: 13px; border: 1px solid #2f3b40; background: #182024; color: var(--text); font-size: 15px; font-weight: 700; text-decoration: none; transition: transform .15s, border-color .15s, background .15s; }
.st-auth-b:hover { transform: translateY(-1px); border-color: rgba(83, 252, 24, .55); background: #1c262b; }
.st-auth-note { display: block; margin-top: 18px; color: #6f7a7e; font-size: 12px; line-height: 1.5; }
.st-auth-note a { color: var(--muted); }
@media (max-width: 560px) { .st-acct-btn .nm { display: none; } .st-acct-btn.in { padding: 4px 8px 4px 6px; } }

/* ---- cabecera del Studio: etiqueta de marca y cuenta a la derecha ---- */
.st-page .topbar { justify-content: space-between; }
.st-page .nav-right { margin-left: auto; }

/* ---- cuenta: solo la foto en la barra ---- */
.st-acct-btn.in { width: 42px; height: 42px; padding: 0; justify-content: center; border-radius: 50%; border: 1px solid #2f3b40; background: #12181a; transition: border-color .15s, box-shadow .15s; }
.st-acct-btn.in:hover, .st-acct-btn.in[aria-expanded=true] { border-color: rgba(255, 255, 255, .45); }
.st-acct-btn.in .st-av { width: 34px; height: 34px; border-radius: 50%; box-shadow: 0 0 0 1px rgba(255, 255, 255, .08); }

/* ---- ampliar con el VOD ---- */
.st-ext { width: 300px; padding: 14px; }
.st-ext h4 { margin: 0 0 4px; font-size: 14px; }
.st-ext-p { margin: 0 0 10px; color: var(--muted); font-size: 12.5px; line-height: 1.45; }
.st-ext-msg { margin: 4px 0 8px; padding: 10px 12px; border-radius: 10px; background: rgba(255, 255, 255, .04); color: var(--muted); font-size: 12.5px; line-height: 1.45; }
.st-ext-msg[hidden], #stExtBox[hidden] { display: none; }
.st-ext-sum { margin: 10px 0; color: var(--green); font-size: 12.5px; font-weight: 700; }
.st-ext .st-row { grid-template-columns: 64px 1fr 46px; margin-top: 8px; }
.st-ext-go { width: 100%; height: 40px; }
.st-ext-go:disabled { opacity: .45; cursor: default; }
.st-ext .st-link { margin-top: 10px; }

/* ---- botón eliminar de las tarjetas y ventana de confirmación ---- */
.st-rc .rm { top: 14px; right: 14px; width: 34px; height: 34px; border-radius: 11px; border: 1px solid rgba(255, 255, 255, .14); background: rgba(10, 14, 16, .72); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); color: #e7ecee; opacity: 0; transform: translateY(-3px) scale(.96); transition: opacity .18s, transform .18s, background .15s, border-color .15s, color .15s; }
.st-rc:hover .rm, .st-rc:focus-within .rm { opacity: 1; transform: none; }
.st-rc .rm:hover, .st-rc .rm:focus-visible { background: rgba(255, 82, 82, .92); border-color: rgba(255, 140, 140, .9); color: #fff; outline: none; }
.st-rc .rm:active { transform: scale(.94); }
.st-cf-ic { width: 54px; height: 54px; margin: 0 auto 14px; display: grid; place-items: center; border-radius: 16px; color: #ff6b6b; background: rgba(255, 82, 82, .1); box-shadow: inset 0 0 0 1px rgba(255, 82, 82, .3); }
.st-cf-name { display: block; margin: 0 auto 8px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text); font-size: 15px; }
.st-cf-name:empty { display: none; }
.st-cf-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 4px; }
.st-cf-btns .btn { height: 46px; justify-content: center; font-weight: 800; }
.st-cf-ok { background: #ff5252; color: #fff; border: 0; border-radius: 12px; cursor: pointer; transition: background .15s, transform .15s; }
.st-cf-ok:hover { background: #ff6b6b; transform: translateY(-1px); }
#stConfirm { z-index: 600; }

/* ---- recorte con las asas y unión de tramos ---- */
.st-clip.drag { z-index: 3; box-shadow: 0 0 0 1px #0c1012, 0 0 18px rgba(83, 252, 24, .28); }
.st-clip.settle { transition: left .24s cubic-bezier(.2, .8, .2, 1), width .24s cubic-bezier(.2, .8, .2, 1); }
.st-trimtip { position: absolute; top: 3px; z-index: 6; transform: translateX(-50%); padding: 2px 8px; border-radius: 7px; background: rgba(10, 14, 16, .92); border: 1px solid rgba(83, 252, 24, .5); color: var(--green); font-size: 11px; font-weight: 800; white-space: nowrap; pointer-events: none; font-variant-numeric: tabular-nums; }
.st-trimtip[hidden] { display: none; }
.st-join { position: absolute; top: 50%; z-index: 5; width: 20px; height: 20px; margin: -10px 0 0 -10px; padding: 0; display: grid; place-items: center; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .55); background: rgba(10, 14, 16, .88); color: #fff; cursor: pointer; pointer-events: auto; opacity: 0; transform: scale(.8); transition: opacity .15s, transform .15s, background .15s, border-color .15s, color .15s; }
.st-join.gap { border-color: rgba(245, 197, 66, .8); color: #f5c542; }
.st-tlbody:hover .st-join, .st-join:focus-visible { opacity: 1; transform: none; }
.st-join:hover { background: var(--green); border-color: var(--green); color: #0b0e0f; transform: scale(1.12); }
@media (hover: none) { .st-join { opacity: 1; transform: none; } }
.st-tool:disabled { opacity: .4; cursor: default; }

/* ---- texto para publicar ---- */
.st-capd { margin-top: 14px; }
.st-capd .st-field { margin: 8px 0; }

.st-cp-go:disabled { opacity: .55; cursor: default; }
#stCpOut { display: grid; gap: 8px; margin-top: 12px; }
.st-cp-row { display: flex; align-items: flex-start; gap: 8px; padding: 10px 10px 10px 12px; border: 1px solid #2a3336; border-radius: 12px; background: #0b0f10; }
.st-cp-row p { flex: 1; margin: 0; font-size: 14px; line-height: 1.45; color: var(--text); overflow-wrap: anywhere; }
.st-cp-copy { flex: none; width: 32px; height: 32px; display: grid; place-items: center; border: 1px solid #2f3b40; border-radius: 9px; background: var(--surface-2); color: var(--muted); cursor: pointer; transition: color .15s, border-color .15s, background .15s; }
.st-cp-copy:hover { color: var(--green); border-color: rgba(83, 252, 24, .6); }
.st-cp-copy.done { background: var(--green); border-color: var(--green); color: #0b0e0f; }
.st-beta { margin-left: 8px; padding: 2px 7px; border-radius: 6px; font-style: normal; font-size: 10px; font-weight: 800; letter-spacing: .12em; color: #f5c542; background: rgba(245, 197, 66, .12); border: 1px solid rgba(245, 197, 66, .4); vertical-align: 1px; }

/* ---- selector de red del sello ---- */
.st-seg.st-plat { grid-template-columns: repeat(4, 1fr); gap: 6px; }
.st-plat button.none { grid-column: 1 / -1; display: flex; flex-direction: row; justify-content: center; gap: 8px; min-height: 38px; font-size: 12.5px; color: var(--muted); }
.st-plat button.none.on { color: var(--green); }
.st-plat button { min-height: 44px; padding: 0; display: grid; place-items: center; }
.st-plat button svg { display: block; }

/* ---- efectos y música ---- */
.st-fxlane { position: relative; height: 46px; overflow: hidden; border-top: 1px solid #1b2326; background: #0a0e10; touch-action: none; }
.st-fxlane.grabbing, .st-fxlane.grabbing * { cursor: grabbing !important; }
.st-fxl-empty { position: absolute; inset: 0; display: flex; align-items: center; margin: 0; padding: 0 12px; font-size: 11.5px; color: #55626a; pointer-events: none; white-space: nowrap; }
.st-fxc { position: absolute; top: 4px; height: 18px; min-width: 22px; display: flex; align-items: center; gap: 5px; padding: 0 8px 0 6px; border-radius: 7px; border: 1px solid; overflow: hidden; cursor: grab; font-size: 11px; font-weight: 800; white-space: nowrap; box-sizing: border-box; }
.st-fxc svg { width: 14px; height: 14px; flex: none; }
.st-fxc span { overflow: hidden; text-overflow: ellipsis; }
.st-fxc .rz { position: absolute; right: 0; top: 0; bottom: 0; width: 9px; cursor: ew-resize; }
.st-fxc .rz::after { content: ''; position: absolute; right: 3px; top: 50%; width: 2px; height: 10px; margin-top: -5px; border-radius: 2px; background: currentColor; opacity: .55; }
.st-fxc.k-zoom { color: #7dd3fc; background: rgba(56, 189, 248, .16); border-color: rgba(56, 189, 248, .5); }
.st-fxc.k-punch { color: #7dd3fc; background: rgba(56, 189, 248, .16); border-color: rgba(56, 189, 248, .5); }
.st-fxc.k-push { color: #c4b5fd; background: rgba(167, 139, 250, .16); border-color: rgba(167, 139, 250, .5); }
.st-fxc.k-shake { color: #fdba74; background: rgba(251, 146, 60, .16); border-color: rgba(251, 146, 60, .5); }
.st-fxc.k-flash { color: #fde68a; background: rgba(250, 204, 21, .16); border-color: rgba(250, 204, 21, .5); }
.st-fxc.on { box-shadow: 0 0 0 2px currentColor, 0 0 14px rgba(255, 255, 255, .12); z-index: 2; }
.st-ptabs button { padding-left: 2px; padding-right: 2px; font-size: 12.5px; }
.st-fxgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 10px; }
.st-fxp { position: relative; display: grid; grid-template-columns: 22px 1fr; column-gap: 8px; align-items: center; text-align: left; padding: 11px 12px; border: 1px solid #2a3336; border-radius: 12px; background: var(--surface-2); color: var(--text); cursor: pointer; transition: border-color .15s, background .15s, transform .15s; }
.st-fxp:hover { border-color: rgba(83, 252, 24, .55); background: rgba(83, 252, 24, .06); transform: translateY(-1px); }
.st-fxp svg { grid-row: 1 / 3; color: var(--green); }
.st-fxp b { font-size: 13.5px; }
.st-fxp small { color: var(--muted); font-size: 11.5px; }
.st-fxp kbd { position: absolute; right: 8px; top: 8px; padding: 1px 6px; border-radius: 5px; border: 1px solid #34414a; background: #0b0f10; color: var(--muted); font: inherit; font-size: 10.5px; font-weight: 700; }
.st-fxedit { border-color: rgba(83, 252, 24, .35); }
.st-fx-h { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
.st-fx-h > svg { color: var(--green); }
.st-fx-h b { font-size: 14.5px; }
.st-fx-start { display: flex; align-items: center; gap: 8px; }
.st-fx-start > span:first-child { flex: 1; }
.st-fx-t { font-variant-numeric: tabular-nums; font-weight: 700; color: var(--text); font-size: 13px; }
.st-focus { position: relative; margin-top: 8px; border-radius: 10px; overflow: hidden; border: 1px solid #2a3336; cursor: crosshair; touch-action: none; }
.st-focus canvas { display: block; width: 100%; height: auto; }
.st-focus i { position: absolute; width: 20px; height: 20px; margin: -10px 0 0 -10px; border-radius: 50%; border: 2px solid #fff; background: rgba(83, 252, 24, .85); box-shadow: 0 0 0 2px rgba(0, 0, 0, .5), 0 2px 8px rgba(0, 0, 0, .5); pointer-events: none; }
.st-fxlist { display: grid; gap: 6px; margin-top: 8px; }
.st-fxrow { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border: 1px solid #2a3336; border-radius: 10px; background: #0b0f10; color: var(--text); cursor: pointer; text-align: left; }
.st-fxrow svg { width: 16px; height: 16px; color: var(--green); flex: none; }
.st-fxrow b { flex: 1; font-size: 13px; }
.st-fxrow small { color: var(--muted); font-variant-numeric: tabular-nums; }
.st-fxrow.on { border-color: var(--green); background: rgba(83, 252, 24, .07); }
.st-mu-add { width: 100%; height: 42px; justify-content: center; }
.st-mu-h { display: flex; align-items: center; gap: 10px; margin-bottom: 4px; }
.st-mu-h > svg { color: var(--green); flex: none; }
.st-mu-h > div { flex: 1; min-width: 0; }
.st-mu-h b { display: block; font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.st-mu-h small { color: var(--muted); font-size: 12px; }
.st-tool.icon.del:hover { color: #ff7a7a; border-color: rgba(255, 82, 82, .6); }
.st-seg.four { grid-template-columns: repeat(4, 1fr); }
.st-fxp[data-fx=sound] { grid-column: 1 / -1; }
.st-fxc.k-sound { color: #5eead4; background: rgba(45, 212, 191, .16); border-color: rgba(45, 212, 191, .5); }
.st-fxa { position: absolute; top: 25px; height: 17px; min-width: 14px; border-radius: 6px; border: 1px solid rgba(45, 212, 191, .5); background: rgba(45, 212, 191, .13); color: #5eead4; overflow: hidden; cursor: grab; box-sizing: border-box; }
.st-fxa svg { position: absolute; inset: 1px 2px; width: calc(100% - 4px); height: calc(100% - 2px); fill: currentColor; opacity: .75; pointer-events: none; }
.st-fxa span { position: absolute; left: 6px; top: 50%; transform: translateY(-50%); font-size: 10px; font-weight: 800; color: #ecfeff; text-shadow: 0 0 4px rgba(0, 0, 0, .8), 0 0 2px rgba(0, 0, 0, .9); pointer-events: none; white-space: nowrap; }
.st-fxa.on { box-shadow: 0 0 0 2px currentColor; z-index: 2; }
.st-sfxup-main { width: 100%; margin-top: 8px; height: 40px; justify-content: center; }
.st-mysfx { margin-top: 10px; display: grid; gap: 6px; }
.st-mysfx-h { color: var(--muted); font-size: 12px; }
.st-mysfx-l { display: flex; flex-wrap: wrap; gap: 6px; }
.st-usfx { display: inline-flex; align-items: stretch; border: 1px solid #2f3b40; border-radius: 9px; background: #0b0f10; overflow: hidden; }
.st-usfx .n { max-width: 130px; padding: 6px 9px; border: 0; background: transparent; color: var(--text); font: inherit; font-size: 12px; font-weight: 700; cursor: pointer; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.st-usfx .x { width: 24px; border: 0; border-left: 1px solid #2f3b40; background: transparent; color: var(--muted); font-size: 15px; line-height: 1; cursor: pointer; }
.st-usfx .x:hover { color: #ff7a7a; background: rgba(255, 82, 82, .1); }
.st-usfx.on { border-color: var(--green); background: rgba(83, 252, 24, .08); }
.st-usfx.on .n { color: var(--green); }
.st-sfxup { justify-self: start; }
#stFxVol[hidden] { display: none; }
.st-fxrow { cursor: pointer; }
.st-fxx { flex: none; width: 28px; height: 28px; display: grid; place-items: center; border: 0; border-radius: 8px; background: transparent; color: var(--muted); cursor: pointer; }
.st-fxx:hover { color: #ff7a7a; background: rgba(255, 82, 82, .12); }

/* =====================================================================
   Estructura tipo aplicación: la columna del vídeo cabe en la pantalla y el panel de ajustes tiene su propio scroll
   ===================================================================== */
.st-ptabs { grid-template-columns: repeat(6, 1fr); gap: 2px; }
.st-ptabs button { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 7px 0 6px; font-size: 11px; letter-spacing: 0; }
.st-ptabs button svg { width: 18px; height: 18px; opacity: .85; }
.st-ptabs button.on svg { opacity: 1; }
.st-pscroll { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.st-pfoot { display: flex; flex-direction: column; gap: 10px; padding: 12px; border: 1px solid #2a3336; border-radius: 16px; background: linear-gradient(180deg, #12181a, #0d1214); box-shadow: 0 -10px 24px rgba(0, 0, 0, .35); position: sticky; bottom: 0; z-index: 5; }
.st-pfoot .st-sub { margin: 0; }
.st-pfoot .st-hint { margin: 0; font-size: 11.5px; line-height: 1.4; }
.st-pfoot-go { display: grid; gap: 8px; }
.st-pub { width: 100%; height: 40px; justify-content: center; gap: 8px; }
.st-done { width: min(560px, 100%); max-height: calc(100dvh - 32px); overflow-y: auto; text-align: left; }
.st-done h2 { text-align: center; }
.st-done-empty { margin: 0 0 14px; padding: 12px 14px; border-radius: 12px; background: rgba(255, 255, 255, .04); color: var(--muted); font-size: 13.5px; line-height: 1.5; }
.st-done-empty[hidden] { display: none; }
.st-done .st-result { display: grid; gap: 10px; margin-bottom: 14px; }
.st-done .st-result video { width: 100%; max-height: 46vh; border-radius: 12px; background: #000; }
.st-done .st-capd { margin-top: 8px; }
@media (min-width: 961px) {
  body.st-editing { overflow: hidden; }
  body.st-editing .st-main { height: calc(100dvh - var(--st-hh, 58px)); padding-top: 10px; padding-bottom: 14px; display: flex; flex-direction: column; overflow: hidden; }
  body.st-editing .st-source { flex: none; margin-top: 0; }
  body.st-editing .st-status { margin: 0; }
  body.st-editing .st-stage { flex: 1 1 auto; min-height: 0; margin-top: 10px; align-items: stretch; }
  body.st-editing .st-left { position: relative; top: 0; display: flex; flex-direction: column; min-height: 0; }
  body.st-editing .st-left > * { flex: none; }
  body.st-editing .st-left > .st-viewwrap { flex: 1 1 0; min-height: 0; padding: 10px; align-items: center; }
  body.st-editing .st-viewwrap .st-fig { height: 100%; min-height: 0; max-width: 100%; justify-content: center; }
  body.st-editing .st-viewwrap .st-fig canvas { max-height: 100%; min-height: 0; }
  body.st-editing .st-origcol { position: static; max-height: 100%; overflow-y: auto; }
  body.st-editing .st-panel { height: 100%; min-height: 0; gap: 10px; }
  body.st-editing .st-pscroll { flex: 1 1 0; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 0 6px 12px 0; scrollbar-gutter: stable; }
  body.st-editing .st-pfoot { position: static; }
  .st-pscroll::-webkit-scrollbar { width: 8px; }
  .st-pscroll::-webkit-scrollbar-thumb { background: #2a3336; border-radius: 8px; }
  .st-pscroll::-webkit-scrollbar-thumb:hover { background: #3a4549; }
}
@media (min-width: 961px) and (max-height: 820px) { body.st-editing .st-help, body.st-editing .st-grip { display: none; } }

/* ---- barra superior del editor y pie del panel más compactos ---- */
.st-lrow { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.st-lrow .st-proj { flex: 1; min-width: 0; margin: 0; }
.st-lrow .st-pvbar { flex: none; margin: 0; }
.st-pfoot { gap: 8px; padding: 10px; }
.st-pfoot .st-sub { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 4px 10px; }
.st-pfoot .st-sub .st-hint { grid-column: 1 / -1; margin: 0 !important; }
.st-pfoot-go { grid-template-columns: 1fr auto; }
.st-pfoot-go .st-cancel { grid-column: 1 / -1; }
.st-pfoot-go .st-pub { width: 48px; height: 50px; padding: 0; }
.st-pfoot-go .st-pub span { display: none; }
.st-pfoot #stExpHint { display: none; }
.st-pfoot:has(#stCancel:not([hidden])) #stExpHint { display: block; }
@media (max-width: 960px) { .st-lrow { flex-direction: column; align-items: stretch; } .st-lrow .st-pvbar { flex-wrap: wrap; } }

/* ---- menú contextual (clic derecho) ---- */
.st-ctx { position: fixed; z-index: 700; min-width: 232px; max-width: 300px; padding: 6px; border: 1px solid #2a3336; border-radius: 14px; background: rgba(16, 21, 23, .97); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); box-shadow: 0 18px 50px rgba(0, 0, 0, .6); animation: stCtxIn .12s ease-out; }
.st-ctx[hidden] { display: none; }
@keyframes stCtxIn { from { opacity: 0; transform: scale(.97); } }
.st-ctx button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 10px; border: 0; border-radius: 9px; background: transparent; color: var(--text); font: inherit; font-size: 13.5px; font-weight: 600; text-align: left; cursor: pointer; }
.st-ctx button .ic { flex: none; width: 18px; display: grid; place-items: center; color: var(--muted); }
.st-ctx button .tx { flex: 1; }
.st-ctx button kbd { flex: none; padding: 1px 6px; border-radius: 5px; border: 1px solid #34414a; background: #0b0f10; color: var(--muted); font: inherit; font-size: 10.5px; font-weight: 700; }
.st-ctx button:hover:not([disabled]), .st-ctx button:focus-visible { background: rgba(255, 255, 255, .07); outline: none; }
.st-ctx button:hover:not([disabled]) .ic, .st-ctx button:focus-visible .ic { color: var(--green); }
.st-ctx button.danger { color: #ff8a8a; }
.st-ctx button.danger .ic { color: #ff8a8a; }
.st-ctx button.danger:hover:not([disabled]) { background: rgba(255, 82, 82, .12); }
.st-ctx button[disabled] { opacity: .38; cursor: default; }
.st-ctx hr { margin: 5px 6px; border: 0; border-top: 1px solid #243034; }
.st-ctx-h { padding: 6px 10px 3px; color: #6f7a7e; font-size: 10.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }

/* ---- columna izquierda (pantallas anchas): vídeo original arriba y datos del clip debajo ---- */
.st-sidecol { display: contents; }
@media (min-width: 1101px) {
  body.st-editing .st-main { max-width: 1700px; }
  body.st-editing .st-stage { grid-template-columns: 272px minmax(0, 1fr) 400px; }
  body.st-editing .st-sidecol { display: flex; flex-direction: column; gap: 12px; min-width: 0; min-height: 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: #2a3336 transparent; }
  body.st-editing .st-sidecol > * { flex: none; }
  body.st-editing .st-sidecol .st-origcol { position: static; max-height: none; overflow: visible; }
  body.st-editing .st-sidecol .st-source { max-width: none; margin: 0; flex-direction: column; align-items: stretch; gap: 10px; }
  body.st-editing .st-sidecol .st-source .em-src { flex: none; flex-wrap: wrap; gap: 10px 12px; }
  body.st-editing .st-sidecol .st-source .em-src img { width: 96px; height: 54px; }
  body.st-editing .st-sidecol .em-src-tx b { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; line-height: 1.3; }
  body.st-editing .st-sidecol #stSrcChange { flex: 1 0 100%; height: 36px; }
  body.st-editing .st-sidecol .st-srcact { flex: 1 0 100%; }
  body.st-editing .st-sidecol .st-srcact .btn, body.st-editing .st-sidecol .st-srcact #stSrcChange { flex: 1 1 0; height: 36px; }
  body.st-editing .st-sidecol .st-source .st-load { flex: none; gap: 8px; }
  body.st-editing .st-sidecol .st-load input { height: 40px; font-size: 14px; padding: 0 12px; }
  body.st-editing .st-sidecol .st-load .btn { height: 40px; padding: 0 16px; }
}
@media (min-width: 1281px) { body.st-editing .st-stage.with-orig { grid-template-columns: minmax(300px, 0.78fr) minmax(0, 1.55fr) 400px; } }
/* con el original abierto en pantallas medianas, también va a la izquierda (no como una franja que se come la vista previa) */
@media (min-width: 961px) and (max-width: 1280px) {
  body.st-editing .st-stage.with-orig .st-origcol { grid-column: auto; flex-direction: column; flex-wrap: nowrap; }
  body.st-editing .st-stage.with-orig .st-oc-body { flex: none; width: 100%; }
  body.st-editing .st-stage.with-orig .st-oc-head { flex: none; }
}
@media (min-width: 961px) and (max-width: 1100px) { body.st-editing .st-stage.with-orig { grid-template-columns: 220px minmax(0, 1fr) 340px; } }
/* barra del proyecto: que se parta en dos filas si la columna del vídeo es estrecha */
.st-lrow { flex-wrap: wrap; row-gap: 6px; }
.st-lrow .st-proj { flex: 1 1 210px; min-width: 270px; }
.st-lrow .st-pvbar { flex: 1 1 auto; flex-wrap: wrap; }

/* ---- más sitio para la vista previa: sin filas vacías y la ayuda en una sola línea ---- */
.st-help { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 12px; margin-top: 6px; }
@media (min-width: 961px) {
  body.st-editing .st-status:empty { display: none; }
  body.st-editing .st-grip { display: none; }
  body.st-editing .st-main { padding-top: 8px; padding-bottom: 10px; }
  body.st-editing .st-stage { margin-top: 8px; }
  body.st-editing .st-ctl { margin-top: 6px; }
  body.st-editing .st-tools { padding-top: 6px; }
  body.st-editing .st-lrow { margin-bottom: 6px; }
}

/* ---- el panel de la derecha (y la columna izquierda) acaban a la altura de la línea de tiempo; la ayuda queda como pie debajo ---- */
@media (min-width: 961px) {
  body.st-editing .st-panel { height: auto; margin-bottom: 22px; }
  body.st-editing .st-sidecol { margin-bottom: 22px; }
}
@media (min-width: 961px) and (max-height: 820px) {
  body.st-editing .st-panel, body.st-editing .st-sidecol { margin-bottom: 0; }
}

/* ---- aviso de audio al crear el vídeo ---- */
.st-aud { width: min(460px, 100%); }
.st-aud-opts { display: grid; gap: 10px; margin: 0 0 12px; text-align: left; }
.st-aud-opt { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 10px 12px; padding: 13px 14px; border: 1px solid #2f3b40; border-radius: 14px; background: #10161a; cursor: pointer; transition: border-color .15s, background .15s; }
.st-aud-opt:hover { border-color: #3e4d53; }
.st-aud-opt:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }
.st-aud-opt[aria-checked=true] { border-color: var(--green); background: rgba(83, 252, 24, .07); box-shadow: inset 0 0 0 1px rgba(83, 252, 24, .25); }
.st-aud-h { display: flex; align-items: center; gap: 8px; min-width: 0; }
.st-aud-h b { font-size: 15px; }
.st-aud-badge { padding: 2px 8px; border-radius: 99px; background: var(--green); color: #0b0f10; font-size: 10.5px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; white-space: nowrap; }
.st-aud-play { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; border: 1px solid #2f3b40; border-radius: 10px; background: #182024; color: var(--text); font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; }
.st-aud-play:hover { border-color: rgba(83, 252, 24, .55); }
.st-aud-play.on { border-color: var(--green); color: var(--green); }
.st-aud-meter { position: relative; grid-column: 1 / -1; height: 8px; border-radius: 6px; background: #1b2427; }
.st-aud-meter i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 6px; background: linear-gradient(90deg, #2d7d12, #53fc18); transition: width .3s; }
.st-aud-opt[data-t=orig] .st-aud-meter i { background: linear-gradient(90deg, #4a565b, #7d8a90); }
.st-aud-meter u { position: absolute; top: -4px; bottom: -4px; width: 2px; margin-left: -1px; border-radius: 2px; background: #eef3f5; opacity: .75; }
.st-aud-s { grid-column: 1 / -1; color: var(--muted); font-size: 12.5px; }
.st-aud .st-aud-note { margin: 0 0 12px; font-size: 12.5px; }
.st-aud-ask { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 0 0 14px; color: var(--muted); font-size: 12.5px; cursor: pointer; }
.st-aud-ask input { accent-color: var(--green); }
.st-aud .st-cf-btns .btn { font-weight: 800; }
.st-aud p { white-space: pre-line; }
.st-audpref { margin: 6px 0 0; }
.st-audpref .st-link { padding: 0; }

/* ---- clic derecho en una zona sin función: una cruz pequeña que cae, se queda inclinada y acaba por volcarse y desvanecerse ---- */
.st-nofx { position: fixed; z-index: 800; width: 0; height: 0; pointer-events: none; --d: 1; }
.st-nofx svg { position: absolute; left: -8px; top: -8px; fill: none; stroke: #ff7b7b; stroke-width: 2.4; stroke-linecap: round; transform-origin: 50% 75%; filter: drop-shadow(0 2px 7px rgba(255, 90, 90, .5)); animation: stNoFall 1.35s linear forwards; will-change: transform, opacity; }
@keyframes stNoFall {
  0% { transform: translateY(-26px) scale(1.6) rotate(calc(var(--d) * -24deg)); opacity: 0; animation-timing-function: cubic-bezier(.3, 0, .2, 1); }
  13% { transform: translateY(0) scale(1) rotate(calc(var(--d) * 19deg)); opacity: 1; animation-timing-function: ease-out; }
  21% { transform: translateY(0) scale(.96) rotate(calc(var(--d) * 11deg)); animation-timing-function: ease-in-out; }
  29% { transform: translateY(0) scale(1) rotate(calc(var(--d) * 15deg)); animation-timing-function: linear; }
  50% { transform: translateY(0) scale(1) rotate(calc(var(--d) * 17deg)); opacity: 1; animation-timing-function: cubic-bezier(.6, .05, .9, .55); }
  78% { opacity: .55; }
  100% { transform: translate(calc(var(--d) * 15px), 22px) scale(.9) rotate(calc(var(--d) * 84deg)); opacity: 0; }
}
@keyframes stNoFade { 0% { opacity: 0; } 20% { opacity: 1; } 65% { opacity: 1; } 100% { opacity: 0; } }
/* con «reducir movimiento»: la cruz solo aparece y se desvanece */
@media (prefers-reduced-motion: reduce) { .st-nofx svg { animation-name: stNoFade; animation-duration: .8s; } }

/* ---- pestaña Efectos: vídeo y sonido, cada uno en su sección ---- */
.st-fxsec h3 { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.st-fxsec h3 svg { color: var(--green); flex: none; }
.st-fxsec > .st-hint { margin: 0 0 4px; }
.st-sech { margin: 16px 0 0; padding-top: 14px; border-top: 1px solid #1f282b; font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.st-fxsec .st-fxedit { margin: 12px 0 0; padding: 12px 14px 14px; border: 1px solid rgba(83, 252, 24, .35); border-radius: 12px; background: #0b1012; }
.st-fxsec .st-fxedit[hidden] { display: none; }
.st-fxsec .st-fxlist { margin-top: 8px; }
.st-sndgrid { display: grid; gap: 2px; margin-top: 10px; }
.st-snd { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 4px; padding: 2px 6px 2px 2px; border-radius: 14px; border: 1px solid transparent; transition: background .2s, border-color .2s; }
.st-snd:hover { background: rgba(255, 255, 255, .035); }
.st-snd.playing { background: rgba(83, 252, 24, .07); border-color: rgba(83, 252, 24, .26); }
.st-snd-main { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; align-items: center; gap: 12px; min-width: 0; padding: 5px 6px 5px 5px; border: 0; border-radius: 12px; background: none; color: var(--text); font: inherit; text-align: left; cursor: pointer; }
.st-snd-main:focus-visible, .st-snd-add:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }
.st-snd-ic { position: relative; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: #151b1d; border: 1px solid #2a3336; color: var(--green); transition: background .2s, border-color .2s, transform .15s; }
.st-snd-main:active .st-snd-ic { transform: scale(.94); }
.st-snd-ic > i { position: absolute; inset: 0; display: grid; place-items: center; font-style: normal; transition: opacity .18s, transform .22s cubic-bezier(.2, .8, .2, 1); }
.st-snd-ic .i-play, .st-snd-ic .i-pause { opacity: 0; transform: scale(.6); }
.st-snd-ic > i svg { display: block; }
.st-snd:hover .st-snd-ic, .st-snd-main:focus-visible .st-snd-ic { background: rgba(83, 252, 24, .12); border-color: rgba(83, 252, 24, .5); }
.st-snd:hover .i-snd, .st-snd-main:focus-visible .i-snd { opacity: 0; transform: scale(.6); }
.st-snd:hover .i-play, .st-snd-main:focus-visible .i-play { opacity: 1; transform: none; }
.st-snd.playing .st-snd-ic { background: var(--green); border-color: var(--green); color: #07130a; }
.st-snd.playing .i-snd, .st-snd.playing .i-play { opacity: 0; transform: scale(.6); }
.st-snd.playing .i-pause { opacity: 1; transform: none; }
.st-snd-ic .ring { position: absolute; left: 50%; top: 50%; width: 52px; height: 52px; margin: -26px 0 0 -26px; transform: rotate(-90deg); fill: none; stroke-width: 1.6; opacity: 0; pointer-events: none; }
.st-snd-ic .ring circle { fill: none; stroke-linecap: round; }
.st-snd-ic .ring .trk { stroke: rgba(83, 252, 24, .16); }
.st-snd-ic .ring .pg { stroke: var(--green); stroke-dasharray: 100; stroke-dashoffset: 100; }
.st-snd.playing .ring { opacity: 1; }
.st-snd.playing .ring .pg { animation: stSndRing var(--d, 1s) linear forwards; }
@keyframes stSndRing { from { stroke-dashoffset: 100; } to { stroke-dashoffset: 0; } }
.st-snd-t { display: grid; gap: 1px; min-width: 0; }
.st-snd-t b { font-size: 14px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.st-snd-t small { color: var(--muted); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.st-snd-d { color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.st-snd-add { display: grid; place-items: center; width: 34px; height: 34px; padding: 0; border-radius: 50%; border: 1px solid #34403f; background: transparent; color: var(--text); cursor: pointer; transition: background .18s, color .18s, border-color .18s, transform .15s; }
.st-snd-add:hover { background: var(--green); border-color: var(--green); color: #07130a; transform: scale(1.08); }
.st-snd-add:active { transform: scale(.94); }
@media (hover: none) { .st-snd .i-snd { opacity: 0; } .st-snd .i-play { opacity: 1; transform: none; } .st-snd.playing .i-play { opacity: 0; } }
.st-sndedit { margin-top: 12px; }
.st-fxsec #stSndMy[hidden] { display: none; }
.st-fxsec .st-sfxup-main { margin-top: 10px; }

/* ---- recorte de sonidos en la línea de tiempo (como en CapCut): se arrastra el borde de la barra ---- */
.st-fxa .th, .st-fxa .tz { position: absolute; top: 0; bottom: 0; width: 10px; z-index: 3; display: none; cursor: ew-resize; background: rgba(94, 234, 212, .92); }
.st-fxa .th { left: 0; border-radius: 5px 0 0 5px; }
.st-fxa .tz { right: 0; border-radius: 0 5px 5px 0; }
.st-fxa .th::after, .st-fxa .tz::after { content: ''; position: absolute; left: 50%; top: 50%; width: 2px; height: 8px; margin: -4px 0 0 -1px; border-radius: 2px; background: #07302b; }
.st-fxa:hover .th, .st-fxa:hover .tz, .st-fxa.on .th, .st-fxa.on .tz { display: block; }
.st-fxa .tz:hover, .st-fxa .th:hover { background: #99f6e4; }
.st-fxa.own.on span { left: 14px; }
.st-trimh { margin: 8px 0 0; }
#stUntrim { margin-top: 8px; }
#stUntrim[hidden] { display: none; }

/* ---- censurar: recuadro sobre el vídeo y panel de seguimiento ---- */
.st-fxc.k-blur { color: #f9a8d4; background: rgba(244, 114, 182, .16); border-color: rgba(244, 114, 182, .5); }
.st-fxc.k-pixel { color: #fda4af; background: rgba(251, 113, 133, .16); border-color: rgba(251, 113, 133, .5); }
.st-bbox { position: absolute; z-index: 3; box-sizing: border-box; border: 2px dashed #fff; border-radius: 6px; box-shadow: 0 0 0 1px rgba(0, 0, 0, .55), 0 0 18px rgba(255, 255, 255, .18); cursor: move; touch-action: none; }
.st-bbox.ell { border-radius: 50%; }
.st-bbox[hidden] { display: none; }
.st-bbox.drag { border-style: solid; border-color: #53fc18; }
.st-bbox .h { position: absolute; width: 14px; height: 14px; border-radius: 50%; background: #fff; border: 2px solid #0b0f10; box-shadow: 0 1px 6px rgba(0, 0, 0, .5); }
.st-bbox .tl { left: -8px; top: -8px; cursor: nwse-resize; } .st-bbox .tr { right: -8px; top: -8px; cursor: nesw-resize; }
.st-bbox .bl { left: -8px; bottom: -8px; cursor: nesw-resize; } .st-bbox .br { right: -8px; bottom: -8px; cursor: nwse-resize; }
.st-bbox:hover .h, .st-bbox.drag .h { background: #53fc18; }
.st-bbox-chip { position: absolute; left: 6px; top: -26px; padding: 3px 9px; border-radius: 999px; font-size: 11px; font-weight: 800; color: #0b0f10; background: #fff; white-space: nowrap; pointer-events: none; }
.st-blurh { margin: 6px 0 4px; }
.st-trk { display: grid; gap: 8px; }
.st-trk-go { width: 100%; height: 42px; justify-content: center; font-weight: 800; }
.st-trk-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 26px; }
.st-trk-row .st-hint { margin: 0; }
#stTrackClr[hidden] { display: none; }
body.st-tracking .st-left, body.st-tracking .st-panel, body.st-tracking .topbar { pointer-events: none; }
body.st-tracking .st-trk-go { pointer-events: auto; }
body.st-tracking .st-viewwrap { cursor: progress; }

/* ---- censurar v2: puntos clave, tramos sin tapar y recuadro apagado ---- */
.st-fxc .kd { position: absolute; bottom: 1px; width: 7px; height: 7px; margin-left: -3.5px; transform: rotate(45deg); background: #fff; border: 1px solid #9d174d; border-radius: 1px; z-index: 1; cursor: pointer; pointer-events: auto; }
.st-fxc .kd:hover { background: #fde047; }
.st-fxc .kh { position: absolute; top: 0; bottom: 0; background: repeating-linear-gradient(135deg, rgba(0, 0, 0, .55) 0 3px, rgba(0, 0, 0, .25) 3px 6px); pointer-events: none; border-left: 1px solid rgba(255, 255, 255, .35); border-right: 1px solid rgba(255, 255, 255, .35); }
.st-bbox.off { border-color: rgba(255, 255, 255, .45); box-shadow: none; opacity: .75; }
.st-bbox.off .st-bbox-chip { background: rgba(255, 255, 255, .8); }
.st-kf-row { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.st-kf-row.two > * { flex: 1; justify-content: center; }
.st-kf-row .st-kf-add { flex: 1; justify-content: center; }
.st-kfs { display: grid; gap: 8px; }
.kdi { display: inline-block; width: 8px; height: 8px; margin-right: 7px; transform: rotate(45deg); background: #f9a8d4; border-radius: 1px; vertical-align: 0; }

/* ---- barras de arriba y de abajo: marca discreta al pasar el ratón ---- */
.st-sel.bar { border-radius: 3px; background: none; box-shadow: none; animation: stBarIn .16s ease-out; }
.st-sel.bar .c { width: 11px; height: 11px; }
.st-sel.bar .tl { left: 4px; top: 4px; border-top-width: 2px; border-left-width: 2px; border-top-left-radius: 4px; }
.st-sel.bar .tr { right: 4px; top: 4px; border-top-width: 2px; border-right-width: 2px; border-top-right-radius: 4px; }
.st-sel.bar .bl { left: 4px; bottom: 4px; border-bottom-width: 2px; border-left-width: 2px; border-bottom-left-radius: 4px; }
.st-sel.bar .br { right: 4px; bottom: 4px; border-bottom-width: 2px; border-right-width: 2px; border-bottom-right-radius: 4px; }
.st-sel.bar.hover .c { border-color: rgba(255, 255, 255, .9); }
.st-sel.bar .st-sel-chip { display: none; }
@keyframes stBarIn { from { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .st-sel.bar { animation: none; } }

/* =====================================================================
   Línea de tiempo con varias pistas: elementos encima del vídeo, efectos y sonidos debajo, scroll vertical y altura ajustable
   ===================================================================== */
.st-tlbody { overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: #2a3336 transparent; margin-top: 0; }
.st-tlbody::-webkit-scrollbar { width: 8px; } .st-tlbody::-webkit-scrollbar-thumb { background: #2a3336; border-radius: 8px; }
.st-tlin { position: relative; min-height: 100%; }
.st-ruler { position: sticky; top: 0; z-index: 5; }
@media (min-width: 961px) { body.st-editing .st-tlbody { max-height: 38vh; } body.st-editing .st-tlbody.sized { max-height: none; } }
.st-tlsplit { position: relative; height: 14px; margin-top: 4px; cursor: ns-resize; touch-action: none; display: grid; place-items: center; }
.st-tlsplit i { width: 44px; height: 4px; border-radius: 4px; background: #2a3336; transition: background .15s, width .15s; }
.st-tlsplit:hover i, .st-tlsplit.drag i { background: var(--green); width: 64px; }
body.st-editing .st-tlsplit { display: grid; } .st-tlsplit[hidden] { display: none; }
.st-laylane { position: relative; border-bottom: 1px solid #1b2326; background: linear-gradient(180deg, #0d1316, #0b1013); }
.st-laylane[hidden] { display: none; }
.st-lay { position: absolute; height: 24px; box-sizing: border-box; display: flex; align-items: center; gap: 6px; padding: 0 12px; border-radius: 8px; border: 1px solid; font-size: 11px; font-weight: 800; letter-spacing: .01em; overflow: hidden; white-space: nowrap; cursor: grab; transition: box-shadow .15s; }
.st-lay svg { flex: none; }
.st-lay span { overflow: hidden; text-overflow: ellipsis; }
.st-lay.k-strip { color: #fda4af; background: rgba(251, 113, 133, .16); border-color: rgba(251, 113, 133, .5); }
.st-lay.k-text { color: #93c5fd; background: rgba(96, 165, 250, .16); border-color: rgba(96, 165, 250, .5); }
.st-lay.k-image { color: #c4b5fd; background: rgba(167, 139, 250, .16); border-color: rgba(167, 139, 250, .5); }
.st-lay:hover { box-shadow: 0 0 0 1px rgba(255, 255, 255, .2); }
.st-lay.on { box-shadow: 0 0 0 2px currentColor, 0 0 14px rgba(255, 255, 255, .12); z-index: 2; }
.st-lay .lh { position: absolute; top: 0; bottom: 0; width: 10px; cursor: ew-resize; display: none; background: currentColor; }
.st-lay .lh.l { left: 0; border-radius: 7px 0 0 7px; } .st-lay .lh.r { right: 0; border-radius: 0 7px 7px 0; }
.st-lay .lh::after { content: ''; position: absolute; left: 50%; top: 50%; width: 2px; height: 9px; margin: -4.5px 0 0 -1px; border-radius: 2px; background: rgba(0, 0, 0, .6); }
.st-lay:hover .lh, .st-lay.on .lh { display: block; }
.st-laylane.grabbing, .st-laylane.grabbing * { cursor: grabbing !important; }
.st-ltime { display: grid; gap: 8px; margin-top: 0; }
.st-ltime-r { font-variant-numeric: tabular-nums; font-size: 13px; }
.st-segbox { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding: 10px 12px; border: 1px solid rgba(83, 252, 24, .3); border-radius: 12px; background: rgba(83, 252, 24, .05); font-size: 12.5px; color: var(--muted); }
.st-segbox[hidden] { display: none; }
.st-segbox-h { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; min-width: 0; }
.st-segchip { padding: 2px 9px; border-radius: 999px; background: var(--green); color: #0b0f10; font-size: 11px; font-weight: 800; white-space: nowrap; }
#stSegGainBox h3 { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

/* ---- biblioteca: modo «Virales» ---- */
.em-lib-mode { display: inline-flex; gap: 4px; padding: 4px; margin: 0 0 12px; border-radius: 14px; border: 1px solid #2a3336; background: #0b0f10; }
.em-lib-mode button { display: inline-flex; align-items: center; gap: 7px; border: 0; background: transparent; color: var(--muted); font: inherit; font-size: 13.5px; font-weight: 800; padding: 8px 14px; border-radius: 10px; cursor: pointer; transition: background .15s, color .15s; }
.em-lib-mode button.on { background: rgba(83, 252, 24, .14); color: var(--green); box-shadow: inset 0 0 0 1px rgba(83, 252, 24, .35); }
.em-lib-mode button:hover:not(.on) { color: var(--text); }
.em-v-chips { margin-bottom: 2px; max-width: 100%; }
.em-v-chips button { display: inline-flex; align-items: center; gap: 6px; padding: 4px 11px 4px 5px; }
.em-v-chips button:first-child { padding-left: 11px; }
.em-v-chips img { width: 20px; height: 20px; border-radius: 50%; object-fit: cover; }
.em-v-chips .st { color: #fbbf24; font-size: 12px; margin-right: -2px; }
.em-lib-tg { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px 9px 10px; border-radius: 12px; border: 1px solid #2a3336; background: #0b0f10; color: var(--muted); font: inherit; font-size: 13.5px; font-weight: 700; cursor: pointer; }
.em-lib-tg i { width: 16px; height: 16px; border-radius: 5px; border: 1.5px solid #4a565b; transition: background .15s, border-color .15s; position: relative; }
.em-lib-tg.on { color: var(--green); border-color: rgba(83, 252, 24, .4); background: rgba(83, 252, 24, .08); }
.em-lib-tg.on i { background: var(--green); border-color: var(--green); }
.em-lib-tg.on i::after { content: ''; position: absolute; left: 4px; top: 1px; width: 4px; height: 8px; border: solid #0b0f10; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.em-lib:not(.is-viral) #emVSort, .em-lib:not(.is-viral) #emVWin, .em-lib:not(.is-viral) #emVIrl, .em-lib:not(.is-viral) .em-v-chips, .em-lib:not(.is-viral) #emLibMode + .em-v-chips { display: none !important; }
.em-lib.is-viral .em-lib-ch, .em-lib.is-viral #emLibSort, .em-lib.is-viral #emLibTime, .em-lib.is-viral .lib-idx, .em-lib.is-viral #emLibClear { display: none !important; }
.em-pc .hot { position: absolute; left: 6px; top: 6px; display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; border-radius: 50%; background: linear-gradient(135deg, #ff7a18, #ff3d3d); color: #fff; box-shadow: 0 4px 12px rgba(255, 90, 30, .45); text-decoration: none; }
.em-pc .who { display: flex; align-items: center; gap: 6px; color: var(--text); font-size: 12.5px; font-weight: 700; }
.em-pc .who img, .em-pc .who i { width: 18px; height: 18px; border-radius: 50%; object-fit: cover; background: #232b2e; flex: none; }
.em-pc .who span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.em-lib-tg.dim { opacity: .4; }

.st-zoom { display: grid; gap: 10px; }
.st-zchips { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.st-zchips .st-chip { justify-content: center; font-variant-numeric: tabular-nums; }
.st-zchips .st-chip.on { background: rgba(83, 252, 24, .14); border-color: rgba(83, 252, 24, .55); color: var(--green); }

/* ===== Música de fondo: sección y pista ===== */
.st-mu-drop { display: grid; justify-items: center; gap: 6px; width: 100%; padding: 22px 16px; border: 1.5px dashed #34414a; border-radius: 16px; background: linear-gradient(180deg, rgba(167,139,250,.07), rgba(167,139,250,.02)); color: var(--text); font: inherit; cursor: pointer;
  transition: border-color .2s, background .2s, transform .15s; }
.st-mu-drop svg { color: #a78bfa; margin-bottom: 2px; }
.st-mu-drop b { font-size: 14.5px; }
.st-mu-drop small { color: var(--muted); font-size: 12px; line-height: 1.4; }
.st-mu-drop:hover, #stMusic.drag .st-mu-drop { border-color: rgba(167,139,250,.75); background: rgba(167,139,250,.11); }
.st-mu-drop:active { transform: scale(.99); }
#stMusic.drag { outline: 2px dashed rgba(167,139,250,.7); outline-offset: 6px; border-radius: 14px; }
.st-mu-card { padding: 12px; border: 1px solid #2a3336; border-radius: 14px; background: #0b0f10; margin-bottom: 8px; }
.st-mu-card.miss { border-style: dashed; opacity: .85; }
.st-mu-top { display: flex; align-items: center; gap: 10px; }
.st-mu-play { display: grid; place-items: center; flex: none; width: 38px; height: 38px; border-radius: 50%; border: 1px solid rgba(167,139,250,.5); background: rgba(167,139,250,.12); color: #c4b5fd; cursor: pointer; transition: background .2s, color .2s, transform .15s; }
.st-mu-play:hover { background: rgba(167,139,250,.22); }
.st-mu-play:active { transform: scale(.94); }
.st-mu-play.on { background: #a78bfa; color: #120a24; border-color: #a78bfa; }
.st-mu-play:disabled { opacity: .4; cursor: default; }
.st-mu-meta { flex: 1; min-width: 0; }
.st-mu-meta b { display: block; font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.st-mu-meta small { color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.st-mu-wave { height: 44px; margin-top: 10px; color: #a78bfa; }
.st-mu-wave svg { display: block; width: 100%; height: 100%; fill: currentColor; }
.st-mu-wave rect.off { opacity: .22; }
.st-mu-ph { display: grid; place-items: center; height: 100%; color: var(--muted); font-style: normal; font-size: 12px; }
.st-mu-foot { display: flex; justify-content: flex-end; margin-top: 10px; }
.st-mulane { position: relative; height: 32px; overflow: hidden; border-top: 1px solid #1b2326; background: #0a0e10; touch-action: none; }
.st-mulane[hidden] { display: none; }
.st-mulane.grabbing, .st-mulane.grabbing * { cursor: grabbing !important; }
.st-mub { position: absolute; top: 4px; bottom: 4px; min-width: 14px; overflow: hidden; border-radius: 7px; border: 1px solid rgba(167,139,250,.55); background: rgba(167,139,250,.14); color: #c4b5fd; cursor: grab; box-sizing: border-box; }
.st-mub > svg { position: absolute; inset: 1px 2px; width: calc(100% - 4px); height: calc(100% - 2px); fill: currentColor; opacity: .6; pointer-events: none; }
.st-mub span { position: absolute; left: 7px; top: 50%; transform: translateY(-50%); display: flex; align-items: center; gap: 5px; max-width: calc(100% - 20px); font-size: 10.5px; font-weight: 800; color: #f5f3ff; text-shadow: 0 0 4px rgba(0,0,0,.85), 0 0 2px rgba(0,0,0,.9); white-space: nowrap; overflow: hidden; pointer-events: none; }
.st-mub.miss { border-style: dashed; opacity: .75; }
.st-mub.on { box-shadow: 0 0 0 2px #a78bfa, 0 0 14px rgba(167,139,250,.35); z-index: 2; }
.st-mub .mh, .st-mub .mz { position: absolute; top: 0; bottom: 0; width: 10px; z-index: 3; display: none; cursor: ew-resize; background: rgba(196,181,253,.92); }
.st-mub .mh { left: 0; border-radius: 6px 0 0 6px; }
.st-mub .mz { right: 0; border-radius: 0 6px 6px 0; }
.st-mub:hover .mh, .st-mub:hover .mz, .st-mub.on .mh, .st-mub.on .mz { display: block; }

/* música incluida */
.st-mu-lib { margin-top: 12px; border: 1px solid #263034; border-radius: 14px; background: #0b0f10; overflow: hidden; }
.st-mu-lib > summary { display: flex; align-items: center; justify-content: space-between; padding: 11px 14px; font-size: 12.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); cursor: pointer; list-style: none; }
.st-mu-lib > summary::-webkit-details-marker { display: none; }
.st-mu-lib > summary::after { content: ''; width: 8px; height: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-2px); transition: transform .2s; }
.st-mu-lib[open] > summary::after { transform: rotate(-135deg) translateY(-2px); }
.st-mu-lib > summary:hover { color: var(--text); }
.st-mu-li { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-top: 1px solid #1c2528; }
.st-mu-lp { display: grid; place-items: center; flex: none; width: 36px; height: 36px; border-radius: 50%; border: 1px solid rgba(167,139,250,.45); background: rgba(167,139,250,.1); color: #c4b5fd; cursor: pointer; transition: background .2s, color .2s, transform .15s; }
.st-mu-lp:hover { background: rgba(167,139,250,.22); }
.st-mu-lp:active { transform: scale(.94); }
.st-mu-lp.on { background: #a78bfa; border-color: #a78bfa; color: #120a24; }
.st-mu-lm { flex: 1; min-width: 0; }
.st-mu-lm b { display: block; font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.st-mu-lm small { color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.st-mu-use { min-width: 64px; justify-content: center; }
.st-mu-use:disabled { opacity: .55; cursor: default; }
.st-mu-cr { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 10px; padding-top: 10px; border-top: 1px dashed #26323a; }
.st-mu-cr small { color: #b8a8f6; font-size: 11.5px; line-height: 1.35; }

/* estado de carga de la música */
.st-mu-status { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; padding: 10px 12px; border: 1px solid rgba(167,139,250,.4); border-radius: 12px; background: rgba(167,139,250,.09); color: #ddd6fe; font-size: 13px; font-weight: 700; }
.st-mu-status span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.st-mu-status b { font-variant-numeric: tabular-nums; color: #fff; }
.st-mu-spin, .st-mu-lp.wait::after { width: 16px; height: 16px; flex: none; border-radius: 50%; border: 2px solid rgba(196,181,253,.3); border-top-color: #c4b5fd; animation: stMuSpin .8s linear infinite; }
@keyframes stMuSpin { to { transform: rotate(360deg); } }
.st-mu-bar { height: 4px; margin: -4px 4px 10px; border-radius: 4px; background: rgba(167,139,250,.16); overflow: hidden; }
.st-mu-bar i { display: block; height: 100%; width: 0; border-radius: 4px; background: linear-gradient(90deg, #8b5cf6, #c4b5fd); transition: width .25s ease; }
.st-mu-bar.ind i { width: 38%; animation: stMuInd 1.2s ease-in-out infinite; }
@keyframes stMuInd { 0% { transform: translateX(-110%); } 100% { transform: translateX(300%); } }
.st-mu-lp.wait svg { display: none; }
.st-mu-lp.wait { position: relative; }
.st-mu-lp.wait::after { content: ''; border-color: rgba(18,10,36,.25); border-top-color: #120a24; }
.st-mu-drop:disabled { opacity: .55; cursor: default; }
@media (prefers-reduced-motion: reduce) { .st-mu-spin, .st-mu-lp.wait::after { animation-duration: 2.4s; } .st-mu-bar.ind i { animation: none; width: 100%; opacity: .5; } }

/* ===== Descargar y publicar: texto para publicar ===== */
.st-done, .st-done textarea { scrollbar-width: thin; scrollbar-color: #2a3336 transparent; color-scheme: dark; }
.st-cp-field { margin-bottom: 12px; }
.st-cp-field textarea { box-sizing: border-box; display: block; width: 100%; min-height: 104px; margin: 0; padding: 12px 14px; overflow-x: hidden; line-height: 1.5; border-radius: 12px; resize: vertical; }
.st-cp-count { display: block; margin: 5px 3px 0; text-align: right; font-size: 11.5px; color: #66727a; font-variant-numeric: tabular-nums; }
.st-cp-emo { display: grid; grid-template-columns: 1fr 1fr; gap: 3px; padding: 3px; margin-bottom: 14px; border: 1px solid #2a3336; border-radius: 13px; background: #0b0f10; box-shadow: inset 0 1px 3px rgba(0,0,0,.4); }
.st-cp-emo button { height: 36px; padding: 0 10px; border: 0; border-radius: 10px; background: transparent; color: var(--muted); font: 700 13.5px/1 inherit; cursor: pointer; transition: background .2s, color .2s, box-shadow .2s; }
.st-cp-emo button:hover { color: var(--text); }
.st-cp-emo button.on { background: rgba(83,252,24,.14); color: var(--green); box-shadow: inset 0 0 0 1px rgba(83,252,24,.4); }
.st-cp-go { display: inline-flex; align-items: center; justify-content: center; gap: 9px; width: 100%; height: 46px; border-radius: 13px; font-size: 15px; font-weight: 800; box-shadow: 0 14px 34px -16px rgba(83,252,24,.6); }
.st-cp-go svg { flex: none; }
.st-cp-go.busy svg { animation: stCpPulse 1s ease-in-out infinite; }
@keyframes stCpPulse { 50% { transform: scale(.78); opacity: .6; } }
@media (prefers-reduced-motion: reduce) { .st-cp-go.busy svg { animation: none; } }
#stCpOut:not(:empty) { margin-top: 14px; }
.st-cp-row p { white-space: pre-line; }

/* ===== Descargar y publicar: en pantallas anchas, el vídeo a la izquierda y el texto a la derecha, sin hacer scroll ===== */
@media (min-width: 880px) {
  .st-done:has(.st-result:not([hidden])) { width: min(1060px, 100%); display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); grid-template-rows: auto 1fr; column-gap: 28px; align-items: start; padding: 26px 28px 24px; }
  .st-done:has(.st-result:not([hidden])) h2 { grid-column: 1 / -1; margin: 0 0 16px; }
  .st-done:has(.st-result:not([hidden])) .st-result { grid-column: 1; grid-row: 2; margin: 0; }
  .st-done:has(.st-result:not([hidden])) .st-capd { grid-column: 2; grid-row: 2; margin-top: 0; }
  .st-done:has(.st-result:not([hidden])) .st-result video { max-height: min(60vh, 560px); }
  .st-done:has(.st-result:not([hidden])) { padding-top: 22px; }
  .st-done:has(.st-result:not([hidden])) h2 { margin-bottom: 12px; }
  .st-done:has(.st-result:not([hidden])) .st-cp-field textarea { min-height: 72px; }
  .st-done:has(.st-result:not([hidden])) .st-cp-emo { margin-bottom: 10px; }
  .st-done:has(.st-result:not([hidden])) #stCpOut:not(:empty) { margin-top: 10px; display: grid; gap: 7px; }
  .st-done:has(.st-result:not([hidden])) .st-cp-row { padding: 8px 8px 8px 11px; }
  .st-done:has(.st-result:not([hidden])) { max-height: calc(100dvh - 16px); padding-top: 18px; padding-bottom: 18px; }
  .st-done:has(.st-result:not([hidden])) h2 { margin-bottom: 8px; }
  .st-done:has(.st-result:not([hidden])) .st-cp-field textarea { min-height: 64px; }
  .st-done:has(.st-result:not([hidden])) .st-capd > summary { padding-top: 8px; padding-bottom: 8px; }
  .st-done:has(.st-result:not([hidden])) #stCpNote { margin: 6px 0 0; font-size: 11.5px; line-height: 1.35; }
}
/* Mis fotogramas y filtros de imagen */
.st-frm { margin-top: 10px; padding: 10px; border: 1px solid #2a3336; border-radius: 12px; background: var(--surface-2); }
.st-frm-h { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; font-size: 12.5px; font-weight: 700; }
.st-frm-h .st-link { padding: 0; font-weight: 600; color: var(--green); text-decoration: none; }
.st-frm-h .st-link:hover { text-decoration: underline; }
.st-frm-g { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; max-height: 190px; overflow-y: auto; }
.st-frm-i { position: relative; }
.st-frm-b { display: block; width: 100%; aspect-ratio: 4 / 3; padding: 0; border: 1px solid #2a3336; border-radius: 8px; overflow: hidden; background: #10171a; cursor: pointer; transition: border-color .15s; }
.st-frm-b:hover, .st-frm-b:focus-visible { border-color: var(--green); }
.st-frm-b img { width: 100%; height: 100%; object-fit: contain; display: block; }
.st-frm-x { position: absolute; top: 3px; right: 3px; width: 20px; height: 20px; padding: 0; border: 0; border-radius: 50%; background: rgba(8, 12, 14, .78); color: #fff; font: inherit; font-size: 14px; line-height: 20px; cursor: pointer; opacity: 0; transition: opacity .12s; }
.st-frm-i:hover .st-frm-x, .st-frm-x:focus-visible { opacity: 1; }
.st-frm-x:hover { background: var(--danger); }
.st-flt { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 6px; }
.st-flt button { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 4px 4px 5px; border: 1px solid #2a3336; border-radius: 9px; background: var(--surface-2); color: var(--muted); font: inherit; font-size: 11.5px; font-weight: 600; cursor: pointer; transition: border-color .15s, color .15s; }
.st-flt button canvas { width: 100%; height: auto; aspect-ratio: 64 / 44; border-radius: 5px; display: block; }
.st-flt button:hover { border-color: #3a484c; color: var(--text); }
.st-flt button.on { border-color: var(--green); color: var(--text); }
.st-acct-menu a.adm { display: block; padding: 10px; border-radius: 10px; color: var(--text); font-size: 13.5px; font-weight: 600; text-decoration: none; }
.st-acct-menu a.adm:hover { background: rgba(255, 255, 255, .06); }
/* Subtítulos automáticos */
.st-subs { display: flex; align-items: center; gap: 12px; width: 100%; margin-top: 8px; padding: 12px 14px; border: 1px solid #2a3336; border-radius: 12px; background: var(--surface-2); color: var(--text); font: inherit; text-align: left; cursor: pointer; transition: border-color .15s, transform .12s; }
.st-subs:hover:not(:disabled) { border-color: var(--green); transform: translateY(-1px); }
.st-subs svg { color: var(--green); flex: none; }
.st-subs b { display: block; font-size: 13.5px; font-weight: 700; }
.st-subs small { display: block; margin-top: 1px; color: var(--muted); font-size: 12px; line-height: 1.35; }
.st-subs.busy { cursor: progress; border-color: var(--green); }
.st-subs.busy small { color: var(--green); }
.st-spre { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin: 6px 0 4px; }
.st-spre button { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 4px 6px; border: 1px solid #2a3336; border-radius: 9px; background: #0c1113; font-size: 20px; line-height: 1.1; cursor: pointer; transition: border-color .15s; }
.st-spre button span { color: var(--muted); font: 600 11.5px Inter, system-ui, sans-serif; }
.st-spre button:hover { border-color: #3a484c; }
.st-sublist { display: flex; flex-direction: column; gap: 4px; max-height: 240px; overflow-y: auto; margin: 8px 0 6px; padding-right: 2px; }
.st-sl { display: flex; align-items: center; gap: 6px; }
.st-sl .t { flex: none; min-width: 48px; padding: 5px 6px; border: 0; border-radius: 6px; background: rgba(255, 255, 255, .05); color: var(--muted); font: 600 11.5px/1 Inter, system-ui, sans-serif; font-variant-numeric: tabular-nums; cursor: pointer; }
.st-sl .t:hover { color: var(--green); }
.st-sl input { flex: 1; min-width: 0; padding: 6px 8px; border: 1px solid #2a3336; border-radius: 7px; background: #0c1113; color: var(--text); font: inherit; font-size: 13px; }
.st-sl input:focus { outline: 0; border-color: var(--green); }
.st-sl .x { flex: none; width: 22px; height: 22px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: var(--muted); font-size: 16px; line-height: 22px; cursor: pointer; opacity: .6; }
.st-sl .x:hover { opacity: 1; color: var(--danger); }
.st-lay.k-subs { color: #86efac; background: rgba(83, 252, 24, .12); border-color: rgba(83, 252, 24, .45); }
/* transiciones entre tramos: marcador en los cortes que ya tienen una y sección en Efectos */
.st-trb { position: absolute; top: 50%; z-index: 6; width: 24px; height: 24px; margin: -12px 0 0 -12px; padding: 0; display: grid; place-items: center; border-radius: 50%; border: 0; background: var(--green); color: #0b0e0f; cursor: grab; pointer-events: auto; box-shadow: 0 2px 8px rgba(0, 0, 0, .5), 0 0 0 2px rgba(11, 14, 15, .8); transition: transform .15s, box-shadow .15s; touch-action: none; }
.st-trb::before { content: ''; position: absolute; inset: -8px; }
.st-trb:hover { transform: scale(1.12); }
.st-trb.dragging { cursor: grabbing; transform: scale(1.2); z-index: 9; transition: none; }
.st-trb.tgt { box-shadow: 0 0 0 3px rgba(83, 252, 24, .45), 0 2px 8px rgba(0, 0, 0, .5); }
.st-trb.drop { box-shadow: 0 0 0 4px rgba(83, 252, 24, .75); }
/* guía de cada corte: se ilumina al elegir transición o arrastrarla */
.st-cut { position: absolute; top: 0; bottom: 0; z-index: 4; width: 2px; margin-left: -1px; border-radius: 2px; background: transparent; pointer-events: none; transition: background .15s, width .15s, margin .15s; }
.st-cut.tgt { background: rgba(83, 252, 24, .8); }
body.tr-drag .st-cut { background: rgba(255, 255, 255, .35); }
.st-cut.drop { width: 4px; margin-left: -2px; background: var(--green); }
/* rampas de volumen de entrada y salida dentro del tramo */
.st-vf { position: absolute; top: 0; bottom: 0; pointer-events: none; z-index: 2; }
.st-vf.in { left: 0; background: linear-gradient(to top right, transparent calc(50% - 1px), rgba(255, 255, 255, .85) 50%, transparent calc(50% + 1px)), linear-gradient(90deg, rgba(0, 0, 0, .55), rgba(0, 0, 0, 0)); }
.st-vf.out { right: 0; background: linear-gradient(to top left, transparent calc(50% - 1px), rgba(255, 255, 255, .85) 50%, transparent calc(50% + 1px)), linear-gradient(270deg, rgba(0, 0, 0, .55), rgba(0, 0, 0, 0)); }
.st-trgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 10px; }
.trk { display: flex; flex-direction: column; align-items: center; gap: 7px; padding: 7px 5px 9px; border: 1px solid var(--p-line-hi, #2a3336); border-radius: 13px; background: rgba(255, 255, 255, .03); color: var(--muted); font: inherit; font-size: 12.5px; font-weight: 700; cursor: grab; touch-action: pan-y; transition: border-color .15s, background .15s, color .15s, transform .12s; }
.trk:hover { color: var(--text); background: rgba(255, 255, 255, .07); }
.trk:active { transform: scale(.97); }
.trk.on { border-color: var(--green); background: rgba(83, 252, 24, .1); color: var(--green); }
.trp { display: block; width: 100%; height: 38px; border-radius: 9px; background: linear-gradient(90deg, #2f7d62 0 50%, #7c5aa8 50%); pointer-events: none; }
.trp-dissolve { background: linear-gradient(90deg, #2f7d62 4%, #7c5aa8 96%); }
.trp-slide { position: relative; background: linear-gradient(90deg, #7c5aa8 0 40%, #2f7d62 40% 100%); }
.trp-slide::after { content: '\2192'; position: absolute; inset: 0; display: grid; place-items: center; color: #fff; font-style: normal; font-size: 19px; font-weight: 800; text-shadow: 0 1px 5px rgba(0, 0, 0, .6); }
.trp-zoom { background: radial-gradient(circle at 50% 50%, rgba(255, 255, 255, .7) 0, rgba(255, 255, 255, 0) 55%), linear-gradient(90deg, #2f7d62 0 50%, #7c5aa8 50%); box-shadow: inset 0 0 0 5px rgba(0, 0, 0, .18); }
.st-trnow { margin: 12px 0 0; padding: 9px 12px; border-radius: 10px; background: rgba(83, 252, 24, .08); color: var(--green); font-size: 12.5px; font-weight: 700; }
.st-trnow.off { background: rgba(255, 255, 255, .04); color: var(--muted); font-weight: 600; line-height: 1.45; }
.st-trd { margin-top: 10px; }
.st-trd.off { opacity: .4; }
.st-trlinks { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 8px; }
.st-trlinks .st-link[hidden] { display: none; }
.st-trghost { position: fixed; z-index: 400; width: 84px; margin: -30px 0 0 -42px; padding: 5px 5px 6px; display: flex; flex-direction: column; align-items: center; gap: 4px; border: 1px solid var(--green); border-radius: 12px; background: rgba(15, 20, 23, .94); color: var(--green); font-size: 11.5px; font-weight: 700; box-shadow: 0 14px 34px rgba(0, 0, 0, .6); pointer-events: none; }
.st-trghost[hidden] { display: none; }
.st-trghost .trp { height: 26px; }
@media (max-width: 960px) { .st-desk { display: none; } }

/* zona segura de las redes: capa sobre la vista previa (nunca se exporta) */
.st-fig { position: relative; }
.st-safe { position: absolute; z-index: 6; pointer-events: none; overflow: hidden; border-radius: 6px; }
.st-safe[hidden] { display: none; }
.st-safe svg { position: absolute; inset: 0; display: block; width: 100%; height: 100%; }
.st-safe.app svg { filter: drop-shadow(0 2px 5px rgba(0, 0, 0, .55)); }
.st-safe-l { position: absolute; transform: translate(-50%, -50%); padding: 3px 8px; border-radius: 999px; background: rgba(0, 0, 0, .62); color: #fff; font-size: 10.5px; font-weight: 700; letter-spacing: .01em; width: max-content; max-width: 78%; text-align: center; line-height: 1.2; }
.st-safe-l.v { transform: translate(-50%, -50%) rotate(-90deg); }
#stSafeOpts .st-seg { margin-top: 10px; }
.st-safe-warn { margin: 10px 0 0; padding: 9px 12px; border-radius: 10px; background: rgba(245, 197, 66, .1); color: #f5c542; font-size: 12.5px; line-height: 1.45; font-weight: 600; }
.st-safe-warn[hidden] { display: none; }
#stSafeGrp[hidden], #stSafeBtn[hidden] { display: none !important; }
/* texto para publicar: «Escuchar lo que dicen» y la transcripción */
.st-cp-listen { width: 100%; margin: 4px 0 8px; gap: 8px; }
.st-cp-tr { margin: 2px 0 10px; padding: 10px 12px 8px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-2, rgba(255, 255, 255, .03)); }
.st-cp-tr[hidden] { display: none; }
.st-cp-trh { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 4px; }
.st-cp-trh b { font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.st-cp-trx { border: 0; background: transparent; color: var(--muted); font: inherit; font-size: 12.5px; cursor: pointer; padding: 2px 4px; }
.st-cp-trx:hover { color: var(--text); }
.st-cp-tr p { margin: 0 0 6px; font-size: 13px; line-height: 1.5; max-height: 120px; overflow: auto; }
.st-cp-tr p.st-hint { margin: 0; max-height: none; }

/* texto de SEO de la página: se ve en la portada del Studio (misma familia de diseño que la portada principal) y se oculta mientras editas */
body.st-editing .st-seo { display: none; }
.st-seo { position: relative; margin-top: 110px; padding: 84px 0 36px; }
.st-seo::before { content: ''; position: absolute; top: 0; left: 50%; width: min(720px, 82%); height: 1px; transform: translateX(-50%); background: linear-gradient(90deg, transparent, rgba(83, 252, 24, .6), transparent); }
.st-seo::after { content: ''; position: absolute; top: 0; left: 50%; width: 760px; max-width: 100%; height: 340px; transform: translateX(-50%); pointer-events: none; background: radial-gradient(ellipse at 50% 0%, rgba(83, 252, 24, .11), transparent 70%); }
.st-seo .seo-feats li { gap: 10px; }
.st-seo .seo-feats li h3 { margin: 4px 0 0; font-size: 17px; letter-spacing: -.01em; line-height: 1.25; }
.st-seo .seo-panel:nth-child(2) { display: flex; flex-direction: column; }
.st-fmts { list-style: none; margin: auto 0; padding: 0 0 6px; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
.seo-panel .st-fmts li { display: grid; grid-template-rows: 92px auto auto; justify-items: center; align-items: end; row-gap: 4px; padding: 0; text-align: center; min-width: 0; }
.seo-panel .st-fmts li::after { content: none !important; }
.st-fmts b, .st-fmts small { align-self: start; }
.st-fmts .shape { display: block; max-width: 100%; border-radius: 8px; border: 2px solid rgba(83, 252, 24, .55); background: linear-gradient(160deg, rgba(83, 252, 24, .2), rgba(83, 252, 24, .03)); box-shadow: 0 8px 22px -12px rgba(83, 252, 24, .5); transition: transform .3s cubic-bezier(.2, .8, .2, 1), border-color .3s; }
.st-fmts li:hover .shape { transform: translateY(-3px); border-color: var(--green); }
.st-fmts b { margin-top: 8px; font-size: 18px; letter-spacing: -.01em; }
.st-fmts small { color: #97a4a8; font-size: 12px; line-height: 1.35; }
.st-seo-note { margin: 56px 0 0; text-align: center; color: #6f7a7e; font-size: 12.5px; }
@media (max-width: 960px) { .st-fmts { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 20px; } }
@media (max-width: 560px) { .st-seo { margin-top: 70px; padding-top: 56px; } .st-fmts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

body.st-page .site-footer { display: block; margin-top: auto; }
body.st-editing .site-footer { display: none; }
.st-main { width: 100%; box-sizing: border-box; }

.st-viewwrap { position: relative; }
#stPillSegRow { margin: 2px 0 14px; }
#stPillSegRow .st-check { margin-top: 10px; }
#stPillSegRow .st-hint { margin: 6px 0 0; }
