.nb-comments {
    margin: 48px auto 0;
    max-width: 1120px;
}

.nb-comments__header,
.nb-notifications__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.nb-comments__notice {
    min-height: 24px;
    margin: 8px 0;
}

.nb-comments__notice.is-error {
    color: #b42318;
}

.nb-notifications {
    margin-top: 32px;
}

.nb-notifications ul {
    list-style: none;
    padding: 0;
}

.nb-notifications li {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 0;
    border-top: 1px solid rgba(127, 127, 127, .2);
}

.nb-notifications li.is-unread {
    font-weight: 700;
}

.nb-comments#comments {
    scroll-margin-top: 104px;
}

.nb-comments#comments:focus {
    outline: none;
}

/* YouTube-style discussion on prompt pages */
body.nbpc-single-prompt-page .nbpc-discussion-shell .nb-comments,
body.nbpc-page .nbpc-discussion-shell .nb-comments {
    width: 100%;
    max-width: none;
    margin: 0;
    color: #0f0f0f;
}

body.nbpc-single-prompt-page .nbpc-discussion-shell .nb-comments__header,
body.nbpc-page .nbpc-discussion-shell .nb-comments__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 18px;
}

body.nbpc-single-prompt-page .nbpc-discussion-shell .nb-comments__header h2,
body.nbpc-page .nbpc-discussion-shell .nb-comments__header h2 {
    display: inline-flex;
    align-items: baseline;
    gap: 8px;
    margin: 0;
    color: #0f0f0f;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 0;
}

body.nbpc-single-prompt-page .nbpc-discussion-shell .nb-comments__count,
body.nbpc-page .nbpc-discussion-shell .nb-comments__count {
    color: #606060;
    font-size: 14px;
    font-weight: 400;
}

body.nbpc-single-prompt-page .nbpc-discussion-shell .nb-comments__sort,
body.nbpc-page .nbpc-discussion-shell .nb-comments__sort {
    min-width: 180px;
    min-height: 36px;
    padding: 0 34px 0 12px;
    color: #0f0f0f;
    background-color: #fff;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23606060' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m7 10 5 5 5-5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 16px 16px;
    border: 1px solid rgba(15, 15, 15, .12);
    border-radius: 8px;
    appearance: none;
    font: inherit;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
}

body.nbpc-single-prompt-page .nbpc-discussion-shell .nb-comments__sort:focus,
body.nbpc-page .nbpc-discussion-shell .nb-comments__sort:focus {
    outline: none;
    border-color: rgba(102, 84, 255, .45);
    box-shadow: 0 0 0 2px rgba(102, 84, 255, .12);
}

body.nbpc-single-prompt-page .nbpc-discussion-shell .nb-comments__composer,
body.nbpc-page .nbpc-discussion-shell .nb-comments__composer {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin: 0 0 24px;
}

body.nbpc-single-prompt-page .nbpc-discussion-shell .nb-comments__composer-avatar,
body.nbpc-page .nbpc-discussion-shell .nb-comments__composer-avatar,
body.nbpc-single-prompt-page .nbpc-discussion-shell .nb-comment__avatar img,
body.nbpc-page .nbpc-discussion-shell .nb-comment__avatar img {
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    object-fit: cover;
    border-radius: 50%;
}

body.nbpc-single-prompt-page .nbpc-discussion-shell .nb-comments__form,
body.nbpc-page .nbpc-discussion-shell .nb-comments__form {
    display: block;
    flex: 1;
    min-width: 0;
    margin: 0;
    padding: 0 0 8px;
    background: transparent;
    border: 0;
    border-bottom: 1px solid rgba(15, 15, 15, .12);
    border-radius: 0;
    box-shadow: none;
}

body.nbpc-single-prompt-page .nbpc-discussion-shell .nb-comments__form textarea,
body.nbpc-page .nbpc-discussion-shell .nb-comments__form textarea {
    width: 100%;
    min-height: 24px;
    max-height: 180px;
    padding: 0;
    color: #0f0f0f;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    font: inherit;
    font-size: 14px;
    line-height: 1.45;
    resize: vertical;
    box-sizing: border-box;
}

body.nbpc-single-prompt-page .nbpc-discussion-shell .nb-comments__form textarea::placeholder,
body.nbpc-page .nbpc-discussion-shell .nb-comments__form textarea::placeholder {
    color: #606060;
}

body.nbpc-single-prompt-page .nbpc-discussion-shell .nb-comments__form textarea:focus,
body.nbpc-page .nbpc-discussion-shell .nb-comments__form textarea:focus {
    outline: none;
}

body.nbpc-single-prompt-page .nbpc-discussion-shell .nb-comments__form-actions,
body.nbpc-page .nbpc-discussion-shell .nb-comments__form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 10px;
}

body.nbpc-single-prompt-page .nbpc-discussion-shell .nb-comments__form .nb-comments__submit,
body.nbpc-page .nbpc-discussion-shell .nb-comments__form .nb-comments__submit {
    min-height: 36px;
    padding: 0 16px;
    color: #fff;
    background: #065fd4;
    border: 0;
    border-radius: 999px;
    font: inherit;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}

body.nbpc-single-prompt-page .nbpc-discussion-shell .nb-comments__form .nb-comments__submit:hover,
body.nbpc-page .nbpc-discussion-shell .nb-comments__form .nb-comments__submit:hover {
    background: #0556bf;
}

body.nbpc-single-prompt-page .nbpc-discussion-shell .nb-comments__cancel-reply,
body.nbpc-page .nbpc-discussion-shell .nb-comments__cancel-reply {
    min-height: 36px;
    padding: 0 14px;
    color: #606060;
    background: transparent;
    border: 0;
    border-radius: 999px;
    font: inherit;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}

body.nbpc-single-prompt-page .nbpc-discussion-shell .nb-comments__cancel-reply:hover,
body.nbpc-page .nbpc-discussion-shell .nb-comments__cancel-reply:hover {
    background: rgba(15, 15, 15, .06);
}

body.nbpc-single-prompt-page .nbpc-discussion-shell .nb-comments__composer--reply,
body.nbpc-page .nbpc-discussion-shell .nb-comments__composer--reply {
    margin: 12px 0 0;
}

body.nbpc-single-prompt-page .nbpc-discussion-shell .nb-comments__composer--reply .nb-comments__form,
body.nbpc-page .nbpc-discussion-shell .nb-comments__composer--reply .nb-comments__form {
    border-bottom-color: rgba(15, 15, 15, .08);
}

body.nbpc-single-prompt-page .nbpc-discussion-shell .nb-comments__notice,
body.nbpc-page .nbpc-discussion-shell .nb-comments__notice {
    min-height: 0;
    margin: 0 0 12px;
    color: #606060;
    font-size: 13px;
}

body.nbpc-single-prompt-page .nbpc-discussion-shell .nb-comments__empty,
body.nbpc-page .nbpc-discussion-shell .nb-comments__empty {
    margin: 8px 0 0;
    padding: 0;
    color: #606060;
    font-size: 14px;
}

body.nbpc-single-prompt-page .nbpc-discussion-shell .nb-comments__login,
body.nbpc-page .nbpc-discussion-shell .nb-comments__login {
    margin: 0 0 16px;
    padding: 0;
    color: #606060;
    font-size: 14px;
}

body.nbpc-single-prompt-page .nbpc-discussion-shell .nb-comments__list,
body.nbpc-page .nbpc-discussion-shell .nb-comments__list {
    display: block;
}

body.nbpc-single-prompt-page .nbpc-discussion-shell .nb-comment,
body.nbpc-page .nbpc-discussion-shell .nb-comment {
    margin: 0;
    padding: 0;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
}

body.nbpc-single-prompt-page .nbpc-discussion-shell .nb-comments__list > .nb-comment,
body.nbpc-page .nbpc-discussion-shell .nb-comments__list > .nb-comment {
    padding: 16px 0;
}

body.nbpc-single-prompt-page .nbpc-discussion-shell .nb-comment__thread,
body.nbpc-page .nbpc-discussion-shell .nb-comment__thread {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

body.nbpc-single-prompt-page .nbpc-discussion-shell .nb-comment__avatar,
body.nbpc-page .nbpc-discussion-shell .nb-comment__avatar {
    flex: 0 0 40px;
}

body.nbpc-single-prompt-page .nbpc-discussion-shell .nb-comment__body,
body.nbpc-page .nbpc-discussion-shell .nb-comment__body {
    flex: 1;
    min-width: 0;
}

body.nbpc-single-prompt-page .nbpc-discussion-shell .nb-comment__meta,
body.nbpc-page .nbpc-discussion-shell .nb-comment__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    margin-bottom: 4px;
}

body.nbpc-single-prompt-page .nbpc-discussion-shell .nb-comment__author,
body.nbpc-page .nbpc-discussion-shell .nb-comment__author {
    color: #0f0f0f;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.3;
}

body.nbpc-single-prompt-page .nbpc-discussion-shell .nb-comment__dot,
body.nbpc-page .nbpc-discussion-shell .nb-comment__dot {
    color: #606060;
    font-size: 12px;
    line-height: 1;
}

body.nbpc-single-prompt-page .nbpc-discussion-shell .nb-comment__meta time,
body.nbpc-page .nbpc-discussion-shell .nb-comment__meta time {
    color: #606060;
    font-size: 12px;
    line-height: 1.3;
}

body.nbpc-single-prompt-page .nbpc-discussion-shell .nb-comment__badge,
body.nbpc-page .nbpc-discussion-shell .nb-comment__badge {
    display: inline-flex;
    align-items: center;
    min-height: 18px;
    padding: 0 6px;
    color: #065fd4;
    background: rgba(6, 95, 212, .08);
    border: 0;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 700;
}

body.nbpc-single-prompt-page .nbpc-discussion-shell .nb-comment__content,
body.nbpc-page .nbpc-discussion-shell .nb-comment__content {
    margin: 0 0 8px;
    color: #0f0f0f;
    font-size: 14px;
    line-height: 1.5;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

body.nbpc-single-prompt-page .nbpc-discussion-shell .nb-comment__content p,
body.nbpc-page .nbpc-discussion-shell .nb-comment__content p {
    margin: 0;
}

body.nbpc-single-prompt-page .nbpc-discussion-shell .nb-comment__actions,
body.nbpc-page .nbpc-discussion-shell .nb-comment__actions {
    display: flex;
    align-items: center;
    gap: 4px;
}

body.nbpc-single-prompt-page .nbpc-discussion-shell .nb-comment__reply,
body.nbpc-page .nbpc-discussion-shell .nb-comment__reply {
    min-height: 32px;
    padding: 0 10px;
    color: #606060;
    background: transparent;
    border: 0;
    border-radius: 999px;
    font: inherit;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
}

body.nbpc-single-prompt-page .nbpc-discussion-shell .nb-comment__reply:hover,
body.nbpc-page .nbpc-discussion-shell .nb-comment__reply:hover {
    color: #0f0f0f;
    background: rgba(15, 15, 15, .06);
}

body.nbpc-single-prompt-page .nbpc-discussion-shell .nb-comment__menu,
body.nbpc-page .nbpc-discussion-shell .nb-comment__menu {
    position: relative;
    margin-left: auto;
}

body.nbpc-single-prompt-page .nbpc-discussion-shell .nb-comment__menu-toggle,
body.nbpc-page .nbpc-discussion-shell .nb-comment__menu-toggle {
    display: inline-flex;
    width: 32px;
    height: 32px;
    align-items: center;
    justify-content: center;
    padding: 0;
    color: #606060;
    background: transparent;
    border: 0;
    border-radius: 50%;
    cursor: pointer;
}

body.nbpc-single-prompt-page .nbpc-discussion-shell .nb-comment__menu-toggle svg,
body.nbpc-page .nbpc-discussion-shell .nb-comment__menu-toggle svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

body.nbpc-single-prompt-page .nbpc-discussion-shell .nb-comment__menu-toggle:hover,
body.nbpc-page .nbpc-discussion-shell .nb-comment__menu-toggle:hover {
    color: #0f0f0f;
    background: rgba(15, 15, 15, .06);
}

body.nbpc-single-prompt-page .nbpc-discussion-shell .nb-comment__menu-panel,
body.nbpc-page .nbpc-discussion-shell .nb-comment__menu-panel {
    position: absolute;
    z-index: 5;
    top: calc(100% + 4px);
    right: 0;
    min-width: 180px;
    padding: 6px;
    background: #fff;
    border: 1px solid rgba(15, 15, 15, .1);
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(15, 15, 15, .12);
}

body.nbpc-single-prompt-page .nbpc-discussion-shell .nb-comment__menu-item,
body.nbpc-page .nbpc-discussion-shell .nb-comment__menu-item {
    display: block;
    width: 100%;
    min-height: 36px;
    padding: 0 12px;
    color: #0f0f0f;
    text-align: left;
    background: transparent;
    border: 0;
    border-radius: 8px;
    font: inherit;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
}

body.nbpc-single-prompt-page .nbpc-discussion-shell .nb-comment__menu-item:hover,
body.nbpc-page .nbpc-discussion-shell .nb-comment__menu-item:hover {
    background: rgba(15, 15, 15, .06);
}

body.nbpc-single-prompt-page .nbpc-discussion-shell .nb-comment__menu-item.nb-comment__delete,
body.nbpc-page .nbpc-discussion-shell .nb-comment__menu-item.nb-comment__delete {
    color: #cc0000;
}

body.nbpc-single-prompt-page .nbpc-discussion-shell .nb-comment__children,
body.nbpc-page .nbpc-discussion-shell .nb-comment__children {
    position: relative;
    margin: 6px 0 0 20px;
    padding: 0 0 0 14px;
    border-left: 2px solid rgba(15, 23, 42, .08);
}

body.nbpc-single-prompt-page .nbpc-discussion-shell .nb-comment__children .nb-comment,
body.nbpc-page .nbpc-discussion-shell .nb-comment__children .nb-comment {
    position: relative;
    padding: 12px 0 0;
}

body.nbpc-single-prompt-page .nbpc-discussion-shell .nb-comment__children > .nb-comment::before,
body.nbpc-page .nbpc-discussion-shell .nb-comment__children > .nb-comment::before,
body.nbpc-single-prompt-page .nbpc-discussion-shell .nb-comment__children > .nb-comment::after,
body.nbpc-page .nbpc-discussion-shell .nb-comment__children > .nb-comment::after,
body.nbpc-single-prompt-page .nbpc-discussion-shell .nb-comment__children::before,
body.nbpc-page .nbpc-discussion-shell .nb-comment__children::before {
    content: none;
    display: none;
}

body.nbpc-single-prompt-page .nbpc-discussion-shell .nb-comment[data-depth="1"] .nb-comment__avatar,
body.nbpc-page .nbpc-discussion-shell .nb-comment[data-depth="1"] .nb-comment__avatar,
body.nbpc-single-prompt-page .nbpc-discussion-shell .nb-comment[data-depth="2"] .nb-comment__avatar,
body.nbpc-page .nbpc-discussion-shell .nb-comment[data-depth="2"] .nb-comment__avatar {
    flex: 0 0 24px;
}

body.nbpc-single-prompt-page .nbpc-discussion-shell .nb-comment[data-depth="1"] .nb-comment__avatar img,
body.nbpc-page .nbpc-discussion-shell .nb-comment[data-depth="1"] .nb-comment__avatar img,
body.nbpc-single-prompt-page .nbpc-discussion-shell .nb-comment[data-depth="2"] .nb-comment__avatar img,
body.nbpc-page .nbpc-discussion-shell .nb-comment[data-depth="2"] .nb-comment__avatar img {
    width: 24px;
    height: 24px;
}

body.nbpc-single-prompt-page .nbpc-discussion-shell .nb-comment[data-depth="1"] .nb-comment__thread,
body.nbpc-page .nbpc-discussion-shell .nb-comment[data-depth="1"] .nb-comment__thread,
body.nbpc-single-prompt-page .nbpc-discussion-shell .nb-comment[data-depth="2"] .nb-comment__thread,
body.nbpc-page .nbpc-discussion-shell .nb-comment[data-depth="2"] .nb-comment__thread {
    gap: 12px;
}

body.nbpc-single-prompt-page .nbpc-discussion-shell .nb-comment[data-depth="1"] > .nb-comment__children,
body.nbpc-page .nbpc-discussion-shell .nb-comment[data-depth="1"] > .nb-comment__children,
body.nbpc-single-prompt-page .nbpc-discussion-shell .nb-comment[data-depth="2"] > .nb-comment__children,
body.nbpc-page .nbpc-discussion-shell .nb-comment[data-depth="2"] > .nb-comment__children {
    margin-left: 8px;
    padding-left: 12px;
}

body.nbpc-single-prompt-page .nbpc-discussion-shell .nb-comment--deleted,
body.nbpc-page .nbpc-discussion-shell .nb-comment--deleted {
    opacity: .72;
}

@media (max-width: 700px) {
    body.nbpc-single-prompt-page .nbpc-discussion-shell .nb-comments__header,
    body.nbpc-page .nbpc-discussion-shell .nb-comments__header,
    .nb-notifications__header,
    .nb-notifications li {
        align-items: flex-start;
        flex-direction: column;
    }

    body.nbpc-single-prompt-page .nbpc-discussion-shell .nb-comments__sort,
    body.nbpc-page .nbpc-discussion-shell .nb-comments__sort {
        width: 100%;
    }

    body.nbpc-single-prompt-page .nbpc-discussion-shell .nb-comment__children,
    body.nbpc-page .nbpc-discussion-shell .nb-comment__children {
        margin-left: 12px;
        padding-left: 12px;
    }

    body.nbpc-single-prompt-page .nbpc-discussion-shell .nb-comment[data-depth="1"] > .nb-comment__children,
    body.nbpc-page .nbpc-discussion-shell .nb-comment[data-depth="1"] > .nb-comment__children,
    body.nbpc-single-prompt-page .nbpc-discussion-shell .nb-comment[data-depth="2"] > .nb-comment__children,
    body.nbpc-page .nbpc-discussion-shell .nb-comment[data-depth="2"] > .nb-comment__children {
        margin-left: 6px;
        padding-left: 10px;
    }

    body.nbpc-single-prompt-page .nbpc-discussion-shell .nb-comments__composer,
    body.nbpc-page .nbpc-discussion-shell .nb-comments__composer {
        gap: 12px;
    }
}
