/* MirrorMagik™ v1.5.23: dedicated full-viewport mirror.
   All rules are scoped to immersive mode; standard app stays unchanged. */
.mm-immersive-enter {
  display:inline-flex;align-items:center;gap:3px;flex:none;
  min-height:29px!important;padding:3px 11px!important;border:1px solid #dcb5d0!important;
  border-radius:999px!important;background:#fffafdeb!important;color:#8c3670!important;
  font-size:11px!important;font-weight:800!important;line-height:1!important;
  white-space:nowrap;letter-spacing:0!important;
}
.mm-immersive-enter>span:first-child{font-size:17px;line-height:1}
.mm-immersive-quick{font-weight:800!important;border-color:#c982ae!important}
@media(max-width:760px){
  .mm-immersive-enter{min-height:26px!important;padding:3px 8px!important;font-size:10px!important}
  body.mm-refined-mobile .workspace:not(.focus-layout) .stage-top .mm-immersive-enter{
    min-height:24px!important;padding:3px 8px!important;font-size:10px!important;
    border-radius:999px!important;flex:none!important;display:inline-flex!important;
  }
  body.mm-refined-mobile .stage-top #sourceLabel {font-size:9px;letter-spacing:.5px}
}
/* The body is never scrolled while immersive. Safari uses available viewport;
   browsers supporting the Fullscreen API can also hide browser chrome. */
html:has(body.mm-immersive),body.mm-immersive {overscroll-behavior:none!important}
body.mm-immersive {overflow:hidden!important;touch-action:manipulation}
body.mm-immersive .workspace#workspace,
body.mm-immersive.mm-refined-mobile .workspace#workspace:not(.focus-layout),
body.mm-immersive.mm-mobile-workbench .workspace#workspace:not(.focus-layout),
body.mm-immersive.mm-landscape-workbench .workspace#workspace:not(.focus-layout){
  position:fixed!important;inset:0!important;top:0!important;left:0!important;right:0!important;bottom:0!important;
  width:100vw!important;height:100dvh!important;min-width:0!important;min-height:0!important;
  max-width:none!important;max-height:none!important;margin:0!important;padding:0!important;
  display:block!important;overflow:hidden!important;border:0!important;border-radius:0!important;
  z-index:100000!important;background:#151019!important;box-shadow:none!important;
  overscroll-behavior:contain!important;
}
body.mm-immersive .workspace#workspace .mirror-column,
body.mm-immersive.mm-refined-mobile .workspace#workspace .mirror-column{
  width:100%!important;height:100%!important;min-height:0!important;max-height:none!important;
  padding:0!important;margin:0!important;position:absolute!important;inset:0!important;display:block!important;
  transform:none!important;
}
body.mm-immersive .workspace#workspace .stage,
body.mm-immersive.mm-refined-mobile .workspace#workspace:not(.focus-layout) .stage,
body.mm-immersive.mm-refined-mobile .workspace#workspace.mm-large-preview:not(.focus-layout) .stage,
body.mm-immersive.mm-landscape-workbench .workspace#workspace:not(.focus-layout) .stage{
  display:block!important;position:absolute!important;inset:0!important;
  width:100%!important;height:100%!important;min-height:0!important;max-height:none!important;
  margin:0!important;padding:0!important;overflow:hidden!important;
  border:0!important;border-radius:0!important;box-shadow:none!important;
  background:#0c0c10!important;touch-action:none!important;
}
body.mm-immersive .workspace#workspace .stage>video,
body.mm-immersive .workspace#workspace .stage>canvas{
  width:100%!important;height:100%!important;
}
body.mm-immersive .workspace#workspace .stage-top,
body.mm-immersive .workspace#workspace .mirror-tools,
body.mm-immersive .workspace#workspace .mm-mobile-ribbon,
body.mm-immersive .workspace#workspace .quickbar,
body.mm-immersive .workspace#workspace .controls,
body.mm-immersive .workspace#workspace .status,
body.mm-immersive .workspace#workspace .restore{display:none!important}
body.mm-immersive .workspace#workspace .light-frame{z-index:2}
body.mm-immersive .workspace#workspace .stage .empty{
  padding:30px 16px!important;display:flex;flex-direction:column;justify-content:center;align-items:center;
  color:#48273f!important;max-height:100%;
}
/* Overlay itself is transparent to taps; only its actual controls capture them. */
.mm-immersive-ui{position:absolute;inset:0;z-index:60;pointer-events:none;color:#fff;isolation:isolate;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}
.mm-imm-head{position:absolute;inset:0 0 auto;display:flex;justify-content:space-between;align-items:center;
 padding:calc(env(safe-area-inset-top) + 13px) 18px 28px;z-index:4;
 background:linear-gradient(to bottom,rgba(16,13,22,.67),transparent)}
.mm-imm-brand{font:600 20px Georgia,serif;letter-spacing:-.6px;text-shadow:0 1px 10px #0007}
.mm-imm-brand span{color:#ffd1ea}.mm-imm-brand sup{font-size:8px;margin-left:2px}
.mm-imm-exit,.mm-imm-drawer-heading button{pointer-events:auto;border:1px solid #ffffff50!important;
 border-radius:999px!important;background:rgba(20,17,27,.62)!important;color:#fff!important;
 font-size:13px!important;min-height:40px!important;padding:6px 15px!important;font-weight:800!important;backdrop-filter:blur(14px)}
.mm-imm-hint{position:absolute;top:calc(env(safe-area-inset-top) + 74px);left:50%;transform:translateX(-50%);
 border-radius:999px;background:#18101c9c;color:#fffbdc;font-size:12px;padding:9px 16px;white-space:nowrap;
 box-shadow:0 2px 18px #0003}
.mm-imm-bottom{position:absolute;bottom:0;left:0;right:0;z-index:6;display:flex;align-items:center;justify-content:center;
 gap:clamp(22px,7vw,80px);padding:32px 12px calc(env(safe-area-inset-bottom) + 16px);
 background:linear-gradient(to top,rgba(11,9,15,.74),rgba(11,9,15,.24) 66%,transparent);pointer-events:none}
.mm-imm-bottom button,.mm-imm-review button{pointer-events:auto}
.mm-imm-center{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;min-width:85px}
.mm-imm-shutter{width:75px!important;height:75px!important;min-width:75px!important;min-height:75px!important;
 display:grid!important;place-items:center!important;border:4px solid #fff!important;
 border-radius:50%!important;background:rgba(35,24,40,.28)!important;padding:5px!important;
 box-shadow:0 7px 25px #0007!important;touch-action:manipulation}
.mm-imm-shutter span{display:block;width:55px;height:55px;background:#fff;border-radius:50%;transition:transform .1s}
.mm-imm-shutter:active span{transform:scale(.89)}
.mm-imm-shutter-caption{font-size:10px;font-weight:800;letter-spacing:2px;text-shadow:0 1px 7px #000}
.mm-imm-round{width:61px!important;height:61px!important;min-width:61px!important;min-height:61px!important;border-radius:999px!important;
 border:1px solid #ffffff60!important;display:flex!important;flex-direction:column;align-items:center;justify-content:center;
 background:rgba(17,15,25,.55)!important;color:#fff!important;padding:4px!important;
 backdrop-filter:blur(14px);box-shadow:0 2px 18px #0004}
.mm-imm-round>span{font-size:24px;line-height:1.1}.mm-imm-round small{font-size:10px;letter-spacing:0;color:#fff}
.mm-imm-round:disabled{opacity:.4}
.mm-imm-start{border-radius:999px!important;background:#fff!important;color:#622f59!important;font-weight:850!important;
 font-size:15px!important;min-height:55px!important;padding:9px 17px!important;white-space:nowrap}
.mm-imm-drawer{position:absolute;z-index:7;bottom:calc(132px + env(safe-area-inset-bottom));left:50%;transform:translateX(-50%);
 width:min(92vw,480px);max-height:min(49dvh,475px);overflow-y:auto;overscroll-behavior:contain;
 background:rgba(24,19,34,.87);border:1px solid #ffffff3b;border-radius:24px;
 color:#fff;padding:16px 19px 13px;pointer-events:auto;
 backdrop-filter:blur(22px);-webkit-backdrop-filter:blur(22px);box-shadow:0 16px 50px #0008;
 scrollbar-width:thin;scrollbar-color:#ffffff70 transparent}
.mm-imm-drawer-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:11px}
.mm-imm-drawer-heading strong{font:600 19px Georgia,serif}
.mm-imm-drawer-heading button{min-height:32px!important;padding:2px 12px!important}
.mm-imm-slider-row{margin:10px 0}.mm-imm-slider-row label{display:flex;justify-content:space-between;font-size:13px;font-weight:650;gap:12px}
.mm-imm-slider-row output{color:#ffdaeb;font-weight:800;font-size:13px}
.mm-imm-slider-row input[type=range]{width:100%;height:30px;accent-color:#f5a8d3;touch-action:pan-x!important;margin:1px 0}
.mm-imm-buttons{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;padding-top:6px}
.mm-imm-buttons button{min-height:44px!important;padding:5px!important;font-size:13px!important;
 display:flex;gap:6px;justify-content:center;align-items:center;flex-wrap:wrap;
 background:rgba(252,244,255,.15)!important;color:white!important;border:1px solid #fff4!important;
 border-radius:12px!important}
.mm-imm-buttons button[aria-pressed=true]{background:#bc4a91!important;border-color:#ffabd1!important}
.mm-imm-buttons button:disabled{opacity:.4}
.mm-imm-buttons button span{white-space:nowrap}
.mm-imm-drawer-note{font-size:11px;color:#f6dbea;margin:11px 0 0;text-align:center}
.mm-imm-review{position:absolute;z-index:8;left:0;right:0;bottom:0;
 padding:24px 12px calc(env(safe-area-inset-bottom) + 16px);
 background:linear-gradient(to top,#13101ce8,#13101cba 65%,transparent);pointer-events:auto;text-align:center}
.mm-imm-review-label{font-size:12px;font-weight:750;letter-spacing:.3px;color:#f8e8f4;margin-bottom:13px}
.mm-imm-review-buttons{display:flex;flex-wrap:wrap;justify-content:center;gap:9px}
.mm-imm-review-buttons button{background:#fff2f9!important;border:1px solid #fff4!important;color:#6f285c!important;
 border-radius:999px!important;min-height:46px!important;padding:10px 16px!important;font-size:13px!important;font-weight:850!important}
.mm-imm-review-buttons #mmImmSave{background:#df5b9c!important;color:#fff!important}
body.mm-immersive.mm-imm-drawer-open .mm-imm-hint{display:none}
@media(max-width:520px){
 .mm-imm-head{padding:calc(env(safe-area-inset-top) + 9px) 13px 25px}
 .mm-imm-brand{font-size:18px}
 .mm-imm-exit{min-height:36px!important;padding:5px 12px!important}
 .mm-imm-bottom{gap:clamp(18px,6vw,42px);padding-bottom:calc(env(safe-area-inset-bottom) + 13px)}
 .mm-imm-drawer{width:calc(100% - 18px);max-height:min(45dvh,395px);padding:11px 13px 10px;
   bottom:calc(115px + env(safe-area-inset-bottom));border-radius:19px}
 .mm-imm-shutter{width:70px!important;height:70px!important;min-width:70px!important;min-height:70px!important}
 .mm-imm-shutter span{width:50px;height:50px}
 .mm-imm-round{width:55px!important;height:55px!important;min-width:55px!important;min-height:55px!important}
 .mm-imm-review-buttons button{padding:8px 12px!important;font-size:12px!important;min-height:44px!important}
}
@media(max-height:540px) and (orientation:landscape){
 .mm-imm-head{padding:calc(env(safe-area-inset-top) + 4px) 9px 12px}
 .mm-imm-brand{font-size:16px}
 .mm-imm-exit{min-height:31px!important;padding:3px 10px!important}
 .mm-imm-bottom{justify-content:flex-end;padding:8px calc(env(safe-area-inset-right) + 12px) calc(env(safe-area-inset-bottom) + 5px);gap:12px}
 .mm-imm-shutter{width:59px!important;height:59px!important;min-width:59px!important;min-height:59px!important}
 .mm-imm-shutter span{width:40px;height:40px}
 .mm-imm-shutter-caption{display:none}
 .mm-imm-round{width:49px!important;height:49px!important;min-width:49px!important;min-height:49px!important}
 .mm-imm-drawer{left:calc(env(safe-area-inset-left) + 10px);transform:none;width:min(53vw,390px);
   max-height:calc(100dvh - 55px);bottom:5px;padding:9px 12px;border-radius:15px}
 .mm-imm-buttons button{min-height:35px!important}
 .mm-imm-review{right:0;left:auto;width:max-content;max-width:65%;padding:9px 15px}
}
@media(prefers-reduced-motion:reduce){.mm-imm-shutter span{transition:none}}

/* Mobile: View Size is the only immersive entry point; do not place
   a separate launcher over the reflection or in its header/action bar. */
@media (max-width:760px), (orientation:landscape) and (max-height:560px) and (max-width:1000px) and (pointer:coarse){
  body.mm-refined-mobile .workspace:not(.focus-layout) .stage-top .mm-immersive-enter,
  body.mm-refined-mobile .workspace .quickbar .mm-immersive-quick{display:none!important}
  .mm-refined-mobile .mm-action-tile .mm-view-size-step{
    font-size:9px!important;line-height:1!important;font-weight:700!important;
    color:#9a5c86!important;letter-spacing:.3px!important;
  }
}
/* The three bottom buttons, brand and Done control fade when idle; tapping
   the reflection restores them. */
.mm-imm-head,.mm-imm-bottom{transition:opacity .3s ease,visibility .3s ease}
.mm-imm-chrome-hidden .mm-imm-head,
.mm-imm-chrome-hidden .mm-imm-bottom{
  opacity:0!important;visibility:hidden!important;pointer-events:none!important;
}
.mm-imm-chrome-hidden .mm-imm-head button,
.mm-imm-chrome-hidden .mm-imm-bottom button{pointer-events:none!important}
@media(prefers-reduced-motion:reduce){.mm-imm-head,.mm-imm-bottom{transition:none!important}}

/* v1.5.28: unmistakable in-app photo review, with explicit discard. */
.mm-imm-review{padding-top:27px!important;}
.mm-imm-review-label{font-size:16px!important;letter-spacing:0!important;margin-bottom:4px!important;color:#fff!important}
.mm-imm-review-sub{font-size:12px;color:#f9e2ef;line-height:1.45;margin:0 0 12px}
.mm-imm-review-buttons{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;max-width:460px;margin:0 auto}
.mm-imm-review-buttons button{min-height:48px!important;min-width:0;line-height:1.25;white-space:normal;text-align:center}
.mm-imm-review-buttons button:disabled{opacity:.5!important}
.mm-imm-review-buttons #mmImmRetake{background:#251924!important;color:#ffe6f4!important;border:1px solid #ffffff73!important}
.mm-imm-review-help{font-size:11px;line-height:1.45;color:#ffe5f2;max-width:450px;margin:10px auto 0}
.mm-imm-photo-sheet{position:absolute;inset:0;z-index:20;pointer-events:auto;
 background:rgba(15,10,22,.96);overflow-y:auto;overscroll-behavior:contain;
 padding:calc(env(safe-area-inset-top) + 12px) 14px calc(env(safe-area-inset-bottom) + 20px)}
.mm-imm-photo-sheet-inner{max-width:530px;margin:0 auto;display:flex;flex-direction:column;gap:14px;align-items:stretch}
.mm-imm-photo-sheet-head{display:flex;align-items:center;justify-content:space-between;gap:12px}
.mm-imm-photo-sheet-head strong{font:700 19px system-ui,sans-serif}
.mm-imm-photo-sheet-head button,.mm-imm-photo-sheet a{border:1px solid #ffffff5e;border-radius:999px;
 background:#fff2fb;color:#6a285b;min-height:43px;padding:10px 15px;font-size:14px;font-weight:700;text-align:center}
.mm-imm-photo-sheet p{font-size:13px;line-height:1.5;margin:0;color:#fff}
.mm-imm-photo-sheet img{display:block;width:100%;height:auto;max-height:63dvh;object-fit:contain;
 background:#111;border:1px solid #ffffff36;border-radius:10px;-webkit-touch-callout:default;user-select:auto}
.mm-imm-photo-sheet a{display:block;text-decoration:none}
@media(max-height:540px) and (orientation:landscape){
 .mm-imm-review{max-width:min(71%,530px)!important;}
 .mm-imm-review-label{font-size:13px!important}
 .mm-imm-review-sub{margin:0 0 6px}
 .mm-imm-review-buttons button{min-height:35px!important;padding:5px 8px!important}
 .mm-imm-review-help{margin:5px auto 0}
}

/* v1.5.32: iPad safe-area and orientation fix for immersive brand header.
   Keep the complete brand and Done control within the visible viewport. */
body.mm-immersive .mm-imm-head {
  box-sizing:border-box!important;
  width:100%!important;
  max-width:100%!important;
  min-width:0!important;
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  column-gap:12px!important;
  padding-top:calc(env(safe-area-inset-top, 0px) + 12px)!important;
  padding-left:max(16px, env(safe-area-inset-left, 0px))!important;
  padding-right:max(16px, env(safe-area-inset-right, 0px))!important;
}
body.mm-immersive .mm-imm-head .mm-imm-brand {
  box-sizing:border-box!important;
  flex:0 1 auto!important;
  min-width:0!important;
  max-width:calc(100% - 105px)!important;
  font-size:clamp(15px, 2.2vw, 20px)!important;
  line-height:1.25!important;
  white-space:nowrap!important;
  letter-spacing:-.4px!important;
  overflow:visible!important;
}
body.mm-immersive .mm-imm-head .mm-imm-brand sup {position:static!important;vertical-align:super!important;line-height:0!important;}
body.mm-immersive .mm-imm-head .mm-imm-exit {flex:0 0 auto!important;max-width:100%!important;white-space:nowrap!important;}
@media (min-width:700px) and (max-width:1366px) and (pointer:coarse) {
  body.mm-immersive .mm-imm-head {padding-top:calc(env(safe-area-inset-top, 0px) + 18px)!important;}
}
@media (orientation:landscape) and (max-height:850px) {
  body.mm-immersive .mm-imm-head {padding-top:calc(env(safe-area-inset-top, 0px) + 8px)!important;}
}

/* v1.5.33 — Keep branding clear of the iPad browser's top-left
   full-screen dismissal control; app's Done action stays top-right.
   Brand is centered and cannot intrude into either corner control. */
@media (min-width:700px) and (max-width:1366px) and (pointer:coarse) {
  body.mm-immersive .mm-imm-head {position:absolute!important;justify-content:flex-end!important;}
  body.mm-immersive .mm-imm-head .mm-imm-brand {
    position:absolute!important;left:50%!important;top:calc(env(safe-area-inset-top, 0px) + 19px)!important;
    transform:translateX(-50%)!important;margin:0!important;
    max-width:calc(100% - 300px)!important;text-align:center!important;
    font-size:clamp(16px, 2vw, 20px)!important;
    pointer-events:none!important;
  }
  body.mm-immersive .mm-imm-head .mm-imm-exit {margin-left:auto!important;position:relative!important;z-index:1!important;}
}
@media (min-width:700px) and (max-width:1366px) and (pointer:coarse) and (orientation:landscape) {
  body.mm-immersive .mm-imm-head .mm-imm-brand {top:calc(env(safe-area-inset-top, 0px) + 11px)!important;}
}

/* v1.5.34: minimal immersive chrome — one-tap looks, familiar shutter,
   discreet settings. No modifications to standard mirror or editor. */
.mm-imm-quicklooks[hidden]{display:none!important}
.mm-imm-quicklooks{
 position:absolute;z-index:5;left:50%;bottom:calc(env(safe-area-inset-bottom) + 109px);
 transform:translateX(-50%);width:max-content;max-width:calc(100% - 20px);
 display:flex;justify-content:center;align-items:center;gap:5px;
 padding:5px 6px;border-radius:999px;background:rgba(15,13,22,.39);
 border:1px solid rgba(255,255,255,.13);backdrop-filter:blur(11px);
 -webkit-backdrop-filter:blur(11px);pointer-events:auto;
 transition:opacity .3s ease,visibility .3s ease;
}
.mm-imm-quicklooks button{
 flex:0 1 auto;min-width:0!important;min-height:30px!important;
 padding:6px 12px!important;border:1px solid rgba(255,255,255,.14)!important;
 border-radius:999px!important;background:rgba(22,18,28,.65)!important;
 color:#fff!important;font:700 12px/1.1 -apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif!important;
 white-space:nowrap!important;
}
.mm-imm-quicklooks button[aria-pressed=true]{background:#fff!important;color:#2b1b30!important;border-color:#fff!important}
.mm-imm-chrome-hidden .mm-imm-quicklooks,
.mm-imm-drawer-open .mm-imm-quicklooks{
 opacity:0!important;visibility:hidden!important;pointer-events:none!important;
}
.mm-imm-chrome-hidden .mm-imm-quicklooks button,
.mm-imm-drawer-open .mm-imm-quicklooks button{pointer-events:none!important}
.mm-imm-tabs{grid-template-columns:repeat(2,minmax(0,1fr))!important}
.mm-imm-bottom{gap:clamp(20px,5vw,58px)!important;background:linear-gradient(to top,rgba(11,9,15,.55),transparent)!important}
.mm-imm-round{width:50px!important;height:50px!important;min-width:50px!important;min-height:50px!important;background:rgba(18,17,25,.39)!important;box-shadow:none!important}
.mm-imm-round>span{font-size:21px!important}
.mm-imm-round small{font-size:9px!important}
.mm-imm-shutter{box-shadow:0 3px 14px #0005!important}
.mm-imm-head{background:linear-gradient(to bottom,rgba(16,13,22,.45),transparent)!important}
.mm-imm-brand{font-size:clamp(15px,1.7vw,20px)!important}
@media(max-width:520px){
 .mm-imm-quicklooks{bottom:calc(env(safe-area-inset-bottom) + 98px);gap:3px;padding:4px;max-width:calc(100% - 10px)}
 .mm-imm-quicklooks button{font-size:10px!important;min-height:30px!important;padding:5px 8px!important}
 .mm-imm-bottom{gap:clamp(14px,4vw,24px)!important}
 .mm-imm-round{width:45px!important;height:45px!important;min-width:45px!important;min-height:45px!important}
}
@media(max-height:540px) and (orientation:landscape){
 .mm-imm-quicklooks{left:auto;right:calc(env(safe-area-inset-right) + 7px);bottom:calc(env(safe-area-inset-bottom) + 78px);transform:none;gap:3px}
 .mm-imm-quicklooks button{font-size:10px!important;padding:5px 7px!important;min-height:28px!important}
 .mm-imm-bottom{gap:10px!important}
}
@media(prefers-reduced-motion:reduce){.mm-imm-quicklooks{transition:none}}
