
.ad-fallback{width:100%;min-height:inherit;height:100%;display:grid;place-items:center;gap:4px;padding:12px 14px;text-align:center;background:linear-gradient(135deg,rgba(109,94,252,.12),rgba(58,213,206,.08));border:1px dashed rgba(140,149,173,.38);border-radius:inherit;color:#cfd7e6}
.ad-fallback small{font-size:10px;letter-spacing:.16em;text-transform:uppercase;color:#95a2b8;font-weight:800}
.ad-fallback strong{font-size:14px;line-height:1.35;color:#f5f7fb}
.ad-fallback span{font-size:12px;line-height:1.55;color:#aeb8c8;max-width:38ch}
.reward-ad .ad-fallback{border-radius:16px;border-style:solid}
@media (max-width:760px){
  .actions-sticky{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px!important;align-items:stretch!important}
  .actions-sticky button{width:100%!important}
  .actions-sticky button:only-child,.actions-sticky button:last-child:nth-child(3){grid-column:1/-1}
  .editor-toolbar-v10{display:flex!important;flex-wrap:wrap!important;gap:8px!important;height:auto!important;border-radius:18px!important;padding:10px!important;margin:0 0 10px!important;border:1px solid var(--app-line)!important}
  .editor-toolbar-v10 .toolbar-spacer{display:none!important}
  .editor-toolbar-v10 button{display:flex!important;align-items:center!important;justify-content:center!important;gap:6px!important;flex:1 1 calc(25% - 8px)!important;min-width:0!important;height:42px!important;padding:0 10px!important;font-size:12px!important}
  .editor-toolbar-v10 button span{display:none!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
  #autoPrepare span,#removeBackground span,#undoEdit span,#resetEditor span,#openEditorTools span,#openAiTools span{display:inline!important}
  #autoPrepare,#removeBackground,#openEditorTools,#openAiTools{flex-basis:calc(50% - 8px)!important}
  .source-actions,.output-gate-actions,.export-buttons,.export-secondary-actions{display:grid!important;grid-template-columns:1fr!important;gap:9px!important}
  .mobile-fixed-ad{left:10px!important;right:10px!important;bottom:10px!important;min-height:72px!important;border-radius:18px!important}
  .mobile-fixed-ad ins{min-height:68px!important}
  .has-mobile-ad .actions-sticky{bottom:86px!important}
  .has-mobile-ad .screen.active,.has-mobile-ad .editor-screen.active{padding-bottom:170px!important}
  .review-grid-v10,.export-card-v10{padding-bottom:6px!important}
  .output-gate-card{scroll-margin-top:132px!important}
  .tool-fields{display:grid!important;grid-template-columns:1fr!important;gap:10px!important}
  .tool-fields label{min-width:0!important}
}
@media (max-width:430px){
  .editor-toolbar-v10 button{flex-basis:calc(50% - 8px)!important}
}
@media (max-width:900px){
  .print-gate>div{grid-template-columns:1fr!important}
  .print-actions{position:sticky!important;bottom:0!important;z-index:20!important;padding-bottom:calc(8px + env(safe-area-inset-bottom))!important;background:rgba(8,13,22,.94)!important;backdrop-filter:blur(14px)!important}
  .print-actions button{min-height:48px!important}
}

/* Restored biometric loading / analysis effect */
.process-overlay{position:absolute!important;inset:0!important;z-index:40!important;display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;gap:10px!important;overflow:hidden!important;background:linear-gradient(180deg,rgba(5,10,17,.72),rgba(15,12,40,.84))!important;backdrop-filter:blur(2px)!important;color:#fff!important;isolation:isolate}
.process-overlay.hidden{display:none!important}
.process-overlay:before{content:"";position:absolute;inset:0;z-index:-2;background-image:linear-gradient(rgba(94,234,212,.055) 1px,transparent 1px),linear-gradient(90deg,rgba(94,234,212,.055) 1px,transparent 1px);background-size:26px 26px;animation:analysisGrid 5s linear infinite}
.process-overlay:after{content:"";position:absolute;inset:0;z-index:-1;background:radial-gradient(circle at center,transparent 20%,rgba(4,8,15,.48) 78%)}
.scan-line{position:absolute!important;left:5%!important;right:5%!important;height:2px!important;background:linear-gradient(90deg,transparent,#4cf4df,#fff,#8a78ff,transparent)!important;box-shadow:0 0 18px #4cf4df,0 0 30px rgba(139,92,246,.45)!important;animation:faceScanV11 1.6s ease-in-out infinite!important}
.face-scan{position:relative!important;width:42%!important;height:58%!important;max-width:190px!important;max-height:260px!important;border:1px solid rgba(94,234,212,.58)!important;border-radius:48% 48% 43% 43%!important;box-shadow:inset 0 0 36px rgba(94,234,212,.06),0 0 28px rgba(94,234,212,.09)!important}
.face-scan i{position:absolute!important;width:24px!important;height:24px!important;border-color:#a995ff!important;border-style:solid!important}
.face-scan i:nth-child(1){left:-2px;top:-2px;border-width:2px 0 0 2px;border-radius:8px 0 0}
.face-scan i:nth-child(2){right:-2px;top:-2px;border-width:2px 2px 0 0;border-radius:0 8px 0 0}
.face-scan i:nth-child(3){left:-2px;bottom:-2px;border-width:0 0 2px 2px;border-radius:0 0 0 8px}
.face-scan i:nth-child(4){right:-2px;bottom:-2px;border-width:0 2px 2px 0;border-radius:0 0 8px}
.process-overlay strong{max-width:82%;font-size:13px!important;line-height:1.45!important;text-align:center!important;letter-spacing:.01em!important}
.process-overlay span{font-size:12px!important;color:#75efe1!important;font-weight:800!important;padding:5px 9px!important;border-radius:999px!important;background:rgba(5,12,20,.58)!important;border:1px solid rgba(94,234,212,.18)!important}
@keyframes faceScanV11{0%,100%{top:10%;opacity:.55}50%{top:87%;opacity:1}}
@keyframes analysisGrid{from{background-position:0 0,0 0}to{background-position:0 26px,26px 0}}

/* Optional SEO copy managed from Admin without changing the application layout */
.managed-app-content{max-width:1180px;margin:18px auto 40px;padding:0 14px;color:#dfe6f1}
.managed-app-content__inner{padding:22px;border:1px solid rgba(255,255,255,.08);border-radius:24px;background:linear-gradient(180deg,rgba(17,24,39,.94),rgba(10,16,29,.98));box-shadow:0 16px 48px rgba(0,0,0,.24)}
.managed-app-content h2{margin:0 0 12px;font-size:clamp(22px,3vw,34px);letter-spacing:-.035em}
.managed-app-content p,.managed-app-content li{color:#aeb8c8;line-height:1.75}
.managed-app-content img{max-width:100%;height:auto;border-radius:16px}
@media(max-width:760px){.process-overlay strong{font-size:12px!important}.face-scan{width:48%!important;height:56%!important}.managed-app-content{margin:12px auto 100px;padding:0 10px}.managed-app-content__inner{padding:17px;border-radius:20px}}
.review-photo{position:relative!important;overflow:hidden!important}
.review-analysis-overlay{position:absolute;inset:0;z-index:25;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;overflow:hidden;background:linear-gradient(180deg,rgba(5,10,17,.70),rgba(15,12,40,.84));backdrop-filter:blur(2px);color:#fff}
.review-analysis-overlay.hidden{display:none!important}
.review-analysis-overlay:before{content:"";position:absolute;inset:0;z-index:-2;background-image:linear-gradient(rgba(94,234,212,.055) 1px,transparent 1px),linear-gradient(90deg,rgba(94,234,212,.055) 1px,transparent 1px);background-size:26px 26px;animation:analysisGrid 5s linear infinite}
.review-analysis-overlay:after{content:"";position:absolute;inset:0;z-index:-1;background:radial-gradient(circle at center,transparent 20%,rgba(4,8,15,.48) 78%)}
.review-analysis-overlay strong{max-width:82%;font-size:13px;line-height:1.45;text-align:center}
.review-analysis-overlay>span{font-size:12px;color:#75efe1;font-weight:800;padding:5px 9px;border-radius:999px;background:rgba(5,12,20,.58);border:1px solid rgba(94,234,212,.18)}


/* v11.1 unified preview protection */
.source-photo-preview{position:relative!important;overflow:hidden!important;border-radius:24px!important;background:#fff!important;min-width:0!important}
.source-preview>.source-photo-preview{padding:0!important;border:0!important;background:#fff!important}
.source-preview>.source-preview-meta{padding:18px!important;border:1px solid var(--app-line-soft)!important;border-radius:20px!important;background:rgba(255,255,255,.025)!important;max-width:none!important}
.source-photo-preview img{display:block!important;width:100%!important;max-height:64vh!important;object-fit:contain!important;border-radius:0!important;background:#fff!important}
.photo-frame>.editor-watermark-layer{z-index:5!important}
.photo-frame .guide{z-index:6!important}
.photo-frame .selection{z-index:6!important}
.ai-review-photo{position:relative;overflow:hidden;border-radius:12px;background:#fff}
.ai-review-photo img{border-radius:0!important}
.archive-photo-preview{position:relative;overflow:hidden;border-radius:12px;background:#fff}
.archive-photo-preview img{display:block;width:100%;height:auto}
.archive-card .watermark-layer{grid-template-columns:repeat(2,1fr);grid-auto-rows:34px;gap:4px}
.archive-card .watermark-layer span{font-size:8px;letter-spacing:.05em}
.print-protected-preview{position:relative;overflow:hidden;background:#fff}
.print-thumb-watermark{position:absolute;inset:-20%;z-index:4;display:grid;grid-template-columns:repeat(2,1fr);grid-auto-rows:22px;align-content:center;gap:3px;transform:rotate(-45deg);pointer-events:none;overflow:hidden}
.print-thumb-watermark span{font-size:7px;font-weight:900;letter-spacing:.05em;text-align:center;text-transform:uppercase;white-space:nowrap;color:rgba(25,32,45,.18)}
.output-unlocked .print-thumb-watermark{display:none}
.file-chip-preview{width:46px;height:54px;border-radius:10px}
.file-chip-preview img{width:100%!important;height:100%!important;border-radius:0!important;object-fit:cover!important}
.queue-photo-preview{width:48px;height:58px;border-radius:9px}
.queue-photo-preview img{width:100%!important;height:100%!important;border-radius:0!important;object-fit:cover!important}
@media(max-width:760px){
  .source-photo-preview img{max-height:55dvh!important}
  .archive-card .watermark-layer{grid-auto-rows:28px}
  .archive-card .watermark-layer span{font-size:7px}
  .queue-photo-preview{width:44px;height:54px}
}


/* v11.2 mobile ad collision protection */
:root{--mobile-ad-height:0px;--mobile-action-height:64px}
@media(max-width:760px){
  .mobile-fixed-ad{
    z-index:80!important;
    left:10px!important;
    right:10px!important;
    bottom:calc(8px + env(safe-area-inset-bottom))!important;
    min-height:50px!important;
    height:auto!important;
    max-height:90px!important;
    overflow:hidden!important;
    contain:layout paint!important;
  }
  .mobile-fixed-ad ins,.mobile-fixed-ad .ad-fallback{
    width:100%!important;
    min-height:50px!important;
    max-height:90px!important;
    overflow:hidden!important;
  }
  .actions-sticky{
    z-index:92!important;
  }
  .has-mobile-ad .actions-sticky{
    bottom:calc(var(--mobile-ad-height,0px) + 16px + env(safe-area-inset-bottom))!important;
  }
  .has-mobile-ad .screen.active,
  .has-mobile-ad .editor-screen.active{
    padding-bottom:calc(var(--mobile-ad-height,0px) + var(--mobile-action-height,64px) + 38px + env(safe-area-inset-bottom))!important;
  }
  .has-mobile-ad .screen-scroll{
    padding-bottom:calc(var(--mobile-ad-height,0px) + var(--mobile-action-height,64px) + 28px)!important;
  }
  .has-mobile-ad .main-card-v10{
    padding-bottom:calc(var(--mobile-ad-height,0px) + 12px)!important;
  }
  .has-mobile-ad .mobile-fixed-ad{
    pointer-events:auto!important;
  }
}

/* v11.3 fixed application viewport + full-image watermark */
:root{
  --app-header-height:72px;
  --app-top-ad-space:0px;
  --app-shell-gap:18px;
}

body.studio-app{
  height:100dvh!important;
  min-height:100dvh!important;
  overflow:hidden!important;
}

.app-header-v10{flex:0 0 auto!important}
.app-top-ad.hidden{display:none!important}

.studio-shell-v10{
  height:calc(100dvh - var(--app-header-height) - var(--app-top-ad-space) - var(--app-shell-gap))!important;
  min-height:0!important;
  margin-bottom:0!important;
  align-items:stretch!important;
}
.steps-v10,
.main-card-v10,
.desktop-ad-panel{
  min-height:0!important;
  max-height:100%!important;
}
.steps-v10{overflow:auto!important}
.main-card-v10{
  display:grid!important;
  grid-template-rows:auto minmax(0,1fr)!important;
  overflow:hidden!important;
}
.card-head-v10{
  position:relative!important;
  top:auto!important;
  flex:0 0 auto!important;
}
.screen{
  min-height:0!important;
}
.screen.active:not(.editor-screen):not(.print-screen){
  display:grid!important;
  grid-template-rows:minmax(0,1fr) auto!important;
  height:100%!important;
  min-height:0!important;
  overflow:hidden!important;
  padding-bottom:0!important;
}
.screen-scroll{
  min-height:0!important;
  max-height:none!important;
  overflow:auto!important;
  overscroll-behavior:contain!important;
  scrollbar-gutter:stable!important;
}
.actions-sticky{
  position:relative!important;
  left:auto!important;
  right:auto!important;
  bottom:auto!important;
  flex:0 0 auto!important;
  margin:0!important;
}
.editor-screen.active{
  display:grid!important;
  grid-template-rows:auto minmax(0,1fr) auto!important;
  height:100%!important;
  min-height:0!important;
  overflow:hidden!important;
  padding-bottom:0!important;
}
.editor-toolbar-v10{
  position:relative!important;
  top:auto!important;
  flex:0 0 auto!important;
}
.photo-stage-v10{
  min-height:0!important;
  height:100%!important;
  overflow:hidden!important;
}
.photo-frame{
  max-height:100%!important;
  max-width:100%!important;
}
.print-screen.active{
  height:100%!important;
  min-height:0!important;
  overflow:hidden!important;
}
.print-screen iframe{height:100%!important;min-height:0!important}

/* Watermark is intentionally drawn over the complete visible photo, not just blank background. */
.watermark-layer{
  inset:-16%!important;
  z-index:14!important;
  grid-template-columns:repeat(3,minmax(92px,1fr))!important;
  grid-auto-rows:56px!important;
  gap:10px 12px!important;
  opacity:1!important;
  mix-blend-mode:normal!important;
}
.watermark-layer span{
  color:rgba(66,74,102,calc(var(--wm-opacity,.09) + .02))!important;
  text-shadow:0 1px 1px rgba(255,255,255,.22),0 1px 1px rgba(0,0,0,.22)!important;
  -webkit-text-stroke:0 rgba(0,0,0,0);
  font-weight:760!important;
}
.photo-frame>.editor-watermark-layer{z-index:14!important}
.photo-frame .guide{z-index:16!important}
.photo-frame .selection{z-index:17!important}
.photo-frame #brushCanvas{z-index:18!important}
.photo-frame .landmark{z-index:20!important}
.photo-frame .process-overlay{z-index:40!important}
.review-analysis-overlay{z-index:40!important}

@media(max-width:820px){
  :root{
    --app-header-height:60px;
    --app-shell-gap:0px;
  }
  body.studio-app{padding-bottom:0!important}
  .studio-shell-v10{
    display:grid!important;
    grid-template-rows:auto minmax(0,1fr)!important;
    height:calc(100dvh - var(--app-header-height) - var(--mobile-ad-height,0px) - var(--mobile-ad-safe-gap,0px) - env(safe-area-inset-bottom))!important;
    margin:0!important;
    padding:0!important;
  }
  body:not(.has-mobile-ad) .studio-shell-v10{
    height:calc(100dvh - var(--app-header-height))!important;
  }
  .steps-v10{
    position:relative!important;
    top:auto!important;
    overflow:hidden!important;
  }
  .steps-scroll{overflow-x:auto!important;overflow-y:hidden!important}
  .main-card-v10{
    min-height:0!important;
    height:100%!important;
    overflow:hidden!important;
  }
  .card-head-v10{
    position:relative!important;
    top:auto!important;
    padding:10px 12px 9px!important;
  }
  .screen.active:not(.editor-screen):not(.print-screen){
    min-height:0!important;
    height:100%!important;
    padding-bottom:0!important;
  }
  .screen-scroll{
    padding:12px 12px 12px!important;
    overflow:auto!important;
  }
  .actions-sticky{
    position:relative!important;
    bottom:auto!important;
    padding:9px 12px calc(9px + env(safe-area-inset-bottom))!important;
    box-shadow:0 -10px 24px rgba(0,0,0,.18)!important;
  }
  .has-mobile-ad .actions-sticky{bottom:auto!important}
  .has-mobile-ad .screen.active,
  .has-mobile-ad .editor-screen.active,
  .has-mobile-ad .screen-scroll,
  .has-mobile-ad .main-card-v10{
    padding-bottom:0!important;
  }
  .editor-screen.active{
    height:100%!important;
    min-height:0!important;
    padding-bottom:0!important;
  }
  .editor-toolbar-v10{
    position:relative!important;
    top:auto!important;
    margin:0!important;
    max-height:104px!important;
    overflow:auto!important;
  }
  .photo-stage-v10{
    min-height:0!important;
    height:100%!important;
    padding:8px 10px 9px!important;
    gap:7px!important;
  }
  .detection-status{min-height:34px!important;padding:7px 9px!important}
  .auto-align{min-height:38px!important}
  .upload-zone{
    min-height:0!important;
    height:100%!important;
  }
  .source-preview{
    height:100%!important;
    min-height:0!important;
    overflow:auto!important;
    align-content:center!important;
  }
  .source-photo-preview img{max-height:42dvh!important}
  .review-grid-v10,
  .export-card-v10{
    height:100%!important;
    min-height:0!important;
    overflow:auto!important;
    align-content:start!important;
  }
  .review-photo,.export-photo{max-width:min(88vw,360px)!important}
  .review-photo img,.export-photo img{max-height:42dvh!important}
  .watermark-layer{
    grid-template-columns:repeat(3,minmax(70px,1fr))!important;
    grid-auto-rows:42px!important;
    gap:6px!important;
  }
  .watermark-layer span{font-size:10px!important}
}

@media(max-width:430px){
  .card-head-v10 h1{font-size:17px!important}
  .card-head-v10{padding-top:8px!important;padding-bottom:8px!important}
  .editor-toolbar-v10{max-height:96px!important}
  .review-photo img,.export-photo img{max-height:37dvh!important}
}

/* v11.3 print builder: fixed app shell, internal panel scrolling only */
body.print-app{
  height:100dvh!important;
  min-height:100dvh!important;
  overflow:hidden!important;
}
.print-shell{
  height:calc(100dvh - 78px)!important;
  min-height:0!important;
  margin-bottom:0!important;
}
.print-controls{
  max-height:100%!important;
  min-height:0!important;
  overflow:auto!important;
  overscroll-behavior:contain!important;
}
.preview-area{
  height:100%!important;
  min-height:0!important;
  max-height:100%!important;
  overflow:hidden!important;
}
.stage{
  min-height:0!important;
  height:100%!important;
  overflow:auto!important;
}
.print-thumb-watermark span{
  color:rgba(111,88,214,.24)!important;
  text-shadow:0 1px 1px rgba(255,255,255,.45),0 1px 2px rgba(0,0,0,.45)!important;
}
@media(max-width:900px){
  .print-shell{
    height:calc(100dvh - 60px)!important;
    display:grid!important;
    grid-template-rows:minmax(250px,46%) minmax(0,54%)!important;
    overflow:hidden!important;
    padding:0!important;
  }
  .print-controls{
    min-height:0!important;
    max-height:none!important;
    overflow:auto!important;
    border-bottom:1px solid var(--line-soft)!important;
  }
  .preview-area{
    min-height:0!important;
    height:100%!important;
    overflow:hidden!important;
  }
  .stage{min-height:0!important;height:100%!important;padding:24px!important}
  .embedded.print-app .print-shell,
  body.embedded.print-app .print-shell{
    height:100dvh!important;
    grid-template-rows:minmax(250px,46%) minmax(0,54%)!important;
  }
}

.manual-review-action{background:linear-gradient(135deg,#f6b64f,#ee9a2b)!important;color:#151515!important;box-shadow:0 10px 24px rgba(238,154,43,.18)!important}

/* v11.6 studio refinement */
.protected-preview{position:relative;user-select:none;-webkit-user-select:none}
.protected-preview img{pointer-events:none!important;-webkit-user-drag:none!important;user-select:none!important}
.review-photo,.export-photo,.source-photo-preview,.archive-photo-preview,.ai-review-photo{background:#fff!important}
.watermark-layer{z-index:12!important;display:grid!important}
.watermark-layer span{font-size:12px!important;font-weight:800!important;letter-spacing:.05em!important;color:rgba(63,72,96,var(--wm-opacity,.085))!important;text-shadow:0 1px 1px rgba(255,255,255,.22),0 1px 1px rgba(0,0,0,.14)!important}
.review-photo img,.export-photo img{width:100%!important;height:100%!important;object-fit:contain!important;display:block!important}
.review-photo,.export-photo{display:flex!important;align-items:center!important;justify-content:center!important;min-height:320px!important}
.stage-tools-panel{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:4px 0 8px}
.stage-tool-item{display:flex;flex-direction:column;align-items:flex-start;gap:4px;padding:12px 14px;border-radius:18px;border:1px solid rgba(148,163,184,.14);background:rgba(255,255,255,.03);color:#eef2f8;text-align:left;cursor:pointer;transition:transform .18s ease,border-color .18s ease,background .18s ease}
.stage-tool-item:hover{transform:translateY(-1px);border-color:rgba(139,92,246,.36);background:rgba(109,94,252,.08)}
.stage-tool-item span{font-size:14px;font-weight:800}
.stage-tool-item small{font-size:11px;line-height:1.45;color:#98a6ba}
.tools-dialog[open]{display:flex!important;align-items:stretch!important;justify-content:flex-end!important;padding:0!important;background:rgba(2,6,12,.44)!important}
.tools-dialog .dialog-card--sheet{width:min(460px,100vw)!important;height:100dvh!important;max-height:100dvh!important;border-radius:28px 0 0 28px!important;padding:20px 18px calc(20px + env(safe-area-inset-bottom))!important;overflow:hidden!important}
.tools-dialog .tools-scroll{overflow:auto;min-height:0;padding-right:4px}
.app-top-ad{min-height:72px!important;max-height:72px!important;overflow:hidden!important;border-radius:20px!important}
.app-top-ad .ad-fallback{min-height:72px!important}
.desktop-ad-panel{display:none!important}
.mobile-fixed-ad{max-height:58px!important;min-height:58px!important;overflow:hidden!important}
.mobile-fixed-ad .ad-fallback{min-height:58px!important;padding:8px 12px!important}
.output-lock-badge.hidden{display:none!important}
@media (max-width:940px){
  .stage-tools-panel{grid-template-columns:1fr!important}
}
@media (max-width:760px){
  .stage-tools-panel{grid-template-columns:1fr 1fr!important;gap:8px!important}
  .stage-tool-item{padding:10px 11px!important;border-radius:16px!important}
  .stage-tool-item span{font-size:12px!important}
  .stage-tool-item small{font-size:10px!important}
  .tools-dialog .dialog-card--sheet{width:100vw!important;height:auto!important;max-height:92dvh!important;border-radius:24px 24px 0 0!important}
  .review-photo,.export-photo{min-height:260px!important}
  .app-top-ad{display:none!important}
}

/* v11.7 compact photo tools + download compression */
.stage-tools-panel{grid-template-columns:repeat(5,minmax(0,1fr))!important;gap:8px!important;margin:2px 0 6px!important}
.stage-tool-item{min-width:0!important;min-height:66px!important;padding:9px 10px!important;border-radius:16px!important;display:grid!important;grid-template-columns:28px minmax(0,1fr)!important;grid-template-rows:auto auto!important;column-gap:8px!important;row-gap:1px!important;align-items:center!important}
.stage-tool-item svg{grid-row:1/3;width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;color:#a996ff}
.stage-tool-item span{font-size:12px!important;line-height:1.15!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.stage-tool-item small{font-size:9px!important;line-height:1.25!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.tool-section{scroll-margin-top:10px}
.tool-help{margin:0 0 14px;color:#9aa7bb;font-size:12px;line-height:1.6}
.setting-switch{display:flex!important;align-items:flex-start!important;gap:11px!important;padding:13px 14px!important;border-radius:16px!important;border:1px solid rgba(148,163,184,.14)!important;background:rgba(255,255,255,.025)!important}
.setting-switch>input{width:20px!important;height:20px!important;margin-top:1px!important;accent-color:#7c5cff}
.setting-switch>span{display:grid;gap:3px}.setting-switch strong{font-size:13px}.setting-switch small{color:#8f9caf;font-size:11px;line-height:1.45}
.download-limit-grid{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px;align-items:end;margin-top:12px}
.download-limit-grid>label{display:grid;gap:7px;font-size:12px;color:#dce3ef}
.input-suffix{display:grid;grid-template-columns:minmax(0,1fr) 46px;border:1px solid #2c3950;border-radius:14px;overflow:hidden;background:#09111d}
.input-suffix input{border:0!important;border-radius:0!important;min-width:0!important}
.input-suffix b{display:grid;place-items:center;border-left:1px solid #2c3950;color:#9ca9bc;font-size:11px}
.download-limit-grid .secondary{min-height:46px!important;white-space:nowrap}
.download-limit-info{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin-top:12px}
.download-limit-info>div{padding:10px 11px;border:1px solid rgba(148,163,184,.12);border-radius:14px;background:rgba(255,255,255,.022);display:grid;gap:4px}
.download-limit-info span{font-size:9px;text-transform:uppercase;letter-spacing:.08em;color:#7f8da4}.download-limit-info strong{font-size:12px;color:#eef3fb;overflow-wrap:anywhere}
.download-warning{padding:10px 12px;margin:10px 0 0;border-radius:13px;background:rgba(246,182,79,.1);border:1px solid rgba(246,182,79,.2);color:#f1d09a;font-size:11px;line-height:1.5}
.download-summary-card{width:100%;display:flex;align-items:center;justify-content:space-between;gap:12px;margin:14px 0;padding:13px 14px;border-radius:17px;border:1px solid rgba(148,163,184,.15);background:rgba(255,255,255,.028);color:#eef3fb;text-align:left;cursor:pointer}
.download-summary-card:hover{border-color:rgba(139,92,246,.4);background:rgba(139,92,246,.07)}
.download-summary-card>span{display:grid;gap:4px}.download-summary-card strong{font-size:13px}.download-summary-card small{font-size:11px;color:#96a4b8}.download-summary-card>b{font-size:22px;color:#a996ff}
.compression-result{margin:0 0 12px;padding:10px 12px;border-radius:14px;background:rgba(51,214,166,.08);border:1px solid rgba(51,214,166,.16);color:#a9ead6;font-size:11px;font-weight:700;line-height:1.5}
@media(max-width:1100px){.stage-tool-item small{display:none}.stage-tool-item{grid-template-rows:1fr!important;grid-template-columns:24px minmax(0,1fr)!important;min-height:52px!important}.stage-tool-item svg{grid-row:auto!important}.stage-tools-panel{grid-template-columns:repeat(5,minmax(100px,1fr))!important;overflow-x:auto!important;scrollbar-width:none!important}.stage-tools-panel::-webkit-scrollbar{display:none}}
@media(max-width:760px){
  .stage-tools-panel{display:flex!important;overflow-x:auto!important;gap:7px!important;padding-bottom:2px!important}
  .stage-tool-item{flex:0 0 124px!important;min-height:48px!important;padding:8px 9px!important;border-radius:14px!important}
  .stage-tool-item span{font-size:11px!important}
  .download-limit-grid{grid-template-columns:1fr!important}.download-limit-grid .secondary{width:100%!important}
  .download-limit-info{grid-template-columns:1fr 1fr!important}.download-limit-info>div:last-child{grid-column:1/-1}
}
.photo-stage-v10{grid-template-rows:auto auto minmax(220px,1fr) auto!important}
@media(max-width:760px){.photo-stage-v10{grid-template-rows:auto auto minmax(190px,1fr) auto!important}}

/* v11.8 usability and tools tabs */
.mobile-fixed-ad{display:none!important}
@media (max-width:760px){.mobile-fixed-ad:not(.hidden){display:flex!important}}
.tools-dialog .dialog-card--sheet{display:flex;flex-direction:column}
.modal-head--sticky{position:sticky;top:0;z-index:5;background:linear-gradient(180deg,rgba(5,11,23,.98),rgba(5,11,23,.92));padding-bottom:12px}
.tool-tabs{display:flex;gap:8px;overflow:auto;padding:0 0 12px;position:sticky;top:72px;z-index:4;background:linear-gradient(180deg,rgba(5,11,23,.98),rgba(5,11,23,.92));scrollbar-width:none}
.tool-tabs::-webkit-scrollbar{display:none}
.tool-tab{border:1px solid rgba(148,163,184,.18);background:rgba(255,255,255,.04);color:#cbd5e1;padding:9px 12px;border-radius:999px;font:700 12px/1.1 system-ui;white-space:nowrap;cursor:pointer}
.tool-tab.is-active{background:linear-gradient(135deg,#8b5cf6,#6d5efc);border-color:rgba(139,92,246,.5);color:#fff;box-shadow:0 10px 24px rgba(109,94,252,.24)}
.tools-scroll{flex:1;min-height:0;overflow:auto}
.tool-section{display:none}
.tool-section.is-active{display:block}
.tool-section .section-divider:first-child{display:none}
.dialog-footer{padding-top:12px;border-top:1px solid rgba(148,163,184,.12);background:linear-gradient(180deg,rgba(5,11,23,.04),rgba(5,11,23,.18))}
.reward-card-v10 .dialog-close,.dialog-card--sheet .dialog-close{display:inline-grid;place-items:center;width:38px;height:38px;border-radius:12px;border:1px solid rgba(148,163,184,.18);background:rgba(255,255,255,.04);color:#fff}
.dialog-card--sheet .modal-head,.reward-card-v10 .modal-head{align-items:center}
.download-summary-card{cursor:pointer}
.review-photo,.export-photo{overflow:hidden}
.review-photo img,.export-photo img,.ai-review-photo img{object-fit:contain!important;background:#fff!important}
.watermark-layer{inset:-10%!important}
.watermark-layer span{font-size:11px!important;font-weight:760!important;color:rgba(95,104,128,var(--wm-opacity,.075))!important}
.review-photo.is-unlocked .watermark-layer,.export-photo.is-unlocked .watermark-layer,.ai-review-photo.is-unlocked .watermark-layer{display:none!important}
@media (max-width:760px){
  .tool-tabs{top:68px;padding-bottom:10px}
  .dialog-footer{padding-bottom:calc(10px + env(safe-area-inset-bottom))}
}

/* v11.8.2 quality preview fixes */
.review-photo{padding:0!important;background:transparent!important;border-radius:24px!important;overflow:hidden!important;box-shadow:0 14px 32px rgba(0,0,0,.18)!important}
.review-photo img{display:block;width:100%!important;height:100%!important;object-fit:contain!important;background:#fff!important}
.review-photo span{left:10px!important;bottom:10px!important;z-index:3}
.review-photo [data-watermark-layer]{inset:0!important;border-radius:inherit!important}
.export-photo{padding:0!important;background:transparent!important;overflow:hidden!important}
.export-photo img{display:block;width:100%!important;height:100%!important;object-fit:contain!important;background:#fff!important}


/* v11.8.3 preview consistency fixes */
.review-photo,.export-photo,.ai-review-photo{display:flex!important;align-items:center!important;justify-content:center!important;background:#fff!important}
.review-photo img,.export-photo img,.ai-review-photo img{object-fit:contain!important;background:#fff!important}
.print-protected-preview img,.file-chip-preview img,.queue-photo-preview img{object-fit:contain!important;background:#fff!important}

/* v11.9 raster watermark previews: DOM overlays are no longer the security layer */
.watermark-layer{display:none!important}
.print-thumb-watermark{display:none!important}

/* v11.9 final precedence: keep the editor tool dock footprint stable */
@media(min-width:761px){
  .photo-stage-v10{grid-template-rows:auto auto 150px minmax(260px,1fr) auto!important}
}
@media(max-width:760px){
  .photo-stage-v10{grid-template-rows:auto auto minmax(300px,1fr) auto!important}
}


/* v11.9.7 Quality Check geometry lock */
.screen[data-screen="4"] .review-grid-v10{align-items:start!important;align-content:start!important}
.screen[data-screen="4"] .review-photo{
  align-self:start!important;
  justify-self:start!important;
  width:100%!important;
  height:auto!important;
  min-height:0!important;
  aspect-ratio:var(--bio-quality-ratio,35 / 45)!important;
  overflow:hidden!important;
}
.screen[data-screen="4"] .review-photo img{
  width:100%!important;
  height:100%!important;
  max-height:none!important;
  object-fit:contain!important;
}
@media(max-width:760px){
  .screen[data-screen="4"] .review-photo{justify-self:center!important;max-width:min(88vw,360px)!important}
}
