.screenshots-notice {
    margin-bottom: 16px;
}

.screenshots-filter-panel {
    margin-bottom: 18px;
    padding: 16px;
}

.screenshots-filter-bar {
    display: grid;
    grid-template-columns: repeat(4, minmax(135px, 1fr)) minmax(210px, 1.35fr) auto auto;
    gap: 12px;
    align-items: end;
}

.screenshots-filter-bar .report-filter-control {
    min-width: 0;
}

.screenshots-filter-bar .form-select,
.screenshots-filter-bar .form-control {
    min-height: 40px;
    font-size: 12px;
    border-color: #dbe3ed;
    border-radius: 8px;
}

.screenshots-date-control {
    display: none;
}

.screenshots-date-control.is-visible {
    display: block;
}

.screenshots-apply-button {
    height: 40px;
}

.screenshots-reset-button {
    display: inline-flex;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    color: #175cd3;
    border: 1px solid #dbe3ed;
    border-radius: 8px;
}

.screenshots-reset-button:hover {
    color: #124f9c;
    background: #eff8ff;
}

.screenshots-reset-button svg {
    width: 16px;
    height: 16px;
}

.screenshots-gallery-panel {
    padding: 0;
    overflow: hidden;
}

.screenshots-gallery-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 19px 21px;
    border-bottom: 1px solid #eaecf0;
}

.screenshots-gallery-header p {
    margin: 3px 0 0;
    font-size: 12px;
    color: #667085;
}

.screenshots-security-label {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 10px;
    font-size: 11px;
    font-weight: 600;
    color: #027a48;
    background: #ecfdf3;
    border-radius: 999px;
}

.screenshots-security-label svg {
    width: 14px;
    height: 14px;
}

.screenshots-bulk-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 11px 20px;
    background: #f8fafc;
    border-bottom: 1px solid #eaecf0;
}

.screenshots-select-all,
.screenshots-bulk-actions {
    display: inline-flex;
    align-items: center;
    gap: 9px;
}

.screenshots-select-all {
    margin: 0;
    font-size: 12px;
    font-weight: 600;
    color: #344054;
    cursor: pointer;
}

.screenshots-select-all input {
    width: 16px;
    height: 16px;
    accent-color: #175cd3;
}

.screenshots-bulk-actions > span {
    font-size: 11px;
    color: #667085;
}

.screenshots-delete-button {
    display: inline-flex;
    min-height: 34px;
    align-items: center;
    gap: 7px;
    padding: 7px 11px;
    font-size: 11px;
    font-weight: 600;
    color: #fff;
    background: #d92d20;
    border: 1px solid #d92d20;
    border-radius: 8px;
}

.screenshots-delete-button:disabled {
    color: #98a2b3;
    background: #f2f4f7;
    border-color: #e4e7ec;
    cursor: not-allowed;
}

.screenshots-delete-button svg {
    width: 14px;
    height: 14px;
}

.screenshots-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    padding: 20px;
}

.screenshot-card {
    position: relative;
    min-width: 0;
    overflow: hidden;
    background: #fff;
    border: 1px solid #e4e9f0;
    border-radius: 12px;
    box-shadow: 0 4px 13px rgba(16, 24, 40, .045);
}

.screenshot-select-control {
    position: absolute;
    z-index: 2;
    top: 10px;
    left: 10px;
    display: inline-flex;
    width: 30px;
    height: 30px;
    align-items: center;
    justify-content: center;
    margin: 0;
    background: rgba(255, 255, 255, .94);
    border: 1px solid rgba(208, 213, 221, .9);
    border-radius: 8px;
    box-shadow: 0 2px 7px rgba(16, 24, 40, .14);
    cursor: pointer;
}

.screenshot-select-control input {
    width: 16px;
    height: 16px;
    margin: 0;
    accent-color: #175cd3;
    cursor: pointer;
}

.screenshot-preview-button {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    padding: 0;
    overflow: hidden;
    background: #eef2f6;
    border: 0;
    cursor: zoom-in;
}

.screenshot-preview-button img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .18s ease;
}

.screenshot-preview-button:hover img {
    transform: scale(1.025);
}

.screenshot-expand-hint {
    position: absolute;
    right: 10px;
    bottom: 10px;
    display: inline-flex;
    width: 30px;
    height: 30px;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: rgba(16, 24, 40, .68);
    border-radius: 8px;
    opacity: 0;
    transition: opacity .18s ease;
}

.screenshot-preview-button:hover .screenshot-expand-hint {
    opacity: 1;
}

.screenshot-expand-hint svg {
    width: 15px;
    height: 15px;
}

.screenshot-card-body {
    padding: 13px 14px 14px;
}

.screenshot-card-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
}

.screenshot-card-heading strong,
.screenshot-card-heading span {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.screenshot-card-heading strong {
    font-size: 12px;
    color: #344054;
}

.screenshot-card-heading span {
    margin-top: 2px;
    font-size: 10px;
    color: #98a2b3;
}

.screenshot-card-heading time {
    flex: 0 0 auto;
    font-size: 11px;
    font-weight: 600;
    color: #175cd3;
}

.screenshot-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 12px;
    margin-top: 11px;
    padding-top: 10px;
    border-top: 1px solid #f0f2f5;
}

.screenshot-card-meta span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 10px;
    color: #667085;
}

.screenshot-card-meta svg {
    width: 12px;
    height: 12px;
}

.screenshots-empty-state {
    padding: 70px 24px;
    text-align: center;
}

.screenshots-empty-icon {
    display: inline-flex;
    width: 48px;
    height: 48px;
    align-items: center;
    justify-content: center;
    color: #175cd3;
    background: #eff8ff;
    border-radius: 12px;
}

.screenshots-empty-icon svg {
    width: 23px;
    height: 23px;
}

.screenshots-empty-state h3 {
    margin: 14px 0 5px;
    font-size: 15px;
    color: #344054;
}

.screenshots-empty-state p {
    margin: 0;
    font-size: 12px;
    color: #667085;
}

.screenshot-lightbox {
    width: min(94vw, 1500px);
    max-width: none;
    padding: 0;
    overflow: hidden;
    background: #101828;
    border: 0;
    border-radius: 14px;
    box-shadow: 0 24px 80px rgba(0, 0, 0, .45);
}

.screenshot-lightbox::backdrop {
    background: rgba(8, 15, 28, .82);
    backdrop-filter: blur(4px);
}

.screenshot-lightbox-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 15px;
    color: #fff;
}

.screenshot-lightbox-toolbar strong {
    font-size: 12px;
}

.screenshot-lightbox-toolbar button {
    display: inline-flex;
    width: 34px;
    height: 34px;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: rgba(255, 255, 255, .1);
    border: 0;
    border-radius: 8px;
}

.screenshot-lightbox-toolbar svg {
    width: 17px;
    height: 17px;
}

.screenshot-lightbox img {
    display: block;
    width: 100%;
    max-height: calc(92vh - 58px);
    object-fit: contain;
}

@media (max-width: 1350px) {
    .screenshots-filter-bar {
        grid-template-columns: repeat(4, minmax(135px, 1fr));
    }

    .screenshots-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .screenshots-filter-bar,
    .screenshots-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    .screenshots-filter-bar,
    .screenshots-grid {
        grid-template-columns: 1fr;
    }

    .screenshots-gallery-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .screenshots-bulk-toolbar {
        align-items: flex-start;
        flex-direction: column;
    }
}
