/* COMP.MODAL: reusable focused task surface. */
.bj-modal{box-sizing:border-box;width:min(640px,calc(100% - var(--bj-space-3)));max-height:calc(100dvh - var(--bj-space-3));padding:0;border:1px solid var(--bj-line);border-radius:var(--bj-order-panel-radius);background:var(--bj-clean);color:var(--bj-ink);font-family:var(--bj-font-family);box-shadow:var(--bj-order-panel-shadow)}
.bj-modal::backdrop{background:rgba(0,0,0,.45)}
.bj-modal *{box-sizing:border-box}
.bj-modal__head{display:flex;justify-content:space-between;align-items:center;gap:var(--bj-space-2);padding:var(--bj-space-2) var(--bj-space-3);border-bottom:1px solid var(--bj-line)}
.bj-modal__title{margin:0;font-size:var(--bj-type-subsection);font-weight:var(--bj-type-subsection-weight);line-height:var(--bj-type-subsection-line)}
.bj-modal__close{display:inline-flex;align-items:center;justify-content:center;flex:0 0 44px;width:44px;height:44px;padding:0;background:transparent;border:0;border-radius:var(--bj-control-radius);color:var(--bj-ink);cursor:pointer}
.bj-modal__close svg{width:20px;height:20px}
.bj-modal__body{padding:var(--bj-space-3);overflow-wrap:anywhere}
.bj-modal :focus-visible{outline:2px solid var(--bj-ink);outline-offset:3px}
.bj-modal [aria-busy=true]{cursor:progress}
@media(max-width:767px){.bj-modal{width:calc(100% - var(--bj-space-3));max-height:calc(100dvh - var(--bj-space-3))}.bj-modal__head,.bj-modal__body{padding:var(--bj-space-2)}.bj-modal__body{padding-bottom:calc(var(--bj-space-2) + env(safe-area-inset-bottom))}}

.bj-modal__retry{min-height:48px;padding:var(--bj-space-1) var(--bj-space-2);border:1px solid var(--bj-line-strong);border-radius:var(--bj-control-radius);background:var(--bj-clean);color:var(--bj-ink);font:inherit;cursor:pointer}

.bj-modal__discard{padding:var(--bj-space-2);margin-bottom:var(--bj-space-2);border:1px solid var(--bj-line-strong);border-radius:var(--bj-control-radius);background:var(--bj-information-surface)}.bj-modal__discard p{margin:0 0 var(--bj-space-2);font-size:var(--bj-type-body);line-height:var(--bj-type-body-line)}.bj-modal__discard button{margin:0 var(--bj-space-1) var(--bj-space-1) 0}
