.metadata-dialog{box-sizing:border-box;width:min(440px,calc(100vw - 32px));max-height:calc(100dvh - 32px);overflow:auto;padding:24px;border:1px solid #dce5f3;border-radius:16px;background:#fff;color:#122344;box-shadow:0 20px 70px #0005}
.metadata-dialog::backdrop{background:#06162999}
.metadata-dialog h2{font-size:22px;margin:0 0 22px}
.metadata-dialog label{display:block;font-size:14px;font-weight:600;margin:16px 0 7px}
.metadata-dialog label span{font-weight:400;color:#62718a}
.metadata-dialog input,.metadata-dialog select{box-sizing:border-box;width:100%;padding:12px;border:1px solid #b8c9e2;border-radius:8px;font:inherit;font-size:16px;background:#fff;color:#122344}
.metadata-dialog input:focus,.metadata-dialog select:focus{outline:2px solid #286fe8;outline-offset:2px}
.metadata-error{color:#a92335;font-size:14px;line-height:1.4;min-height:1.4em}
.metadata-actions{display:flex;justify-content:flex-end;flex-wrap:wrap;gap:10px;margin-top:18px}
.metadata-actions button{padding:11px 16px;border:1px solid #c3d1e5;border-radius:8px;background:#f4f7fb;color:#183559;font:inherit;cursor:pointer}
.metadata-actions #saveMetadata{background:#1767eb;border-color:#1767eb;color:#fff}
.metadata-dialog :disabled{opacity:.6;cursor:wait}
