.dg-return-bar{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin:0 0 16px;font:16px/1.5 system-ui;color:var(--dg-ink,#193928)}.dg-return-bar button,.dg-tool-dialog button,.dg-tool-dialog a{box-sizing:border-box;min-height:44px;padding:9px 14px;border:1px solid #688c72;border-radius:11px;background:var(--dg-surface,var(--brand-card,#fff));color:inherit;font:600 16px/1.5 system-ui;cursor:pointer;text-decoration:none}.dg-return-bar button{display:inline-flex;align-items:center;gap:8px}.dg-return-bar button:disabled{opacity:.55;cursor:default}.dg-return-bar svg{width:20px;height:20px;flex:none}.dg-tool-dialog{box-sizing:border-box;width:min(1150px,calc(100vw - 32px));height:min(850px,calc(100dvh - 32px));max-width:none;max-height:none;padding:0;margin:auto;border:1px solid #6b8f73;border-radius:18px;background:var(--dg-surface,var(--brand-card,#fff));color:var(--dg-ink,#193928);overflow:hidden;font:16px/1.5 system-ui}.dg-tool-dialog[open]{display:flex;flex-direction:column}.dg-tool-dialog::backdrop{background:#071b14bb}.dg-tool-header{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;padding:12px 16px;border-bottom:1px solid #6b8f73;flex:none}.dg-tool-header h2{font-size:18px;font-weight:750;margin:0}.dg-tool-header button{background:#205d3c;color:white;border-color:#205d3c}.dg-tool-status{margin:0;padding:8px 16px;font-size:15px;line-height:1.6;flex:none}.dg-tool-status[hidden]{display:none}.dg-tool-frame{display:block;border:0;flex:1;min-height:0;width:100%;background:var(--dg-page,#f1f6ef)}.dg-tool-footer{display:flex;justify-content:space-between;gap:8px;align-items:center;flex-wrap:wrap;padding:8px 16px;border-top:1px solid #6b8f73;font-size:14px;flex:none}.dg-tool-footer a{font-size:14px;min-height:44px}.dg-tool-dialog :focus-visible,.dg-return-bar :focus-visible{outline:3px solid #c99425;outline-offset:2px}html.dg-tool-embedded #mobile-drawer,html.dg-tool-embedded .header-main,html.dg-tool-embedded footer,html.dg-tool-embedded .dg-quick-dock,html.dg-tool-embedded .dg-return-bar,html.dg-tool-embedded #mobile-overlay,html.dg-tool-embedded #um-overlay,html.dg-tool-embedded .dg-skip-link{display:none!important}html.dg-tool-embedded body{padding:0!important;margin:0!important;display:block!important}html.dg-tool-embedded #dg-main{margin:0!important;max-width:100%!important;padding:16px!important;box-sizing:border-box;width:100%!important}html.dg-tool-embedded{scroll-padding-top:0!important}@media(max-width:600px){.dg-tool-dialog{width:100%;height:100dvh;max-height:100dvh;margin:0;border:0;border-radius:0}.dg-tool-header{padding:10px 12px}.dg-tool-header h2{font-size:16px}.dg-tool-header button{width:100%}.dg-tool-footer{padding:8px 12px calc(8px + env(safe-area-inset-bottom,0px))}.dg-return-bar button{max-width:100%;text-align:left}.dg-tool-status{padding:6px 12px}}
/* Fallback height for older mobile browsers; dvh follows the visible viewport when supported. */
.dg-tool-dialog{height:calc(100vh - 32px);height:min(850px,calc(100dvh - 32px))}@media(max-width:600px){.dg-tool-dialog{height:100vh;height:100dvh}.dg-tool-header{padding-top:calc(10px + env(safe-area-inset-top,0px))}}

/* Outrank the desktop/Halloween shell; keep its sidebar out of the embedded tool. */
html.dg-tool-embedded body.dg-product-ui #mobile-drawer,html.dg-tool-embedded body.dg-product-ui .header-main,html.dg-tool-embedded body.dg-product-ui footer,html.dg-tool-embedded body.dg-product-ui .dg-quick-dock,html.dg-tool-embedded body.dg-product-ui #mobile-overlay,html.dg-tool-embedded body.dg-product-ui #um-overlay,html.dg-tool-embedded body.dg-product-ui .dg-return-bar{display:none!important}html.dg-tool-embedded body.dg-product-ui{padding:0!important;margin:0!important;--dg-side-width:0px;display:block!important}html.dg-tool-embedded body.dg-product-ui #dg-main{margin:0!important;max-width:100%!important;width:100%!important;padding:16px!important;box-sizing:border-box}
