.ar-dialog{width:min(700px,calc(100vw - 28px));max-width:none;max-height:calc(100dvh - 32px);padding:0;border:1px solid var(--glass-border,rgba(255,255,255,.85));border-radius:26px;color:var(--text,#193d60);background:var(--surface-sheet,#e5f0fa);box-shadow:0 24px 70px #17345138;overflow:hidden}
.ar-dialog::backdrop{background:#173b6060;backdrop-filter:blur(7px)}
.ar-dialog #archiveReleaseForm{display:flex;flex-direction:column;max-height:calc(100dvh - 34px);margin:0;min-height:0}
.ar-header{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:22px 24px;border-bottom:1px solid var(--border,#bfd8ed);flex:none}
.ar-header small{font-size:10px;font-weight:800;letter-spacing:.12em;color:var(--accent,#0878d5)}
.ar-header h2{margin:5px 0 0;font-size:19px;line-height:1.4}
.ar-header .icon-button{min-width:40px;min-height:40px;font-size:25px}
.ar-body{padding:20px 24px;overflow:auto;min-height:0;overscroll-behavior:contain;overflow-wrap:anywhere}
.ar-explanation,.ar-note{margin:0 0 15px;line-height:1.65;font-size:13px}
.ar-note{padding:10px 12px;background:#ffffff65;border-radius:12px}
.ar-totals{display:flex;flex-wrap:wrap;gap:10px 18px;padding:14px;border:1px solid var(--border,#bfd8ed);border-radius:14px;margin-bottom:16px;font-size:13px;background:#ffffff50}
.ar-totals b{font-variant-numeric:tabular-nums}
.ar-orders{display:grid;gap:8px;padding:0;margin:0 0 18px;list-style:none}
.ar-orders li{display:grid;gap:5px;padding:12px 14px;border:1px solid var(--border,#bfd8ed);border-radius:12px;background:#ffffff5c;font-size:12px}
.ar-orders strong{font-size:13px}.ar-orders small{font-size:11px;color:var(--muted,#52799c)}
.ar-reason{display:grid;gap:8px;font-size:13px;font-weight:700}.ar-reason textarea{box-sizing:border-box;width:100%;resize:vertical;max-height:180px;min-height:72px;font-weight:400}
.ar-status{margin:0;padding:0 24px 14px;line-height:1.6;font-size:12px;overflow-wrap:anywhere;flex:none;color:var(--muted,#52799c)}
.ar-status:empty{padding-bottom:0}.ar-status.is-error{color:var(--danger,#b12e43)}
.ar-actions{display:flex;justify-content:flex-end;flex-wrap:wrap;gap:8px;padding:16px 24px;border-top:1px solid var(--border,#bfd8ed);background:#ffffff40;flex:none}
.ar-actions .en-button{min-height:42px}.ar-toolbar{display:flex;gap:8px;align-items:center;justify-content:space-between;margin-bottom:14px}.ar-filters{display:flex;gap:5px}.ar-filters [aria-pressed=true]{background:#ffffffae;color:var(--accent,#0878d5)}
.ar-requests{display:grid;gap:10px}.ar-request{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px 12px;text-align:left;padding:14px;border:1px solid var(--border,#bfd8ed);border-radius:14px;background:#ffffff60;color:inherit;font:inherit;cursor:pointer}.ar-request>span:first-child{display:grid;gap:5px}.ar-request small{font-size:11px;color:var(--muted,#52799c)}.ar-request>span:last-child{grid-column:1/-1;font-size:12px}
.ar-state{align-self:start;padding:4px 8px;border:1px solid var(--border,#bfd8ed);border-radius:9px;font-size:11px;white-space:nowrap}.ar-state[data-status=approved]{background:#e6f4e9;color:#25724b}.ar-state[data-status=pending]{background:#fff2dd;color:#985614}.ar-state[data-status=rejected],.ar-state[data-status=invalid]{background:#fbe7eb;color:#a83d50}.ar-empty{padding:24px 0;text-align:center;color:var(--muted,#52799c)}
.ar-inbox-entry{min-width:0;margin:0 0 18px}.ar-inbox-button{display:flex;align-items:center;gap:12px;box-sizing:border-box;width:100%;min-height:74px;margin-top:10px;padding:14px 16px;text-align:left;border:1px solid var(--border,#bfd8ed);border-radius:16px;background:#ffffff65;color:inherit;font:inherit;cursor:pointer}.ar-inbox-copy{display:grid;gap:5px;min-width:0;flex:1}.ar-inbox-copy strong{font-size:14px}.ar-inbox-copy small{font-size:12px;line-height:1.6;color:var(--muted,#52799c);overflow-wrap:anywhere}.ar-inbox-count{flex:none;min-width:24px;padding:4px 6px;border-radius:8px;text-align:center;background:#fff0d9;color:#945513;font-size:12px;font-weight:700}.ar-inbox-count[hidden]{display:none}.ar-inbox-button>svg{flex:none;width:18px;height:18px}.ar-inbox-button:hover{background:#ffffff96}.ar-inbox-button:focus-visible{outline:2px solid var(--accent,#0878d5);outline-offset:3px}
@media(max-width:480px){.ar-dialog{width:calc(100vw - 20px);max-height:calc(100dvh - 20px);border-radius:22px}.ar-dialog #archiveReleaseForm{max-height:calc(100dvh - 22px)}.ar-header{padding:17px 16px}.ar-body{padding:16px}.ar-actions{padding:12px 16px}.ar-status{padding-left:16px;padding-right:16px}.ar-actions .en-button,.ar-toolbar .en-button{min-height:44px}.ar-totals{gap:8px;flex-direction:column}.ar-request{padding:12px}}
