.app-notification-button,
.app-bottom-account-icon {
    position: relative;
}

.app-notification-badge {
    position: absolute;
    top: -4px;
    right: -5px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    display: grid;
    place-items: center;
    border: 2px solid #050608;
    border-radius: 999px;
    background: #c8ff63;
    color: #071006;
    font-size: 10px;
    font-weight: 800;
    line-height: 1;
}

.app-bottom-account-icon {
    display: grid;
    place-items: center;
}

.app-bottom-account-icon > svg {
    width: 23px;
    height: 23px;
}

.app-bottom-account-icon > i {
    position: absolute;
    top: -1px;
    right: -3px;
    width: 8px;
    height: 8px;
    border: 2px solid #090b0d;
    border-radius: 50%;
    background: #c8ff63;
}

.app-recommendation-reason {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 8px;
    padding: 6px 10px;
    border: 1px solid rgba(200, 255, 99, .24);
    border-radius: 999px;
    background: rgba(200, 255, 99, .07);
    color: #dfff9d;
    font-size: 12px;
    font-weight: 650;
}

.app-recommendation-reason::before {
    content: "✦";
    color: #c8ff63;
}

.app-notification-page,
.app-preferences-page {
    width: min(920px, calc(100% - 32px));
    padding-top: 40px;
    padding-bottom: 96px;
}

.app-notification-header,
.app-preferences-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 24px;
}

.app-notification-header > div > span,
.app-preferences-header > div > span {
    color: #c8ff63;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.app-notification-header h1,
.app-preferences-header h1 {
    margin: 5px 0 8px;
    font-family: "Space Grotesk", sans-serif;
    font-size: clamp(32px, 5vw, 52px);
    letter-spacing: -.04em;
}

.app-notification-header p,
.app-preferences-header p {
    max-width: 650px;
    margin: 0;
    color: #a8b0a8;
    line-height: 1.55;
}

.app-notification-settings-link {
    flex: 0 0 auto;
    padding: 11px 15px;
    border: 1px solid #303831;
    border-radius: 12px;
    color: #eff7ec;
    font-weight: 700;
}

.app-notification-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 10px 0 18px;
    border-bottom: 1px solid #252b26;
}

.app-notification-tabs {
    display: flex;
    gap: 8px;
}

.app-notification-tabs a {
    padding: 9px 14px;
    border-radius: 999px;
    color: #a8b0a8;
    font-weight: 700;
}

.app-notification-tabs a.is-active {
    background: #e9f0e5;
    color: #0a0d0a;
}

.app-notification-tabs span {
    display: inline-grid;
    place-items: center;
    min-width: 20px;
    height: 20px;
    margin-left: 4px;
    border-radius: 999px;
    background: rgba(10, 13, 10, .12);
    font-size: 11px;
}

.app-notification-toolbar form button {
    border: 0;
    background: transparent;
    color: #c8ff63;
    font: inherit;
    font-weight: 750;
    cursor: pointer;
}

.app-notification-list {
    display: grid;
    margin-top: 12px;
}

.app-notification-card {
    position: relative;
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr) auto;
    align-items: center;
    gap: 16px;
    min-height: 96px;
    padding: 18px 16px;
    border-bottom: 1px solid #222823;
    color: #eef4eb;
    transition: background .18s ease, transform .18s ease;
}

.app-notification-card:hover {
    background: rgba(255, 255, 255, .025);
}

.app-notification-card.is-unread {
    background: linear-gradient(90deg, rgba(200, 255, 99, .08), transparent 58%);
}

.app-notification-type {
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    border: 1px solid #303831;
    border-radius: 15px;
    background: #121713;
    color: #c8ff63;
    font-family: "Space Grotesk", sans-serif;
    font-weight: 800;
}

.app-notification-type.type-outbid {
    background: rgba(255, 154, 96, .1);
    color: #ffb98f;
}

.app-notification-type.type-auction_ending {
    background: rgba(255, 219, 101, .09);
    color: #ffe28e;
}

.app-notification-type.type-new_results {
    background: rgba(105, 209, 255, .08);
    color: #9edfff;
}

.app-notification-copy {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.app-notification-copy strong {
    overflow: hidden;
    font-size: 15px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.app-notification-copy > span {
    color: #aab2aa;
    font-size: 13px;
    line-height: 1.45;
}

.app-notification-copy small {
    color: #717a72;
    font-size: 11px;
}

.app-notification-card > b {
    color: #778078;
    font-size: 24px;
}

.app-notification-unread {
    position: absolute;
    top: 20px;
    right: 18px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #c8ff63;
}

.app-notification-empty {
    display: grid;
    justify-items: center;
    padding: 72px 24px;
    text-align: center;
}

.app-notification-empty > span {
    width: 64px;
    height: 64px;
    display: grid;
    place-items: center;
    border: 1px solid #303831;
    border-radius: 22px;
    background: #111612;
    color: #c8ff63;
    font-size: 26px;
}

.app-notification-empty h2 {
    margin: 20px 0 8px;
    font-family: "Space Grotesk", sans-serif;
}

.app-notification-empty p {
    max-width: 480px;
    margin: 0 0 22px;
    color: #9ca59d;
}

.app-preferences-header {
    justify-content: flex-start;
}

.app-preferences-header > a {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    border: 1px solid #303831;
    border-radius: 13px;
    color: #eef4eb;
    font-size: 27px;
}

.app-preferences-form {
    display: grid;
    gap: 18px;
}

.app-preference-group {
    overflow: hidden;
    border: 1px solid #29302a;
    border-radius: 20px;
    background: #0f1310;
}

.app-preference-group h2 {
    margin: 0;
    padding: 17px 20px 13px;
    border-bottom: 1px solid #252b26;
    color: #c8ff63;
    font-size: 12px;
    letter-spacing: .09em;
    text-transform: uppercase;
}

.app-preference-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
    padding: 18px 20px;
    border-bottom: 1px solid #202621;
    cursor: pointer;
}

.app-preference-row:last-child {
    border-bottom: 0;
}

.app-preference-row > span {
    display: grid;
    gap: 5px;
}

.app-preference-row strong {
    font-size: 15px;
}

.app-preference-row small {
    max-width: 620px;
    color: #929b93;
    font-size: 12px;
    line-height: 1.5;
}

.app-preference-toggle {
    width: 46px;
    height: 26px;
    flex: 0 0 auto;
    appearance: none;
    border: 1px solid #434b44;
    border-radius: 999px;
    background: #252b26;
    cursor: pointer;
    transition: background .18s ease, border-color .18s ease;
}

.app-preference-toggle::before {
    content: "";
    display: block;
    width: 20px;
    height: 20px;
    margin: 2px;
    border-radius: 50%;
    background: #a2aaa2;
    transition: transform .18s ease, background .18s ease;
}

.app-preference-toggle:checked {
    border-color: #c8ff63;
    background: #c8ff63;
}

.app-preference-toggle:checked::before {
    transform: translateX(20px);
    background: #081007;
}

.app-preference-toggle:focus-visible {
    outline: 3px solid rgba(200, 255, 99, .32);
    outline-offset: 3px;
}

.app-preferences-note {
    padding: 18px 20px;
    border: 1px solid rgba(200, 255, 99, .2);
    border-radius: 16px;
    background: rgba(200, 255, 99, .055);
}

.app-preferences-note strong {
    color: #dbff99;
}

.app-preferences-note p {
    margin: 6px 0 0;
    color: #aeb7ae;
    font-size: 13px;
    line-height: 1.5;
}

.app-preferences-save {
    justify-self: end;
    min-width: 220px;
}

@media (max-width: 900px) {
    .app-notification-page,
    .app-preferences-page {
        width: min(100% - 24px, 720px);
        padding-top: 20px;
        padding-bottom: calc(112px + env(safe-area-inset-bottom));
    }

    .app-notification-header,
    .app-preferences-header {
        gap: 14px;
        margin-bottom: 16px;
    }

    .app-notification-header h1,
    .app-preferences-header h1 {
        font-size: 31px;
    }

    .app-notification-header p,
    .app-preferences-header p {
        font-size: 13px;
    }

    .app-notification-settings-link {
        padding: 9px 11px;
        font-size: 12px;
    }

    .app-notification-card {
        grid-template-columns: 42px minmax(0, 1fr) 10px;
        gap: 12px;
        min-height: 88px;
        padding: 15px 8px;
    }

    .app-notification-type {
        width: 42px;
        height: 42px;
        border-radius: 13px;
    }

    .app-notification-copy strong {
        padding-right: 12px;
        font-size: 14px;
    }

    .app-notification-copy > span {
        display: -webkit-box;
        overflow: hidden;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
        font-size: 12px;
    }

    .app-notification-unread {
        top: 17px;
        right: 12px;
    }

    .app-preference-group {
        border-radius: 16px;
    }

    .app-preference-row {
        gap: 14px;
        padding: 16px;
    }

    .app-preference-row strong {
        font-size: 14px;
    }

    .app-preference-row small {
        font-size: 11px;
    }

    .app-preferences-save {
        width: 100%;
        justify-self: stretch;
    }
}

@media (max-width: 420px) {
    .app-notification-header {
        display: grid;
    }

    .app-notification-settings-link {
        justify-self: start;
    }

    .app-notification-toolbar {
        align-items: flex-start;
    }

    .app-notification-toolbar form button {
        font-size: 12px;
    }
}
