/* ============================================================================
   decut.css — DECUT.PRO site theme on the studio (6.0)
   Font: the site's IRANYekan (served by the raymond-native theme on the same
   origin), Vazirmatn as the offline fallback. Palette lives in bale.css.
   Also: RTL/mobile fixes (no horizontal scroll at 360–390 px).
   ==========================================================================*/
@font-face{font-family:"IRANYekan";src:url("/wp-content/themes/raymond-native/assets/fonts/iranyekanwebregular.woff") format("woff");font-weight:400 500;font-display:swap}
@font-face{font-family:"IRANYekan";src:url("/wp-content/themes/raymond-native/assets/fonts/iranyekanwebbold.woff") format("woff");font-weight:600 900;font-display:swap}
@font-face{font-family:"IRANYekan";src:url("/wp-content/themes/raymond-native/assets/fonts/iranyekanweblight.woff") format("woff");font-weight:300;font-display:swap}

html[data-theme] body,
html[data-theme] button, html[data-theme] input, html[data-theme] select, html[data-theme] textarea{
  font-family:"IRANYekan","Vazirmatn",-apple-system,BlinkMacSystemFont,"Segoe UI",Tahoma,sans-serif;
}
html[data-theme] body{
  background:
    radial-gradient(1100px 560px at 85% -12%, color-mix(in srgb,var(--accent-2) 9%,transparent), transparent 60%),
    var(--bg);
}
html[data-theme] .brand .logo{color:var(--brand-deep);background:var(--accent-soft);border-color:var(--line)}
html[data-theme] .brand b .studio{color:var(--brand-deep);letter-spacing:.5px}
html[data-theme] .btn.primary{background:var(--brand-deep);border-color:var(--brand-deep);color:var(--accent-on)}
html[data-theme] .btn.primary:hover{background:var(--accent-hover);border-color:var(--accent-hover)}
html[data-theme] :focus-visible{outline:2px solid color-mix(in srgb,var(--accent) 60%,transparent);outline-offset:2px}

/* export menu price note */
.dlnote{font-size:11px;line-height:1.7;color:var(--dim);padding:7px 11px 8px;margin-bottom:4px;
  border-bottom:1px solid var(--line)}
.dlnote b{color:var(--brand-deep)}

/* sign-in dialog for paid exports */
.logindlg{border:1px solid var(--line2);border-radius:16px;padding:0;max-width:min(420px,calc(100vw - 24px));
  background:var(--surf);color:var(--txt);box-shadow:var(--shadow)}
.logindlg::backdrop{background:rgba(5,12,10,.45)}
.logindlg form{display:grid;gap:10px;padding:18px}
.logindlg b{font-size:15px}
.logindlg p{color:var(--dim);font-size:13px;line-height:1.9}
.logindlg__act{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-start}
.logindlg a.btn{text-decoration:none}

/* ── RTL / mobile: nothing may push the page wider than the viewport ────── */
html,body{max-width:100%;overflow-x:hidden}
.topbar,.sitebar,.sitebar__inner,.wrap,.stage,.panel,.partsbar,.statbar{min-width:0}
.topbar>*{min-width:0}
.ptable{overflow-x:auto;-webkit-overflow-scrolling:touch;max-width:100%}
.ptable table{min-width:0}
.ftr{flex-wrap:wrap;justify-content:center;text-align:center;padding-inline:10px}
@media (max-width:760px){
  .topbar{flex-wrap:wrap;row-gap:8px}
  .topbar .viewseg{order:3;flex:1 1 100%;justify-content:center}
  .topbar #btnWizard span{display:none}
  .topactions{flex-wrap:wrap;gap:6px;justify-content:flex-end;min-width:0;max-width:100%}
  .dlmenu{width:min(290px,calc(100vw - 24px))}
  .ftr .sepdot{display:none}
}
@media (max-width:420px){
  .topactions .btn.icononly{padding:7px 8px}
  .topactions #btnCompare,.topactions #btnLang{display:none}
}
