:root {
    color-scheme: dark;
}

body {
    background:
        radial-gradient(circle at 50% 0%, rgb(100 214 176 / 14%), transparent 32%),
        #050607;
    color: #eef5f2;
    font: 14px/1.45 Inter, sans-serif;
    margin: 0;
}

/* Visible keyboard focus, consistent with the rest of DeepBlocker. */
:focus {
    outline: 0;
}

:focus-visible {
    outline: 2px solid rgb(100 214 176 / 62%);
    outline-offset: 2px;
}

.deep-welcome {
    box-sizing: border-box;
    display: grid;
    gap: 18px;
    grid-template-columns: minmax(260px, 0.85fr) minmax(320px, 1.15fr);
    margin: 0 auto;
    max-width: 1040px;
    min-height: 100vh;
    min-width: 0;
    padding: 34px;
    place-content: center;
}

.deep-welcome-hero,
.deep-welcome-panel {
    background:
        linear-gradient(180deg, rgb(255 255 255 / 3%), transparent 52%),
        #090b0e;
    border: 1px solid rgb(148 166 164 / 18%);
    border-radius: 8px;
    box-sizing: border-box;
    min-width: 0;
}

.deep-welcome-hero {
    align-content: center;
    box-shadow: 0 24px 60px rgb(0 0 0 / 38%);
    display: grid;
    justify-items: center;
    min-height: 520px;
    padding: 40px 34px;
    text-align: center;
}

.deep-welcome-hero img {
    display: block;
    filter: drop-shadow(0 10px 26px rgb(0 0 0 / 45%));
    height: 116px;
    width: 116px;
}

.deep-welcome-hero p {
    color: #aee8d1;
    font-weight: 600;
    margin: 22px 0 0;
}

.deep-welcome-hero h1 {
    color: #f1f8f5;
    font-size: 44px;
    font-weight: 600;
    line-height: 1.05;
    margin: 8px 0;
    overflow-wrap: anywhere;
}

.deep-welcome-hero span,
.deep-welcome-hero small,
#welcomeStatus {
    color: #9da9a7;
}

.deep-welcome-hero small {
    display: block;
    font-size: 13px;
    margin-top: 10px;
    max-width: 340px;
}

.deep-welcome-panel {
    box-shadow: 0 24px 60px rgb(0 0 0 / 38%);
    display: flex;
    flex-direction: column;
    padding: 30px;
}

.deep-welcome-panel h2 {
    color: #f1f8f5;
    font-size: 24px;
    font-weight: 600;
    margin: 0;
    overflow-wrap: anywhere;
}

.deep-welcome-lead {
    color: #9da9a7;
    font-size: 13px;
    line-height: 1.5;
    margin: 8px 0 20px;
    overflow-wrap: anywhere;
}

.deep-preset-grid {
    display: grid;
    gap: 10px;
}

.deep-preset {
    align-items: flex-start;
    background:
        linear-gradient(180deg, rgb(255 255 255 / 2.5%), transparent 60%),
        #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: 96px;
    min-width: 0;
    padding: 16px 16px 15px;
    position: relative;
    text-align: left;
    transition: border-color 120ms ease, box-shadow 120ms ease, transform 120ms ease;
    width: 100%;
}

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

.deep-preset.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.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 strong {
    display: block;
    font-size: 16px;
    font-weight: 600;
    overflow-wrap: anywhere;
}

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

.deep-preset .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;
}

#welcomeStatus {
    font-size: 13px;
    margin: 18px 0 0;
    min-height: 18px;
}

.deep-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 18px;
}

.deep-actions button {
    border-radius: 8px;
    flex: 1 1 100%;
    font-weight: 600;
    min-height: 46px;
    min-width: 0;
}

.deep-welcome-skip {
    align-self: center;
    background: transparent;
    border: 0;
    color: #9da9a7;
    cursor: pointer;
    font-size: 13px;
    margin-top: 14px;
    min-height: 0;
    padding: 6px 10px;
    text-decoration: none;
}

.deep-welcome-skip:hover {
    color: #cfe9df;
    text-decoration: underline;
}

:root.deep-rtl .deep-welcome-panel,
:root.deep-rtl .deep-preset {
    text-align: right;
}

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

:root.deep-rtl .deep-welcome-hero {
    text-align: center;
}

@media (max-width: 820px) {
    .deep-welcome {
        grid-template-columns: 1fr;
        padding: 18px;
    }

    .deep-welcome-hero {
        min-height: 300px;
        padding: 32px 22px;
    }

    .deep-welcome-hero img {
        height: 92px;
        width: 92px;
    }

    .deep-welcome-hero h1 {
        font-size: 36px;
    }
}

/* Respect the user's reduced-motion preference. */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
        scroll-behavior: auto !important;
    }
}
