.welcome-popup{width:min(1280px,calc(100vw - 40px));max-width:none;max-height:calc(100dvh - 24px);padding:0;border:1px solid #ead5df;border-radius:18px;background:#fff;color:#362c34;box-shadow:0 20px 80px #0005;overflow:auto}.welcome-popup::backdrop{background:#21121bd9}.welcome-popup-top{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:10px 16px;border-bottom:1px solid #eee;font-size:14px;color:#781c35}.welcome-popup-top button{width:44px;height:44px;font-size:28px;border:0;border-radius:10px;background:#faedf2;color:#781c35}.welcome-popup-stage figure{margin:0}.welcome-popup-stage figure[hidden]{display:none}.welcome-popup-stage img{display:block;width:100%;height:auto;max-height:calc(100dvh - 165px);object-fit:contain;background:#f7f3f5}.welcome-popup-stage figcaption{text-align:center;font-size:16px;padding:10px 16px;margin:0;overflow-wrap:anywhere}.welcome-popup-controls{display:flex;justify-content:center;align-items:center;gap:12px;padding:12px 16px;flex-wrap:wrap}.welcome-popup-controls>button{min-height:44px;min-width:44px;border:1px solid #e8d1dc;border-radius:9px;color:#781c35;background:#fff}.welcome-popup-controls>.button{background:#881f41;color:#fff;padding:8px 18px}.welcome-popup button:focus-visible{outline:3px solid #b28031;outline-offset:3px}.welcome-popup-edit-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;margin:22px 0}.welcome-popup-edit-card{padding:16px;border:1px solid #ead5df;border-radius:14px;background:#fff;min-width:0}.welcome-popup-edit-card>img{display:block;width:100%;height:180px;object-fit:contain;background:#f7f3f5;border-radius:10px;margin-bottom:14px}.welcome-popup-edit-card input{width:100%}.welcome-popup-edit-card input[type=checkbox]{width:auto}@media(max-width:900px){.welcome-popup-edit-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:600px){.welcome-popup{width:calc(100vw - 20px);max-height:calc(100dvh - 20px);border-radius:12px}.welcome-popup-edit-grid{grid-template-columns:1fr}.welcome-popup-stage img{max-height:calc(100dvh - 180px)}}
/* Override the older shared dialog width and padding when this popup is open. */
dialog#welcomePopup[open]{width:min(1600px,calc(100vw - 24px));max-width:none;max-height:calc(100dvh - 20px);margin:auto;padding:0;border:0;border-radius:12px;overflow:auto}
#welcomePopup .welcome-popup-top{padding:5px 10px;min-height:48px}
#welcomePopup .welcome-popup-top button{width:40px;height:40px}
#welcomePopup .welcome-popup-stage{padding:0;margin:0}
#welcomePopup .welcome-popup-stage figure{padding:0;margin:0}
#welcomePopup .welcome-popup-stage img{width:100%;height:auto;max-height:calc(100dvh - 140px);object-fit:contain;background:#fff}
#welcomePopup .welcome-popup-stage figcaption{padding:6px 12px;font-size:14px}
#welcomePopup .welcome-popup-controls{padding:7px 10px;gap:10px}
@media(max-width:600px){dialog#welcomePopup[open]{width:calc(100vw - 12px);max-height:calc(100dvh - 12px);border-radius:9px}#welcomePopup .welcome-popup-top{font-size:12px}#welcomePopup .welcome-popup-stage img{max-height:calc(100dvh - 155px)}}

.welcome-popup-settings{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;padding:18px;margin:16px 0;background:#fcf7f9;border:1px solid #ead5df;border-radius:12px}.welcome-popup-settings input,.welcome-popup-settings select{width:100%}#welcomePopup .welcome-popup-stage{overflow:hidden}@media(max-width:600px){.welcome-popup-settings{grid-template-columns:1fr;padding:14px}}
