.nd-panel{display:grid;gap:1rem;min-width:0;color:var(--ink,#143d4c)}
.nd-panel p{margin:.3rem 0;overflow-wrap:anywhere}.nd-panel label{display:grid;gap:.4rem;min-width:0}
.nd-panel input,.nd-panel select{width:100%;max-width:100%;min-width:0;box-sizing:border-box;padding:.65rem;border:1px solid #b9cdd3;border-radius:8px}
.nd-files{display:grid;gap:.6rem}.nd-file{display:flex;align-items:center;flex-wrap:wrap;gap:.65rem;padding:.85rem;border:1px solid #d4e4e6;border-radius:10px;min-width:0}
.nd-file strong,.nd-file span,.nd-id{overflow-wrap:anywhere;min-width:0}.nd-id{flex-basis:100%;direction:ltr;unicode-bidi:plaintext;color:#637d88}
.nd-actions{display:flex;gap:.5rem;flex-wrap:wrap}.nd-filters,.nd-scenario{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.8rem}
.nd-panel button{white-space:normal;max-width:100%}.nd-error{background:#fff0ee;color:#962e21;padding:.8rem;border-radius:8px}.nd-note{background:#eff6f8;padding:.8rem;border-radius:8px}.nd-panel details{padding:.8rem;border:1px solid #dae6e8;border-radius:8px}.nd-scenario{margin-block:1rem}
@media(max-width:600px){.nd-filters,.nd-scenario{grid-template-columns:minmax(0,1fr)}.nd-file{align-items:stretch;flex-direction:column;flex-wrap:nowrap}.nd-file>*{width:auto}.nd-file .nd-id{flex-basis:auto;width:100%}.nd-panel{font-size:.95rem}}

/* Native modal must also fit when the viewport reserves a vertical scrollbar. */
#dialog.managed-dialog:has(.nd-panel){max-width:calc(100% - 16px)}
