:root {
    color-scheme: light;
    font-family:
        Inter,
        ui-sans-serif,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;
    color: #182230;
    background: #f4f6fa;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-width: 320px;
}

.page {
    width: min(1120px, calc(100% - 40px));
    margin: 56px auto;
}

.page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 28px;
}

.eyebrow {
    margin: 0 0 8px;
    color: #5572d8;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.12em;
}

h1 {
    margin: 0;
    font-size: clamp(26px, 4vw, 34px);
    letter-spacing: -0.04em;
}

.subtitle {
    margin: 8px 0 0;
    color: #687386;
}

.refresh-button,
.action-button {
    border: 0;
    border-radius: 7px;
    cursor: pointer;
    font: inherit;
    font-weight: 600;
}

.refresh-button {
    padding: 10px 15px;
    color: #fff;
    background: #4169e1;
}

.refresh-button:hover {
    background: #3156c5;
}

.toolbar-refresh-button {
    color: #364152;
    background: #e2e6ec;
}

.toolbar-refresh-button:hover {
    background: #d2d8e0;
}

.refresh-button:disabled {
    cursor: wait;
    opacity: 0.65;
}

.notice {
    min-height: 22px;
    margin: 0 0 8px;
    color: #687386;
    font-size: 14px;
}

.search-toolbar {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
}

.search-input {
    width: min(100%, 420px);
    min-height: 40px;
    padding: 9px 12px;
    border: 1px solid #d5dbe5;
    border-radius: 7px;
    background: #fff;
    color: inherit;
    font: inherit;
}

.new-backup-button {
    margin-left: auto;
    white-space: nowrap;
}

.search-input:focus {
    border-color: #4169e1;
    outline: 2px solid rgb(65 105 225 / 16%);
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.center-header .ag-header-cell-label {
    justify-content: center;
}

.backup-grid {
    width: 100%;
    height: min(580px, 65vh);
    min-height: 300px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 8px 28px rgb(28 39 60 / 7%);
}

.action-button {
    display: inline-flex;
    min-width: 60px;
    min-height: 30px;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.download-button {
    color: #3156c5;
    background: #eaf0ff;
}

.download-button:hover {
    background: #dce6ff;
}

.delete-button {
    min-width: 34px;
    color: #bd3535;
    background: #fff0f0;
    font-size: 20px;
}

.delete-button:hover {
    background: #ffe0e0;
}

@media (max-width: 640px) {
    .page {
        width: calc(100% - 24px);
        margin: 28px auto;
    }

    .page-header {
        align-items: flex-start;
    }

    .refresh-button {
        flex-shrink: 0;
        padding: 9px 10px;
        font-size: 13px;
    }

    .search-toolbar {
        flex-wrap: wrap;
    }

    .search-input {
        flex: 1 1 100%;
        width: auto;
    }

    .new-backup-button {
        margin-left: auto;
    }
}
