/* AZUP Camera Studio — próprio do aplicativo, sem aparência de página web */
.azcam-stage{position:fixed!important;inset:0!important;z-index:99999!important;
 width:100vw;max-width:100vw;height:100dvh;overflow:hidden;overscroll-behavior:contain;
 background:#050a0b;color:#fff;font-family:inherit;isolation:isolate;-webkit-user-select:none;user-select:none}
.azcam-stage *{box-sizing:border-box}
.azcam-stage button,.azcam-stage input{font-family:inherit}
.azcam-stage button{-webkit-tap-highlight-color:transparent;cursor:pointer}
.azcam-stage button:focus-visible,.azcam-stage input:focus-visible{outline:2px solid #5de9dc;outline-offset:2px}
.azcam-camera{height:100%;width:100%;position:relative;display:flex;flex-direction:column;overflow:hidden;background:#061112}
/* Visor vertical imersivo; o recorte da foto é igual ao que a pessoa viu. */
.azcam-live{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:center center;background:#071012;transform:translateZ(0);transform-origin:center center}
.azcam-live.azcam-selfie-mirror{transform:scaleX(-1) translateZ(0)}
.azcam-shade{pointer-events:none;position:absolute;left:0;right:0;z-index:1}
.azcam-shade-top{top:0;height:28%;background:linear-gradient(to bottom,#000a,transparent)}
.azcam-head{position:absolute;z-index:4;top:0;left:0;right:0;padding:calc(17px + env(safe-area-inset-top)) 18px 12px;display:flex;gap:14px;align-items:center;justify-content:space-between}
.azcam-brand{font-size:17px;letter-spacing:.01em;font-weight:800;text-shadow:0 2px 9px #0008}
.azcam-brand span{font-size:12px;font-weight:550;opacity:.8;margin-left:4px}
.azcam-circle{color:white;width:44px;height:44px;display:grid;place-items:center;border:1px solid #ffffff35;border-radius:50%;background:#07101280;backdrop-filter:blur(20px);-webkit-backdrop-filter:blur(20px);box-shadow:inset 0 1px #ffffff22}
.azcam-circle:active,.azcam-side:active,.azcam-shutter:active{transform:scale(.94)}
.azcam-flash{opacity:.4}
.azcam-flash.is-supported{opacity:1}
.azcam-flash.active{background:#c0c25a;color:#15231e}
.azcam-camera-bottom{position:absolute;left:0;right:0;bottom:0;z-index:4;padding:28px 20px calc(22px + env(safe-area-inset-bottom));background:linear-gradient(to top,#030708ee 5%,#030708b8 60%,transparent);display:flex;flex-direction:column;gap:22px}
.azcam-mode{display:flex;gap:30px;justify-content:center;align-items:center}
.azcam-mode button{background:transparent;border:0;font-size:13px;letter-spacing:.09em;color:#e8eeedd0;padding:7px 8px;font-weight:750}
.azcam-mode button.active{color:#6ff5df}
.azcam-mode.locked{opacity:.45;pointer-events:none}
.azcam-actions{width:min(100%,365px);margin:auto;display:flex;gap:24px;justify-content:space-between;align-items:center}
.azcam-side{display:grid;place-items:center;border:1px solid #ffffff30;border-radius:50%;width:54px;height:54px;color:white;background:#07101291;backdrop-filter:blur(20px);-webkit-backdrop-filter:blur(20px)}
.azcam-shutter{display:grid;place-items:center;width:82px;height:82px;min-width:82px;border:4px solid #fff;border-radius:50%;padding:5px;background:#ffffff20;box-shadow:0 3px 22px #0006;transition:transform .15s,background .15s}
.azcam-shutter span{display:block;width:100%;height:100%;background:white;border-radius:50%;transition:all .16s}
.azcam-shutter.video span{background:#f2575d;width:93%;height:93%}
.azcam-shutter.recording span{width:27px;height:27px;border-radius:7px;background:#fa4b58}
.azcam-rec-clock{position:absolute;top:-13px;left:50%;transform:translateX(-50%);font-size:14px;background:#c22a39;border-radius:20px;padding:5px 13px;font-weight:800;font-variant-numeric:tabular-nums}
.azcam-rec-clock[hidden]{display:none}
.azcam-note{position:absolute;z-index:6;top:calc(88px + env(safe-area-inset-top));left:20px;right:20px;color:#fff;text-align:center;font-size:13px;text-shadow:0 1px 5px #000}
.azcam-note:empty{display:none}
.azcam-fallback{height:100%;display:flex;flex-direction:column;padding:calc(12px + env(safe-area-inset-top)) 20px}
.azcam-fallback>.azcam-circle{align-self:flex-start}
.azcam-fallback-content{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:14px;text-align:center}
.azcam-fallback-content h2{font-size:21px;line-height:1.2;margin:0}
.azcam-fallback-content p{max-width:310px;color:#cbdcda;font-size:14px;line-height:1.5;margin:0}
.azcam-fallback-actions{display:flex;flex-direction:column;gap:10px;width:min(100%,300px);margin-top:14px}
.azcam-pill{background:#243e3e;color:white;border:1px solid #ffffff24;border-radius:16px;padding:14px 17px;display:flex;align-items:center;justify-content:center;gap:9px;font-weight:700}
.azcam-pill.primary{background:#12a498;border-color:transparent}
.azcam-editor,.azcam-video-review{height:100%;display:flex;flex-direction:column;overflow:hidden;background:#061012}
.azcam-edit-head{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:calc(12px + env(safe-area-inset-top)) 15px 12px;min-height:72px;flex:0 0 auto}
.azcam-edit-head strong{font-size:16px;font-weight:700}
.azcam-editor-work{flex:1;min-height:0;display:flex;align-items:center;justify-content:center;overflow:hidden;padding:3px 8px;background:#020808}
.azcam-photo-canvas{display:block;max-width:100%;max-height:100%;width:auto;height:auto;object-fit:contain;box-shadow:0 0 15px #0006;touch-action:pan-y}
.azcam-photo-canvas.drawing{touch-action:none;cursor:crosshair}
.azcam-edit-tools{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:3px;background:#0b191b;border-top:1px solid #ffffff13;padding:10px 6px}
.azcam-edit-tool{border:0;color:#e8f4f2;background:transparent;min-width:0;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:6px;padding:6px 2px;border-radius:12px}
.azcam-edit-tool small{font-size:10px;font-weight:620;white-space:nowrap}
.azcam-edit-tool.active{background:#145e58;color:#74ebdb}
.azcam-edit-tool:active{transform:scale(.94)}
.azcam-zoom-wrap,.azcam-text-wrap{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 15px;border-top:1px solid #ffffff20;background:#0d1a1b}
.azcam-zoom-wrap[hidden],.azcam-text-wrap[hidden]{display:none}
.azcam-zoom-wrap span{font-size:12px;min-width:65px}
.azcam-zoom-wrap input{flex:1;min-width:0;accent-color:#31ddc5}
.azcam-text-wrap input{flex:1;min-width:0;color:#fff;background:#142b2d;border:1px solid #ffffff35;border-radius:13px;padding:10px 13px;font-size:16px}
.azcam-mini{display:grid;place-items:center;border:0;border-radius:11px;width:42px;height:42px;background:#157e76;color:white;flex:0 0 42px}
.azcam-edit-bottom{display:flex;gap:9px;align-items:center;padding:10px 14px calc(14px + env(safe-area-inset-bottom));background:#0a191b;border-top:1px solid #ffffff25;flex:0 0 auto}
.azcam-caption{font-size:16px;flex:1;min-width:0;border-radius:23px;border:1px solid #ffffff24;background:#ffffff16;color:#fff;padding:13px 18px;line-height:20px;outline:none}
.azcam-caption::placeholder{color:#d9e2e1a9}
.azcam-send{display:grid;place-items:center;width:48px;height:48px;flex:0 0 48px;border:0;border-radius:18px;background:#159d8f;color:white;box-shadow:0 3px 17px #126f6544}
.azcam-send.loading{opacity:.5;pointer-events:none}
.azcam-video-review video{display:block;max-width:100%;max-height:100%;min-height:0;width:100%;flex:1;object-fit:contain;background:#020709}
@media(min-width:750px){
 .azcam-stage{display:flex;justify-content:center;background:#061113ee;backdrop-filter:blur(15px)}
 .azcam-camera,.azcam-editor,.azcam-video-review,.azcam-fallback{width:min(100%,560px);border-left:1px solid #ffffff20;border-right:1px solid #ffffff20}
}
@media(max-height:620px){
 .azcam-camera-bottom{gap:12px;padding-top:12px}
 .azcam-edit-tools{padding:5px}
 .azcam-edit-head{min-height:56px}
 .azcam-photo-canvas{max-height:100%}
}
@media(prefers-reduced-motion:reduce){.azcam-stage button{transition:none!important}}


/* Feedback do editor, inclusive se o envio falhar */
.azcam-feedback{position:absolute;top:calc(75px + env(safe-area-inset-top));left:14px;right:14px;
 z-index:20;padding:11px 15px;color:#fff;text-align:center;max-width:400px;margin:auto;
 border-radius:15px;border:1px solid #ffffff2d;background:#1a3f3fdf;
 backdrop-filter:blur(16px);-webkit-backdrop-filter:blur(16px);font-size:13px;line-height:1.35;
 box-shadow:0 7px 25px #0005}
.azcam-feedback:empty{display:none}


.azcam-once-toggle{
 min-width:44px;width:44px;height:44px;flex:0 0 44px;border-radius:15px;
 border:1px solid #ffffff60;background:#ffffff14;color:#fff;
 display:flex;align-items:center;justify-content:center;transition:background .17s,border-color .17s;
}
.azcam-once-toggle span{display:grid;place-items:center;width:24px;height:24px;border:2px solid currentColor;
 border-radius:50%;font-size:14px;font-weight:750;line-height:1}
.azcam-once-toggle.active{background:#24b9a5;border-color:#46e7d3;color:#041e20}
.azcam-once-toggle[hidden]{display:none!important}
/* Editor visível mesmo com o teclado de legenda do iPhone aberto. */
@media(max-width:750px){
 .azcam-stage{height:var(--azup-visible-height,100dvh)!important;top:var(--azup-visual-top,0px)!important}
 .azcam-edit-bottom{position:relative;z-index:6}
 .azcam-caption{min-width:0;max-width:100%}
}



/* AZUP Camera Studio V3.15 — preview retrato de ponta a ponta no iPhone.
   Não aplicar aspect-ratio horizontal nem object-fit:contain ao visor. */
.azcam-camera{position:relative;width:100%;height:100%;overflow:hidden;background:#040a0b}
.azcam-preview-window{
 position:absolute;inset:0;width:100%;height:100%;
 display:block;overflow:hidden;z-index:0;
 background:#040a0b;border:0;box-shadow:none;transform:none;
}
.azcam-preview-window .azcam-live{
 position:absolute;inset:0;display:block;
 width:100%;height:100%;
 object-fit:cover;object-position:center center;
 background:#040a0b;
}
.azcam-preview-window .azcam-live.azcam-selfie-mirror{transform:scaleX(-1)}
.azcam-shade-top{height:25%;z-index:1}
.azcam-head{z-index:5}
.azcam-camera-bottom{
 z-index:5;
 background:linear-gradient(to top,rgba(0,0,0,.92) 0%,rgba(0,0,0,.66) 44%,transparent 100%);
}
@media(max-width:750px){
 .azcam-stage{width:100vw;max-width:100vw;overflow:hidden}
 .azcam-camera{height:100%;min-height:100%}
 .azcam-preview-window{height:100%;max-height:none}
 .azcam-preview-window .azcam-live{object-fit:cover}
}
