/* Yamama in-app dialogs (d61993c4) */
.yodlg-wrap{position:fixed;inset:0;z-index:2147483000;display:flex;align-items:center;justify-content:center;padding:16px;background:rgba(27,25,48,.48);opacity:0;transition:opacity .15s ease;-webkit-tap-highlight-color:transparent;box-sizing:border-box}
.yodlg-wrap.on{opacity:1}
.yodlg-wrap *,.yodlg-wrap *::before,.yodlg-wrap *::after{box-sizing:border-box}
.yodlg{position:relative;width:100%;max-width:440px;max-height:calc(100vh - 32px);overflow:auto;background:#fff;color:#1b1930;border-radius:18px;padding:22px 22px 18px;box-shadow:0 24px 60px rgba(42,31,110,.28),0 2px 6px rgba(42,31,110,.12);font-family:Plex,"IBM Plex Sans Arabic",system-ui,-apple-system,"Segoe UI",sans-serif;font-size:15px;line-height:1.6;text-align:start;transform:translateY(8px) scale(.98);transition:transform .15s ease}
.yodlg-wrap.on .yodlg{transform:none}
.yodlg-x{position:absolute;top:12px;inset-inline-end:12px;width:36px;height:36px;display:inline-flex;align-items:center;justify-content:center;border:0;border-radius:10px;background:transparent;color:#5d5a78;cursor:pointer;padding:0}
.yodlg-x:hover{background:#efedfb;color:#2a1f6e}
.yodlg-head{display:flex;align-items:center;gap:12px;padding-inline-end:40px;margin:0 0 8px}
.yodlg-ic{flex:none;width:40px;height:40px;border-radius:12px;display:inline-flex;align-items:center;justify-content:center;background:#efedfb;color:#4b3fb0}
.yodlg.danger .yodlg-ic{background:#fdecec;color:#c62828}
.yodlg-t{margin:0;font-size:18px;font-weight:700;line-height:1.35;color:#2a1f6e;font-family:inherit}
.yodlg.danger .yodlg-t{color:#1b1930}
.yodlg-m{margin:0 0 16px;color:#3d3a58;overflow-wrap:anywhere;white-space:pre-line}
.yodlg-in{display:block;width:100%;min-height:46px;margin:0 0 18px;padding:10px 14px;border:1.5px solid #d9d5ee;border-radius:12px;background:#fff;color:#1b1930;font:inherit;font-size:16px;outline:none}
.yodlg-in:focus{border-color:#4b3fb0;box-shadow:0 0 0 3px rgba(75,63,176,.18)}
.yodlg-act{display:flex;flex-wrap:wrap;gap:10px;justify-content:flex-start}
.yodlg-b{min-height:44px;min-width:96px;padding:10px 20px;border-radius:12px;font:inherit;font-weight:700;font-size:15px;cursor:pointer;border:1.5px solid transparent;line-height:1.2}
.yodlg-ok{background:#4b3fb0;color:#fff}
.yodlg-ok:hover{background:#3d3299}
.yodlg-ok:disabled{opacity:.45;cursor:not-allowed}
.yodlg.danger .yodlg-ok{background:#c62828}
.yodlg.danger .yodlg-ok:hover{background:#a91f1f}
.yodlg-no{background:#fff;color:#2a1f6e;border-color:#d9d5ee}
.yodlg-no:hover{background:#efedfb}
.yodlg-b:focus-visible,.yodlg-x:focus-visible{outline:3px solid #8f84e8;outline-offset:2px}
@media (max-width:480px){.yodlg-wrap{align-items:flex-end;padding:0}.yodlg{max-width:none;border-radius:20px 20px 0 0;padding:22px 18px calc(18px + env(safe-area-inset-bottom,0px));max-height:90vh}.yodlg-act{flex-direction:column}.yodlg-b{width:100%}}
/* dark */
html.dark .yodlg,html[data-theme=dark] .yodlg,html.yo-dark .yodlg,body.dark .yodlg{background:#1f1c33;color:#eceaf7;box-shadow:0 24px 60px rgba(0,0,0,.55)}
html.dark .yodlg-t,html[data-theme=dark] .yodlg-t,html.yo-dark .yodlg-t,body.dark .yodlg-t{color:#f1efff}
html.dark .yodlg-m,html[data-theme=dark] .yodlg-m,html.yo-dark .yodlg-m,body.dark .yodlg-m{color:#c9c5e3}
html.dark .yodlg-ic,html[data-theme=dark] .yodlg-ic,html.yo-dark .yodlg-ic,body.dark .yodlg-ic{background:#2e2950;color:#b9b1ff}
html.dark .yodlg.danger .yodlg-ic,html[data-theme=dark] .yodlg.danger .yodlg-ic,html.yo-dark .yodlg.danger .yodlg-ic,body.dark .yodlg.danger .yodlg-ic{background:#45222a;color:#ff8a80}
html.dark .yodlg-x,html[data-theme=dark] .yodlg-x,html.yo-dark .yodlg-x,body.dark .yodlg-x{color:#b7b3d1}
html.dark .yodlg-x:hover,html[data-theme=dark] .yodlg-x:hover,html.yo-dark .yodlg-x:hover,body.dark .yodlg-x:hover{background:#2e2950;color:#fff}
html.dark .yodlg-in,html[data-theme=dark] .yodlg-in,html.yo-dark .yodlg-in,body.dark .yodlg-in{background:#15132a;color:#f1efff;border-color:#3d3866}
html.dark .yodlg-in:focus,html[data-theme=dark] .yodlg-in:focus,html.yo-dark .yodlg-in:focus,body.dark .yodlg-in:focus{border-color:#8f84e8;box-shadow:0 0 0 3px rgba(143,132,232,.25)}
html.dark .yodlg-ok,html[data-theme=dark] .yodlg-ok,html.yo-dark .yodlg-ok,body.dark .yodlg-ok{background:#6c5ce7}
html.dark .yodlg.danger .yodlg-ok,html[data-theme=dark] .yodlg.danger .yodlg-ok,html.yo-dark .yodlg.danger .yodlg-ok,body.dark .yodlg.danger .yodlg-ok{background:#d93636}
html.dark .yodlg-no,html[data-theme=dark] .yodlg-no,html.yo-dark .yodlg-no,body.dark .yodlg-no{background:transparent;color:#e3e0f7;border-color:#3d3866}
html.dark .yodlg-no:hover,html[data-theme=dark] .yodlg-no:hover,html.yo-dark .yodlg-no:hover,body.dark .yodlg-no:hover{background:#2e2950}
html.dark .yodlg-wrap,html[data-theme=dark] .yodlg-wrap,html.yo-dark .yodlg-wrap,body.dark .yodlg-wrap{background:rgba(5,4,14,.66)}
@media (prefers-color-scheme:dark){:root:not(.light):not([data-theme=light]) .yodlg{background:#1f1c33;color:#eceaf7}:root:not(.light):not([data-theme=light]) .yodlg-t{color:#f1efff}:root:not(.light):not([data-theme=light]) .yodlg-m{color:#c9c5e3}:root:not(.light):not([data-theme=light]) .yodlg-ic{background:#2e2950;color:#b9b1ff}:root:not(.light):not([data-theme=light]) .yodlg.danger .yodlg-ic{background:#45222a;color:#ff8a80}:root:not(.light):not([data-theme=light]) .yodlg-in{background:#15132a;color:#f1efff;border-color:#3d3866}:root:not(.light):not([data-theme=light]) .yodlg-no{background:transparent;color:#e3e0f7;border-color:#3d3866}:root:not(.light):not([data-theme=light]) .yodlg-ok{background:#6c5ce7}:root:not(.light):not([data-theme=light]) .yodlg.danger .yodlg-ok{background:#d93636}}
@media (prefers-reduced-motion:reduce){.yodlg-wrap,.yodlg{transition:none}}
/* EN only: "Start from a template" row fits 390px phones (Arabic layout untouched) */
html[lang^=en] .yt-start .yt-row{grid-template-columns:repeat(auto-fill,minmax(min(190px,100%),1fr))}
html[lang^=en] .yt-start .yt-row>.yt-chip{min-width:0}
@media (max-width:760px){html[lang^=en] .yt-start .yt-row{grid-template-columns:repeat(2,minmax(0,1fr))}html[lang^=en] .yt-start .yt-chip b{white-space:normal;text-overflow:clip;line-height:1.3}}
@media (max-width:360px){html[lang^=en] .yt-start .yt-row{grid-template-columns:minmax(0,1fr)}}
/* AR phones: header end (theme/search/bell/avatar) was pushed 22px past the left edge at 390px because the full wordmark did not shrink; mirror the EN short wordmark rule (y365.css line 262) */
@media (max-width:420px){html[lang=ar] .y-top .y-logo b{font-size:0}html[lang=ar] .y-top .y-logo b::before{content:"سوبر أوفيس";font-size:15px}}
/* w22 (6e8f3787): storage plan line readable in dark mode (inline #5b5680 was 2.79:1 on the dark page) */
html.dark #yd-plan,html[data-theme="dark"] #yd-plan{color:#b3aecb!important}
html.dark #yd-plan a,html[data-theme="dark"] #yd-plan a{color:#c9bcff}
