.download-dialog{color:var(--text);background:var(--bg);border:1px solid var(--line);width:min(620px,calc(100% - 28px));max-height:calc(100 * var(--layout-dvh,1dvh) - 28px);padding:0;overflow:auto}
.download-dialog::backdrop{background:#0009;backdrop-filter:blur(5px)}
.download-shell{padding:clamp(22px,4vw,36px)}.download-top{display:flex;align-items:flex-start;justify-content:space-between;gap:16px}.download-top h2{font-size:30px;line-height:1.4;margin:0}.download-close{flex:none;color:var(--read-accent);font:inherit;border:0;background:none;padding:8px}
.download-intro{font-size:1rem;line-height:1.8;margin:16px 0 24px}.download-fields{display:grid;grid-template-columns:1fr 1fr;gap:18px}.download-shell label{display:block;font-size:.875rem;line-height:1.8;margin-bottom:16px}.download-shell label>span{display:block;margin-bottom:7px}.download-shell :is(input:not([type=checkbox]),select,textarea){display:block;width:100%;font:inherit;padding:12px;color:var(--text);background:var(--panel);border:1px solid var(--line);border-radius:0;min-height:48px;box-sizing:border-box}.download-shell textarea{resize:vertical}.download-shell select option{background:var(--bg);color:var(--text)}
.download-shell :is(input,select,textarea):focus-visible{outline:2px solid var(--read-accent);outline-offset:2px}.download-shell .download-consent{display:flex;align-items:flex-start;gap:10px;margin-top:12px}.download-consent input{width:18px;height:18px;flex:none;margin-top:4px;accent-color:var(--read-accent)}.download-honey{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}.download-error{color:var(--text);border-inline-start:3px solid var(--read-accent);padding-inline-start:12px;font-size:.875rem;line-height:1.8}.download-status{font-size:.875rem;line-height:1.8}.download-submit{width:100%;font:inherit}.download-submit:disabled{opacity:.6;cursor:wait}.download-ready{margin-top:12px}.download-standalone{max-width:640px;margin:24px auto}
@media(max-width:520px){.download-fields{grid-template-columns:1fr;gap:0}.download-top h2{font-size:27px}.download-close{font-size:.875rem}}
