.ux-modal[hidden]{display:none}.ux-modal{position:fixed;inset:0;z-index:250;display:grid;place-items:center;padding:16px;background:rgba(13,31,48,.58)}
.ux-dialog{width:min(560px,100%);max-height:min(720px,calc(100vh - 32px));overflow:auto;background:#fff;color:var(--text,#17212b);border:1px solid var(--line,#dce4eb);border-radius:20px;box-shadow:0 24px 70px rgba(10,35,58,.28)}
.ux-dialog-head{position:sticky;top:0;z-index:1;display:flex;align-items:center;justify-content:space-between;gap:16px;padding:18px 20px 12px;background:#fff;border-bottom:1px solid var(--line,#dce4eb)}
.ux-dialog-head h2{margin:0;font-size:1.25rem}.ux-close{border:0;background:#eef4f8;color:#123f68;border-radius:50%;width:38px;height:38px;font-size:1.3rem;cursor:pointer}
.ux-body{padding:20px}.ux-body p{line-height:1.6}.ux-kicker{font-size:.8rem;font-weight:800;color:#0d5b9b;text-transform:uppercase;letter-spacing:.04em}.ux-step-dots{display:flex;gap:6px;margin:18px 0}.ux-step-dots span{width:28px;height:5px;border-radius:9px;background:#dce6ee}.ux-step-dots .on{background:#0d5b9b}
.ux-actions{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:10px;margin-top:20px}.ux-btn{min-height:42px;padding:10px 16px;border:1px solid #0d5b9b;border-radius:10px;background:#0d5b9b;color:#fff;font:inherit;font-weight:750;cursor:pointer}.ux-btn.secondary{background:#fff;color:#0d5b9b}.ux-btn.ghost{border-color:transparent;background:transparent;color:#52677a}
.ux-trust-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:14px 0}.ux-trust-item{padding:12px;border-radius:12px;background:#f5f8fb}.ux-trust-item strong,.ux-trust-item span{display:block}.ux-trust-item span{margin-top:4px;color:#52677a;font-size:.9rem}.ux-note{padding:12px 14px;border-left:4px solid #0d5b9b;border-radius:8px;background:#eef6fc}
.ux-report-context{display:grid;gap:7px;padding:13px;border-radius:12px;background:#f5f8fb;font-size:.9rem}.ux-report-context div{overflow-wrap:anywhere}.ux-field{display:grid;gap:7px;margin-top:16px;font-weight:700}.ux-field textarea{min-height:125px;resize:vertical;padding:12px;border:1px solid #b8c8d6;border-radius:10px;font:inherit;font-weight:400}.ux-feedback{min-height:1.4em;margin:10px 0 0;color:#167149;font-weight:700}
.ux-report-trigger{display:inline-flex;align-items:center;gap:6px;margin-top:14px;padding:7px 10px;border:1px solid #c9d7e2;border-radius:9px;background:#fff;color:#40586c;font:inherit;font-size:.86rem;font-weight:700;cursor:pointer}.ux-report-trigger:hover{border-color:#0d5b9b;color:#0d5b9b}
.ux-footer-meta{display:flex;flex-wrap:wrap;align-items:center;gap:7px;margin-top:7px;font-size:.78rem}.ux-footer-meta button{padding:0;border:0;background:transparent;color:#0d5b9b;font:inherit;font-weight:750;text-decoration:underline;cursor:pointer}.ux-footer-meta span{color:#738392}
.ux-save-status{display:flex;align-items:center;gap:7px;margin:12px 0 0;color:#52677a;font-size:.88rem}.ux-save-status.saved{color:#167149;font-weight:700}
body.ux-modal-open{overflow:hidden}
@media(max-width:520px){.ux-dialog{max-height:calc(100vh - 20px);border-radius:16px}.ux-modal{padding:10px}.ux-body{padding:16px}.ux-dialog-head{padding:14px 16px 10px}.ux-trust-grid{grid-template-columns:1fr}.ux-actions{align-items:stretch;flex-direction:column-reverse}.ux-btn{width:100%}.ux-report-trigger{max-width:100%}}
@media(prefers-reduced-motion:no-preference){.ux-dialog{animation:ux-in .2s ease-out}@keyframes ux-in{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}}
