.tool-dialog{border:1px solid var(--color-border-strong);background:var(--color-surface);width:min(940px,100vw - 32px);max-height:calc(100dvh - 32px);color:var(--color-text-primary);border-radius:16px;margin:auto;padding:0;box-shadow:0 24px 80px #0005}.tool-dialog::backdrop{background:#101b1680}.tool-dialog__surface{flex-direction:column;max-height:calc(100dvh - 36px);display:flex}.tool-dialog__header{background:var(--color-surface);border-bottom:1px solid var(--color-border);justify-content:space-between;align-items:center;gap:16px;padding:12px 20px;display:flex;position:sticky;top:0}.tool-dialog__header h2{margin:0;font-size:18px}.tool-dialog__header button{width:44px;height:44px;font-size:24px!important}.tool-dialog__body{padding:20px;overflow:auto}.tool-dialog__body textarea{width:100%;min-height:120px;font:inherit;color:inherit;background:var(--color-background);border:1px solid var(--color-border-strong);resize:vertical;border-radius:8px;margin-bottom:12px;padding:12px}.tool-dialog__body img{width:100%;height:auto;margin-top:16px;display:block}.tool-dialog__actions{flex-wrap:wrap;gap:8px;display:flex}.editor-new-work-dialog{width:min(480px,100vw - 32px);max-width:calc(100vw - 32px)}.editor-new-work-dialog p{color:var(--color-text-secondary);margin:0 0 12px;font-size:14px;line-height:1.6}.editor-new-work-dialog .tool-dialog__actions{justify-content:flex-end;margin-top:20px}
