/* Filtros Studio · tela final compacta + editor mobile de texto
   Preserva PNG original; UI não altera a imagem até o usuário concluir. */

/* Resultado: sem título, legenda, blocos extras ou rolagem desnecessária. */
.client-app.is-preview .client-content{
  width:min(100%,490px)!important;
  padding:7px 17px 11px!important;
  justify-content:center;
  align-items:center;
}
.client-app.is-preview .client-preview-header{min-height:52px!important;padding:6px 17px!important}
.client-app.is-preview .studio-credits.client-footer{
  padding:7px 12px calc(8px + env(safe-area-inset-bottom,0px))!important;
}
.client-app.is-preview .fs-result-compact{
  width:100%;
  min-width:0;
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:12px;
  margin:0 auto;
  padding:0;
}
.client-app.is-preview .fs-result-picture{
  width:min(70vw,298px,calc((100dvh - 430px)*0.5625));
  min-width:135px;
  aspect-ratio:9/16;
  background:#0b153b;
  overflow:hidden;
  border:1px solid rgba(255,255,255,.35);
  border-radius:16px;
  box-shadow:0 12px 29px rgba(0,5,58,.22);
}
.client-app.is-preview .fs-result-picture img{
  width:100%;height:100%;
  display:block;object-fit:cover;
}
.client-app.is-preview .fs-result-buttons{
  width:100%;display:grid;gap:9px;
}
.client-app.is-preview .fs-result-buttons button{
  appearance:none;
  border:1px solid #ffffffd9;
  background:#fff;
  color:#001893;
  border-radius:14px;
  font-family:inherit;
  font-weight:790;
  font-size:13px;
  min-height:48px;
  display:flex;align-items:center;justify-content:center;gap:8px;
  cursor:pointer;
  -webkit-tap-highlight-color:transparent;
  transition:transform .15s,filter .15s;
}
.client-app.is-preview .fs-result-buttons button:active{transform:scale(.985)}
.client-app.is-preview .fs-result-buttons button:focus-visible{outline:3px solid #d0defe;outline-offset:2px}
.client-app.is-preview .fs-result-buttons button span{font-size:21px;font-weight:600;line-height:1}
.client-app.is-preview .fs-result-buttons .fs-result-premium{
  min-height:53px;
  position:relative;
  overflow:hidden;
  border:1px solid #f7f0ff;
  color:#fff;
  background:linear-gradient(110deg,#6051ed 0%,#413cc5 44%,#6d49e9 100%);
  box-shadow:0 5px 17px rgba(20,7,94,.25), inset 0 1px rgba(255,255,255,.35);
  font-size:15px;letter-spacing:.15px;
}
.client-app.is-preview .fs-result-premium::before{
  content:"";position:absolute;inset:0;
  background:linear-gradient(115deg,transparent 28%,rgba(255,255,255,.11) 42%,transparent 58%);
  pointer-events:none;
}
.client-app.is-preview .fs-result-premium span{font-size:19px!important}
.client-app.is-preview .fs-result-save{min-height:50px}
.client-app.is-preview .fs-result-social{display:grid;grid-template-columns:1fr 1fr;gap:9px}
.client-app.is-preview .fs-result-social button{font-size:12px;min-width:0;padding:8px 7px;text-align:center}
.client-app.is-preview .fs-result-buttons .fs-result-retry{
  min-height:42px;
  background:rgba(255,255,255,.12);
  border:1px solid rgba(255,255,255,.35);
  color:#fff;
  font-size:12px;
}
@media(max-height:720px){
  .client-app.is-preview .fs-result-compact{gap:8px}
  .client-app.is-preview .fs-result-buttons{gap:6px}
  .client-app.is-preview .fs-result-buttons button{min-height:42px}
  .client-app.is-preview .fs-result-buttons .fs-result-premium{min-height:46px}
  .client-app.is-preview .fs-result-picture{width:min(62vw,225px,calc((100dvh - 398px)*0.5625))}
  .client-app.is-preview .studio-credits.client-footer{padding-top:4px!important;padding-bottom:6px!important}
}
@media(prefers-reduced-motion:reduce){
  .client-app.is-preview .fs-result-buttons button{transition:none}
}

/* Editor: ocupa a tela, com a imagem em destaque e ferramentas ao estilo Stories. */
.fs-photo-editor,.fs-photo-editor *{box-sizing:border-box}
.fs-photo-editor{
  position:relative;
  height:100dvh;min-height:440px;
  display:flex;flex-direction:column;
  overflow:hidden;
  background:#0a0b13;
  color:#fff;
  font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  -webkit-font-smoothing:antialiased;
  isolation:isolate;
}
.fs-photo-editor button{
  font:inherit;color:inherit;cursor:pointer;
  -webkit-tap-highlight-color:transparent;
}
.fs-photo-editor button:disabled{opacity:.38;cursor:default}
.fs-photo-editor :is(button,input,textarea):focus-visible{outline:2px solid #d7baff;outline-offset:2px}
.fs-edit-top{
  width:100%;
  min-height:calc(56px + env(safe-area-inset-top,0px));
  padding:calc(7px + env(safe-area-inset-top,0px)) 16px 8px;
  display:flex;align-items:center;justify-content:space-between;gap:10px;
  flex:0 0 auto;z-index:2;
  background:linear-gradient(#080912,#0d0d18);
}
.fs-edit-top button{
  background:transparent;border:0;font-size:14px;font-weight:750;padding:9px 8px;border-radius:10px;
}
.fs-edit-top .fs-edit-top-done{
  min-width:92px;
  background:#fff;color:#10172e;
  border-radius:13px;min-height:39px;
}
.fs-edit-top-title{font-size:14px;font-weight:750;color:#d8d9e7}
.fs-edit-workspace{
  flex:1 1 auto;min-height:0;
  width:100%;display:flex;align-items:center;justify-content:center;
  overflow:hidden;padding:7px 8px;
}
.fs-edit-stage{
  position:relative;isolation:isolate;
  width:min(calc(100vw - 16px),calc((100dvh - 308px)*0.5625),420px);
  min-width:150px;
  aspect-ratio:9/16;
  overflow:hidden;
  background:#16121b;
  border-radius:15px;
  box-shadow:0 10px 30px rgba(0,0,0,.35);
  container-type:inline-size;
}
.fs-edit-base{
  position:absolute;inset:0;
  height:100%;width:100%;
  object-fit:fill;
  pointer-events:none;user-select:none;
}
.fs-edit-layers{position:absolute;inset:0;overflow:hidden}
.fs-edit-text{
  position:absolute;
  transform:translate(-50%,-50%);
  width:max-content;max-width:87%;
  line-height:1.18;
  text-align:center;
  white-space:normal;overflow-wrap:anywhere;
  cursor:grab;touch-action:none;user-select:none;
  padding:0.18em 0.28em;
  border:1px solid transparent;
  border-radius:.25em;
  -webkit-user-select:none;
}
.fs-edit-text span{display:block;white-space:pre-wrap;pointer-events:none}
.fs-edit-text.selected{border:1px dashed rgba(255,255,255,.86);background-clip:padding-box}
.fs-edit-text:active{cursor:grabbing}
.fs-edit-text-plain span{text-shadow:0 1px 6px rgba(0,0,0,.9),0 1px 2px rgba(0,0,0,.6)}
.fs-edit-text-dark span{background:rgba(0,0,0,.78);padding:.24em .28em;border-radius:.20em}
.fs-edit-text-light span{background:rgba(255,255,255,.93);padding:.24em .28em;border-radius:.20em;color:#121928}
.fs-edit-text-outline span{-webkit-text-stroke:.065em rgba(0,0,0,.92);paint-order:stroke fill}
.fs-edit-panel{
  flex:0 0 auto;
  padding:8px 12px calc(10px + env(safe-area-inset-bottom,0px));
  background:linear-gradient(180deg,rgba(26,25,36,.97),#12111a);
  border-top:1px solid rgba(255,255,255,.08);
  display:flex;flex-direction:column;gap:9px;
}
.fs-edit-actions{display:flex;align-items:center;gap:9px}
.fs-edit-actions button{
  border:1px solid #ffffff37;background:#ffffff13;
  min-height:37px;padding:7px 12px;border-radius:12px;font-size:12px;font-weight:750;
}
.fs-edit-actions .fs-edit-add{
  background:#fff;color:#17152b;border-color:#fff;flex:1;
}
.fs-edit-add span{font-size:18px;margin-right:4px}
.fs-edit-actions .fs-edit-delete{font-size:17px;min-width:38px;padding:5px 9px}
.fs-edit-fonts{
  display:flex;gap:8px;overflow-x:auto;scrollbar-width:none;
  min-height:43px;align-items:center;padding:1px 0 2px;
}
.fs-edit-fonts::-webkit-scrollbar{display:none}
.fs-edit-font{
  flex:0 0 auto;
  padding:9px 13px;min-height:37px;
  background:#ffffff0b;border:1px solid #ffffff22;border-radius:12px;
  font-size:13px!important;
}
.fs-edit-font.chosen{background:#fff;color:#121220;border-color:#fff}
.fs-edit-style-colors{display:flex;align-items:center;justify-content:space-between;gap:10px;min-width:0}
.fs-edit-styles{display:flex;gap:5px;flex:0 0 auto}
.fs-edit-style{
  display:grid;place-items:center;
  width:33px;height:33px;min-width:33px;
  background:#ffffff15;border:1px solid #ffffff22;border-radius:9px;
  font-size:18px!important;
}
.fs-edit-style.chosen{background:#fff;color:#121220}
.fs-edit-colors{display:flex;gap:7px;align-items:center;justify-content:flex-end;overflow-x:auto;min-width:0;scrollbar-width:none}
.fs-edit-colors::-webkit-scrollbar{display:none}
.fs-edit-color{
  display:block;flex:0 0 25px;height:25px;width:25px;
  border:2px solid #ffffff2b;border-radius:50%;
  background:var(--swatch)!important;
}
.fs-edit-color.chosen{outline:2px solid #fff;outline-offset:2px}
.fs-edit-size{
  color:#c6c5d2;font-size:11px;font-weight:700;
  display:flex;align-items:center;gap:12px;
}
.fs-edit-size input{flex:1;min-width:0;accent-color:#b9a4ff;height:23px}
.fs-edit-hint{margin:0;color:#9696ab;text-align:center;font-size:10px;line-height:1.2}
.fs-edit-compose{
  position:absolute;
  z-index:4;
  top:clamp(84px,19dvh,175px);
  left:50%;transform:translateX(-50%);
  width:min(calc(100% - 32px),470px);
  padding:14px;
  border-radius:17px;
  border:1px solid #ffffff41;
  background:rgba(13,13,21,.94);
  box-shadow:0 14px 44px rgba(0,0,0,.55);
  backdrop-filter:blur(12px);
}
.fs-edit-compose.hidden{display:none}
.fs-edit-compose-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:9px}
.fs-edit-compose-head strong{font-size:13px}
.fs-edit-compose-head button{background:#fff;color:#111627;border:0;border-radius:9px;padding:8px 13px;font-size:12px;font-weight:750}
.fs-edit-compose textarea{
  display:block;width:100%;min-height:88px;max-height:140px;resize:none;
  border:1px solid #ffffff51;border-radius:12px;
  outline:0;background:#ffffff1b;color:#fff;
  padding:11px 12px;font-family:inherit;font-size:18px;line-height:1.3;
}
.fs-edit-compose textarea::placeholder{color:#d8d7e4aa}
.fs-photo-editor:has(.fs-edit-compose:not(.hidden)) .fs-edit-base{filter:brightness(.56)}
@media(max-width:370px){
  .fs-edit-panel{padding-left:9px;padding-right:9px;gap:7px}
  .fs-edit-color{width:22px;height:22px;flex-basis:22px}
  .fs-edit-colors{gap:6px}
  .fs-edit-style{width:30px;min-width:30px;height:30px}
  .fs-edit-font{font-size:12px!important;padding:7px 10px}
}
@media(max-height:680px){
  .fs-edit-panel{gap:5px;padding-top:5px;padding-bottom:calc(4px + env(safe-area-inset-bottom,0px))}
  .fs-edit-fonts{min-height:36px}
  .fs-edit-font{min-height:32px;padding:6px 11px}
  .fs-edit-actions button{min-height:33px}
  .fs-edit-size{gap:8px}
  .fs-edit-hint{display:none}
  .fs-edit-stage{width:min(calc(100vw - 16px),calc((100dvh - 275px)*0.5625),420px)}
}

/* Opções disponíveis também enquanto o teclado estiver aberto. */
.fs-edit-compose-fonts{
  display:flex;gap:7px;overflow-x:auto;scrollbar-width:none;
  padding:11px 0 8px;
}
.fs-edit-compose-fonts::-webkit-scrollbar{display:none}
.fs-edit-compose-fonts .fs-edit-font{min-height:32px;padding:6px 10px;font-size:12px!important}
.fs-edit-compose-options{
  display:flex;align-items:center;justify-content:space-between;gap:10px;min-width:0;
  padding-top:3px;
}
.fs-edit-compose-options .fs-edit-style{height:30px;width:30px;min-width:30px}
.fs-edit-compose-options .fs-edit-color{height:23px;width:23px;flex-basis:23px}
@media(max-height:690px){
  .fs-edit-compose{top:calc(62px + env(safe-area-inset-top,0px));padding:10px}
  .fs-edit-compose textarea{min-height:62px;max-height:90px}
  .fs-edit-compose-fonts{padding:6px 0 4px}
}


/* Dois formatos sem distorção: Stories 9:16 e Feed 4:5.
   A proporção é escolhida pelo PNG ativo; sem alteração do banco. */
.client-app.is-camera .client-viewfinder[data-filter-format="feed"]{
  aspect-ratio:4/5!important;
  width:min(100%,420px,calc((100dvh - 240px)*.8))!important;
}
.client-app.is-camera:has(.client-gallery-finish) .client-viewfinder[data-filter-format="feed"]{
  width:min(100%,420px,calc((100dvh - 265px)*.8))!important;
}
.client-app.is-preview .fs-result-picture{
  aspect-ratio:var(--photo-ratio,9/16);
}
.fs-edit-stage{
  aspect-ratio:var(--photo-ratio,9/16);
}
/* Minúsculas também são visíveis ao organizar diversos filtros no painel. */
.filter-batch-format{
  display:block;
  max-width:100%;
  font-size:10px;
  line-height:1.3;
  text-align:center;
  overflow-wrap:anywhere;
  color:inherit;
  opacity:.72;
}


/* Enquadramento interativo: o filtro PNG permanece imóvel, somente a foto move. */
.client-app.is-camera .client-viewfinder{
  touch-action:none;
  cursor:grab;
}
.client-app.is-camera .client-viewfinder:active{cursor:grabbing}
.client-app.is-camera .client-viewfinder #galleryBase,
.client-app.is-camera .client-viewfinder #cameraVideo{
  transform-origin:center center;
  will-change:transform;
  pointer-events:none;
}
.client-app.is-camera .client-viewfinder #cameraOverlay{
  pointer-events:none;
}
.client-app.is-camera .client-viewfinder button{
  touch-action:manipulation;
  cursor:pointer;
}
.client-app.is-camera .client-framing-guide{
  position:absolute;
  z-index:4;
  top:auto;
  bottom:10px;
  left:50%;
  transform:translateX(-50%);
  width:max-content;
  max-width:calc(100% - 20px);
  padding:6px 10px;
  border-radius:100px;
  color:#fff;
  background:rgba(0,0,0,.54);
  font-size:10px;
  font-weight:650;
  text-align:center;
  line-height:1.25;
  pointer-events:none;
  backdrop-filter:blur(5px);
}
.client-app.is-camera .client-framing-controls{
  width:min(100%,355px);
  display:flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  margin:7px auto 0;
  padding:6px 10px;
  border:1px solid rgba(255,255,255,.26);
  border-radius:13px;
  background:rgba(1,18,102,.24);
  color:#fff;
}
.client-app.is-camera .client-framing-zoom{
  display:flex;gap:8px;
  align-items:center;
  flex:1;
  min-width:0;
  font-size:10px;
  font-weight:700;
}
.client-app.is-camera .client-framing-zoom input{
  flex:1;
  min-width:0;
  accent-color:#fff;
}
.client-app.is-camera .client-framing-zoom-value{
  min-width:28px;
  font-size:10px;
  font-weight:750;
  font-variant-numeric:tabular-nums;
}
.client-app.is-camera .client-framing-reset{
  flex:0 0 auto;
  padding:6px 8px;
  color:#001893;
  background:#fff;
  border:0;
  border-radius:8px;
  font-size:10px;
  font-weight:800;
  cursor:pointer;
}
.client-app.is-camera .client-framing-reset:focus-visible{
  outline:2px solid #fff;
  outline-offset:3px;
}
@media(max-width:365px){
  .client-app.is-camera .client-framing-controls{gap:5px;padding:5px 7px}
  .client-app.is-camera .client-framing-zoom{gap:5px}
  .client-app.is-camera .client-framing-reset{padding:6px}
}


/* NOVO FLUXO — identidade azul Filtros Studio; composição simples, personalização depois. */
.fs-photo-editor,.fs-framing-screen{
  background-color:#001893!important;
  background-image:var(--studio-surface-art,linear-gradient(155deg,#00116f,#1234aa))!important;
  background-size:cover!important;
  background-position:center!important;
  color:#fff!important;
  font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
}
.fs-photo-editor{
  min-height:0;height:100dvh;max-height:100dvh;
  overflow:hidden;
}
.fs-edit-top,.fs-frame-top{
  background:rgba(0,13,105,.35)!important;
  border-bottom:1px solid rgba(255,255,255,.15)!important;
  color:#fff;
  backdrop-filter:blur(8px);
}
.fs-edit-top-title{color:#fff!important;font-size:14px}
.fs-edit-top .fs-edit-top-back,.fs-frame-top .fs-frame-back{
  background:rgba(255,255,255,.12)!important;
  border:1px solid rgba(255,255,255,.35)!important;
  border-radius:13px;
  color:#fff;
  font-size:13px;
  font-weight:700;
}
.fs-edit-top .fs-edit-top-done,.fs-frame-top .fs-frame-done{
  background:#fff!important;
  border:1px solid #fff!important;
  color:#001893!important;
  border-radius:13px;
  font-weight:800;
}
.fs-edit-workspace{
  padding:10px 15px 5px!important;
  min-height:0;flex:1 1 auto;
  align-items:center;
  justify-content:center;
}
.fs-edit-stage{
  width:auto!important;
  height:min(54dvh,560px)!important;
  max-width:calc(100vw - 30px)!important;
  max-height:100%!important;
  aspect-ratio:var(--photo-ratio,9/16)!important;
  flex:0 1 auto;
  border:1px solid rgba(255,255,255,.42)!important;
  box-shadow:0 12px 28px rgba(0,8,65,.24)!important;
  border-radius:16px!important;
  background:#0b1849!important;
}
.fs-edit-text.selected{outline:1px dashed #fff;outline-offset:3px}
.fs-edit-panel{
  position:relative;
  padding:10px 15px calc(12px + env(safe-area-inset-bottom,0px))!important;
  gap:9px!important;
  background:rgba(0,13,100,.58)!important;
  border-top:1px solid rgba(255,255,255,.18)!important;
  backdrop-filter:blur(15px);
}
.fs-edit-actions{gap:8px}
.fs-edit-actions button{
  background:rgba(255,255,255,.16);
  border:1px solid rgba(255,255,255,.38);
  color:#fff;
  min-height:40px;
  border-radius:12px;
}
.fs-edit-actions .fs-edit-add{
  color:#001893!important;background:#fff!important;border-color:#fff!important;
}
.fs-edit-fonts{
  gap:7px;min-height:44px;
  scroll-snap-type:x proximity;
}
.fs-edit-font{
  scroll-snap-align:start;
  padding:8px 13px!important;
  min-height:38px!important;
  border-radius:12px;
  background:rgba(255,255,255,.13)!important;
  border:1px solid rgba(255,255,255,.35)!important;
  color:#fff!important;
}
.fs-edit-font.chosen,.fs-edit-style.chosen{
  background:#fff!important;color:#001893!important;border-color:#fff!important;
}
.fs-edit-style{
  background:rgba(255,255,255,.13)!important;
  border-color:rgba(255,255,255,.34)!important;
  border-radius:10px;
}
.fs-edit-size{color:#dce6ff!important;font-size:12px}
.fs-edit-size input{accent-color:#fff}
.fs-edit-hint{color:#e5ebff!important;font-size:11px!important}
.fs-edit-compose{
  top:clamp(68px,14dvh,140px)!important;
  left:50%;width:min(calc(100vw - 28px),470px);
  padding:15px!important;
  border-radius:17px!important;
  border:1px solid rgba(255,255,255,.42)!important;
  background:linear-gradient(145deg,rgba(1,22,119,.97),rgba(14,44,153,.97))!important;
  color:#fff;
  box-shadow:0 14px 40px rgba(0,8,56,.35)!important;
}
.fs-edit-compose-head{margin-bottom:10px}
.fs-edit-compose-head strong{font-size:14px}
.fs-edit-compose-head button{
  border-radius:11px!important;color:#001893!important;background:#fff!important;
  min-height:40px;font-size:13px;
}
.fs-edit-compose textarea{
  width:100%;
  height:clamp(76px,14dvh,122px);
  max-height:125px;
  min-height:76px;
  background:rgba(255,255,255,.12)!important;
  border:1px solid rgba(255,255,255,.4)!important;
  color:#fff!important;
  border-radius:12px;
  font-size:18px!important;
}
.fs-edit-compose textarea:focus{border-color:#fff!important}
.fs-edit-compose textarea::placeholder{color:#d8e2ffb8!important}
.fs-photo-editor:has(.fs-edit-compose:not(.hidden)) .fs-edit-base{filter:brightness(.60)!important}
.fs-photo-editor:has(.fs-edit-compose:not(.hidden)) .fs-edit-panel{
  opacity:.18;pointer-events:none
}
/* O editor fica limpo enquanto o usuário escreve; após Pronto exibe as 15 fontes. */
.fs-edit-compose-fonts,.fs-edit-compose-options{display:none!important}

.client-app.is-preview .fs-result-buttons .fs-result-premium{
  color:#18130b!important;
  background:linear-gradient(112deg,#fae6ae 0%,#eac060 40%,#d7a841 78%,#f3db9a 100%)!important;
  border:1px solid #fff1ba!important;
  box-shadow:0 6px 20px rgba(24,24,85,.19),inset 0 2px rgba(255,255,255,.45)!important;
  letter-spacing:.7px;
  font-weight:850!important;
}
.client-app.is-preview .fs-result-premium strong,
.client-app.is-preview .fs-result-premium span{color:#18130b!important}
.client-app.is-preview .fs-result-buttons{gap:10px}
.client-app.is-preview .fs-result-buttons .fs-result-retry{
  background:rgba(255,255,255,.14);color:#fff;
}

/* Enquadrar após fotografar ou importar: foto móvel e PNG totalmente parado. */
.fs-framing-screen{
  display:flex;flex-direction:column;
  height:100dvh;min-height:0;max-height:100dvh;
  overflow:hidden;
  isolation:isolate;
}
.fs-frame-top{
  flex:0 0 auto;
  padding:calc(9px + env(safe-area-inset-top,0px)) 14px 10px;
  display:flex;align-items:center;justify-content:space-between;gap:9px;
  min-height:calc(65px + env(safe-area-inset-top,0px));
}
.fs-frame-top strong{font-size:14px;font-weight:800;text-align:center}
.fs-frame-top button{
  min-height:42px;padding:8px 12px;font-size:13px;font-weight:750;
  cursor:pointer;
}
.fs-frame-top button:disabled{opacity:.6}
.fs-frame-workspace{
  flex:1;min-height:0;
  display:flex;flex-direction:column;align-items:center;justify-content:center;gap:15px;
  padding:10px 12px calc(20px + env(safe-area-inset-bottom,0px));
}
.fs-frame-stage{
  position:relative;flex:0 0 auto;
  width:min(calc(100vw - 30px),36dvh,430px);
  aspect-ratio:var(--photo-ratio,9/16);
  border:1px solid rgba(255,255,255,.65);
  border-radius:16px;
  box-shadow:0 14px 35px rgba(0,7,70,.26);
  background:#0c1338;
  overflow:hidden;
  touch-action:none!important;
  user-select:none;
  -webkit-user-select:none;
}
.fs-frame-stage[data-format="feed"]{
  width:min(calc(100vw - 30px),51.2dvh,430px);
}
.fs-frame-source{
  display:block;
  position:absolute;
  top:50%;left:50%;
  width:100%;height:100%;
  max-width:none;
  object-fit:fill;
  transform:translate(-50%,-50%);
  pointer-events:none;user-select:none;
  -webkit-user-drag:none;
}
.fs-frame-overlay{
  position:absolute;inset:0;
  width:100%;height:100%;
  object-fit:fill;
  pointer-events:none;user-select:none;
  -webkit-user-drag:none;
}
.fs-frame-hint{
  margin:0;
  padding:10px 15px;
  max-width:350px;
  border:1px solid rgba(255,255,255,.22);
  border-radius:14px;
  background:rgba(0,15,107,.34);
  font-size:12px;
  line-height:1.4;
  text-align:center;
  color:#edf2ff;
}
@media(max-height:700px){
  .fs-edit-stage{height:min(49dvh,430px)!important}
  .fs-edit-panel{gap:6px!important;padding-top:7px!important}
  .fs-edit-hint{display:none}
  .fs-frame-stage{width:min(calc(100vw - 30px),33.75dvh,410px)}
  .fs-frame-stage[data-format="feed"]{width:min(calc(100vw - 30px),48dvh,410px)}
}
@media(max-width:370px){
  .fs-edit-panel{padding-left:9px!important;padding-right:9px!important}
  .fs-edit-font{padding:7px 10px!important}
  .fs-frame-top button{padding:7px 9px}
  .fs-frame-hint{font-size:11px}
}
@media(prefers-reduced-motion:reduce){
  .fs-edit-font,.fs-frame-stage{scroll-behavior:auto}
}


/* Dimensões reais preservadas no editor: Stories 9:16 e Feed 4:5, inclusive em iPhones estreitos. */
.fs-edit-stage{
  width:min(calc(100vw - 30px),29.8125dvh,420px)!important;
  height:auto!important;
  aspect-ratio:var(--photo-ratio,9/16)!important;
  max-height:100%!important;
}
.fs-edit-stage[data-format="feed"]{
  width:min(calc(100vw - 30px),42.4dvh,420px)!important;
}
@media(max-height:700px){
  .fs-edit-stage{width:min(calc(100vw - 26px),27.5625dvh,390px)!important;height:auto!important}
  .fs-edit-stage[data-format="feed"]{width:min(calc(100vw - 26px),39.2dvh,390px)!important}
}

/* Enquanto o teclado estiver aberto, nenhuma personalização ocupa a tela. */
.fs-photo-editor:has(.fs-edit-compose:not(.hidden)) .fs-edit-panel{
  display:none!important;
}


/* Conta-gotas próprio para Safari iOS: cor extraída dos pixels da imagem final,
   incluindo a moldura. O botão fica fixo ao lado da paleta rolável. */
.fs-edit-eyedropper{
  display:grid;place-items:center;
  flex:0 0 37px;
  width:37px;height:37px;
  padding:0;
  border:1px solid rgba(255,255,255,.58);
  border-radius:11px;
  background:rgba(255,255,255,.22);
  color:#fff;
  cursor:pointer;
}
.fs-edit-eyedropper:disabled{opacity:.35;cursor:default}
.fs-edit-eyedropper:focus-visible{outline:2px solid #fff;outline-offset:3px}
.fs-eye-overlay,.fs-eye-overlay *{box-sizing:border-box}
.fs-eye-overlay{
  position:absolute;inset:0;
  z-index:35;
  min-height:0;height:100dvh;
  display:flex;flex-direction:column;
  background-color:#001893;
  background-image:var(--studio-surface-art,linear-gradient(140deg,#0020a1,#0b1772));
  background-size:cover;
  color:#fff;
}
.fs-eye-header{
  display:flex;justify-content:space-between;align-items:center;gap:10px;
  min-height:calc(62px + env(safe-area-inset-top,0px));
  padding:calc(10px + env(safe-area-inset-top,0px)) 16px 10px;
  border-bottom:1px solid rgba(255,255,255,.22);
  background:rgba(0,13,105,.3);
}
.fs-eye-header strong{font-size:15px;font-weight:800}
.fs-eye-header button{
  min-height:42px;padding:8px 12px;
  border:1px solid rgba(255,255,255,.42);
  border-radius:12px;
  background:rgba(255,255,255,.15);
  color:#fff;
  font-size:12px;
  font-weight:750;
}
.fs-eye-header .fs-eye-confirm{
  border-color:#fff;
  background:#fff;
  color:#001893;
}
.fs-eye-instruction{
  margin:0;
  padding:14px 12px 4px;
  text-align:center;
  font-size:13px;
  line-height:1.3;
  color:#e4eaff;
}
.fs-eye-workspace{
  display:flex;flex:1;min-height:0;
  justify-content:center;align-items:center;
  padding:12px;
}
.fs-eye-stage{
  position:relative;
  width:min(calc(100vw - 30px),calc(64dvh * 0.5625),425px);
  aspect-ratio:var(--photo-ratio,9/16);
  overflow:hidden;
  touch-action:none;
  border-radius:16px;
  border:1px solid rgba(255,255,255,.52);
  box-shadow:0 12px 30px rgba(0,0,50,.25);
}
.fs-eye-stage[style*="1080 / 1350"]{width:min(calc(100vw - 30px),calc(64dvh * 0.8),425px)}
.fs-eye-stage img{
  position:absolute;inset:0;
  display:block;width:100%;height:100%;
  object-fit:fill;
  pointer-events:none;
  user-select:none;
  -webkit-user-drag:none;
}
.fs-eye-marker{
  position:absolute;
  width:47px;height:47px;
  display:block;
  transform:translate(-50%,-50%);
  border:4px solid #fff;
  border-radius:50%;
  background:var(--picked-color,#fff);
  box-shadow:0 0 0 2px rgba(10,14,34,.7),0 3px 12px rgba(0,0,0,.6);
  pointer-events:none;
}
.fs-eye-selected{
  flex:0 0 auto;
  display:flex;align-items:center;justify-content:center;gap:11px;
  padding:13px 15px calc(22px + env(safe-area-inset-bottom,0px));
  font-size:14px;font-weight:750;
}
.fs-eye-selected-swatch{
  display:block;
  height:29px;width:29px;
  border:2px solid #fff;
  border-radius:50%;
}
@media(max-width:365px){
  .fs-edit-eyedropper{width:31px;height:31px;flex-basis:31px}
  .fs-eye-instruction{font-size:12px}
}
@media(max-height:690px){
  .fs-eye-stage{width:min(calc(100vw - 30px),calc(58dvh * 0.5625),400px)}
  .fs-eye-stage[style*="1080 / 1350"]{width:min(calc(100vw - 30px),calc(58dvh * 0.8),400px)}
}


/* Premium discreto: coroa e brilho dourado, sem remover a identidade azul. */
.client-app.is-preview .fs-result-buttons .fs-result-premium{
  position:relative;
  isolation:isolate;
  overflow:hidden;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  background:linear-gradient(115deg,#fff0bf 0%,#efca78 28%,#d8a944 60%,#ffebb2 100%)!important;
  border:1px solid #fff4c9!important;
  box-shadow:0 6px 22px rgba(47,26,0,.24),inset 0 1px 0 rgba(255,255,255,.8)!important;
  color:#231a0b!important;
}
.client-app.is-preview .fs-result-premium .fs-premium-crown{
  font-size:22px!important;
  font-weight:400!important;
  position:relative;
  z-index:1;
  line-height:1;
}
.client-app.is-preview .fs-result-premium strong{
  position:relative;
  z-index:1;
  color:#231a0b!important;
  letter-spacing:.8px;
}
.client-app.is-preview .fs-result-premium::after{
  content:"";
  position:absolute;
  inset:-75% auto -75% -65%;
  width:42%;
  transform:skewX(-24deg);
  background:linear-gradient(90deg,transparent,rgba(255,255,255,.56),transparent);
  pointer-events:none;
  animation:fs-premium-sheen 5s ease-in-out infinite;
}
@keyframes fs-premium-sheen{
  0%,64%{left:-65%}
  89%,100%{left:130%}
}

/* Todos os comandos de confirmação do fluxo de edição compartilham o mesmo dourado. */
.fs-edit-top .fs-edit-top-done,
.fs-frame-top .fs-frame-done,
.fs-eye-header .fs-eye-confirm,
.fs-edit-compose-head button{
  color:#241a0b!important;
  background:linear-gradient(120deg,#fff0bf 0%,#e6bf66 48%,#f8dc97 100%)!important;
  border:1px solid #fff0be!important;
  box-shadow:0 3px 9px rgba(38,23,0,.18),inset 0 1px 0 rgba(255,255,255,.62)!important;
  font-weight:800!important;
}
.fs-edit-top .fs-edit-top-done:active,
.fs-frame-top .fs-frame-done:active,
.fs-eye-header .fs-eye-confirm:active,
.fs-edit-compose-head button:active{
  filter:brightness(.94);
}
.fs-edit-top .fs-edit-top-done:focus-visible,
.fs-frame-top .fs-frame-done:focus-visible,
.fs-eye-header .fs-eye-confirm:focus-visible,
.fs-edit-compose-head button:focus-visible{
  outline:2px solid #fff;
  outline-offset:3px;
}
/* A moldura e a foto não capturam toques: apenas o texto selecionado se move. */
.fs-edit-stage,.fs-edit-layers{
  touch-action:none;
  overscroll-behavior:contain;
}
.fs-edit-text{
  touch-action:none;
  -webkit-touch-callout:none;
  cursor:grab;
}
.fs-edit-text.selected{
  outline:1px dashed rgba(255,236,167,.95);
  outline-offset:2px;
}
@media(prefers-reduced-motion:reduce){
  .client-app.is-preview .fs-result-premium::after{animation:none}
}


/* Editor simplificado v11: um passo por vez e alvos de toque confortáveis. */
.fs-photo-editor .fs-simple-panel{
  padding:12px 14px calc(14px + env(safe-area-inset-bottom,0px))!important;
  gap:10px!important;
  width:100%;
}
.fs-photo-editor .fs-simple-primary{
  width:100%;
  display:grid;
  grid-template-columns:minmax(0,1fr);
  align-items:stretch;
  gap:9px;
}
.fs-photo-editor .fs-simple-primary:has(.fs-simple-rewrite){
  grid-template-columns:minmax(0,1.3fr) minmax(0,1fr);
}
.fs-photo-editor .fs-simple-primary button{
  width:100%;
  min-height:52px;
  padding:10px 8px;
  border-radius:14px;
  font-size:14px;
  font-weight:800;
  text-align:center;
  white-space:normal;
}
.fs-photo-editor .fs-simple-primary .fs-edit-add{
  color:#061889!important;
  background:#fff!important;
  border-color:#fff!important;
}
.fs-photo-editor .fs-simple-primary .fs-simple-rewrite{
  color:#fff!important;
  background:rgba(255,255,255,.17)!important;
  border:1px solid rgba(255,255,255,.5)!important;
}
.fs-photo-editor .fs-simple-tools{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:8px;
  width:100%;
}
.fs-photo-editor .fs-simple-tool{
  min-width:0;
  min-height:50px;
  padding:9px 4px;
  border:1px solid rgba(255,255,255,.43);
  border-radius:13px;
  font-size:14px;
  line-height:1.2;
  font-weight:800;
  color:#fff;
  background:rgba(255,255,255,.13);
}
.fs-photo-editor .fs-simple-tool.chosen{
  color:#11151f!important;
  background:linear-gradient(120deg,#fff0bf 0%,#e6bf66 60%,#f4daa0 100%)!important;
  border-color:#fff1c0!important;
}
.fs-photo-editor .fs-simple-tool.fs-simple-delete{
  border-color:rgba(255,255,255,.35);
}
.fs-photo-editor .fs-simple-options{
  display:flex;
  flex-direction:column;
  width:100%;
  gap:9px;
  animation:fs-simple-appear .16s ease-out;
}
@keyframes fs-simple-appear{
  from{opacity:.6;transform:translateY(-3px)}
  to{opacity:1;transform:translateY(0)}
}
.fs-photo-editor .fs-simple-font-panel .fs-edit-fonts{
  display:flex;
  flex-wrap:nowrap;
  overflow-x:auto;
  width:100%;
  gap:8px;
  padding:3px 0;
}
.fs-photo-editor .fs-simple-font-panel .fs-edit-font{
  min-height:44px!important;
  min-width:75px;
  padding:10px 12px!important;
  font-size:14px!important;
  border-radius:12px;
}
.fs-photo-editor .fs-simple-size-actions{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:9px;
}
.fs-photo-editor .fs-simple-size-actions button{
  min-height:48px;
  padding:9px 12px;
  border-radius:12px;
  border:1px solid rgba(255,255,255,.43);
  background:rgba(255,255,255,.14);
  color:#fff;
  font-size:14px;
  font-weight:800;
}
.fs-photo-editor .fs-simple-color-options{
  flex-direction:row;
  align-items:center;
}
.fs-photo-editor .fs-simple-color-options .fs-edit-colors{
  justify-content:flex-start;
  flex:1;
  min-width:0;
  gap:10px;
  padding:7px 4px;
}
.fs-photo-editor .fs-simple-color-options .fs-edit-color{
  width:35px;height:35px;flex-basis:35px;
}
.fs-photo-editor .fs-simple-color-options .fs-edit-eyedropper{
  width:47px;height:47px;flex-basis:47px;
}
.fs-photo-editor .fs-simple-style-options{
  flex-direction:row;
  flex-wrap:wrap;
  justify-content:center;
  align-items:center;
  gap:9px;
}
.fs-photo-editor .fs-simple-style-options .fs-edit-style{
  width:58px;height:48px;min-width:58px;
  font-size:21px!important;
  border-radius:12px;
}
.fs-photo-editor .fs-simple-panel .fs-edit-hint{
  color:#f0f4ff!important;
  font-size:12px!important;
  font-weight:600;
  margin:0;
  text-align:center;
  letter-spacing:.1px;
}
.fs-photo-editor .fs-simple-panel button:focus-visible{
  outline:3px solid #f5d482!important;
  outline-offset:2px;
}
.fs-photo-editor .fs-edit-text{
  /* Quando o texto é minúsculo, o alvo continua acessível com o dedo. */
  min-width:36px;
  min-height:36px;
  display:flex;
  align-items:center;
  justify-content:center;
}
.fs-photo-editor .fs-edit-text span{max-width:100%;white-space:pre-wrap}
@media(max-width:375px){
  .fs-photo-editor .fs-simple-panel{padding-left:9px!important;padding-right:9px!important}
  .fs-photo-editor .fs-simple-tools{gap:5px}
  .fs-photo-editor .fs-simple-tool{font-size:12px;min-height:46px;padding:7px 2px}
  .fs-photo-editor .fs-simple-primary button{font-size:13px;min-height:49px}
}
@media(max-height:690px){
  .fs-photo-editor .fs-simple-panel{gap:6px!important;padding-top:7px!important}
  .fs-photo-editor .fs-simple-primary button{min-height:44px}
  .fs-photo-editor .fs-simple-tool{min-height:43px}
  .fs-photo-editor .fs-simple-panel .fs-edit-hint{display:block!important;font-size:11px!important}
}
@media(prefers-reduced-motion:reduce){
  .fs-photo-editor .fs-simple-options{animation:none}
}


/* Editor v12: navegação clara e profissional, no azul oficial Filtros Studio. */
.fs-photo-editor .fs-simple-panel{
  background:linear-gradient(180deg,rgba(1,19,111,.93),rgba(0,13,86,.97))!important;
  border-top:1px solid rgba(255,255,255,.24)!important;
  box-shadow:0 -10px 34px rgba(0,8,64,.12),inset 0 1px 0 rgba(255,255,255,.09);
  padding:13px 15px calc(14px + env(safe-area-inset-bottom,0px))!important;
  gap:12px!important;
}
.fs-photo-editor .fs-simple-primary{
  display:grid!important;
  grid-template-columns:minmax(0,1fr)!important;
}
.fs-photo-editor .fs-simple-primary .fs-edit-add{
  min-height:50px!important;
  border-radius:14px!important;
  border:1px solid rgba(255,255,255,.96)!important;
  background:linear-gradient(180deg,#fff 0%,#f1f5ff 100%)!important;
  color:#092b8d!important;
  box-shadow:0 3px 11px rgba(0,4,49,.12),inset 0 1px #fff!important;
  letter-spacing:.05px;
  font-size:14px!important;
  font-weight:790!important;
}
.fs-photo-editor .fs-simple-tools{
  display:grid!important;
  grid-template-columns:repeat(4,minmax(0,1fr))!important;
  gap:8px!important;
  padding:0!important;
  align-items:stretch!important;
  background:transparent!important;
}
.fs-photo-editor .fs-simple-panel .fs-simple-tools .fs-simple-tool{
  appearance:none;
  position:relative;
  min-height:65px!important;
  width:100%;
  min-width:0;
  padding:10px 3px 8px!important;
  display:flex!important;
  flex-direction:column!important;
  align-items:center!important;
  justify-content:center!important;
  gap:6px!important;
  border-radius:15px!important;
  border:1px solid rgba(184,207,255,.37)!important;
  color:#f7f9ff!important;
  background:linear-gradient(153deg,rgba(255,255,255,.15),rgba(255,255,255,.065))!important;
  box-shadow:inset 0 1px rgba(255,255,255,.13),0 3px 11px rgba(0,9,53,.13)!important;
  opacity:1!important;
  text-shadow:none!important;
  font-family:Inter,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif!important;
  font-size:12px!important;
  font-weight:720!important;
  letter-spacing:.05px;
  transition:border-color .16s ease,background .16s ease,box-shadow .16s ease,transform .16s ease;
}
.fs-photo-editor .fs-simple-panel .fs-simple-tools .fs-simple-tool svg{
  flex:0 0 auto;
  display:block;
  width:21px;height:21px;
  stroke:currentColor;
}
.fs-photo-editor .fs-simple-panel .fs-simple-tools .fs-simple-tool span{
  display:block;
  color:inherit!important;
  font-size:12px;
  font-weight:750;
  line-height:1.1;
}
.fs-photo-editor .fs-simple-panel .fs-simple-tools .fs-simple-tool.chosen{
  color:#241a09!important;
  border:1px solid #fff1bb!important;
  background:linear-gradient(140deg,#fff0c5 0%,#e8c36d 61%,#dba84f 100%)!important;
  box-shadow:0 4px 13px rgba(15,8,0,.2),inset 0 1px rgba(255,255,255,.72)!important;
}
.fs-photo-editor .fs-simple-panel .fs-simple-tools .fs-simple-tool:active{
  transform:scale(.972);
}
.fs-photo-editor .fs-simple-panel .fs-simple-tools .fs-simple-tool:disabled{
  opacity:.43!important;
  color:#f0f3ff!important;
  background:rgba(15,28,88,.6)!important;
  border-color:rgba(255,255,255,.23)!important;
  box-shadow:none!important;
}
.fs-photo-editor .fs-simple-panel .fs-simple-options{
  gap:10px!important;
  border-radius:14px;
  padding:10px!important;
  background:rgba(0,11,69,.28);
  border:1px solid rgba(255,255,255,.16);
  box-shadow:inset 0 1px rgba(255,255,255,.08);
}
.fs-photo-editor .fs-simple-text-panel{
  display:grid!important;
  grid-template-columns:minmax(0,1fr) minmax(0,1fr);
  gap:9px!important;
}
.fs-photo-editor .fs-simple-panel .fs-simple-option-button{
  min-width:0;
  min-height:45px;
  padding:9px 10px;
  border-radius:11px;
  font-family:inherit;
  font-size:13px;
  font-weight:750;
  color:#f7f9ff!important;
  background:linear-gradient(135deg,rgba(255,255,255,.18),rgba(255,255,255,.09))!important;
  border:1px solid rgba(255,255,255,.36)!important;
  box-shadow:inset 0 1px rgba(255,255,255,.14);
}
.fs-photo-editor .fs-simple-panel .fs-simple-remove-button{
  color:#fff1f1!important;
  border-color:rgba(255,212,212,.36)!important;
}
.fs-photo-editor .fs-simple-size-panel{
  display:grid!important;
  grid-template-columns:minmax(0,1fr) minmax(65px,1.3fr) minmax(0,1fr);
  align-items:center;
  gap:10px!important;
}
.fs-photo-editor .fs-simple-size-panel .fs-simple-option-button{
  min-height:46px;
  padding:7px 5px;
  display:flex;align-items:center;justify-content:center;
  gap:5px;
  white-space:nowrap;
}
.fs-photo-editor .fs-simple-size-panel .fs-simple-option-button span{
  color:inherit;
  font-weight:850;
}
.fs-photo-editor .fs-simple-size-panel input[type="range"]{
  display:block;
  min-width:0;
  width:100%;
  height:32px;
  margin:0;
  accent-color:#f1cb72;
  background:transparent;
  touch-action:pan-x;
}
.fs-photo-editor .fs-simple-style-panel{
  display:flex;
  flex-direction:column;
  gap:8px;
}
.fs-photo-editor .fs-simple-style-panel .fs-edit-fonts{
  width:100%;
  min-width:0;
  overflow-x:auto;
  flex-wrap:nowrap;
  justify-content:flex-start;
  scrollbar-width:none;
}
.fs-photo-editor .fs-simple-style-panel .fs-edit-font{
  min-width:74px;
  min-height:40px!important;
}
.fs-photo-editor .fs-simple-style-panel .fs-simple-style-options{
  display:flex;
  align-items:center;
  justify-content:center;
  flex-wrap:nowrap;
  gap:9px;
}
.fs-photo-editor .fs-simple-panel .fs-edit-hint{
  color:#dfe7ff!important;
  font-size:11px!important;
  font-weight:650!important;
}
.fs-photo-editor .fs-edit-text.selected{
  border:1px dashed rgba(255,236,177,.8)!important;
}
@media(max-width:370px){
  .fs-photo-editor .fs-simple-panel{padding:9px 9px calc(10px + env(safe-area-inset-bottom,0px))!important;gap:8px!important}
  .fs-photo-editor .fs-simple-tools{gap:6px!important}
  .fs-photo-editor .fs-simple-panel .fs-simple-tools .fs-simple-tool{
    min-height:58px!important;
    border-radius:12px!important;
    gap:5px!important;
    padding:8px 2px!important;
  }
  .fs-photo-editor .fs-simple-panel .fs-simple-tools .fs-simple-tool svg{width:19px;height:19px}
  .fs-photo-editor .fs-simple-panel .fs-simple-tools .fs-simple-tool span{font-size:11px}
  .fs-photo-editor .fs-simple-panel .fs-simple-option-button{font-size:12px}
}
@media(max-height:690px){
  .fs-photo-editor .fs-simple-panel{gap:7px!important;padding-top:8px!important}
  .fs-photo-editor .fs-simple-panel .fs-simple-tools .fs-simple-tool{min-height:56px!important}
  .fs-photo-editor .fs-simple-panel .fs-simple-options{padding:7px!important;gap:6px!important}
}
@media(prefers-reduced-motion:reduce){
  .fs-photo-editor .fs-simple-panel .fs-simple-tools .fs-simple-tool{transition:none}
}


/* Botão de texto acima da foto (v13): cabeçalho → adicionar → foto → ferramentas. */
.fs-photo-editor .fs-editor-add-top{
  flex:0 0 auto;
  padding:12px 16px 3px;
  width:100%;
  display:flex;
  justify-content:center;
  align-items:center;
}
.fs-photo-editor .fs-editor-add-top .fs-edit-add-top{
  appearance:none;
  width:min(100%,460px);
  min-height:49px;
  padding:11px 20px;
  display:flex;
  align-items:center;
  justify-content:center;
  border:1px solid rgba(255,255,255,.95);
  border-radius:14px;
  background:linear-gradient(180deg,#fff 0%,#f1f5ff 100%);
  box-shadow:0 5px 18px rgba(0,8,70,.17),inset 0 1px #fff;
  color:#082783;
  font-size:15px;
  font-weight:800;
  line-height:1.25;
  letter-spacing:.05px;
  cursor:pointer;
  -webkit-tap-highlight-color:transparent;
}
.fs-photo-editor .fs-editor-add-top .fs-edit-add-top:active{
  transform:scale(.992);
  filter:brightness(.98);
}
.fs-photo-editor .fs-editor-add-top .fs-edit-add-top:focus-visible{
  outline:3px solid #f5d482;
  outline-offset:3px;
}
.fs-photo-editor .fs-simple-panel.fs-simple-empty{
  display:none!important;
}
.fs-photo-editor .fs-editor-add-top + .fs-edit-workspace{
  min-height:0;
}
@media(max-height:690px){
  .fs-photo-editor .fs-editor-add-top{
    padding:7px 12px 2px;
  }
  .fs-photo-editor .fs-editor-add-top .fs-edit-add-top{
    min-height:44px;
    font-size:14px;
  }
}


/* Edição direta no palco (iPhone/Android): teclado nativo, sem modal e sem Pronto. */
.fs-photo-editor .fs-edit-text.is-composing{
  opacity:0!important;
  pointer-events:none!important;
}
.fs-photo-editor .fs-edit-inline-input{
  position:absolute;
  z-index:5;
  display:block;
  box-sizing:border-box;
  min-width:48px;
  min-height:42px;
  max-width:87%;
  overflow:hidden;
  resize:none;
  padding:.18em .28em;
  margin:0;
  border:1px dashed rgba(255,236,177,.96);
  border-radius:.25em;
  background:transparent;
  box-shadow:none;
  color:#fff;
  text-align:center;
  text-shadow:0 1px 6px rgba(0,0,0,.65);
  white-space:pre-wrap;
  overflow-wrap:anywhere;
  line-height:1.18;
  letter-spacing:normal;
  outline:0;
  caret-color:#ffe6a9;
  -webkit-appearance:none;
  appearance:none;
  touch-action:auto;
  -webkit-user-select:text;
  user-select:text;
}
.fs-photo-editor .fs-edit-inline-input.hidden{display:none!important}
.fs-photo-editor .fs-edit-inline-input::placeholder{
  color:rgba(255,255,255,.92);
  opacity:1;
}
.fs-photo-editor .fs-edit-inline-input.fs-inline-none{text-shadow:none}
.fs-photo-editor .fs-edit-inline-input.fs-inline-shadow{
  text-shadow:0 2px 10px #000,0 4px 18px rgba(0,0,0,.9);
}
.fs-photo-editor .fs-edit-inline-input.fs-inline-outline{
  text-shadow:none;
  -webkit-text-stroke:1px rgba(0,0,0,.9);
}
.fs-photo-editor .fs-edit-inline-input.fs-inline-dark{
  background:rgba(0,0,0,.78);
  text-shadow:none;
  border-radius:.27em;
}
.fs-photo-editor .fs-edit-inline-input.fs-inline-light{
  background:rgba(255,255,255,.92);
  text-shadow:none;
  border-radius:.27em;
}
.fs-photo-editor .fs-edit-text-shadow span{
  text-shadow:0 2px 10px #000,0 4px 18px rgba(0,0,0,.9);
}
.fs-photo-editor .fs-edit-text-none span{text-shadow:none!important}
.fs-photo-editor .fs-edit-text-measure{
  position:absolute;
  z-index:-1;
  visibility:hidden;
  pointer-events:none;
  display:block;
  width:max-content;
  max-width:87%;
  white-space:pre-wrap;
  overflow-wrap:anywhere;
  text-align:center;
  padding:.18em .28em;
  border:1px solid transparent;
  line-height:1.18;
  box-sizing:border-box;
}
.fs-photo-editor .fs-simple-style-panel .fs-edit-styles{
  display:flex;
  flex-wrap:wrap;
  justify-content:center;
  gap:7px;
}
.fs-photo-editor .fs-simple-style-panel .fs-edit-style{
  width:auto!important;
  min-width:86px;
  max-width:48%;
  min-height:39px;
  padding:7px 11px;
  font-size:12px;
  font-weight:700;
  letter-spacing:0;
  border-radius:10px;
}
.fs-photo-editor .fs-edit-hint{line-height:1.35!important}

/* Controles contextuais móveis inspirados no Canva */
.fs-photo-editor .fs-edit-stage{overflow:visible}
.fs-photo-editor .fs-edit-text.selected{outline:2px solid #9747ff!important;outline-offset:2px;border:0!important}
.fs-photo-editor .fs-edit-text.selected.is-composing{outline:0!important}
.fs-photo-editor .fs-canva-handle{position:absolute;display:flex;align-items:center;justify-content:center;z-index:5;background:#fff;color:#24232b;border:2px solid #bfc1c9;box-shadow:0 2px 9px #0002;touch-action:none;pointer-events:auto}
.fs-photo-editor .fs-canva-handle-scale{width:23px;height:39px;border-radius:12px;right:-15px;top:50%;transform:translateY(-50%);cursor:nwse-resize}
.fs-photo-editor .fs-canva-handle-rotate{width:37px;height:37px;border-radius:50%;left:50%;bottom:-56px;transform:translateX(-50%);font-size:25px;font-weight:400;cursor:grab}
.fs-photo-editor .fs-canva-toolbar{position:absolute;z-index:12;left:50%;top:-62px;transform:translateX(-50%);display:flex;align-items:center;justify-content:center;gap:3px;padding:6px 10px;background:#fff;color:#14151b;border-radius:40px;box-shadow:0 6px 22px #09092d36;max-width:calc(100% - 12px);white-space:nowrap}
.fs-photo-editor .fs-canva-toolbar button{display:grid;place-items:center;min-width:43px;height:40px;border:0;border-radius:25px;background:transparent;color:#16151c;font-size:24px;font-weight:600;cursor:pointer}
.fs-photo-editor .fs-canva-toolbar button:active{background:#f1edfa}
.fs-photo-editor .fs-edit-stage:has(.fs-edit-inline-input:not(.hidden)) .fs-canva-toolbar{display:none}
@media(max-width:430px){.fs-photo-editor .fs-canva-toolbar{top:-57px}.fs-photo-editor .fs-canva-toolbar button{min-width:39px;height:37px}}

/* Editor minimalista: palco claro e ferramentas contextuais */
.fs-photo-editor{background:#f7f7f9!important;color:#1c1c23!important}
.fs-photo-editor .fs-edit-top{min-height:58px!important;padding:8px 16px!important;background:#fff!important;border-bottom:1px solid #e8e8ee!important;box-shadow:none!important;color:#22232a!important;backdrop-filter:none!important}
.fs-photo-editor .fs-edit-top-title{color:#25242c!important;font-size:15px!important;font-weight:650!important}
.fs-photo-editor .fs-edit-top .fs-edit-top-back{color:#282831!important;background:transparent!important;border:0!important;padding:8px 4px!important;font-weight:600!important}
.fs-photo-editor .fs-edit-top .fs-edit-top-done{background:#873df2!important;color:#fff!important;border:0!important;border-radius:10px!important;padding:10px 13px!important;min-width:0!important;font-size:13px!important;box-shadow:none!important}
.fs-photo-editor .fs-editor-add-top{position:absolute!important;left:14px;bottom:calc(18px + env(safe-area-inset-bottom,0px));z-index:8;padding:0!important;width:auto!important;background:transparent!important}
.fs-photo-editor .fs-editor-add-top .fs-edit-add-top{min-height:45px!important;min-width:104px!important;padding:9px 15px!important;border:1px solid #e5e5eb!important;border-radius:26px!important;background:#fff!important;color:#26252d!important;box-shadow:0 3px 14px #00000014!important;font-size:14px!important;font-weight:650!important}
.fs-photo-editor .fs-edit-workspace{padding:12px 14px 72px!important;background:#f7f7f9!important;overflow:hidden!important}
.fs-photo-editor .fs-edit-stage{width:min(calc(100vw - 52px),calc((100dvh - 230px)*.5625),440px)!important;min-width:0!important;border-radius:0!important;box-shadow:0 3px 15px #0000001c!important}
.fs-photo-editor .fs-edit-panel{background:#fff!important;border-top:1px solid #e9e9ef!important;color:#292832!important;padding:9px 10px calc(9px + env(safe-area-inset-bottom,0px))!important;gap:5px!important}
.fs-photo-editor .fs-simple-tools{display:flex!important;gap:4px!important;justify-content:space-around!important}
.fs-photo-editor .fs-simple-tool{min-height:47px!important;flex:1!important;border:0!important;border-radius:9px!important;background:transparent!important;color:#3b3944!important;padding:6px 2px!important;font-size:11px!important;font-weight:600!important;box-shadow:none!important}
.fs-photo-editor .fs-simple-tool svg{width:19px!important;height:19px!important}
.fs-photo-editor .fs-simple-tool.chosen{background:#f1eaff!important;color:#7835dc!important;border:0!important}
.fs-photo-editor .fs-simple-options{background:#fff!important;color:#24242b!important;border:0!important;box-shadow:none!important}
.fs-photo-editor .fs-edit-hint{display:none!important}
.fs-photo-editor .fs-canva-toolbar{top:-58px!important;background:#fff!important;box-shadow:0 3px 15px #0002!important;border:1px solid #ededf2!important;padding:3px 9px!important}
.fs-photo-editor .fs-canva-toolbar button{font-size:21px!important;min-width:39px!important;height:37px!important}
.fs-photo-editor .fs-canva-toolbar.hidden{display:none!important}
.fs-photo-editor .fs-edit-text.selected{outline:1.5px solid #9747ff!important;outline-offset:2px!important}
.fs-photo-editor .fs-canva-handle-scale{width:17px!important;height:31px!important;right:-10px!important}
.fs-photo-editor .fs-canva-handle-rotate{width:30px!important;height:30px!important;bottom:-43px!important;font-size:20px!important}
@media(max-height:740px){.fs-photo-editor .fs-edit-workspace{padding-bottom:62px!important}.fs-photo-editor .fs-edit-stage{width:min(calc(100vw - 60px),calc((100dvh - 210px)*.5625))!important}}

/* Editor de texto clean: tela neutra, foto em destaque, controles contextuais. */
.fs-photo-editor{background:#f7f7f9!important;color:#1d1d23!important}
.fs-photo-editor .fs-edit-top{background:#fff!important;border-bottom:1px solid #ececf0!important;color:#18181d!important;backdrop-filter:none!important;min-height:60px!important;padding:8px 16px!important}
.fs-photo-editor .fs-edit-top-title{color:#24242a!important;font-size:15px!important;font-weight:650!important}
.fs-photo-editor .fs-edit-top .fs-edit-top-back{color:#22232b!important;background:transparent!important;border:0!important;box-shadow:none!important}
.fs-photo-editor .fs-edit-top .fs-edit-top-done{background:#202027!important;color:#fff!important;border:0!important;border-radius:12px!important;font-size:13px!important;padding:11px 13px!important;box-shadow:none!important}
.fs-photo-editor .fs-editor-add-top{display:none!important}
.fs-photo-editor .fs-edit-workspace{background:#f7f7f9!important;padding:18px 18px 30px!important;overflow:hidden!important}
.fs-photo-editor .fs-edit-stage{width:min(calc(100vw - 62px),calc((100dvh - 260px)*0.5625),420px)!important;min-width:120px!important;border-radius:4px!important;box-shadow:0 8px 25px #00000018!important;overflow:visible!important}
.fs-photo-editor .fs-edit-panel{background:#fff!important;color:#25252b!important;border-top:1px solid #eeeef2!important;padding:9px 12px calc(10px + env(safe-area-inset-bottom,0px))!important;box-shadow:none!important;gap:5px!important}
.fs-photo-editor .fs-simple-tools{display:flex!important;justify-content:space-around!important;gap:4px!important}
.fs-photo-editor .fs-simple-tool{min-height:46px!important;min-width:58px!important;flex:1!important;padding:5px 3px!important;border:0!important;background:transparent!important;color:#303039!important;border-radius:10px!important;box-shadow:none!important;font-size:11px!important;font-weight:600!important}
.fs-photo-editor .fs-simple-tool svg{width:21px!important;height:21px!important}
.fs-photo-editor .fs-simple-tool.chosen{background:#f1ebff!important;color:#7132db!important}
.fs-photo-editor .fs-simple-options{background:#fff!important;color:#20202a!important;box-shadow:none!important;border-color:#eee!important}
.fs-photo-editor .fs-simple-option-button{background:#f3f3f6!important;color:#24242a!important;border-color:#e7e7ed!important}
.fs-photo-editor .fs-edit-hint{display:none!important}
.fs-photo-editor .fs-canva-toolbar{top:-59px!important;border:1px solid #ededf1!important;box-shadow:0 4px 14px #00000016!important}
.fs-photo-editor .fs-canva-toolbar.hidden{display:none!important}
.fs-photo-editor .fs-canva-toolbar button{font-size:21px!important}
.fs-photo-editor .fs-edit-text.selected{outline:2px solid #9747ff!important}
@media(max-height:730px){.fs-photo-editor .fs-edit-stage{width:min(calc(100vw - 80px),calc((100dvh - 235px)*0.5625),400px)!important}}

/* Preview maior, aproveitando a área disponível sem painéis extras. */
.fs-photo-editor .fs-edit-workspace{padding:8px 9px 12px!important;min-height:0!important}
.fs-photo-editor .fs-edit-stage{width:min(calc(100vw - 24px),calc((100dvh - 164px)*0.5625),520px)!important;min-width:150px!important}
.fs-photo-editor .fs-edit-panel.fs-simple-empty{display:none!important}
.fs-photo-editor:has(.fs-edit-inline-input:not(.hidden)) .fs-edit-panel{display:none!important}
.fs-photo-editor:has(.fs-edit-inline-input:not(.hidden)) .fs-edit-top{display:none!important}
.fs-photo-editor:has(.fs-edit-inline-input:not(.hidden)) .fs-edit-workspace{padding:8px!important;align-items:flex-start!important}
.fs-photo-editor:has(.fs-edit-inline-input:not(.hidden)) .fs-edit-stage{width:min(calc(100vw - 22px),calc((100dvh - 160px)*0.5625),520px)!important}
.fs-photo-editor .fs-edit-inline-input{background:transparent!important;border:1px dashed #9a59e8!important;outline:2px solid #9747ff!important;outline-offset:3px!important;border-radius:4px!important;box-shadow:none!important;padding:3px!important}
.fs-photo-editor .fs-edit-inline-input::placeholder{color:rgba(255,255,255,.8)!important}
@media(max-height:760px){.fs-photo-editor .fs-edit-stage{width:min(calc(100vw - 22px),calc((100dvh - 155px)*0.5625),490px)!important}}

/* Miniaturas reais de cada estilo, em vez de botões apenas com texto. */
.fs-photo-editor .fs-edit-styles.fs-simple-style-options{display:flex!important;flex-wrap:nowrap!important;gap:10px!important;overflow-x:auto!important;overscroll-behavior-x:contain!important;scroll-snap-type:x proximity!important;padding:9px 3px 12px!important;scrollbar-width:none}
.fs-photo-editor .fs-edit-styles::-webkit-scrollbar{display:none}
.fs-photo-editor .fs-edit-style.fs-style-preview-card{flex:0 0 98px!important;width:98px!important;min-height:104px!important;display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:flex-start!important;gap:6px!important;border:1px solid #e3e3e8!important;background:#fff!important;color:#34343c!important;border-radius:13px!important;padding:7px!important;box-shadow:none!important;scroll-snap-align:start!important;font-size:11px!important;font-weight:600!important;white-space:normal!important;line-height:1.2!important}
.fs-photo-editor .fs-edit-style.fs-style-preview-card.chosen{border:2px solid #9747ff!important;background:#f9f5ff!important;color:#5224a0!important;padding:6px!important}
.fs-photo-editor .fs-style-preview{display:flex;align-items:center;justify-content:center;width:82px;height:60px;border-radius:8px;background:#68686d;overflow:hidden}
.fs-photo-editor .fs-style-preview span{font:800 32px/1 Arial,sans-serif;color:#fff;letter-spacing:-2px}
.fs-photo-editor .fs-style-preview--none span{text-shadow:none}
.fs-photo-editor .fs-style-preview--plain span{text-shadow:1px 2px 3px #0009}
.fs-photo-editor .fs-style-preview--shadow span{text-shadow:2px 4px 2px #000,0 0 7px #000}
.fs-photo-editor .fs-style-preview--dark span{background:#141419b8;padding:4px 9px;border-radius:4px;text-shadow:none}
.fs-photo-editor .fs-style-preview--light span{background:#ffffffed;color:#222;padding:4px 9px;border-radius:4px;text-shadow:none}
.fs-photo-editor .fs-style-preview--outline span{-webkit-text-stroke:1.8px #151515;text-shadow:none}
.fs-photo-editor .fs-style-preview-label{display:block;text-align:center;max-width:100%;font-size:11px!important;line-height:1.2!important}

/* Identidade Filtros Studio: painel azul com controles contrastantes. */
.fs-photo-editor{background:#eef2fa!important;color:#15265d!important}
.fs-photo-editor .fs-edit-top{background:#fff!important;border-bottom:1px solid #dfe5f3!important}
.fs-photo-editor .fs-edit-panel{background:#001893!important;color:#fff!important;border-top:1px solid #3654d2!important;box-shadow:0 -3px 16px #00115c19!important}
.fs-photo-editor .fs-simple-tool{background:#1533a4!important;color:#fff!important;border:1px solid #5369c9!important;box-shadow:none!important;opacity:1!important}
.fs-photo-editor .fs-simple-tool svg,.fs-photo-editor .fs-simple-tool span{color:inherit!important;opacity:1!important;stroke:currentColor!important}
.fs-photo-editor .fs-simple-tool.chosen{background:#fff!important;color:#001893!important;border-color:#fff!important}
.fs-photo-editor .fs-simple-tool:disabled{background:#233e9d!important;color:#cdd7ff!important;border-color:#5369b8!important;opacity:.72!important}
.fs-photo-editor .fs-simple-panel .fs-simple-options{background:#0a238c!important;border:1px solid #4b61ba!important;box-shadow:none!important}
.fs-photo-editor .fs-simple-panel .fs-simple-option-button{background:#18369b!important;color:#fff!important;border:1px solid #6478d0!important}
.fs-photo-editor .fs-edit-fonts button{color:#fff!important}
.fs-photo-editor .fs-edit-style.fs-style-preview-card{background:#fff!important;color:#222637!important}
.fs-photo-editor .fs-edit-style.fs-style-preview-card.chosen{background:#f4edff!important;color:#5822a8!important}
.fs-photo-editor .fs-edit-workspace{background:#eef2fa!important}
.fs-photo-editor .fs-canva-handle-scale{width:17px!important;height:30px!important;right:-11px!important;border-width:1.5px!important}
.fs-photo-editor .fs-canva-handle-rotate{width:31px!important;height:31px!important;bottom:-46px!important;font-size:20px!important}
.fs-photo-editor .fs-edit-inline-input{background:transparent!important;color:#fff!important;-webkit-text-fill-color:currentColor!important}
.fs-photo-editor .fs-edit-inline-input::placeholder{color:#fff!important;opacity:.9!important}
@media(max-width:430px){.fs-photo-editor .fs-edit-panel{padding:9px 10px calc(10px + env(safe-area-inset-bottom,0px))!important}.fs-photo-editor .fs-simple-tool{min-height:49px!important;font-size:12px!important}}

.fs-photo-editor .fs-canva-handle-scale{width:32px!important;height:32px!important;right:-22px!important;top:100%!important;border-radius:50%!important;transform:translateY(-40%)!important;font-size:23px!important;font-weight:600!important}
.fs-photo-editor .fs-edit-panel .fs-simple-tools{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important}
.fs-photo-editor .fs-simple-tool{font-size:11px!important;min-width:0!important}
.fs-photo-editor .fs-simple-tool span{font-size:11px!important}

/* Fundo do editor na identidade azul; foto segue intacta. */
.fs-photo-editor{background:#061d78!important;color:#fff!important}
.fs-photo-editor .fs-edit-workspace{background:linear-gradient(145deg,#122d91 0%,#061b72 100%)!important}
.fs-photo-editor .fs-edit-top{background:#071e7b!important;color:#fff!important;border-bottom:1px solid #29449f!important}
.fs-photo-editor .fs-edit-top-title{color:#fff!important}
.fs-photo-editor .fs-edit-top .fs-edit-top-back{color:#fff!important}
.fs-photo-editor .fs-edit-top .fs-edit-top-done{background:#fff!important;color:#071e7b!important}
.fs-photo-editor .fs-edit-panel{background:#071e7b!important;border-top:1px solid #344ba5!important}
.fs-photo-editor .fs-edit-panel .fs-simple-tools{grid-template-columns:repeat(3,minmax(0,1fr))!important}
.fs-photo-editor .fs-canva-handle{width:29px!important;height:29px!important;background:#fff!important;color:#6433c6!important;border:1.5px solid #9a68f4!important;box-shadow:0 1px 5px #0003!important}
.fs-photo-editor .fs-canva-handle-scale{right:-17px!important;top:100%!important;transform:translateY(-50%)!important;border-radius:8px!important}
.fs-photo-editor .fs-canva-handle-rotate{left:50%!important;bottom:-44px!important;transform:translateX(-50%)!important;border-radius:50%!important}
.fs-photo-editor .fs-canva-handle svg{width:17px!important;height:17px!important;pointer-events:none}

.fs-photo-editor .fs-canva-delete{position:absolute!important;left:-16px!important;top:-17px!important;display:grid!important;place-items:center!important;width:30px!important;height:30px!important;border:1.5px solid #a16bf0!important;border-radius:50%!important;background:#fff!important;color:#6d37bd!important;box-shadow:0 2px 7px #0003!important;z-index:8!important;cursor:pointer!important;touch-action:manipulation!important;padding:0!important}
.fs-photo-editor .fs-canva-delete svg{pointer-events:none!important}

/* Prévia de foto: imagem protagonista, botões compactos, sem excesso de área vazia. */
.client-app.is-preview .fs-result-compact{gap:14px!important;width:100%!important;max-width:520px!important;margin:0 auto!important;padding:0 10px 8px!important;box-sizing:border-box!important}
.client-app.is-preview .fs-result-picture{width:min(calc(100vw - 54px),calc((100dvh - 370px)*.5625),410px)!important;min-width:210px!important;max-width:100%!important;aspect-ratio:9/16!important;border-radius:13px!important;box-shadow:0 9px 26px #0003!important}
.client-app.is-preview .fs-result-buttons{width:min(100%,440px)!important;gap:8px!important}
.client-app.is-preview .fs-result-buttons button{min-height:46px!important;border-radius:13px!important;font-size:14px!important}
.client-app.is-preview .fs-result-buttons .fs-result-premium{min-height:49px!important}
.client-app.is-preview .fs-result-buttons .fs-result-retry{min-height:40px!important}
@media(max-height:760px){.client-app.is-preview .fs-result-picture{width:min(calc(100vw - 62px),calc((100dvh - 315px)*.5625),380px)!important;min-width:175px!important}.client-app.is-preview .fs-result-compact{gap:10px!important}}

/* 2026-11-16: previews larger in both framing and final result screens. */
.fs-frame-workspace{gap:9px!important;padding:6px 10px 12px!important}
.fs-frame-stage{width:min(calc(100vw - 26px),calc((100dvh - 255px)*.5625),520px)!important;max-width:100%!important}
.fs-frame-stage[data-format="feed"]{width:min(calc(100vw - 26px),calc((100dvh - 255px)*.8),520px)!important}
.fs-frame-hint{margin:0!important;padding:7px 10px!important;font-size:11px!important}
.client-app.is-preview .client-content{padding:4px 12px 5px!important;justify-content:center!important}
.client-app.is-preview .fs-result-compact{gap:9px!important;padding:0 4px!important}
.client-app.is-preview .fs-result-picture{width:min(calc(100vw - 34px),calc((100dvh - 325px)*.5625),490px)!important;min-width:0!important;max-width:100%!important}
.client-app.is-preview .fs-result-buttons{gap:7px!important}
.client-app.is-preview .fs-result-buttons button{min-height:43px!important}
.client-app.is-preview .fs-result-buttons .fs-result-premium{min-height:47px!important}
.client-app.is-preview .fs-result-buttons .fs-result-retry{min-height:37px!important}
@media(max-height:720px){
.fs-frame-stage{width:min(calc(100vw - 28px),calc((100dvh - 225px)*.5625),480px)!important}
.fs-frame-stage[data-format="feed"]{width:min(calc(100vw - 28px),calc((100dvh - 225px)*.8),480px)!important}
.client-app.is-preview .fs-result-picture{width:min(calc(100vw - 36px),calc((100dvh - 290px)*.5625),440px)!important}
}

/* Teste: navegação numerada sobre a câmera, sem miniaturas. */
.client-app.is-camera .client-camera-header{display:flex!important;align-items:center!important;justify-content:flex-start!important}
.client-app.is-camera .client-camera-header .client-top-filters{display:none!important}
.client-viewfinder{position:relative!important}
.client-numbered-filter-rail{position:absolute!important;right:8px!important;top:50%!important;transform:translateY(-50%)!important;z-index:12!important;display:flex!important;flex-direction:column!important;align-items:center!important;gap:9px!important;max-height:75%!important;overflow-y:auto!important;overscroll-behavior:contain!important;padding:5px 2px!important;scrollbar-width:none!important;pointer-events:auto!important}
.client-numbered-filter-rail::-webkit-scrollbar{display:none}
.client-numbered-filter{display:grid!important;place-items:center!important;flex:0 0 auto!important;width:38px!important;height:38px!important;min-width:38px!important;min-height:38px!important;border-radius:50%!important;background:#001893!important;color:#fff!important;border:1px solid #ffffff55!important;box-shadow:0 2px 9px #0005!important;font:700 14px/1 Inter,system-ui,sans-serif!important;padding:0!important}
.client-numbered-filter.active{background:#fff!important;color:#001893!important;border:2px solid #001893!important}
.client-numbered-filter .client-filter-circle,.client-numbered-filter .client-filter-name{display:none!important}
.client-numbered-empty{font-size:10px;color:#fff;background:#001893b8;border-radius:9px;padding:7px}
@media(max-width:380px){.client-numbered-filter{width:34px!important;height:34px!important;min-width:34px!important;min-height:34px!important}.client-numbered-filter-rail{right:5px!important;gap:7px!important}}

/* Mais área útil da câmera, sem deformar o PNG 9:16. */
.client-app.is-camera .client-camera-screen{max-width:540px!important}
.client-app.is-camera .client-viewfinder-wrap{max-width:540px!important}
.client-app.is-camera .client-viewfinder{
  width:min(calc(100vw - 24px),calc((100dvh - 260px)*.5625),510px)!important;
  max-width:100%!important;
}
.client-app.is-camera:has(.client-gallery-finish) .client-viewfinder{
  width:min(calc(100vw - 24px),calc((100dvh - 290px)*.5625),510px)!important;
}
.client-app.is-camera .client-numbered-filter{-webkit-touch-callout:none!important;user-select:none!important;-webkit-user-select:none!important;touch-action:pan-y!important}
.client-app.is-camera .client-photo-controls{margin:5px auto 5px!important}
@media(max-height:700px){
 .client-app.is-camera .client-viewfinder{width:min(calc(100vw - 24px),calc((100dvh - 230px)*.5625),470px)!important}
}

/* Ajuste de proporção da câmera e limpeza visual dos seletores numerados. */
.client-app.is-camera .client-viewfinder{
 width:min(calc(100vw - 16px),calc((100dvh - 190px)*.5625),520px)!important;
}
.client-app.is-camera:has(.client-gallery-finish) .client-viewfinder{
 width:min(calc(100vw - 16px),calc((100dvh - 215px)*.5625),520px)!important;
}
.client-app.is-camera .client-numbered-filter-rail{
 overflow-x:visible!important;
 padding:6px 5px!important;
 filter:none!important;
 background:transparent!important;
 box-shadow:none!important;
}
.client-app.is-camera .client-numbered-filter{
 appearance:none!important;-webkit-appearance:none!important;
 background:#001893!important;color:#fff!important;
 border:1px solid rgba(255,255,255,.32)!important;
 outline:0!important;box-shadow:none!important;
 filter:none!important;transform:none!important;
 backdrop-filter:none!important;-webkit-backdrop-filter:none!important;
 text-shadow:none!important;
}
.client-app.is-camera .client-numbered-filter.active{
 background:#fff!important;color:#001893!important;
 border:2px solid #001893!important;
}
.client-app.is-camera .client-numbered-filter::before,
.client-app.is-camera .client-numbered-filter::after{
 content:none!important;display:none!important;
}
.client-app.is-camera .client-numbered-filter:focus:not(:focus-visible){outline:none!important}
@media(max-height:700px){
 .client-app.is-camera .client-viewfinder{
  width:min(calc(100vw - 16px),calc((100dvh - 185px)*.5625),480px)!important;
 }
}

/* Câmera sem cabeçalho: menu flutuante sobre a imagem, prévia máxima 9:16. */
.client-app.is-camera .client-content{
 padding:2px 6px calc(5px + env(safe-area-inset-bottom,0px))!important;
}
.client-app.is-camera .client-camera-screen{
 width:100%!important;max-width:540px!important;gap:0!important;
}
.client-app.is-camera .client-camera-screen .client-viewfinder-wrap{
 width:100%!important;max-width:540px!important;margin:0 auto 5px!important;
}
.client-app.is-camera .client-viewfinder{
 width:min(calc(100vw - 12px),calc((100dvh - 155px)*.5625),520px)!important;
 max-width:100%!important;aspect-ratio:9/16!important;
 border:1px solid rgba(255,255,255,.65)!important;
 border-radius:15px!important;box-shadow:none!important;
 position:relative!important;
}
.client-app.is-camera:has(.client-gallery-finish) .client-viewfinder{
 width:min(calc(100vw - 12px),calc((100dvh - 210px)*.5625),520px)!important;
}
.client-app.is-camera .client-viewfinder .client-camera-floating-menu{
 position:absolute!important;top:10px!important;left:10px!important;
 z-index:16!important;display:grid!important;place-items:center!important;
 width:43px!important;height:43px!important;min-width:43px!important;min-height:43px!important;
 padding:0!important;margin:0!important;border-radius:13px!important;
 color:#001893!important;background:#fff!important;border:1px solid #fff!important;
 box-shadow:0 2px 9px #0003!important;
}
.client-app.is-camera .client-photo-controls{margin:4px auto 4px!important}
@media(max-height:700px){
 .client-app.is-camera .client-viewfinder{
  width:min(calc(100vw - 12px),calc((100dvh - 145px)*.5625),480px)!important;
 }
}

/* Margem superior discreta; o menu da câmera foi substituído pelo Voltar. */
.client-app.is-camera .client-content{
 padding-top:12px!important;
}
.client-app.is-camera .client-viewfinder{
 width:min(calc(100vw - 12px),calc((100dvh - 175px)*.5625),520px)!important;
}
@media(max-height:700px){
 .client-app.is-camera .client-viewfinder{
  width:min(calc(100vw - 12px),calc((100dvh - 165px)*.5625),480px)!important;
 }
}

/* Espaçamento visual equilibrado entre topo, prévia e controles. */
.client-app.is-camera .client-content{
 padding-top:28px!important;
}
.client-app.is-camera .client-viewfinder{
 width:min(calc(100vw - 12px),calc((100dvh - 191px)*.5625),520px)!important;
}
@media(max-height:700px){
 .client-app.is-camera .client-content{padding-top:20px!important}
 .client-app.is-camera .client-viewfinder{
  width:min(calc(100vw - 12px),calc((100dvh - 173px)*.5625),480px)!important;
 }
}

/* Identidade compacta e integrada ao topo da câmera. */
.client-app.is-camera .fs-camera-brand{
 display:flex;align-items:center;justify-content:center;gap:9px;
 width:max-content;max-width:calc(100% - 24px);
 margin:0 auto 11px;padding:0;color:#fff;
 background:transparent;border:0;box-shadow:none;
}
.client-app.is-camera .fs-camera-brand img{
 display:block;width:30px;height:30px;object-fit:contain;
 border-radius:8px;flex:none;
}
.client-app.is-camera .fs-camera-brand span{display:flex;flex-direction:column;gap:1px;min-width:0}
.client-app.is-camera .fs-camera-brand strong{font-size:14px;font-weight:800;letter-spacing:.015em;line-height:1.1}
.client-app.is-camera .fs-camera-brand small{font-size:8px;font-weight:650;letter-spacing:.09em;line-height:1.2;opacity:.78}
.client-app.is-camera .client-content{padding-top:13px!important}
.client-app.is-camera .client-viewfinder[data-filter-format="story"]{
 aspect-ratio:9/16!important;
 width:min(calc(100vw - 12px),calc((100dvh - 202px)*.5625),520px)!important;
}
.client-app.is-camera .client-viewfinder[data-filter-format="feed"]{
 aspect-ratio:4/5!important;
 width:min(calc(100vw - 12px),calc((100dvh - 202px)*.8),520px)!important;
}
.client-app.is-camera:has(.client-gallery-finish) .client-viewfinder[data-filter-format="feed"]{
 width:min(calc(100vw - 12px),calc((100dvh - 242px)*.8),520px)!important;
}
/* O PNG sempre cabe inteiro na área de visualização. */
.client-app.is-camera .client-viewfinder #cameraOverlay{
 width:100%!important;height:100%!important;object-fit:fill!important;
}
/* Respeitar a proporção do arquivo em resultado e edição. */
.client-app.is-preview .fs-result-picture{
 aspect-ratio:var(--photo-ratio,9/16)!important;
 width:min(calc(100vw - 28px),calc((100dvh - 365px)*var(--photo-width-ratio, .5625)),450px)!important;
 max-width:100%!important;
}
.client-app.is-preview .fs-result-picture img{object-fit:contain!important}
.fs-photo-editor .fs-edit-stage{
 aspect-ratio:var(--photo-ratio,9/16)!important;
 width:min(calc(100vw - 20px),420px)!important;
 max-height:calc(100dvh - 290px)!important;
}
.fs-photo-editor .fs-edit-base{object-fit:contain!important}
@media(max-height:700px){
 .client-app.is-camera .fs-camera-brand{margin-bottom:7px}
 .client-app.is-camera .client-viewfinder[data-filter-format="story"]{
  width:min(calc(100vw - 12px),calc((100dvh - 188px)*.5625),480px)!important;
 }
 .client-app.is-camera .client-viewfinder[data-filter-format="feed"]{
  width:min(calc(100vw - 12px),calc((100dvh - 188px)*.8),480px)!important;
 }
}

/* Cards de estilos integrados ao azul do aplicativo, sem blocos brancos. */
.fs-photo-editor .fs-edit-style.fs-style-preview-card{
 background:rgba(255,255,255,.065)!important;
 border:1px solid rgba(255,255,255,.25)!important;
 color:#fff!important;
 box-shadow:none!important;
}
.fs-photo-editor .fs-edit-style.fs-style-preview-card.chosen{
 background:rgba(255,255,255,.15)!important;
 border:2px solid #d9b7ff!important;
 color:#fff!important;
}
.fs-photo-editor .fs-style-preview{
 background:rgba(0,0,0,.18)!important;
 border:1px solid rgba(255,255,255,.14);
}
.fs-photo-editor .fs-style-preview span{
 color:var(--preview-text-color,#fff)!important;
}
.fs-photo-editor .fs-style-preview--light span{
 color:#121928!important;
}
.fs-photo-editor .fs-style-preview-label{color:inherit!important}
.fs-photo-editor .fs-edit-font.chosen{
 background:rgba(255,255,255,.16)!important;
 color:#fff!important;
 border-color:#d9b7ff!important;
}

/* Paleta compacta do efeito: integra-se ao painel azul sem cartões brancos. */
.fs-photo-editor .fs-effect-header{display:flex;justify-content:space-between;gap:12px;color:#fff;font-size:12px;font-weight:700;padding:3px 4px 5px}
.fs-photo-editor .fs-effect-colors{display:flex;align-items:center;gap:11px;overflow-x:auto;scrollbar-width:none;padding:9px 5px 7px;min-height:51px}
.fs-photo-editor .fs-effect-colors::-webkit-scrollbar{display:none}
.fs-photo-editor .fs-effect-swatch{flex:0 0 32px;width:32px;height:32px;border-radius:50%;border:2px solid rgba(255,255,255,.65);background:var(--swatch)!important;box-shadow:none!important;padding:0}
.fs-photo-editor .fs-effect-swatch.chosen{outline:2px solid #cf9cff;outline-offset:3px}
.fs-photo-editor .fs-effect-custom{flex:0 0 34px;width:34px;height:34px;position:relative;border-radius:50%;overflow:hidden;border:1px solid #ffffffa8;background:conic-gradient(red,yellow,lime,cyan,blue,magenta,red);display:grid;place-items:center}
.fs-photo-editor .fs-effect-custom input{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer}
.fs-photo-editor .fs-effect-custom span{pointer-events:none;color:#fff;text-shadow:0 1px 4px #000;font-size:20px}
.fs-photo-editor .fs-edit-text-plain span{text-shadow:0 1px 6px var(--effect-soft,#000a),0 1px 2px var(--effect-soft,#0009)}
.fs-photo-editor .fs-edit-text-shadow span{text-shadow:2px 3px 4px var(--effect-strong,#000f),0 0 8px var(--effect-soft,#000a)}
.fs-photo-editor .fs-edit-text-dark span{background:var(--effect-band,#000c)}
.fs-photo-editor .fs-edit-text-light span{background:var(--effect-band,#fffffff0)}
.fs-photo-editor .fs-edit-text-outline span{-webkit-text-stroke:.065em var(--effect-color,#000)}
.fs-photo-editor .fs-style-preview--plain span{text-shadow:1px 2px 3px var(--effect-soft,#0009)}
.fs-photo-editor .fs-style-preview--shadow span{text-shadow:2px 4px 2px var(--effect-strong,#000),0 0 7px var(--effect-soft,#000)}
.fs-photo-editor .fs-style-preview--dark span{background:var(--effect-band,#000c)}
.fs-photo-editor .fs-style-preview--light span{background:var(--effect-band,#fffffff0)}
.fs-photo-editor .fs-style-preview--outline span{-webkit-text-stroke:1.8px var(--effect-color,#000)}

/* Editor: o palco acompanha a proporção real (9:16 ou 4:5), sem quadro externo.
   A largura é limitada pela altura disponível, nunca pela altura fixa do CSS antigo. */
.fs-photo-editor .fs-edit-workspace{
  padding:8px 8px 10px!important;
  min-height:0!important;
  align-items:center!important;
  justify-content:center!important;
  overflow:hidden!important;
}
.fs-photo-editor .fs-edit-stage,
.fs-photo-editor .fs-edit-stage[data-format="story"],
.fs-photo-editor .fs-edit-stage[data-format="feed"]{
  box-sizing:border-box!important;
  flex:0 0 auto!important;
  width:min(calc(100% - 2px),calc((100dvh - 210px)*var(--editor-ratio,.5625)),520px)!important;
  height:auto!important;
  min-width:0!important;
  max-width:100%!important;
  max-height:none!important;
  aspect-ratio:var(--photo-ratio,9/16)!important;
  border:0!important;
  border-radius:8px!important;
  box-shadow:none!important;
  background:transparent!important;
  overflow:visible!important;
}
.fs-photo-editor .fs-edit-base{
  width:100%!important;
  height:100%!important;
  object-fit:fill!important;
  border-radius:8px!important;
}
@media(max-height:760px){
  .fs-photo-editor .fs-edit-stage,
  .fs-photo-editor .fs-edit-stage[data-format="story"],
  .fs-photo-editor .fs-edit-stage[data-format="feed"]{
    width:min(calc(100% - 2px),calc((100dvh - 190px)*var(--editor-ratio,.5625)),520px)!important;
  }
}

/* Confirmação explícita ao lado do texto, acessível por toque em iOS/Android. */
.fs-photo-editor .fs-edit-confirm{position:absolute;z-index:8;transform:translate(-50%,-50%);width:42px;height:42px;border-radius:50%;border:2px solid #fff;background:#12a66a;color:#fff;font-size:24px;font-weight:800;line-height:1;display:flex;align-items:center;justify-content:center;box-shadow:0 3px 14px rgba(0,0,0,.3);touch-action:manipulation;-webkit-tap-highlight-color:transparent;cursor:pointer}
.fs-photo-editor .fs-edit-confirm.hidden{display:none!important}
.fs-photo-editor .fs-edit-confirm:focus-visible{outline:3px solid #fff;outline-offset:2px}

/* Ação contextual para criar texto apenas quando a pessoa desejar. */
.fs-photo-editor .fs-edit-add-here{position:absolute;z-index:7;transform:translate(-50%,-50%);display:flex;align-items:center;gap:6px;padding:7px 11px 7px 8px;max-width:90%;min-height:42px;border:1px solid rgba(255,255,255,.8);border-radius:999px;background:rgba(0,24,147,.94);color:#fff;box-shadow:0 4px 18px rgba(0,0,0,.3);font-size:12px;font-weight:750;white-space:nowrap;touch-action:manipulation;-webkit-tap-highlight-color:transparent;cursor:pointer}
.fs-photo-editor .fs-edit-add-here>span:first-child{display:grid;place-items:center;background:#fff;color:#001893;border-radius:50%;width:25px;height:25px;font-size:23px;line-height:1;font-weight:500;flex:none}
.fs-photo-editor .fs-edit-add-here:focus-visible{outline:3px solid #fff;outline-offset:3px}

/* Confirmação compacta, discreta e com alvo de toque confortável. */
.fs-photo-editor .fs-edit-confirm{width:30px;height:30px;min-width:30px;min-height:30px;border:1px solid rgba(255,255,255,.7);background:rgba(25,36,56,.82);color:#fff;font-size:17px;font-weight:600;box-shadow:0 2px 8px rgba(0,0,0,.22);backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px)}

/* Check verde, pequeno e discreto; mantém confirmação automática ao tocar fora. */
.fs-photo-editor .fs-edit-confirm{color:#54e0a0;background:rgba(25,36,56,.86);border-color:rgba(255,255,255,.58)}
