body {
    background: #050607;
    margin-bottom: 48px;
}

.deep-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.deep-actions button {
    flex: 1 1 190px;
    min-width: 190px;
}

.deep-section-heading {
    align-items: start;
    display: flex;
    gap: 16px;
    justify-content: space-between;
    min-width: 0;
}

.deep-section-links {
    display: flex;
    flex-shrink: 0;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
    min-width: 0;
}

.deep-section-heading p {
    color: #9da9a7;
    font-size: 13px;
    line-height: 1.45;
    margin: 0 0 14px;
}

.deep-button-link {
    align-items: center;
    background: #11151a;
    border: 1px solid #2b333a;
    border-radius: 8px;
    box-sizing: border-box;
    color: #dfe8e5 !important;
    display: inline-flex;
    flex-shrink: 0;
    font-weight: 600;
    justify-content: center;
    min-height: 36px;
    padding: 0 14px;
}

.deep-button-link:hover {
    border-color: rgb(100 214 176 / 35%);
}

.deep-error-card {
    border-color: rgb(214 179 100 / 34%);
}

.deep-error-card p {
    color: #9da9a7;
    line-height: 1.45;
    margin: 0 0 14px;
}

.deep-preset-grid {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(3, 1fr);
    margin-bottom: 14px;
}

.deep-preset-card {
    align-items: flex-start;
    background:
        linear-gradient(180deg, rgb(255 255 255 / 3%), transparent 54%),
        #0f1317;
    border: 1px solid #232b31;
    border-radius: 8px;
    color: #eef5f2;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 6px;
    justify-content: flex-start;
    min-height: 112px;
    min-width: 0;
    padding: 16px;
    position: relative;
    text-align: left;
    transition: border-color 120ms ease, box-shadow 120ms ease, transform 120ms ease;
    white-space: normal;
}

.deep-preset-card:hover {
    border-color: rgb(100 214 176 / 32%);
    transform: translateY(-1px);
}

.deep-preset-card.selected {
    background:
        linear-gradient(180deg, rgb(100 214 176 / 9%), transparent 64%),
        #0f1418;
    border-color: rgb(100 214 176 / 52%);
    box-shadow:
        inset 0 0 0 1px rgb(100 214 176 / 18%),
        0 10px 28px rgb(100 214 176 / 10%);
}

.deep-preset-card.selected::after {
    align-items: center;
    background: var(--db-accent, #64d6b0);
    border-radius: 999px;
    color: #04110d;
    content: "✓";
    display: flex;
    font-size: 12px;
    font-weight: 700;
    height: 20px;
    justify-content: center;
    line-height: 1;
    position: absolute;
    right: 12px;
    top: 12px;
    width: 20px;
}

.deep-preset-card strong {
    display: block;
    font-size: 16px;
    font-weight: 600;
    overflow-wrap: anywhere;
}

.deep-preset-card span {
    color: #9da9a7;
    display: block;
    font-size: 13px;
    line-height: 1.45;
    margin-top: 0;
    overflow-wrap: anywhere;
}

.deep-preset-card .deep-preset-badge {
    align-self: flex-start;
    background: rgb(100 214 176 / 14%);
    border: 1px solid rgb(100 214 176 / 30%);
    border-radius: 999px;
    color: #bff5df;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.4px;
    line-height: 1;
    margin: 0;
    order: -1;
    padding: 4px 9px;
    text-transform: uppercase;
    white-space: nowrap;
}

:root.deep-rtl .deep-preset-card .deep-preset-badge {
    align-self: flex-end;
}

#storageUsed,
#settingsLastBackupPrompt,
#settingsLastRestorePrompt {
    color: #9da9a7;
    font-size: 13px;
}

.deep-section .li label {
    align-items: center;
    background: #0f1317;
    border: 1px solid #222a31;
    border-radius: 8px;
    box-sizing: border-box;
    display: flex;
    min-height: 46px;
    min-width: 0;
    padding: 10px 12px;
}

.deep-section .li label > span:last-child {
    min-width: 0;
    overflow-wrap: anywhere;
}

:root.deep-rtl .deep-preset-card,
:root.deep-rtl .deep-section-heading {
    text-align: right;
}

:root.deep-rtl .deep-section-links {
    justify-content: flex-start;
}

.deep-section .li label:hover {
    border-color: rgb(100 214 176 / 30%);
}

@media (max-width: 640px) {
    .deep-actions {
        flex-direction: column;
    }

    .deep-actions button {
        flex-basis: auto;
        min-width: 0;
        width: 100%;
    }

    .deep-section-heading {
        align-items: stretch;
        flex-direction: column;
    }

    .deep-section-links {
        justify-content: stretch;
    }

    .deep-preset-grid {
        grid-template-columns: 1fr;
    }
}
