.download-dialog { width: min(460px, calc(100vw - 32px)); max-height: calc(100dvh - 40px); margin: auto; padding: 0; overflow: auto; border: 1px solid var(--line-strong); border-radius: 16px; background: var(--bg); color: var(--text); box-shadow: 0 24px 90px #0008; }
.download-dialog::backdrop { background: #000a; backdrop-filter: blur(4px); }
.download-invitation { padding: 28px; margin: 0; }
.download-dialog-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 12px; }
.download-dialog-header h2 { margin: 0; font-size: 1.5rem; line-height: 1.35; }
.download-dialog-close { display: grid; place-items: center; flex: 0 0 40px; width: 40px; height: 40px; padding: 0; border: 0; border-radius: 8px; color: var(--dim); background: transparent; cursor: pointer; }
.download-dialog-close:hover { color: var(--text); background: var(--bg-raise); }
.download-invitation #download-hint { margin: 0 0 24px; color: var(--dim); font-size: .95rem; }
.download-invitation label { display: block; margin-bottom: .55rem; font-weight: 600; }
.download-invitation input { box-sizing: border-box; width: 100%; padding: .85rem 1rem; border: 1px solid var(--line-strong); border-radius: 8px; background: var(--bg-raise); color: var(--text); font: inherit; }
.download-invitation input:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; }
.download-invitation p { margin: .75rem 0 0; line-height: 1.6; }
.download-invitation [data-download-status="rejected"], .download-invitation [data-download-status="invalid"], .download-invitation [data-download-status="unavailable"] { color: #ff9c9c; }
.download-invitation [hidden] { display: none; }
.download-dialog-submit { width: 100%; margin-top: 24px; }
.download-result { margin: 0 0 24px; }
.download-result[hidden] { display: none; }
.spatial-download-options button[data-platform]:disabled { opacity: .65; cursor: wait; }
@media (max-width: 480px) { .download-invitation { padding: 22px; } .download-dialog-header h2 { font-size: 1.3rem; } .download-dialog-close { flex-basis: 44px; width: 44px; height: 44px; } }
