.bell-btn {
    position: relative;
    text-decoration: none;
}

.bell-count {
    position: absolute;
    top: 3px;
    right: 2px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.15rem;
    height: 1.15rem;
    padding: 0 .3rem;
    border-radius: 999px;
    background: var(--st-absent);
    color: #fff;
    font-size: .64rem;
    font-weight: 700;
    line-height: 1;
    box-shadow: 0 0 0 2px var(--ot-surface);
    pointer-events: none;
}

.bell-btn.is-ringing .ic,
.sidenav__item--bell.is-ringing .ic {
    animation: bell-ring .4s ease-out;
    transform-origin: 50% 10%;
}

@keyframes bell-ring {
    0% { transform: rotate(0); }
    30% { transform: rotate(12deg); }
    60% { transform: rotate(-8deg); }
    100% { transform: rotate(0); }
}

@media (max-width: 991.98px) {
    .sidenav__item--bell {
        display: none;
    }
}

.bell-panel {
    position: fixed;
    z-index: 1060;
    top: calc(var(--topbar-h) + 8px);
    right: 8px;
    left: 8px;
    display: flex;
    flex-direction: column;
    max-height: min(560px, calc(100vh - var(--topbar-h) - 24px));
    background: var(--ot-surface);
    color: var(--ot-text);
    border: 1px solid var(--ot-border);
    border-radius: 16px;
    box-shadow: 0 18px 48px rgba(16, 24, 40, .18), 0 2px 6px rgba(16, 24, 40, .06);
    overflow: hidden;
    opacity: 0;
    transform: translateY(-6px) scale(.985);
    transform-origin: top right;
    transition: opacity .18s ease-out, transform .22s ease-out;
}

[data-bs-theme="dark"] .bell-panel {
    box-shadow: 0 18px 48px rgba(0, 0, 0, .55), 0 2px 6px rgba(0, 0, 0, .35);
}

.bell-panel.is-open {
    opacity: 1;
    transform: none;
}

@media (min-width: 576px) {
    .bell-panel {
        left: auto;
        width: 384px;
    }
}

@media (min-width: 992px) {
    .bell-panel {
        top: auto;
        bottom: var(--nav-gap);
        right: calc(var(--nav-rail) + var(--nav-gap) + 10px);
        max-height: min(600px, calc(100vh - 2 * var(--nav-gap)));
        transform-origin: bottom right;
    }

    html[data-nav="pinned"] .bell-panel {
        right: calc(var(--nav-wide) + var(--nav-gap) + 10px);
    }
}

.bell-panel__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    padding: .95rem 1rem .85rem 1.1rem;
    border-bottom: 1px solid var(--ot-border);
}

.bell-panel__head form {
    margin: 0;
}

.bell-panel__heading {
    display: flex;
    align-items: center;
    gap: .5rem;
    min-width: 0;
}

.bell-panel__title {
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.3;
}

.bell-panel__pill {
    padding: .15rem .5rem;
    border-radius: 999px;
    background: var(--st-absent-bg);
    color: var(--st-absent);
    font-size: .72rem;
    font-weight: 700;
    white-space: nowrap;
}

.bell-panel__action {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    padding: .35rem .6rem;
    border: 1px solid transparent;
    border-radius: 8px;
    background: transparent;
    color: var(--ot-primary);
    font-size: .8rem;
    font-weight: 600;
    white-space: nowrap;
    transition: background .15s ease-out, border-color .15s ease-out;
}

.bell-panel__action:hover:not(:disabled),
.bell-panel__action:focus-visible {
    background: var(--ot-primary-soft);
    border-color: var(--ot-border);
}

.bell-panel__action:disabled {
    color: var(--ot-muted);
    opacity: .6;
}

.bell-panel__action .ic {
    width: 1rem;
    height: 1rem;
}

.bell-panel__list {
    flex: 1 1 auto;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: .4rem;
}

.bell-panel__foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    padding: .7rem 1.1rem;
    border-top: 1px solid var(--ot-border);
    background: var(--ot-surface-alt);
}

.bell-panel__link {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    color: var(--ot-primary);
    font-size: .86rem;
    font-weight: 600;
    text-decoration: none;
}

.bell-panel__link:hover {
    text-decoration: underline;
}

.bell-panel__link--muted {
    color: var(--ot-muted);
}

.bell-panel__link .ic {
    width: .95rem;
    height: .95rem;
}

.bell-panel__loading {
    padding: 2.5rem 1rem;
    color: var(--ot-muted);
    text-align: center;
    font-size: .88rem;
}

.bell-item {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: .75rem;
    padding: .7rem .75rem;
    border-radius: 12px;
    color: var(--ot-text);
    text-decoration: none;
    transition: background .15s ease-out;
}

.bell-item + .bell-item {
    margin-top: 2px;
}

.bell-item:hover,
.bell-item:focus-visible {
    background: var(--ot-surface-alt);
    color: var(--ot-text);
}

.bell-item.is-unread {
    background: color-mix(in srgb, var(--ot-primary-soft) 55%, transparent);
}

.bell-item.is-unread:hover {
    background: var(--ot-primary-soft);
}

.bell-item__icon,
.notify-row__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 34px;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: var(--ot-primary-soft);
    color: var(--ot-primary);
}

.bell-item__icon .ic,
.notify-row__icon .ic {
    width: 1rem;
    height: 1rem;
}

.bell-item--success .bell-item__icon,
.notify-row--success .notify-row__icon {
    background: var(--st-present-bg);
    color: var(--st-present);
}

.bell-item--warning .bell-item__icon,
.notify-row--warning .notify-row__icon {
    background: var(--st-partial-bg);
    color: var(--st-partial);
}

.bell-item--danger .bell-item__icon,
.notify-row--danger .notify-row__icon {
    background: var(--st-absent-bg);
    color: var(--st-absent);
}

.bell-item__body {
    display: flex;
    flex-direction: column;
    gap: .2rem;
    min-width: 0;
    flex: 1 1 auto;
    padding-right: .6rem;
}

.bell-item__title {
    font-size: .9rem;
    font-weight: 600;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.bell-item__text {
    color: var(--ot-muted);
    font-size: .82rem;
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    overflow-wrap: anywhere;
}

.bell-item__meta {
    color: var(--ot-muted);
    font-size: .74rem;
    line-height: 1.4;
}

.bell-item__dot {
    position: absolute;
    top: 1rem;
    right: .7rem;
    width: .5rem;
    height: .5rem;
    border-radius: 50%;
    background: var(--ot-primary);
}

.bell-empty,
.notify-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .45rem;
    padding: 2.25rem 1.25rem;
    text-align: center;
}

.bell-empty__icon,
.notify-empty__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    margin-bottom: .35rem;
    border-radius: 16px;
    background: var(--ot-primary-soft);
    color: var(--ot-primary);
}

.bell-empty__icon .ic,
.notify-empty__icon .ic {
    width: 1.35rem;
    height: 1.35rem;
}

.bell-empty__title {
    font-weight: 700;
    line-height: 1.3;
}

.bell-empty__text {
    max-width: 30ch;
    color: var(--ot-muted);
    font-size: .85rem;
    line-height: 1.5;
}

.notify-filters {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: .75rem 1rem;
    margin-bottom: 1rem;
}

.notify-filters__group {
    display: flex;
    flex-wrap: wrap;
    gap: .45rem;
}

.notify-chip {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    min-height: 36px;
    padding: .4rem .85rem;
    border: 1px solid var(--ot-border);
    border-radius: 999px;
    background: var(--ot-surface);
    color: var(--ot-text);
    font-size: .86rem;
    font-weight: 600;
    line-height: 1.35;
    text-decoration: none;
    transition: background .15s ease-out, border-color .15s ease-out, color .15s ease-out;
}

.notify-chip:hover {
    border-color: var(--ot-primary);
    color: var(--ot-primary);
}

.notify-chip.is-active {
    border-color: var(--ot-primary);
    background: var(--ot-primary);
    color: var(--ot-on-primary);
}

.notify-chip .ic {
    width: .95rem;
    height: .95rem;
}

.notify-chip__count {
    min-width: 1.4rem;
    padding: .05rem .4rem;
    border-radius: 999px;
    background: var(--ot-surface-alt);
    color: var(--ot-muted);
    font-size: .74rem;
    text-align: center;
}

.notify-chip.is-active .notify-chip__count {
    background: rgba(255, 255, 255, .22);
    color: inherit;
}

.notify-chip--soft {
    font-weight: 500;
}

.notify-chip--soft.is-active {
    background: var(--ot-primary-soft);
    color: var(--ot-primary);
}

.notify-feed {
    padding: .5rem;
}

.notify-feed__day {
    padding: .9rem .9rem .45rem;
    color: var(--ot-muted);
    font-size: .74rem;
    font-weight: 700;
    letter-spacing: .05em;
    text-transform: uppercase;
}

.notify-feed__day:first-child {
    padding-top: .55rem;
}

.notify-row {
    display: flex;
    align-items: flex-start;
    gap: .9rem;
    padding: .9rem;
    border-radius: 12px;
    transition: background .15s ease-out;
}

.notify-row + .notify-row {
    border-top: 1px solid var(--ot-border);
    border-top-left-radius: 0;
    border-top-right-radius: 0;
}

.notify-row:hover {
    background: var(--ot-surface-alt);
}

.notify-row.is-unread {
    background: color-mix(in srgb, var(--ot-primary-soft) 50%, transparent);
}

.notify-row__body {
    flex: 1 1 auto;
    min-width: 0;
}

.notify-row__title {
    margin: 0 0 .25rem;
    font-size: .98rem;
    font-weight: 600;
    line-height: 1.4;
    overflow-wrap: anywhere;
}

.notify-row__title a {
    color: var(--ot-text);
    text-decoration: none;
}

.notify-row__title a:hover {
    color: var(--ot-primary);
    text-decoration: underline;
}

.notify-row__text {
    margin: 0 0 .4rem;
    color: var(--ot-muted);
    font-size: .88rem;
    line-height: 1.55;
    overflow-wrap: anywhere;
}

.notify-row__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .25rem .75rem;
    color: var(--ot-muted);
    font-size: .78rem;
    line-height: 1.4;
}

.notify-row__new {
    padding: .05rem .45rem;
    border-radius: 999px;
    background: var(--ot-primary);
    color: var(--ot-on-primary);
    font-size: .68rem;
    font-weight: 700;
}

.notify-row__actions {
    display: flex;
    align-items: center;
    gap: .5rem;
    flex: 0 0 auto;
}

.notify-row__actions form {
    margin: 0;
}

.notify-row__mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border: 1px solid transparent;
    border-radius: 8px;
    background: transparent;
    transition: background .15s ease-out, border-color .15s ease-out;
}

.notify-row__mark:hover,
.notify-row__mark:focus-visible {
    background: var(--ot-surface);
    border-color: var(--ot-border);
}

.notify-row__ring {
    width: .7rem;
    height: .7rem;
    border: 2px solid var(--ot-muted);
    border-radius: 50%;
}

.notify-row__mark.is-unread .notify-row__ring {
    border-color: var(--ot-primary);
    background: var(--ot-primary);
}

.notify-empty__title {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 700;
}

.notify-empty__text {
    max-width: 52ch;
    margin: 0 0 .5rem;
    color: var(--ot-muted);
    line-height: 1.55;
}

.notify-pages {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: .75rem;
    margin-bottom: 1.5rem;
}

.notify-pages__info {
    color: var(--ot-muted);
    font-size: .86rem;
}

@media (max-width: 575.98px) {
    .notify-row {
        flex-wrap: wrap;
        gap: .7rem;
    }

    .notify-row__body {
        flex-basis: calc(100% - 50px);
    }

    .notify-row__actions {
        width: 100%;
        justify-content: flex-end;
    }
}

.notify-legend {
    display: none;
}

.notify-group {
    overflow: hidden;
}

.notify-group--admin {
    border-color: var(--ot-admin-border);
}

.notify-group__head {
    display: flex;
    align-items: flex-start;
    gap: .9rem;
    padding: 1.1rem 1.25rem;
    border-bottom: 1px solid var(--ot-border);
    background: linear-gradient(180deg, var(--ot-surface-alt), var(--ot-surface));
}

.notify-group__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 40px;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: var(--ot-primary-soft);
    color: var(--ot-primary);
}

.notify-group--admin .notify-group__icon {
    background: var(--ot-admin-bg);
    color: var(--ot-admin);
}

.notify-group__icon .ic {
    width: 1.1rem;
    height: 1.1rem;
}

.notify-group__titles {
    min-width: 0;
}

.notify-group__title {
    margin: 0 0 .2rem;
    font-size: 1.02rem;
    font-weight: 700;
}

.notify-group__hint {
    margin: 0;
    color: var(--ot-muted);
    font-size: .86rem;
    line-height: 1.5;
}

.notify-pref {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem 1.5rem;
    padding: 1rem 1.25rem;
}

.notify-pref + .notify-pref {
    border-top: 1px solid var(--ot-border);
}

.notify-pref__text {
    min-width: 0;
    flex: 1 1 auto;
}

.notify-pref__title {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .35rem .6rem;
    font-weight: 600;
    line-height: 1.4;
}

.notify-pref__lock {
    display: inline-flex;
    align-items: center;
    gap: .25rem;
    padding: .1rem .5rem;
    border-radius: 999px;
    background: var(--st-not_required-bg);
    color: var(--ot-muted);
    font-size: .72rem;
    font-weight: 600;
}

.notify-pref__lock .ic {
    width: .75rem;
    height: .75rem;
}

.notify-pref__desc {
    margin-top: .2rem;
    color: var(--ot-muted);
    font-size: .88rem;
    line-height: 1.5;
}

.notify-pref__why {
    margin-top: .5rem;
    padding: .55rem .75rem;
    border-left: 3px solid var(--ot-border);
    border-radius: 0 8px 8px 0;
    background: var(--ot-surface-alt);
    color: var(--ot-muted);
    font-size: .82rem;
    line-height: 1.55;
}

.notify-pref__state {
    display: inline-block;
    margin-left: .2rem;
    color: var(--st-present);
    font-weight: 600;
}

.notify-pref__state--off {
    color: var(--ot-muted);
}

.notify-pref__switches {
    display: flex;
    flex: 0 0 auto;
    gap: .6rem;
}

.notify-switch {
    position: relative;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: .35rem;
    width: 88px;
    padding: .55rem .4rem .45rem;
    border: 1px solid var(--ot-border);
    border-radius: 12px;
    background: var(--ot-surface);
    cursor: pointer;
    transition: border-color .15s ease-out, background .15s ease-out;
}

.notify-switch:hover {
    border-color: var(--ot-primary);
}

.notify-switch.is-absent {
    cursor: default;
    background: transparent;
    border-style: dashed;
}

.notify-switch.is-absent:hover {
    border-color: var(--ot-border);
}

.is-locked .notify-switch {
    cursor: not-allowed;
}

.is-locked .notify-switch:hover {
    border-color: var(--ot-border);
}

.notify-switch__input {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
}

.notify-switch__track {
    position: relative;
    display: block;
    width: 40px;
    height: 22px;
    border-radius: 999px;
    background: var(--st-unset);
    transition: background .2s ease-out;
}

.notify-switch__knob {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 1px 3px rgba(16, 24, 40, .25);
    transition: transform .2s ease-out;
}

.notify-switch__input:checked + .notify-switch__track {
    background: var(--ot-primary);
}

.notify-switch__input:checked + .notify-switch__track .notify-switch__knob {
    transform: translateX(18px);
}

.notify-switch__input:focus-visible + .notify-switch__track {
    outline: 2px solid var(--ot-primary);
    outline-offset: 2px;
}

.notify-switch__input:disabled + .notify-switch__track {
    opacity: .55;
}

.notify-switch__none {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 22px;
    color: var(--ot-muted);
    font-weight: 600;
}

.notify-switch__label {
    display: inline-flex;
    align-items: center;
    gap: .25rem;
    color: var(--ot-muted);
    font-size: .72rem;
    font-weight: 600;
    line-height: 1.2;
    white-space: nowrap;
}

.notify-switch__label .ic {
    width: .78rem;
    height: .78rem;
}

.notify-digest {
    display: grid;
    gap: 1.25rem;
    padding: 1.15rem 1.25rem 1.3rem;
    border-top: 1px solid var(--ot-border);
    background: var(--ot-surface-alt);
}

.notify-digest__bar {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: .25rem 1rem;
}

.notify-digest__title {
    margin: 0 0 .6rem;
    font-size: .92rem;
    font-weight: 700;
}

.notify-digest__all {
    padding: 0;
    border: 0;
    background: none;
    color: var(--ot-primary);
    font-size: .82rem;
    font-weight: 600;
}

.notify-digest__all:hover {
    text-decoration: underline;
}

.notify-digest__empty {
    margin: 0;
    color: var(--ot-muted);
    font-size: .88rem;
    line-height: 1.55;
}

.notify-freq {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: .6rem;
}

.notify-freq__option {
    position: relative;
    display: block;
    cursor: pointer;
}

.notify-freq__option input {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
}

.notify-freq__card {
    display: flex;
    flex-direction: column;
    gap: .2rem;
    height: 100%;
    padding: .75rem .9rem .75rem 2.4rem;
    border: 1px solid var(--ot-border);
    border-radius: 12px;
    background: var(--ot-surface);
    transition: border-color .15s ease-out, box-shadow .15s ease-out;
}

.notify-freq__card::before {
    content: "";
    position: absolute;
    top: .95rem;
    left: .9rem;
    width: 1rem;
    height: 1rem;
    border: 2px solid var(--st-unset);
    border-radius: 50%;
    transition: border-color .15s ease-out, border-width .15s ease-out;
}

.notify-freq__option input:checked + .notify-freq__card {
    border-color: var(--ot-primary);
    box-shadow: 0 0 0 3px var(--ot-primary-soft);
}

.notify-freq__option input:checked + .notify-freq__card::before {
    border-color: var(--ot-primary);
    border-width: 5px;
}

.notify-freq__option input:focus-visible + .notify-freq__card {
    outline: 2px solid var(--ot-primary);
    outline-offset: 2px;
}

.notify-freq__name {
    font-weight: 600;
    line-height: 1.35;
}

.notify-freq__hint {
    color: var(--ot-muted);
    font-size: .8rem;
    line-height: 1.45;
}

.notify-tags {
    display: flex;
    flex-wrap: wrap;
    gap: .45rem;
}

.notify-tag {
    position: relative;
    display: inline-flex;
    max-width: 100%;
    cursor: pointer;
}

.notify-tag input {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
}

.notify-tag__box {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    max-width: 100%;
    min-height: 34px;
    padding: .35rem .8rem .35rem .6rem;
    border: 1px solid var(--ot-border);
    border-radius: 999px;
    background: var(--ot-surface);
    color: var(--ot-text);
    font-size: .85rem;
    line-height: 1.3;
    transition: border-color .15s ease-out, background .15s ease-out, color .15s ease-out;
}

.notify-tag__box .ic {
    flex: 0 0 .9rem;
    width: .9rem;
    height: .9rem;
    color: var(--st-unset);
    transition: color .15s ease-out;
}

.notify-tag input:checked + .notify-tag__box {
    border-color: var(--ot-primary);
    background: var(--ot-primary-soft);
    color: var(--ot-primary);
    font-weight: 600;
}

.notify-tag input:checked + .notify-tag__box .ic {
    color: var(--ot-primary);
}

.notify-tag input:focus-visible + .notify-tag__box {
    outline: 2px solid var(--ot-primary);
    outline-offset: 2px;
}

.notify-tag__name {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.notify-savebar {
    position: sticky;
    bottom: 12px;
    z-index: 5;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: .75rem 1.25rem;
    margin: 0 0 1.5rem;
    padding: .9rem 1.1rem;
    border: 1px solid var(--ot-border);
    border-radius: 14px;
    background: color-mix(in srgb, var(--ot-surface) 92%, transparent);
    box-shadow: var(--sh-2);
    backdrop-filter: blur(6px);
}

.notify-savebar__text {
    display: flex;
    flex-direction: column;
    gap: .15rem;
    min-width: 0;
}

.notify-savebar__title {
    font-weight: 600;
    line-height: 1.35;
}

.notify-savebar__hint {
    color: var(--ot-muted);
    font-size: .82rem;
    line-height: 1.4;
}

.notify-savebar__actions {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
}

@media (max-width: 767.98px) {
    .notify-pref {
        flex-direction: column;
        align-items: stretch;
    }

    .notify-pref__switches {
        justify-content: flex-start;
    }

    .notify-savebar {
        padding: .6rem;
    }

    .notify-savebar__text {
        display: none;
    }

    .notify-savebar__actions,
    .notify-savebar__actions .btn {
        width: 100%;
    }
}

.auth-wrap {
    display: flex;
    justify-content: center;
    padding: 1rem 0 2.5rem;
}

.auth-wrap--inline {
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 1.5rem;
    padding-top: 0;
}

.auth-tips {
    flex: 1 1 280px;
    max-width: 440px;
    padding: 1.4rem 1.5rem;
    border: 1px dashed var(--ot-border);
    border-radius: 18px;
    background: var(--ot-surface-alt);
}

.auth-tips__title {
    margin: 0 0 .9rem;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.35;
}

.auth-tips .auth-steps {
    margin-bottom: 1rem;
}

.auth-tips__note {
    margin: 0;
    color: var(--ot-muted);
    font-size: .84rem;
    line-height: 1.55;
}

.auth-card {
    position: relative;
    width: 100%;
    max-width: 460px;
    padding: 2rem 1.75rem 1.6rem;
    border: 1px solid var(--ot-border);
    border-radius: 18px;
    background:
        radial-gradient(420px 160px at 50% -40px, var(--ot-primary-soft), transparent 70%),
        var(--ot-surface);
    box-shadow: var(--sh-2);
    animation: auth-rise .32s ease-out both;
}

.auth-card--wide {
    max-width: 560px;
}

@keyframes auth-rise {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

.auth-card__badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    margin-bottom: 1rem;
    border-radius: 18px;
    background: var(--ot-primary);
    color: var(--ot-on-primary);
    box-shadow: 0 8px 22px color-mix(in srgb, var(--ot-primary) 35%, transparent);
}

.auth-card__badge .ic {
    width: 1.5rem;
    height: 1.5rem;
}

.auth-card__badge--success {
    background: var(--st-present);
    box-shadow: 0 8px 22px color-mix(in srgb, var(--st-present) 30%, transparent);
}

.auth-card__badge--danger {
    background: var(--st-absent);
    box-shadow: 0 8px 22px color-mix(in srgb, var(--st-absent) 30%, transparent);
}

[data-bs-theme="dark"] .auth-card__badge--success,
[data-bs-theme="dark"] .auth-card__badge--danger {
    color: #0B1218;
}

.auth-card__title {
    margin: 0 0 .6rem;
    font-size: 1.4rem;
    font-weight: 700;
    line-height: 1.3;
    overflow-wrap: anywhere;
}

.auth-card__hint {
    margin: 0 0 1.25rem;
    color: var(--ot-muted);
    line-height: 1.6;
    overflow-wrap: anywhere;
}

.auth-card__hint strong {
    color: var(--ot-text);
}

.auth-card__flash {
    margin: 0 0 1rem;
    padding: .65rem .85rem;
    border-radius: 10px;
    background: var(--st-present-bg);
    color: var(--st-present);
    font-weight: 600;
    line-height: 1.45;
}

.auth-card__actions {
    display: flex;
    flex-wrap: wrap;
    gap: .6rem;
    margin: 0;
}

.auth-card__note {
    margin: 1rem 0 0;
    color: var(--ot-muted);
    font-size: .82rem;
    line-height: 1.55;
}

.auth-card__links {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: .5rem 1rem;
    margin-top: 1.25rem;
    padding-top: 1rem;
    border-top: 1px solid var(--ot-border);
    font-size: .88rem;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.auth-form__field .form-label {
    font-weight: 600;
    margin-bottom: .35rem;
}

.auth-form__error {
    padding: .65rem .85rem;
    border-radius: 10px;
    background: var(--st-absent-bg);
    color: var(--st-absent);
    font-size: .88rem;
    line-height: 1.5;
}

.auth-form__trap {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.auth-steps {
    display: grid;
    gap: .5rem;
    margin: 0 0 1.4rem;
    padding: 0;
    list-style: none;
}

.auth-steps li {
    position: relative;
    padding-left: 1.4rem;
    color: var(--ot-text);
    font-size: .9rem;
    line-height: 1.5;
}

.auth-steps li::before {
    content: "";
    position: absolute;
    top: .55rem;
    left: .3rem;
    width: .45rem;
    height: .45rem;
    border-radius: 50%;
    background: var(--ot-primary);
}

.unsub-summary {
    display: grid;
    margin: 0 0 1.25rem;
    border: 1px solid var(--ot-border);
    border-radius: 12px;
    background: var(--ot-surface-alt);
}

.unsub-summary__row {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: .2rem 1rem;
    padding: .65rem .9rem;
}

.unsub-summary__row + .unsub-summary__row {
    border-top: 1px solid var(--ot-border);
}

.unsub-summary__label {
    color: var(--ot-muted);
    font-size: .86rem;
}

.unsub-summary__value {
    font-size: .9rem;
    font-weight: 600;
    text-align: right;
    overflow-wrap: anywhere;
}

.login-forgot {
    margin: -.35rem 0 1rem;
    text-align: right;
    font-size: .88rem;
}

.profile-links {
    display: grid;
    gap: .5rem;
}

.profile-link {
    display: flex;
    align-items: center;
    gap: .8rem;
    padding: .75rem .85rem;
    border: 1px solid var(--ot-border);
    border-radius: 12px;
    color: var(--ot-text);
    text-decoration: none;
    transition: border-color .15s ease-out, background .15s ease-out;
}

.profile-link:hover,
.profile-link:focus-visible {
    border-color: var(--ot-primary);
    background: var(--ot-primary-soft);
    color: var(--ot-text);
}

.profile-link__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 36px;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: var(--ot-primary-soft);
    color: var(--ot-primary);
}

.profile-link__icon .ic {
    width: 1rem;
    height: 1rem;
}

.profile-link__text {
    display: flex;
    flex-direction: column;
    gap: .15rem;
    min-width: 0;
    flex: 1 1 auto;
}

.profile-link__title {
    font-weight: 600;
    line-height: 1.35;
}

.profile-link__hint {
    color: var(--ot-muted);
    font-size: .8rem;
    line-height: 1.45;
}

.profile-link__arrow {
    flex: 0 0 auto;
    width: .9rem;
    height: .9rem;
    color: var(--ot-muted);
}

@media (max-width: 575.98px) {
    .auth-card {
        padding: 1.6rem 1.2rem 1.3rem;
        border-radius: 16px;
    }

    .auth-card__actions .btn {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .bell-panel,
    .auth-card,
    .bell-btn.is-ringing .ic,
    .sidenav__item--bell.is-ringing .ic {
        animation: none;
        transition: none;
    }
}

.bell-panel:focus {
    outline: none;
}
