#names-generator-open{display:block;width:100%;margin:0;float:none;flex:none;font-size:14px}
dialog.names-dialog{width:min(660px,calc(100vw - 24px));max-width:660px;padding:0;max-height:calc(100dvh - 32px);border:1px solid #3d5261;border-radius:14px;background:#15222c;color:#e5eef5;box-sizing:border-box;box-shadow:0 20px 70px #0008;overflow:auto}
.names-dialog::backdrop{background:#050d14b8}
.names-dialog .ng-header{position:sticky;top:0;z-index:2;background:inherit;display:flex;align-items:center;justify-content:space-between;padding:20px 24px;border-bottom:1px solid #354854}
.names-dialog h2{font-size:23px;margin:0 0 7px}.names-dialog h3{font-size:16px;margin:0}
.ng-powered{display:flex;align-items:center;gap:7px;font-size:12px;color:#a9bdcd}.ng-logo{display:inline-block;width:18px;height:18px;background:currentColor;mask:url('/openai.svg') center/contain no-repeat;-webkit-mask:url('/openai.svg') center/contain no-repeat}
.names-dialog .ng-close{width:36px;height:36px;padding:0;font-size:23px;line-height:1}
.ng-body{padding:18px 24px}.ng-context{margin:0 0 20px;color:#adbfce;font-size:13px}
.ng-body>label{display:block;font-weight:600;margin-bottom:8px}.names-dialog textarea{box-sizing:border-box;width:100%;resize:vertical;min-height:84px;max-height:180px;font:inherit;color:inherit;background:#101b24;border:1px solid #4d6474;border-radius:7px;padding:11px}
.ng-generate-row{display:flex;align-items:center;gap:16px;margin-top:12px}.ng-generate-row small{color:#a9bdcd;line-height:1.5;font-size:12px}.names-dialog button{white-space:nowrap}
.ng-message{font-size:13px;line-height:1.5;margin:12px 0 0}.ng-message:empty{display:none}.ng-waiting{color:#ffb54d}.ng-working,.ng-success{color:#79ddbc}
.ng-results-heading{display:flex;justify-content:space-between;align-items:center;margin:24px 0 10px}.ng-results-heading>span{font-size:12px;color:#a9bdcd}
.names-dialog .ng-select-all{display:grid;grid-template-columns:36px 1fr;align-items:center;gap:8px;margin:0 0 4px;font-size:13px;font-weight:500}
.ng-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px 20px}.ng-name-row{display:grid;grid-template-columns:36px minmax(0,1fr);gap:8px;align-items:center;min-width:0}
.names-dialog .ng-check-slot{display:flex;align-items:center;justify-content:center;margin:0;width:36px;min-width:0;min-height:36px;padding:0;flex:none}
.names-dialog input[type=checkbox]{appearance:auto;accent-color:#60cbaa;width:16px;height:16px;min-width:16px;margin:0;padding:0;flex:none}
.ng-name-row input[type=text]{box-sizing:border-box;width:100%;min-width:0;background:#101b24;color:inherit;border:1px solid #4d6474;border-radius:6px;height:39px;padding:8px 10px;font-size:14px}.ng-name-row input[aria-invalid=true]{border-color:#ffb54d}
.ng-pager{display:flex;align-items:center;justify-content:space-between;font-size:12px;margin-top:14px}.ng-pager button{padding:7px 12px;font-size:12px}
.ng-footer{position:sticky;bottom:0;display:flex;justify-content:space-between;gap:12px;padding:17px 24px;background:#15222c;border-top:1px solid #354854;z-index:2}
.names-dialog [hidden]{display:none!important}.names-dialog :focus-visible{outline:2px solid #86bfff;outline-offset:2px}
:root:not([data-theme="dark"]) dialog.names-dialog{background:#fff;color:#183748;border-color:#b5c9d2}
:root:not([data-theme="dark"]) .ng-footer{background:#fff;border-color:#d5e1e5}
:root:not([data-theme="dark"]) .ng-powered,:root:not([data-theme="dark"]) .ng-context,:root:not([data-theme="dark"]) .ng-results-heading>span,:root:not([data-theme="dark"]) .ng-generate-row small{color:#526c7a}
:root:not([data-theme="dark"]) .names-dialog textarea,:root:not([data-theme="dark"]) .ng-name-row input[type=text]{background:#f7fafb;color:#183748;border-color:#a0b6c2}
:root:not([data-theme="dark"]) .ng-waiting{color:#865400}:root:not([data-theme="dark"]) .ng-working,:root:not([data-theme="dark"]) .ng-success{color:#157151}
@media(max-width:600px){dialog.names-dialog{max-height:calc(100dvh - 20px);width:calc(100vw - 20px)}.names-dialog .ng-header{padding:16px}.ng-body{padding:16px}.ng-grid{grid-template-columns:1fr;gap:5px}.ng-name-row,.names-dialog .ng-select-all{grid-template-columns:44px minmax(0,1fr);gap:4px}.names-dialog .ng-check-slot{width:44px;min-height:44px}.ng-name-row input[type=text]{height:44px;font-size:16px}.ng-generate-row{align-items:flex-start;flex-direction:column;gap:9px}.ng-footer{padding:12px 16px;display:grid;grid-template-columns:1fr}.ng-footer #ng-use{grid-row:1}.ng-footer button{min-height:44px}.names-dialog h2{font-size:21px}}

/* Keep Clear beside regeneration while the primary Use action remains separate. */
.ng-footer-actions{display:flex;align-items:center;gap:10px;min-width:0}
.names-dialog .ng-footer-actions #ng-regenerate{white-space:normal;min-width:0}
.names-dialog #ng-clear{flex:none}
@media(max-width:600px){.ng-footer-actions{width:100%}.ng-footer-actions #ng-regenerate{flex:1}.ng-footer-actions #ng-clear{min-width:78px}}
