[hidden] { display: none !important; }

.format-options {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin: 0;
    padding: 0;
    border: 0;
    text-align: left;
}
.format-options legend {
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 600;
}
.format-option {
    display: flex;
    gap: 8px;
    align-items: flex-start;
    min-width: 0;
    padding: 12px 10px;
    border: 1px solid #3d434a;
    border-radius: 8px;
    background: #191b1e;
    cursor: pointer;
}
.format-option:has(input:checked) {
    border-color: #1d9bf0;
    background: #14212d;
}
.format-option input { margin: 5px 0 0; accent-color: #1d9bf0; }
.format-option strong { display: block; font-size: 14px; line-height: 1.6; }
.format-option small { display: block; font-size: 12px; color: #adb5bf; }
.format-options:disabled .format-option { cursor: default; opacity: .7; }
.format-hint { margin: 8px 0 16px; color: #9ca3af; font-size: 12px; text-align: left; }
.download-heading { margin: 0 0 12px; color: #e7e9ea; font-size: 18px; line-height: 1.4; }
.progress-details { margin: 8px 0 0; color: #c3ccd5; font-size: 12px; font-variant-numeric: tabular-nums; }
.completion-card {
    margin-top: 24px;
    padding: 20px;
    border: 1px solid #23624e;
    border-radius: 12px;
    background: #121c19;
    text-align: left;
    overflow-wrap: anywhere;
}
.completion-title { margin: 0 0 8px; font-weight: 600; line-height: 1.5; }
.completion-filename { margin: 0 0 6px; color: #b5c1bb; font-size: 12px; }
.completion-details { margin: 0 0 14px; color: #b5c1bb; font-size: 13px; }
.media-preview { min-width: 0; }
.media-preview audio, .media-preview video { display: block; width: 100%; max-width: 100%; margin: 0 0 16px; }
.media-preview video { max-height: 300px; background: #000; border-radius: 6px; }
.media-preview audio { height: 54px; min-width: 0; }
.download-again {
    display: block;
    padding: 12px 14px;
    border-radius: 8px;
    background: #168659;
    color: #fff;
    text-align: center;
    font-size: 15px;
    font-weight: 600;
}
.download-again:hover { background: #11734b; color: #fff; text-decoration: none; }
.download-again[aria-disabled="true"] { background: #38423e; color: #bdc4c0; cursor: default; }
.completion-note, .expiration-note { margin: 10px 0 0; color: #adbab3; font-size: 12px; line-height: 1.6; }
button:focus-visible, a:focus-visible, input:focus-visible { outline: 2px solid #6dbdff; outline-offset: 3px; }
@media (max-width: 369px) {
    .format-options { gap: 8px; }
    .format-option { padding: 10px 8px; gap: 6px; }
    .completion-card { padding: 16px; }
}
@media (prefers-reduced-motion: reduce) {
    .progress-bar, button { transition: none !important; }
    .progress-bar.indeterminate { animation: none !important; width: 100% !important; opacity: .6; }
}
