/* Explicit viewport positioning overrides legacy dialog reset rules. */
html body #pg128-tools-dialog{
 position:fixed!important;inset:0!important;margin:auto!important;transform:none!important;
 box-sizing:border-box!important;width:min(620px,calc(100vw - 28px))!important;
 max-width:calc(100vw - 28px)!important;height:fit-content!important;
 max-height:calc(100dvh - 32px)!important;overflow:auto!important;
 padding:0!important;border:1px solid var(--ui-line,#dce5f0)!important;
 border-radius:22px!important;background:var(--ui-panel,#fff)!important;
 color:var(--ui-text,#17243a)!important;box-shadow:0 26px 90px #061a3540!important;
 font-family:Outfit,system-ui,sans-serif!important;text-align:start!important;
}
html body #pg128-tools-dialog::backdrop{background:#06152d80;backdrop-filter:blur(4px)}
html body #pg128-tools-dialog>header{
 display:flex!important;align-items:center!important;justify-content:space-between!important;
 gap:14px!important;margin:0!important;padding:22px 24px!important;
 border-bottom:1px solid var(--ui-line,#dce5f0)!important;background:var(--ui-panel,#fff)!important;
}
html body #pg128-tools-dialog>header h2{display:flex;align-items:center;gap:12px;font:750 23px/1.25 Outfit,system-ui;margin:0}
html body #pg128-tools-dialog>header h2:before{
 content:"";width:38px;height:38px;flex:none;background:#337dff;border-radius:12px;
 mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8'%3E%3Crect x='3' y='7' width='18' height='14' rx='3'/%3E%3Cpath d='M8 7V3h8v4M3 12h18M10 12v3h4v-3'/%3E%3C/svg%3E") center/25px no-repeat;
}
html body #pg128-tools-dialog>header button{
 display:flex!important;align-items:center;justify-content:center;width:36px;height:36px;
 padding:0!important;border:1px solid var(--ui-line)!important;border-radius:11px!important;
 background:var(--ui-panel2,#f2f6fc)!important;color:var(--ui-muted,#53637b)!important;
 font:22px/1 system-ui!important;cursor:pointer;
}
html body #pg128-tools-dialog .pg128-tools-content{padding:20px 24px 22px!important;min-width:0}
html body #pg128-tools-dialog #pg103-tools-title{display:none!important}
html body #pg128-tools-dialog #pg103-tool-section{display:flex!important;flex-direction:column!important;gap:14px!important;width:100%!important;max-width:none!important;margin:0!important}
html body #pg128-tools-dialog .pg103-tool-items{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:12px!important}
html body #pg128-tools-dialog :is(#pg97-launch,#pg102-entry,#pg105-setup){
 position:relative!important;display:flex!important;align-items:center!important;
 justify-content:flex-start!important;gap:12px!important;box-sizing:border-box!important;
 width:100%!important;min-width:0!important;max-width:none!important;min-height:88px!important;
 margin:0!important;padding:18px 16px!important;text-align:start!important;
 border:1px solid var(--ui-line,#dce5f0)!important;border-radius:15px!important;
 background:var(--ui-panel2,#f4f7fd)!important;background-image:none!important;
 color:var(--ui-text,#17243a)!important;box-shadow:none!important;
 font:650 14px/1.45 Outfit,system-ui!important;white-space:normal!important;
 cursor:pointer;overflow-wrap:anywhere;
}
html body #pg128-tools-dialog :is(#pg97-launch,#pg102-entry,#pg105-setup):hover{border-color:#337dff!important;background:color-mix(in srgb,#337dff 7%,var(--ui-panel))!important}
html body #pg128-tools-dialog :is(#pg97-launch,#pg102-entry)>svg{display:block!important;flex:none!important;width:25px!important;height:25px!important;color:#337dff!important}
html body #pg128-tools-dialog #pg97-launch:before,html body #pg128-tools-dialog #pg105-setup:before{
 content:"";display:block!important;width:28px;height:28px;flex:none;background:#337dff;
 mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8'%3E%3Cpath d='M4 6h16M4 12h16M4 18h16'/%3E%3Ccircle cx='8' cy='6' r='2' fill='white'/%3E%3Ccircle cx='16' cy='12' r='2' fill='white'/%3E%3Ccircle cx='10' cy='18' r='2' fill='white'/%3E%3C/svg%3E") center/contain no-repeat;
}
html body #pg128-tools-dialog #pg97-launch>svg{display:none!important}
html body #pg128-tools-dialog #pg105-setup:before{mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8'%3E%3Cpath d='m3 6 2 2 4-4M12 6h9M3 13h6M12 13h9M3 20h6M12 20h9'/%3E%3C/svg%3E") center/contain no-repeat}
html body #pg128-tools-dialog #pg105-autosave-bar{
 display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;align-items:center!important;
 gap:10px 14px!important;order:3;margin:0!important;padding:17px!important;
 border:1px solid var(--ui-line)!important;border-radius:15px!important;background:var(--ui-panel2)!important;
}
html body #pg128-tools-dialog #pg105-autosave-bar label{display:flex!important;align-items:center!important;gap:12px!important;min-width:0;margin:0!important;font:600 13px/1.5 Outfit,system-ui;color:var(--ui-text)}
html body #pg128-tools-dialog #pg105-autosave-bar input[type=checkbox]{
 appearance:none!important;-webkit-appearance:none!important;flex:none;width:38px!important;height:23px!important;
 min-height:23px!important;margin:0!important;border:1px solid var(--ui-line)!important;border-radius:99px!important;
 background:radial-gradient(circle at 11px 50%,white 0 7px,transparent 8px),#a8b7cb!important;cursor:pointer;
}
html body #pg128-tools-dialog #pg105-autosave-bar input:checked{background:radial-gradient(circle at 26px 50%,white 0 7px,transparent 8px),#337dff!important}
html body #pg128-tools-dialog #pg105-autosave-bar p{margin:0!important;padding:4px 9px!important;border-radius:20px;background:var(--ui-panel);color:var(--ui-muted);font:500 11px/1.4 Outfit,system-ui;overflow-wrap:anywhere}
html body #pg128-tools-dialog #pg105-autosave-bar button{grid-column:1/-1;justify-self:start;padding:0!important;border:0!important;background:transparent!important;color:#337dff!important;font:600 12px Outfit,system-ui!important;text-decoration:none!important;cursor:pointer}
html body #pg128-tools-dialog>.pg129-tools-footer{display:flex!important;justify-content:flex-end;gap:12px;padding:16px 24px!important;border-top:1px solid var(--ui-line);background:var(--ui-panel)}
html body #pg128-tools-dialog>.pg129-tools-footer button{padding:11px 18px;border:0;border-radius:11px;background:#2463eb;color:white;font:600 13px Outfit,system-ui;cursor:pointer}
html body #pg128-tools-dialog :is(button,input):focus-visible{outline:3px solid #6ba3ff!important;outline-offset:3px}
html body #pg128-tools-dialog [hidden]{display:none!important}
@media(max-width:480px){
 html body #pg128-tools-dialog{border-radius:18px!important}
 html body #pg128-tools-dialog>header{padding:16px!important}
 html body #pg128-tools-dialog .pg128-tools-content{padding:16px!important}
 html body #pg128-tools-dialog .pg103-tool-items{grid-template-columns:1fr!important}
 html body #pg128-tools-dialog :is(#pg97-launch,#pg102-entry,#pg105-setup){min-height:70px!important;padding:14px!important}
 html body #pg128-tools-dialog>.pg129-tools-footer{padding:14px 16px!important}
 html body #pg128-tools-dialog #pg105-autosave-bar{grid-template-columns:minmax(0,1fr)!important}
 html body #pg128-tools-dialog #pg105-autosave-bar p{justify-self:start}
}
html body #pg128-tools-dialog :is(#pg97-launch,#pg102-entry,#pg105-setup,#pg105-autosave-bar)[hidden]{display:none!important}
html body #pg128-tools-dialog #pg103-tool-section :is(#pg97-launch,#pg102-entry,#pg105-setup){background:var(--ui-panel2,#f4f7fd)!important;background-image:none!important;color:var(--ui-text,#17243a)!important;box-shadow:none!important}
html body #pg128-tools-dialog #pg103-tool-section #pg97-launch:before{content:""!important;background:#337dff!important;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8'%3E%3Cpath d='M4 6h16M4 12h16M4 18h16'/%3E%3Ccircle cx='8' cy='6' r='2' fill='white'/%3E%3Ccircle cx='16' cy='12' r='2' fill='white'/%3E%3Ccircle cx='10' cy='18' r='2' fill='white'/%3E%3C/svg%3E") center/contain no-repeat!important}
