/* DG57 fixes the regressions seen in real screenshots: bottom navigation
   on every viewport and an immediately usable creation tool. */
body.dg57-ready .bottom-nav{
 position:fixed;top:auto;bottom:calc(9px + env(safe-area-inset-bottom,0px));
 left:50%;right:auto;transform:translateX(-50%);
 width:min(calc(100% - 18px),660px);max-width:660px;
 display:grid;grid-template-columns:repeat(5,minmax(0,1fr));
 margin:0;min-height:69px;padding:6px;
 border:1px solid #e9e1f8;border-radius:21px;
 z-index:105;background:#ffffffed;box-shadow:0 10px 35px #2b1f6130
}
body.dg57-ready .bottom-nav button,
body.dg57-ready .bottom-nav button[data-nav="create"]{
 width:auto;min-width:0;min-height:55px;flex:none;
 display:grid;justify-items:center;align-content:center;gap:3px;
 padding:4px 3px;font-size:11px;line-height:1.3
}
body.dg57-ready .bottom-nav button span{font-size:11px}
body.dg57-ready .bottom-nav button[data-nav="create"]::before{font-size:26px}
body.dg57-ready .app-shell{padding-bottom:calc(115px + env(safe-area-inset-bottom,0px))}
body.dg57-ready .dg55-create-option.dg57-selected{
 outline:3px solid #7d5be6;outline-offset:1px;
 border-color:#7354d9;box-shadow:0 5px 20px #6d4fc836
}
body.dg57-ready #dg57Workbench[hidden],body.dg57-ready #dg57Workbench [hidden]{display:none!important}
body.dg57-ready .dg57-workbench{
 scroll-margin-top:25px;max-width:750px;margin:12px auto 24px;
 background:#fff;border:1px solid #ddd3f5;border-radius:23px;
 box-shadow:0 9px 26px #33208013;padding:clamp(13px,3vw,23px);
 direction:rtl;color:#372c60
}
body.dg57-ready .dg57-workbench-top{display:flex;align-items:center;
 justify-content:space-between;gap:14px}
body.dg57-ready .dg57-workbench-top small{color:#7e65bb;font-size:11px;font-weight:800}
body.dg57-ready .dg57-workbench-top h2{font-size:22px;margin:4px 0;color:#412d8a}
body.dg57-ready .dg57-close{background:#f2effc;border:1px solid #e0d9f2;
 min-height:42px;padding:8px 16px;border-radius:12px;color:#563c9a;font-weight:800}
body.dg57-ready .dg57-privacy-note{margin:11px 0 17px;background:#f3f9f7;
 padding:11px 12px;border-radius:12px;line-height:1.85;color:#4a6a68;font-size:12px}
body.dg57-ready .dg57-guest-form{display:grid;gap:14px}
body.dg57-ready .dg57-form-grid{display:grid;grid-template-columns:2fr 1fr;gap:12px}
body.dg57-ready .dg57-field{display:grid;gap:6px;font-size:12px;
 font-weight:800;color:#5d4a84;min-width:0}
body.dg57-ready .dg57-field input:not([type=file]),
body.dg57-ready .dg57-field textarea,
body.dg57-ready .dg57-field select{display:block;min-width:0;width:100%;border:1px solid #d6c9f1;
 background:#fff;border-radius:13px;min-height:46px;padding:10px 12px;
 color:#302448;resize:vertical}
body.dg57-ready .dg57-field input[type=file]{width:100%;min-height:54px;
 padding:11px 12px;border:1px dashed #bfb0e9;border-radius:12px;background:#f8f5ff}
body.dg57-ready .dg57-field input:focus-visible,
body.dg57-ready .dg57-field textarea:focus-visible,
body.dg57-ready .dg57-field select:focus-visible,
body.dg57-ready .dg57-guest-form button:focus-visible{outline:3px solid #138d85;outline-offset:2px}
body.dg57-ready .dg57-preview{display:grid;place-items:center;
 min-height:142px;border-radius:15px;border:1px dashed #cbbcf0;
 background:linear-gradient(125deg,#f1eaff,#e9f9f6);
 color:#6b5a92;font-size:12px;text-align:center;overflow:hidden}
body.dg57-ready .dg57-preview img,
body.dg57-ready .dg57-preview video{max-height:360px;max-width:100%;
 width:auto;height:auto;object-fit:contain}
body.dg57-ready .dg57-drawing-board{display:grid;gap:9px}
body.dg57-ready #dg57Canvas{display:block;width:100%;height:auto;aspect-ratio:16/9;
 border:2px solid #bba8ed;border-radius:13px;touch-action:none;
 background:white;cursor:crosshair}
body.dg57-ready .dg57-minor-button{justify-self:start;min-height:40px;
 border-radius:11px;border:1px solid #d5c7f0;background:#f3eeff;
 color:#5741a1;padding:8px 15px}
body.dg57-ready .dg57-tool-actions{display:grid;grid-template-columns:1fr 1fr;gap:9px}
body.dg57-ready .dg57-tool-actions button{min-height:48px;border:1px solid #dfd5f3;
 background:#f3effe;color:#543d98;border-radius:13px;
 padding:10px;font-size:12px;font-weight:850}
body.dg57-ready .dg57-tool-actions .dg57-submit{grid-column:1/-1;
 background:linear-gradient(110deg,#7450d6,#469eb8);border:0;color:#fff;
 font-size:13px;min-height:52px}
body.dg57-ready .dg57-status{margin:0;padding:11px 13px;
 border-radius:12px;line-height:1.75;min-height:42px;
 color:#55418c;background:#f5f1ff;font-size:12px}
body.dg57-ready .dg57-status[data-error=true]{background:#fff0ee;color:#9a4039}
@media(max-width:460px){
 body.dg57-ready .bottom-nav{bottom:calc(6px + env(safe-area-inset-bottom,0px));
 width:calc(100% - 10px);padding:5px}
 body.dg57-ready .bottom-nav button{min-height:54px}
 body.dg57-ready .dg57-form-grid{grid-template-columns:1fr}
 body.dg57-ready .dg57-tool-actions{grid-template-columns:1fr}
 body.dg57-ready .dg57-tool-actions .dg57-submit{grid-column:1}
 body.dg57-ready .dg57-workbench-top h2{font-size:19px}
}
@media(prefers-reduced-motion:reduce){body.dg57-ready .dg57-workbench{scroll-behavior:auto}}

body.dg57-ready #dg57RouteStatus{margin:10px 1px 0;background:#ecf8f3;
 border:1px solid #c4e9da;padding:11px 13px;border-radius:12px;
 font-size:12px;font-weight:800;color:#337568;line-height:1.7}
body.dg57-ready #dg57RouteStatus[hidden]{display:none!important}
