/* Every app modal uses the full mobile viewport, including nested date pickers. */
.app-confirm{box-sizing:border-box;width:min(540px,calc(100vw - 36px));max-height:90dvh;overflow:auto;padding:28px;border:1px solid #d8d8ce;border-radius:22px;background:#fffdf8;color:#273125;font:15px/2 IRANSans,Arial,sans-serif}.app-confirm::backdrop{background:#1118;backdrop-filter:blur(5px)}.app-confirm h2{font-size:23px;margin:0 0 16px}.app-confirm p{line-height:2}.app-confirm-actions{display:flex;gap:12px;justify-content:flex-end;margin-top:28px}.app-confirm button{font:700 14px/1.8 IRANSans,Arial,sans-serif;min-height:48px;border:1px solid #c5c6bb;border-radius:14px;background:transparent;color:inherit;padding:11px 22px;cursor:pointer}.app-confirm [data-confirm]{background:#344532;color:#fffdf8;border-color:#344532}html[data-brand=taherizadeh] .app-confirm{background:#fffcf8;color:#344c43}html[data-brand=taherizadeh] .app-confirm [data-confirm]{background:#956052;border-color:#956052}html[data-theme=night] .app-confirm{background:#1d1d1d;color:#f4f0e8;border-color:#414141}html[data-theme=night] .app-confirm button{border-color:#555}html[data-theme=night] .app-confirm [data-confirm]{background:#bc9e68;border-color:#bc9e68;color:#191919}html[data-brand=taherizadeh][data-theme=night] .app-confirm [data-confirm]{background:#d99a86;border-color:#d99a86}
@media screen and (max-width:800px){html body dialog[open]{position:fixed!important;inset:0!important;box-sizing:border-box!important;margin:0!important;width:100%!important;min-width:0!important;max-width:none!important;height:100vh!important;height:100dvh!important;min-height:0!important;max-height:none!important;border:0!important;border-radius:0!important;overflow:auto!important;overscroll-behavior:contain;scroll-padding-block:24px;padding:max(22px,env(safe-area-inset-top)) max(20px,env(safe-area-inset-right)) max(24px,env(safe-area-inset-bottom)) max(20px,env(safe-area-inset-left))!important;}body:has(dialog[open]){overflow:hidden}html body dialog input:not([type=checkbox]):not([type=radio]):not([type=range]),html body dialog select,html body dialog textarea{font-size:16px!important}html body dialog .cm-actions,html body dialog .wb-actions,html body dialog .app-confirm-actions{padding-block:12px;margin-top:24px;gap:12px}html body dialog .jalali-wheels{margin-top:clamp(24px,8vh,70px)}html body dialog .jalali-confirm{margin-top:30px}html body dialog .a-modal-header,html body dialog .wb-section-head,html body dialog .cm-heading,html body dialog .jalali-head{gap:16px;flex-wrap:nowrap;align-items:flex-start}html body dialog .a-modal-header h2,html body dialog .wb-section-head h2,html body dialog .cm-heading h2{font-size:22px;line-height:1.8;margin:0;flex:1}html body dialog button[aria-label="بستن"],html body dialog button[aria-label="Close"]{flex-shrink:0;min-width:42px;min-height:42px}}

@media screen and (max-width:800px){html body dialog.app-confirm[open]{display:flex;flex-direction:column}html body dialog.app-confirm .app-confirm-actions{margin-top:auto!important}html body dialog p:not(.wb-score),html body dialog label,html body dialog legend{font-size:15px!important;line-height:2!important}.chat-footnote{font-size:12px!important;line-height:1.9!important}.a-modal-body>p{font-size:15px!important}}

@media screen and (max-width:800px){html body dialog.jalali-picker[open]{display:flex;flex-direction:column}html body dialog.jalali-picker .jalali-confirm{margin-top:auto!important;width:100%!important}html body dialog.jalali-picker .jalali-wheels{flex-shrink:0}html body dialog.jalali-picker .jalali-selected{padding-block:18px}}

/* Centre the vector in the circle; font ascenders and baselines no longer affect it. */
html body button[data-ui-close],html body button[aria-label^="بستن"],html body button[aria-label^="Close"]{box-sizing:border-box;align-items:center!important;justify-content:center!important;padding:0!important;line-height:0!important;flex-shrink:0}html body button[data-ui-close]{width:42px;height:42px;min-width:42px;min-height:42px;border-radius:50%}html body button[data-ui-close] .ui-close-glyph{box-sizing:content-box;display:block!important;position:static!important;transform:none!important;margin:0!important;width:18px!important;height:18px!important;max-width:none;fill:none!important;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;pointer-events:none}html body button[aria-label^="بستن"]>svg,html body button[aria-label^="Close"]>svg{display:block;margin:0;flex-shrink:0}

html body dialog button[data-ui-close],html body dialog button[aria-label^="بستن"],html body dialog button[aria-label^="Close"],html body button[data-ui-close]:not(.portal-close):not(.history-close):not(.mobile-close):not(.close-menu):not([hidden]){display:inline-flex!important}

/* Solid dialog surfaces in every viewport; underlying page content stays outside the window. */
html body dialog[open]{background:#fffdf8!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important;opacity:1!important}
html[data-theme=night] body dialog[open]{background:#1d1d1d!important}
