.xdl-dialog{width:min(620px,calc(100vw - 28px));max-height:85dvh;overflow:auto;padding:24px;border:1px solid var(--line,#dce3ed);border-radius:18px;background:var(--panel,#f8faff);color:var(--text,#24344d);font-family:inherit;font-size:14px;line-height:1.65;box-shadow:0 20px 70px #0004}.xdl-dialog::backdrop{background:#0006;backdrop-filter:blur(3px)}.xdl-dialog h2{font-size:21px;margin:0 30px 8px 0}.xdl-dialog p{font-size:12px;color:var(--muted,#68788e)}.xdl-close{position:absolute;right:14px;top:12px;border:0;background:none;color:inherit;font-size:25px}.xdl-toolbar{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.xdl-dialog button,.xdl-chip{border:1px solid var(--line,#c9d7e8);border-radius:8px;padding:7px 11px;background:color-mix(in srgb,var(--accent,#5c8ff0) 8%,transparent);color:inherit;font:inherit;cursor:pointer}.xdl-dialog button:disabled{opacity:.5;cursor:wait}.xdl-list{max-height:260px;overflow:auto}.xdl-list label{display:flex;gap:9px;padding:9px 0;border-bottom:1px solid var(--line,#dce3ed)}.xdl-list input{flex:none;align-self:flex-start;margin-top:5px}.xdl-list span{min-width:0;overflow-wrap:anywhere}.xdl-list small{display:block;font-size:11px;color:var(--muted,#68788e)}.xdl-dialog textarea{width:100%;box-sizing:border-box;min-height:84px;border-radius:8px;border:1px solid var(--line,#dce3ed);padding:9px;background:var(--bg,#fff);color:inherit;font:inherit}.xdl-status{white-space:pre-wrap;max-height:150px;overflow:auto}.xdl-remove{font-size:12px!important;background:transparent!important;color:var(--muted,#68788e)!important}.xdl-chip{font-size:12px;padding:4px 9px;margin:4px 0}.xdl-sources{margin-top:12px;font-size:12px;color:var(--muted,#68788e);line-height:1.65}.xdl-sources summary{cursor:pointer}.xdl-sources>details{margin:8px 0 0 12px}.xdl-sources p{white-space:pre-wrap;max-height:230px;overflow:auto;background:var(--panel,#eef3fa);padding:10px;border-radius:8px;color:var(--text,#24344d)}

.xdl-dialog>small{display:block;margin-top:8px}.xdl-dialog details{margin-top:12px}.xdl-dialog summary{cursor:pointer}.xdl-dialog{box-sizing:border-box}

/* Match the shared cloud window chrome; keep help folded by default. */
html body dialog.xdl-dialog{width:min(560px,calc(100vw - 28px));padding:0;max-height:85dvh;border-radius:16px;font-size:13px;line-height:1.6}
html body dialog.xdl-dialog>header{display:flex;align-items:center;justify-content:space-between;gap:12px;box-sizing:border-box;height:var(--studio-window-header-height,44px);min-height:var(--studio-window-header-height,44px);padding:0 18px;border-bottom:1px solid var(--line,#dce3ed)}
html body dialog.xdl-dialog>header h2{font:var(--studio-window-title-weight,600) var(--studio-window-title-size,13px)/1.5 system-ui,sans-serif!important;margin:0!important;letter-spacing:0}
html body dialog.xdl-dialog .xdl-close{position:static;display:grid;place-items:center;width:28px;min-width:28px;height:28px;min-height:28px;padding:0;font-size:18px;line-height:1;background:color-mix(in srgb,var(--text,#24344d) 7%,transparent)}
.xdl-body{padding:16px 18px 18px}.xdl-body .xdl-intro{margin:0 0 14px;font-size:13px}.xdl-body .xdl-toolbar{gap:8px}.xdl-body button{min-height:34px;font-size:13px;padding:6px 12px}.xdl-body .xdl-primary{background:color-mix(in srgb,var(--accent,#5c8ff0) 15%,transparent);border-color:color-mix(in srgb,var(--accent,#5c8ff0) 45%,var(--line,#dce3ed))}.xdl-body button:hover{filter:brightness(1.12)}.xdl-body .xdl-status{margin:8px 0 14px;font-size:12px}.xdl-enabled{display:flex;gap:8px;align-items:center;margin:10px 0}.xdl-body .xdl-list:empty{display:none}.xdl-body .xdl-list{max-height:220px}.xdl-body details{border-top:1px solid var(--line,#dce3ed);margin-top:12px;padding-top:12px}.xdl-body summary{font-size:13px}.xdl-body summary span{margin-left:8px;color:var(--muted,#68788e);font-size:11px}.xdl-body textarea{margin:10px 0 8px;min-height:76px;resize:vertical}.xdl-body small{display:block;margin-top:6px;color:var(--muted,#68788e)}.xdl-help{color:var(--muted,#68788e)}.xdl-help p{margin:8px 0;font-size:12px}.xdl-dialog :focus-visible{outline:2px solid var(--accent,#5c8ff0);outline-offset:2px}
