/* ES5-era layout: fluid widths, inline-block columns, no framework/Grid dependency. */
.backup-viewer { margin: 24px 0 40px; }
.backup-viewer [hidden], .backup-lightbox[hidden] { display: none !important; }
.backup-heading { padding: 24px; background: #fff; border: 1px solid #dcebe8; border-radius: 20px; }
.backup-heading h2 { margin: 8px 0; }
.backup-heading > div { display: inline-block; vertical-align: middle; width: 75%; }
.backup-heading > .tag { vertical-align: middle; }
.backup-status { padding: 12px 4px; color: #546a70; word-wrap: break-word; }
.backup-filter { padding: 20px; background: #edf8f6; border: 1px solid #dcebe8; border-radius: 16px; margin-bottom: 16px; }
.backup-filter .field { display: inline-block; vertical-align: bottom; width: 17%; margin: 0 1% 12px 0; }
.backup-filter .backup-search { width: 42%; }
.backup-filter .button { margin: 4px 4px 0 0; }
.backup-cards { margin: 0 -8px; font-size: 0; }
.backup-card { display: inline-block; vertical-align: top; width: calc(33.333% - 16px); margin: 8px; padding: 0; overflow: hidden; border: 1px solid #dcebe8; border-radius: 20px; background: #fff; font-size: 16px; box-shadow: 0 4px 18px rgba(28,39,52,.04); }
.backup-card-link { display: block; color: #1c2734; text-decoration: none; }
.backup-card-link:hover { background: #f6fbfa; }
.backup-cover { position: relative; height: 0; padding-top: 56.25%; background: #d9f5f1; overflow: hidden; }
.backup-cover img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; }
.backup-cover-label { position: absolute; top: 36%; left: 0; width: 100%; text-align: center; color: #176d70; letter-spacing: .16em; }
.backup-card-copy { padding: 20px; }
.backup-card h3 { font-size: 19px; min-height: 54px; margin: 10px 0; word-wrap: break-word; }
.backup-card p { font-size: 13px; color: #546a70; word-wrap: break-word; }
.backup-card .tag { font-size: 11px; }
.backup-pagination { text-align: center; margin: 28px 0; }
.backup-pagination span { display: inline-block; padding: 12px 16px; }
.backup-detail-heading { padding: 28px 0 20px; }
#backup-detail:focus { outline: none; }
.backup-detail-heading h2 { font-size: 28px; word-wrap: break-word; }
.backup-detail-heading p { font-size: 14px; }
.backup-detail-heading .tag { margin-right: 8px; }
.backup-body { white-space: pre-wrap; word-wrap: break-word; line-height: 2; }
.backup-post { max-width: 820px; margin: 0 auto; padding: 28px; background: #fff; border: 1px solid #dcebe8; border-radius: 20px; }
.backup-photo { margin: 24px 0; }
.backup-photo button { display: block; width: 100%; padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; cursor: zoom-in; }
.backup-photo button:hover, .backup-photo button:active { background: transparent; }
.backup-photo button:focus { outline: none; }
.backup-photo img { display: block; width: auto; max-width: 100%; max-height: 720px; margin: 0 auto; }
.backup-photo figcaption { color: #546a70; font-size: 13px; padding: 8px 0; }
.backup-attachment { padding: 16px; margin: 20px 0; background: #edf8f6; border-radius: 12px; word-wrap: break-word; }
.backup-attachment video, .backup-attachment audio { width: 100%; max-width: 100%; }
.backup-media-column { display: inline-block; vertical-align: top; width: 64%; }
.backup-comment-column { display: inline-block; vertical-align: top; width: 34%; margin-left: 2%; padding: 16px; background: #fff; border: 1px solid #dcebe8; border-radius: 16px; }
.backup-watch { font-size: 0; }
.backup-watch > div { font-size: 16px; }
.backup-player-box { background: #172c38; border-radius: 16px; overflow: hidden; }
.backup-player { display: block; width: 100%; height: auto; max-height: 70vh; min-height: 200px; background: #172c38; }
.backup-player-tools { padding: 12px 0; }
.backup-player-tools .button { padding: 8px 12px; margin: 4px; }
.backup-player-tools select { min-height: 44px; max-width: 100%; margin: 4px; }
.backup-comment-controls .field { margin-bottom: 12px; }
.backup-comment-controls label { font-size: 13px; }
.backup-comment-controls input[type="checkbox"] { width: auto; }
.backup-comment-list { height: 450px; overflow-y: auto; overflow-x: hidden; border-top: 1px solid #dcebe8; }
.backup-comment { padding: 12px 0; border-bottom: 1px solid #dcebe8; font-size: 13px; word-wrap: break-word; }
.backup-comment-avatar { width: 30px; height: 30px; object-fit: cover; border-radius: 50%; vertical-align: middle; margin: 0 8px 6px 0; }
.backup-comment p { margin: 6px 0; white-space: pre-wrap; word-wrap: break-word; }
.backup-comment small { display: block; color: #546a70; }
.backup-comment-time { border: 0; background: #d9f5f1; color: #176d70; min-height: 32px; padding: 4px 8px; border-radius: 6px; margin: 4px 0; }
.backup-comment-gift { max-width: 64px; max-height: 64px; margin: 4px; }
.backup-reply { margin-left: 16px; padding-left: 12px; border-left: 2px solid #d9f5f1; }
.backup-neighbors { margin-top: 24px; }
.backup-neighbors a { display: inline-block; vertical-align: top; width: calc(50% - 12px); margin: 6px; padding: 16px; border: 1px solid #dcebe8; border-radius: 12px; background: #fff; word-wrap: break-word; }
.backup-lightbox { position: fixed; z-index: 100; top: 0; left: 0; right: 0; bottom: 0; background: rgba(14,29,40,.96); color: #fff; }
.backup-lightbox-tools { height: 112px; padding: 12px; text-align: center; overflow-y: auto; }
.backup-lightbox-tools .button { margin: 4px; padding: 8px 12px; }
.backup-lightbox-tools span { display: inline-block; min-width: 48px; }
.backup-image-stage { height: calc(100% - 112px); overflow: auto; text-align: center; }
.backup-image-stage img { max-height: 100%; max-width: 100%; width: auto; }
.backup-image-stage.is-zoomed img { max-width: none; max-height: none; }
body.backup-overlay-open { overflow: hidden; }
@media (max-width: 959px) { .backup-card { width: calc(50% - 16px); } .backup-media-column, .backup-comment-column { display: block; width: 100%; margin: 0 0 20px; } .backup-comment-list { height: 320px; } }
@media (max-width: 639px) {
 .backup-heading { padding: 20px; } .backup-heading > div { display: block; width: 100%; margin-bottom: 12px; }
 .backup-card { display: block; width: calc(100% - 16px); } .backup-card h3 { min-height: 0; }
 .backup-filter { padding: 16px; } .backup-filter .field { width: 47%; } .backup-filter .backup-search { width: 98%; }
 .backup-post { padding: 16px; } .backup-detail-heading h2 { font-size: 24px; } .backup-neighbors a { display: block; width: calc(100% - 12px); }
 .backup-lightbox-tools { height: 176px; padding: 6px; } .backup-lightbox-tools .button { font-size: 12px; padding: 6px 10px; }
 .backup-image-stage { height: calc(100% - 176px); }
 .backup-pagination .button { padding: 8px 12px; } .backup-pagination span { padding: 8px; }
}
/* Downloads are shown only after an authenticated session response. */
.admin-download { display: none !important; }
.archive-download-admin .admin-download { display: inline-block !important; }
.backup-attachment video { display: block; width: 100%; height: auto; max-height: 80vh; object-fit: contain; background: #111; }
