/* Follow the existing code-panel geometry, including toolbar clearance. */
#downloadDialog {
    position: fixed;
    inset: auto;
    top: var(--editor-top);
    left: var(--editor-left);
    right: var(--editor-right);
    width: var(--editor-width);
    margin: 0;
    padding: 16px;
    box-sizing: border-box;
    border: 0;
    border-radius: var(--gallery-radius);
    background: rgba(0, 0, 0, 0.85);
    color: #fff;
    font: bold 22px/1.3 monospace;
}

#downloadDialog::backdrop { background: transparent; }

#downloadDialog form {
    display: flex;
    align-items: baseline;
    gap: 4px;
    min-width: 0;
}

#downloadDialog input {
    flex: 1;
    min-width: 0;
    width: 0;
    border: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 0;
    padding: 4px 0;
    background: transparent;
    color: inherit;
    font: inherit;
}

#downloadDialog input:focus { outline: none; border-bottom-color: #fff; }
#downloadDialog span { flex: none; }
