.nbf-shell {
    padding-top: 2.75rem;
}

.nbf-overview-layout {
    display: grid;
    grid-template-columns: minmax(250px, 300px) minmax(0, 1fr);
    gap: 2rem;
    align-items: start;
}

.nbf-overview-content {
    min-width: 0;
}

.nbf-forum-heading {
    min-height: 76px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin: 0 0 1.25rem;
    padding: 0.75rem 1.1rem;
    border: 1px solid rgba(47, 39, 43, 0.1);
    border-radius: 14px;
    background: #fff;
}

.nbf-forum-heading span {
    color: #9a5964;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.nbf-forum-heading h1 {
    margin: 0.1rem 0 0;
    color: #3f3036;
    font-family: Fraunces, Georgia, serif;
    font-size: clamp(1.65rem, 3vw, 2.15rem);
    line-height: 1.05;
}

.nbf-overview-layout .nbf-section-head {
    margin-top: 0;
}

.nbf-access-card {
    position: sticky;
    top: 1.5rem;
    padding: 1.5rem;
    border: 1px solid rgba(47, 39, 43, 0.1);
    border-radius: 22px;
    background: linear-gradient(145deg, #fff, #f7eee9);
    box-shadow: 0 18px 42px rgba(47, 39, 43, 0.07);
}

.nbf-access-card h2 {
    margin: 0.4rem 0 0.85rem;
    font-family: Fraunces, Georgia, serif;
    font-size: clamp(1.75rem, 3vw, 2.35rem);
    line-height: 1.08;
}

.nbf-access-card p {
    line-height: 1.65;
    color: #675d61;
}

.nbf-access-card__avatar {
    width: 4rem;
    height: 4rem;
    display: grid;
    place-items: center;
    margin: 0.9rem 0;
    border-radius: 50%;
    background: linear-gradient(145deg, #e8b49d, #b76a73);
    color: #fff;
    font-size: 1.5rem;
    font-weight: 800;
}

.nbf-access-card__actions {
    display: grid;
    gap: 0.7rem;
    margin-top: 1.2rem;
}

.nbf-access-card__button {
    display: inline-flex;
    justify-content: center;
    padding: 0.78rem 1rem;
    border-radius: 999px;
    background: #b76a73;
    color: #fff;
    font-weight: 800;
    text-align: center;
}

.nbf-access-card__button:hover {
    color: #fff;
    background: #9f5963;
}

.nbf-access-card__button.is-secondary {
    background: #eee4df;
    color: #5d434b;
}

.nbf-access-card__button.is-secondary:hover {
    background: #e4d4cd;
    color: #4c363e;
}

.nbf-access-card__hint {
    padding: 0.75rem 0.85rem;
    border-radius: 12px;
    background: rgba(232, 180, 157, 0.18);
    font-size: 0.92rem;
}

.nbf-access-card__account {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(47, 39, 43, 0.1);
}

.nbf-sidebar-search {
    margin-top: 0;
}

.nbf-sidebar-search label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.86rem;
    font-weight: 800;
}

.nbf-sidebar-search > div {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 42px;
}

.nbf-sidebar-search input {
    min-width: 0;
    padding: 0.72rem 0.8rem;
    border: 1px solid rgba(47, 39, 43, 0.18);
    border-radius: 10px 0 0 10px;
    background: #fff;
    font: inherit;
}

.nbf-sidebar-search button {
    border: 0;
    border-radius: 0 10px 10px 0;
    background: #b76a73;
    color: #fff;
    font-size: 1.25rem;
    cursor: pointer;
}

.nbf-sidebar-search__reset {
    display: inline-block;
    margin-top: 0.55rem;
    color: #9a5964;
    font-size: 0.82rem;
    font-weight: 750;
}

.nbf-sidebar-areas {
    display: grid;
    gap: 0.45rem;
    margin-top: 1.5rem;
    padding-top: 1.35rem;
    border-top: 1px solid rgba(47, 39, 43, 0.1);
}

.nbf-sidebar-areas > .nbf-kicker {
    margin-bottom: 0.35rem;
}

.nbf-sidebar-area {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.7rem 0.8rem;
    border: 1px solid transparent;
    border-radius: 11px;
    background: rgba(255, 255, 255, 0.66);
}

.nbf-sidebar-area span {
    color: #756a6e;
    font-size: 0.78rem;
    white-space: nowrap;
}

.nbf-sidebar-area:hover,
.nbf-sidebar-area.is-active {
    border-color: rgba(183, 106, 115, 0.38);
    background: #fff;
    color: #9a5964;
}

.nbf-form__selected-area {
    margin: 0;
    padding: 0.8rem 0.9rem;
    border-radius: 12px;
    background: rgba(232, 180, 157, 0.18);
}

.nbf-topic-row__title {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.nbf-topic-row__title > a {
    color: inherit;
}

.nbf-topic-row__title .nbf-translate {
    padding: 0.16rem 0.5rem;
    border: 1px solid rgba(154, 89, 100, 0.3);
    border-radius: 999px;
    background: #fff8f5;
    font-size: 0.72rem;
    font-weight: 700;
}

.nbf-translation-wrap.is-inline {
    display: block;
    margin-top: 1rem;
}

.nbf-translation-wrap.is-inline .nbf-translate {
    display: none;
}

.nbf-translation-wrap.is-inline .nbf-translation-popover,
.nbf-translation-wrap.is-inline .nbf-translation-popover.is-visible {
    position: static;
    display: block;
    width: 100%;
    max-height: none;
    overflow: visible;
    padding: 1rem 1.1rem;
    background: #f8f2ed;
    color: #2f272b;
    border: 1px solid rgba(154, 89, 100, 0.16);
    box-shadow: none;
}

.nbf-avatar-reply-control {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem 1rem;
    margin: 0 0 1rem;
    padding: 0.9rem 1rem;
    border: 1px solid rgba(154, 89, 100, 0.18);
    border-radius: 14px;
    background: #fff8f5;
}

.nbf-avatar-reply-control button {
    padding: 0.65rem 1rem;
    border: 0;
    border-radius: 999px;
    background: #9a5964;
    color: #fff;
    font-weight: 800;
    cursor: pointer;
}

.nbf-avatar-reply-control small {
    color: #756a6e;
}

.nbf-action-notice {
    margin: 0 0 1rem;
    padding: 0.8rem 1rem;
    border-radius: 12px;
    background: #edf7ef;
    color: #285c35;
}

.nbf-action-notice.is-error {
    background: #fff0f0;
    color: #8a3030;
}

.nbf-thread {
    position: relative;
    --nbf-thread-indent: clamp(2.25rem, 6vw, 4.75rem);
}

.nbf-thread .nbf-post:not(.nbf-post--topic) {
    position: relative;
    width: auto;
    margin-left: var(--nbf-thread-indent);
}

.nbf-thread .nbf-post:not(.nbf-post--topic)::before {
    content: "";
    position: absolute;
    top: -1.05rem;
    bottom: -1.05rem;
    left: calc(0rem - var(--nbf-thread-indent));
    width: var(--nbf-thread-indent);
    border-left: 2px solid rgba(154, 89, 100, 0.2);
    border-bottom: 2px solid rgba(154, 89, 100, 0.2);
    border-bottom-left-radius: 16px;
    pointer-events: none;
}

.nbf-thread .nbf-post:not(.nbf-post--topic)::after {
    content: "";
    position: absolute;
    top: 1.55rem;
    left: calc(-0.35rem - var(--nbf-thread-indent));
    width: 0.72rem;
    height: 0.72rem;
    border: 2px solid #b76a73;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 0 0 4px #f8f2ed;
    pointer-events: none;
}

.nbf-thread .nbf-post:not(.nbf-post--topic):last-child::before {
    bottom: 50%;
}

.nbf-topic-head h1 {
    margin: 0.35rem 0 0.75rem;
    font-family: Fraunces, Georgia, serif;
    font-size: clamp(2rem, 4vw, 3.25rem);
    line-height: 1.08;
}

.nbf-pagination {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-top: 1.5rem;
}

.nbf-pagination a {
    min-width: 2.5rem;
    height: 2.5rem;
    display: grid;
    place-items: center;
    border: 1px solid rgba(154, 89, 100, 0.25);
    border-radius: 50%;
    background: #fff;
    color: #74505a;
    font-weight: 800;
}

.nbf-pagination a.is-current {
    background: #9a5964;
    color: #fff;
}

.nbf-active-since,
.nbf-account-since {
    color: #9a5964 !important;
    font-size: 0.78rem;
    font-weight: 750;
}

.nbf-account-since {
    margin: -0.45rem 0 0.7rem !important;
}

.nbf-pseudonym-settings {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(47, 39, 43, 0.1);
}

.nbf-pseudonym-settings summary {
    color: #9a5964;
    font-weight: 800;
    cursor: pointer;
}

.nbf-pseudonym-settings form {
    display: grid;
    gap: 0.65rem;
    margin-top: 0.8rem;
}

.nbf-pseudonym-settings label {
    display: grid;
    gap: 0.35rem;
    font-size: 0.82rem;
    font-weight: 750;
}

.nbf-pseudonym-settings input {
    width: 100%;
    padding: 0.68rem 0.75rem;
    border: 1px solid rgba(47, 39, 43, 0.18);
    border-radius: 10px;
    background: #fff;
    font: inherit;
}

.nbf-pseudonym-settings button {
    padding: 0.65rem 0.85rem;
    border: 0;
    border-radius: 999px;
    background: #9a5964;
    color: #fff;
    font-weight: 800;
    cursor: pointer;
}

.nbf-pseudonym-settings small {
    display: block;
    margin-top: 0.7rem;
    color: #756a6e;
    line-height: 1.45;
}

.nbf-pseudonym-message {
    margin-top: 0.8rem !important;
    padding: 0.65rem 0.75rem;
    border-radius: 10px;
    background: #fff0f0;
    color: #8a3030 !important;
    font-size: 0.82rem;
}

.nbf-pseudonym-message.is-success {
    background: #edf7ef;
    color: #285c35 !important;
}

@media (max-width: 767.98px) {
    .nbf-thread .nbf-post:not(.nbf-post--topic) {
        margin-left: var(--nbf-thread-indent);
    }

    .nbf-thread {
        --nbf-thread-indent: 1.4rem;
    }

    .nbf-thread .nbf-post:not(.nbf-post--topic)::after {
        top: 1.35rem;
    }
}

@media (max-width: 991.98px) {
    .nbf-overview-layout {
        grid-template-columns: 1fr;
    }

    .nbf-access-card {
        position: static;
    }

    .nbf-area-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767.98px) {
    .nbf-area-grid {
        grid-template-columns: 1fr;
    }
}
