/* =====================================================================
   MODERA Sürüm 12.1 — reklamsız geniş çalışma alanı ve 3D tasarım düzeni
   Yalnızca 3D tasarım ve mobilya oluşturma ekranlarında (html.mr-creation).
   Diğer sayfalar (ana ekran, ilanlar, grup, profil…) olduğu gibi kalır;
   reklam orada görünmeye devam eder. Sınıfı modera-v121.js ekler/kaldırır.
   ===================================================================== */

/* ---------- 0) Ölçü değişkenleri ---------- */
html.mr-creation{--vh:1vh;--mr-stage-h:clamp(240px,calc(var(--vh)*44),440px);--mr-stage-top:calc(env(safe-area-inset-top,0px) + 4px)}
@supports (height:100dvh){html.mr-creation{--vh:1dvh}}
@media (min-width:900px),(orientation:landscape) and (max-height:600px) and (min-width:560px){
  html.mr-creation{--mr-stage-h:clamp(280px,calc(var(--vh)*100 - 30px),900px);--mr-stage-top:calc(env(safe-area-inset-top,0px) + 10px)}
}

/* ---------- 1) Reklam bu ekranlarda yok ---------- */
html.mr-creation #moderaGlobalAdHost,
html.mr-creation body #mainApp>header.top #moderaGlobalAdHost,
html.mr-creation body #mainApp>header.top #moderaGlobalAdHost>*{
  display:none!important;height:0!important;min-height:0!important;max-height:0!important;
  margin:0!important;padding:0!important;border:0!important;overflow:hidden!important;aspect-ratio:auto!important;
}

/* ---------- 2) İnce üst bant (sayfayla birlikte kayar, çalışma alanını yemez) ---------- */
html.mr-creation{scroll-padding-top:0!important}
html.mr-creation body #mainApp>header.top{
  position:relative!important;top:auto!important;box-shadow:none!important;
  padding:clamp(6px,1.3vw,10px) var(--mr-pad,10px) 0!important;
}
html.mr-creation body #mainApp>header.top .head{margin:0 0 clamp(4px,1vw,8px)!important;min-height:0!important}
html.mr-creation body #mainApp>header.top .logo,
html.mr-creation body #mainApp>header.top .mr-logo-mark{
  width:clamp(32px,5.4cqw,50px)!important;height:clamp(32px,5.4cqw,50px)!important;
  min-width:32px!important;flex:0 0 auto!important;max-width:50px!important;max-height:50px!important;
}
html.mr-creation body #mainApp>header.top .head .brand{font-size:clamp(15px,2.3cqw,24px)!important}
html.mr-creation body #mainApp>header.top .head .sub{font-size:clamp(6.5px,1.15cqw,11px)!important}
html.mr-creation body #mainApp>header.top .moderaHeaderIcon{
  width:clamp(33px,4.4cqw,44px)!important;height:clamp(33px,4.4cqw,44px)!important;
  min-width:33px!important;min-height:33px!important;max-width:44px!important;max-height:44px!important;border-radius:11px!important;
}
html.mr-creation body #mainApp>header.top .moderaHeaderIcon svg{width:19px!important;height:19px!important;max-width:19px!important;max-height:19px!important}
html.mr-creation body #mainApp>header.top #moderaHeaderActions{gap:5px!important}

/* ---------- 3) Geniş çerçeve ---------- */
html.mr-creation body #mainApp.app,
html.mr-creation body #mainApp{width:calc(100% - 8px)!important;max-width:min(1600px,calc(100% - 8px))!important;margin:4px auto!important}
@media (min-width:700px){
  html.mr-creation body #mainApp.app,
  html.mr-creation body #mainApp{width:calc(100% - 20px)!important;max-width:min(1600px,calc(100% - 20px))!important;margin:8px auto!important}
}
html.mr-creation #designer3d.active{padding:clamp(6px,1.4vw,16px)!important;padding-bottom:clamp(70px,12vw,90px)!important}
html.mr-creation #designWorkspace{max-width:none!important}

/* ---------- 4) Adımlar: kategori → model → oluştur ---------- */
html.mr-creation #designWorkspace[data-step=design]{padding-left:0!important}
html.mr-creation #designWorkspace[data-step=design] .dw-sidebar,
html.mr-creation #designWorkspace[data-step=design] .dw-library,
html.mr-creation #designWorkspace[data-step=design] .dw-steps{display:none!important}
html.mr-creation #designWorkspace:not([data-step=design]) .dw-editor{display:none!important}
html.mr-creation #designWorkspace[data-step=design] .dw-layout{display:block!important}
html.mr-creation #designWorkspace[data-step=design] .dw-bottom{margin-left:0!important}

/* Oluştur adımında başlık tek ince çubuk olur */
html.mr-creation #designWorkspace[data-step=design] .dw-heading{display:flex!important;align-items:center;gap:8px;margin:2px 0 8px!important}
html.mr-creation #designWorkspace[data-step=design] .dw-heading>div:first-child{display:flex;align-items:center;gap:10px;min-width:0;flex:1 1 auto}
html.mr-creation #designWorkspace[data-step=design] .dw-heading h2{font-size:clamp(15px,2.2vw,22px)!important;margin:0!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
html.mr-creation #designWorkspace[data-step=design] .dw-heading p{display:none!important}
html.mr-creation #designWorkspace[data-step=design] .dw-heading>.dw-actions{display:flex!important;flex-wrap:nowrap;gap:6px;margin:0!important;max-width:none!important;flex:0 0 auto}
html.mr-creation #designWorkspace[data-step=design] .dw-heading>.dw-actions button{min-width:0!important;padding:8px 12px!important;font-size:12px!important;min-height:38px;white-space:nowrap!important}
html.mr-creation #designWorkspace[data-step=design] .dw-heading>.dw-actions [data-action=advanced]{display:none!important}
html.mr-creation #designWorkspace[data-step=design] .dw-heading>div:first-child>button{min-height:38px;padding:8px 12px!important;font-size:12px!important;white-space:nowrap!important}
@media (max-width:640px){
  html.mr-creation #designWorkspace[data-step=design] .dw-heading{display:grid!important;grid-template-columns:auto 1fr;gap:6px}
  html.mr-creation #designWorkspace[data-step=design] .dw-heading h2{display:none!important}
  html.mr-creation #designWorkspace[data-step=design] .dw-heading>div:first-child{grid-column:1}
  html.mr-creation #designWorkspace[data-step=design] .dw-heading>.dw-actions{grid-column:2;display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}
  html.mr-creation #designWorkspace[data-step=design] .dw-heading>.dw-actions button{padding:8px 4px!important;font-size:12px!important}
}
/* 3D oda / Gelişmiş modül sekmeleri ince olur */
html.mr-creation #designer3d .dw-mode-tabs{margin:0 0 6px!important;padding:4px!important;gap:6px!important}
html.mr-creation #designer3d .dw-mode-tabs button{min-height:40px!important;font-size:13px!important}

/* ---------- 5) Düzenleyici: sol büyük sahne + sağ panel ---------- */
html.mr-creation #designWorkspace .dw-editor{display:block}
html.mr-creation #designWorkspace .dw-col-stage{
  position:sticky;top:var(--mr-stage-top);z-index:30;
  margin:0 0 10px;padding:0;background:#f4eee3;border-radius:16px;
}
html.mr-creation #designWorkspace .dw-stage{
  position:relative!important;top:auto!important;inset:auto;z-index:1!important;
  height:var(--mr-stage-h)!important;min-height:0!important;max-height:none!important;
  width:100%;overflow:hidden;border-radius:16px;touch-action:pan-y;
  box-shadow:0 8px 22px rgba(52,34,12,.2)!important;
}
html.mr-creation #designWorkspace .dw-stage canvas{width:100%!important;height:100%!important;border-radius:16px!important;touch-action:none}
html.mr-creation #designWorkspace .dw-stage>svg{display:block;width:100%;height:100%}
html.mr-creation #designWorkspace .dw-stage>.dw-preview-pending{min-height:0!important;height:100%;border-radius:16px}
html.mr-creation #designWorkspace .dw-col-panel{min-width:0}
@media (min-width:900px),(orientation:landscape) and (max-height:600px) and (min-width:560px){
  html.mr-creation #designWorkspace[data-step=design] .dw-editor{
    display:grid!important;grid-template-columns:minmax(0,1.75fr) minmax(330px,1fr);
    gap:clamp(10px,1.6vw,22px);align-items:start;
  }
  html.mr-creation #designWorkspace .dw-col-stage{margin:0}
}

/* ---------- 6) Sahnenin üstündeki araçlar (sahneyi küçültmez) ---------- */
html.mr-creation #designWorkspace .dw-view-tabs,
html.mr-creation #designWorkspace .dw-viewbar,
html.mr-creation #designWorkspace .dw-viewtools{
  position:absolute;z-index:10;display:flex!important;gap:3px;margin:0;padding:3px;
  background:rgba(255,251,244,.88);border:1px solid rgba(120,92,52,.28);border-radius:13px;
  box-shadow:0 2px 8px rgba(40,26,8,.16);-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px);
  grid-template-columns:none!important;width:auto;max-width:calc(100% - 16px);
}
html.mr-creation #designWorkspace .dw-view-tabs{left:8px;top:8px}
html.mr-creation #designWorkspace .dw-viewtools{right:8px;top:8px;flex-direction:column;gap:4px;padding:4px}
html.mr-creation #designWorkspace .dw-viewbar{left:50%;bottom:8px;transform:translateX(-50%);padding:3px;max-width:calc(100% - 70px)}
html.mr-creation #designWorkspace .dw-view-tabs button,
html.mr-creation #designWorkspace .dw-viewbar button{
  min-height:34px!important;min-width:0!important;padding:6px 11px!important;border:0!important;background:transparent!important;
  color:#2a1a0c!important;font:700 12px/1.1 system-ui,sans-serif!important;border-radius:10px!important;white-space:nowrap!important;box-shadow:none!important;grid-column:auto!important;flex:0 0 auto!important;
}
html.mr-creation #designWorkspace .dw-view-tabs button[aria-pressed=true],
html.mr-creation #designWorkspace .dw-viewbar button[aria-pressed=true]{background:#2a1a0c!important;color:#fff7e8!important}
html.mr-creation #designWorkspace .dw-viewbar button:active{background:#e7d8bd!important}
html.mr-creation #designWorkspace .dw-viewtools button{
  position:relative;flex:0 0 auto!important;width:40px;height:40px;min-height:40px!important;padding:0!important;border:0!important;border-radius:11px!important;
  background:transparent!important;color:#2a1a0c!important;font-size:0!important;line-height:0!important;box-shadow:none!important;
}
html.mr-creation #designWorkspace .dw-viewtools button::before{
  content:"";position:absolute;inset:0;margin:auto;width:23px;height:23px;background:currentColor;
  -webkit-mask:var(--ico) center/contain no-repeat;mask:var(--ico) center/contain no-repeat;
}
html.mr-creation #designWorkspace .dw-viewtools button[aria-pressed=true]{background:#2a1a0c!important;color:#fff7e8!important}
html.mr-creation #designWorkspace .dw-viewtools [data-action=toggle-open]{--ico:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linejoin='round' stroke-linecap='round'%3E%3Cpath d='M4 3.5h16v17H4z'/%3E%3Cpath d='M4 3.5l8 2.4v12.2l-8 2.4z' fill='%23000' fill-opacity='.28'/%3E%3Cpath d='M15.5 12h1.5'/%3E%3C/svg%3E")}
html.mr-creation #designWorkspace .dw-viewtools [data-action=quality]{--ico:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linejoin='round' stroke-linecap='round'%3E%3Cpath d='M11 3l2 6 6 2-6 2-2 6-2-6-6-2 6-2z'/%3E%3Cpath d='M19 15.5l.8 2.2 2.2.8-2.2.8-.8 2.2-.8-2.2-2.2-.8 2.2-.8z'/%3E%3C/svg%3E")}
html.mr-creation #designWorkspace .dw-viewtools [data-action=fullscreen]{--ico:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linejoin='round' stroke-linecap='round'%3E%3Cpath d='M4 9V4h5M20 9V4h-5M4 15v5h5M20 15v5h-5'/%3E%3C/svg%3E")}
html.mr-creation #designWorkspace .dw-viewtools [data-action=fullscreen][aria-pressed=true]{--ico:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linejoin='round' stroke-linecap='round'%3E%3Cpath d='M9 4v5H4M15 4v5h5M9 20v-5H4M15 20v-5h5'/%3E%3C/svg%3E")}
@media (max-width:420px){
  html.mr-creation #designWorkspace .dw-view-tabs button{padding:6px 8px!important;font-size:11.5px!important}
  html.mr-creation #designWorkspace .dw-viewbar button{padding:6px 8px!important;font-size:11.5px!important}
}

/* Tam ekran (iPhone dahil her cihazda çalışan yedek) */
html.mr-stage-full,html.mr-stage-full body{overflow:hidden!important}
html.mr-creation #designWorkspace .dw-col-stage.mr-full{
  position:fixed!important;inset:0!important;z-index:5000!important;margin:0!important;border-radius:0!important;
  background:#e8dfd0;padding:env(safe-area-inset-top,0px) env(safe-area-inset-right,0px) env(safe-area-inset-bottom,0px) env(safe-area-inset-left,0px);
}
html.mr-creation #designWorkspace .dw-col-stage.mr-full .dw-stage{height:100%!important;border-radius:0!important;box-shadow:none!important}
html.mr-creation #designWorkspace .dw-col-stage.mr-full .dw-stage canvas{border-radius:0!important}

/* ---------- 7) Sağ panel ---------- */
html.mr-creation #designWorkspace .dw-tabs{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:4px;padding:4px!important;border-radius:14px}
html.mr-creation #designWorkspace .dw-tabs button{padding:10px 2px!important;font-size:13px!important;font-weight:700;min-height:42px;border-radius:11px!important}
html.mr-creation #designWorkspace #dwStatus{margin:0 0 8px;font-size:12px;line-height:1.4;color:#5a5048;min-height:0}
html.mr-creation #designWorkspace #dwStatus:empty{display:none}
html.mr-creation #designWorkspace .dw-link{display:block;width:100%;margin-top:6px;background:transparent!important;border-color:transparent!important;color:#5b4a35!important;text-align:center;font-weight:700;min-height:40px}
@media (max-width:640px){
  html.mr-creation #designWorkspace .dw-share{grid-template-columns:repeat(2,minmax(0,1fr))}
  html.mr-creation #designWorkspace .dw-share .dw-link{grid-column:1/-1}
}

/* ---------- 8) v12 "Son projem" kartı: ince tek satır; oluşturma adımında gizli ---------- */
html.mr-creation .v12Draft{display:flex!important;flex-wrap:wrap;align-items:center;gap:6px 10px;padding:8px 12px!important;margin:0 0 8px!important;border-radius:14px!important}
html.mr-creation .v12Draft>strong{font-size:14px!important;flex:0 0 auto;margin:0!important}
html.mr-creation .v12Draft .actions{display:flex!important;flex:1 1 230px;gap:6px;margin:0!important;justify-content:flex-end}
html.mr-creation .v12Draft .actions .btn{flex:1 1 0;min-height:34px!important;padding:6px 8px!important;font-size:12.5px!important;width:auto!important}
html.mr-creation .v12Draft small{flex:1 0 100%;font-size:11px!important;margin:0!important}
html.mr-creation #designer3d:has(#designWorkspace[data-step=design]) #v12Draft-designer3d{display:none!important}

/* Kategori / model adımlarında başlık telefonda kısalır */
@media (max-width:640px){
  html.mr-creation #designWorkspace:not([data-step=design]) .dw-heading p{display:none!important}
  html.mr-creation #designWorkspace:not([data-step=design]) .dw-heading>.dw-actions [data-action=advanced]{display:none!important}
  html.mr-creation #designWorkspace:not([data-step=design]) .dw-heading>.dw-actions{grid-template-columns:repeat(3,minmax(0,1fr))!important}
  html.mr-creation #designWorkspace:not([data-step=design]) .dw-heading h2{font-size:22px!important;margin:6px 0 0!important}
}

@media (max-width:640px){
  html.mr-creation #designWorkspace .dw-heading>div:first-child{display:flex;align-items:center;gap:10px;margin:0 0 4px}
  html.mr-creation #designWorkspace .dw-heading>div:first-child>button{min-height:38px;padding:8px 12px!important;font-size:13px!important;flex:0 0 auto}
  html.mr-creation #designWorkspace .dw-heading h2{margin:0!important}
}

/* Kategori / model adımında kitaplık tüm genişliği kullanır (sağ sütun boş kalmaz) */
html.mr-creation #designWorkspace:not([data-step=design]) .dw-layout{grid-template-columns:minmax(0,1fr)!important}
@media (min-width:900px){
  html.mr-creation #designWorkspace .dw-models{grid-template-columns:repeat(auto-fill,minmax(190px,1fr))!important;gap:14px!important}
  html.mr-creation #designWorkspace .dw-categories{grid-template-columns:repeat(5,minmax(0,1fr))!important;gap:14px!important}
  html.mr-creation .v12Draft .actions{flex:0 0 auto;margin-left:6px!important}
  html.mr-creation .v12Draft .actions .btn{flex:0 0 auto;min-width:170px}
  html.mr-creation .v12Draft small{flex:1 1 200px;order:3}
}

/* ---------- 9) Gezinme hapı: oluşturma ekranlarında küçük, sağ altta (sahneyi örtmez) ---------- */
html.mr-creation #moderaDock{left:auto;right:max(10px,env(safe-area-inset-right,0px));transform:none;bottom:max(10px,calc(env(safe-area-inset-bottom,0px) + 2px));gap:6px;padding:5px;background:rgba(30,20,10,.78)}
html.mr-creation #moderaDock button{padding:0;width:46px;min-height:46px;font-size:0}
html.mr-creation #moderaDock button span{font-size:23px;margin:0;vertical-align:0}
html.mr-stage-full #moderaDock{display:none!important}

/* ---------- 10) Kapak sekmesi: kapak türü → renk/desen · CNC · cam (küçük önizlemeler) ---------- */
#designWorkspace .dw-door-types{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;margin:2px 0 10px}
#designWorkspace .dw-door-types button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;padding:10px 4px!important;min-height:58px;text-align:center}
#designWorkspace .dw-door-types button b{font-size:13px;line-height:1.2}
#designWorkspace .dw-door-types button small{font-size:10.5px;opacity:.78;line-height:1.2}
#designWorkspace .dw-section-title{display:flex;align-items:baseline;justify-content:space-between;gap:8px;flex-wrap:wrap}
#designWorkspace .dw-section-title .dw-cur{font-size:12px;font-weight:600;color:#6b5a45}
#designWorkspace .dw-fin-head{margin-top:6px}
#designWorkspace .dw-chips{display:flex;flex-wrap:wrap;gap:6px;margin:6px 0 10px}
#designWorkspace .dw-chips button{padding:6px 12px!important;min-height:34px;font-size:12px!important;border-radius:999px!important}
#designWorkspace .dw-fin-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(64px,1fr));gap:7px}
#designWorkspace .dw-fin-grid button{display:flex;flex-direction:column;align-items:center;gap:5px;padding:7px 2px 6px!important;min-height:74px;border-radius:12px!important;font-size:10.5px!important;line-height:1.15!important}
#designWorkspace .dw-fin-grid .sw{display:block;width:38px;height:38px;border-radius:50%;border:1px solid rgba(0,0,0,.22);box-shadow:inset 0 1px 2px rgba(255,255,255,.5),0 1px 3px rgba(0,0,0,.22);background-size:cover}
#designWorkspace .dw-fin-grid em{font-style:normal;text-align:center;overflow-wrap:anywhere;font-weight:600}
#designWorkspace .dw-fin-grid button[aria-pressed=true] .sw{box-shadow:0 0 0 2px #f7f0e6,0 0 0 4px #b8894a}
/* CNC modelleri: küçük önizleme ızgarası (büyük görsel ekranı kaplamaz) */
#designWorkspace .dw-cnc-current{display:flex;align-items:center;gap:10px;padding:8px 10px;border:1px solid #d4c8b8;border-radius:12px;background:#fffcf7;margin:4px 0 4px}
#designWorkspace .dw-cnc-current img{width:40px;height:52px;object-fit:contain;background:#fff;border-radius:6px;border:1px solid #e0d6c6;flex:0 0 auto}
#designWorkspace .dw-cnc-current div{min-width:0;flex:1 1 auto}
#designWorkspace .dw-cnc-current b{display:block;font-size:13px;line-height:1.25}
#designWorkspace .dw-cnc-current small{display:block;font-size:11px;color:#6b5a45;line-height:1.25}
#designWorkspace .dw-cnc-current button{flex:0 0 auto;padding:8px 10px!important;font-size:12px!important;min-height:36px}
#designWorkspace .dw-search{width:100%;height:42px;padding:8px 12px;border:1px solid #d4c8b8;border-radius:12px;background:#fff;margin:0 0 10px;font-size:14px}
#designWorkspace .dw-cnc-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(70px,1fr));gap:7px;margin-bottom:12px}
#designWorkspace .dw-cnc-grid button{display:flex;flex-direction:column;align-items:center;gap:3px;padding:5px 3px 6px!important;border-radius:11px!important;min-height:0;font-size:10px!important;line-height:1.15!important}
#designWorkspace .dw-cnc-grid img{display:block;width:100%;aspect-ratio:3/4;object-fit:contain;background:#fff;border-radius:7px;border:1px solid #e6dccb}
#designWorkspace .dw-cnc-grid small{font-size:10px;text-align:center;line-height:1.15;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;min-height:2.3em}
#designWorkspace .dw-cnc-more{grid-column:1/-1;min-height:40px}
/* Cam modelleri: iki sütun, küçük örnek */
#designWorkspace .dw-glass-types{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}
#designWorkspace .dw-glass-types button{display:flex;align-items:center;gap:9px;padding:8px 9px!important;text-align:left;min-height:56px;font-size:11.5px!important;line-height:1.25!important}
#designWorkspace .dw-glass-types .dw-glass-sample{flex:0 0 auto;width:28px;height:40px;margin:0;border-width:4px}
#designWorkspace .dw-glass-types em{font-style:normal;font-weight:600;min-width:0}
/* Akordeon (gövde rengi, tezgâh, kulp) */
#designWorkspace details.dw-acc{border:1px solid #d4c8b8;border-radius:13px;background:#fffcf7;margin:10px 0 0;overflow:hidden}
#designWorkspace details.dw-acc>summary{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:13px 14px;font-weight:700;font-size:13.5px;cursor:pointer;list-style:none;min-height:46px}
#designWorkspace details.dw-acc>summary::-webkit-details-marker{display:none}
#designWorkspace details.dw-acc>summary em{font-style:normal;font-weight:600;font-size:12px;color:#6b5a45;margin-left:auto;text-align:right}
#designWorkspace details.dw-acc>summary::after{content:"";flex:0 0 auto;width:8px;height:8px;border-right:2px solid #6b5a45;border-bottom:2px solid #6b5a45;transform:rotate(45deg);margin:-3px 2px 0 4px;transition:transform .15s}
#designWorkspace details.dw-acc[open]>summary::after{transform:rotate(-135deg);margin-top:3px}
#designWorkspace details.dw-acc .dw-acc-body{padding:2px 12px 14px}

/* Sahne telefonda üstte sabit kaldığı için odaklanan alanlar onun altında kalmasın */
@media (max-width:899px) and (orientation:portrait){
  html.mr-creation{scroll-padding-top:calc(var(--mr-stage-h) + 18px)!important}
}

/* Telefonda sekmeler (Ölçü · Kapak · Sahne · Parçalar) sabit sahnenin hemen altında kalır */
@media (max-width:899px) and (orientation:portrait){
  html.mr-creation #designWorkspace .dw-tabs{position:sticky;top:calc(var(--mr-stage-top) + var(--mr-stage-h) + 8px);z-index:25;box-shadow:0 5px 10px rgba(40,26,8,.14)}
  html.mr-creation #designWorkspace .dw-col-stage{margin-bottom:8px}
}

/* =====================================================================
   9) Geniş ekranda sabit üst bant: reklam ekranı yemesin (yalnız oluşturma dışı ekranlar)
   Telefon (<600px) olduğu gibi kalır. Tablet: reklam ortada, makul genişlikte.
   Masaüstü: tek satır — solda logo, ortada reklam, sağda simgeler.
   ===================================================================== */
@media (min-width:600px) and (max-width:899px){
  html:not(.mr-creation) body #mainApp>header.top #moderaGlobalAdHost{width:min(100%,440px)!important;margin-inline:auto!important}
}
@media (min-width:900px){
  html:not(.mr-creation) body #mainApp>header.top{
    display:grid!important;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;column-gap:18px;
    padding:10px 16px 8px!important}
  html:not(.mr-creation) body #mainApp>header.top>.head{display:contents!important}
  html:not(.mr-creation) body #mainApp>header.top .brandWrap{grid-column:1;grid-row:1;min-width:0;margin:0!important}
  html:not(.mr-creation) body #mainApp>header.top .head>.right{grid-column:3;grid-row:1;margin:0!important}
  html:not(.mr-creation) body #mainApp>header.top #moderaGlobalAdHost{
    grid-column:2;grid-row:1;justify-self:center;width:min(100%,400px)!important;padding:0!important;margin:0!important}
  html:not(.mr-creation) body #mainApp>header.top .brandWrap>svg,
  html:not(.mr-creation) body #mainApp>header.top .brandWrap .logo,
  html:not(.mr-creation) body #mainApp>header.top .brandWrap .mr-logo-mark{width:58px!important;height:60px!important;max-width:58px!important;max-height:60px!important;flex:0 0 auto}
  html:not(.mr-creation) body #mainApp>header.top .brandWrap .brand{font-size:26px!important;line-height:1.1!important}
  html:not(.mr-creation) body #mainApp>header.top .brandWrap .sub{font-size:11px!important;line-height:1.25!important;white-space:nowrap}
  html:not(.mr-creation) body #mainApp>header.top .moderaHeaderIcon{width:50px!important;height:50px!important;min-width:50px!important;min-height:50px!important;max-width:50px!important;max-height:50px!important;border-radius:14px!important}
  html:not(.mr-creation) body #mainApp>header.top .moderaHeaderIcon svg{width:22px!important;height:22px!important}
  html:not(.mr-creation) body #mainApp>header.top #moderaHeaderActions{gap:8px!important}
}

/* 12.1 — Gelişmiş modül: "Son proje" kutusu iki kez görünüyordu (3D tasarım + modül stüdyosu). Modül modunda yalnız stüdyonunki kalır. */
#designer3d[data-design-mode="module"] #v12Draft-designer3d{display:none!important}
/* 12.1 — CNC seçenekleri: onay kutusu devasa çiziliyordu (genel input{width:100%} kuralı). */
#moduleStudio .studioCncOptions label:has(>input[type=checkbox]){display:flex!important;align-items:center;gap:10px;margin:10px 0;font-size:14px;line-height:1.35}
#moduleStudio .studioCncOptions input[type=checkbox],#moduleStudio .studioAppend input[type=checkbox]{width:22px!important;height:22px!important;min-width:22px;flex:0 0 22px;margin:0!important;padding:0!important;accent-color:#2f6b3f}
#moduleStudio .studioPreviewError{margin:0;padding:18px 16px;border-radius:12px;background:#fff1ee;color:#8a2a1c;font-size:14px;line-height:1.45}

/* Sürüm 12.1 — donanım listesi (modül stüdyosu) */
#moduleStudio .bomBox{overflow-x:auto}
#moduleStudio .bomTable{width:100%;border-collapse:collapse;font-size:13px}
#moduleStudio .bomTable th,#moduleStudio .bomTable td{border-bottom:1px solid rgba(120,120,120,.28);padding:6px 8px;text-align:left;vertical-align:top}
#moduleStudio .bomTable td small{display:block;opacity:.72;font-size:11.5px;margin-top:2px}
#moduleStudio .bomQty{white-space:nowrap;font-weight:800;text-align:right}
#moduleStudio .bomGroup th{background:rgba(120,120,120,.14);font-size:12px;letter-spacing:.04em;text-transform:uppercase}
#moduleStudio .bomWarn{margin:10px 0 0;padding:8px 12px 8px 26px;background:#fff3e0;border-radius:10px;color:#7a3b00;font-size:13px}
#moduleStudio .bomNotes{margin:10px 0 0;padding-left:18px;font-size:12px;opacity:.85}
#moduleStudio .bomEmpty{margin:0;opacity:.75;font-size:13px}
/* Sürüm 12.1 — donanım seçenekleri (kulp, birleştirme, ayak, askı, menteşe tarafı): modül stüdyosu ve maliyet ekranı */
.bomOpts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:0 0 12px}
.bomOpts label{display:flex;flex-direction:column;gap:4px;font-size:12px;font-weight:700;color:inherit;min-width:0}
.bomOpts select{width:100%;min-height:42px;padding:6px 8px;border-radius:10px;border:1px solid rgba(120,120,120,.4);font:inherit;font-size:14px;font-weight:600;background:#fff;color:#1d1d1d}
@media(min-width:900px){.bomOpts{grid-template-columns:repeat(5,minmax(0,1fr))}}
