/* Coqueta Foto dentro de la web: la barra de MyPrompTribe arriba, el editor ocupando todo lo demás, el panel
   «Mis herramientas» a la derecha y la herramienta elegida encima del editor. */
html, body.cf-shell { height: 100%; }
body.cf-shell { margin: 0; padding: 0 !important; display: flex; flex-direction: column; height: 100dvh; overflow: hidden; background: var(--bg, #0d0c15); }
body.cf-shell .tool-shell { display: contents; }
body.cf-shell .cf-shell__header { flex: none; position: relative; z-index: 5; display: flex; flex-direction: row; align-items: center; flex-wrap: nowrap !important;
  gap: 10px; min-height: 0; padding: 8px 16px; margin: 0; }
body.cf-shell .cf-shell__header .tool-header__nav { flex: 1 1 auto; width: auto !important; min-width: 0; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
body.cf-shell .cf-shell__header .tool-header__nav::-webkit-scrollbar { display: none; }
body.cf-shell .cf-shell__header .tool-header__nav a { white-space: nowrap; }
.cf-shell__title { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; white-space: nowrap; flex: none; }
.cf-shell__title img { border-radius: 6px; }

.cf-btn { display: inline-flex; align-items: center; gap: 8px; flex: none; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--border-strong, rgba(255, 255, 255, .18));
  background: var(--surface-2, #1d1b2a); color: inherit; font: inherit; font-size: .9rem; font-weight: 600; cursor: pointer; white-space: nowrap; }
.cf-btn:hover { background: var(--surface-3, #252238); border-color: rgba(139, 109, 255, .6); }
.cf-btn:focus-visible, .cf-tool:focus-visible, .cf-icon:focus-visible { outline: 2px solid var(--focus, #8ce7ff); outline-offset: 2px; }
.cf-btn--tools { background: linear-gradient(125deg, var(--action, #6552ff), #9a67f5); border-color: rgba(255, 255, 255, .14); color: #fff; box-shadow: 0 8px 22px rgba(101, 82, 255, .28); }
.cf-btn--tools:hover { filter: brightness(1.1); background: linear-gradient(125deg, var(--action, #6552ff), #9a67f5); }
.cf-btn--ghost { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .2); }

.cf-shell__main { flex: 1; min-height: 0; display: flex; position: relative; max-width: none !important; width: 100%; margin: 0 !important; padding: 0 !important; background: var(--bg, #0d0c15); }
#cf-editor { flex: 1; width: 100%; height: 100%; border: 0; display: block; background: var(--bg, #0d0c15); }

/* panel «Mis herramientas» */
.cf-tools { position: absolute; top: 0; right: 0; bottom: 0; z-index: 3; width: min(360px, 100%); display: flex; flex-direction: column; gap: 12px; padding: 16px;
  overflow-y: auto; background: rgba(18, 17, 28, .97); border-left: 1px solid var(--border, rgba(255, 255, 255, .1)); backdrop-filter: blur(12px); box-shadow: -18px 0 40px rgba(0, 0, 0, .35);
  color: var(--text, #f7f6fb); animation: cf-in .18s ease-out; }
.cf-tools[hidden] { display: none; }
@keyframes cf-in { from { transform: translateX(24px); opacity: 0; } }
.cf-tools__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.cf-tools__eyebrow { margin: 0; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--brand-ink, #c1b4ff); font-weight: 700; }
.cf-tools h2 { margin: 2px 0 0; font-size: 1.25rem; }
.cf-tools__lead, .cf-tools__note { margin: 0; font-size: .86rem; line-height: 1.45; color: var(--text-soft, #c3bfd0); }
.cf-tools__note { margin-top: auto; font-size: .78rem; }
.cf-tools__status { margin: 0; min-height: 1.2em; font-size: .84rem; color: var(--cyan, #4dd8ff); }
.cf-icon { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; border: 1px solid rgba(255, 255, 255, .15); background: transparent; color: inherit; cursor: pointer; }
.cf-icon:hover { background: rgba(255, 255, 255, .08); }
.cf-source { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; border-radius: 12px; background: rgba(255, 255, 255, .06); }
.cf-source label { position: relative; cursor: pointer; }
.cf-source input { position: absolute; opacity: 0; pointer-events: none; }
.cf-source span { display: block; padding: 8px 6px; border-radius: 9px; text-align: center; font-size: .84rem; font-weight: 600; color: var(--text-soft, #c3bfd0); }
.cf-source input:checked + span { background: var(--brand-soft, rgba(139, 109, 255, .16)); color: #fff; box-shadow: inset 0 0 0 1px rgba(139, 109, 255, .5); }
.cf-source input:focus-visible + span { outline: 2px solid var(--focus, #8ce7ff); }
.cf-tools__list { display: grid; gap: 8px; }
.cf-tool { display: grid; grid-template-columns: 40px 1fr auto; align-items: center; gap: 12px; width: 100%; padding: 10px 12px; border-radius: 14px; text-align: left;
  border: 1px solid rgba(255, 255, 255, .1); background: rgba(255, 255, 255, .04); color: inherit; font: inherit; cursor: pointer; transition: background .15s, border-color .15s, transform .15s; }
.cf-tool:hover { background: var(--brand-soft, rgba(139, 109, 255, .16)); border-color: rgba(139, 109, 255, .5); transform: translateY(-1px); }
.cf-tool img { border-radius: 10px; background: rgba(255, 255, 255, .06); }
.cf-tool__text { display: grid; gap: 2px; min-width: 0; }
.cf-tool__text b { font-size: .95rem; }
.cf-tool__text small { font-size: .78rem; line-height: 1.35; color: var(--text-soft, #c3bfd0); }
.cf-tool__tag { font-size: .68rem; font-weight: 700; padding: 3px 7px; border-radius: 999px; background: var(--cyan-soft, rgba(77, 216, 255, .14)); color: var(--cyan, #4dd8ff); white-space: nowrap; }

/* la herramienta, encima del editor */
.cf-run { position: absolute; inset: 0; z-index: 4; display: flex; flex-direction: column; background: var(--bg, #0d0c15); }
.cf-run[hidden] { display: none; }
.cf-run__bar { flex: none; display: flex; align-items: center; gap: 12px; padding: 8px 14px; background: var(--surface, #171622); border-bottom: 1px solid var(--border, rgba(255, 255, 255, .1)); color: var(--text, #f7f6fb); }
.cf-run__icon { border-radius: 8px; flex: none; }
.cf-run__text { flex: 1; min-width: 0; }
.cf-run__text h2 { margin: 0; font-size: 1rem; }
.cf-run__text p { margin: 0; font-size: .8rem; color: var(--text-soft, #c3bfd0); overflow: hidden; text-overflow: ellipsis; }
#cf-run-frame { flex: 1; width: 100%; border: 0; display: block; background: var(--bg, #0d0c15); }

.cf-toast { position: absolute; left: 50%; top: 14px; z-index: 6; transform: translateX(-50%); max-width: min(520px, calc(100% - 32px)); padding: 10px 16px; border-radius: 12px;
  background: var(--surface-3, #252238); color: #fff; font-size: .9rem; box-shadow: 0 10px 30px rgba(0, 0, 0, .4); border: 1px solid rgba(255, 255, 255, .12); }
.cf-toast[data-kind="ok"] { border-color: rgba(120, 220, 170, .55); }
.cf-toast[data-kind="error"] { border-color: rgba(255, 120, 120, .6); }
.cf-toast[hidden] { display: none; }

/* pantallas pequeñas: barra compacta; en el móvil en horizontal, aún más */
@media (max-width: 900px) { .cf-shell__title { display: none; } }
@media (max-width: 720px), (max-height: 520px) {
  body.cf-shell .cf-shell__header { padding: 4px 10px; gap: 6px; }
  body.cf-shell .cf-shell__header .brand-lockup__name { display: none; }
  body.cf-shell .cf-shell__header .brand-lockup__mark { width: 26px; height: 26px; }
  body.cf-shell .cf-shell__header .tool-header__nav { gap: 2px; }
  body.cf-shell .cf-shell__header .tool-header__nav a:not(.brand-lockup) { min-height: 32px; padding: 6px 8px; font-size: .76rem; }
  .cf-btn { padding: 6px 10px; }
  #cf-fullscreen span { display: none; }
  .cf-run__text p { display: none; }
}
@media (max-width: 480px) { .cf-btn--tools span { display: none; } .cf-tools { width: 100%; border-left: 0; } }
@media (prefers-reduced-motion: reduce) { .cf-tools { animation: none; } }

/* móvil en vertical: aviso para girarlo (el editor está pensado para pantallas anchas) */
.cf-rotate { display: none; position: absolute; left: 12px; right: 12px; top: 12px; z-index: 6; align-items: center; gap: 10px; padding: 10px 10px 10px 14px; border-radius: 14px;
  background: rgba(29, 27, 42, .97); color: #fff; font-size: .88rem; line-height: 1.35; border: 1px solid rgba(139, 109, 255, .45); box-shadow: 0 10px 30px rgba(0, 0, 0, .4); }
.cf-rotate span { flex: 1; }
@media (orientation: portrait) and (max-width: 600px) { .cf-rotate { display: flex; } }
body.cf-rotate-off .cf-rotate { display: none; }
/* Coqueta Motion: el clip del proyecto que se manda a la herramienta */
.cf-source-label { font-size: .8rem; font-weight: 600; color: var(--text-soft, #c3bfd0); }
.cf-select { width: 100%; padding: 9px 10px; border-radius: 10px; border: 1px solid var(--border-strong, rgba(255, 255, 255, .18)); background: var(--surface-2, #1d1b2a); color: var(--text, #f7f6fb); font: inherit; font-size: .86rem; }

/* Versiones del asistente: miniaturas y comparador con cortina */
.cf-versions { position: absolute; inset: 0; z-index: 7; display: flex; flex-direction: column; background: var(--bg, #0d0c15); color: var(--text, #f7f6fb); }
.cf-versions__body { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 14px; padding: 14px; }
.cf-versions__grid { overflow-y: auto; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; align-content: start; }
.cf-versions__card { display: flex; flex-direction: column; gap: 4px; padding: 6px; border-radius: 12px; border: 2px solid transparent; background: var(--surface, #171622); }
.cf-versions__thumb { padding: 0; border: 0; background: none; cursor: pointer; border-radius: 8px; }
.cf-versions__thumb img { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 8px; background: #000; }
.cf-versions__abs { display: flex; gap: 6px; }
.cf-versions__ab { flex: 1; padding: 5px 0; border-radius: 8px; border: 1px solid rgba(255, 255, 255, .2); background: rgba(255, 255, 255, .06); color: inherit; font: inherit; font-weight: 700; cursor: pointer; }
.cf-versions__card.is-left .cf-versions__ab--a { background: #8ce7ff; color: #0d0c15; border-color: #8ce7ff; }
.cf-versions__card.is-right .cf-versions__ab--b { background: #ff5fa2; color: #0d0c15; border-color: #ff5fa2; }
.cf-versions__ab:focus-visible, .cf-versions__thumb:focus-visible { outline: 2px solid var(--focus, #8ce7ff); outline-offset: 2px; }
.cf-versions__card strong { font-size: .85rem; }
.cf-versions__card small { font-size: .72rem; color: var(--text-soft, #c3bfd0); min-height: 1em; }
.cf-versions__card.is-right { border-color: #ff5fa2; }
.cf-versions__card.is-left { border-color: #8ce7ff; }
.cf-cmp { min-height: 0; display: flex; flex-direction: column; gap: 10px; }
.cf-cmp__stage { position: relative; flex: 1; min-height: 0; border-radius: 12px; overflow: hidden; background: #000; }
.cf-cmp__stage img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.cf-cmp__right { position: absolute; inset: 0; }
.cf-cmp__handle { position: absolute; top: 0; bottom: 0; width: 2px; margin-left: -1px; background: #fff; box-shadow: 0 0 8px rgba(0, 0, 0, .6); pointer-events: none; }
.cf-cmp__range { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; }
.cf-cmp__bar { display: flex; justify-content: space-between; gap: 10px; font-size: .85rem; }
.cf-cmp__tag--l { color: #8ce7ff; }
.cf-cmp__tag--r { color: #ff5fa2; }
.cf-cmp__actions { display: flex; gap: 10px; flex-wrap: wrap; }
.cf-cmp__actions .cf-btn { text-decoration: none; }
.cf-cmp__hint { margin: 0; font-size: .75rem; color: var(--text-soft, #c3bfd0); }
@media (max-width: 760px) {
  .cf-versions__body { grid-template-columns: 1fr; grid-template-rows: minmax(0, 1fr) auto; padding: 10px 16px; }
  .cf-versions__grid { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 120px; overflow-x: auto; overflow-y: hidden; }
}

/* Tarjeta del asistente sobre el lienzo: entorno, concepto y pasos */
.cf-assist { position: absolute; left: 64px; bottom: 56px; z-index: 6; width: min(360px, calc(100% - 96px)); padding: 14px 16px 12px; border-radius: 16px;
  background: rgba(23, 22, 34, .92); backdrop-filter: blur(10px); color: var(--text, #f7f6fb); border: 1px solid rgba(255, 95, 162, .35);
  box-shadow: 0 18px 40px rgba(0, 0, 0, .45); font-size: .82rem; pointer-events: none; }
.cf-assist[hidden] { display: none; }
.cf-assist p { margin: 0 0 4px; }
.cf-assist__title { font-weight: 800; font-size: .95rem; background: linear-gradient(90deg, #ff5fa2, #9a67f5); -webkit-background-clip: text; background-clip: text; color: transparent; }
.cf-assist__env { color: #8ce7ff; font-size: .76rem; }
.cf-assist__head { color: var(--text-soft, #c3bfd0); }
.cf-assist__steps { list-style: none; margin: 8px 0; padding: 0; display: grid; gap: 3px; }
.cf-assist__steps li { position: relative; padding-left: 22px; color: var(--text-soft, #c3bfd0); }
.cf-assist__steps li::before { content: ""; position: absolute; left: 4px; top: .45em; width: 9px; height: 9px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .35); }
.cf-assist__steps li[data-state="now"] { color: #fff; }
.cf-assist__steps li[data-state="now"]::before { border-color: #ff5fa2; border-top-color: transparent; animation: cf-spin .8s linear infinite; }
.cf-assist__steps li[data-state="done"] { color: #fff; }
.cf-assist__steps li[data-state="done"]::before { background: #78dcaa; border-color: #78dcaa; }
.cf-assist__steps li[data-state="error"]::before { background: #ff7878; border-color: #ff7878; }
.cf-assist__steps li[data-state="info"]::before { border-color: #8ce7ff; }
.cf-assist__bar { height: 4px; border-radius: 4px; background: rgba(255, 255, 255, .1); overflow: hidden; }
.cf-assist__bar span { display: block; height: 100%; background: linear-gradient(90deg, #ff5fa2, #9a67f5); transition: width .4s ease; }
.cf-assist__final { margin-top: 8px !important; color: #fff; }
@keyframes cf-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .cf-assist__steps li[data-state="now"]::before { animation: none; } }
@media (max-width: 760px) { .cf-assist { left: 16px; bottom: 16px; width: calc(100% - 32px); } }

/* Elegir antes de aplicar: la elegida en grande, las 4 mejores en miniatura y «Confirmar» */
.cf-choose { position: absolute; inset: 0; z-index: 8; display: flex; flex-direction: column; background: rgba(13, 12, 21, .97); color: var(--text, #f7f6fb); }
.cf-choose__body { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 14px; padding: 14px; }
.cf-choose__big { margin: 0; min-height: 0; display: flex; flex-direction: column; gap: 6px; user-select: none; -webkit-user-select: none; }
.cf-choose__big img { flex: 1; min-height: 0; width: 100%; object-fit: contain; border-radius: 12px; background: #000; cursor: zoom-out; }
.cf-choose__big figcaption { display: flex; gap: 10px; align-items: baseline; }
.cf-choose__big small { color: #ff8cbc; font-size: .78rem; }
.cf-choose__grid { overflow-y: auto; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; align-content: start; }
.cf-choose__card { display: flex; flex-direction: column; gap: 4px; padding: 6px; border-radius: 14px; border: 2px solid transparent; background: var(--surface, #171622); color: inherit; font: inherit; text-align: left; cursor: pointer; }
.cf-choose__card:hover { border-color: rgba(139, 109, 255, .6); }
.cf-choose__card:focus-visible { outline: 2px solid var(--focus, #8ce7ff); outline-offset: 2px; }
.cf-choose__card.is-on { border-color: #ff5fa2; box-shadow: 0 0 0 2px rgba(255, 95, 162, .35); }
.cf-choose__card img { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 10px; background: #000; }
.cf-choose__card strong { font-size: .8rem; }
.cf-choose__card small { font-size: .72rem; color: var(--text-soft, #c3bfd0); min-height: 1em; }
.cf-choose__card.is-best small { color: #ff8cbc; }
.cf-choose__foot { display: flex; align-items: center; justify-content: flex-end; gap: 12px; flex-wrap: wrap; padding: 0 14px 14px; }
.cf-choose__count { margin: 0; flex: 1; font-size: .8rem; color: var(--text-soft, #c3bfd0); }
@media (max-width: 760px) {
  .cf-choose__body { grid-template-columns: 1fr; grid-template-rows: minmax(0, 1fr) auto; padding: 10px 16px; }
  .cf-choose__grid { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 96px; overflow-x: auto; overflow-y: hidden; }
  .cf-choose__card strong, .cf-choose__card small { display: none; }
  .cf-choose__foot { padding: 0 16px 12px; }
}

/* El mismo look en varias fotos */
.cf-batch__body { flex: 1; min-height: 0; display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 14px; padding: 14px; }
.cf-batch__side { display: flex; flex-direction: column; gap: 10px; min-width: 0; overflow-x: hidden; overflow-y: auto; }
.cf-batch__side > .cf-btn { justify-content: center; }
.cf-batch__modes { display: grid; gap: 6px; }
.cf-batch__mode { display: flex; flex-direction: column; gap: 2px; padding: 8px 10px; border-radius: 12px; border: 2px solid rgba(255, 255, 255, .12); background: var(--surface, #171622); color: inherit; font: inherit; text-align: left; cursor: pointer; }
.cf-batch__mode strong { font-size: .86rem; }
.cf-batch__mode small { font-size: .74rem; color: var(--text-soft, #c3bfd0); }
.cf-batch__mode.is-on { border-color: #ff5fa2; }
.cf-batch__mode:focus-visible { outline: 2px solid var(--focus, #8ce7ff); outline-offset: 2px; }
.cf-batch__field { display: grid; gap: 4px; }
.cf-batch__range { width: 100%; margin: 0; accent-color: #ff5fa2; }
.cf-batch__note { margin: 0; font-size: .75rem; color: var(--text-soft, #c3bfd0); }
.cf-batch__grid { overflow-y: auto; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; align-content: start; }
.cf-batch__card { user-select: none; -webkit-user-select: none; cursor: pointer; }
.cf-batch__card strong { font-size: .78rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cf-batch__thumb { aspect-ratio: 4 / 5; border-radius: 8px; overflow: hidden; background: #000; }
.cf-batch__thumb img { display: block; width: 100%; height: 100%; object-fit: contain; pointer-events: none; }
.cf-batch__card.is-busy { opacity: .6; }
@media (max-width: 760px) {
  .cf-batch__body { grid-template-columns: 1fr; grid-template-rows: auto minmax(0, 1fr); padding: 10px 16px; overflow-y: auto; }
  .cf-batch__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); overflow: visible; }
}

/* Coqueta Motion: el asistente que edita solo, arriba del panel */
.cf-vassist { display: grid; gap: 8px; padding: 12px; border-radius: 14px; border: 1px solid rgba(255, 95, 162, .35); background: rgba(255, 95, 162, .06); }
.cf-vassist__title { font-weight: 800; background: linear-gradient(90deg, #ff5fa2, #9a67f5); -webkit-background-clip: text; background-clip: text; color: transparent; }
.cf-vassist small { font-size: .78rem; color: var(--text-soft, #c3bfd0); }
.cf-vassist__row { display: flex; gap: 8px; }
.cf-vassist__row .cf-btn { flex: 1; justify-content: center; }

/* el botón de la tarjeta del asistente («Quitar esta edición»): la tarjeta no captura el puntero, el botón sí */
.cf-assist__action { pointer-events: auto; margin-top: 8px; padding: 6px 12px; font-size: .8rem; }

/* Mis looks: tus looks sobre tu foto, con aplicar, descargar y borrar */
.cf-mylooks__body { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 12px; padding: 14px; }
.cf-mylooks__grid { flex: 1; min-height: 0; overflow-y: auto; display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; align-content: start; }
.cf-mylooks__card strong { font-size: .85rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cf-mylooks__acts { display: flex; gap: 6px; flex-wrap: wrap; }
.cf-mylooks__acts .cf-btn { padding: 5px 10px; font-size: .78rem; }
@media (max-width: 760px) { .cf-mylooks__body { padding: 10px 16px; } .cf-mylooks__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Modo sencillo del móvil en vertical: la foto en grande y el asistente con botones grandes */
.cf-simple { position: absolute; inset: 0; z-index: 5; display: flex; flex-direction: column; gap: 10px; padding: 12px 16px 16px; overflow-y: auto; background: var(--bg, #0d0c15); color: var(--text, #f7f6fb); }
.cf-simple[hidden], .cf-simple-open[hidden] { display: none; }
.cf-simple__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.cf-simple__head strong { font-size: 1.05rem; background: linear-gradient(90deg, #ff5fa2, #9a67f5); -webkit-background-clip: text; background-clip: text; color: transparent; }
.cf-simple__full { padding: 6px 10px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .2); background: transparent; color: var(--text-soft, #c3bfd0); font: inherit; font-size: .8rem; cursor: pointer; }
.cf-simple__view { flex: 1 0 40vh; min-height: 40vh; display: grid; place-items: center; border-radius: 16px; background: #000; overflow: hidden; }
.cf-simple__view img { width: 100%; height: 100%; max-height: 52vh; object-fit: contain; }
.cf-simple__empty { margin: 0; padding: 24px; text-align: center; color: var(--text-soft, #c3bfd0); }
.cf-simple__state { margin: 0; min-height: 1.2em; font-size: .85rem; color: #ff8cbc; }
.cf-simple__row { display: flex; gap: 8px; }
.cf-simple__btn { flex: 1; justify-content: center; min-height: 46px; font-size: .95rem; }
.cf-simple__btn:disabled { opacity: .45; cursor: default; }
.cf-simple__ask .cf-select { flex: 1; min-height: 46px; font-size: .95rem; }
.cf-simple__ask .cf-simple__btn { flex: 0 0 auto; }
.cf-simple__label { margin: 4px 0 0; font-size: .8rem; font-weight: 600; color: var(--text-soft, #c3bfd0); }
.cf-simple-open { position: absolute; right: 16px; bottom: 16px; z-index: 4; }
body.cf-simple-on .cf-rotate { display: none; }
/* en el móvil: «Confirmar» ocupa toda la fila (los nombres largos parten en dos líneas) y la tarjeta del asistente,
   abajo y a lo ancho, sin tapar la foto entera */
@media (max-width: 600px) {
  .cf-choose__foot .cf-btn { flex: 1 1 100%; justify-content: center; text-align: center; white-space: normal; }
  .cf-assist { left: 16px; right: 16px; bottom: 16px; width: auto; max-height: 42vh; overflow-y: auto; font-size: .78rem; padding: 10px 12px; }
}
/* Coqueta Motion: el asistente de IA, a la vista (rosa, distinto de «Mis herramientas»), con un pulso suave y un aviso la primera vez */
.cf-btn--ai { position: relative; background: linear-gradient(125deg, #ff5fa2, #b06bff); border-color: rgba(255, 255, 255, .2); color: #fff; font-weight: 800; box-shadow: 0 0 0 0 rgba(255, 95, 162, .55), 0 8px 22px rgba(255, 95, 162, .32); animation: cf-ai-pulse 2.4s ease-out 3; }
.cf-btn--ai:hover { filter: brightness(1.08); background: linear-gradient(125deg, #ff5fa2, #b06bff); }
@keyframes cf-ai-pulse { 0% { box-shadow: 0 0 0 0 rgba(255, 95, 162, .55), 0 8px 22px rgba(255, 95, 162, .32); } 70% { box-shadow: 0 0 0 12px rgba(255, 95, 162, 0), 0 8px 22px rgba(255, 95, 162, .32); } 100% { box-shadow: 0 0 0 0 rgba(255, 95, 162, 0), 0 8px 22px rgba(255, 95, 162, .32); } }
.cf-ai-hint { position: fixed; z-index: 30; max-width: 260px; display: flex; gap: 8px; align-items: flex-start; padding: 10px 12px; border-radius: 12px; background: #1d1726; color: #fff; font-size: .85rem; line-height: 1.35; border: 1px solid rgba(255, 95, 162, .55); box-shadow: 0 12px 30px rgba(0, 0, 0, .45); }
.cf-ai-hint::before { content: ""; position: absolute; top: -7px; right: 26px; width: 12px; height: 12px; background: #1d1726; border-left: 1px solid rgba(255, 95, 162, .55); border-top: 1px solid rgba(255, 95, 162, .55); transform: rotate(45deg); }
.cf-ai-hint b { color: #ff8cbc; }
.cf-ai-hint button { flex: none; border: 0; background: transparent; color: #c3bfd0; font: inherit; font-size: 1.1rem; line-height: 1; cursor: pointer; padding: 0 2px; }
.cf-ai-hint[hidden] { display: none; }
@media (max-width: 480px) { .cf-btn--ai span { display: none; } }
@media (prefers-reduced-motion: reduce) { .cf-btn--ai { animation: none; } }
/* Coqueta Motion: con el botón «Asistente IA» en la barra, si falta sitio, «Mis herramientas» y «Pantalla completa» quedan
   en icono y el título (que ya está dentro del editor) se oculta: los enlaces de la web no se pisan */
@media (max-width: 1560px) {
  body.cf-shell:has(.cf-btn--ai) .cf-shell__title { display: none; }
  body.cf-shell:has(.cf-btn--ai) .cf-btn--tools span, body.cf-shell:has(.cf-btn--ai) #cf-fullscreen span { display: none; }
}
@media (max-width: 1180px) { body.cf-shell .cf-btn--export span { display: none; } }
/* Coqueta Motion: el menú «Exportar» (la edición en MP4 o la fuente, el archivo original) */
.cf-export { position: fixed; z-index: 30; width: min(320px, calc(100vw - 24px)); display: grid; gap: 6px; padding: 8px; border-radius: 14px; background: #1d1726; border: 1px solid rgba(255, 255, 255, .14); box-shadow: 0 16px 40px rgba(0, 0, 0, .5); }
.cf-export__opt { display: grid; gap: 3px; text-align: left; padding: 10px 12px; border-radius: 10px; border: 1px solid transparent; background: transparent; color: #c3bfd0; font: inherit; font-size: .82rem; line-height: 1.4; cursor: pointer; }
.cf-export__opt b { color: #fff; font-size: .92rem; }
.cf-export__opt:hover, .cf-export__opt:focus-visible { background: rgba(255, 95, 162, .1); border-color: rgba(255, 95, 162, .4); outline: none; }
/* La pantalla de entrada de Coqueta Foto y Coqueta Motion (coqueta-intro.js): encima del editor mientras carga */
#cf-main { position: relative; }
.cf-intro { position: absolute; inset: 0; z-index: 4; display: grid; place-items: center; padding: 20px; background: radial-gradient(55% 60% at 50% 38%, #2a1f48 0%, #120f1f 62%, #0d0c15 100%); transition: opacity .4s ease; }
.cf-intro::before { content: ""; position: absolute; inset: 0; background: radial-gradient(40% 40% at 70% 70%, rgba(255, 95, 162, .14), transparent 70%), radial-gradient(40% 40% at 25% 25%, rgba(101, 82, 255, .18), transparent 70%); pointer-events: none; }
.cf-intro.is-done { opacity: 0; pointer-events: none; }
.cf-intro__card { position: relative; display: grid; justify-items: center; gap: 10px; width: min(460px, 100%); text-align: center; color: #c3bfd0; }
.cf-intro__icon { border-radius: 26px; box-shadow: 0 18px 50px rgba(255, 95, 162, .28), 0 10px 30px rgba(101, 82, 255, .35); animation: cf-intro-float 3.2s ease-in-out infinite; }
.cf-intro__name { margin: 6px 0 0; font-size: 1.6rem; font-weight: 800; letter-spacing: -.03em; color: #fff; }
.cf-intro__tagline { margin: 0 0 6px; font-size: .95rem; line-height: 1.5; max-width: 40ch; }
.cf-intro__bar { width: min(280px, 80%); height: 5px; border-radius: 5px; background: #ffffff14; overflow: hidden; }
.cf-intro__bar i { display: block; height: 100%; width: 35%; border-radius: 5px; background: linear-gradient(90deg, #6552ff, #9a67f5, #ff6fa8); animation: cf-intro-slide 1.4s ease-in-out infinite; }
.cf-intro.has-progress .cf-intro__bar i { animation: none; transition: width .25s ease; }
.cf-intro__state { margin: 0; font-size: .8rem; color: #9a95ad; font-variant-numeric: tabular-nums; }
.cf-intro__tip { margin-top: 14px; padding: 14px 18px; width: 100%; box-sizing: border-box; border-radius: 16px; border: 1px solid rgba(255, 140, 188, .32); background: rgba(255, 95, 162, .07); }
.cf-intro__tip b { display: block; margin-bottom: 4px; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: #ff8cbc; }
.cf-intro__tip p { margin: 0; min-height: 3em; font-size: .95rem; line-height: 1.5; color: #f1eef8; opacity: 0; transform: translateY(4px); }
.cf-intro__tip p.is-in { opacity: 1; transform: none; transition: opacity .45s ease, transform .45s ease; }
.cf-intro__foot { margin-top: 6px; font-size: .74rem; color: #8f8a9e; }
@keyframes cf-intro-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@keyframes cf-intro-slide { 0% { transform: translateX(-110%); } 100% { transform: translateX(320%); } }
@media (prefers-reduced-motion: reduce) { .cf-intro__icon, .cf-intro__bar i { animation: none; } .cf-intro__tip p.is-in { transition: none; } }
