/* the export window (export.js) */
dialog.exp { width: min(560px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); padding: 0; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); color: var(--fg); overflow: hidden; }
dialog.exp::backdrop { background: rgba(0, 0, 0, .6); }
.exp-form { display: flex; flex-direction: column; max-height: calc(100dvh - 24px); margin: 0; }
.exp-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 16px; border-bottom: 1px solid var(--line-soft); }
.exp-head h2 { margin: 0; font: 600 16px/1.3 var(--font-sans); overflow-wrap: anywhere; }
.exp-body { display: flex; flex-direction: column; gap: 12px; padding: 14px 16px; overflow-y: auto; overscroll-behavior: contain; }
.exp-lead { margin: 0; color: var(--fg-2); font: 400 14px/1.5 var(--font-sans); }
.exp-set { margin: 0; padding: 8px 12px 10px; border: 1px solid var(--line); border-radius: 8px; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.exp-set legend { padding: 0 6px; font: 600 13px/1.3 var(--font-sans); }
.exp-opt { display: flex; flex-direction: column; }
.exp-check { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 2px; font: 500 14px/1.4 var(--font-sans); cursor: pointer; }
.exp-check input { flex: none; width: 22px; height: 22px; margin: 0; accent-color: var(--accent); }
.exp-field { display: flex; flex-direction: column; gap: 4px; }
.exp-field label { font: 500 13px/1.4 var(--font-sans); color: var(--fg-2); }
.exp-field select, .exp-field input { width: 100%; min-height: 44px; padding: 6px 10px; border: 1px solid var(--line); border-radius: 6px; background: var(--bg); color: var(--fg); font: 400 16px/1.4 var(--font-sans); }
.exp-help { margin: 0; padding-left: 34px; font: 400 12.5px/1.45 var(--font-sans); color: var(--fg-3); overflow-wrap: anywhere; }
.exp-field .exp-help, .exp-body > .exp-help { padding-left: 0; }
.exp-foot { display: flex; align-items: center; justify-content: flex-end; gap: 8px; flex-wrap: wrap; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line-soft); }
.exp-status { flex: 1 1 16ch; margin: 0; min-height: 1.4em; font: 400 13px/1.4 var(--font-sans); color: var(--fg-2); overflow-wrap: anywhere; }
.exp-foot .btn, .exp-head .btn { min-height: 44px; min-width: 44px; padding: 0 16px; }
.exp-form button:disabled { opacity: .5; cursor: not-allowed; }
.exp-form :focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
dialog.exp[aria-busy="true"] .exp-status::after { content: ""; display: inline-block; width: 1em; height: 1em; margin-left: .5em; vertical-align: -.15em; border: 2px solid var(--fg-3); border-top-color: transparent; border-radius: 50%; animation: exp-spin .8s linear infinite; }
@keyframes exp-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { dialog.exp[aria-busy="true"] .exp-status::after { animation: none; } }
@media (max-width: 480px) { .exp-foot .btn { flex: 1 1 40%; } }

/* "Save as file" beside Copy under a message */
.btn.savefile { min-height: 30px; margin-left: 8px; }
.aacts .btn.savefile { margin-left: 0; }
