.pg-schema-dialog{width:min(680px,calc(100vw - 24px));max-width:calc(100vw - 24px);box-sizing:border-box;max-height:calc(100dvh - 32px);overflow:auto;padding:22px}
.pg-schema-dialog form{display:grid;gap:16px;min-width:0}.pg-schema-dialog header p{overflow-wrap:anywhere;color:var(--muted,#94a3b8)}
.pg-schema-dialog label{display:grid;gap:7px;min-width:0}.pg-schema-dialog input:not([type=checkbox]),.pg-schema-dialog select{width:100%;min-width:0;box-sizing:border-box;background:var(--panel,#1e293b);color:var(--text,#e2e8f0);border:1px solid var(--border,#334155);border-radius:8px;padding:11px}
.pg-schema-dialog .pg-schema-check{display:flex;align-items:center;gap:9px}.pg-schema-fields{display:grid;gap:14px;min-width:0}.pg-schema-dialog fieldset{border:1px solid var(--border,#334155);border-radius:9px;display:grid;gap:10px;padding:14px;min-width:0}.pg-schema-dialog small{color:var(--muted,#94a3b8);overflow-wrap:anywhere}
.pg-schema-dialog legend,.pg-schema-dialog p{overflow-wrap:anywhere}.pg-schema-dialog footer{display:flex;justify-content:flex-end;flex-wrap:wrap;gap:10px;position:sticky;bottom:-22px;background:var(--panel,#141e30);padding:14px 0;margin-top:6px}.pg-schema-preview pre{white-space:pre-wrap;overflow-wrap:anywhere;max-height:240px;overflow:auto}.pg-schema-warning{font-size:.9rem;line-height:1.6;color:var(--text,#e2e8f0)}.pg-schema-pairs{display:grid;gap:12px}.pg-schema-pair{display:grid;grid-template-columns:1fr 1fr auto;gap:8px;align-items:end}.pg-schema-preview{min-width:0;display:grid;gap:10px}
@media(max-width:600px){.pg-schema-dialog{padding:16px}.pg-schema-pair{grid-template-columns:1fr}.pg-schema-dialog footer{bottom:-16px}.pg-schema-dialog footer button{flex:1}.pg-schema-dialog .pg-schema-check{align-items:flex-start;flex-wrap:wrap}}.pg-schema-dialog label{margin:0}.pg-schema-dialog .pg-schema-check{display:grid;grid-template-columns:16px minmax(0,1fr);align-items:start;gap:9px}.pg-schema-dialog input[type=checkbox]{width:16px;height:16px;flex:0 0 16px;margin:2px 0 0;align-self:start}.pg-schema-dialog .pg-schema-check small{grid-column:2}
.ma-schema-dialog header{display:block;min-width:0}.ma-schema-dialog header h2,.ma-schema-dialog header p{max-width:100%;overflow-wrap:anywhere}.ma-schema-dialog header p{margin:6px 0 0}
