/* © 2026 IG Tools — All rights reserved. */
/* Collage Maker mobile-first shell — pairs with shell.js and shared/ui.js. The landing (drop zone)
   keeps its own layout; everything below the "editor" marker only applies once a photo is open
   (body.ready). */

/* ---- the ONE top bar (UI_RULES §1): same parts on every screen, CSS picks which show ---- */
.mcs-top{display:flex;align-items:center;gap:6px;min-height:calc(56px + var(--ad-handle,0px));padding:var(--ad-handle,0px) 8px 0;box-sizing:border-box;position:relative;z-index:30;margin:calc(var(--ad-gap,0px) - 26px) -18px 18px;
  background:var(--chrome-solid,var(--panel));border-bottom:1px solid var(--line)}
.mcs-home{order:1;display:flex;align-items:center;justify-content:center;min-height:44px;min-width:44px;padding:0 10px;border:0;border-radius:12px;background:none;color:var(--accent);cursor:pointer}
.mcs-tool{order:3;display:flex;align-items:center;gap:8px;font:700 17px/1 var(--sans);color:var(--text);padding-left:2px}
.mcs-tool svg{flex:none;color:var(--logo)}
.mcs-new{order:2;display:none}
.mcs-mode{order:3;display:none;gap:2px;padding:3px;border-radius:13px;background:var(--fill)}
.mcs-mode button{min-height:40px;padding:0 9px;border:0;border-radius:10px;background:transparent;color:var(--muted);display:flex;align-items:center;justify-content:center;gap:6px;font:600 13px/1 var(--sans);cursor:pointer}
.mcs-mode button.on{background:var(--panel);color:var(--text);box-shadow:var(--sh)}
#mcsDl{order:5;margin-left:auto;display:none}
.mcs-lang{order:6;display:flex;align-items:center;gap:2px;margin-left:auto;background:var(--fill);border-radius:10px;padding:2px 2px 2px 8px}
.mcs-theme{order:6;margin-left:auto;display:flex;align-items:center;justify-content:center;width:44px;height:44px;border:0;border-radius:12px;background:none;color:var(--text);cursor:pointer;padding:0}
/* the theme button takes the auto margin so [moon][TR/EN] sit together at the right, as in Meta Cam */
.mcs-lang{margin-left:0}
.mcs-globe{display:flex;color:var(--muted)}
.mcs-lang button{border:0;background:none;color:var(--muted);font:600 13px/1 var(--sans);padding:8px 10px;border-radius:8px;cursor:pointer}
.mcs-lang button.on{background:var(--panel);color:var(--text);box-shadow:var(--sh)}
.mcs-inst,body .mcs-inst{width:fit-content;margin:14px auto 0;min-height:44px;padding:0 16px;border-radius:22px;display:flex;align-items:center;gap:8px;font:600 14px/1 var(--sans)}
.mcs-inst[hidden],body.ready .mcs-inst{display:none}
.mcs-newbtn{display:flex!important;align-items:center;justify-content:center;gap:8px;min-width:44px;min-height:44px;padding:0;border:0;border-radius:12px!important;background:none;box-shadow:none;color:var(--text);cursor:pointer;font:600 14px/1 var(--sans)}
.mcs-newt{display:none}
/* the old landing header (logo, wordmark, TR/EN, tagline) stays in the DOM, off-screen: h1, SEO copy, language handlers */
.wrap>header{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.igsb{display:none!important}
.mcs-ask{text-align:center;padding:4px 0 6px}
.mcs-ask-ic{display:inline-flex;align-items:center;justify-content:center;width:56px;height:56px;border-radius:18px;background:rgba(255,59,48,.12);color:#FF3B30;margin-bottom:10px}
.mcs-ask b{display:block;font:700 19px/1.2 var(--sans);color:var(--text)}
.mcs-ask p{margin:8px 0 0;font:400 14px/1.45 var(--sans);color:var(--muted)}
.mcs-ask-btns{display:flex;gap:8px;margin-top:18px}
.mcs-ask-btns .ig-btn{flex:1;min-height:52px}
.ig-btn.mcs-danger{background:#FF3B30;color:#fff}

/* ================= editor (body.ready) ================= */
body.ready{padding:var(--ad-top,0px) 0 calc(84px + var(--ad-bot,0px))!important}
body.ready .mcs-top{margin:0;position:sticky;top:var(--ad-top,0px)}
body.ready .wrap{padding:0 12px}
body.ready .mcs-tool,body.ready .mcs-lang,body.ready .mcs-theme{display:none}
body.ready .mcs-new,body.ready #mcsDl,body.ready .mcs-mode{display:flex}
/* what the shell replaced: size row, panel chrome, footer (its buttons are still clicked by the sheets) */
@media(max-width:380px){.mcs-mode button span,.mcs-top .ig-btn.pri span{display:none}.mcs-top .ig-btn.pri{padding:0;width:44px}}
@media(max-width:380px){body.mcs-prev .mcs-mode button[data-m=edit] span{display:inline}}

/* dock */
.mcs-dock{display:none}
body.ready .mcs-dock{display:flex;position:fixed;left:0;right:0;bottom:var(--ad-bot,0px);z-index:30;padding:6px 8px calc(6px + env(safe-area-inset-bottom,0px));
  background:var(--chrome-solid,var(--panel));border-top:1px solid var(--line)}
.mcs-tab{flex:1;min-height:56px;border:0;border-radius:12px;background:transparent;color:var(--muted);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;font:600 12px/1 var(--sans);cursor:pointer}
.mcs-tab.on{color:var(--accent);background:var(--fill)}
@media(min-width:900px){body.ready .mcs-dock{max-width:560px;margin:0 auto;border:1px solid var(--line);border-radius:18px;bottom:calc(14px + var(--ad-bot,0px));box-shadow:var(--sh-hi)}}

/* sheets that host the panes sit low and leave the photo visible */
.ig-sheet.mcs-s .ig-sh-box{max-height:48vh}
@media(min-width:900px){.ig-sheet.mcs-s .ig-sh-box{top:auto;bottom:var(--sh-b,96px);left:auto;right:var(--sh-r,24px);transform:none;max-height:var(--sh-mh,calc(100vh - 200px))}}
.ig-sheet .ig-row.on{outline:2px solid var(--accent)}

/* size chip (bottom-left of the photo) */
.mcs-size{position:absolute;left:12px;bottom:12px;z-index:6;display:none;align-items:center;gap:6px;min-height:40px;padding:0 12px;border:1px solid rgba(255,255,255,.14);border-radius:14px;
  background:rgba(28,28,30,.72);color:#fff;font:600 13px/1 var(--sans);backdrop-filter:blur(14px) saturate(180%);-webkit-backdrop-filter:blur(14px) saturate(180%);cursor:pointer}
body.ready .mcs-size{display:flex}

/* the download / video popups become bottom sheets */
body.ready #dlOptsModal,body.ready #vidOptsModal,body.ready #wipeOptsModal{align-items:flex-end!important;padding:0!important}
body.ready #dlOptsModal>div,body.ready #vidOptsModal>div,body.ready #wipeOptsModal>div{max-width:560px!important;width:100%!important;margin:0 auto;border-radius:22px 22px 0 0!important;max-height:88vh;overflow:auto;padding-bottom:calc(22px + env(safe-area-inset-bottom,0px))!important}

/* ---- landing: same one-action layout as Meta Cam (mockup M1) ---- */
/* ---- landing (mockup M1): one clear action, Ana sayfa on top ---- */
body:not(.ready) .wrap{max-width:560px}
body:not(.ready) .wrap>header .badge,body:not(.ready) .wrap>header .sub{display:none}
body:not(.ready) .wrap>header{margin-bottom:0}
body:not(.ready) .drop{display:flex;flex-direction:column;justify-content:center;min-height:56vh;border:0;background:none;box-shadow:none;padding:0 8px;margin-top:0}
body:not(.ready) .drop:hover{transform:none;box-shadow:none}
body:not(.ready) .drop .content{display:flex;flex-direction:column;align-items:center;gap:0}
body:not(.ready) .drop .icon{font-size:0;width:84px;height:84px;border-radius:24px;background:#1D1D1F;position:relative;margin:0 0 16px}
body:not(.ready) .drop .icon::after{content:"";position:absolute;inset:19px;background:#fff;-webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='3' width='18' height='18' rx='2.5' stroke-dasharray='3 2.5'/%3E%3Ccircle cx='12' cy='12' r='4.5'/%3E%3C/svg%3E") center/contain no-repeat;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='3' width='18' height='18' rx='2.5' stroke-dasharray='3 2.5'/%3E%3Ccircle cx='12' cy='12' r='4.5'/%3E%3C/svg%3E") center/contain no-repeat}
body:not(.ready) .drop .big{font-size:22px;font-weight:700;letter-spacing:-.02em}
body:not(.ready) .drop .small{font-size:13.5px;max-width:340px;line-height:1.45;margin:8px 0 18px}
body:not(.ready) .drop .pill{display:flex;align-items:center;justify-content:center;gap:10px;width:100%;min-height:60px;margin:0;padding:0 20px;border-radius:18px;font-size:17px;font-weight:600;box-sizing:border-box}
body:not(.ready) .drop .pill::before{content:"";width:24px;height:24px;background:currentColor;-webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='14' height='14' rx='2.5'/%3E%3Cpath d='M4 16l4-4 3 3 2-2 4 4'/%3E%3Cpath d='M19 3v6M16 6h6'/%3E%3C/svg%3E") center/contain no-repeat;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='14' height='14' rx='2.5'/%3E%3Cpath d='M4 16l4-4 3 3 2-2 4 4'/%3E%3Cpath d='M19 3v6M16 6h6'/%3E%3C/svg%3E") center/contain no-repeat}

/* ---------- desktop landing (>=900px): wide page like the editor, a real drop target ---------- */
@media(min-width:900px){
  body:not(.ready) .wrap{max-width:1120px}
  body:not(.ready) .drop{max-width:760px;width:100%;margin:28px auto 0;min-height:420px;padding:48px 40px;border:2px dashed var(--line);border-radius:28px;background:var(--panel);box-sizing:border-box}
  body:not(.ready) .drop:hover,body:not(.ready) .drop.over{border-color:var(--accent);background:rgba(0,122,255,.05)}
  body:not(.ready) .drop .icon{width:96px;height:96px;border-radius:28px;margin-bottom:20px}
  body:not(.ready) .drop .icon::after{inset:22px}
  body:not(.ready) .drop .big{font-size:28px}
  body:not(.ready) .drop .small{font-size:15px;max-width:480px;margin:10px 0 26px}
  body:not(.ready) .drop .pill{width:auto;min-width:340px}
  body .promo,body .wrap>.seo{max-width:760px;margin-left:auto;margin-right:auto}
}

@media(min-width:900px){
  .mcs-top{padding:0 max(20px,calc((100% - 1100px)/2));gap:10px}
  body.ready .mcs-tool,body.ready .mcs-lang{display:flex}
  body.ready .mcs-theme{display:flex;margin-left:6px}
  body.ready #mcsDl{margin-left:auto}
  .mcs-new{order:4;margin-left:6px}
  .mcs-newbtn{padding:0 16px;border:1px solid var(--line)!important;border-radius:22px!important;background:var(--panel)!important;box-shadow:var(--sh)!important;min-height:40px}
  .mcs-newt{display:inline}
  body.ready .mcs-lang{margin-left:0}
}

/* A tab sheet never blocks the photo: you keep working on the canvas (move area circles, path points…)
   while its settings are open. Anything else you touch closes it (shell.js). */
.ig-sheet.mcs-s{pointer-events:none}
.ig-sheet.mcs-s .ig-sh-box{pointer-events:auto}

/* one muted hint line under the photo */
.footcol .note{display:none!important}



/* ================= Collage Maker specifics ================= */
/* what the shell replaced: the old size/seam panel, the action bar (its buttons moved into sheets / floats), the footer buttons (the İndir sheet clicks them) */
body.ready .panel,body.ready .stagefoot,body.ready .pvbar,body.ready .imgstrip-hdr,body.ready .stage>.tip,body.ready .banner:empty{display:none!important}
body.ready #editHint{display:none!important}
@media(min-width:900px){body.ready #editHint{display:flex!important}body.ready #editHint[style*="none"]{display:none!important}}
body.ready .stage{margin-top:10px;padding:0}
body.ready .work{display:block}
body.ready .work>.stage .shell{min-height:52vh;padding:6px}
@media(max-width:899px){body.ready .work>.stage .shell>canvas{max-height:calc((100vh - 270px) * var(--vz,1))}}
.mcs-pv{position:relative}
/* the photo's own box (the checkerboard .shell) keeps the page's rules; the strip sits below it on a phone */
body.ready .stage{display:flex!important;flex-direction:column}
body.ready .mcs-pv{order:1}
body.ready #imgStripWrap{order:2;margin:10px 0 0}
body.ready #editHint{order:3}
body.ready #aiWrap{order:4}
body.ready #txbMount{order:5}
body.ready .imgstrip{padding:2px 2px 4px}

/* the hidden originals (#hdBtn: the Grafik sheet owns HD now; #txtBtn: the ✍️ float opens the same panel; #layoutToggle / #frameBtn / #editBtn are driven by the shell) */
.mcs-pv~*:empty{display:none}

/* ---- photo floats ---- */
.mcs-aifab{position:absolute;top:12px;right:12px;z-index:6;display:flex;align-items:center;justify-content:center;gap:6px;min-width:44px;min-height:44px;padding:0 12px;border:1px solid rgba(255,255,255,.14);border-radius:14px;
  background:rgba(28,28,30,.72)!important;color:#fff!important;font:600 13px/1 var(--sans);box-shadow:0 4px 14px rgba(0,0,0,.35);backdrop-filter:blur(14px) saturate(180%);-webkit-backdrop-filter:blur(14px) saturate(180%);cursor:pointer}
.mcs-aifab.on{box-shadow:inset 0 0 0 2px var(--accent)}
body.ready .mcs-size{display:flex}
body.mcs-prev .pvfloat,body.mcs-prev .mcs-size,body.mcs-prev .mcs-aifab,body.mcs-prev .trashzone{display:none!important}
.pvfbtn svg,.pvmag svg{display:block}
.pvmag{position:relative}
.pvmag .mcs-ic{display:flex}
/* left-top group: Yazı · actions (· Geri al) */
.mcs-undof .mcs-undo{-webkit-appearance:none;appearance:none;border:0!important;background:transparent!important;color:#fff!important;width:40px;height:38px;padding:0!important;border-radius:11px!important;display:flex;align-items:center;justify-content:center;cursor:pointer;font-size:0}
.mcs-undof .mcs-undo:disabled{opacity:.4}
.mcs-undof .mcs-undo svg{display:block}
/* Geri al: bottom-right corner of the photo area (2026-10-21) */
body.ready .shell .mcs-undof{left:auto!important;top:auto!important;right:12px;bottom:12px;padding:3px}
@media(max-width:899px){body.ready .shell .mcs-undof{right:6px;bottom:6px}}
@media(min-width:900px){
  body.ready .shell .pvtextf{left:12px!important;top:12px!important}
  /* Osman, 2026-10-21: "PC'de de yatay açılmasın, dikey olsun mobildeki gibi" — the left action capsule (🖼 Resim ekle …),
     the zoom capsule and the eraser size slider stack vertically on desktop too, exactly like on a phone. */
  body.ready .shell .pvactsf{left:12px!important;top:62px!important;flex-direction:column;align-items:center}
  body.ready .shell .pvactsf .pvfsep{width:auto;height:1px;flex:0 0 1px;align-self:stretch;margin:3px 7px}
  body.ready .shell .pvactsf .pvfslider{width:40px;height:auto;padding:6px 0;flex-direction:column;gap:4px}
  body.ready .shell .pvactsf .pvfslider input[type=range]{width:22px;height:84px;-webkit-appearance:slider-vertical;appearance:slider-vertical;writing-mode:vertical-lr;direction:rtl}
  /* bottom-left stack: size chip → zoom capsule (vertical) */
  body.ready .shell .pvzoomf{right:auto;top:auto;left:12px;bottom:62px;flex-direction:column;align-items:center}
  body.ready .shell .pvzoomf .pvfval{border:0;min-width:0;width:40px;padding:1px 0;font-size:12px;color:#fff}
  body.ready .shell .pvinspectf{left:12px;top:auto;bottom:190px}
  .mcs-size{left:12px;bottom:12px}
  /* PC: the photo strip is a vertical column to the right of the photo (Cn*PC mockups) */
  body.ready .stage{display:grid!important;grid-template-columns:minmax(0,1fr) 92px;grid-template-areas:"pv strip" "hint hint" "ai ai" "tx tx";column-gap:14px;align-items:start}
  /* Osman, 2026-10-21: PC'de Google yan reklamları (~160px) SOLDA ve SAĞDA aynı anda çıkıyor; sağdaki fotoğraf
     şeridinin (🪄 AI cut barları), soldaki araç düğmelerinin üstüne biniyordu. Reklama dokunmuyoruz; düzenleme
     alanı iki yandan 180px daralıyor, her şey iki reklamın arasında kalıyor. */
  body.ready .work>.stage{padding-left:180px;padding-right:180px;box-sizing:border-box}
  body.ready .mcs-pv{grid-area:pv}
  body.ready #imgStripWrap{grid-area:strip;margin:0}
  body.ready #editHint{grid-area:hint}
  body.ready #aiWrap{grid-area:ai}
  body.ready #txbMount{grid-area:tx}
  body.ready .imgstrip{flex-direction:column;overflow-x:hidden;overflow-y:auto;max-height:calc(min(700px,76vh) + 28px);padding:2px}
  body.ready .ithumb{width:76px}
  body.ready .thumbimg{height:76px}
  body.ready .ithumb.addtile{height:76px}
}
@media(max-width:899px){
  .mcs-size{left:6px;bottom:6px;flex-direction:column;gap:3px;min-height:0;width:44px;padding:7px 0;font-size:10.5px;border-radius:13px;justify-content:center}
  .mcs-size span{max-width:44px;text-align:center;white-space:nowrap;overflow:hidden;line-height:1.1}
  .mcs-aifab{top:6px;right:6px}
  body.ready .shell .pvfloat{border-radius:13px}
  body.ready .shell .pvtextf{left:6px!important;top:6px!important}
  body.ready .shell .pvactsf{left:6px!important;top:52px!important;flex-direction:column;align-items:center}
  body.ready .shell .pvactsf .pvfsep{width:auto;height:1px;flex:0 0 1px;align-self:stretch;margin:3px 7px}
  body.ready .shell .pvactsf .pvfslider{width:40px;height:auto;padding:6px 0;flex-direction:column;gap:4px}
  body.ready .shell .pvactsf .pvfslider input[type=range]{width:22px;height:84px;-webkit-appearance:slider-vertical;appearance:slider-vertical;writing-mode:vertical-lr;direction:rtl}
  body.ready .shell .pvzoomf{left:6px;right:auto;top:auto;bottom:70px;flex-direction:column;align-items:center}
  body.ready .shell .pvzoomf .pvfval{border:0;min-width:0;width:40px;padding:1px 0;font-size:12px;color:#fff}
  /* right capsule: eraser + sticker tools, hung under the AI button */
  body.ready .shell .pvactsf.pvactsr{left:auto!important;right:6px!important;top:56px!important;max-height:calc(100% - 56px - 58px);overflow-y:auto;scrollbar-width:none}
  body.ready .shell .pvactsf.pvactsr::-webkit-scrollbar{display:none}
  body.ready .shell .pvinspectf{left:6px;top:auto;bottom:190px}
}

/* the size sheet's last line: the page's own "combined size" readout */
.mcs-meta{margin:6px 2px 0;text-align:left;width:auto}

/* dock: Çerçeve (switch) is Önizle-only; Düzen / Kenar / Renk are Düzenle-only; Düzen / Kenar need 2+ photos */
.mcs-tab{position:relative}
.mcs-tab[data-only=p],body.mcs-prev .mcs-tab[data-only=e],body.mcs-one .mcs-tab.mcs-multi{display:none}
body.mcs-prev .mcs-tab[data-only=p]{display:flex}
.mcs-dot{position:absolute;top:9px;left:calc(50% + 8px);width:11px;height:11px;border-radius:50%;background:#1D1D1F;box-shadow:0 0 0 2px rgba(120,120,128,.45)}
.mcs-tab.sw-on .mcs-dot{background:#34C759;box-shadow:0 0 0 3px rgba(52,199,89,.35)}
.mcs-tab.sw-on{color:var(--text)}
body.mcs-prev .mcs-dock{display:flex!important}
body.mcs-prev:not(.ready) .mcs-dock{display:none!important}

/* sheet contents: page buttons that now live in a sheet as full-width rows */
.mcs-row{display:flex!important;align-items:center;gap:12px;width:100%!important;min-height:56px;padding:8px 12px!important;margin:0 0 8px!important;border:0!important;border-radius:14px!important;background:var(--fill)!important;color:var(--text)!important;
  font:600 15px/1.2 var(--sans)!important;text-align:left;cursor:pointer;box-shadow:none!important;letter-spacing:0}
.mcs-row small{display:block;font-weight:500;font-size:12px;color:var(--muted);margin-top:3px}
.mcs-row.on{outline:2px solid var(--accent)}
.mcs-row:active{transform:scale(.99)}
.mcs-s .ctrl{margin:0 0 14px}
.mcs-s .ctrl label{margin-bottom:8px}
.mcs-s .ctrl .slider{width:100%;height:8px}
.mcs-s #revealCtrl{margin-top:4px}
.mcs-s #revealCtrl>div{display:block!important}
.mcs-s #revealCtrl label{display:none}
/* Düzen: the layout chips */
.mcs-s #layoutWrap{display:block!important;margin:0 0 12px}
.mcs-s #layoutWrap .ctrl{margin:0}
.mcs-s #layoutWrap label{display:none}
.mcs-s #layout{display:grid;grid-template-columns:repeat(auto-fill,minmax(68px,1fr));gap:8px;background:none;border:0;padding:0;box-shadow:none}
.mcs-s #layout button.tpl{min-height:68px;padding:10px;border-radius:14px;background:var(--fill);color:var(--text);display:flex;align-items:center;justify-content:center}
.mcs-s #layout button.tpl svg{width:36px;height:36px}
.mcs-s #layout button.tpl.on{background:color-mix(in srgb,var(--accent) 15%,var(--panel));color:var(--accent);box-shadow:inset 0 0 0 2px var(--accent)}
/* Kenar: chip rows scroll sideways (12 torn-edge styles) */
.mcs-s .mcs-chips{flex-wrap:nowrap;overflow-x:auto;-webkit-overflow-scrolling:touch;margin:0 -2px;padding:2px;scrollbar-width:none}
.mcs-s .mcs-chips::-webkit-scrollbar{display:none}
.mcs-s .mcs-chip{flex:none;white-space:nowrap}
.mcs-s #colorLutMount{margin:0}
/* Hareket: Önizle has no editing, so no axes toggle there */
body.mcs-prev #axisBtn{display:none!important}

/* the video / download option popups become bottom sheets (#dlOptsModal is shared with Retro's rule above; the video one is #vidModal here) */
body.ready #vidModal{align-items:flex-end!important;padding:0!important}
body.ready #vidModal>div{max-width:560px!important;width:100%!important;margin:0 auto;border-radius:22px 22px 0 0!important;max-height:88vh;overflow:auto;padding-bottom:calc(22px + env(safe-area-inset-bottom,0px))!important}

/* a phone frame in Önizle: no extra chrome */
body.ready .mcs-pv .shell{margin:0}
.footcol .note{display:none!important}

/* select → chip rows (Kenar) */
.mcs-hide{display:none!important}
.mcs-chips{display:flex;gap:8px;flex:1 1 100%;margin:4px 0}
.mcs-chip{flex:none;min-width:72px;min-height:64px;padding:8px 6px;border-radius:12px;border:0;background:var(--fill);color:var(--text);font:600 12.5px/1.1 var(--sans);cursor:pointer;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;white-space:nowrap;transition:transform .1s var(--spring)}
.mcs-chip:active{transform:scale(.96)}
.mcs-chip.on{background:color-mix(in srgb,var(--accent) 15%,var(--panel));color:var(--accent);box-shadow:inset 0 0 0 2px var(--accent)}

/* Osman 2026-10-16: the 'Selected: file…' log card is not needed; magnifier (second canvas zoom) removed in app.js */
body.ready .status{display:none!important}



/* Önizle: the canvas keeps the very box it has in Düzenle (the story / reels frame no longer re-sizes it), and the photo strip is edit-only. */
@media(max-width:899px){
  body.ready .shell .storyframe,body.ready .shell .reelsframe{max-width:100%}
  body.ready .shell .storyframe canvas,body.ready .shell .reelsframe canvas{max-width:100%;max-height:calc((100vh - 270px) * var(--vz,1))}
}
@media(min-width:900px){
  body.ready .shell .pvactsf.pvactsr{left:auto!important;right:12px!important;top:68px!important;flex-direction:column;align-items:center}
  body.ready .shell .pvactsf.pvactsr .pvfsep{width:auto;height:1px;flex:0 0 1px;align-self:stretch;margin:3px 7px}
  body.ready .shell .storyframe,body.ready .shell .reelsframe{max-width:100%}
  body.ready .shell .storyframe canvas,body.ready .shell .reelsframe canvas{max-width:100%;max-height:calc(min(700px,76vh) * var(--vz,1))}
}
body.mcs-prev #imgStripWrap{display:none!important}

/* Inner scroll (shell.js INNER_SCROLL): desktop >=1100px with a photo open. The window does not scroll, <body> does, so the
   side-rail ads do not react to scrolling. shell.js only adds the classes at that width; nothing here touches a phone. */
html.mcs-inner{height:100%;overflow:hidden}
html body.mcs-inner{height:100dvh;box-sizing:border-box;overflow:hidden auto!important;overscroll-behavior:contain}
html body.mcs-inner.ig-locked{overflow:hidden!important}
