/* ========== */
/* = Global = */
/* ========== */

body {
    /*resets*/
    margin: 0;
    padding: 0;
    border: 0;
    outline: 0;
    line-height: 1.3;
    text-decoration: none;
    list-style: none;
    height: 100%;
    overflow: hidden;
    text-rendering: optimizeLegibility;
    background-color: white;
    -webkit-overflow-scrolling: touch;
    scrollbar-color: #C2C2C2 #FAFAFA;
}

.NB-body-main {
    background-color: #F7F8F5;
}

/*::-webkit-scrollbar {
    width: 12px;
}
*/
::-webkit-scrollbar-thumb {
    background-color: #C2C2C2;
}

::-webkit-scrollbar-track {
    background-color: #FAFAFA;
}

.NB-layout {
    overflow: hidden;
    height: 100%;
    width: 100%;
    position: absolute;
}

a, a:active, a:hover, a:visited, button {
    outline: none;
}

a img {
    border: none;
}

.NB-hidden {
    display: none;
}

.NB-group {
    clear: both;
    overflow: hidden;
}

.NB-left {
    float: left;
}

.NB-right {
    float: right;
}

.NB-raquo {
    font-size: 18px;
    vertical-align: baseline;
    line-height: 12px;
}

hr {
    border: none;
    background-color: rgba(0, 0, 0, 0.3);
    height: 1px;
    width: 72%;
    margin-left: auto;
    margin-right: auto;
}

/* ================ */
/* = Restrictions = */
/* ================ */

.NB-staff-only {
    display: none !important;
}

.NB-staff .NB-staff-only {
    display: block !important;
}

/* =============== */
/* = Splash page = */
/* =============== */

.right-pane {
    display: none !important;
}

.NB-show-reader .right-pane {
    display: block !important;
}

.NB-splash {
    display: block;
}

.NB-show-reader .NB-splash {
    display: none;
}

#NB-splash {
    display: block;
    background-color: #F6F8F0;
}

.NB-show-reader #NB-splash {
    display: none;
}

#NB-splash-overlay {
    display: block;
}

.NB-show-reader #NB-splash-overlay {
    display: none;
}

.NB-splash-bottom {
    display: block;
}

.NB-show-reader .NB-splash-bottom {
    display: none;
}

.NB-show-reader .NB-feeds-header-collapse-sidebar {
    opacity: 1;
    cursor: pointer;
}

.NB-show-reader .NB-feeds-header-collapse-sidebar:hover img {
    opacity: .9;
}

.NB-show-reader .NB-welcome-footer {
    display: none;
}

.NB-splash-heading {
    display: none;
}

.NB-manage {
    position: absolute;
    right: 204px;
    z-index: 1;
    overflow: hidden;
    width: 180px;
    margin: 0 24px 32px 0;
}

.NB-account-wide {
    flex: 1;
    margin: 24px 24px 32px 0;
}

.NB-dashboard-account {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.NB-account-left {
    flex: 1;
    margin: 0 24px 12px 0;
}

.NB-account-right {
    flex: 1.2;
    margin: 0 0 14px 0;
}

.NB-account {
    display: flex;
    flex-wrap: wrap;
}

.NB-account .NB-module-header {
    flex-basis: 100%;
}

.NB-account .NB-module-header-login {
    width: 142px;
    margin: 0 50px 0 0;
    padding: 0 4px;
    float: left;
}

.NB-account .NB-module-header-signup {
    width: 142px;
    margin: 0;
    padding: 0 4px;
    float: left;
}

.NB-account .NB-login {
    padding: 0 4px 64px;
    margin: 12px 50px 0 12px;
    width: 146px;
    float: left;
    background: transparent url('/media/embed/reader/separator.png') no-repeat bottom center;
}

.NB-account .NB-signup {
    float: left;
    width: 146px;
    padding: 0 4px;
    margin: 12px 0 0;
    height: 206px;
    overflow: hidden;
}

.NB-account .NB-import-signup {
    float: left;
    width: 146px;
    padding: 0 0 64px 0;
    margin: 0 24px 0 12px;
    height: 206px;
    overflow: hidden;
}

.NB-account .NB-import-signup-text {
    text-align: center;
    width: 190px;
}

.NB-account .NB-import-signup-text h3 {
    margin-top: 48px;
    color: #20843D;
}

.NB-account .NB-import-signup-text p {
    color: #636363;
}

.NB-account .NB-signup-orline {
    margin: 30px auto 24px;
    text-align: center;
    font-size: 14px;
    line-height: 10px;
    color: #606060;
    font-weight: bold;
}

.NB-account .NB-signup-orline-reduced {
    margin: 0px auto 0px;
}

.NB-account .NB-signup-orline .NB-signup-orline-or {
    padding: 0 4px;
}

.NB-account .NB-signup-optional {
    float: right;
    text-transform: uppercase;
    display: none;
    color: #ABC0A8;
    font-weight: bold;
    font-size: 9px;
    line-height: 17px;
}

.NB-account .NB-signup-hidden {
    display: none;
}

.NB-account .NB-import-signup {
    height: auto;
}

.NB-account .NB-signup .NB-signup-google {
    margin: 12px auto;
    display: block;
    font-size: 12px;
    text-align: center;
}

.NB-account input[type=text],
.NB-account input[type=password] {
    border: 1px solid #D3D5DE;
    display: block;
    font-size: 13px;
    margin: 0 0 12px;
    padding: 5px;
    width: 134px;
}

.NB-account input[type=text]:focus,
.NB-account input[type=password]:focus {
    border-color: #739BBE;
}

.NB-account input[type=hidden] {
    display: none;
}

.NB-account label,
.NB-account .NB-account-label {
    margin: 0;
    color: #A0B0C0;
    font-size: 12px;
    display: block;
    text-transform: uppercase;
}

.NB-account .NB-account-label {
    font-weight: bold;
}

.NB-account .NB-account-text {
    font-size: 13px;
    color: #90A0B0;
    margin-bottom: 30px;
}

.NB-account .NB-account-text a {
    text-decoration: none;
    color: #3E4773;
}

.NB-account .NB-account-text a:hover {
    color: #0E1763;
}

.NB-account .errorlist {
    list-style: none;
    font-size: 12px;
    color: #AF4D18;
    font-weight: bold;
    padding: 0;
}

/* ============ */
/* = Callouts = */
/* ============ */

.NB-callout {
    position: absolute;
    -moz-box-shadow: 2px 2px 5px #909090;
    -webkit-box-shadow: 2px 2px 5px #909090;
    box-shadow: 2px 2px 5px #909090;
    border: 1px solid #707070;
    background: #E2FFCC url('/media/embed/reader/callout_background.png') repeat-x 0 0;
    display: none;
    z-index: 10;
}

.NB-callout .NB-callout-text {
    font-size: 14px;
    font-weight: bold;
}

.NB-callout .NB-callout-container {
    position: relative;
    padding: 4px 12px;
}

.NB-callout .NB-callout-container .NB-callout-arrow {
    width: 32px;
    height: 14px;
    background: transparent url('/media/embed/reader/callout_arrow.png') no-repeat 0 0;
    position: absolute;
    bottom: -14px;
    left: 4px;
}

.NB-callout-ftux {
    left: 2px;
    bottom: 51px;
}

.NB-callout-ftux-signup {
    right: 10px;
}

.NB-callout-ftux-signup .NB-callout-container .NB-callout-arrow {
    left: auto;
    right: -1px;
}

.NB-callout-mouse-indicator {
    top: -3px;
    left: 26px;
    opacity: 0;
}

.NB-callout-mouse-indicator .NB-callout-container {
    padding: 1px 12px 1px;
}

.NB-callout-mouse-indicator .NB-callout-container .NB-callout-arrow {
    width: 12px;
    height: 26px;
    background: transparent url('/media/embed/reader/callout_arrow_side.png') no-repeat 0 0;
    top: 0px;
    left: -11px;
}

/* ================ */
/* = Content Pane = */
/* ================ */

.content-pane {
    display: none;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    width: auto !important;
    height: auto !important;
}

.left-pane {
    display: none;
    overflow: hidden !important;
    background-color: #F7F8F5;
}

.left-center-content {
    display: none;
    overflow-x: hidden !important;
    overflow-y: auto !important;
}

.right-pane {
    display: none;
    overflow-y: auto !important;
    overflow-x: hidden !important;
}

/* =============== */
/* = Friend List = */
/* =============== */

.NB-socialfeeds {
    overflow-y: auto;
    overflow-x: hidden;
    font-size: 11px;
    list-style: none;
    margin: 0;
    padding: 0;
    width: auto !important;
    height: auto !important;
}

.NB-feedlists .NB-socialfeeds .feed {
    background-color: #d6e3da;
    /* border-top-color: #E6ECE8; */
    /* border-bottom-color: #E6ECE8; */
}

.NB-feedlists .NB-socialfeeds {
    display: none;
    /* border-bottom: 1px solid #B7BBAA; */
    background-color: #d6e3da;
}

.NB-feedlists .NB-socialfeeds .feed .feed_title {
    text-shadow: 0 1px 0 rgba(250, 250, 250, .4);
}

/* ============= */
/* = Feed List = */
/* ============= */

.NB-feeds-list-loader,
.NB-feeds-list-error {
    background: transparent url("/media/embed/reader/sun_loader_light.svg") no-repeat 0 0;
    background-size: 52px;
    color: rgba(0, 0, 0, .2);
    font-size: 16px;
    height: 51px;
    left: 5%;
    padding: 5px 0 0 62px;
    position: absolute;
    text-shadow: 0 1px 0 rgba(255, 255, 255, .4);
    text-transform: uppercase;
    top: 40%;
    width: 125px;
    z-index: 10;
    cursor: default;
}

.NB-feeds-list-error {
    display: none;
    background: transparent url("/media/embed/reader/warning.gif") no-repeat 16px 8px;
    background-size: 32px;
}

.NB-button.NB-feeds-list-retry {
    margin: 14px 0;
}

.NB-feeds-list-empty {
    background: transparent url("/media/embed/reader/big_world.png") no-repeat center 0;
    background-size: 64px;
    color: rgba(0, 0, 0, .4);
    filter: opacity(0.4);
    font-size: 16px;
    padding: 78px 16px 0;
    margin: 48px 0;
    text-shadow: 0 1px 0 rgba(255, 255, 255, .4);
    top: 40%;
    width: 100%;
    z-index: 10;
    cursor: default;
    line-height: 20px;
    font-weight: bold;
    text-align: center;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}

.NB-story-list-empty {
    color: rgba(0, 0, 0, .4);
    filter: opacity(0.4);
    font-size: 16px;
    padding: 256px 24px;
    text-shadow: 0 1px 0 rgba(255, 255, 255, .4);
    width: 100%;
    z-index: 10;
    cursor: default;
    line-height: 20px;
    font-weight: bold;
    text-align: center;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}

.NB-story-list-empty .NB-world {
    background: transparent url("/media/embed/reader/big_world.png") no-repeat center 0;
    background-size: 64px;
    width: 100%;
    height: 64px;
    margin: 24px 0;
}


.NB-story-list-empty-subtitle {
    font-size: 13px;
    color: rgba(0, 0, 0, .3);
}

.NB-feedlists ::-moz-selection {
    background: transparent;
}

.NB-feedlists ::selection {
    background: transparent;
}

.NB-feedlist {
    background-color: #F7F8F5;
    overflow-y: auto;
    overflow-x: hidden;
    font-size: 12px;
    list-style: none;
    margin: 0;
    padding: 0;
    width: auto;
    height: auto;
}

.NB-theme-feed-size-xs .NB-feedlist {
    font-size: 11px;
}

.NB-theme-feed-size-m .NB-feedlist {
    font-size: 12px;
}

.NB-theme-feed-size-l .NB-feedlist {
    font-size: 13px;
}

.NB-theme-feed-size-xl .NB-feedlist {
    font-size: 14px;
}

#feed_list {
    display: none;
    padding: 0;
    overflow: visible;
}

.NB-feedlist li.folder {
    padding: 0px 0 0;
    margin: 0px 0 0;
}

.NB-feedlist ul.folder {
    margin: 0;
    padding: 0 0 0 25px;
    list-style: none;
}

.NB-feedlist ul.folder.NB-root {
    padding-left: 0;
}

.NB-feedlist .folder_title {
    padding: 6px 8px 6px 36px;
    border-top: 1px solid transparent;
    border-bottom: 1px solid transparent;
    font-weight: bold;
    display: block;
    color: #68696B;
    letter-spacing: 0.5px;
    cursor: pointer;
    position: relative;
}

.NB-feedlist li.folder .NB-folder-icon {
    background: transparent url('/media/embed/icons/nouns/folder-open.svg') no-repeat 0 0;
    width: 16px;
    height: 16px;
    background-size: 16px;
    position: absolute;
    left: 10px;
    top: 4px;
}

.NB-theme-feed-size-m .NB-feedlist li.folder .NB-folder-icon {
    top: 5px;
}

.NB-theme-feed-size-l .NB-feedlist li.folder .NB-folder-icon {
    top: 5px;
}

.NB-theme-feed-size-xl .NB-feedlist li.folder .NB-folder-icon {
    top: 6px;
}

.NB-feedlist li.folder.NB-folder-collapsed .NB-folder-icon {
    background: transparent url('/media/embed/icons/nouns/folder-closed.svg') no-repeat 0 0;
    background-size: 16px;
}

.NB-feedlist li.folder .folder_title.NB-toplevel:hover .NB-folder-icon {
    display: none;
}

/* Hide default folder background when custom icon is present */
.NB-feedlist li.folder .NB-folder-icon:has(.feed_favicon),
.NB-feedlist li.folder .NB-folder-icon:has(.NB-folder-emoji),
.NB-feedlist li.folder .NB-folder-icon:has(.NB-folder-icon-colored) {
    background: none !important;
}

/* Fallback for browsers that don't support :has() */
.NB-feedlist li.folder .NB-folder-icon.NB-has-custom-icon {
    background: none !important;
}

.NB-feedlist li.folder .NB-folder-icon .feed_favicon,
.NB-feedlist li.folder .NB-folder-icon img.feed_favicon {
    width: 16px;
    height: 16px;
    display: block;
    position: absolute;
    top: 0;
    left: 0;
}

.NB-feedlist li.folder .NB-folder-icon .NB-folder-emoji {
    font-size: 13px;
    line-height: 16px;
    width: 16px;
    height: 16px;
    display: inline-block;
    text-align: center;
    position: absolute;
    top: 0;
    left: 0;
}

/* Colored folder icon using mask-image */
.NB-feedlist li.folder .NB-folder-icon .NB-folder-icon-colored {
    width: 16px;
    height: 16px;
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    -webkit-mask-size: contain;
    mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
}

.NB-feedlist .feeds {
    margin-left: 22px;
}

.NB-feedlist .feed {
    position: relative;
    cursor: pointer;
    padding: 0px 2px 0px 6px;
    margin: 0 6px 0 4px;
}

.NB-feedlist .feed.NB-feed-exception {
    /*    background-color: #F7EDC6;*/

}

.NB-feedlist .feed.NB-feed-exception .feed_title {
    color: #A0A0A0;
}

.NB-feedlist .feed.NB-feed-self-blurblog,
.NB-feedlist-hide-read-feeds .NB-feedlist .feed.NB-feed-self-blurblog {
    display: block;
}

.NB-intelligence-starred .NB-feedlist .feed.NB-feed-self-blurblog {
    display: none;
}

.NB-feedlist .feed.NB-feed-unfetched {}

.NB-feedlist .feed.NB-feed-exception .feed_counts {
    display: none;
}

.NB-feedlist .feed .NB-feed-exception-icon {
    background: url('/media/embed/icons/circular/exclamation.png') no-repeat 0 0;
    background-size: 16px;
    width: 16px;
    height: 16px;
    position: absolute;
    right: 4px;
    top: 2px;
    display: none;
}

#feed_list .feed.NB-feed-exception .NB-feed-exception-icon,
.NB-modal-organizer .feed.NB-feed-exception .NB-feed-exception-icon {
    display: block;
}

.NB-search-header.NB-exception {
    padding-left: 8px;
}

.NB-search-header.NB-exception .NB-search-header-icon {
    display: none;
}

.NB-feed-exception-header {
    background-color: #fff8e1;
    border: 1px solid #ffc107;
    border-radius: 4px;
    padding: 12px 16px 12px 44px;
    margin: 8px 12px;
    display: block;
    position: relative;
}

.NB-feed-exception-icon-large {
    background: url('/media/embed/icons/circular/exclamation.png') no-repeat 0 0;
    background-size: 20px;
    width: 20px;
    height: 20px;
    position: absolute;
    left: 16px;
    top: 12px;
}

.NB-feed-exception-message {
    color: #d84315;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.4;
    margin-bottom: 12px;
}

.NB-feed-exception-button {
    background-color: #d84315;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 8px 16px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    display: inline-block;
    transition: background-color 0.2s;
}

.NB-feed-exception-button:hover {
    background-color: #bf360c;
}

.NB-feedlist .feed .NB-feed-highlight {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    background-color: transparent;
    display: none;
    opacity: 0;
}

.NB-feedlist .feed.NB-feed-unfetched:not(.NB-highlighted) .feed_counts {
    display: none;
}

.NB-modal-feedchooser .NB-feedlist .feed.NB-feed-unfetched:not(.NB-highlighted) .feed_counts {
    display: block;
}

.NB-feedlist .feed.NB-feed-unfetched .feed_favicon {
    opacity: .5;
}

.NB-feedlist .feed.NB-feed-unfetched .feed_title {
    color: #A0A0A0;
}

.NB-feedlist .feed .NB-feed-unfetched-icon {
    background: transparent url('/media/embed/reader/ring_spinner.svg') no-repeat 0 0;
    background-size: 16px;
    opacity: .1;
    width: 16px;
    height: 16px;
    position: absolute;
    right: 4px;
    top: 4px;
    display: none;
}

#feed_list .feed.NB-feed-unfetched .NB-feed-unfetched-icon {
    display: block;
}

.NB-feedlist .feed.NB-empty {
    border: none;
    margin: 0;
    padding: 0;
    height: 4px;
    cursor: default;
}

.NB-feedlist.NB-feed-sorting .feed.NB-empty {
    /*  height: 16px;*/
}

.feed.NB-feed-sorting,
.NB-feedlist.NB-feed-sorting {
    cursor: move !important;
}

.NB-feedlist .feed_id {
    display: none;
}

img.feed_favicon {
    border-radius: 4px;
}

.NB-feedlist img.feed_favicon {
    position: absolute;
    top: 4px;
    left: 6px;
    width: 16px;
    height: 16px;
    transition: all 0.36s ease-out;
}

.NB-density-compact .NB-feedlist img.feed_favicon {
    top: 1px;
}

.NB-theme-feed-size-s .NB-feedlist img.feed_favicon {
    top: 4px;
}

.NB-density-compact.NB-theme-feed-size-s .NB-feedlist img.feed_favicon {
    top: 4px;
}

.NB-theme-feed-size-m .NB-feedlist img.feed_favicon {
    top: 6px;
}

.NB-density-compact.NB-theme-feed-size-m .NB-feedlist img.feed_favicon {
    top: 4px;
}

.NB-theme-feed-size-l .NB-feedlist img.feed_favicon {
    top: 7px;
}

.NB-density-compact.NB-theme-feed-size-l .NB-feedlist img.feed_favicon {
    top: 5px;
}

.NB-theme-feed-size-xl .NB-feedlist img.feed_favicon {
    top: 8px;
}

.NB-density-compact.NB-theme-feed-size-xl .NB-feedlist img.feed_favicon {
    top: 6px;
}

.NB-feedlist .feed_title {
    display: block;
    padding: 4px 40px 4px 26px;
    text-decoration: none;
    color: rgba(0, 0, 0, .7);
    line-height: 18px;
    overflow: hidden;
    text-shadow: 0 1px 0 rgba(250, 250, 250, .4);

    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    word-break: break-all;

    transition: padding 0.36s ease-out, margin 0.36s ease-out, top 0.36s ease-out;
}

.NB-density-compact .NB-feedlist .feed_title {
    padding-top: 2px;
    padding-bottom: 2px;
}

.NB-theme-feed-size-xs .NB-feedlist .feed_title {
    line-height: 16px;
}

.NB-theme-feed-size-s .NB-feedlist .feed_title {
    line-height: 18px;
}

.NB-theme-feed-size-m .NB-feedlist .feed_title {
    line-height: 20px;
}

.NB-theme-feed-size-l .NB-feedlist .feed_title {
    line-height: 22px;
}

.NB-theme-feed-size-xl .NB-feedlist .feed_title {
    line-height: 24px;
}

.NB-feedlist .feed .NB-feedlist-manage-icon,
.NB-feedlist .folder_title .NB-feedlist-manage-icon {
    opacity: 0;
    position: absolute;
    left: -20px;
    top: 2px;
    width: 20px;
    height: 22px;
    background: transparent url('/media/embed/icons/nouns/right.svg') no-repeat 4px 6px;
    background-size: 8px;
}

.NB-feedlist .folder_title .NB-feedlist-manage-icon {
    background-position: 4px 6px;
}

.NB-feedlist .feed .NB-feedlist-manage-icon:hover,
.NB-feedlist .folder_title .NB-feedlist-manage-icon:hover {
    background: transparent url('/media/embed/icons/nouns/down.svg') no-repeat 4px 6px;
    background-size: 8px;
}

.NB-feedlist .folder_title .NB-feedlist-manage-icon:hover {
    background-position: 4px 5px;
}

.NB-feedlist .feed.NB-hover-inverse .NB-feedlist-manage-icon:hover,
.NB-feedlist .folder.NB-hover-inverse .NB-feedlist-manage-icon:hover {
    background: transparent url('/media/embed/icons/nouns/up.svg') no-repeat 4px 8px;
    background-size: 8px;
}

.NB-feedlist .folder.NB-hover-inverse .NB-feedlist-manage-icon:hover {
    background-position: 6px 8px;
}

.NB-feedlist .feed.NB-hover-inverse .NB-feedlist-manage-icon:hover {
    background-position: 4px 8px;
}

.NB-feedlist .feed.NB-toplevel.NB-hover-inverse .NB-feedlist-manage-icon:hover {
    background-position: 5px 7px;
}

.NB-feedlist .feed.NB-toplevel .NB-feedlist-manage-icon,
.NB-feedlist .folder_title.NB-toplevel .NB-feedlist-manage-icon {
    left: 3px;
    opacity: 1;
    display: none;
    background-position: 6px 7px;
}

.NB-feedlist .folder_title.NB-toplevel .NB-feedlist-manage-icon {
    left: 8px;
    background-position: 6px 8px;
}

.NB-feedlist .feed:hover .NB-feedlist-manage-icon,
.NB-feedlist .folder_title:hover .NB-feedlist-manage-icon {
    opacity: 1;
    display: block;
}

.NB-feedlist .feed.NB-no-hover .NB-feedlist-manage-icon,
.NB-feedlist .folder_title.NB-no-hover .NB-feedlist-manage-icon {
    display: none;
}

.NB-feedlists .folder .folder_title .feed_counts_floater,
.NB-feeds-header .feed_counts_floater {
    margin-right: 10px;
}

.NB-feedlist .folder .folder_title .NB-feedlist-collapse-icon,
.NB-feeds-header .NB-feedlist-collapse-icon {
    position: absolute;
    top: 1px;
    right: 4px;
    width: 24px;
    height: 24px;
    background: transparent url('/media/embed/icons/circular/folder_collapse.png') no-repeat center center;
    background-size: 24px;
    opacity: .6;
    display: none;
}

.NB-feeds-header .NB-feedlist-collapse-icon {
    top: 4px;
}

.NB-theme-feed-size-xs .NB-feedlist .folder .folder_title .NB-feedlist-collapse-icon {
    top: -1px;
}

.NB-theme-feed-size-xl .NB-feedlist .folder .folder_title .NB-feedlist-collapse-icon {
    top: 1px;
}

.NB-feedlist .folder.NB-folder-collapsed .folder_title .NB-feedlist-collapse-icon,
.NB-feeds-header.NB-folder-collapsed .NB-feedlist-collapse-icon {
    background-image: url('/media/embed/icons/circular/folder_expand.png');
    background-size: 24px;
}

.NB-feedlist .folder .folder_title:hover .NB-feedlist-collapse-icon:hover,
.NB-feeds-header:hover .NB-feedlist-collapse-icon:hover {
    opacity: 1;
}


.NB-feedlist .folder .folder_title:hover .NB-feedlist-collapse-icon,
.NB-feeds-header:hover .NB-feedlist-collapse-icon {
    /*.NB-feedlist .folder.NB-showing-menu > .folder_title .NB-feedlist-collapse-icon {*/
    display: block;
    opacity: .6;
}

.NB-feedlist .folder .folder_title:hover .feed_counts_floater,
.NB-feeds-header:hover .feed_counts_floater,
.NB-feedlist .folder.NB-showing-menu>.folder_title .feed_counts_floater {
    margin-right: 24px;
}

.NB-feedlist .folder .folder_title.NB-feedlist-folder-title-recently-collapsed:hover .feed_counts_floater,
.NB-feeds-header.NB-feedlist-folder-title-recently-collapsed:hover .feed_counts_floater {
    display: block;
}

/*.NB-feedlist .folder.NB-selected > .folder_title .NB-feedlist-collapse-icon {
    display: block;
    opacity: 1;
}
*/

.NB-feeds-header-river-sites .NB-feedlist-toggle-all-icon {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 24px;
    height: 24px;
    background: transparent url('/media/embed/icons/circular/folder_collapse.png') no-repeat center center;
    background-size: 24px;
    opacity: .6;
    display: none;
}

.NB-feeds-header-river-sites.NB-all-folders-collapsed .NB-feedlist-toggle-all-icon {
    background-image: url('/media/embed/icons/circular/folder_expand.png');
}

.NB-feeds-header-river-sites:hover .NB-feedlist-toggle-all-icon {
    display: block;
}

.NB-feeds-header-river-sites:hover .NB-feedlist-toggle-all-icon:hover {
    opacity: 1;
}

.NB-feeds-header-river-sites:hover .feed_counts_floater {
    margin-right: 28px;
}

.NB-feedlist .feed.NB-toplevel:hover .feed_favicon {
    display: none;
}

.NB-feedlist .feed.NB-toplevel.NB-no-hover .feed_favicon {
    display: block;
}

.NB-feedlist .folder_title.NB-toplevel:hover {
    background: none;
}

.NB-feedlist .folder_title.NB-toplevel.NB-no-hover {
    background: inherit;
}

.NB-feedlist .feed_counts {
    position: absolute;
    right: 4px;
    top: 3px;
    transition: top 0.36s ease-out;
}

.NB-density-compact .NB-feedlist .feed_counts {
    top: 1px;
}

.NB-feedlist .NB-feedbar-mark-feed-read {
    display: none;
}

.NB-feedlist .feed.selected,
.NB-feedlist .feed.NB-selected,
.NB-feedlist .folder.NB-selected>.folder_title {
    background-color: #FFFFD2;
    /* background-color: #c9e5fb; */
    border-radius: 8px;
}

.NB-feeds-header.NB-selected {
    background-color: #FFFFD2;
}

.NB-feedlist .folder.NB-selected>.folder_title {
    text-shadow: 0 1px 0 rgba(255, 255, 255, .5);
}

.NB-feedlist .feed.NB-feed-selector-selected {
    background-color: #7AC0FE;
    background: -webkit-gradient(linear, 0% 0%, 0% 100%, from(#A7D3FE), to(#7AC0FE));
    background: -moz-linear-gradient(center top, #A7D3FE 0%, #7AC0FE 100%);
    border-top: 1px solid #789FC6;
    border-bottom: 1px solid #789FC6;
}


.NB-feedlist .NB-feeds-list-highlight {
    position: relative;
    background-color: #f6a828;
    border-top: 1px solid #A8A8A8;
    border-bottom: 1px solid #A8A8A8;
}

.NB-feed-sorting {
    border: none !important;
}

.NB-feedlist-hide-read-feeds .NB-feedlist .feed {
    display: none;
}

.NB-feedlist-hide-read-feeds .unread_view_starred .unread_starred {
    display: block;
}

.NB-feedlist-hide-read-feeds .unread_view_positive .unread_positive {
    display: block;
}

.NB-feedlist-hide-read-feeds .unread_view_neutral .unread_positive,
.NB-feedlist-hide-read-feeds .unread_view_neutral .unread_neutral {
    display: block;
}

.NB-feedlist-hide-read-feeds .unread_view_negative .unread_positive,
.NB-feedlist-hide-read-feeds .unread_view_negative .unread_neutral,
.NB-feedlist-hide-read-feeds .unread_view_negative .unread_negative {
    display: block;
}

.NB-feedlist-hide-read-feeds .NB-feedlist .feed.NB-empty {
    display: block;
}

.NB-feedlist-hide-read-feeds .unread_view_neutral .NB-feed-inactive,
.NB-feedlist-hide-read-feeds .unread_view_positive .NB-feed-inactive {
    display: none;
}

.NB-feedlist-hide-read-feeds .NB-feedlist .feed.selected {
    display: block;
}

#feed_list.NB-feedlist.NB-selector-active .feed,
.NB-sidebar .NB-socialfeeds-folder.NB-selector-active .feed {
    display: none;
}

#feed_list.NB-feedlist.NB-selector-active .feed.NB-feed-selector-active,
.NB-socialfeeds-folder.NB-selector-active .feed.NB-feed-selector-active {
    display: block;
    opacity: 1;
}

.NB-feedlist.NB-selector-active .NB-folder-collapsed .folder,
.NB-feedlist.NB-selector-active .NB-hidden,
.NB-socialfeeds-folder.NB-selector-active {
    display: block !important;
    opacity: 1 !important;
}

.NB-selector-active .NB-feeds-list-empty {
    display: none;
}

/* ================= */
/* = Unread Counts = */
/* ================= */

.unread_count {
    float: right;
    font-weight: bold;
    color: #FFF;
    padding: 2px 1px 2px;
    margin: 2px 1px 0;
    background-color: #8eb6e8;
    display: none;
    line-height: 14px;
    border-radius: 4px;

    transition: all 0.36s ease-out;
    /*    border-top: 1px solid rgba(255, 255, 255, .4);*/
    /* border-bottom: 1px solid rgba(0, 0, 0, .1); */
}

.NB-theme-feed-size-xs .NB-feedlist .unread_count {
    margin-top: 0px;
    padding-top: 2px;
    padding-bottom: 2px;
}

.NB-theme-feed-size-s .NB-feedlist .unread_count {
    margin-top: 1px;
}

.NB-theme-feed-size-l .NB-feedlist .unread_count {
    margin-top: 2px;
    padding-top: 3px;
    padding-bottom: 3px;
}

.NB-theme-feed-size-xl .NB-feedlist .unread_count {
    margin-top: 3px;
    padding-top: 4px;
    padding-bottom: 2px;
}

.NB-feeds-header .unread_count {
    line-height: 11px;
}

.NB-theme-feed-size-xs .NB-feeds-header .unread_count {
    margin-top: 9px;
    padding-top: 3px;
    padding-bottom: 2px;
}

.NB-theme-feed-size-s .NB-feeds-header .unread_count {
    margin-top: 9px;
    padding-top: 2px;
    padding-bottom: 2px;
}

.NB-theme-feed-size-m .NB-feeds-header .unread_count {
    margin-top: 9px;
    padding-top: 2px;
    padding-bottom: 2px;
}

.NB-theme-feed-size-l .NB-feeds-header .unread_count {
    margin-top: 6px;
    padding-top: 4px;
    padding-bottom: 3px;
}

.NB-theme-feed-size-xl .NB-feeds-header .unread_count {
    margin-top: 7px;
    padding-top: 4px;
    padding-bottom: 3px;
}

.folder_title .unread_count {
    line-height: 15px;
}

.NB-theme-feed-size-xs .folder_title .unread_count {
    margin-top: -3px;
    padding-top: 2px;
    padding-bottom: 1px;
}

.NB-theme-feed-size-s .folder_title .unread_count {
    margin-top: -2px;
    padding-top: 2px;
    padding-bottom: 1px;
}

.NB-theme-feed-size-m .folder_title .unread_count {
    margin-top: -2px;
    padding-top: 2px;
    padding-bottom: 2px;
}

.NB-theme-feed-size-l .folder_title .unread_count {
    margin-top: -2px;
    padding-top: 2px;
    padding-bottom: 2px;
}

.NB-theme-feed-size-xl .folder_title .unread_count {
    margin-top: -2px;
    padding-top: 3px;
    padding-bottom: 3px;
}

.unread_count_starred {
    background-color: #506B9A;
    text-shadow: 0 1px 0 rgba(0, 0, 0, .3);
    border-bottom: 1px solid rgba(0, 0, 0, .2);
    /*    text-shadow: none;*/
}

.unread_count_positive {
    background-color: #6EA74A;
    text-shadow: 0 1px 0 rgba(0, 0, 0, .3);
    /*    text-shadow: none;*/
}

.unread_count_neutral {
    background-color: #B3B6AD;
    /*    text-shadow: 0 1px 0 rgba(255, 255, 255, .3);*/
    text-shadow: none;
}

.unread_count_negative {
    background-color: #CC2A2E;
    text-shadow: none;
    /*    text-shadow: 0 1px 0 rgba(0, 0, 0, .3);*/
}

.unread_view_starred .unread_count {
    padding-left: 6px;
    padding-right: 6px;
}

.unread_view_positive .unread_count {
    padding-left: 6px;
    padding-right: 6px;
}

.unread_view_neutral .unread_count {
    padding-left: 3px;
    padding-right: 3px;
}

/* Showing unread counts above threshold */

.unread_view_starred .unread_starred .unread_count_starred {
    display: block;
}

.unread_view_positive .unread_positive .unread_count_positive {
    display: block;
}

.unread_view_neutral .unread_positive .unread_count_positive,
.unread_view_neutral .unread_neutral .unread_count_neutral {
    display: block;
}

.unread_view_negative .unread_positive .unread_count_positive,
.unread_view_negative .unread_neutral .unread_count_neutral,
.unread_view_negative .unread_negative .unread_count_negative {
    display: block;
}

.unread_view_starred .unread_starred {
    font-weight: bold;
}

.unread_view_positive .unread_positive {
    font-weight: bold;
}

.unread_view_neutral .unread_positive,
.unread_view_neutral .unread_neutral {
    font-weight: bold;
}

.unread_view_negative .unread_positive,
.unread_view_negative .unread_neutral,
.unread_view_negative .unread_negative {
    font-weight: bold;
}

/* Showing unread counts below threshold */

.unread_threshold_positive .unread_negative .unread_count_negative,
.unread_threshold_positive .unread_neutral .unread_count_neutral {
    font-weight: bold;
    display: block;
}

.unread_threshold_neutral .unread_negative .unread_count_negative {
    font-weight: bold;
    display: block;
}

.NB-starred-folder .unread_starred .unread_count_positive {
    display: block;
}

.unread_view_neutral .NB-feed-inactive.unread_neutral .unread_count_neutral,
.unread_view_neutral .NB-feed-inactive.unread_positive .unread_count_positive,
.unread_view_positive .NB-feed-inactive.unread_positive .unread_count_positive {
    display: none;
}

.NB-feed-inactive .NB-muted-icon {
    display: block;
    float: right;
    width: 20px;
    height: 20px;
    margin: 1px 1px 0;
    background-image: url(/media/img/reader/mute_grey.png);
    background-repeat: no-repeat;
    background-position: center center;
    background-size: contain;
    background-color: inherit;
    border: none;
}

.NB-modal-feedchooser .NB-muted-icon {
    display: none;
}

/* ====================== */
/* = Feeds Progress Bar = */
/* ====================== */

#NB-progress {
    height: 40px;
    width: 100%;
    background-color: #505050;
    border-top: 1px solid #777D86;
    border-bottom: 1px solid #101010;
    color: #fff;
    text-shadow: 0 1px 0 #202020;
    text-align: center;
    z-index: 1;
}

.NB-progress-container {
    border-top: 1px solid #E0E0E0;
}

#NB-progress .NB-progress-close {
    width: 11px;
    height: 11px;
    float: right;
    margin: 6px 4px 0 0;
    cursor: pointer;
    background: transparent url('/media/embed/reader/close.png') no-repeat 0 0;
}

#NB-progress .NB-progress-title {
    padding: 5px 15px 0;
    font-size: 11px;
    text-transform: uppercase;
    height: 14px;
}

#NB-progress.NB-progress-error .NB-progress-title {
    height: auto;
}

#NB-progress .NB-progress-bar {
    height: 6px;
    margin: 6px 50px 0;
}

#NB-progress .NB-progress-link {
    display: none;
    margin: -2px 0 0;
}

#NB-progress .NB-progress-link .NB-modal-submit-button {
    padding: 3px 0;
    font-size: 15px;
    width: 90%;
    margin: 0 auto;
    -moz-box-shadow: 2px 2px 0px #404040;
    -webkit-box-shadow: 2px 2px 0px #404040;
    box-shadow: 2px 2px 0px #404040;
    border-radius: 4px;
    border: 1px solid #303030;
}

#NB-progress.NB-progress-error {
    height: 80px;
}

#NB-progress.NB-progress-big {
    height: 72px;
}

#NB-progress.NB-progress-error .NB-progress-title {
    font-size: 18px;
}

#NB-progress.NB-progress-error .NB-progress-link {
    display: block;
    font-size: 18px;
}

#NB-progress.NB-progress-error .NB-progress-bar {
    display: none;
}

#NB-progress.NB-progress-big .NB-progress-link {
    margin: 6px 0 0;
}

#NB-progress.NB-progress-big .NB-progress-link a {
    font-size: 20px;
}

#NB-progress .NB-progress-counts {
    float: left;
    font-size: 10px;
    color: #B0B0B0;
    padding: 4px 0 0;
    width: 50px;
}

#NB-progress .NB-progress-percentage {
    float: right;
    clear: both;
    color: #B0B0B0;
    font-size: 12px;
    width: 50px;
    padding: 1px 0 0;
}

/* ================ */
/* = Story Titles = */
/* ================ */


.NB-feed-story-header-info ::-moz-selection {
    background: transparent;
}

.NB-feed-story-header-info ::selection {
    background: transparent;
}

#story_titles {
    z-index: 10;
    position: fixed;
    top: 0px;
    left: 0px;
    height: 200px;
    width: 100%;
    overflow-y: scroll;
    font-size: 11px;
    display: none;
}

#story_titles .wrapper {
    margin-left: 220px;
}

.NB-story-titles-header {
    font-weight: bold;
    font-size: 16px;
    padding: 6px 24px 0px 8px;
    position: relative;
    overflow: hidden;
}

.NB-sidebar-closed .NB-story-titles-header {
    margin-left: 36px;
}

.NB-story-titles-expand-sidebar {
    background: url(/media/img/icons/nouns/nav-right.svg) no-repeat center center;
    background-size: 16px;
    width: 36px;
    height: 36px;
    position: absolute;
    top: 0;
    left: 0;
    border-right: 1px solid rgba(0, 0, 0, 0.1);
    opacity: .7;
    display: none;
}

.NB-sidebar-closed .NB-story-titles-expand-sidebar {
    display: block;
}

.NB-story-titles-expand-sidebar:hover {
    opacity: 0.9;
    cursor: pointer;
}

.NB-story-titles-expand-sidebar:active {
    opacity: 1.0;
}

.NB-feedbar {
    border-bottom: 1px solid #dbdbda;
    background-color: #F3F3EE;
    background-image: linear-gradient(180deg, #F3F3EE, #f0f3ed);
}

.NB-feedbar .feed>.feed_favicon {
    margin: 4px 4px 0 6px;
    vertical-align: top;
    float: left;
    width: 16px;
    height: 16px;
}

.NB-feedbar .feed.NB-feed-social>.feed_favicon {
    border-radius: 3px;
}

.NB-feedbar .feed .feed_title,
.NB-feedbar .folder_title_text {
    /*    float: left;*/
    display: block;
    margin-left: 35px;
    color: #40413E;
    text-shadow: 0 1px 0 rgba(255, 255, 255, .8);
    height: 24px;
    overflow: hidden;
    line-height: 24px;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.NB-feedbar .NB-feedbar-options-container {
    float: right;
}

.NB-feedbar .NB-feedbar-options {
    cursor: pointer;
    float: right;
    color: rgba(0, 0, 0, .5);
    border: 1px solid rgba(0, 0, 0, .1);
    border-radius: 16px;
    text-transform: uppercase;
    font-size: 10px;
    padding: 1px 4px 1px 8px;
    line-height: 14px;
    margin: 3px 0 0 12px;
    white-space: nowrap;
}

.NB-feedbar .NB-feedbar-options:hover,
.NB-feedbar .NB-feedbar-options.NB-active {
    background-color: rgba(0, 0, 0, .1);
}

.NB-feedbar .NB-feedbar-options .NB-icon {
    float: right;
    width: 16px;
    height: 12px;
    background: transparent url('/media/embed/icons/nouns/down.svg') no-repeat 3px 2px;
    background-size: 9px;
    margin: 0 0 0 4px;
}

.NB-feedbar .NB-feedbar-train-feed {
    background: transparent url("/media/embed/icons/nouns/train.svg") no-repeat center center;
    background-size: 16px;
    width: 16px;
    height: 16px;
    cursor: pointer;
    padding: 0 0 0 38px;
}

.NB-feedbar .NB-feedbar-statistics {
    background: transparent url('/media/embed/icons/nouns/dialog-statistics.svg') no-repeat 0 0;
    background-size: 16px;
    width: 16px;
    height: 16px;
    cursor: pointer;
    margin: 3px 0 0 -6px;
    padding: 0 24px 0 6px;
    filter: hue-rotate(284deg) saturate(18);
}

.NB-feedbar .NB-feedbar-mark-feed-read-container {
    position: relative;
    margin: 0 0 0 16px;
    font-size: 9px;
    line-height: 15px;
    font-weight: bold;
    float: right;
}

.NB-intelligence-starred .NB-feedbar .NB-feedbar-mark-feed-read-container,
.NB-searching .NB-feedbar-options-container,
.NB-searching .NB-feedbar-discover-container {
    display: none;
}

.NB-feedbar .NB-feedbar-mark-feed-read,
.NB-feedbar .NB-feedbar-mark-feed-read-expand,
.NB-feedbar .NB-feedbar-mark-feed-read-time {
    cursor: pointer;
    position: relative;
    padding: 1px 4px;
    border: 1px solid rgba(0, 0, 0, .1);
    border-radius: 16px;
    float: right;
    width: 26px;
    height: 14px;
    z-index: 1;
    margin: 3px 0 0 8px;

    background-color: #F0F1EC;
    background-image: -webkit-gradient(linear, left top, left bottom, from(#F0F1EC), to(#EBEDE7));
    background-image: -moz-linear-gradient(center top, #F0F1EC 0%, #EBEDE7 100%);
    background-image: linear-gradient(top, #F0F1EC, #EBEDE7);
}

.NB-feedbar .NB-feedbar-mark-feed-read .NB-icon {
    background: transparent url('/media/embed/icons/nouns/mark-read.svg') no-repeat center center;
    background-size: 18px;
    width: 100%;
    height: 100%;
}

.NB-feedbar .NB-feedbar-mark-feed-read:hover,
.NB-feedbar .NB-feedbar-mark-feed-read-time:hover {
    background-color: #D8D9D4;
    background-image: -webkit-gradient(linear, left top, left bottom, from(#D8D9D4), to(#D4D5D0));
    background-image: -moz-linear-gradient(center top, #D8D9D4 0%, #D4D5D0 100%);
    background-image: linear-gradient(top, #D8D9D4, #D4D5D0);
}

.NB-feedbar .NB-feedbar-mark-feed-read-expand:hover {
    background-color: rgba(0, 0, 0, .1);
}

.NB-feedbar .NB-feedbar-mark-feed-read-expand {
    position: absolute;
    right: 20px;
    z-index: 0;
    background: transparent url('/media/embed/icons/circular/nav_icn_plus.png') no-repeat 4px center;
    background-size: 6px;
    width: 19px;
}

.NB-feedbar .NB-feedbar-mark-feed-read-time {
    z-index: 0;
    right: 0;
    top: 0;
    width: 20px;
    position: absolute;
    text-align: center;
    color: rgba(0, 0, 0, .5);
    text-transform: uppercase;
}

.NB-feedbar .NB-feedlist-manage-icon {
    opacity: 0;
    display: none;
    position: absolute;
    left: 10px;
    top: 7px;
    width: 20px;
    height: 22px;
    cursor: pointer;
    background: transparent url('/media/embed/icons/nouns/right.svg') no-repeat 6px 7px;
    background-size: 8px;
}

.NB-feedbar .NB-feedlist-manage-icon:hover {
    background: transparent url('/media/embed/icons/nouns/down.svg') no-repeat 6px 7px;
    background-size: 8px;
}

.NB-feedbar .NB-folder .NB-feedlist-manage-icon {
    top: 7px;
    left: 8px;
}

.NB-feedbar .NB-hover-inverse .NB-feedlist-manage-icon:hover {
    background: transparent url('/media/embed/icons/nouns/up.svg') no-repeat 4px 5px;
    background-size: 8px;
}

.NB-feedbar .NB-folder.NB-hover-inverse .NB-feedlist-manage-icon:hover {
    background-position: 4px 7px;
}

.NB-feedbar:hover .NB-feedlist-manage-icon {
    display: block;
    opacity: 1;
}

.NB-feedbar:hover .NB-no-hover .NB-feedlist-manage-icon {
    display: none;
    opacity: 0;
}

.NB-feedbar:hover .feed>.feed_favicon,
.NB-feedbar:hover .NB-folder-icon {
    display: none;
}

.NB-feedbar:hover .feed.NB-no-hover .feed_favicon,
.NB-feedbar:hover .NB-no-hover .NB-folder-icon {
    display: block;
}

.NB-feedbar .NB-folder-fake .NB-feedbar-mark-feed-read-container {
    display: none;
}

.NB-feedbar .NB-folder-river .NB-feedbar-mark-feed-read-container {
    display: block;
}

.NB-feedbar .feed .feed_counts {
    width: 200px;
    position: absolute;
    top: -1px;
    right: 6px;
    display: none;
}

.NB-feedbar .feed .feed_counts .feed_counts_floater {
    float: left;
}

.NB-feedbar .feed .feed_counts .unread_count {
    float: right;
}

.NB-feedbar .NB-feedbar-intelligence {
    position: absolute;
    right: 4px;
    top: 3px;
}

.NB-feedbar .unread_count {
    float: right;
    padding: 0 8px;
}

.NB-feedbar .NB-button-intelligence {
    float: right;
}

.NB-feedbar .NB-feed-sentiment {
    position: absolute;
    width: 16px;
    height: 16px;
    top: 2px;
    display: none;
    cursor: pointer;
}

.NB-feedbar:hover .NB-feed-sentiment {
    display: block;
}

.NB-feedbar .feed .unread_count.unread_count_full {
    display: block;
}

.NB-feedbar .NB-folder .NB-folder-title {
    padding: 1px 0 1px 22px;
    font-size: 14px;
    font-weight: bold;
    color: #606060;
    text-shadow: 1px 1px 0 rgba(255, 255, 255, .5);
}

/* Default folder icon for feedbar */
.NB-feedbar .NB-folder .NB-folder-icon {
    background: transparent url('/media/embed/icons/nouns/folder-open.svg') no-repeat 0 0;
    background-size: 16px;
    width: 16px;
    height: 16px;
    position: absolute;
    left: 12px;
    top: 10px;
}

/* Hide default background when custom icon is present */
.NB-feedbar .NB-folder .NB-folder-icon:has(.feed_favicon),
.NB-feedbar .NB-folder .NB-folder-icon:has(.NB-folder-emoji),
.NB-feedbar .NB-folder .NB-folder-icon:has(.NB-folder-icon-colored) {
    background: none;
}

.NB-feedbar .NB-folder .NB-folder-icon.NB-has-custom-icon {
    background: none;
}

.NB-feedbar .NB-folder .NB-folder-icon .feed_favicon {
    vertical-align: text-bottom;
    width: 16px;
    height: 16px;
    position: absolute;
    left: 0;
    top: 0;
}

.NB-feedbar .folder ul.folder,
.NB-feedbar .folder .NB-feedlist-collapse-icon,
.NB-feeds-header .NB-feedlist-collapse-icon {
    display: none;
}

/* ================== */
/* = Discover Feeds = */
/* ================== */

.NB-feedbar .NB-feedbar-discover-container {
    float: right;
    cursor: pointer;
    color: rgba(0, 0, 0, .5);
    border: 1px solid rgba(0, 0, 0, .1);
    border-radius: 16px;
    text-transform: uppercase;
    font-size: 10px;
    padding: 1px 4px 1px 8px;
    line-height: 14px;
    margin: 3px 0 0 12px;
}

.NB-feedbar .NB-feedbar-discover-container:hover {
    background-color: rgba(0, 0, 0, .1);
}

.NB-feedbar .NB-feedbar-discover-container .feed_favicon {
    width: 12px;
    height: 12px;
    display: block;
    float: left;
    margin: 1px 2px 1px 0;
    filter: grayscale();
    transition: filter 0.2s ease-in-out;
}

.NB-feedbar:hover .NB-feedbar-discover-container .feed_favicon {
    filter: none;
}

.NB-feedbar .NB-feedbar-discover-container .NB-icon {
    float: right;
    width: 16px;
    height: 12px;
    background: transparent url('/media/embed/icons/nouns/down.svg') no-repeat 3px 2px;
    background-size: 9px;
    margin: 0;
}

.NB-feedbar .NB-feedbar-discover-container .NB-feedbar-discover-icon {
    float: left;
    width: 16px;
    height: 14px;
    background: transparent url('/media/embed/icons/nouns/direction.svg') no-repeat 1px 1px;
    background-size: 10px;
    margin: 1px 4px 0 2px;
}

.NB-discover-popover .NB-discover-loading {
    margin: 24px 0;
}

.NB-discover-popover .NB-loading.NB-active {
    width: 32px;
    height: 32px;
    background-size: 32px;
    margin: 0 0 0 18px;
    float: left;
}

.NB-discover-popover .NB-discover-loading .NB-loading.NB-active {
    margin: 36px auto 24px;
    float: none;
}

.NB-discover-popover .NB-popover-section-title .NB-icon {
    float: left;
    width: 24px;
    height: 24px;
    background: transparent url(/media/embed/icons/nouns/direction.svg) no-repeat 0 0;
    background-size: 24px;
    margin: -1px 8px 0 0;
}

.NB-discover-feed-badges .NB-story-titles {
    margin: 0 24px 20px;
}

.NB-discover-feed-badges .NB-folders {
    float: left;
    width: 180px;
    font-size: 16px;
    margin: 0px 10px 0 1px;
}

.NB-discover-feed-badges .NB-feed-badge {
    padding-top: 10px;
    padding-left: 0;
    padding-right: 0;
    border-bottom: none;
    position: sticky;
    top: 0;
    z-index: 2;
}

.NB-discover-feed-badges .NB-discover-feed-badge {
    position: relative;
}

.NB-discover-feed-badges .NB-error {
    clear: both;
    font-size: 12px;
    color: #6A1000;
    padding: 4px 0 0;
    line-height: 14px;
    font-weight: bold;
}

.NB-discover-feed-badges .NB-feed-badge .NB-feed-badge-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    padding-top: 10px;
    margin-top: 8px;
    border-top: 1px solid #E0E0E0;
}

.NB-discover-feed-badges .NB-feed-badge .NB-feed-badge-actions .NB-modal-submit-button {
    float: none;
    flex-shrink: 0;
    margin: 0;
}

.NB-discover-feed-badges .NB-feed-badge .NB-feed-badge-actions .NB-badge-folder-add-group {
    flex: 1 1 auto;
    margin-left: auto;
}

.NB-discover-feed-badges .NB-feed-badge .NB-feed-badge-actions .NB-badge-folder-add-group .NB-add-site-folder-select {
    max-width: none;
    flex: 1 1 auto;
}

.NB-discover-feed-badges .NB-feed-badge .NB-feed-badge-actions .NB-badge-folder-add-group .NB-badge-action-add {
    padding: 8px 12px;
    font-size: 12px;
    border-radius: 3px;
    height: auto;
}

.NB-discover-feed-badges .NB-feed-badge .NB-feed-badge-subscribed-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    padding-top: 10px;
    margin-top: 8px;
    border-top: 1px solid #E0E0E0;
}

.NB-discover-feed-badges .NB-feed-badge .NB-feed-badge-subscribed-actions .NB-modal-submit-button {
    float: none;
    flex-shrink: 0;
    margin: 0;
}

/* Discover popover archive upgrade banner */
.NB-discover-popover .NB-discover-archive-banner {
    margin: 0 0 4px;
    padding: 14px 16px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.07) 0%, rgba(139, 92, 246, 0.07) 100%);
    border: 1px solid rgba(99, 102, 241, 0.15);
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease;
}

.NB-discover-popover .NB-discover-archive-banner:hover {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.12) 0%, rgba(139, 92, 246, 0.12) 100%);
    border-color: rgba(99, 102, 241, 0.25);
}

.NB-discover-popover .NB-discover-archive-banner-content {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.NB-discover-popover .NB-discover-archive-banner-icon {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    border-radius: 8px;
    -webkit-mask: url('/media/embed/icons/heroicons-solid/sparkles.svg') no-repeat center;
    mask: url('/media/embed/icons/heroicons-solid/sparkles.svg') no-repeat center;
    -webkit-mask-size: 20px;
    mask-size: 20px;
}

.NB-discover-popover .NB-discover-archive-banner-text {
    flex: 1;
    min-width: 0;
}

.NB-discover-popover .NB-discover-archive-banner-title {
    font-size: 13px;
    font-weight: 600;
    color: #3b3d38;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.NB-discover-popover .NB-discover-archive-banner-title .NB-archive-badge {
    display: inline-block;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: white;
    font-size: 9px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 2px 6px;
    border-radius: 3px;
    flex-shrink: 0;
}

.NB-discover-popover .NB-discover-archive-banner-body {
    font-size: 12px;
    line-height: 1.5;
    color: #707070;
}

.NB-discover-popover .NB-discover-archive-banner-cta {
    margin-top: 10px;
    padding: 8px 16px;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: white;
    font-size: 12px;
    font-weight: 600;
    text-align: center;
    border-radius: 6px;
    cursor: pointer;
    transition: opacity 0.15s ease, transform 0.15s ease;
}

.NB-discover-popover .NB-discover-archive-banner-cta:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.NB-discover-popover .NB-discover-archive-banner-cta:active {
    transform: translateY(0);
}

.NB-discover-popover .NB-discover-archive-banner-progress {
    margin-top: 10px;
}

.NB-discover-popover .NB-discover-archive-banner-progress-bar {
    height: 6px;
    background: rgba(99, 102, 241, 0.12);
    border-radius: 3px;
    overflow: hidden;
}

.NB-discover-popover .NB-discover-archive-banner-progress-fill {
    height: 100%;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    border-radius: 3px;
    transition: width 0.3s ease;
}

.NB-discover-popover .NB-discover-archive-banner-progress-label {
    font-size: 11px;
    color: #8b8b8b;
    margin-top: 4px;
    text-align: right;
}

/* Discover popover index banner (archive users) */
.NB-discover-popover .NB-discover-index-banner {
    margin: 0 0 4px;
    padding: 14px 16px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.07) 0%, rgba(139, 92, 246, 0.07) 100%);
    border: 1px solid rgba(99, 102, 241, 0.15);
    border-radius: 8px;
}

.NB-discover-popover .NB-discover-index-banner-content {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.NB-discover-popover .NB-discover-index-button {
    margin-top: 10px;
    padding: 8px 16px;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: white;
    font-size: 12px;
    font-weight: 600;
    text-align: center;
    border-radius: 6px;
    cursor: pointer;
    transition: opacity 0.15s ease, transform 0.15s ease;
}

.NB-discover-popover .NB-discover-index-button:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.NB-discover-popover .NB-discover-index-button:active {
    transform: translateY(0);
}

.NB-discover-popover .NB-discover-index-button.NB-disabled {
    opacity: 0.6;
    cursor: default;
    transform: none;
}

.NB-discover-popover .NB-discover-index-button.NB-disabled:hover {
    opacity: 0.6;
    transform: none;
}

/* ============================= */
/* = Story Titles Hidden Count = */
/* ============================= */

.NB-feedbar .NB-story-title-indicator {
    display: none;
    float: right;
    cursor: pointer;
    color: rgba(0, 0, 0, .5);
    border: 1px solid rgba(0, 0, 0, .1);
    border-radius: 16px;
    text-transform: uppercase;
    font-size: 10px;
    padding: 1px 8px;
    line-height: 14px;
    margin: 3px 0 0 12px;
}

.NB-feedbar .NB-story-title-indicator:hover {
    background-color: rgba(0, 0, 0, .1);
}

.NB-feedbar .NB-story-title-indicator .NB-story-title-indicator-count {
    float: left;
}

.NB-feedbar .NB-story-title-indicator .NB-story-title-indicator-count .unread_count_starred {
    display: none;
}

/*.NB-feedbar .NB-story-title-indicator.unread_threshold_negative {
  display: none;
}
*/
.NB-feedbar .NB-story-title-indicator .feed_counts_floater {
    float: left;
    padding: 2px 0 0;
    text-align: center;
}

.NB-feedbar .NB-story-title-indicator .unread_count_positive.unread_count_full,
.NB-feedbar .NB-story-title-indicator .unread_count_neutral.unread_count_full,
.NB-feedbar .NB-story-title-indicator .unread_count_negative.unread_count_full {
    display: none;
    opacity: .3;
}

.NB-feedbar .NB-story-title-indicator.unread_threshold_positive .unread_count_neutral.unread_count_full,
.NB-feedbar .NB-story-title-indicator.unread_threshold_positive .unread_count_negative.unread_count_full,
.NB-feedbar .NB-story-title-indicator.unread_threshold_neutral .unread_count_negative.unread_count_full {
    display: block;
}

.NB-feedbar .NB-story-title-indicator.unread_threshold_positive:hover .unread_count_neutral {
    opacity: 1;
}

.NB-feedbar .NB-story-title-indicator.unread_threshold_neutral:hover .unread_count_negative {
    opacity: 1;
}

.NB-feedbar .NB-story-title-indicator .feed_counts_floater .unread_count {
    padding: 1px 3px 1px;
    margin: 0 4px 0 0;
    line-height: 8px;
}

.NB-intelligence-positive .NB-story-title.NB-story-neutral .NB-hidden-fade,
.NB-intelligence-positive .NB-story-title.NB-story-negative .NB-hidden-fade,
.NB-intelligence-neutral .NB-story-title.NB-story-negative .NB-hidden-fade {
    opacity: .5;
}

.NB-feed-story-premium-only .NB-feed-story-premium-only-divider {
    background: transparent url(/media/embed/reader/separator_small.png) no-repeat 50% 100%;
    height: 20px;
    width: 100%;
    margin: 4px 0 0;
}

.NB-feed-story-premium-only .NB-feed-story-premium-only-text {
    text-align: center;
    margin: 6px 0 8px 0;
    color: #707070;
    font-size: 11px;
}

/* ======================== */
/* = Story Titles - Story = */
/* ======================== */

.NB-story-title {
    overflow: hidden;
    position: relative;
    cursor: pointer;
    font-weight: bold;
    padding: 0 154px 0px 40px;
    text-decoration: none;
    color: #272727;
    line-height: 15px;
    font-size: 13px;
    background-color: #FDFCFA;
    border-top: 1px solid #FFF;
    border-bottom: 1px solid #F9F8F4;
}

.NB-theme-feed-size-xs .NB-story-title {
    font-size: 12px;
    line-height: 14px;
}

.NB-theme-feed-size-m .NB-story-title {
    font-size: 14px;
    line-height: 18px;
}

.NB-theme-feed-size-l .NB-story-title {
    font-size: 16px;
    line-height: 20px;
}

.NB-theme-feed-size-xl .NB-story-title {
    font-size: 18px;
    line-height: 22px;
}

.NB-story-title-magazine.NB-story-title,
.NB-story-title-magazine.NB-story-title .NB-storytitles-magazine-bottom {
    transition: padding 0.36s ease-out, margin 0.36s ease-out, transform 0.12s ease-out, border-radius 0.12s ease-out;
}

.NB-theme-feed-size-xs .NB-story-title-magazine.NB-story-title {
    font-size: 14px;
    line-height: 16px;
    padding-top: 10px;
}

.NB-theme-feed-size-s .NB-story-title-magazine.NB-story-title {
    font-size: 15px;
    line-height: 17px;
    padding-top: 15px;
}

.NB-theme-feed-size-m .NB-story-title-magazine.NB-story-title {
    font-size: 16px;
    line-height: 19px;
    padding-top: 20px;
}

.NB-theme-feed-size-l .NB-story-title-magazine.NB-story-title {
    font-size: 18px;
    line-height: 22px;
    padding-top: 25px;
}

.NB-theme-feed-size-xl .NB-story-title-magazine.NB-story-title {
    font-size: 20px;
    line-height: 24px;
    padding-top: 30px;
}

.NB-density-compact .NB-story-title-magazine.NB-story-title {
    padding-top: 4px;
}

.NB-density-compact .NB-story-title-magazine.NB-story-title.NB-selected {
    padding-top: 4px;
}

.NB-density-compact .NB-story-title-magazine.NB-story-title.NB-selected .NB-story-feed {
    margin-bottom: 6px;
}

.NB-story-pane-west .NB-story-title,
.NB-story-pane-west .NB-discover-story-titles .NB-story-title,
.NB-view-river .NB-story-pane-west .NB-discover-story-titles .NB-story-title {
    padding-right: 10px;
    padding-left: 40px;
}

.NB-view-river .NB-story-title {
    padding-left: 178px;
    padding-right: 10px;
}

.NB-view-river .NB-story-pane-west .NB-story-title {
    padding-left: 66px;
}

.NB-image-preview-small-right .NB-story-title.NB-has-image,
.NB-image-preview-large-right .NB-story-title.NB-has-image {
    padding-right: 242px;
}

.NB-image-preview-small-right .NB-story-pane-west .NB-story-title.NB-has-image,
.NB-image-preview-large-right .NB-story-pane-west .NB-story-title.NB-has-image {
    padding-right: 90px;
}

/* Ragged right but not ragged left
.NB-image-preview-small-left .NB-story-title.NB-has-image,
.NB-image-preview-large-left .NB-story-title.NB-has-image */
.NB-image-preview-small-left .NB-story-title,
.NB-image-preview-large-left .NB-story-title {
    padding-left: 116px;
}

.NB-story-title.NB-story-title-grid,
.NB-view-river .NB-story-title.NB-story-title-grid {
    padding-left: 0;
}

.NB-image-preview-small-left .NB-view-river .NB-story-title,
.NB-image-preview-large-left .NB-view-river .NB-story-title {
    padding-left: 248px;
}

.NB-image-preview-small-left .NB-view-river .NB-story-pane-west .NB-story-title,
.NB-image-preview-large-left .NB-view-river .NB-story-pane-west .NB-story-title {
    padding-left: 146px;
    padding-right: 6px;
}

.NB-image-preview-small-left .NB-view-river .NB-story-title.NB-story-title-grid,
.NB-image-preview-large-left .NB-view-river .NB-story-title.NB-story-title-grid {
    padding-left: 0;
}

.NB-image-preview-small-left .NB-story-title-magazine.NB-story-title,
.NB-image-preview-large-left .NB-story-title-magazine.NB-story-title,
.NB-view-river .NB-story-title-magazine.NB-story-title {
    padding-left: 400px;
    min-height: 200px;
}

.NB-image-preview-none .NB-story-title-magazine.NB-story-title {
    padding-left: 56px;
    min-height: none;
}

.NB-image-preview-large-right .NB-story-title-magazine.NB-story-title,
.NB-image-preview-small-right .NB-story-title-magazine.NB-story-title {
    padding-left: 48px;
    padding-right: 400px;
}

.NB-story-title-magazine.NB-story-title.NB-selected {
    min-height: 0;
}

.NB-story-title .NB-storytitles-feed-border-inner,
.NB-story-title .NB-storytitles-feed-border-outer {
    position: absolute;
    height: 100%;
    width: 4px;
    left: 0;
    top: 0;
    background-color: #505050;
}

.NB-story-title.read .NB-storytitles-feed-border-inner,
.NB-story-title.read .NB-storytitles-feed-border-outer {
    opacity: .06;
}

.NB-story-title .NB-storytitles-feed-border-inner {
    left: 4px;
    background-color: #707070;
}

.NB-story-title .NB-storytitles-sentiment {
    position: absolute;
    width: 24px;
    height: 20px;
    left: -31px;
    top: 12px;

    transition: top 0.36s ease-out;
}

.NB-theme-feed-size-xs .NB-storytitles-sentiment {
    top: 9px;
}

.NB-theme-feed-size-s .NB-storytitles-sentiment {
    top: 10px;
}

.NB-density-compact .NB-story-title .NB-storytitles-sentiment {
    top: 3px;
}

.NB-story-pane-west .NB-story-title .NB-storytitles-sentiment {
    left: -31px;
}

/* .NB-image-preview-small-left .NB-story-title .NB-storytitles-sentiment,
.NB-image-preview-large-left .NB-story-title .NB-storytitles-sentiment {
    left: -31px;
} */
.NB-story-title-magazine.NB-story-title .NB-storytitles-sentiment {
    left: -28px;
}

.NB-story-title.NB-story-positive .NB-storytitles-sentiment {
    background: transparent url('/media/embed/icons/nouns/indicator-focus.svg') no-repeat 11px 3px;
    background-size: 12px;
}

.NB-story-title.NB-story-neutral .NB-storytitles-sentiment {
    background: transparent url('/media/embed/icons/nouns/indicator-unread.svg') no-repeat 12px 4px;
    background-size: 10px;
}

.NB-story-title.NB-story-negative .NB-storytitles-sentiment {
    background: transparent url('/media/embed/icons/nouns/indicator-hidden.svg') no-repeat 12px 4px;
    background-size: 10px;
}

.NB-story-title.NB-story-starred .NB-storytitles-sentiment {
    background: transparent url('/media/embed/icons/nouns/indicator-unread.svg') no-repeat 13px 4px;
    background-size: 10px;
}

.NB-story-title .NB-storytitles-story-image {
    position: absolute;
    right: -80px;
    width: 78px;
    height: 100%;
    background-size: 40%, cover;
    background-position: 50% 50%, 50% 30%;
    background-repeat: no-repeat;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    /* margin: -15px 0 0 0; */
    transition: padding 0.36s ease-out, margin 0.36s ease-out, top 0.36s ease-out, height 0.36s ease-out;
}

.NB-image-preview-large-right .NB-story-title-list.NB-story-title .NB-storytitles-story-image,
.NB-image-preview-large-left .NB-story-title-list.NB-story-title .NB-storytitles-story-image,
.NB-image-preview-large-left .NB-story-title-split.NB-story-title .NB-storytitles-story-image,
.NB-image-preview-large-right .NB-story-title-split.NB-story-title .NB-storytitles-story-image {
    margin: 0 0 0 0;
    top: 0;
}

.NB-story-title-magazine.NB-story-title .NB-storytitles-story-image {
    background-size: 40%, contain;
}

.NB-story-title.read .NB-storytitles-story-image {
    opacity: 0.6;
}

.NB-image-preview-large-left .NB-story-title .NB-storytitles-story-image {
    right: inherit;
    left: -108px;
    top: 0;
}

.NB-image-preview-large-left .NB-view-river .NB-story-title .NB-storytitles-story-image {
    left: -138px;
}

.NB-image-preview-large-left .NB-view-river .NB-story-title-list.NB-story-title .NB-storytitles-story-image {
    left: -240px;
}

.NB-image-preview-large-left .NB-story-title-magazine.NB-story-title .NB-storytitles-story-image {
    height: 100%;
    top: 0;
}

.NB-story-title.NB-story-starred .NB-storytitles-star,
.NB-story-title.read.NB-story-starred .NB-storytitles-star {
    width: 16px;
    height: 16px;
    margin: 1px 6px 0 0;
    background: transparent url('/media/embed/icons/nouns/saved-stories.svg') no-repeat 0 0;
    background-size: 16px;
    float: left;
    display: none;
}

.NB-story-title.NB-story-starred .NB-storytitles-star,
.NB-story-title.read.NB-story-starred .NB-storytitles-star {
    display: block;
}

.NB-story-title.NB-story-shared .NB-storytitles-share,
.NB-story-title.read.NB-story-shared .NB-storytitles-share {
    width: 16px;
    height: 16px;
    margin: 1px 6px 0 0;
    background: transparent url('/media/embed/icons/nouns/share.svg') no-repeat 0 0;
    background-size: 16px;
    float: left;
    display: none;
}

.NB-story-title.NB-story-shared .NB-storytitles-share,
.NB-story-title.read.NB-story-shared .NB-storytitles-share {
    display: block;
}

.NB-story-title.read .NB-storytitles-sentiment {
    opacity: .15;
}

.NB-story-title:hover .NB-storytitles-sentiment {
    background: none;
}

.NB-story-title a.story_title {
    text-decoration: none;
    color: #272727;
    display: block;
    padding: 12px 4px 12px 4px;
    position: relative;
    width: 100%;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    overflow-wrap: break-word;
    word-break: break-word;
    transition: padding 0.36s ease-out, margin 0.36s ease-out, top 0.36s ease-out;
}

.NB-image-preview-small-right .NB-story-title.NB-has-image a.story_title,
.NB-image-preview-large-right .NB-story-title.NB-has-image a.story_title {
    padding-right: 12px;
}

.NB-density-compact .NB-story-title a.story_title {
    padding-top: 4px;
    padding-bottom: 4px;
}

.NB-story-title-list.NB-story-title a.story_title {
    padding-bottom: 12px;
}

.NB-density-compact .NB-story-title-list.NB-story-title a.story_title {
    padding-bottom: 4px;
}

.NB-story-title.read a.story_title {
    color: #969696;
}

.NB-storytitles-title {
    overflow-wrap: break-word;
    word-break: break-word;
}

.NB-view-river .NB-story-title a.story_title {}

.NB-story-title .NB-storytitles-author {
    font-size: 11px;
}

.NB-theme-feed-size-xs .NB-story-title .NB-storytitles-author {
    font-size: 10px;
}

.NB-theme-feed-size-s .NB-story-title .NB-storytitles-author {
    font-size: 11px;
}

.NB-theme-feed-size-l .NB-story-title .NB-storytitles-author {
    font-size: 12px;
}

.NB-theme-feed-size-xl .NB-story-title .NB-storytitles-author {
    font-size: 13px;
}

.NB-story-title.read .NB-middot {
    color: #cac9c5;
}

.NB-story-title.read .NB-storytitles-author {
    color: #cac9c5;
    font-weight: normal;
}

.NB-story-title.NB-selected .NB-storytitles-author {
    /*    text-shadow: 1px 1px 0 rgba(255, 255, 255, .5);*/
}

.NB-storytitles-content-preview {
    margin: 5px 0 0;
    color: #888785;
    font-size: 11px;
    line-height: 1.3em;
    overflow: hidden;
    font-weight: normal;
    text-overflow: ellipsis;
    word-break: break-word;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;

    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    display: -webkit-box;
}

.NB-density-compact .NB-storytitles-content-preview {
    margin-bottom: 0;
}

.NB-story-pane-west .NB-storytitles-content-preview {
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 16px;
    height: auto;
    padding: 6px 0 0;
}

.NB-density-compact .NB-story-pane-west .NB-storytitles-content-preview {
    padding-top: 0;
    margin-bottom: 4px;
}

.NB-content-preview-small .NB-story-pane-west .NB-storytitles-content-preview {
    -webkit-line-clamp: 2;
}

.NB-content-preview-medium .NB-story-pane-west .NB-storytitles-content-preview {
    -webkit-line-clamp: 4;
}

.NB-content-preview-large .NB-story-pane-west .NB-storytitles-content-preview {
    -webkit-line-clamp: 6;
}

.NB-content-preview-small .NB-storytitles-content-preview {
    -webkit-line-clamp: 1;
}

.NB-content-preview-medium .NB-storytitles-content-preview {
    -webkit-line-clamp: 2;
}

.NB-content-preview-large .NB-storytitles-content-preview {
    -webkit-line-clamp: 3;
}

.NB-content-preview-small .NB-story-title-magazine .NB-storytitles-content-preview {
    -webkit-line-clamp: 8;
}

.NB-content-preview-medium .NB-story-title-magazine .NB-storytitles-content-preview {
    -webkit-line-clamp: 12;
}

.NB-content-preview-large .NB-story-title-magazine .NB-storytitles-content-preview {
    -webkit-line-clamp: 16;
}

.NB-theme-feed-size-xs .NB-storytitles-content-preview {
    font-size: 11px;
    line-height: 13px;
}

.NB-theme-feed-size-s .NB-storytitles-content-preview {
    line-height: 14px;
}

.NB-theme-feed-size-m .NB-storytitles-content-preview {
    font-size: 12px;
}

.NB-theme-feed-size-l .NB-storytitles-content-preview {
    font-size: 13px;
    line-height: 17px;
    padding-top: 10px;
}

.NB-density-compact.NB-theme-feed-size-l .NB-storytitles-content-preview {
    padding-top: 0;
}

.NB-theme-feed-size-xl .NB-storytitles-content-preview {
    font-size: 14px;
    line-height: 18px;
    padding-top: 12px;
}

.NB-density-compact.NB-theme-feed-size-xl .NB-storytitles-content-preview {
    padding-top: 0;
}

.NB-content-preview-title .NB-storytitles-content-preview {
    display: none;
}

/* Add Site view: Content preview line clamp (class on element itself) */
/* Use higher specificity to override .NB-story-pane-west rules */
.NB-trending-feed-badges .NB-storytitles-content-preview.NB-content-preview-title,
.NB-storytitles-content-preview.NB-content-preview-title {
    display: none !important;
}

.NB-trending-feed-badges .NB-storytitles-content-preview.NB-content-preview-small,
.NB-storytitles-content-preview.NB-content-preview-small {
    display: -webkit-box !important;
    -webkit-box-orient: vertical !important;
    -webkit-line-clamp: 1 !important;
    overflow: hidden !important;
}

.NB-trending-feed-badges .NB-storytitles-content-preview.NB-content-preview-medium,
.NB-storytitles-content-preview.NB-content-preview-medium {
    display: -webkit-box !important;
    -webkit-box-orient: vertical !important;
    -webkit-line-clamp: 2 !important;
    overflow: hidden !important;
}

.NB-trending-feed-badges .NB-storytitles-content-preview.NB-content-preview-large,
.NB-storytitles-content-preview.NB-content-preview-large {
    display: -webkit-box !important;
    -webkit-box-orient: vertical !important;
    -webkit-line-clamp: 3 !important;
    overflow: hidden !important;
}

.NB-story-title-list.NB-selected .NB-storytitles-content-preview,
.NB-story-title-magazine.NB-selected .NB-storytitles-content-preview,
.NB-story-title-grid.NB-selected .NB-storytitles-content-preview {
    display: none;
}

.NB-layout-split .NB-story-title-list.NB-selected .NB-storytitles-content-preview {
    display: -webkit-box;
}

.NB-theme-feed-size-xs .NB-story-title-magazine .NB-storytitles-content-preview {
    font-size: 12px;
    line-height: 15px;
    margin: 10px 0;
}

.NB-theme-feed-size-s .NB-story-title-magazine .NB-storytitles-content-preview {
    font-size: 13px;
    line-height: 16px;
    margin: 15px 0;
}

.NB-theme-feed-size-m .NB-story-title-magazine .NB-storytitles-content-preview {
    font-size: 14px;
    line-height: 18px;
    margin: 20px 0;
}

.NB-theme-feed-size-l .NB-story-title-magazine .NB-storytitles-content-preview {
    font-size: 16px;
    line-height: 20px;
    margin: 25px 0;
}

.NB-theme-feed-size-xl .NB-story-title-magazine .NB-storytitles-content-preview {
    font-size: 18px;
    line-height: 22px;
    margin: 30px 0;
}

.NB-story-title-magazine .NB-storytitles-content-preview {
    transition: padding 0.36s ease-out, margin 0.36s ease-out;
}

.NB-density-compact .NB-story-title-magazine .NB-storytitles-content-preview {
    margin: 12px 0;
}

.read .NB-storytitles-content-preview {
    color: #b3b3b1;
}

.NB-storytitles-shares {
    position: absolute;
    height: 16px;
    right: 2px;
    top: 2px;
    max-width: 56px;
}

.NB-story-pane-west .NB-storytitles-shares {
    top: inherit;
    bottom: 4px;
}

.NB-storytitles-shares .NB-icon {
    float: right;
    width: 12px;
    height: 12px;
    margin: 2px 4px 0 0;
    background: transparent url('/media/embed/icons/nouns/share.svg') no-repeat 0 0;
    background-size: 16px;
}

.NB-storytitles-shares .NB-user-avatar {
    float: right;
    width: 12px;
    height: 12px;
    border-radius: 2px;
    margin: 3px 2px 20px 0;
    display: block;
}

/* Story clustering - always-expanded cluster sources */
.NB-story-cluster-sources {
    padding: 2px 0 4px 12px;
    margin: 2px 0 4px 12px;
    overflow: hidden;
}
.NB-story-cluster-source {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 3px 8px 3px 16px;
    cursor: pointer;
    font-size: 11px;
    color: #606060;
    position: relative;
    overflow: hidden;
}
.NB-story-cluster-source .NB-storytitles-feed-border-inner,
.NB-story-cluster-source .NB-storytitles-feed-border-outer {
    position: absolute;
    height: 100%;
    width: 4px;
    left: 0;
    top: 0;
}
.NB-story-cluster-source .NB-storytitles-feed-border-inner {
    left: 4px;
}
.NB-story-cluster-source:hover {
    background: rgba(0, 0, 0, 0.04);
    color: #303030;
}
.NB-story-cluster-source img,
.NB-story-cluster-source .feed_favicon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}
.NB-story-cluster-source .NB-cluster-feed-title {
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 40%;
}
.NB-story-cluster-source .NB-cluster-story-title {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
    min-width: 0;
}
.NB-story-cluster-source .NB-cluster-date {
    color: #999;
    font-size: 10px;
    white-space: nowrap;
    flex-shrink: 0;
}

/* Dark theme */
.NB-dark .NB-story-cluster-sources {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 4px;
}
.NB-dark .NB-story-cluster-source {
    color: #c8c8c8;
}
.NB-dark .NB-story-cluster-source:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #e0e0e0;
}
.NB-dark .NB-story-cluster-source .NB-cluster-date {
    color: #999;
}
.NB-dark .NB-story-cluster-source .NB-cluster-feed-title {
    color: #d0d0d0;
}

/* Cluster source score indicators (single-line mode) */
.NB-story-cluster-source .NB-cluster-sentiment {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    background-size: 8px;
    background-position: center;
    background-repeat: no-repeat;
}
.NB-story-cluster-source.NB-story-positive .NB-cluster-sentiment {
    background-image: url(/media/embed/icons/nouns/indicator-focus.svg);
}
.NB-story-cluster-source.NB-story-neutral .NB-cluster-sentiment {
    background-image: url(/media/embed/icons/nouns/indicator-unread.svg);
}
.NB-story-cluster-source.NB-story-negative .NB-cluster-sentiment {
    background-image: url(/media/embed/icons/nouns/indicator-hidden.svg);
}

/* Read-state styling for single-line cluster rows */
.NB-story-cluster-source.read {
    color: #969696;
}
.NB-story-cluster-source.read .NB-cluster-story-title {
    font-weight: normal;
}
.NB-story-cluster-source.read .NB-cluster-sentiment {
    opacity: .15;
}
.NB-story-cluster-source.read .NB-storytitles-feed-border-inner,
.NB-story-cluster-source.read .NB-storytitles-feed-border-outer {
    opacity: .06;
}
.NB-story-cluster-source.read .NB-cluster-story-image {
    opacity: 0.6;
}
.NB-story-cluster-source.read img,
.NB-story-cluster-source.read .feed_favicon {
    opacity: 0.35;
}
.NB-dark .NB-story-cluster-source.read {
    color: #707070;
}

/* Dark theme - cluster score indicators (single-line mode) */
.NB-dark .NB-story-cluster-source.NB-story-positive .NB-cluster-sentiment {
    filter: brightness(1.4);
}
.NB-dark .NB-story-cluster-source.NB-story-negative .NB-cluster-sentiment {
    filter: brightness(1.4);
}
.NB-dark .NB-story-cluster-source.NB-story-neutral .NB-cluster-sentiment {
    filter: brightness(1.3);
}

/* Single-line cluster story image thumbnail (24x24) */
.NB-story-cluster-source .NB-cluster-story-image {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    background-size: cover;
    background-position: center;
    border-radius: 3px;
}
/* Left alignment - move image before title, after favicon */
.NB-image-preview-small-left .NB-story-cluster-source .NB-cluster-story-title,
.NB-image-preview-large-left .NB-story-cluster-source .NB-cluster-story-title {
    order: 2;
}
.NB-image-preview-small-left .NB-story-cluster-source .NB-cluster-story-image,
.NB-image-preview-large-left .NB-story-cluster-source .NB-cluster-story-image {
    order: 1;
}
.NB-image-preview-small-left .NB-story-cluster-source .NB-cluster-date,
.NB-image-preview-large-left .NB-story-cluster-source .NB-cluster-date {
    order: 3;
}

/* ======== Cluster story title - expanded mode ======== */
/* Compact modifier on .NB-story-title for cluster source rows */

/* Reset padding and appearance for all layout contexts */
.NB-story-title.NB-story-title-cluster,
.NB-view-river .NB-story-title.NB-story-title-cluster,
.NB-story-pane-west .NB-story-title.NB-story-title-cluster,
.NB-view-river .NB-story-pane-west .NB-story-title.NB-story-title-cluster {
    font-size: 11px;
    line-height: 13px;
    padding: 0 8px 0 42px;
    background-color: transparent;
    border-top: none;
    border-bottom: none;
    transition: none;
}

/* Right image: add space for smaller thumbnail */
.NB-image-preview-small-right .NB-story-title.NB-story-title-cluster.NB-has-image,
.NB-image-preview-large-right .NB-story-title.NB-story-title-cluster.NB-has-image,
.NB-image-preview-small-right .NB-story-pane-west .NB-story-title.NB-story-title-cluster.NB-has-image,
.NB-image-preview-large-right .NB-story-pane-west .NB-story-title.NB-story-title-cluster.NB-has-image {
    padding-right: 52px;
}

/* Left image: add space on left */
.NB-image-preview-small-left .NB-story-title.NB-story-title-cluster,
.NB-image-preview-large-left .NB-story-title.NB-story-title-cluster,
.NB-image-preview-small-left .NB-story-pane-west .NB-story-title.NB-story-title-cluster,
.NB-image-preview-large-left .NB-story-pane-west .NB-story-title.NB-story-title-cluster {
    padding-left: 88px;
}

/* Compact title link padding */
.NB-story-title.NB-story-title-cluster a.story_title {
    padding: 4px 4px 2px 4px;
}

/* Feed favicon column - positioned after border bars.
   Use high specificity to beat .NB-story-pane-west overrides */
.NB-story-cluster-sources .NB-story-title.NB-story-title-cluster .NB-story-feed {
    display: block;
    left: -30px;
    top: 4px;
    width: 16px;
    height: 16px;
}
.NB-story-cluster-sources .NB-story-title.NB-story-title-cluster .NB-story-feed .feed_favicon {
    width: 16px;
    height: 16px;
}
.NB-story-cluster-sources .NB-story-title.NB-story-title-cluster .NB-story-feed .feed_title {
    display: none;
}

/* Unread indicator column - positioned between favicon and title text.
   Use high specificity to beat .NB-story-pane-west overrides */
.NB-story-cluster-sources .NB-story-title.NB-story-title-cluster .NB-storytitles-sentiment {
    left: -14px;
    top: 4px;
    width: 16px;
    height: 16px;
}
/* Reposition indicator icons within the narrower sentiment div */
.NB-story-title.NB-story-title-cluster.NB-story-positive .NB-storytitles-sentiment {
    background-position: 2px 2px;
    background-size: 10px;
}
.NB-story-title.NB-story-title-cluster.NB-story-neutral .NB-storytitles-sentiment {
    background-position: 3px 3px;
    background-size: 8px;
}
.NB-story-title.NB-story-title-cluster.NB-story-negative .NB-storytitles-sentiment {
    background-position: 3px 3px;
    background-size: 8px;
}

/* Smaller story image thumbnail */
.NB-story-cluster-sources .NB-story-title .NB-storytitles-story-image {
    width: 40px;
    right: -44px;
    top: 0;
}
/* Left image positioning */
.NB-image-preview-small-left .NB-story-cluster-sources .NB-story-title .NB-storytitles-story-image,
.NB-image-preview-large-left .NB-story-cluster-sources .NB-story-title .NB-storytitles-story-image,
.NB-image-preview-small-left .NB-view-river .NB-story-cluster-sources .NB-story-title .NB-storytitles-story-image,
.NB-image-preview-large-left .NB-view-river .NB-story-cluster-sources .NB-story-title .NB-storytitles-story-image {
    right: inherit;
    left: -80px;
    top: 0;
}

/* Compact content preview - same color as parent, just tighter */
.NB-story-title.NB-story-title-cluster .NB-storytitles-content-preview {
    margin-top: 1px;
    -webkit-line-clamp: 1;
}

/* Compact split bottom - tighter margin only, same font sizes as parent */
.NB-story-title.NB-story-title-cluster .NB-story-title-split-bottom {
    margin-top: 2px;
}

/* Remove ALL read-state dimming on cluster rows — size differentiates, not color */
.NB-story-title.NB-story-title-cluster.read a.story_title {
    color: #272727;
}
.NB-story-title.NB-story-title-cluster.read .NB-storytitles-feed-border-inner,
.NB-story-title.NB-story-title-cluster.read .NB-storytitles-feed-border-outer {
    opacity: 1;
}
.NB-story-title.NB-story-title-cluster.read .NB-storytitles-story-image {
    opacity: 1;
}
.NB-story-title.NB-story-title-cluster.read .NB-storytitles-sentiment {
    opacity: 1;
}
.NB-story-title.NB-story-title-cluster.read .feed_favicon {
    opacity: .65;
}
.NB-story-title.NB-story-title-cluster.read .story_date {
    color: #888785;
}
.NB-story-title.NB-story-title-cluster.read .NB-storytitles-author {
    color: inherit;
    font-weight: inherit;
}
.NB-story-title.NB-story-title-cluster.read .NB-middot {
    color: inherit;
}
.NB-story-title.NB-story-title-cluster.read .NB-storytitles-content-preview {
    color: #888785;
}

/* Hover state - subtle, no transform */
.NB-story-title.NB-story-title-cluster:hover {
    background-color: rgba(0, 0, 0, 0.03);
    transform: none;
    border-radius: 0;
    border-top: none;
    border-bottom: none;
}

/* Dark mode - cluster expanded rows */
.NB-dark .NB-story-title.NB-story-title-cluster {
    background-color: transparent;
    border-top: none;
    border-bottom: none;
}
.NB-dark .NB-story-title.NB-story-title-cluster:hover,
.NB-dark .NB-story-title.NB-story-title-cluster:hover:not(.NB-selected) {
    background-color: rgba(255, 255, 255, 0.06);
    border-top: none;
    border-bottom: none;
}
.NB-dark .NB-story-title.NB-story-title-cluster .NB-storytitles-sentiment {
    filter: brightness(1.4);
}
.NB-dark .NB-story-title.NB-story-title-cluster.read:hover:not(.NB-selected) {
    background-color: rgba(255, 255, 255, 0.04);
}
/* Remove ALL read-state dimming on cluster rows in dark mode */
.NB-dark .NB-story-title.NB-story-title-cluster.read a.story_title {
    color: #ddd;
}
.NB-dark .NB-story-title.NB-story-title-cluster.read .NB-storytitles-feed-border-inner,
.NB-dark .NB-story-title.NB-story-title-cluster.read .NB-storytitles-feed-border-outer {
    opacity: 1;
}
.NB-dark .NB-story-title.NB-story-title-cluster.read .NB-storytitles-author {
    color: inherit;
}
.NB-dark .NB-story-title.NB-story-title-cluster.read .story_date {
    color: inherit;
}
.NB-dark .read .NB-story-title-cluster .NB-storytitles-content-preview,
.NB-dark .NB-story-title.NB-story-title-cluster.read .NB-storytitles-content-preview {
    color: inherit;
}

/* Story detail cluster section (uses StoryTitleView) */
.NB-story-cluster-detail {
    margin: 24px 0 0;
    border-top: 1px solid #E0E0E0;
    padding-top: 16px;
}
.NB-story-cluster-detail-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}
.NB-story-cluster-detail-title {
    font-size: 13px;
    font-weight: 600;
    color: #606060;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.NB-story-cluster-detail-item {
    border-bottom: 1px solid #E8EDF0;
}
.NB-story-cluster-detail-item:last-child {
    border-bottom: none;
}

/* Dark theme - story detail cluster section */
.NB-dark .NB-story-cluster-detail {
    border-top-color: #404040;
}
.NB-dark .NB-story-cluster-detail-title {
    color: #909090;
}
.NB-dark .NB-story-cluster-detail-item {
    border-bottom-color: #3a3a3a;
}
.NB-dark .NB-story-cluster-detail-item:hover {
    color: #909090;
}

.NB-story-title .NB-story-feed {
    display: none;
    left: -150px;
    top: 14px;
    width: 118px;
    height: 12px;
    color: #707070;
    position: absolute;
    transition: top 0.36s ease-out;
}

.NB-story-title-magazine.NB-story-title .NB-story-feed {
    position: relative;
    top: auto;
    left: auto;
    width: 100%;
    margin: 0 0 14px 4px;
}

.NB-density-compact .NB-story-title-magazine.NB-story-title .NB-story-feed {
    top: 0;
}

.NB-story-pane-west .NB-story-title .NB-story-feed {
    left: -47px;
    top: 14px;
}

.NB-density-compact .NB-story-title .NB-story-feed {
    top: 6px;
}

.NB-view-river .NB-story-title .NB-story-feed {
    display: block;
}

.NB-story-title .NB-story-feed .feed_favicon {
    position: absolute;
    top: 0;
    left: 0;
    vertical-align: text-bottom;
    opacity: .65;
    height: 16px;
    width: 16px;
}

.NB-story-title.read .feed_favicon {
    opacity: .4;
}

.NB-story-title .NB-story-feed .feed_title {
    display: block;

    font-size: 11px;
    position: absolute;
    left: 20px;
    top: 0;
    height: 14px;
    overflow: hidden;
    width: 100px;
    line-height: 1.3em;
    word-break: break-all;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.NB-theme-feed-size-xs .NB-story-title .NB-story-feed .feed_title {
    font-size: 10px;
    height: 12px;
}

.NB-theme-feed-size-m .NB-story-title .NB-story-feed .feed_title {
    font-size: 11px;
    height: 15px;
}

.NB-theme-feed-size-l .NB-story-title .NB-story-feed .feed_title {
    font-size: 12px;
    height: 15px;
}

.NB-theme-feed-size-xl .NB-story-title .NB-story-feed .feed_title {
    font-size: 12px;
    height: 15px;
}

.NB-story-title.NB-selected .NB-story-feed .feed_title {
    /*    text-shadow: 1px 1px 0 rgba(255, 255, 255, .5);*/
}

.NB-story-pane-west .NB-story-title .NB-story-feed .feed_title {
    display: none;
}

.NB-discover-story-titles .NB-story-title .NB-story-feed {
    display: flex;
    gap: 8px;
    position: static;
    margin: 2px 0 14px;
    width: auto;
}

.NB-discover-story-titles .NB-story-title .NB-story-feed img,
.NB-discover-story-titles .NB-story-title .NB-story-feed .feed_title {
    position: static;
    display: block;
    width: auto;
}

.NB-story-title .NB-story-manage-icon {
    display: none;
    position: absolute;
    left: -31px;
    top: 12px;
    width: 28px;
    height: 22px;
    background: transparent url('/media/embed/icons/nouns/right.svg') no-repeat 13px 6px;
    background-size: 8px;
    z-index: 1;
}

.NB-density-compact .NB-story-title .NB-story-manage-icon {
    top: 3px;
}

.NB-story-title-magazine.NB-story-title .NB-story-manage-icon {
    left: -28px;
}

.NB-story-title-grid.NB-story-title .NB-story-manage-icon {
    left: 0;
    top: 2px;
}

.NB-story-title:hover .NB-story-manage-icon {
    display: block;
}

.NB-story-title:hover .NB-story-manage-icon:hover {
    background: transparent url('/media/embed/icons/nouns/down.svg') no-repeat 13px 6px;
    background-size: 8px;
    cursor: pointer;
}

.NB-story-title.NB-hover-inverse:hover .NB-story-manage-icon:hover {
    background: transparent url('/media/embed/icons/nouns/up.svg') no-repeat 13px 6px;
    background-size: 8px;
    cursor: pointer;
}


.NB-story-sentiment {
    position: absolute;
    width: 22px;
    height: 16px;
    top: 0;
    padding: 2px 0;
    display: none;
}

.NB-story-title:hover .NB-story-sentiment {
    display: block;
}

.NB-story-like {
    left: 22px;
    background: transparent url('/media/embed/icons/nouns/thumbs-up.svg') no-repeat 2px 3px;
    opacity: .25;
}

.NB-story-like:hover {
    opacity: 1;
}

.NB-story-title .story_date {
    color: #888785;
    font-weight: normal;
    font-size: 12px;
}

.NB-story-title-list.NB-story-title .story_date {
    position: absolute;
    width: 140px;
    top: 14px;
    right: 0;
}

.NB-density-compact.NB-story-title-list.NB-story-title .story_date {
    top: 6px;
}

.NB-theme-feed-size-xs .story_date {
    font-size: 10px;
    line-height: 13px;
}

.NB-theme-feed-size-s .story_date {
    font-size: 11px;
    line-height: 14px;
}

.NB-theme-feed-size-m .story_date {
    font-size: 11px;
    line-height: 14px;
}

.NB-theme-feed-size-l .story_date {
    font-size: 12px;
    line-height: 15px;
}

.NB-theme-feed-size-xl .story_date {
    font-size: 13px;
    line-height: 16px;
}

.NB-story-title.read .story_date {
    color: #cac9c5;
}

.NB-story-pane-west .NB-story-title .story_date {
    position: static;
    margin: 4px 0 4px 0px;
    top: 0;
    left: 0;
    right: 0;
    font-weight: normal;
    clear: both;
}

.NB-story-title-split-bottom {
    color: #888785;
    font-weight: normal;
    margin: 8px 0 0 0;
}

.NB-density-compact .NB-story-title-split-bottom {
    margin-bottom: 0;
}

.NB-story-title {
    transition: transform 0.12s ease-out, border-radius 0.12s ease-out, height 0.36s ease-out, background-color 0.22s ease-out;
    transform-origin: center top;
}

.NB-story-title.NB-selected,
.NB-interaction:hover:not(.NB-disabled) {
    color: #304080;
    background-color: #FFFEE2;
    /* background-color: #e8f3ff; */
    border-top: 1px solid rgb(255 254 237);
    border-bottom: 1px solid rgb(249 248 222);
    transform: scale(0.97);
    border-radius: 8px;
}

.NB-story-title:hover:not(.NB-selected) {
    background-color: #F7F7F6;
    /*    border-top: 1px solid transparent;*/

    transition: transform 0.12s ease-out, border-radius 0.12s ease-out, height 0.36s ease-out, background-color 0s ease-out;

}

.NB-story-title.read:hover:not(.NB-selected) {
    background-color: #FDFCFA;
}

.NB-interaction:active:not(.NB-disabled) {
    color: #304080;
    border-top: 1px solid #6EADF5;
    border-bottom: 1px solid #6EADF5;
    background-color: #D4E2F2;
    background: -webkit-gradient(linear, 0% 0%, 0% 100%, from(#D4E2F2), to(#C8DEF8));
    background: -moz-linear-gradient(center top, #D4E2F2 0%, #C8DEF8 100%);
}

.NB-end-line {
    min-height: 76px;
    border-top: 1px solid #dbdbda;
    border-bottom: 1px solid #E1E6E0;
    /*    padding-left: 14px; /* offset for scrollbar on right */
    background-color: #F8F8F8;
    background: -webkit-gradient(linear, 0% 0%, 0% 100%, from(#F8F8F8), to(#F1F6F0));
    background: -moz-linear-gradient(center top, #F8F8F8 0%, #F1F6F0 100%);
    background-image: no-repeat center center;
    overflow: hidden;
    clear: both;
}

.NB-load-line {
    background: none;
    animation: end-line-animation 1.7s ease infinite;
}

@keyframes end-line-animation {
    0% {
        background-color: #E1EBFF
    }

    38% {
        background-color: #5C89C9
    }

    100% {
        background-color: #E1EBFF
    }
}

.NB-feed-fetching-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    color: #808080;
    font-size: 13px;
    max-height: 0;
    padding: 0 24px;
    opacity: 0;
    overflow: hidden;
    transition: max-height 1s ease-in-out, padding 1s ease-in-out, opacity 1s ease-in-out;
}

.NB-feed-fetching-indicator.NB-active {
    max-height: 150px;
    padding: 48px 24px;
    opacity: 1;
}

.NB-feed-fetching-spinner {
    width: 28px;
    height: 28px;
    border: 3px solid #E0E0E0;
    border-top-color: #5C89C9;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.NB-feed-fetching-text {
    font-weight: 500;
    letter-spacing: 0.02em;
}

.NB-module-river .NB-end-line {
    border-top: none;
    border-bottom: none;
}

.NB-end-line.NB-short {
    height: 8px;
    min-height: 8px;
}

.NB-end-line .NB-fleuron {
    background: transparent url('/media/embed/reader/fleuron.png') no-repeat center center;
    background-size: 203px 24px;
    margin: 0 auto;
    width: 175px;
    height: 76px;
}

.NB-empty .NB-end-line {
    display: none;
}

.NB-module-river .NB-end-line {
    display: none;
}

.NB-module-river .NB-end-line.NB-visible {
    display: block;
}

/* ============================= */
/* = Story Detail in List View = */
/* ============================= */

.NB-story-title-container .NB-feed-story {}

/* ============================= */
/* = Story Detail in Grid View = */
/* ============================= */

.NB-layout-grid {
    background-color: #F7F8F5;
}

.NB-layout-grid#story_titles>.NB-story-titles {
    display: grid;
    grid-gap: 2rem;
    padding: 2rem;
}

.NB-layout-grid .NB-end-line {
    margin: 0 -2rem -2rem;

    grid-column-start: 1;
    grid-column-end: -1;
}

.NB-layout-grid .NB-story-title-container {}

.NB-layout-grid .NB-story-title-container.NB-selected {
    margin: 0 -2rem;

    grid-column-start: 1;
    grid-column-end: -1;
}

.NB-story-title-grid {
    margin: 0;
    border: 1px solid rgba(0, 0, 0, .2);
    height: 360px;
    padding: 0;
    border-radius: 2px;

    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}

.NB-layout-grid.NB-grid-height-xs .NB-story-title-grid {
    height: 280px;
}

.NB-layout-grid.NB-grid-height-s .NB-story-title-grid {
    height: 360px;
}

.NB-layout-grid.NB-grid-height-m .NB-story-title-grid {
    height: 420px;
}

.NB-layout-grid.NB-grid-height-l .NB-story-title-grid {
    height: 480px;
}

.NB-layout-grid.NB-grid-height-xl .NB-story-title-grid {
    height: 540px;
}

.NB-story-title-grid.NB-story-title-hide-preview,
.NB-content-preview-title .NB-story-title-grid {
    height: 296px;
}

.NB-image-preview-small-right .NB-layout-grid .NB-story-title.NB-selected.NB-has-image,
.NB-image-preview-large-right .NB-layout-grid .NB-story-title.NB-selected.NB-has-image {
    padding-right: 242px;
}

.NB-layout-grid#story_titles>.NB-story-titles,
.NB-layout-grid.NB-grid-columns-3#story_titles>.NB-story-titles,
.NB-wide-content#story_titles>.NB-story-titles {
    grid-template-columns: none;
    grid-template-columns: repeat(3, 1fr);
}

.NB-layout-grid.NB-grid-columns-1#story_titles>.NB-story-titles,
.NB-layout-grid.NB-extra-narrow-content#story_titles>.NB-story-titles,
.NB-extra-narrow-content.NB-narrow-content#story_titles>.NB-story-titles {
    grid-template-columns: none;
    grid-template-columns: repeat(1, 1fr);
}

.NB-layout-grid.NB-grid-columns-2#story_titles>.NB-story-titles,
.NB-narrow-content#story_titles>.NB-story-titles {
    grid-template-columns: none;
    grid-template-columns: repeat(2, 1fr);
}

.NB-layout-grid.NB-grid-columns-4#story_titles>.NB-story-titles,
.NB-extra-wide-content#story_titles>.NB-story-titles {
    grid-template-columns: none;
    grid-template-columns: repeat(4, 1fr);
}

.NB-view-river .NB-story-title-grid .NB-story-title-grid {
    padding-left: 0;
    border: none;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    border-radius: 3px;
}

.NB-story-title-grid,
.NB-story-title.NB-story-title-grid:hover {
    border: none;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.NB-story-title-grid.NB-selected {}

.NB-story-title-grid .NB-storytitles-content {
    position: relative;
    margin: 12px 24px 8px 38px;
    height: 100%;
    z-index: 0;
}

.NB-story-title-grid a.story_title {
    padding: 2px 0 0 0;
    margin: 0;
    position: relative;
}

.NB-density-compact .NB-story-title-grid a.story_title {
    padding-top: 2px;
    padding-bottom: 2px;
}

.NB-story-title-grid .NB-storytitles-title {
    font-size: 16px;
    line-height: 1.3em;
    padding: 0;
    word-break: break-word;
}

.NB-theme-feed-size-xs .NB-story-title-grid .NB-storytitles-title {
    font-size: 14px;
}

.NB-theme-feed-size-s .NB-story-title-grid .NB-storytitles-title {
    font-size: 15px;
}

.NB-theme-feed-size-l .NB-story-title-grid .NB-storytitles-title {
    font-size: 17px;
}

.NB-theme-feed-size-xl .NB-story-title-grid .NB-storytitles-title {
    font-size: 18px;
}

.NB-story-title-grid .NB-storytitles-content-preview {
    margin: 12px 0 0 0;
    word-break: break-word;
}

.NB-story-title-grid .NB-storytitles-story-image-container {
    margin-left: 8px;
}

.NB-image-preview-small-left .NB-story-title-grid .NB-storytitles-story-image,
.NB-image-preview-large-left .NB-story-title-grid .NB-storytitles-story-image,
.NB-image-preview-small-right .NB-story-title-grid .NB-storytitles-story-image,
.NB-image-preview-large-right .NB-story-title-grid .NB-storytitles-story-image {
    display: none;
    position: inherit;
    width: 100%;
    height: 186px;
    background-size: 64px 64px, cover;
    background-position: 50% 60%, 50% 30%;
    border-radius: 0;
    background-repeat: no-repeat;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}

.NB-image-preview-small-left .NB-grid-height-xs .NB-story-title-grid .NB-storytitles-story-image,
.NB-image-preview-small-right .NB-grid-height-xs .NB-story-title-grid .NB-storytitles-story-image {
    height: 76px;
}

.NB-image-preview-large-left .NB-grid-height-xs .NB-story-title-grid .NB-storytitles-story-image,
.NB-image-preview-large-right .NB-grid-height-xs .NB-story-title-grid .NB-storytitles-story-image {
    height: 106px;
}

.NB-image-preview-small-left .NB-grid-height-s .NB-story-title-grid .NB-storytitles-story-image,
.NB-image-preview-small-right .NB-grid-height-s .NB-story-title-grid .NB-storytitles-story-image {
    height: 106px;
}

.NB-image-preview-large-left .NB-grid-height-s .NB-story-title-grid .NB-storytitles-story-image,
.NB-image-preview-large-right .NB-grid-height-s .NB-story-title-grid .NB-storytitles-story-image {
    height: 146px;
}

.NB-image-preview-small-left .NB-grid-height-m .NB-story-title-grid .NB-storytitles-story-image,
.NB-image-preview-small-right .NB-grid-height-m .NB-story-title-grid .NB-storytitles-story-image {
    height: 146px;
}

.NB-image-preview-large-left .NB-grid-height-m .NB-story-title-grid .NB-storytitles-story-image,
.NB-image-preview-large-right .NB-grid-height-m .NB-story-title-grid .NB-storytitles-story-image {
    height: 202px;
}

.NB-image-preview-small-left .NB-grid-height-l .NB-story-title-grid .NB-storytitles-story-image,
.NB-image-preview-small-right .NB-grid-height-l .NB-story-title-grid .NB-storytitles-story-image {
    height: 202px;
}

.NB-image-preview-large-left .NB-grid-height-l .NB-story-title-grid .NB-storytitles-story-image,
.NB-image-preview-large-right .NB-grid-height-l .NB-story-title-grid .NB-storytitles-story-image {
    height: 242px;
}

.NB-image-preview-small-left .NB-grid-height-xl .NB-story-title-grid .NB-storytitles-story-image,
.NB-image-preview-small-right .NB-grid-height-xl .NB-story-title-grid .NB-storytitles-story-image {
    height: 242px;
}

.NB-image-preview-large-left .NB-grid-height-xl .NB-story-title-grid .NB-storytitles-story-image,
.NB-image-preview-large-right .NB-grid-height-xl .NB-story-title-grid .NB-storytitles-story-image {
    height: 272px;
}

.NB-layout-grid.NB-grid-height-xs.NB-grid-columns-3 .NB-story-title-grid .NB-storytitles-author,
.NB-layout-grid.NB-grid-height-xs.NB-grid-columns-4 .NB-story-title-grid .NB-storytitles-author,
.NB-layout-grid.NB-grid-height-s.NB-grid-columns-4 .NB-story-title-grid .NB-storytitles-author {
    display: none;
}

.NB-story-title-grid.read .NB-storytitles-story-image {
    opacity: .5;
}

.NB-story-title-grid.NB-selected .NB-storytitles-story-image {
    display: none;
}

.NB-story-title-grid .NB-storytitles-feed-border-inner,
.NB-story-title-grid .NB-storytitles-feed-border-outer {
    /*    height: 4px;*/
    /*    width: 100%;*/
    /*    position: static;*/
    z-index: 1;
}

.NB-story-title-grid.read .NB-storytitles-feed-border-inner,
.NB-story-title-grid.read .NB-storytitles-feed-border-outer {
    opacity: .2;
}

.NB-story-title-grid .NB-storytitles-content-preview {
    height: auto;
    -webkit-line-clamp: inherit;
    font-size: 12px;
    line-height: 1.44em;
}

.NB-theme-feed-size-xs .NB-story-title-grid .NB-storytitles-content-preview {
    font-size: 10px;
}

.NB-theme-feed-size-s .NB-story-title-grid .NB-storytitles-content-preview {
    font-size: 11px;
}

.NB-theme-feed-size-l .NB-story-title-grid .NB-storytitles-content-preview {
    font-size: 13px;
}

.NB-theme-feed-size-xl .NB-story-title-grid .NB-storytitles-content-preview {
    font-size: 14px;
}

.NB-story-title-grid.read .NB-storytitles-content-preview {
    color: #D6D6DE;
}

.NB-story-title .NB-storytitles-grid-bottom {
    position: absolute;
    bottom: 0;
    top: inherit;
    left: 0;
    background-color: #FDFCFA;
    width: 100%;
    padding: 4px 16px 6px 38px;
    color: #A6A3A7;
    font-weight: normal;
    border-top: 1px solid #f2f2f2;

    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}

.NB-theme-feed-size-xs .NB-story-title .NB-storytitles-grid-bottom {
    font-size: 10px;
}

.NB-theme-feed-size-s .NB-story-title .NB-storytitles-grid-bottom {
    font-size: 11px;
}

.NB-theme-feed-size-m .NB-story-title .NB-storytitles-grid-bottom {
    font-size: 11px;
}

.NB-theme-feed-size-l .NB-story-title .NB-storytitles-grid-bottom {
    font-size: 12px;
}

.NB-theme-feed-size-xl .NB-story-title .NB-storytitles-grid-bottom {
    font-size: 13px;
}

.NB-story-title-grid:not(.read):hover .NB-storytitles-grid-bottom {
    background-color: #F7F7F6;
}

.NB-storytitles-magazine-bottom {
    position: relative;
    margin: 0 0 20px 4px;
    color: #A6A3A7;
    font-weight: normal;
    transition: padding 0.36s ease-out, margin 0.36s ease-out;
}

.NB-density-compact .NB-storytitles-magazine-bottom {
    margin-bottom: 4px;
}

.NB-theme-feed-size-xs .NB-story-title .NB-storytitles-magazine-bottom {
    font-size: 10px;
}

.NB-theme-feed-size-s .NB-story-title .NB-storytitles-magazine-bottom {
    font-size: 11px;
}

.NB-theme-feed-size-m .NB-story-title .NB-storytitles-magazine-bottom {
    font-size: 11px;
}

.NB-theme-feed-size-l .NB-story-title .NB-storytitles-magazine-bottom {
    font-size: 12px;
}

.NB-theme-feed-size-xl .NB-story-title .NB-storytitles-magazine-bottom {
    font-size: 13px;
}

.NB-story-title.NB-story-title-grid .NB-storytitles-sentiment,
.NB-story-title.NB-story-title-grid .NB-story-manage-icon {
    left: -32px;
    top: 2px;
}

.NB-story-title-magazine .NB-story-feed,
.NB-story-title-grid .NB-story-feed {
    position: static;
    margin: 10px 0;
    height: auto;
    overflow: hidden;
}

.NB-story-title-magazine .NB-story-feed .feed_favicon,
.NB-story-title-grid .NB-story-feed .feed_favicon {
    margin: 0 4px 0 0;
    float: left;
    position: static;
}

.NB-story-title-magazine .NB-story-feed .feed_title,
.NB-story-title-grid .NB-story-feed .feed_title {
    width: auto;
    -webkit-line-clamp: 1;
    height: 16px;
    margin: 2px 0 0 0;
    line-height: 16px;
    word-break: break-all;
    text-overflow: ellipsis;
}

.NB-story-title-grid .feed_favicon,
.NB-story-title-grid .feed_title {
    position: static;
}


/* =================== */
/* = Story Navigator = */
/* =================== */

#story_pane .story_navigator {
    position: relative;
}

#story_pane .NB-story-pane-container {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
}

#story_pane a.button {
    outline: none;
    border: none;
    text-decoration: none;
    cursor: pointer;
    white-space: nowrap;
    vertical-align: middle;
    overflow: visible;
    color: #000;
    background-color: #acc;
    padding: 5px 7px;
    margin: 0px 2px;
}

#story_pane a.button:hover {
    background-color: #cee;
}

#story_pane a.button.like {
    float: right;
    width: 24px;
    height: 16px;
    background: #acc url('/media/embed/icons/silk/arrow_up.png') no-repeat 50% 50%;
}

#story_pane a.button.like:hover {
    background: #cee url('/media/embed/icons/silk/arrow_up.png') no-repeat 50% 50%;
}

#story_pane a.button.dislike {
    float: right;
    width: 16px;
    height: 16px;
    background: #acc url('/media/embed/icons/silk/arrow_down.png') no-repeat 50% 50%;
}

#story_pane a.button.dislike:hover {
    background: #cee url('/media/embed/icons/silk/arrow_down.png') no-repeat 50% 50%;
}

/* ================= */
/* = Content Panes = */
/* ================= */

#story_pane {
    display: none;
    overflow: hidden;
}

#story_pane .NB-feed-story-view {
    overflow: hidden;
    position: relative;
    top: 0;
    left: 100% !important;
    width: 100%;
    height: 100%;
}

#story_pane .NB-feed-iframe,
#story_pane .NB-story-view,
#story_pane .NB-text-view {
    width: 100%;
    height: 100%;
    border: 0;
    margin: 0 !important;
    padding: 0 !important;
    overflow: auto !important;
    display: block;
    position: absolute;
}

#story_pane .NB-story-iframe {
    width: 100%;
    height: 100%;
    border: 0;
    margin: 0 !important;
    padding: 0 !important;
    overflow: auto !important;
    display: block;
}

#story_pane .NB-text-view {
    left: 200%;
    top: 0;
}

#story_pane .NB-story-view {
    left: 300%;
    top: 0;
}

/* ================================ */
/* = Feed View Feed Title Floater = */
/* ================================ */

.NB-feed-stories-container {
    overflow-x: hidden;
    overflow-y: scroll;
    height: 100%;
    position: relative;
}

.NB-feed-story-view-floater {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 2;
    width: 100%;
    display: none;
    opacity: .9;
}

.NB-view-river .NB-feed-story-view-floater {
    display: block;
}


/* ==================== */
/* = Styling & Themes = */
/* ==================== */

body {
    font-family: 'Whitney SSm A', 'Whitney SSm B', "Lucida Grande", Verdana, "Helvetica Neue", Helvetica, sans-serif;
}

.NB-theme-feed-font-whitney {
    font-family: 'Whitney SSm A', 'Whitney SSm B', "Lucida Grande", Verdana, "Helvetica Neue", Helvetica, sans-serif;
}

.NB-theme-feed-font-lucida {
    font-family: "Lucida Grande", Verdana, "Helvetica Neue", Helvetica, sans-serif;
    /* font-family: Verdana, "Helvetica Neue", Helvetica, sans-serif; */
}

.NB-theme-feed-font-gotham {
    font-family: 'Gotham Narrow A', 'Gotham Narrow B', "Helvetica Neue", Helvetica, sans-serif;
    /* font-family: "Helvetica Neue", Helvetica, sans-serif; */
}

.NB-theme-sans-serif #story_pane {
    font-family: "Helvetica Neue", "Helvetica", sans-serif;
}

.NB-theme-sans-serif-alt1 #story_pane {
    font-family: "Helvetica Neue", "Helvetica", sans-serif;
}

.NB-theme-sans-serif-alt2 #story_pane {
    font-family: "Open Sans", "Liberation Sans", sans-serif;
}

.NB-theme-sans-serif-wide #story_pane {
    font-family: "DejaVu Sans", "Bitstream Vera Sans", "Verdana", "Tahoma", "Geneva", sans-serif;
}

.NB-theme-serif .NB-feed-story-content,
.NB-theme-serif .NB-feed-story-comments,
.NB-theme-serif .NB-feed-story-view-floater,
.NB-theme-serif .NB-feed-story-header {
    font-family: "Palatino Linotype", "Palatino", "URW Palladio L", "Nimbus Roman No9 L", Georgia, serif;
}

.NB-theme-gotham .NB-feed-story-content,
.NB-theme-gotham .NB-feed-story-comments,
.NB-theme-gotham .NB-feed-story-view-floater,
.NB-theme-gotham .NB-feed-story-header {
    font-family: 'Gotham Narrow A', 'Gotham Narrow B';
    font-weight: 400;
    font-style: normal;
}

.NB-theme-sentinel .NB-feed-story-content,
.NB-theme-sentinel .NB-feed-story-comments,
.NB-theme-sentinel .NB-feed-story-view-floater,
.NB-theme-sentinel .NB-feed-story-header {
    font-family: 'Sentinel A', 'Sentinel B';
    font-weight: 400;
    font-style: normal;
}

.NB-theme-whitney .NB-feed-story-content,
.NB-theme-whitney .NB-feed-story-comments,
.NB-theme-whitney .NB-feed-story-view-floater,
.NB-theme-whitney .NB-feed-story-header {
    font-family: 'Whitney A', 'Whitney B';
    font-weight: 400;
    font-style: normal;
}

.NB-theme-chronicle .NB-feed-story-content,
.NB-theme-chronicle .NB-feed-story-comments,
.NB-theme-chronicle .NB-feed-story-view-floater,
.NB-theme-chronicle .NB-feed-story-header {
    font-family: 'Chronicle Display A', 'Chronicle Display B';
    font-weight: 400;
    font-style: normal;
}

/* ================= */
/* = Story Content = */
/* ================= */

.NB-feed-story {
    font-size: 12px;
    line-height: 1.5em;
}

.NB-line-spacing-xs .NB-story-content-container {
    line-height: 1.1em;
}

.NB-line-spacing-s .NB-story-content-container {
    line-height: 1.3em;
}

.NB-line-spacing-m .NB-story-content-container {
    line-height: 1.5em;
}

.NB-line-spacing-l .NB-story-content-container {
    line-height: 1.8em;
}

.NB-line-spacing-xl .NB-story-content-container {
    line-height: 2.0em;
}

.NB-image-preview-0 .NB-storytitles-story-image,
.NB-image-preview-none .NB-storytitles-story-image {
    display: none;
    height: 0;
}

.NB-image-preview-small-left .NB-storytitles-story-image {
    width: 62px;
    height: calc(86% - 24px);
    left: -94px;
    top: 14px;
    border-radius: 6px;
}

.NB-image-preview-small-left .NB-view-river .NB-storytitles-story-image {
    left: -126px;
}

.NB-image-preview-small-right .NB-storytitles-story-image {
    width: 62px;
    height: calc(86% - 24px);
    right: -76px;
    top: 16px;
    border-radius: 6px;
}

.NB-density-compact .NB-storytitles-story-image {
    top: 4px;
    height: calc(86% - 8px);
}

.NB-image-preview-large-left .NB-storytitles-story-image,
.NB-image-preview-large-right .NB-storytitles-story-image {
    height: 100%;
}

.NB-density-compact .NB-image-preview-large-left .NB-storytitles-story-image,
.NB-density-compact .NB-image-preview-large-right .NB-storytitles-story-image {
    height: calc(100% - 8px);
}

.NB-image-preview-small-left .NB-story-title-list .NB-storytitles-story-image,
.NB-image-preview-small-right .NB-story-title-list .NB-storytitles-story-image {
    /* top: 4px; */
}

.NB-image-preview-small-left .NB-story-title-list .NB-storytitles-story-image {
    left: -94px;
}

.NB-image-preview-small-left .NB-view-river .NB-story-title-list .NB-storytitles-story-image {
    left: -228px;
}

.NB-image-preview-small-left .NB-view-river .NB-story-title-list .NB-storytitles-story-image,
.NB-image-preview-small-right .NB-view-river .NB-story-title-list .NB-storytitles-story-image {
    top: 8px;
    height: calc(100% - 16px);
}

.NB-image-preview-small-left .NB-story-title-magazine .NB-storytitles-story-image-container,
.NB-image-preview-large-left .NB-story-title-magazine .NB-storytitles-story-image-container {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 362px;
    height: 100%;
    top: 0;
    left: 8px;
}

.NB-image-preview-small-left .NB-story-title-magazine .NB-storytitles-story-image,
.NB-image-preview-small-right .NB-story-title-magazine .NB-storytitles-story-image {
    top: auto;
    right: auto;
    left: auto;
    width: 70%;
    height: 70%;
    background-size: cover;
    background-position: center;
    border-radius: 12px;
}

.NB-image-preview-large-left .NB-story-title-magazine .NB-storytitles-story-image,
.NB-image-preview-large-right .NB-story-title-magazine .NB-storytitles-story-image {
    top: auto;
    right: auto;
    left: auto;
    width: 96%;
    height: 100%;
    background-size: cover;
    background-position: center;
    border-radius: 0;
}

.NB-image-preview-small-right .NB-story-title-magazine .NB-storytitles-story-image-container,
.NB-image-preview-large-right .NB-story-title-magazine .NB-storytitles-story-image-container {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 362px;
    height: 100%;
    top: 0;
    right: 8px;
}

.NB-theme-sans-serif.NB-theme-size-xs .NB-feed-story {
    font-size: 11px;
}

.NB-theme-sans-serif.NB-theme-size-s .NB-feed-story {
    font-size: 12px;
}

.NB-theme-sans-serif.NB-theme-size-m .NB-feed-story {
    font-size: 13px;
}

.NB-theme-sans-serif.NB-theme-size-l .NB-feed-story {
    font-size: 15px;
}

.NB-theme-sans-serif.NB-theme-size-xl .NB-feed-story {
    font-size: 18px;
}

.NB-theme-gotham.NB-theme-size-xs .NB-feed-story {
    font-size: 13px;
}

.NB-theme-gotham.NB-theme-size-s .NB-feed-story {
    font-size: 14px;
}

.NB-theme-gotham.NB-theme-size-m .NB-feed-story {
    font-size: 15px;
}

.NB-theme-gotham.NB-theme-size-l .NB-feed-story {
    font-size: 16px;
}

.NB-theme-gotham.NB-theme-size-xl .NB-feed-story {
    font-size: 19px;
}

.NB-theme-sentinel.NB-theme-size-xs .NB-feed-story {
    font-size: 13px;
}

.NB-theme-sentinel.NB-theme-size-s .NB-feed-story {
    font-size: 14px;
}

.NB-theme-sentinel.NB-theme-size-m .NB-feed-story {
    font-size: 15px;
}

.NB-theme-sentinel.NB-theme-size-l .NB-feed-story {
    font-size: 16px;
}

.NB-theme-sentinel.NB-theme-size-xl .NB-feed-story {
    font-size: 19px;
}

.NB-theme-whitney.NB-theme-size-xs .NB-feed-story {
    font-size: 13px;
}

.NB-theme-whitney.NB-theme-size-s .NB-feed-story {
    font-size: 14px;
}

.NB-theme-whitney.NB-theme-size-m .NB-feed-story {
    font-size: 15px;
}

.NB-theme-whitney.NB-theme-size-l .NB-feed-story {
    font-size: 16px;
}

.NB-theme-whitney.NB-theme-size-xl .NB-feed-story {
    font-size: 19px;
}

.NB-theme-chronicle.NB-theme-size-xs .NB-feed-story {
    font-size: 13px;
}

.NB-theme-chronicle.NB-theme-size-s .NB-feed-story {
    font-size: 14px;
}

.NB-theme-chronicle.NB-theme-size-m .NB-feed-story {
    font-size: 15px;
}

.NB-theme-chronicle.NB-theme-size-l .NB-feed-story {
    font-size: 16px;
}

.NB-theme-chronicle.NB-theme-size-xl .NB-feed-story {
    font-size: 19px;
}

.NB-theme-serif.NB-theme-size-xs .NB-feed-story {
    font-size: 13px;
}

.NB-theme-serif.NB-theme-size-s .NB-feed-story {
    font-size: 14px;
}

.NB-theme-serif.NB-theme-size-m .NB-feed-story {
    font-size: 15px;
}

.NB-theme-serif.NB-theme-size-l .NB-feed-story {
    font-size: 16px;
}

.NB-theme-serif.NB-theme-size-xl .NB-feed-story {
    font-size: 19px;
}

.NB-feed-stories {
    padding: 0;
    margin: 0;
    list-style: none;
    background-color: white;
    position: relative;
}

.NB-feed-story.NB-river-story .NB-feed-story-header,
.NB-feed-story:first-child .NB-feed-story-header {
    padding-top: 0;
}

#story_pane .NB-feed-stories pre {
    overflow-x: auto;
    max-width: 100%;
}

.NB-feed-story .NB-feed-story-header-info {
    padding: 14px 236px 18px 28px;
    background-color: #f0f1eb;
    /* border-bottom: 1px solid rgba(0, 0, 0, .2); */
    border-left: 3px solid transparent;
    position: relative;
    overflow: hidden;
}

.NB-feed-story.NB-selected .NB-feed-story-header-info {
    border-left: 3px solid #EBAA74;
}

.NB-narrow-content .NB-feed-story .NB-feed-story-header-info {
    padding-right: 28px;
}

.NB-feed-story.read .NB-feed-story-header-info {
    background-color: #f9f9f7;
}

.NB-feed-story-header-feed {
    background: #404040 url('/media/embed/reader/feed_view_feed_background.png') repeat-x 0 0;
    background-image: -webkit-gradient(linear,
            left bottom,
            left top,
            color-stop(0.36, rgba(76, 76, 76, 250)),
            color-stop(0.84, rgba(55, 55, 55, 250)));
    background-image: -moz-linear-gradient(center bottom,
            rgb(76, 76, 76) 36%,
            rgb(55, 55, 55) 84%);
    padding: 3px 236px 3px 28px;
    position: sticky;
    top: -1px;
    z-index: 2;
    line-height: 18px;
}

.NB-narrow-content .NB-feed-story-header-feed {
    padding-right: 28px;
}

.NB-feed-story-header-feed.NB-feed-story-river-same-feed {
    z-index: 0;
}

.NB-feed-story-header-feed.NB-floater {
    z-index: 0;
}

.NB-feed-story-feed {
    padding: 2px 0;
    color: white;
    font-size: 13px;
    position: relative;
}

.NB-inverse .NB-feed-story-feed {
    color: black;
}

.NB-pref-story-position-center .NB-feed-story-feed {
    margin: 0 auto;
    max-width: 700px;
}

.NB-pref-story-position-right .NB-feed-story-feed {
    margin: 0 0 0 auto;
    width: 700px;
}

.NB-feed-story-feed .feed_favicon {
    position: absolute;
    left: -22px;
    top: 3px;
    width: 16px;
    height: 16px;
}

.NB-feed-story-feed .NB-feed-story-header-title {
    cursor: pointer;
    font-weight: bold;
}

.NB-feed-story-feed .NB-feed-story-header-title:hover {
    color: rgba(255, 255, 255, .8);
}

.NB-inverse .NB-feed-story-feed .NB-feed-story-header-title:hover {
    color: rgba(0, 0, 0, .6);
}

/* =============================== */
/* = Story content modifications = */
/* =============================== */

.NB-feed-story {
    color: #2b2b2b;
}

.NB-feed-story p {
    clear: both;
}

.NB-feed-story blockquote {
    border-left: 2px solid #ECEFE9;
    padding: .5em 1.5em;
    margin: 0px;
    background-color: #f7faf6;
    border-radius: 4px;
}

.NB-feed-story .NB-feed-story-content iframe,
.NB-feed-story .NB-feed-story-content table {
    max-width: 99% !important;
}

.NB-feed-story .NB-youtube-stats {
    margin-top: 8px;
}

.NB-feed-story .NB-feed-story-content div {
    max-width: 100%;
}

.NB-feed-story .NB-feed-story-content img {
    max-width: 100% !important;
    width: auto !important;
    height: auto;
    /* See http://www.newsblur.com/site/1031643/le-21me for width: auto, height: auto */
}

.NB-feed-story .NB-feed-story-content img.NB-medium-image {
    border-radius: 4px;
}

.NB-feed-story .NB-feed-story-content img.NB-small-image {}

.NB-feed-story .NB-feed-story-content img.NB-large-image {
    border-radius: 4px;
}

.NB-feed-story .NB-feed-story-content img.NB-large-image.NB-large-image-widen {
    max-width: max-content !important;
    margin-left: -28px !important;
    width: calc(100% - 56px * -1) !important;
    /* border-radius: 0; */
}

.NB-feed-story .NB-feed-story-content img.NB-table-image.NB-large-image {
    margin: 0;
    width: 100% !important;
    border-radius: 0;
}

.NB-feed-story .NB-feed-story-content figure {
    margin: 0;
}

.NB-feed-story .NB-feed-story-content video {
    max-width: 100%;
}

.NB-feed-story {
    position: relative;
}

.NB-feed-story .NB-feed-story-sentiment {
    position: absolute;
    top: 6px;
    left: -22px;
    width: 16px;
    height: 16px;
}

.NB-feed-story.NB-river-story .NB-feed-story-sentiment {
    /*    display: none;*/
}

.NB-feed-story.NB-story-starred .NB-feed-story-sentiment {
    background: transparent url('/media/embed/icons/nouns/indicator-unread.svg') no-repeat 6px 0;
    background-size: 10px;
}

.NB-feed-story.NB-story-positive .NB-feed-story-sentiment {
    background: transparent url('/media/embed/icons/nouns/indicator-focus.svg') no-repeat 6px 0;
    background-size: 10px;
}

.NB-feed-story.NB-story-neutral .NB-feed-story-sentiment {
    background: transparent url('/media/embed/icons/nouns/indicator-unread.svg') no-repeat 6px 0;
    background-size: 10px;
}

.NB-feed-story.NB-story-negative .NB-feed-story-sentiment {
    background: transparent url('/media/embed/icons/nouns/indicator-hidden.svg') no-repeat 6px 0;
    background-size: 10px;
}

.NB-feed-story.read .NB-feed-story-sentiment {
    opacity: .06;
}

.NB-feed-story .NB-feed-story-header:hover .NB-feed-story-sentiment {
    display: none;
}

.NB-feed-story .NB-feed-story-sentiment-animation {
    display: none;
}

.NB-feed-story.read .NB-feed-story-sentiment.NB-feed-story-sentiment-animate.NB-animating {
    opacity: 1;
    z-index: 10;
    display: block;
}

.NB-feed-story .NB-feed-story-manage-icon {
    background: url("/media/embed/icons/nouns/right.svg") no-repeat scroll 13px 6px transparent;
    background-size: 8px;
    display: none;
    height: 22px;
    left: -28px;
    position: absolute;
    top: 2px;
    width: 28px;
}

.NB-feed-story .NB-feed-story-header:hover .NB-feed-story-manage-icon {
    display: block;
}

.NB-feed-story .NB-feed-story-header:hover .NB-feed-story-manage-icon:hover {
    background: transparent url('/media/embed/icons/nouns/down.svg') no-repeat 13px 6px;
    background-size: 8px;
    cursor: pointer;
}

.NB-feed-story.NB-hover-inverse .NB-feed-story-header:hover .NB-feed-story-manage-icon:hover {
    background: transparent url('/media/embed/icons/nouns/up.svg') no-repeat 13px 6px;
    background-size: 8px;
}

.NB-feed-story .NB-feed-story-title-container {
    position: relative;
    clear: both;
}

.NB-pref-story-position-center .NB-feed-story .NB-feed-story-title-container {
    margin: 0 auto;
    max-width: 700px;
}

.NB-pref-story-position-right .NB-feed-story .NB-feed-story-title-container {
    margin: 0 0 0 auto;
    max-width: 700px;
}

.NB-feed-story a.NB-feed-story-title {
    display: block;
    text-decoration: none;
    color: #101050;
    margin: 8px 0 0;
    font-weight: bold;
    font-size: 1.4em;
    line-height: 1.2em;
    /*    text-shadow: 1px 1px 0 rgba(255, 255, 255, .5);*/
}

.NB-feed-story.read a.NB-feed-story-title {
    font-weight: normal;
    color: #41423F;
}

.NB-feed-story a.NB-feed-story-title:hover,
.NB-feed-story a.NB-feed-story-title:hover .NB-score-1,
.NB-feed-story a.NB-feed-story-title:hover .NB-score--1 {
    color: #1010A0;
}

.NB-feed-story .NB-feed-story-author-wrapper {
    float: left;
    font-size: 12px;
    color: #757B6B;
    /*    text-shadow: 0 1px 0 rgba(255, 255, 255, .3);*/
    margin: 6px 8px 0 0;
    flex: none;
    align-self: start;
}

.NB-theme-size-xs .NB-feed-story .NB-feed-story-author-wrapper {
    font-size: 10px;
}

.NB-theme-size-s .NB-feed-story .NB-feed-story-author-wrapper {
    font-size: 11px;
}

.NB-theme-size-l .NB-feed-story .NB-feed-story-author-wrapper {
    font-size: 13px;
}

.NB-theme-size-xl .NB-feed-story .NB-feed-story-author-wrapper {
    font-size: 14px;
}

.NB-feed-story .NB-feed-story-author-wrapper .NB-middot {
    color: #A0A0A0;
    padding-right: 4px;
    font-weight: normal;
}

.NB-feed-story.read .NB-feed-story-author-wrapper {
    color: #959B8B;
    text-shadow: none;
}

.NB-feed-story .NB-feed-story-author {
    cursor: pointer;
    flex: none;
}

.NB-feed-story .NB-feed-story-author.NB-score-1 {
    color: #34912E;
}

.NB-feed-story .NB-feed-story-author.NB-score--1 {
    color: #A90103;
}

.NB-feed-story .NB-feed-story-author:hover {
    /* Gray, active -> [Light] Green */
    color: #89AE6E;
}

.NB-feed-story .NB-feed-story-author.NB-score-1:hover {
    /* Green, active -> [Light] Red */
    color: #E35356;
}

.NB-feed-story .NB-feed-story-author.NB-score--1:hover {
    /* Red, active -> [Light] Grey */
    color: #B1B1B1;
    /*    color: #A7A399;*/
}

.NB-feed-story .NB-feed-story-author.NB-score-now-0:hover {
    /* Grey, active */
    color: #808080;
}

.NB-feed-story .NB-feed-story-author.NB-score-now-1.NB-score-1:hover {
    /* Green, active */
    color: #34912E;
}

.NB-feed-story .NB-feed-story-author.NB-score-now--1.NB-score--1:hover {
    /* Red, active */
    color: #A90103;
}

.NB-feed-story .NB-feed-story-tags {
    margin: 5px 0 6px;
    padding-left: 12px;
}

.NB-feed-story .NB-feed-story-tags .NB-middot {
    color: #A0A0A0;
    font-size: 10px;
    padding-right: 8px;
    float: left;
    margin-left: -12px;
    font-weight: normal;
}

.NB-feed-story .NB-feed-story-tag {
    /* Grey */
    display: inline-block;
    cursor: pointer;
    font-weight: normal;
    font-size: 12px;
    border-radius: 4px;

    padding: 1px 5px;
    margin: 0 4px 4px 0;
    line-height: 14px;
    background-color: rgba(0, 0, 0, .1);
    color: #959B8B;
    border: 1px solid transparent;
    border-color: rgba(255, 255, 255, .3) transparent rgba(0, 0, 0, .1);
}

.NB-theme-size-xs .NB-feed-story .NB-feed-story-tag {
    font-size: 9px;
}

.NB-theme-size-s .NB-feed-story .NB-feed-story-tag {
    font-size: 10px;
}

.NB-theme-size-l .NB-feed-story .NB-feed-story-tag {
    font-size: 13px;
}

.NB-theme-size-xl .NB-feed-story .NB-feed-story-tag {
    font-size: 14px;
}

.NB-feed-story .NB-feed-story-tag:first-child {
    margin-left: 0;
}

.NB-feed-story.read .NB-feed-story-tag {
    color: #949181;
}

.NB-feed-story .NB-feed-story-tag.NB-score-1 {
    /* Green */
    background-color: #A3CA87;
    color: white;
    text-shadow: 0 1px 0 rgba(0, 0, 0, .3);
}

.NB-feed-story .NB-feed-story-tag.NB-score--1 {
    /* Red */
    background-color: #D58586;
    color: white;
    text-shadow: 0 1px 0 rgba(0, 0, 0, .7);
}

.NB-feed-story .NB-feed-story-tag:hover {
    /* Gray, active -> [Light] Green */
    background-color: #9CB987;
    text-shadow: 0 1px 0 rgba(0, 0, 0, .3);
    color: white;
}

.NB-feed-story .NB-feed-story-tag.NB-score-1:hover {
    /* Green, active -> [Light] Red */
    background-color: #E35356;
    color: white;
    text-shadow: 0 1px 0 rgba(0, 0, 0, .3);
}

.NB-feed-story .NB-feed-story-tag.NB-score--1:hover {
    /* Red, active -> [Light] Grey */
    background-color: #E2E2E2;
    color: #A7A399;
    text-shadow: 0 1px 0 rgba(255, 255, 255, .5);
}

.NB-feed-story .NB-feed-story-tag.NB-score-now-0:hover {
    /* Grey, active */
    background-color: rgba(0, 0, 0, .1);
    color: #9D9A95;
    text-shadow: 0 1px 0 rgba(255, 255, 255, .5);
}

.NB-feed-story .NB-feed-story-tag.NB-score-now-1.NB-score-1:hover {
    /* Green, active */
    background-color: #34912E;
    color: white;
    text-shadow: 0 1px 0 rgba(0, 0, 0, .3);
}

.NB-feed-story .NB-feed-story-tag.NB-score-now--1.NB-score--1:hover {
    /* Red, active */
    background-color: #A90103;
    color: white;
    text-shadow: 0 1px 0 rgba(0, 0, 0, .3);
}

/* URL Match Display */
.NB-feed-story .NB-feed-story-url-match {
    margin: 5px 0 6px;
    padding-left: 12px;
    display: flex;
    align-items: center;
}

.NB-feed-story .NB-feed-story-url-match .NB-middot {
    color: #A0A0A0;
    font-size: 10px;
    padding-right: 8px;
    margin-left: -12px;
    font-weight: normal;
}

.NB-feed-story .NB-feed-story-url {
    display: inline-block;
    cursor: pointer;
    font-weight: normal;
    font-size: 11px;
    font-style: italic;
    font-family: Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    border-radius: 4px;
    padding: 2px 6px;
    line-height: 14px;
    background-color: rgba(0, 0, 0, .05);
    color: #808080;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.NB-feed-story .NB-feed-story-url .NB-feed-story-url-label {
    font-style: normal;
    font-weight: 500;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.NB-theme-size-xs .NB-feed-story .NB-feed-story-url {
    font-size: 8px;
}

.NB-theme-size-s .NB-feed-story .NB-feed-story-url {
    font-size: 9px;
}

.NB-theme-size-l .NB-feed-story .NB-feed-story-url {
    font-size: 12px;
}

.NB-theme-size-xl .NB-feed-story .NB-feed-story-url {
    font-size: 13px;
}

.NB-feed-story .NB-feed-story-url.NB-score-1 {
    /* Green */
    background-color: rgba(163, 202, 135, 0.3);
    color: #557a40;
}

.NB-feed-story .NB-feed-story-url.NB-score-1 .NB-feed-story-url-matched {
    color: #34912E;
    font-weight: bold;
    font-style: normal;
}

.NB-feed-story .NB-feed-story-url.NB-score--1 {
    /* Red */
    background-color: rgba(213, 133, 134, 0.3);
    color: #8a5556;
}

.NB-feed-story .NB-feed-story-url.NB-score--1 .NB-feed-story-url-matched {
    color: #A90103;
    font-weight: bold;
    font-style: normal;
}

.NB-feed-story .NB-feed-story-url:hover {
    /* Gray, active -> [Light] Green */
    background-color: rgba(163, 202, 135, 0.5);
    color: #557a40;
}

.NB-feed-story .NB-feed-story-url.NB-score-1:hover {
    /* Green, hover -> Darker Green */
    background-color: rgba(52, 145, 46, 0.3);
    color: #34912E;
}

.NB-feed-story .NB-feed-story-url.NB-score-1:hover .NB-feed-story-url-matched {
    color: #256b21;
}

.NB-feed-story .NB-feed-story-url.NB-score--1:hover {
    /* Red, hover -> Darker Red */
    background-color: rgba(169, 1, 3, 0.3);
    color: #A90103;
}

.NB-feed-story .NB-feed-story-url.NB-score--1:hover .NB-feed-story-url-matched {
    color: #800102;
}

.NB-feed-story .NB-feed-story-url.NB-score-now-0:hover {
    /* Grey, active */
    background-color: rgba(0, 0, 0, .05);
    color: #808080;
}

.NB-feed-story .NB-feed-story-url.NB-score-now-0:hover .NB-feed-story-url-matched {
    color: #808080;
    font-weight: normal;
}

.NB-feed-story .NB-feed-story-url.NB-score-now-1.NB-score-1:hover {
    /* Green, active */
    background-color: rgba(52, 145, 46, 0.3);
    color: #34912E;
}

.NB-feed-story .NB-feed-story-url.NB-score-now-1.NB-score-1:hover .NB-feed-story-url-matched {
    color: #34912E;
}

.NB-feed-story .NB-feed-story-url.NB-score-now--1.NB-score--1:hover {
    /* Red, active */
    background-color: rgba(169, 1, 3, 0.3);
    color: #A90103;
}

.NB-feed-story .NB-feed-story-url.NB-score-now--1.NB-score--1:hover .NB-feed-story-url-matched {
    color: #A90103;
}

.NB-feed-story .NB-feed-story-title .NB-score-1 {
    color: #34912E;
}

.NB-feed-story .NB-feed-story-title .NB-score--1 {
    color: #A90103;
}

.NB-feed-story .NB-feed-story-header .NB-feed-story-date {
    float: left;
    font-size: 12px;
    color: #757B6B;
    /*    text-shadow: 0 1px 0 rgba(255, 255, 255, .3);*/
    font-weight: normal;
    margin: 6px 8px 0 0;
    flex: none;
    align-self: start;
}

.NB-theme-size-xs .NB-feed-story .NB-feed-story-date {
    font-size: 10px;
}

.NB-theme-size-s .NB-feed-story .NB-feed-story-date {
    font-size: 11px;
}

.NB-theme-size-l .NB-feed-story .NB-feed-story-date {
    font-size: 13px;
}

.NB-theme-size-xl .NB-feed-story .NB-feed-story-date {
    font-size: 14px;
}

.NB-feed-story.read .NB-feed-story-header .NB-feed-story-date {
    color: #959B8B;
    text-shadow: none;
}

.NB-feed-story .NB-feed-story-header .NB-feed-story-date-line {
    clear: left;
    display: flex;
    flex-wrap: wrap;
}

.NB-pref-story-position-center .NB-feed-story .NB-feed-story-header .NB-feed-story-date-line {
    margin: 0 auto;
    max-width: 700px;
}

.NB-pref-story-position-right .NB-feed-story .NB-feed-story-header .NB-feed-story-date-line {
    margin: 0 0 0 auto;
    max-width: 700px;
}

.NB-feed-story .NB-feed-story-header .NB-feed-story-show-changes {
    float: left;
    font-size: 12px;
    color: #959B8B;
    /*    text-shadow: 0 1px 0 rgba(255, 255, 255, .3);*/
    font-weight: normal;
    margin: 6px 8px 0 0;
    padding-left: 24px;
    background: transparent url('/media/embed/icons/circular/g_icn_modified.png') no-repeat 0 center;
    background-size: 16px;
    cursor: pointer;
    flex: none;
    align-self: start;
}

.NB-theme-size-xs .NB-feed-story-header .NB-feed-story-show-changes {
    font-size: 10px;
}

.NB-theme-size-s .NB-feed-story-header .NB-feed-story-show-changes {
    font-size: 11px;
}

.NB-theme-size-l .NB-feed-story-header .NB-feed-story-show-changes {
    font-size: 13px;
}

.NB-theme-size-xl .NB-feed-story-header .NB-feed-story-show-changes {
    font-size: 14px;
}

.NB-feed-story .NB-feed-story-header .NB-feed-story-show-changes .NB-middot {
    color: #A0A0A0;
    padding-left: 4px;
}

.NB-feed-story .NB-feed-story-header .NB-feed-story-show-changes:hover {
    color: #757B6B;
}

.NB-feed-story .NB-feed-story-header .NB-feed-story-starred-date {
    font-size: 12px;
    /*    text-shadow: 1px 1px 0 rgba(255, 255, 255, .5);*/
    color: #808080;
    display: block;
    clear: both;
    margin: 6px 0 0;
    flex: none;
    align-self: flex-start;
}

.NB-feed-story .NB-feed-story-header .NB-feed-story-starred-date .NB-icon {
    background: transparent url('/media/embed/icons/nouns/saved-stories.svg') no-repeat 0 2px;
    background-size: 16px;
    height: 16px;
    display: inline-block;
    vertical-align: text-bottom;
    color: #9B9D97;
    padding-left: 20px;
}

.NB-feed-story .NB-feed-story-header .NB-feed-story-starred-date .NB-title {
    color: #9B9D97;
}

.NB-theme-size-xs .NB-feed-story-header .NB-feed-story-starred-date {
    font-size: 10px;
}

.NB-theme-size-s .NB-feed-story-header .NB-feed-story-starred-date {
    font-size: 11px;
}

.NB-theme-size-l .NB-feed-story-header .NB-feed-story-starred-date {
    font-size: 13px;
}

.NB-theme-size-xl .NB-feed-story-header .NB-feed-story-starred-date {
    font-size: 14px;
}

.NB-pref-story-position-center .NB-feed-story-header .NB-feed-story-starred-date {
    margin: 6px auto 0;
    max-width: 700px;
}

.NB-pref-story-position-right .NB-feed-story-header .NB-feed-story-starred-date {
    margin: 6px 0 0 auto;
    max-width: 700px;
}

.NB-feed-story .NB-story-content-positioning-wrapper {
    max-width: 700px;
}

.NB-feed-story .NB-feed-story-content {
    padding: 24px 0 0;
    min-height: 12px;
}

.NB-pref-story-position-center .NB-feed-story .NB-story-content-positioning-wrapper {
    margin: 0 auto;
}

.NB-pref-story-position-right .NB-feed-story .NB-story-content-positioning-wrapper {
    margin: 0 0 0 auto;
}

.NB-pref-story-position-center .NB-story-content-expander {
    left: 28px;
    right: 236px;
    margin-left: auto;
    margin-right: auto;
}

.NB-pref-story-position-right .NB-story-content-expander {
    left: 28px;
    right: 236px;
    margin-left: auto;
}

.NB-narrow-content.NB-pref-story-position-center .NB-story-content-expander,
.NB-narrow-content.NB-pref-story-position-right .NB-story-content-expander {
    right: 28px;
}

.NB-pref-story-position-stretch .NB-feed-story .NB-story-content-positioning-wrapper,
.NB-pref-story-position-stretch .NB-feed-story .NB-feed-story-sideoptions-container,
.NB-pref-story-position-stretch .NB-feed-story .NB-story-content-discover-wrapper,
.NB-pref-story-position-stretch .NB-feed-story .NB-story-content-cluster-wrapper,
.NB-pref-story-position-stretch .NB-story-content-expander {
    max-width: none;
}

.NB-feed-story .NB-narrow-content .NB-feed-story-content {
    margin-right: 28px;
}

.NB-modal-preferences ins,
.NB-feed-story-content ins {
    background-color: #BEE8BC;
    text-decoration: none;
}

.NB-feed-story-content ins img {
    border: 3px solid #BEE8BC;
}

.NB-modal-preferences del,
.NB-feed-story-content del {
    background-color: #f5c3c3;
}

.NB-feed-story-content del img {
    border: 3px solid #f5c3c3;
}

.NB-feed-story-content .NB-starred-story-selection-highlight,
.NB-feed-story-content .NB-highlight {
    background-color: #FFEE8E;
}

.NB-feed-story-content .NB-classifier-highlight-positive {
    background-color: #d6f0d5;
    padding: 2px 5px;
    cursor: pointer;
}

.NB-feed-story-content .NB-classifier-highlight-negative {
    background-color: #FFCCCC;
    padding: 2px 5px;
    cursor: pointer;
}

.NB-feed-story-content .NB-search-highlight {
    background-color: #E8D4F4;
    padding: 2px 5px;
    cursor: pointer;
}

.NB-feed-story-content .NB-starred-story-selection-highlight-popover {
    background-color: #FEFFB5;
}

/*.NB-feed-story-content ::selection {*/
/*  background: rgba(185, 215, 251, .2);*/
/*}*/
.NB-highlight-selection,
.NB-unhighlight-selection,
.NB-train-selection,
.NB-search-site-selection,
.NB-search-folder-selection {
    padding: 6px 10px;
    font-size: 13px;
    line-height: 1;
    display: inline-block;
    vertical-align: middle;
    transition: background-color 0.2s ease-out;
}

.NB-highlight-selection:hover,
.NB-unhighlight-selection:hover,
.NB-train-selection:hover,
.NB-search-site-selection:hover,
.NB-search-folder-selection:hover {
    cursor: pointer;
    background-color: rgba(255, 255, 255, 0.2);
}

.NB-highlight-selection:active,
.NB-unhighlight-selection:active,
.NB-train-selection:active,
.NB-search-site-selection:active,
.NB-search-folder-selection:active {
    color: rgba(255, 255, 255, 0.8);
    background-color: rgba(255, 255, 255, 0.1);
}

/* =========================== */
/* = Story content expansion = */
/* =========================== */

.NB-story-content-container {
    overflow: hidden;
    position: relative;
    min-height: 258px;
    background-color: white;
}

.NB-narrow-content .NB-story-content-container {
    min-height: 108px;
}

.NB-story-content-wrapper {
    position: relative;
    clear: both;
    max-height: none;
}

.NB-feed-story .NB-story-content-wrapper,
.NB-feed-story .NB-story-content-discover-wrapper,
.NB-feed-story .NB-story-content-cluster-wrapper {
    padding: 0 236px 42px 28px;
}

.NB-narrow-content .NB-feed-story .NB-story-content-wrapper,
.NB-narrow-content .NB-feed-story .NB-story-content-discover-wrapper,
.NB-narrow-content .NB-feed-story .NB-story-content-cluster-wrapper {
    padding-right: 28px;
}

.NB-story-content-wrapper.NB-story-content-wrapper-height-truncated {
    max-height: 460px;
    padding-bottom: 0;
    overflow: hidden;
}

.NB-story-content-wrapper.NB-story-content-wrapper-height-fudged {
    max-height: none;
}

.NB-story-content-expander {
    display: none;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    max-width: 700px;
    cursor: pointer;
    color: #1a9fff;
    font-size: 12px;
    background: #fff;
    margin: 28px 0 0;
    padding: 0 28px 28px;
}

.NB-story-content-expander .NB-story-content-expander-inner {
    position: relative;
    padding: 18px 25px 14px 0;
    height: 28px;
}

.NB-story-content-expander:hover {
    color: #306187;
}

.NB-story-content-expander:active {
    color: #722125;
}

.NB-story-content-expander .NB-story-cutoff {
    position: absolute;
    top: -14px;
    left: -28px;
    width: 100%;
    height: 14px;
    z-index: 0;
    background: transparent url('/media/embed/circular/module_cutoff.png') repeat-x left bottom;
}

.NB-story-content-expander .NB-story-content-expander-text,
.NB-story-content-expander .NB-story-content-expander-pages {
    display: inline-block;
}

.NB-story-content-expander .NB-story-content-expander-pages {
    line-height: 8px;
    padding: 0 12px;
    font-size: 24px;
    font-family: Helvetica, Arial;
    vertical-align: middle;
}

@media screen and (max-width: 580px) {
    .NB-story-content-expander .NB-story-content-expander-pages {
        padding: 0 4px;
        font-size: 16px;
    }
}

/* ============= */
/* = Text View = */
/* ============= */

#story_pane .NB-text-view-detail .NB-feed-story-content,
#story_titles .NB-text-view-detail .NB-feed-story-content {
    min-height: 120px;
}

#story_pane .NB-premium-only .NB-feed-story-content,
#story_titles .NB-premium-only .NB-feed-story-content {
    max-height: 300px;
    overflow: hidden;
}

.NB-text-view-premium-only {
    border-top: 1px solid #C0C0C0;
    font-size: 13px;
    text-align: center;
    padding: 12px 0;
    font-weight: bold;
    margin: -32px 0 0;
    background-color: white;
    cursor: default;
    max-width: 700px;
    position: relative;
}

.NB-text-view-premium-only .NB-feed-story-premium-only-divider {
    position: absolute;
    width: 100%;
    height: 50px;
    background: transparent url('/media/embed/reader/white_fade.png') repeat-x 0 0;
    top: -51px;
    left: 0;
    background-size: 25px 50px;
}

.NB-text-view-premium-only img {
    width: 18px;
    height: 15px;
    vertical-align: text-bottom;
    margin: 0 2px 0 2px;
}

.NB-premium-only .NB-feed-story-sideoptions-container {
    bottom: 60px;
}


/* ============ */
/* = Comments = */
/* ============ */

.NB-feed-story-comments {
    padding: 0 236px 32px 28px;
    max-width: 700px;
    clear: both;
    background-color: white;
    position: relative;
}

.NB-narrow-content .NB-feed-story-comments {
    padding-right: 28px;
}

.NB-pref-story-position-center .NB-feed-story-comments {
    margin: 0 auto;
}

.NB-pref-story-position-right .NB-feed-story-comments {
    margin: 0 0 0 auto;
}

.NB-story-comment {
    border-bottom: 1px solid #EAECE8;
    position: relative;
    padding: 0 0 2px 54px;
    line-height: 18px;
    overflow: hidden;
}

.NB-story-comment .NB-story-comment-author-avatar.NB-user-avatar,
.NB-story-comment .NB-story-comment-reshares .NB-user-avatar {
    position: absolute;
    left: 6px;
    top: 6px;
    cursor: pointer;
}

.NB-story-comment .NB-story-comment-author-avatar.NB-user-avatar.NB-story-comment-reshare {
    top: 22px;
    left: 6px;
    z-index: 1;
}

.NB-story-comment .NB-story-comment-friend-share .NB-story-comment-author-avatar.NB-user-avatar.NB-story-comment-reshare {
    top: 10px;
}

.NB-story-comment .NB-story-comment-author-avatar.NB-user-avatar img {
    border-radius: 6px;
    margin: 2px 0 0 1px;
    width: 38px;
    height: 38px;
}

.NB-story-comment .NB-story-comment-author-avatar.NB-user-avatar.NB-story-comment-reshare img {
    height: 24px;
    width: 24px;
}

.NB-story-comment .NB-story-comment-friend-share .NB-story-comment-author-avatar.NB-user-avatar img {
    height: 24px;
    width: 24px;
    margin-left: 6px;
}

.NB-story-comment .NB-story-comment-friend-share .NB-story-comment-author-avatar.NB-user-avatar.NB-story-comment-reshare img {
    margin-left: 0px;
}

.NB-story-comment .NB-story-comment-author-container {
    overflow: hidden;
    margin: 6px 0 0;
}

.NB-story-comment .NB-story-comment-friend-share .NB-story-comment-author-container {
    margin-top: 10px;
}

.NB-story-comment .NB-story-comment-reshares {
    position: absolute;
    top: 0;
    left: 8px;
    z-index: 0;
}

.NB-story-comment .NB-story-comment-reshares .NB-user-avatar {
    top: 8px;
    left: 14px;
}

.NB-story-comment .NB-story-comment-username {
    float: left;
    font-size: 11px;
    color: #1D4BA6;
    font-weight: bold;
    margin: 0 10px 0 0;
    text-shadow: 0 -1px 0 rgba(255, 255, 255, .5);
    cursor: pointer;
}

.NB-story-comment .NB-story-comment-date {
    font-size: 10px;
    color: #9D9D9D;
    float: left;
    margin-right: 4px;
}

.NB-story-comment .NB-story-comment-likes {
    overflow: hidden;
    height: 14px;
    margin: 4px 2px 0;
}

.NB-story-comment .NB-story-comment-like {
    float: left;
    width: 16px;
    height: 16px;
    background: transparent url('/media/embed/icons/circular/g_icn_fav.png') no-repeat center 0;
    background-size: 14px;
    margin-top: -1px;
    padding: 1px 6px 1px 2px;
}

.NB-story-comment .NB-story-comment-like:hover,
.NB-story-comment .NB-story-comment-like.NB-active {
    cursor: pointer;
    background: transparent url('/media/embed/icons/circular/g_icn_fav_active.png') no-repeat center 0;
    background-size: 14px;
}

.NB-story-comment .NB-story-comment-like:active {
    cursor: pointer;
}

.NB-story-comment .NB-story-comment-likes-users {
    display: inline-block;
}

.NB-story-comment .NB-story-comment-likes-users .NB-story-share-profile .NB-user-avatar {
    width: auto;
    height: auto;
}

.NB-story-comment .NB-story-comment-likes-users .NB-story-share-profile .NB-user-avatar img,
.NB-story-comment .NB-story-comment-friend-share .NB-story-comment-likes-users .NB-story-share-profile .NB-user-avatar img {
    width: 12px;
    height: 12px;
}

.NB-story-comment .NB-story-comment-content {
    float: left;
    color: #303030;
}

.NB-story-comment .NB-story-comment-reply-button {
    padding: 4px 8px 4px 12px;
    float: right;
    cursor: pointer;
}

.NB-story-comment .NB-story-comment-reply-button img {
    padding-right: 6px;
    width: 9px;
    height: 9px;
    vertical-align: bottom;
    float: left;
}

.NB-story-comment .NB-story-comment-reply-button .NB-story-comment-reply-button-wrapper {
    background-color: #E9AF86;
    color: white;
    padding: 1px 4px;
    line-height: 9px;
    font-size: 9px;
    height: 9px;

    border-top: 1px solid rgba(255, 255, 255, .15);
    border-left: 1px solid rgba(255, 255, 255, .15);
    border-bottom: 1px solid rgba(0, 0, 0, .1);
    border-right: 1px solid rgba(0, 0, 0, .1);
    text-shadow: 0 1px 0 rgba(0, 0, 0, .1);
}

.NB-story-comment .NB-story-comment-reply-button:hover .NB-story-comment-reply-button-wrapper {
    background-color: #DE772B;
}

.NB-story-comment .NB-story-comment-reply-button:active .NB-story-comment-reply-button-wrapper {
    background-color: #9F3A00;
}

.NB-story-comment .NB-story-comment-error {
    float: left;
    font-size: 10px;
    color: #6A1000;
    font-weight: bold;
}

.NB-story-comment-reply {
    border-top: 1px solid #EAECE8;
    padding: 4px 0;
    overflow: hidden;
    clear: both;
    position: relative;
    padding: 5px 0 7px 32px;
    line-height: 18px;
}

.NB-story-comment-reply .NB-story-comment-reply-photo {
    width: 24px;
    height: 24px;
    border-radius: 3px;
    position: absolute;
    left: 0px;
    top: 10px;
    cursor: pointer;
}

.NB-story-comment-edit-button {
    padding: 4px 8px 4px 12px;
    float: right;
    cursor: pointer;
}

.NB-story-comment-edit-button .NB-story-comment-edit-button-wrapper {
    background-color: #74A2E7;
    color: white;
    padding: 1px 4px;
    line-height: 9px;
    font-size: 9px;
    height: 9px;
    border-top: 1px solid rgba(255, 255, 255, .15);
    border-left: 1px solid rgba(255, 255, 255, .15);
    border-bottom: 1px solid rgba(0, 0, 0, .1);
    border-right: 1px solid rgba(0, 0, 0, .1);
    text-shadow: 0 1px 0 rgba(0, 0, 0, .1);
}

.NB-story-comment-edit-button:hover .NB-story-comment-edit-button-wrapper {
    background-color: #5073BC;
}

.NB-story-comment-edit-button:active .NB-story-comment-edit-button-wrapper {
    background-color: #2A3B72;
}

.NB-story-comment-share-edit-button {
    padding-right: 0;
}

.NB-story-comment-reply-content {
    clear: both;
    color: #303030;
    float: left;
}

.NB-story-comment-reply-form {
    padding-top: 11px;
}

.NB-story-comment-reply-form .NB-story-comment-reply-username {
    margin: 1px 8px 6px 0;
}

.NB-story-comment-reply-form .NB-story-comment-reply-comments {
    margin: 0 8px 4px 0;
    width: 50%;
    display: block;
    float: left;
    font-size: 12px;
}

.NB-story-comment-reply-form .NB-modal-submit-button {
    float: left;
    font-size: 10px;
    padding: 2px 8px;
    line-height: 16px;
    margin: 0 12px 0 0;
}

.NB-story-comment-reply-form .NB-modal-submit-delete {
    font-size: 9px;
}

.NB-story-comment-reply-form .NB-error {
    font-size: 10px;
    color: #6A1000;
    padding: 4px 0 0;
    line-height: 14px;
    font-weight: bold;
    clear: both;
}

/* =================== */
/* = Comments Header = */
/* =================== */

.NB-story-comments-public-teaser-wrapper {
    cursor: pointer;
}

.NB-story-comments-public-teaser-wrapper,
.NB-story-comments-public-header-wrapper {
    margin-top: 12px;
}

.NB-story-comments-shares-teaser {
    background-color: #F5F5EF;
    color: #898989;
    cursor: default;
    text-shadow: 0 1px 0 rgba(255, 255, 255, .8);
    font-weight: normal;
    font-size: 10px;
    padding: 4px 12px 4px 28px;
    line-height: 26px;
    overflow: hidden;
    border-bottom: 1px solid #E3E3DF;
    -webkit-box-shadow: inset 0px 1px 1px rgba(0, 0, 0, .1);
    -moz-box-shadow: inset 0px 1px 1px rgba(0, 0, 0, .1);
    box-shadow: inset 0px 1px 1px rgba(0, 0, 0, .1);
}

.NB-story-comments-public-teaser-wrapper:hover .NB-story-comments-public-teaser {
    background-image: -webkit-linear-gradient(center top, #EAECE5, #DDDFD6);
    background-image: -moz-linear-gradient(center top, #EAECE5, #DDDFD6);
    background-image: linear-gradient(center top, #EAECE5, #DDDFD6);
    text-shadow: 0 1px 0 rgba(255, 255, 255, .8);
}

.NB-story-comments-public-teaser-wrapper:active .NB-story-comments-public-teaser {
    background-image: -webkit-linear-gradient(center top, #D6D9D0, #C7CABF);
    background-image: -moz-linear-gradient(center top, #D6D9D0, #C7CABF);
    background-image: linear-gradient(center top, #D6D9D0, #C7CABF);
}

.NB-story-comments-public-teaser b {
    padding: 0 6px;
}

.NB-story-comments-expand-icon {
    background: transparent url("/media/embed/icons/circular/folder_expand.png") no-repeat center center;
    background-size: 13px 12px;
    width: 16px;
    height: 16px;
    float: right;
    margin: 2px 2px;
    opacity: .8;
}

.NB-story-comments-expand-icon.NB-loading {
    background: transparent url('/media/embed/reader/ring_spinner.svg') no-repeat center center;
    background-size: 16px;
}

.NB-story-comments-public-teaser-wrapper:hover .NB-story-comments-expand-icon {
    opacity: 1;
}

.NB-story-share-label {
    display: inline-block;
    margin: 0 4px 0 0;
    float: right;
}

.NB-story-share-profiles {
    display: inline-block;
    vertical-align: top;
    height: 24px;
    padding-top: 2px;
    overflow: hidden;
}

.NB-story-share-profiles.NB-story-share-profiles-shares {
    float: right;
}

.NB-story-share-profiles.NB-story-share-profiles-shares .NB-story-share-profile {
    float: right;
}

.NB-story-share-profiles .NB-story-share-profiles-comments-friends,
.NB-story-share-profiles .NB-story-share-profiles-comments-public {
    float: left;
}

.NB-story-share-profiles .NB-story-share-profiles-shares-public,
.NB-story-share-profiles .NB-story-share-profiles-shares-friends {
    display: inline;
}

.NB-story-share-profiles .NB-story-share-profiles-comments-public,
.NB-story-share-profiles .NB-story-share-profiles-shares-public {
    opacity: .5;
}

.NB-story-comments-label {
    float: left;
    margin-right: 12px;
    cursor: pointer;
}

.NB-story-comments-label b {
    /*    font-size: 12px;*/
}

.NB-story-share-label {
    float: right;
    margin-left: 12px;
}


.NB-story-share-profile {
    display: inline-block;
}

.NB-story-share-profile .NB-user-avatar {
    float: left;
    font-size: 0;
    vertical-align: middle;
    height: 22px;
    width: 22px;
    padding: 0 2px;
    cursor: pointer;
}

.NB-story-share-profile .NB-user-avatar img.NB-user-avatar-image {
    width: 22px;
    height: 22px;
    border-radius: 3px;
}

.NB-story-comment-friend-share .NB-story-share-profile .NB-user-avatar img.NB-user-avatar-image {
    height: 18px;
    width: 18px;
}

.NB-story-share-profile .NB-user-avatar img.NB-user-avatar-private {
    width: 8px;
    height: 8px;
    bottom: 0;
    left: 0;
}

.NB-story-share-profile .NB-user-username {
    float: left;
}

.NB-story-comment .NB-story-comment-content {
    clear: both;
    padding: 0 0 6px 0;
}

.NB-feed-story-endbar {
    height: 8px;
    border-top: 1px solid #404040;
    background-color: #dadada;
    background: -webkit-gradient(linear, 0% 0%, 0% 100%, from(#bababa), to(#dadada));
    background: -moz-linear-gradient(center bottom, #bababa 0%, #dadada 100%);
}

.NB-feed-story {
    margin: 0;
    clear: both;
}

.NB-feed-stories.NB-feed-view-story .NB-feed-story {
    padding: 0;
    display: none;
}

.NB-feed-stories.NB-feed-view-story .NB-feed-story.NB-selected {
    display: block;
}

/* =============== */
/* = User Avatar = */
/* =============== */

.NB-user-avatar {
    position: relative;
}

.NB-user-avatar .NB-user-avatar-private {
    position: absolute;
    width: 12px;
    height: 12px;
    bottom: -2px;
    left: -1px;
}

/* ============================= */
/* = Side Options in Feed view = */
/* ============================= */

.NB-feed-story-sideoptions-container {
    position: absolute;
    right: 12px;
    bottom: 0;
    margin-bottom: 32px;
    text-align: center;
    width: 142px;
    line-height: 12px;
    transition: width 0.36s ease-out;
}

.NB-story-starred .NB-feed-story-sideoptions-container {
    width: 164px;
}

.NB-narrow-content .NB-feed-story-sideoptions-container {
    width: auto;
    position: static;
    right: 0;
    bottom: 0;
    margin: 18px 28px 42px 28px;
    clear: both;
    overflow: hidden;

    padding: 24px 0 0;
    max-width: 700px;
}

.NB-pref-story-position-center .NB-feed-story-sideoptions-container {
    margin-left: auto;
    margin-right: auto;
    max-width: 700px;
    padding: 0 28px;
}

.NB-pref-story-position-center .NB-story-content-discover-wrapper,
.NB-pref-story-position-center .NB-story-content-cluster-wrapper {
    margin-left: auto;
    margin-right: auto;
    max-width: 700px;
}

.NB-pref-story-position-right .NB-feed-story-sideoptions-container {
    margin-left: auto;
    max-width: 700px;
    padding: 0 0 0 28px;
}

.NB-pref-story-position-right .NB-story-content-discover-wrapper,
.NB-pref-story-position-right .NB-story-content-cluster-wrapper {
    margin-left: auto;
    max-width: 700px;
}

.NB-sideoption {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    align-items: center;
    cursor: pointer;
    position: relative;
    font-size: 10px;
    font-weight: bold;
    text-shadow: 0 1px 0 #000;
    background-color: white;
    border-radius: 3px;
    user-select: none;
    transition: background-color 0.36s ease-out;
}

.NB-narrow-content .NB-sideoption {
    float: left;
    margin: 8px 2px 0 0;
    width: auto;
    clear: right;
}

.NB-extra-narrow-content .NB-sideoption {}

.NB-extra-narrow-content .NB-sideoption-title span {
    display: none;
}

.NB-sideoption-icons {
    display: flex;
    align-items: center;
    order: 2;
    flex-wrap: wrap;
}

.NB-sideoption .NB-sideoption-title {
    order: 1;
    padding: 0 0 0 16px;
    color: rgb(170, 170, 170);
    text-shadow: none;
    font-weight: normal;
    height: 32px;
    box-sizing: border-box;
    transition: padding 0.36s ease-out,
        color 0.36s ease-out;
    min-width: 60px;
    display: flex;
    align-items: center;
    justify-content: space-around;
}

.NB-extra-narrow-content .NB-sideoption .NB-sideoption-title {
    min-width: 40px;
}


.NB-content-narrow .NB-sideoption .NB-sideoption-title {
    padding-left: 10px;
    padding-right: 30px;
}

.NB-sideoption:hover {
    cursor: pointer;
}

.NB-sideoption:hover,
.NB-sideoption.NB-active,
.NB-story-starred .NB-sideoption.NB-feed-story-save,
.NB-story-shared .NB-sideoption.NB-feed-story-share {
    background-color: #dcdfd8;
}

.NB-sideoption:hover .NB-sideoption-icon,
.NB-sideoption:hover .NB-sideoption-title,
.NB-sideoption.NB-active .NB-sideoption-icon,
.NB-sideoption.NB-active .NB-sideoption-title,
.NB-story-starred .NB-sideoption.NB-feed-story-save .NB-sideoption-icon,
.NB-story-starred .NB-sideoption.NB-feed-story-save .NB-sideoption-title,
.NB-story-shared .NB-sideoption.NB-feed-story-share .NB-sideoption-icon,
.NB-story-shared .NB-sideoption.NB-feed-story-share .NB-sideoption-title {
    color: #90928B;
    opacity: 1;
}



.NB-sideoption .NB-sideoption-icon {
    width: 24px;
    padding: 0 4px;
    height: 32px;
    background: transparent url('/media/embed/icons/nouns/saved-stories.svg') no-repeat 8px center;
    background-size: 16px;
    transition: background 0.36s ease-out, opacity 0.16s ease-in-out;
    order: 2;
    display: flex;
    align-items: center;
    opacity: .25;
}

.NB-sideoption.NB-feed-story-train .NB-sideoption-icon-train {
    background-image: url("/media/embed/icons/nouns/train.svg");
    background-size: 16px;
}

.NB-sideoption.NB-feed-story-train .NB-sideoption-thirdparty-writerules {
    background-image: url("/media/embed/icons/nouns/prompt.svg");
    background-size: 16px;
}

.NB-sideoption-writerules {
    order: 3;
    display: none;
}

.NB-wide-content .NB-sideoption-writerules {
    display: none;
    flex-direction: column;
}

.NB-sideoption.NB-feed-story-email .NB-sideoption-icon {
    background-image: url("/media/embed/icons/nouns/email.svg");
    background-size: 16px;
}

.NB-sideoption.NB-feed-story-ask-ai .NB-sideoption-icon-ask-ai {
    background-image: url("/media/embed/icons/nouns/prompt.svg");
    background-size: 16px;
}

.NB-sideoption.NB-feed-story-share .NB-sideoption-icon {
    background-image: url('/media/embed/icons/nouns/share.svg');
    background-size: 16px;
}

.NB-sideoption.NB-feed-story-discover .NB-sideoption-icon {
    background-image: url('/media/embed/icons/nouns/direction.svg');
    background-size: 12px;
}

.NB-sideoption-thirdparty {
    width: 24px;
    height: 24px;
    background-size: 16px 16px;
    background-position: center;
    background-repeat: no-repeat;
    padding: 4px 1px;
    transition: background 0.36s ease-out, opacity 0.16s ease-in-out;
    order: 3;
    opacity: 0.25;
    filter: grayscale(100%);
}

.NB-sideoption-thirdparty:last-child {
    padding-right: 4px;
}

.NB-sideoption .NB-sideoption-thirdparty-instapaper {
    background: transparent url('/media/embed/reader/instapaper.png') no-repeat center center;
}

.NB-sideoption .NB-sideoption-thirdparty-readitlater {
    background: transparent url('/media/embed/reader/pocket.png') no-repeat center center;
    background-size: 16px;
}

.NB-sideoption .NB-sideoption-thirdparty-linkedin {
    background: transparent url('/media/embed/reader/linkedin.jpg') no-repeat center center;
    background-size: 16px;
}

.NB-sideoption .NB-sideoption-thirdparty-whatsapp {
    background: transparent url('/media/embed/reader/whatsapp.png') no-repeat center center;
    background-size: 16px;
}

.NB-sideoption .NB-sideoption-thirdparty-bluesky {
    background: transparent url('/media/embed/reader/bluesky.svg') no-repeat center center;
    background-size: 16px;
}

.NB-sideoption .NB-sideoption-thirdparty-mastodon {
    background: transparent url('/media/embed/welcome/mastodon_logo.svg') no-repeat center center;
    background-size: 16px;
}

.NB-sideoption .NB-sideoption-thirdparty-livejournal {
    background: transparent url('/media/embed/reader/livejournal.png') no-repeat center center;
    background-size: 16px;
}

.NB-sideoption .NB-sideoption-thirdparty-hackernews {
    background: transparent url('/media/embed/reader/hackernews.png') no-repeat center center;
    background-size: 16px;
}

.NB-sideoption .NB-sideoption-thirdparty-flipboard {
    background: transparent url('/media/embed/reader/flipboard.jpg') no-repeat center center;
    background-size: 16px;
}

.NB-sideoption .NB-sideoption-thirdparty-lineme {
    background: transparent url('/media/embed/reader/lineme.png') no-repeat center center;
    background-size: 16px;
}

.NB-sideoption .NB-sideoption-thirdparty-telegram {
    background: transparent url('/media/embed/reader/telegram.png') no-repeat center center;
    background-size: 16px;
}

.NB-sideoption .NB-sideoption-thirdparty-copyurl {
    background: transparent url('/media/embed/reader/copyurl.png') no-repeat center center;
    background-size: 16px;
}

.NB-sideoption .NB-sideoption-thirdparty-copytext {
    background: transparent url('/media/embed/reader/copytext.png') no-repeat center center;
    background-size: 16px;
}

.NB-sideoption .NB-sideoption-thirdparty-print {
    background: transparent url('/media/embed/reader/print.png') no-repeat center center;
    background-size: 16px;
}

.NB-sideoption .NB-sideoption-thirdparty-pdf {
    background: transparent url('/media/embed/reader/pdf.png') no-repeat center center;
    background-size: 16px;
}

.NB-sideoption .NB-sideoption-thirdparty-tumblr {
    background: transparent url('/media/embed/reader/tumblr.png') no-repeat center center;
}

.NB-sideoption .NB-sideoption-thirdparty-blogger {
    background: transparent url('/media/embed/reader/blogger.png') no-repeat center center;
    background-size: 16px;
}

.NB-sideoption .NB-sideoption-thirdparty-delicious {
    background: transparent url('/media/embed/reader/delicious.png') no-repeat center center;
}

.NB-sideoption .NB-sideoption-thirdparty-pinboard {
    background: transparent url('/media/embed/reader/pinboard.png') no-repeat center center;
    background-size: 16px;
}

.NB-sideoption .NB-sideoption-thirdparty-raindrop {
    background: transparent url('/media/embed/reader/raindrop.svg') no-repeat center center;
    background-size: 16px;
}

.NB-sideoption .NB-sideoption-thirdparty-pinterest {
    background: transparent url('/media/embed/reader/pinterest.png') no-repeat center center;
    background-size: 16px;
}

.NB-sideoption .NB-sideoption-thirdparty-buffer {
    background: transparent url('/media/embed/reader/buffer.png') no-repeat center center;
    background-size: 16px;
}

.NB-sideoption .NB-sideoption-thirdparty-diigo {
    background: transparent url('/media/embed/reader/diigo.png') no-repeat center center;
}

.NB-sideoption .NB-sideoption-thirdparty-evernote {
    background: transparent url('/media/embed/reader/evernote.png') no-repeat center center;
}

.NB-sideoption .NB-sideoption-thirdparty-googleplus {
    background: transparent url('/media/embed/reader/googleplus.png') no-repeat center center;
}

.NB-sideoption .NB-sideoption-thirdparty-email {
    background: transparent url("/media/embed/icons/nouns/email.svg") no-repeat center center;
    background-size: 18px;
    filter: hue-rotate(134deg) saturate(16);
}

.NB-sideoption .NB-sideoption-thirdparty-twitter {
    background: transparent url('/media/embed/reader/twitter.png') no-repeat center center;
    background-size: 16px;
}

.NB-sideoption .NB-sideoption-thirdparty-facebook {
    background: transparent url('/media/embed/reader/facebook.png') no-repeat center center;
    background-size: 16px;
}

.NB-sideoption .NB-sideoption-thirdparty-reddit {
    background: transparent url('/media/embed/reader/reddit.png') no-repeat center center;
    background-size: 16px;
}

.NB-sideoption .NB-sideoption-thirdparty-readwise {
    background: transparent url('/media/embed/reader/readwise.png') no-repeat center center;
}

/* ================================ */
/* = Sideoption - Sharing Icons   = */
/* ================================ */

.NB-sideoption-sharing .NB-sideoption-icon {
    background-size: 16px;
}

.NB-sideoption-sharing-copyurl .NB-sideoption-icon {
    background-image: url('/media/embed/reader/copyurl.png');
}

.NB-sideoption-sharing-copytext .NB-sideoption-icon {
    background-image: url('/media/embed/reader/copytext.png');
}

.NB-sideoption-sharing-print .NB-sideoption-icon {
    background-image: url('/media/embed/reader/print.png');
}

.NB-sideoption-sharing-facebook .NB-sideoption-icon {
    background-image: url('/media/embed/reader/facebook.png');
}

.NB-sideoption-sharing-twitter .NB-sideoption-icon {
    background-image: url('/media/embed/reader/twitter.png');
}

.NB-sideoption-sharing-reddit .NB-sideoption-icon {
    background-image: url('/media/embed/reader/reddit.png');
}

.NB-sideoption-sharing-readitlater .NB-sideoption-icon {
    background-image: url('/media/embed/reader/pocket.png');
}

.NB-sideoption-sharing-tumblr .NB-sideoption-icon {
    background-image: url('/media/embed/reader/tumblr.png');
}

.NB-sideoption-sharing-delicious .NB-sideoption-icon {
    background-image: url('/media/embed/reader/delicious.png');
}

.NB-sideoption-sharing-blogger .NB-sideoption-icon {
    background-image: url('/media/embed/reader/blogger.png');
}

.NB-sideoption-sharing-pinboard .NB-sideoption-icon {
    background-image: url('/media/embed/reader/pinboard.png');
}

.NB-sideoption-sharing-raindrop .NB-sideoption-icon {
    background-image: url('/media/embed/reader/raindrop.svg');
}

.NB-sideoption-sharing-whatsapp .NB-sideoption-icon {
    background-image: url('/media/embed/reader/whatsapp.png');
}

.NB-sideoption-sharing-bluesky .NB-sideoption-icon {
    background-image: url('/media/embed/reader/bluesky.svg');
}

.NB-sideoption-sharing-mastodon .NB-sideoption-icon {
    background-image: url('/media/embed/welcome/mastodon_logo.svg');
}

.NB-sideoption-sharing-pinterest .NB-sideoption-icon {
    background-image: url('/media/embed/reader/pinterest.png');
}

.NB-sideoption-sharing-buffer .NB-sideoption-icon {
    background-image: url('/media/embed/reader/buffer.png');
}

.NB-sideoption-sharing-diigo .NB-sideoption-icon {
    background-image: url('/media/embed/reader/diigo.png');
}

.NB-sideoption-sharing-evernote .NB-sideoption-icon {
    background-image: url('/media/embed/reader/evernote.png');
}

.NB-sideoption-sharing-instapaper .NB-sideoption-icon {
    background-image: url('/media/embed/reader/instapaper.png');
}

.NB-sideoption-sharing-livejournal .NB-sideoption-icon {
    background-image: url('/media/embed/reader/livejournal.png');
}

.NB-sideoption-sharing-flipboard .NB-sideoption-icon {
    background-image: url('/media/embed/reader/flipboard.jpg');
}

.NB-sideoption-sharing-lineme .NB-sideoption-icon {
    background-image: url('/media/embed/reader/lineme.png');
}

.NB-sideoption-sharing-hackernews .NB-sideoption-icon {
    background-image: url('/media/embed/reader/hackernews.png');
}

.NB-sideoption-sharing-telegram .NB-sideoption-icon {
    background-image: url('/media/embed/reader/telegram.png');
}

.NB-sideoption-sharing-linkedin .NB-sideoption-icon {
    background-image: url('/media/embed/reader/linkedin.jpg');
}

.NB-sideoption-sharing-readwise .NB-sideoption-icon {
    background-image: url('/media/embed/reader/readwise.png');
}

/* ===================== */
/* = Sideoption - Save = */
/* ===================== */

.NB-sideoption-save-wrapper {
    height: 0px;
    overflow: hidden;
    display: none;
}

.NB-sideoption-save-tag ::-moz-selection {
    background: transparent;
}

.NB-sideoption-save-tag ::selection {
    background: transparent;
}

.NB-sideoption-save-wrapper.NB-active {
    display: block;
    height: auto;
}

.NB-narrow-content .NB-sideoption-save-wrapper {
    clear: both;
    width: 100%;
    margin: 0;
}

.NB-sideoption-save {
    padding: 4px 6px 6px;
    border: 1px solid #DBE6EA;
    text-align: left;
    color: #606060;
}

.NB-sideoption-save .NB-sideoption-save-icon {
    float: left;
    margin: 11px 2px 0 0;
    width: 16px;
    height: 16px;
    background: transparent url("/media/img/icons/nouns/tag.svg") no-repeat 0 0;
    background-size: 14px;
}

.NB-sideoption-save .NB-sideoption-save-title {
    font-size: 10px;
    text-align: left;
    color: #202020;
    margin: 12px 0 4px;
}

.NB-sideoption-save .NB-sideoption-save-tag {
    width: 100%;
    margin: 0;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}

.NB-sideoption-save .NB-sideoption-save-populate {
    float: right;
    font-size: 9px;
    line-height: 11px;
    padding: 2px 4px;
    margin: 10px 0 2px 0;
    border-radius: 2px;
    background-color: rgba(205, 205, 205, .5);
    color: white;
    font-weight: bold;
    cursor: pointer;
    display: inline-block;
}

.NB-sideoption-save .NB-sideoption-save-populate:hover {
    background-color: rgba(205, 205, 205, .8);
}

.NB-sideoption-save .NB-sideoption-save-populate:active {
    background-color: rgba(205, 205, 205, 1);
}

.NB-tagging-autocomplete.ui-autocomplete {
    font-size: 11px;
    width: 150px !important;
    overflow-x: hidden;
}

/* ====================== */
/* = Sideoption - Share = */
/* ====================== */

.NB-sideoption-share-wrapper {
    display: none;
}

.NB-sideoption-share-wrapper.NB-active {
    display: block;
    height: 0;
    width: 100%;
    overflow: hidden;
}

.NB-menu-manage .NB-sideoption-share-wrapper {}

.NB-narrow-content .NB-sideoption-share-wrapper.NB-active {
    clear: both;
    width: 100%;
    margin: 0;
}

.NB-sideoption-share {
    padding: 9px 12px;
    border: 1px solid #DBE6EA;
}

.NB-sideoption-share .NB-sideoption-share-title {
    font-size: 12px;
    margin: 2px 0 8px;
    text-align: left;
    text-shadow: 0 1px 0 #F6F6F6;
    color: #202020;
}

.NB-sideoption-share .NB-sideoption-share-crosspost {
    margin: 8px 0;
    overflow: hidden;
}

.NB-sideoption-share .NB-sideoption-share-crosspost-twitter,
.NB-sideoption-share .NB-sideoption-share-crosspost-facebook {
    float: left;
    width: 32px;
    height: 24px;
    margin: 0 6px 0 0;
    opacity: 1;
    cursor: pointer;
    border: 1px solid rgba(0, 0, 0, .05);
}

.NB-sideoption-share .NB-sideoption-share-crosspost-twitter {
    background: transparent url('/media/embed/reader/twitter_service_off.png') no-repeat center center;
    background-size: 12px;
}

.NB-sideoption-share .NB-sideoption-share-crosspost-facebook {
    background: transparent url('/media/embed/reader/facebook_service_off.png') no-repeat center center;
    background-size: 12px;
}

.NB-sideoption-share .NB-sideoption-share-crosspost-twitter.NB-active,
.NB-sideoption-share .NB-sideoption-share-crosspost-twitter:hover {
    background: transparent url('/media/embed/reader/twitter_service.png') no-repeat center center;
    background-size: 12px;
    border-color: #4E8ECD;
    background-color: rgba(78, 142, 205, .1);
}

.NB-sideoption-share .NB-sideoption-share-crosspost-facebook.NB-active,
.NB-sideoption-share .NB-sideoption-share-crosspost-facebook:hover {
    background: transparent url('/media/embed/reader/facebook_service.png') no-repeat center center;
    background-size: 12px;
    border-color: #6884CD;
    background-color: rgba(104, 132, 205, .1);
}

.NB-sideoption-share .NB-sideoption-share-crosspost-text {
    font-size: 9px;
    text-align: left;
    color: #7483A2;
    text-shadow: 0 1px 0 #FBFBFB;
    line-height: 16px;
}

.NB-sideoption-save .NB-sideoption-save-message {
    float: right;
    opacity: 0;
    transition: opacity 1s ease-out;
    margin-top: 12px;
    font-size: 10px;
    color: yellowgreen;
}

.NB-sideoption-save .NB-sideoption-save-message.NB-active {
    opacity: 1;
}

.NB-sideoption-save .NB-sideoption-save-notes,
.NB-sideoption-share .NB-sideoption-share-comments {
    width: 100%;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    height: 52px;
    border-color: #C6C6C6;
    border-radius: 4px;
    margin: 0 0 12px;
}

.NB-sideoption-share .NB-sideoption-share-save {
    margin: 2px 0;
    max-width: 138px;
    box-sizing: border-box;
    cursor: pointer;
}

.NB-sideoption-share .NB-sideoption-share-save.NB-saving {
    background-color: #b5b4bB;
    text-shadow: none;
}

.NB-sideoption-share .NB-sideoption-share-unshare {
    line-height: 1;
    margin: 6px 0;
    max-width: 138px;
    box-sizing: border-box;
    font-weight: normal;
}

.NB-sideoption-share .NB-error {
    font-size: 10px;
    color: #6A1000;
    padding: 4px 0 0;
    line-height: 14px;
    font-weight: bold;
}

/* ========================= */
/* = Sideoption - Discover = */
/* ========================= */

.NB-story-content-discover-wrapper {
    height: 0;
    overflow: hidden;
    display: none;
}

.NB-story-content-discover-wrapper.NB-active {
    display: block;
    height: auto;
}

.NB-menu-manage .NB-story-content-discover-wrapper {}

.NB-narrow-content .NB-story-content-discover-wrapper {
    clear: both;
    margin-bottom: 24px;
}

.NB-sideoption-discover {
    padding: 9px 12px;
    margin: 24px 0 0;
    border: 1px solid #DBE6EA;
}

.NB-narrow-content .NB-sideoption-discover {
    margin-top: 0;
}

.NB-sideoption-discover .NB-sideoption-discover-title {
    font-size: 12px;
    margin: 2px 0 8px;
    text-align: left;
    text-shadow: 0 1px 0 #F6F6F6;
    color: #202020;
}

.NB-sideoption-discover .segmented-control {}

.NB-sideoption-discover .segmented-control-item {
    line-height: 24px;
    padding-left: 12px;
    padding-right: 12px;
    white-space: normal;
}

.NB-sideoption-discover .segmented-control-item a {
    text-decoration: none;
    color: #61635e;
}

.NB-sideoption-discover-content {
    overflow-y: auto;
    margin: 16px 0 0;
    text-align: left;
    min-height: 40px;
}

.NB-sideoption-discover-content .NB-end-line {
    margin: 0;
}

.NB-sideoption-discover-content .NB-story-titles {
    margin: 0;
    padding: 0;
}

.NB-sideoption-discover .NB-story-title {
    border-bottom: 1px solid #eee;
}

.NB-discover-empty {
    padding: 16px;
    text-align: center;
    color: #999;
    line-height: 1.25;
}

.NB-discover-loading {
    text-align: center;
    padding: 24px 0;
}

.NB-discover-load-more.NB-modal-submit-button {
    margin: 12px 0 0;
}

.NB-discover-retry.NB-modal-submit-button,
.NB-discover-upgrade.NB-modal-submit-button {
    margin: 24px 0 0;
}

/* ====================== */
/* = River Progress Bar = */
/* ====================== */

#story_taskbar .NB-river-progress {
    margin: 6px 12px 0;
    width: 150px;
    height: 20px;
}

#story_taskbar .NB-river-progress .NB-river-progress-text {
    text-transform: uppercase;
    font-size: 10px;
    text-align: center;
    font-weight: bold;
    color: #304056;
    text-shadow: 1px 1px 0 #D8D8D8;
}

#story_taskbar .NB-river-progress .NB-river-progress-bar {
    width: 150px;
    height: 8px;
}

.NB-taskbar-info {
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
}

/* ============== */
/* = Feed Error = */
/* ============== */

#story_taskbar .NB-feed-error {
    margin: 5px 12px 0;
    height: 20px;
}

#story_taskbar .NB-feed-error .NB-feed-error-text {
    font-size: 10px;
    text-align: center;
    font-weight: bold;
    color: #4E0A0B;
    text-shadow: 1px 1px 0 #D8D8D8;
    float: left;
    margin-left: 8px;
}

#story_taskbar .NB-feed-error-type-proxy .NB-feed-error-text {
    color: #93927D;
}


#story_taskbar .NB-feed-error .NB-feed-error-icon {
    margin: 4px 0 0 0;
    width: 24px;
    height: 19px;
    background: transparent url('/media/embed/reader/warning.png') no-repeat 0 0;
    float: left;
}

#story_taskbar .NB-feed-error-type-proxy .NB-feed-error-icon {
    opacity: .5;
}

/* ================ */
/* = Feeds Header = */
/* ================ */

.NB-feeds-header-wrapper {
    position: sticky;
    top: 0;
    z-index: 1;
}

.NB-feeds-header-user {
    font-size: 12px;
    padding: 0 64px 0 32px;
    height: 36px;
}

.NB-feeds-header-user {
    cursor: default;
    color: #505050;
    overflow: hidden;
    text-shadow: 0 1px 0 rgba(255, 255, 255, .8);
    background-image: linear-gradient(180deg, #F3F3EE, #f0f3ed);
    border-bottom: 1px solid #dbdbda;
}

.NB-feeds-header-user .NB-feeds-header-user-image {
    position: absolute;
    left: 0;
    top: 0;
    padding: 4px;
}

.NB-feeds-header-user .NB-feeds-header-user-image img {
    width: 28px;
    height: 28px;
    border-radius: 2px;
}

.NB-feeds-header-collapse-sidebar,
.NB-feeds-header-user-interactions {
    cursor: pointer;
    padding: 10px 0 10px;
    width: 36px;
    position: absolute;
    top: 0;
    right: 0;
    line-height: 0;
    text-align: center;
}

.NB-feeds-header-user-interactions {
    padding: 8px 0;
    right: 32px;
}

.NB-feeds-header-collapse-sidebar img,
.NB-feeds-header-user-interactions img {
    width: 16px;
    height: 16px;
    opacity: .7;
}

.NB-feeds-header-user-interactions img {
    width: 20px;
    height: 20px;
}

.NB-feeds-header-collapse-sidebar:hover img,
.NB-feeds-header-user-interactions:hover img {
    opacity: .9;
}

.NB-feeds-header-user-interactions .NB-feeds-header-user-interactions-badge {
    position: absolute;
    top: 4px;
    right: 2px;
    padding: 6px 2px;
    background-color: #EE4F16;
    border: 1px solid rgba(0, 0, 0, .3);
    border-radius: 2px;
    -webkit-box-shadow: rgba(0, 0, 0, .3) 0 1px 1px;
    -moz-box-shadow: rgba(0, 0, 0, .3) 0 1px 1px;
    box-shadow: rgba(0, 0, 0, .3) 0 1px 1px;
    font-weight: bold;
    font-size: 9px;
    color: white;
    opacity: .95;
    text-shadow: 0 1px 0 rgba(0, 0, 0, .2);
    z-index: 1;
}

.NB-feeds-header-collapse-sidebar {
    opacity: .3;
    cursor: default;
}

.NB-feeds-header-collapse-sidebar img,
.NB-feeds-header-collapse-sidebar:hover img {
    opacity: .7;
}

.NB-feeds-header-user .NB-feeds-header-user-name {
    padding: 4px 0 0 6px;
    font-weight: bold;
    overflow: hidden;
    height: 16px;
}

.NB-feeds-header-dashboard {
    font-size: 10px;
}

.NB-feeds-header-dashboard .NB-feeds-header-count {
    padding: 0 0 0 16px;
    text-align: left;
}

.NB-feeds-header-dashboard .NB-feeds-header-count.NB-empty {
    opacity: .45;
    color: #B0B0B0;
}

.NB-feeds-header-dashboard .NB-feeds-header-negative {
    background: transparent url('/media/embed/icons/nouns/indicator-hidden.svg') no-repeat 6px 2px;
    display: none;
}

.NB-feeds-header-dashboard .NB-feeds-header-neutral {
    background: transparent url('/media/embed/icons/nouns/indicator-unread.svg') no-repeat 6px 2px;
    background-size: 8px;
}

.NB-feeds-header-dashboard .NB-feeds-header-positive {
    background: transparent url('/media/embed/icons/nouns/indicator-focus.svg') no-repeat 6px 2px;
    background-size: 8px;
}

.NB-feeds-header-dashboard .NB-feeds-header-starred {
    background: transparent url('/media/embed/icons/nouns/indicator-unread.svg') no-repeat 6px 2px;
    background-size: 8px;
}

.NB-feeds-header-dashboard .NB-feeds-header-right {
    position: relative;
}

.NB-feeds-header-dashboard .NB-feeds-header-sites {
    float: right;
    padding-right: 6px;
    padding-top: 1px;
}

/* =================== */
/* = Header - Common = */
/* =================== */

.NB-feeds-header-container {
    position: relative;
    display: none;
    overflow: hidden;
    background-color: #e9ece6;
}

.NB-feeds-header {
    background-color: #e9ece6;
    /* background-image: -webkit-gradient(linear, left top, left bottom, from(#EAECE5), to(#DCDFD6));
    background: -moz-linear-gradient(center top , #EAECE5 0%, #DCDFD6 100%);
    background-image: linear-gradient(top, #EAECE5, #DCDFD6); */
    /* border-bottom: 1px solid #E9E9E9; */
    /* border-top: 1px solid #FFFFFF; */
    font-size: 11px;
    line-height: 22px;
    cursor: pointer;
    overflow: hidden;
    transition: transform 0.36s ease-out, border-radius 0.36s ease-out;
}

.NB-theme-feed-size-xs .NB-feeds-header {
    font-size: 10px;
}

.NB-theme-feed-size-m .NB-feeds-header {
    font-size: 12px;
}

.NB-theme-feed-size-l .NB-feeds-header {
    font-size: 13px;
}

.NB-theme-feed-size-xl .NB-feeds-header {
    font-size: 14px;
}

.NB-feeds-header:hover:not(.NB-selected) {
    background-color: #E1E6D7;
    /* background-image: -webkit-gradient(linear, left top, left bottom, from(#E1E6D7), to(#CFD6C3));
    background: -moz-linear-gradient(center top , #E1E6D7 0%, #CFD6C3 100%);
    background-image: linear-gradient(top, #E1E6D7, #CFD6C3); */
}

.NB-feeds-header.NB-selected {
    /* border-top: 1px solid #F7F8F5; */
}

.NB-feeds-header .NB-feeds-header-icon {
    position: absolute;
    top: 9px;
    left: 10px;
    width: 16px;
    height: 16px;
}

.NB-feeds-header .NB-feeds-header-title {
    display: block;
    padding: 6px 6px 6px 36px;
    text-decoration: none;
    color: #545454;
    overflow: hidden;
    /* text-shadow: 0 1px 0 rgba(255, 255, 255, .4); */
    letter-spacing: 0.5px;
    font-weight: bold;
}


.NB-feeds-header.NB-selected .NB-feeds-header-title {}

/* ========================== */
/* = Header - River of News = */
/* ========================== */

.NB-feeds-header-river-container {
    display: none;
}

.NB-feeds-header-river-container .NB-feeds-header-count {
    background-color: #11448B;
    display: block;
    padding: 0 4px;
    margin: 2px 3px 0 0;
}

.NB-feeds-header-river-container .NB-feeds-header.NB-empty .NB-feeds-header-count {
    display: none;
}

.NB-feeds-header-river-dashboard-container {
    display: block;
}

/* ========================= */
/* = Staff-Only Badge       = */
/* ========================= */

/* reader.css: Daily Briefing sidebar entry — hidden by default like other river headers */
.NB-feeds-header-river-briefing-container {
    display: none;
}

.NB-feeds-header-river-briefing-container.NB-block {
    display: block;
}

/* reader.css: Briefing sections folder — expandable sub-items under Daily Briefing */
.NB-briefing-sections-folder {
    display: none;
}

.NB-briefing-section-feeds {
    background-color: #dfdcd5;
}

.NB-briefing-section-feeds .feed {
    background-color: #dfdcd5;
}

/* reader.css: Briefing section count — muted outline pill, not an unread indicator */
.NB-briefing-section-feeds .unread_count_positive {
    background-color: transparent;
    color: #808080;
    border: 1.5px solid #a0a0a0;
    font-weight: 600;
    text-shadow: none;
    font-size: 10px;
    padding: 1px 4px;
    line-height: 13px;
    min-width: 14px;
    text-align: center;
}

/* reader.css: Per-section icons — tint to muted slate-blue via $.favicon() */
.NB-briefing-section-feed .feed_favicon img {
    filter: brightness(0) saturate(100%) invert(44%) sepia(12%) saturate(640%) hue-rotate(175deg) brightness(94%) contrast(90%);
}

/* reader.css: Dark mode for briefing section feeds */
.NB-dark .NB-briefing-section-feeds {
    background-color: #292b2e;
}

.NB-dark .NB-briefing-section-feeds .feed {
    background-color: #292b2e;
}

/* reader.css: Dark mode briefing section count outline pill */
.NB-dark .NB-briefing-section-feeds .unread_count_positive {
    color: #888;
    border-color: #555;
}

.NB-staff-badge {
    position: absolute;
    right: 28px;
    top: 50%;
    transform: translateY(-50%);
    color: #8B7355;
    font-size: 9px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    pointer-events: none;
}

/* ============================ */
/* = Header - Starred Stories = */
/* ============================ */

.NB-feeds-header-starred .NB-feeds-header-count {
    background-color: #506B9A;
    margin-top: 4px;
    margin-right: 11px;
    display: block;
}

.NB-starred-feeds {
    background-color: #E9EBEE;
}

.NB-starred-feeds .unread_count_positive {
    background-color: #506B9A;
}

.NB-starred-feeds .feed {
    /* border-top: 1px solid #E9EBEE; */
    /* border-bottom: 1px solid #E9EBEE; */
    background-color: #dfdcd5;
}

.NB-starred-feeds {
    background-color: #dfdcd5;
}

.NB-feeds-header-starred.NB-empty .NB-feeds-header-count {
    display: none;
}

/* ========================= */
/* = Header - Read Stories = */
/* ========================= */

.NB-feeds-header-read-container.NB-block {
    display: block;
}

.NB-feeds-header-read {
    display: block;
}

.NB-feeds-header-read.NB-empty .NB-feeds-header-count {
    display: none;
}


/* =========================== */
/* = Header - Saved Searches = */
/* =========================== */

.NB-feeds-header-searches {
    cursor: default;
    background-image: inherit;
    background-color: inherit;
}

.NB-feeds-header.NB-feeds-header-searches:hover {
    background-image: inherit;
    background-color: inherit;
}

.NB-feeds-header-searches .NB-feeds-header-count {
    background-color: #506B9A;
    margin-top: 4px;
    margin-right: 3px;
    display: block;
}

.NB-searches-feeds {
    background-color: #dadfe7;
}

.NB-searches-feeds .feed {
    /* border-top: 1px solid #E9EBEE;
    border-bottom: 1px solid #E9EBEE; */
    background-color: #dadfe7;
}

.NB-searches-feeds .feed_title {
    padding-right: 4px;
}

.NB-feeds-header-searches.NB-empty .NB-feeds-header-count {
    display: none;
}

.NB-searches-folder .NB-searches-feeds.NB-feedlist .feed {
    display: block;
}

/* ===================== */
/* = Header - Try Feed = */
/* ===================== */

.NB-feeds-header-tryfeed-container {
    display: none;
}

.NB-feeds-header-tryfeed .NB-feeds-header-title {
    text-transform: none;
}

.NB-feeds-header-tryfeed.NB-empty .NB-feeds-header-count {
    display: none;
}

/* ============ */
/* = Task Bar = */
/* ============ */

.NB-taskbar-container {
    text-shadow: 0 1px 0 rgba(255, 255, 255, .8);
    background-color: #F3F3EE;
    background-image: linear-gradient(180deg, #F3F3EE, #f0f3ed);
    z-index: 10;
    height: 36px;
}

.NB-taskbar {
    position: relative;
    /*    overflow: hidden;*/
    /* No hidden overflow so ftux callouts can show */
}

.NB-taskbar .NB-task-view-switch-arrow {
    position: absolute;
    top: 5px;
    left: -8px;
    width: 16px;
    height: 16px;
    background: transparent url('/media/embed/icons/silk/arrow_switch.png') no-repeat center 0px;
    display: none;
    z-index: 1;
}

.NB-taskbar ul {
    list-style-image: none;
    list-style-position: outside;
    list-style-type: none;
}

/* ================ */
/* = Feed Taskbar = */
/* ================ */

.NB-feed-taskbar {
    overflow: hidden;
}

.NB-task-button {
    padding: 10px 7px;
    cursor: pointer;
    opacity: .9;
}

.NB-task-button:hover {
    opacity: 1;
}

.NB-task-button.NB-disabled,
.NB-task-button.NB-disabled:hover {
    opacity: .2;
    cursor: default;
}

#story_taskbar .NB-task-story-next-unread {
    min-width: 32px;
}

.NB-task-add {
    float: left;
}

.NB-task-manage {
    float: right;
    margin-right: 16px;
}

.NB-task-drag {
    position: absolute;
    bottom: 0;
    left: -16px;
    cursor: w-resize;
    padding-left: 0;
    padding-right: 0;
    width: 16px;
    height: 36px;
    background: transparent url('/media/embed/reader/drag_handle.png') no-repeat center center;
    background-size: 16px 36px;
    opacity: 0.3;
}

.NB-task-image {
    width: 16px;
    height: 16px;
}

.NB-task-add .NB-task-image {
    background: transparent url('/media/embed/icons/nouns/add.svg') no-repeat 0 0;
    background-size: 16px;
}

.NB-task-manage .NB-task-image {
    background: transparent url('/media/embed/icons/nouns/settings.svg') no-repeat 0 0;
    background-size: 16px;
}

/* =================== */
/* = Taskbar - Story = */
/* =================== */

.NB-taskbar ::-moz-selection {
    background: transparent;
}

.NB-taskbar ::selection {
    background: transparent;
}

#story_taskbar {
    overflow: hidden;
    display: none;
    border-top: 1px solid #dbdbda;
}

#story_taskbar .NB-taskbar-flex {
    display: flex;
}

#story_taskbar .NB-taskbar {
    margin: 5px 0 0 0;
}

.NB-feedbar .NB-taskbar {
    margin: 2px 0 0 0;
}

#story_taskbar .NB-taskbar .NB-taskbar-button {
    font-size: 11px;
    padding: 4px 8px;
    line-height: 18px;
    position: relative;
}

.NB-feedbar .NB-taskbar .NB-taskbar-button {
    font-size: 11px;
    padding: 3px 8px;
    line-height: 18px;
    position: relative;
}

#story_taskbar .NB-taskbar-view {
    margin: 0 8px 0 6px;
    align-self: flex-end;
}

/* ========================== */
/* = Tryfeed Subscribe Banner = */
/* ========================== */

.NB-tryfeed-banner-container {
    position: sticky;
    top: 0;
    z-index: 5;
}

.NB-tryfeed-subscribe-banner,
.NB-tryfeed-follow-banner,
.NB-tryfeed-signup-banner {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border-bottom: 1px solid rgba(106, 168, 79, 0.15);
    cursor: pointer;
}

.NB-tryfeed-subscribe-banner,
.NB-tryfeed-follow-banner {
    background: linear-gradient(135deg, #e8f0e6 0%, #dce8d5 100%);
}

.NB-tryfeed-subscribe-banner:hover,
.NB-tryfeed-follow-banner:hover {
    background: linear-gradient(135deg, #dfe9dc 0%, #d3dfcb 100%);
}

.NB-tryfeed-signup-banner {
    background: linear-gradient(135deg, #f5f0e6 0%, #ece5d5 100%);
    border-bottom-color: rgba(217, 166, 33, 0.15);
}

.NB-tryfeed-signup-banner:hover {
    background: linear-gradient(135deg, #efe9d8 0%, #e6dece 100%);
}

.NB-tryfeed-banner-icon {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
    border-radius: 4px;
}

.NB-tryfeed-banner-logo {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
    background: url(/media/img/logo_512.png) no-repeat center center;
    background-size: 28px;
    filter: drop-shadow(0 1px 4px rgba(217, 166, 33, 0.3));
}

.NB-tryfeed-banner-content {
    flex: 1;
    min-width: 0;
}

.NB-tryfeed-banner-text {
    font-size: 13px;
    font-weight: 600;
    color: #3a3226;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.NB-tryfeed-banner-subtext {
    font-size: 11px;
    color: rgba(58, 50, 38, 0.55);
    margin-top: 2px;
    line-height: 1.3;
}

.NB-tryfeed-banner-button {
    flex-shrink: 0;
    color: white;
    font-size: 12px;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 4px;
    transition: background 0.2s ease;
    letter-spacing: 0.3px;
}

.NB-tryfeed-banner-button-green {
    background: #6AA84F;
}

.NB-tryfeed-subscribe-banner:hover .NB-tryfeed-banner-button-green,
.NB-tryfeed-follow-banner:hover .NB-tryfeed-banner-button-green {
    background: #5C9441;
}

.NB-tryfeed-banner-button-gold {
    background: #D9A621;
}

.NB-tryfeed-signup-banner:hover .NB-tryfeed-banner-button-gold {
    background: #C4941B;
}

.NB-tryfeed-go-back {
    padding: 6px 16px 8px;
    background: linear-gradient(135deg, #f0f4ee 0%, #e6ede2 100%);
    border-bottom: 1px solid rgba(106, 168, 79, 0.15);
    font-size: 12px;
    cursor: pointer;
    color: rgba(58, 50, 38, 0.55);
}

.NB-tryfeed-go-back:hover {
    background: linear-gradient(135deg, #e8efe5 0%, #dfe8da 100%);
}

.NB-tryfeed-go-back-breadcrumb {
    color: #4a8a2a;
    font-weight: 600;
}

.NB-tryfeed-go-back:hover .NB-tryfeed-go-back-breadcrumb {
    text-decoration: underline;
}

.NB-tryfeed-go-back-separator {
    color: rgba(58, 50, 38, 0.4);
    font-weight: normal;
}

/* ========================== */
/* = Search Indexing Banner = */
/* ========================== */

.NB-search-indexing-banner {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border-bottom: 1px solid rgba(74, 144, 217, 0.15);
    position: sticky;
    top: 0;
    z-index: 5;
    background: linear-gradient(135deg, #e6eef5 0%, #d5e3f0 100%);
    cursor: default;
}

.NB-search-indexing-banner-icon {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
    background: url(/media/img/icons/nouns/search.svg) no-repeat center center;
    background-size: 18px;
    opacity: 0.5;
}

.NB-search-indexing-banner-content {
    flex: 1;
    min-width: 0;
}

.NB-search-indexing-banner-text {
    font-size: 13px;
    font-weight: 600;
    color: #2a3a4a;
    line-height: 1.2;
}

.NB-search-indexing-banner-subtext {
    font-size: 11px;
    color: rgba(42, 58, 74, 0.55);
    margin-top: 2px;
    line-height: 1.3;
}

.NB-search-indexing-progress {
    height: 4px;
    border-radius: 2px;
    background: rgba(74, 144, 217, 0.15);
    margin-top: 8px;
    overflow: hidden;
}

.NB-search-indexing-progress-fill {
    height: 100%;
    border-radius: 2px;
    background: #4A90D9;
    transition: width 0.4s ease;
    width: 0%;
}

.NB-feedbar .NB-taskbar-nav {
    float: right;
    margin: 6px 18px 0 0;
    font-weight: normal;
}

#story_taskbar .NB-taskbar-layout {
    margin-right: 18px;
}

.NB-taskbar .NB-task-title {
    padding: 0 0 0 2px;
}

.NB-taskbar .NB-task-image {
    vertical-align: top;
    width: 18px;
    height: 15px;
    margin: 1px 0 0 0;
    display: inline-block;
    opacity: 0.7;
    transition: opacity 0.25s ease-out;
}

.NB-taskbar .NB-active .NB-task-image {
    opacity: 1;
}

.NB-taskbar .task_view_page .NB-task-image {
    background: transparent url('/media/img/icons/nouns/content-view-original.svg') no-repeat center center;
    background-size: 16px;
}

.NB-taskbar .task_view_page.NB-active .NB-task-image {
    filter: hue-rotate(150deg) saturate(10);
}

.NB-taskbar .task_view_feed .NB-task-image {
    background: transparent url('/media/img/icons/nouns/content-view-feed.svg') no-repeat center center;
    background-size: 16px;
}

.NB-taskbar .task_view_feed.NB-active .NB-task-image {
    filter: hue-rotate(150deg) saturate(10);
}

.NB-taskbar .task_view_story .NB-task-image {
    background: transparent url('/media/img/icons/nouns/content-view-story.svg') no-repeat center center;
    background-size: 16px;
}

.NB-taskbar .task_view_story.NB-active .NB-task-image {
    filter: hue-rotate(150deg) saturate(10);
}

.NB-taskbar .task_view_text .NB-task-image {
    background: transparent url('/media/img/icons/nouns/content-view-text.svg') no-repeat center center;
    background-size: 16px;
}

.NB-taskbar .task_view_text.NB-active .NB-task-image {
    filter: hue-rotate(150deg) saturate(10);
}

.NB-taskbar .task_view_story.NB-disabled-page .NB-task-image {
    background-image: url('/media/embed/icons/circular/exclamation.png');
    background-size: 16px;
}

.NB-taskbar .NB-task-story-next-starred .NB-task-image {
    background: transparent url('/media/embed/icons/nouns/indicator-unread.svg') no-repeat center center;
    background-size: 8px;
    width: 8px;
    height: 8px;
    margin-top: 5px;
}

.NB-taskbar .NB-task-story-next-positive .NB-task-image {
    background: transparent url('/media/embed/icons/nouns/indicator-focus.svg') no-repeat center center;
    background-size: 8px;
    width: 8px;
    height: 8px;
    margin-top: 5px;
}

.NB-taskbar .NB-task-story-next-neutral .NB-task-image {
    background: transparent url('/media/embed/icons/nouns/indicator-unread.svg') no-repeat center center;
    background-size: 8px;
    width: 8px;
    height: 8px;
    margin-top: 5px;
}

.NB-taskbar .NB-task-story-next-negative .NB-task-image {
    background: transparent url('/media/embed/icons/nouns/indicator-hidden.svg') no-repeat center center;
    background-size: 8px;
    width: 8px;
    height: 8px;
    margin-top: 5px;
}

.NB-taskbar .task_view_page.NB-exception-page .NB-task-image {
    background-image: url('/media/embed/icons/circular/exclamation.png');
    background-size: 16px;
}

.NB-taskbar .task_view_page.NB-disabled-page .NB-task-image {
    background-image: url('/media/embed/icons/circular/exclamation.png');
    background-size: 16px;
}

.NB-taskbar .NB-task-story-previous .NB-task-image {
    left: 12px;
    width: 12px;
    height: 12px;
    margin-top: 2px;
    background: transparent url('/media/embed/icons/nouns/nav-previous.svg') no-repeat center center;
    background-size: 12px;
}

.NB-taskbar .NB-task-story-next .NB-task-image {
    left: 12px;
    width: 12px;
    height: 12px;
    margin-top: 3px;
    background: transparent url('/media/embed/icons/nouns/nav-next.svg') no-repeat center center;
    background-size: 12px;
}

.NB-taskbar .NB-task-layout-full .NB-task-image {
    left: 12px;
    background: transparent url('/media/img/icons/nouns/layout-full.svg') no-repeat center center;
    background-size: 16px;
}

.NB-taskbar .NB-task-layout-full.NB-active .NB-task-image {
    filter: hue-rotate(150deg) saturate(10);
}

.NB-taskbar .NB-task-layout-split .NB-task-image {
    left: 12px;
    background: transparent url('/media/img/icons/nouns/layout-split.svg') no-repeat center center;
    background-size: 16px;
}

.NB-taskbar .NB-task-layout-split.NB-active .NB-task-image {
    filter: hue-rotate(150deg) saturate(10);
}

.NB-taskbar .NB-task-layout-list .NB-task-image {
    left: 12px;
    background: transparent url('/media/img/icons/nouns/layout-list.svg') no-repeat center center;
    background-size: 16px;
}

.NB-taskbar .NB-task-layout-list.NB-active .NB-task-image {
    filter: hue-rotate(150deg) saturate(10);
}

.NB-taskbar .NB-task-layout-grid .NB-task-image {
    left: 12px;
    background: transparent url('/media/img/icons/nouns/layout-grid.svg') no-repeat center center;
    background-size: 16px;
}

.NB-taskbar .NB-task-layout-grid.NB-active .NB-task-image {
    filter: hue-rotate(150deg) saturate(10);
}

.NB-taskbar .NB-task-layout-magazine .NB-task-image {
    left: 12px;
    background: transparent url('/media/img/icons/nouns/layout-magazine.svg') no-repeat center center;
    background-size: 16px;
}

.NB-taskbar .NB-task-layout-magazine.NB-active .NB-task-image {
    filter: hue-rotate(150deg) saturate(10);
}

.NB-taskbar .NB-task-return .NB-task-image {
    background: transparent url('/media/embed/icons/silk/arrow_undo.png') no-repeat center center;
}

.NB-taskbar .task_view_page .NB-task-title.NB-task-original-return {
    display: none;
    font-size: 12px;
    padding-top: 1px;
    line-height: 13px;
}

.NB-taskbar .task_view_page.NB-task-return .NB-task-title {
    display: none;
}

.NB-taskbar .task_view_page.NB-task-return .NB-task-title.NB-task-original-return {
    display: inline-block;
}



.NB-narrow #story_taskbar .NB-task-title {
    display: none;
}

.NB-style-popover-container .popover-content {
    padding: 0;
}


#story_taskbar .NB-taskbar-options-container {
    flex-shrink: 1;
    margin: 3px 12px;
}

#story_taskbar .NB-taskbar-options {
    cursor: pointer;
    color: rgba(0, 0, 0, .5);
    border: 1px solid rgba(0, 0, 0, .1);
    border-radius: 16px;
    text-transform: uppercase;
    font-size: 10px;
    font-weight: bold;
    padding: 1px 4px 1px 8px;
    line-height: 14px;
    margin: 6px 0 0;
    display: flex;
    flex-direction: row-reverse;
}

#story_taskbar .NB-taskbar-options:hover,
#story_taskbar .NB-taskbar-options.NB-active {
    background-color: rgba(0, 0, 0, .1);
}

#story_taskbar .NB-taskbar-options .NB-icon {
    float: right;
    width: 16px;
    height: 12px;
    background: transparent url('/media/embed/icons/nouns/up.svg') no-repeat 3px 2px;
    background-size: 9px;
    margin: 0 0 0 4px;
}

.NB-taskbar-options-popover-font-icon {
    background: transparent url('/media/embed/icons/nouns/settings.svg') no-repeat 0 0;
    background-size: 16px;
}

.NB-filter-popover .segmented-control.NB-options-feed-size li,
.NB-style-popover .NB-options-feed-size li,
.NB-style-popover .NB-options-story-font-size li {
    width: 45px;
    padding: 2px 0;
    line-height: 16px;
    font-weight: bold;
}

.NB-filter-popover .segmented-control.NB-options-feed-size li {}

.NB-filter-popover .segmented-control li.NB-options-feed-size-xs,
.NB-style-popover li.NB-options-font-size-xs,
.NB-style-popover li.NB-options-feed-size-xs {
    font-size: 9px;
    padding: 3px 0 1px;
}

.NB-filter-popover .segmented-control .NB-options-feed-size-s,
.NB-style-popover .NB-options-font-size-s,
.NB-style-popover .NB-options-feed-size-s {
    font-size: 10px;
}

.NB-filter-popover .segmented-control li.NB-options-feed-size-m,
.NB-style-popover li.NB-options-font-size-m,
.NB-style-popover li.NB-options-feed-size-m {
    font-size: 12px;
    padding: 3px 0 1px;
}

.NB-filter-popover .segmented-control .NB-options-feed-size-l,
.NB-style-popover .NB-options-font-size-l,
.NB-style-popover .NB-options-feed-size-l {
    font-size: 13px;
}

.NB-filter-popover .segmented-control li.NB-options-feed-size-xl,
.NB-style-popover li.NB-options-font-size-xl,
.NB-style-popover li.NB-options-feed-size-xl {
    font-size: 15px;
}

.NB-filter-popover .segmented-control.NB-options-feed-font li {
    padding: 4px 15px;
    width: auto;
}

.NB-style-popover .NB-options-line-spacing {
    margin-top: 6px;
}

.NB-style-popover .NB-options-line-spacing li {
    width: 45px;
    padding: 2px 0;
    line-height: 16px;
    font-weight: bold;
}

.NB-filter-popover .NB-menu-manage-view-setting-contentpreview .NB-icon,
.NB-style-popover .NB-menu-manage-view-setting-contentpreview .NB-icon,
.NB-style-popover .NB-options-line-spacing .NB-icon {
    width: 32px;
    height: 20px;
    background-size: 32px 16px;
    background-position: center center;
    background-repeat: no-repeat;
    margin: 0 auto;
}

.NB-filter-popover .NB-view-setting-contentpreview-small .NB-icon,
.NB-style-popover .NB-view-setting-contentpreview-small .NB-icon {
    background-image: url("/media/embed/icons/nouns/content-preview-s.svg");
    background-size: 16px;
}

.NB-filter-popover .NB-view-setting-contentpreview-medium .NB-icon,
.NB-style-popover .NB-view-setting-contentpreview-medium .NB-icon {
    background-image: url("/media/embed/icons/nouns/content-preview-m.svg");
    background-size: 16px;
}

.NB-filter-popover .NB-view-setting-contentpreview-large .NB-icon,
.NB-style-popover .NB-view-setting-contentpreview-large .NB-icon {
    background-image: url("/media/embed/icons/nouns/content-preview-l.svg");
    background-size: 16px;
}

.NB-style-popover .NB-options-line-spacing-xs .NB-icon {
    background-image: url("/media/embed/reader/line_spacing_xs.png");
}

.NB-style-popover .NB-options-line-spacing-s .NB-icon {
    background-image: url("/media/embed/reader/line_spacing_s.png");
}

.NB-style-popover .NB-options-line-spacing-m .NB-icon {
    background-image: url("/media/embed/reader/line_spacing_m.png");
}

.NB-style-popover .NB-options-line-spacing-l .NB-icon {
    background-image: url("/media/embed/reader/line_spacing_l.png");
}

.NB-style-popover .NB-options-line-spacing-xl .NB-icon {
    background-image: url("/media/embed/reader/line_spacing_xl.png");
}

.NB-style-popover .NB-options-font-family {
    width: 236px;
}

.NB-style-popover .NB-options-font-family li {
    padding: 5px 0;
    font-size: 13px;
    line-height: 15px;
    text-transform: none;
}

.NB-style-popover .NB-options-font-family li.NB-disabled {
    color: #AEAEAE;
}

.NB-style-popover li.NB-options-font-family-sans-serif {
    font-size: 12px;
}

.NB-style-popover li.NB-options-font-family-serif {
    font-family: Georgia, serif;
}

.NB-style-popover li.NB-options-font-family-gotham {
    font-family: 'Gotham Narrow A', 'Gotham Narrow B';
    font-weight: 400;
    font-style: normal;
}

.NB-style-popover li.NB-options-font-family-sentinel {
    font-family: 'Sentinel A', 'Sentinel B';
    font-weight: 400;
    font-style: normal;
}

.NB-style-popover li.NB-options-font-family-whitney {
    font-family: 'Whitney SSm A', 'Whitney SSm B';
    font-weight: 400;
    font-style: normal;
}

.NB-style-popover li.NB-options-font-family-chronicle {
    font-family: 'Chronicle Display A', 'Chronicle Display B';
    font-weight: 400;
    font-style: normal;
}

.NB-style-popover .NB-premium-only .NB-tag {
    float: right;
    font-size: 8px;
    text-transform: uppercase;
    text-shadow: 0 1px 0 rgba(0, 0, 0, .4);
    color: white;
    background-color: #7CBA84;
    border-radius: 3px;
    padding: 1px 4px;
    line-height: 10px;
    margin: 2px 4px 0;
    /* font-family: "Lucida Grande", Verdana, "Helvetica Neue", Helvetica, sans-serif; */
}

.NB-style-popover .NB-premium-explainer {
    font-size: 10px;
    text-align: center;
    margin: 2px 0 0;
}

.NB-style-popover .NB-story-titles-pane-option {
    width: 73px;
    font-size: 12px;
    padding: 4px 0;
}

.NB-style-popover .NB-options-story-titles-pane-south {
    width: 84px;
}

.NB-style-popover .NB-story-titles-pane-option .NB-icon {
    width: 16px;
    height: 16px;
    display: inline-block;
    margin: 0 8px 1px 0;
    vertical-align: bottom;
}

.NB-options-story-titles-pane-north .NB-icon {
    background: transparent url("/media/embed/icons/nouns/layout-top.svg") no-repeat center center;
    background-size: 16px;
}

.NB-options-story-titles-pane-west .NB-icon {
    background: transparent url("/media/embed/icons/nouns/layout-left.svg") no-repeat center center;
    background-size: 16px;
}

.NB-options-story-titles-pane-south .NB-icon {
    background: transparent url("/media/embed/icons/nouns/layout-bottom.svg") no-repeat center center;
    background-size: 16px;
}

.NB-style-popover .NB-story-position-option .NB-icon {
    width: 16px;
    height: 16px;
    display: inline-block;
    margin: 0;
    vertical-align: text-bottom;
}

.NB-options-story-position .NB-story-position-option {
    width: auto;
    font-size: 12px;
    padding: 4px 10px;
}

.NB-options-story-position-stretch {}

.NB-options-story-position-left .NB-icon {
    background: transparent url("/media/embed/icons/nouns/position-left.svg") no-repeat center center;
    background-size: 16px;
}

.NB-options-story-position-center .NB-icon {
    background: transparent url("/media/embed/icons/nouns/position-center.svg") no-repeat center center;
    background-size: 16px;
}

.NB-options-story-position-right .NB-icon {
    background: transparent url("/media/embed/icons/nouns/position-right.svg") no-repeat center center;
    background-size: 16px;
}

.NB-style-popover .NB-options-story-position-stretch .NB-icon {
    background: transparent url("/media/embed/icons/nouns/position-stretch.svg") no-repeat center center;
    background-size: 16px;
    margin: 0 8px 0 0;
}

.NB-style-popover .NB-options-single-story {
    margin-top: 6px;
}

.NB-style-popover .NB-single-story-option {
    width: 116px;
    font-size: 12px;
    padding: 4px 0;
}

.NB-style-popover .NB-single-story-option .NB-icon {
    width: 16px;
    height: 16px;
    display: inline-block;
    margin: 0 8px 1px 0;
    vertical-align: bottom;
}

.NB-options-single-story-off .NB-icon {
    background: transparent url("/media/embed/icons/nouns/single-story-all.svg") no-repeat center center;
    background-size: 16px;
}

.NB-options-single-story-on .NB-icon {
    background: transparent url("/media/embed/icons/nouns/single-story-one.svg") no-repeat center center;
    background-size: 16px;
}

.NB-style-popover .NB-options-grid-columns,
.NB-style-popover .NB-options-grid-height {
    margin-top: 6px;
}

.NB-style-popover .NB-options-grid-columns-0 {
    flex-grow: 3;
}

.NB-style-popover .NB-options-grid-height-s {
    flex-grow: 2;
}

.NB-style-popover .NB-options-grid-height-m {
    flex-grow: 3;
}

.NB-style-popover .NB-grid-columns-option,
.NB-style-popover .NB-grid-height-option {
    min-width: 23px;
    font-size: 12px;
    padding: 4px 8px;
}

.NB-style-popover .NB-grid-height-option {
    min-width: 22px;
}

.NB-style-popover .NB-grid-columns-option .NB-icon {
    width: 16px;
    height: 16px;
    display: inline-block;
    margin: 0 6px 0 0;
    vertical-align: bottom;
    background: transparent url("/media/embed/icons/nouns/layout-grid.svg") no-repeat center center;
    background-size: 16px;
}

/* ======================= */
/* = Pane Customizations = */
/* ======================= */

.ui-layout-resizer-west {
    border-left: 1px solid #e5e5e4;
    width: 2px;
}

.left-south {
    border-top: 1px solid #dbdbda;
}

.ui-layout-toggler {
    /*    display: none !important;*/
}

.right-pane .ui-layout-resizer-west {
    background-color: #F7F8F5;
}

.right-pane .ui-layout-resizer-south,
.right-pane .ui-layout-resizer-north {
    background-color: #F7F8F5;
    border-top: 1px solid #dbdbda;
    border-bottom: 1px solid #dbdbda;
}

/* ==================== */
/* = OPML Import Form = */
/* ==================== */

form.opml_import_form {}

form.opml_import_form textarea {
    width: 100%;
    height: 200px;
}

form.opml_import_form .section {
    clear: both;
    margin: 2px 0px;
}

form.opml_import_form label {
    display: block;
}

form.opml_import_form input {
    display: block;
    clear: both;
    float: left;
    margin: 0px 4px;
}

#progress_container {
    font-size: .9em;
    width: 100%;
    height: 1.25em;
    position: relative;
    margin: 3em 0;
    display: none;
}

#progress_filename {
    font-size: .9em;
    width: 100%;
}

#progress_bar {
    width: 100%;
    border: 1px solid #999;
}

#progress_indicator {
    background: #8a9;
    width: 0;
    height: 4px;
}

/* ============== */
/* = Feed Frame = */
/* ============== */

.NB-feed-frame {}

/* =============== */
/* = Splash Pane = */
/* =============== */

#NB-splash {
    z-index: 1;
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    overflow-y: auto;
    padding: 0 0 32px;
}

.NB-splash-modules {
    max-width: 1600px;
    display: flex;
    flex-direction: row;
    flex-flow: row nowrap;
    position: relative;
    gap: 24px;
    padding: 0 24px;
}

@media screen and (max-width: 1100px) {
    .NB-splash-modules {
        display: block;
    }

    .NB-splash-modules .NB-modules-center,
    .NB-splash-modules .NB-dashboard-account {
        max-width: none;
    }

    .NB-splash-modules .NB-modules-center,
    .NB-splash-modules .NB-account-wide {
        margin-right: 0;
    }

    .NB-splash-modules .NB-dashboard-account {
        margin: 0 24px;
    }
}

.NB-dashboard-columns-single .NB-splash-modules {
    flex-flow: column;
}

.NB-dashboard-columns-single .NB-splash-modules .NB-modules-center,
.NB-dashboard-columns-single .NB-splash-modules .NB-dashboard-account {
    max-width: none;
}

.NB-dashboard-columns-single .NB-splash-modules .NB-modules-center,
.NB-dashboard-columns-single .NB-splash-modules .NB-account-wide {
    margin-right: 0;
}

.NB-dashboard-columns-triple .NB-splash-modules {
    display: block;
}

.NB-dashboard-columns-triple .NB-splash-modules .NB-modules-center,
.NB-dashboard-columns-triple .NB-splash-modules .NB-dashboard-account {
    max-width: none;
}

.NB-dashboard-columns-triple .NB-dashboard-rivers-left .NB-module-header,
.NB-dashboard-columns-triple .NB-dashboard-rivers-right .NB-module-header {
    margin: 0 0 24px;
}

.NB-density-compact.NB-dashboard-columns-triple .NB-dashboard-rivers-left .NB-module-header,
.NB-density-compact.NB-dashboard-columns-triple .NB-dashboard-rivers-right .NB-module-header {
    margin: 0 0 4px;
}

.NB-dashboard-columns-triple .NB-splash-modules .NB-modules-center,
.NB-dashboard-columns-triple .NB-splash-modules .NB-account-wide {
    margin: 24px 0 0;
}

.NB-density-compact.NB-dashboard-columns-triple .NB-splash-modules {
    padding: 0;
}

.NB-density-compact.NB-dashboard-columns-triple .NB-splash-modules .NB-modules-center,
.NB-density-compact.NB-dashboard-columns-triple .NB-splash-modules .NB-account-wide {
    margin: 4px 0 0;
    padding: 0 4px;
}

.NB-dashboard-columns-triple .NB-splash-modules .NB-dashboard-account {
    margin: 0 24px;
}

.NB-dashboard-columns-triple .NB-dashboard-rivers-left,
.NB-dashboard-columns-triple .NB-dashboard-rivers-right {
    display: flex;
    flex-wrap: nowrap;
    flex-direction: row;
    align-content: center;
    justify-content: center;
    gap: 24px;
}

.NB-density-compact.NB-dashboard-columns-triple .NB-dashboard-rivers-left,
.NB-density-compact.NB-dashboard-columns-triple .NB-dashboard-rivers-right {
    gap: 4px;
}

.NB-dashboard-columns-triple .NB-dashboard-rivers-left .NB-dashboard-river,
.NB-dashboard-columns-triple .NB-dashboard-rivers-right .NB-dashboard-river {
    flex-basis: 100%;
}

.NB-dashboard-columns-triple .NB-dashboard-rivers-left>*,
.NB-dashboard-columns-triple .NB-dashboard-rivers-right>* {
    flex: 1;
    min-width: 0;
}

.NB-dashboard-columns-triple .NB-dashboard-rivers-left .NB-feedbar-options,
.NB-dashboard-columns-triple .NB-dashboard-rivers-right .NB-feedbar-options {
    text-indent: 258%;
    white-space: nowrap;
    overflow: hidden;
    width: 12px;
}

.NB-splash-info {
    width: 100%;
    height: 55px;

    bottom: 0;
    position: absolute;
    right: 0;
    z-index: 1;
}

.NB-splash-info.NB-splash-top {
    top: 0;
    bottom: inherit;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.NB-body-main .NB-splash-info.NB-splash-top {
    display: none;
}

.NB-splash-info.NB-splash-bottom {
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    height: 36px;
    overflow: hidden;
    background: rgba(243, 245, 241, .7);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.NB-splash-info .NB-splash-title {
    position: absolute;
    bottom: -1px;
    width: 282px;
    height: 54px;
    right: 166px;
    z-index: 2;
}

.NB-splash-info.NB-splash-top .NB-splash-title {
    top: 0px;
    bottom: inherit;
    right: 24px;
    width: 168px;
}

.NB-body-main .NB-splash-info.NB-splash-top .NB-splash-title {
    display: none;
}

.NB-splash-info .NB-splash-links {
    float: right;
    display: block;
    line-height: 16px;
    text-shadow: 1px 1px 0 #F0F0F0;
    list-style: none;
    white-space: nowrap;
    z-index: 1;
    margin: 0;
    padding: 0;
    font-weight: 300;
    /* font-family: "Lucida Grande", Verdana, "Helvetica Neue", Helvetica, sans-serif; */
}

.NB-splash-info .NB-splash-links .NB-splash-link {
    display: block;
    overflow: hidden;
    line-height: 12px;
    height: 36px;
    margin: 0;
    float: left;
}

.NB-splash-info .NB-splash-links .NB-splash-link a {
    margin: 0;
    padding: 12px 12px 12px 20px;
    display: block;
    -webkit-transition: all 0.36s ease-out;
    -moz-transition: all 0.36s ease-out;
    -o-transition: all 0.36s ease-out;
    -ms-transition: all 0.36s ease-out;
    background: transparent url('/media/embed/reader/spacer_16.png') no-repeat 0 -17px;
    background-size: 16px;
    font-weight: bold;
    text-rendering: optimizeLegibility;
}

@media screen and (max-width: 1150px) {
    .NB-splash-info .NB-splash-links .NB-splash-link a {
        padding-right: 5px;
        padding-left: 19px;
    }
}

@media screen and (max-width: 950px) {
    .NB-splash-info .NB-splash-links .NB-splash-link a {
        padding-right: 1px;
        padding-left: 16px;
    }

    .NB-splash-info .NB-splash-links .NB-splash-link a:hover {
        /*        background: none !important;*/
    }
}

.NB-splash-info .NB-splash-link-logo {
    display: none;
}

.NB-body-main .NB-splash-info .NB-splash-link-logo {
    float: right;
    display: block;
    opacity: 0.4;
}

.NB-splash-blurred-logo {
    background: transparent url('/media/embed/logo_newsblur_blur.png') no-repeat center center;
    background-size: contain;
    width: 146px;
    height: 24px;
    margin-top: 6px;
}

.NB-splash-info .NB-splash-links .NB-splash-link.NB-splash-link-logo a {
    padding-top: 0;
    padding-bottom: 0;
    margin-top: -1px;
}

.NB-splash-info .NB-splash-links .NB-splash-link.NB-active a,
.NB-splash-info .NB-splash-links .NB-splash-link-about a:hover,
.NB-splash-info .NB-splash-links .NB-splash-link-faq a:hover,
.NB-splash-info .NB-splash-links .NB-splash-link-api a:hover,
.NB-splash-info .NB-splash-links .NB-splash-link-press a:hover {
    background: transparent url('/media/embed/favicon_32.png') no-repeat 0 10px;
    background-size: 16px;
}

.NB-splash-info .NB-splash-links .NB-splash-link-ios a:hover {
    background: transparent url('/media/embed/reader/apple_icon.png') no-repeat 0 9px;
    background-size: 16px;
}

.NB-splash-info .NB-splash-links .NB-splash-link-android a:hover {
    background: transparent url('/media/embed/reader/android_icon_round.png') no-repeat 0 10px;
    background-size: 16px;
}

.NB-splash-info .NB-splash-links .NB-splash-link-github a:hover {
    background: transparent url('/media/embed/reader/github.png') no-repeat 0 9px;
    background-size: 16px;
}

.NB-splash-info .NB-splash-links .NB-splash-link-discourse a:hover {
    background: transparent url('/media/embed/reader/discourse.png') no-repeat 0 9px;
    background-size: 16px;
}

.NB-splash-info .NB-splash-links .NB-splash-link-blog a:hover {
    background: transparent url('/media/embed/reader/ofbrooklyn_icon.png') no-repeat 0 9px;
    background-size: 16px;
}

.NB-splash-info .NB-splash-links .NB-splash-link-twitter a:hover {
    background: transparent url('/media/embed/welcome/x_favicon.png') no-repeat 0 10px;
    background-size: 16px;
}

.NB-splash-info .NB-splash-links .NB-splash-link-facebook a:hover {
    background: transparent url('/media/embed/reader/facebook_icon.png') no-repeat 0 9px;
    background-size: 16px;
}

.NB-splash-info .NB-splash-links a {
    font-weight: bold;
    font-size: 11px;
    display: block;
}

.NB-splash-info .NB-splash-links a,
.NB-static a,
.NB-splash-link {
    color: #405BA8;
    text-decoration: none;
    font-weight: bold;
}

.NB-splash-info .NB-splash-links a:hover,
.NB-static a:hover,
.NB-splash-link:hover {
    color: #A85B40;
    cursor: pointer;
}

.NB-module-logo, .NB-module-login {
    height: 264px;
}

.NB-module-logo {
    text-align: center;
    line-height: 32px;
    font-size: 20px;
}

.NB-module-logo .NB-module-logo-image {
    margin: 12px 0 0;
}

.NB-module-logo .NB-module-logo-tagline {
    margin: 36px 0 42px;
}

.NB-module-logo .NB-module-logo-tagline b {
    padding: 2px 8px;
    background-color: #F0F0F0;
    font-weight: normal;
    border-radius: 4px;
    color: #191F37;
    text-shadow: 0 1px 0 #FFF;
}

.NB-module-logo .NB-module-logo-elsewhere {
    font-size: 16px;
    color: #797979;
}

/* ============== */
/* = Classifier = */
/* ============== */

#simplemodal-container.NB-full-container.NB-classifier-container .simplemodal-wrap {
    overflow: hidden !important;
}

#simplemodal-container.NB-full-container.NB-classifier-container {
    max-height: 800px;
}

.NB-modal.NB-modal-classifiers {
    position: relative;
    overflow: hidden;
    height: 100%;
    max-height: 800px;
    padding: 18px;
    display: flex;
    flex-direction: column;
    min-width: 760px;
}

/* Loading indicator positioned top right */
.NB-modal-classifiers>.NB-modal-loading {
    position: absolute;
    top: 18px;
    right: 18px;
}

/* Title on its own line at the top */
.NB-modal.NB-modal-classifiers .NB-modal-title {
    flex-shrink: 0;
    margin: 6px 0 20px 0;
}

/* Header row with subtitle on left, tabs on right */
.NB-modal-classifiers .NB-modal-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 0;
    flex-shrink: 0;
}

.NB-modal-classifiers .NB-modal-header .NB-modal-subtitle {
    display: flex;
    align-items: center;
    overflow: visible;
    margin: 0;
    padding: 8px 0;
    flex: 1;
    min-width: 0;
}

.NB-modal-classifiers .NB-modal-header .NB-modal-subtitle .NB-modal-feed-image {
    float: none;
    flex-shrink: 0;
    margin: 0 8px 0 6px;
}

.NB-modal-classifiers .NB-modal-header .NB-modal-feed-heading {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 6px;
    overflow: visible;
    margin: 0;
    flex: 1;
    min-width: 0;
}

.NB-modal-classifiers .NB-modal-header .NB-modal-feed-title {
    float: none;
    display: inline;
}

.NB-modal-classifiers .NB-modal-header .NB-modal-feed-subscribers {
    float: none;
    display: inline-block;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    color: #808080;
    background: #e8e8e8;
    padding: 2px 6px;
    border-radius: 3px;
    white-space: nowrap;
    margin: 0;
}

.NB-modal-classifiers .NB-modal-header .NB-modal-tabs {
    float: none;
    position: relative;
    bottom: -1px;
    margin: 0;
    flex-shrink: 0;
    white-space: nowrap;
}

.NB-modal-classifiers .NB-modal-header .NB-modal-tab {
    border-bottom: 1px solid transparent;
}

.NB-modal-classifiers .NB-modal-header .NB-modal-tab.NB-active {
    border-bottom: 1px solid white;
}

.NB-modal-classifiers .NB-tab {
    flex: 1;
    overflow: hidden;
    min-height: 0;
    padding-top: 16px;
    flex-direction: column;
    display: none;
}

.NB-modal-classifiers .NB-tab.NB-active {
    display: flex;
}

.NB-modal-classifiers form {
    padding: 12px 12px 36px 0;
    margin: 1px 0 24px 0;
    overflow-y: auto;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}

.NB-classifier {
    border-radius: 14px;
}

.NB-classifier .NB-modal-loading {
    margin: 8px 0px 0 0;
}

.NB-modal-classifiers .NB-modal-title .NB-icon {
    background: transparent url("/media/embed/icons/nouns/dialog-trainer.svg") no-repeat center center;
    background-size: 28px;
    filter: hue-rotate(140deg) saturate(15);
}

.NB-modal-classifiers h2.NB-like {
    color: #007000;
}

.NB-modal-classifiers h2.NB-dislike {
    color: #700000;
}

.NB-modal-classifiers .NB-classifier-facet-disabled {
    color: #A0A0A0;
}

.NB-classifiers .NB-classifier.NB-classifier-title.NB-classifier-facet-disabled label {
    color: #A0A0A0;
    text-shadow: none;
}

.NB-modal-classifiers .NB-classifier-title-highlight {
    margin-bottom: 6px;
}

.NB-classifier-help-text {
    color: #5a5a5a;
    font-size: 12px;
    margin: 0 0 10px 0;
    clear: both;
    line-height: 1.4;
    padding: 8px;
    background-color: rgba(100, 150, 200, 0.08);
    border-radius: 3px;
    text-align: center;
}

.NB-classifier-title-placeholder,
.NB-classifier-text-placeholder {
    color: #B0B0B0;
    font-style: italic;
}

.NB-classifier-title-display {
    margin: 6px 0 0 0;
}

.NB-modal-classifiers .NB-publisher .NB-classifier-authors input {
    float: none;
    margin: 4px 6px 0 0;
}

.NB-modal-classifiers .NB-classifier-container {
    white-space: nowrap;
    display: inline-block;
    margin: 2px 6px 6px 0;
}

.NB-modal-classifiers .NB-classifier-container .NB-classifier {
    margin: 0 2px 0 0;
}

.NB-classifier-container .NB-classifier-count {
    font-size: 10px;
    margin: 0 6px 0 2px;
    color: #A0A0A0;
}

.NB-modal-classifiers .NB-modal-title .NB-classifier-title-like {
    color: #3D931B;
    padding-left: 28px;
    background: transparent url('/media/embed/icons/nouns/thumbs-up.svg') no-repeat 0 center;
    background-size: 24px;
}

.NB-modal-classifiers .NB-modal-title .NB-classifier-title-dislike {
    color: #932C15;
    padding-right: 28px;
    background: transparent url('/media/embed/icons/nouns/thumbs-down.svg') no-repeat right center;
    background-size: 24px;
}

.NB-modal-classifiers .NB-modal-submit-button {
    float: left;
}

.simplemodal-wrap {
    overflow-y: auto;
    overflow-x: hidden;
}

/* ====================== */
/* = Classifier Trainer = */
/* ====================== */

.NB-modal-trainer .NB-modal-submit .NB-modal-submit-back {
    display: none;
}

.NB-modal-trainer .NB-modal-submit .NB-modal-submit-back,
.NB-modal-trainer .NB-modal-submit .NB-modal-submit-reset {
    float: left;
    color: #FFF;
    background-color: #b5b4bB;
}

.NB-modal-trainer .NB-modal-submit .NB-modal-submit-grey {
    float: left;
    color: #FFF;
    background-color: #b5b4bB;
}

.NB-modal-trainer .NB-modal-submit .NB-modal-submit-begin {
    float: right;
}

.NB-modal-trainer .NB-modal-submit .NB-modal-submit-end {
    float: right;
    color: #FFF;
    background-color: #4679BB;
}

.NB-modal-trainer .NB-modal-submit .NB-modal-submit-green {
    float: right;
    padding-left: 12px !important;
    padding-right: 12px !important;
}

.NB-modal-trainer .NB-classifier-trainer-counts {
    float: right;
    color: #606060;
    font-size: 14px;
}

.NB-modal-trainer .NB-trainer-points {
    margin-bottom: 64px;
}

.NB-modal-trainer .NB-trainer-points li {
    line-height: 23px;
    margin: 0 0 18px 0;
    clear: both;
    font-size: 13px;
    color: #707070;
}

.NB-modal-trainer .NB-trainer-points li b {
    display: block;
    font-size: 16px;
    color: #202020;
}

.NB-modal-trainer .NB-trainer-points li img {
    padding: 0 0 0 8px;
}

.NB-modal-trainer .NB-classifier-example {
    background: transparent url('/media/embed/reader/sample_classifier_tag.png') no-repeat 0 0;
    background-size: 135px 69px;
    width: 135px;
    height: 23px;
    float: right;
    margin-left: 4px;
}

.NB-modal-trainer .NB-trainer-points li img.NB-trainer-bullet {
    float: left;
    margin: 8px 8px 0 0;
    padding: 0;
    vertical-align: middle;
    width: 8px;
    height: 8px;
}

.NB-modal-trainer .NB-trainer-not-authenticated {
    font-size: 13px;
    color: #801A14;
    font-weight: bold;
    padding: 4px 4px 4px 24px;
    background: #FFE1DB url('/media/embed/icons/circular/exclamation.png') no-repeat 4px 4px;
    background-size: 16px;
}

/* ============================== */
/* = Manage Training Tab Styles = */
/* ============================== */

/* Header with title and tabs on same row */
.NB-modal-trainer .NB-trainer-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 0;
}

.NB-modal-trainer .NB-trainer-header .NB-modal-title {
    margin-bottom: 8px;
    border-bottom: none;
}

.NB-modal-trainer .NB-trainer-header .NB-modal-tabs {
    float: none;
    position: relative;
    bottom: -1px;
    margin: 0;
}

.NB-modal-trainer .NB-trainer-header .NB-modal-tab {
    border-bottom: 1px solid transparent;
}

.NB-modal-trainer .NB-trainer-header .NB-modal-tab.NB-active {
    border-bottom: 1px solid white;
}

.NB-modal-trainer .NB-tab {
    display: none;
}

.NB-modal-trainer .NB-tab.NB-active {
    display: block;
}

/* Add spacing above the "What do you like..." title */
.NB-modal-trainer .NB-tab-sitebyside .NB-modal-title {
    margin-top: 20px;
    margin-bottom: 16px;
}

.NB-modal-trainer .NB-tab-sitebyside {
    padding-top: 16px;
    display: flex;
    flex-direction: column;
}

.NB-modal-trainer .NB-tab-sitebyside>* {
    flex-shrink: 0;
}

.NB-modal-trainer .NB-tab-sitebyside form {
    flex: 1;
    flex-shrink: 1;
    min-height: 0;
}

.NB-modal-trainer .NB-tab-manage {
    display: flex;
    flex-direction: column;
    padding-top: 16px;
}

.NB-manage-training-content {
    padding: 0 0 12px 0;
    flex: 1;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    min-height: 0;
}

.NB-manage-training-content .NB-modal-submit-bottom {
    flex-shrink: 0;
}

/* Manage tab filter bar */
.NB-manage-filter-bar {
    display: flex;
    gap: 8px;
    padding: 0 12px 12px;
    border-bottom: 1px solid #E0E0E0;
    margin-bottom: 12px;
    flex-shrink: 0;
    flex-wrap: wrap;
}

.NB-manage-filter-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.NB-manage-filter-label {
    font-size: 11px;
    font-weight: bold;
    color: #808080;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.NB-manage-filter-bar .segmented-control {
    margin: 0;
}

.NB-manage-filter-bar .segmented-control li {
    padding: 4px 10px;
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.NB-manage-filter-icon {
    width: 14px;
    height: 14px;
    display: inline-block;
    vertical-align: middle;
    margin-right: 2px;
}

.NB-manage-filter-icon.NB-icon-like {
    background: transparent url('/media/embed/icons/nouns/thumbs-up.svg') no-repeat center center;
    background-size: contain;
    /* Bright green when inactive - matches classifier like color rgb(52, 145, 46) */
    filter: brightness(0) saturate(100%) invert(42%) sepia(93%) saturate(436%) hue-rotate(87deg) brightness(92%) contrast(91%);
}

.NB-manage-filter-icon.NB-icon-dislike {
    background: transparent url('/media/embed/icons/nouns/thumbs-down.svg') no-repeat center center;
    background-size: contain;
    /* Bright red when inactive - matches classifier dislike color rgb(169, 1, 3) */
    filter: brightness(0) saturate(100%) invert(12%) sepia(100%) saturate(6000%) hue-rotate(0deg) brightness(90%) contrast(110%);
}

/* Filter bar rows */
.NB-manage-filter-row {
    display: flex;
    gap: 16px;
    width: 100%;
    align-items: center;
}

/* Row 1: Feed dropdown + search (full width) */
.NB-manage-filter-row-1 {
    margin-bottom: 10px;
}

.NB-manage-filter-row-1 .NB-manage-filter-feed {
    flex: 0 0 auto;
}

.NB-manage-filter-row-1 .NB-manage-filter-search {
    flex: 1;
}

/* Row 2: Sentiment (left) + Scope (right) */
.NB-manage-filter-row-2 {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    gap: 8px;
}

.NB-manage-filter-row-2 .NB-manage-filter-sentiment {
    flex: 0 0 auto;
}

.NB-manage-filter-row-2 .NB-manage-filter-scope {
    flex: 0 0 auto;
}

/* Row 3: Type control (full width) */
.NB-manage-filter-row-3 {
    display: flex;
}

.NB-manage-filter-row-3 .NB-manage-types-control {
    width: 100%;
    display: flex;
}

.NB-manage-filter-row-3 .NB-manage-types-control li {
    flex: 1;
    justify-content: center;
}

/* Scope filter icons in manage tab */
.NB-manage-scope-icon {
    width: 12px;
    height: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 2px;
}

.NB-manage-scope-icon svg {
    width: 12px;
    height: 12px;
}

.NB-manage-scope-icon-feed {
    color: #777;
}

.NB-manage-scope-icon-folder {
    color: #3B82F6;
}

.NB-manage-scope-icon-global {
    color: #8B5CF6;
}

.NB-manage-scope-control li.NB-active .NB-manage-scope-icon-feed {
    color: #555;
}

.NB-manage-scope-control li.NB-active .NB-manage-scope-icon-folder {
    color: #2563EB;
}

.NB-manage-scope-control li.NB-active .NB-manage-scope-icon-global {
    color: #7C3AED;
}

/* Pro banner for scope filter */
.NB-manage-scope-pro-banner {
    display: none;
    width: 100%;
    padding: 8px 12px;
    background: linear-gradient(135deg, #FEF3C7 0%, #FDE68A 100%);
    border: 1px solid #F59E0B;
    border-radius: 6px;
    font-size: 12px;
    color: #92400E;
    text-align: center;
    animation: scope-banner-in 0.3s ease-out;
}

.NB-manage-scope-pro-banner.NB-visible {
    display: block;
}

.NB-manage-scope-pro-banner a {
    color: #D97706;
    font-weight: bold;
    text-decoration: underline;
    cursor: pointer;
}

.NB-manage-scope-pro-banner a:hover {
    color: #B45309;
}

@keyframes scope-banner-in {
    from {
        opacity: 0;
        transform: translateY(-4px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Scoped section title */
.NB-manage-scoped-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(135deg, #EDE9FE, #E0E7FF) !important;
    color: #4C1D95 !important;
}

.NB-manage-scoped-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 18px;
    padding: 0 6px;
    font-size: 11px;
    font-weight: 600;
    background: rgba(124, 58, 237, 0.15);
    border-radius: 9px;
    color: #6D28D9;
}

/* Type filter count badges */
.NB-type-label {
    margin-right: 4px;
}

.NB-type-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 16px;
    padding: 0 5px;
    font-size: 10px;
    font-weight: 600;
    line-height: 1;
    background: rgba(0, 0, 0, 0.12);
    border-radius: 8px;
    color: #666;
}

.NB-manage-types-control li.NB-active .NB-type-count,
.NB-manage-sentiment-control li.NB-active .NB-type-count {
    background: rgba(80, 120, 80, 0.25);
    color: #3a5a3a;
}

/* Dim items with zero count */
.NB-manage-types-control li.NB-zero-count,
.NB-manage-sentiment-control li.NB-zero-count {
    opacity: 0.5;
}

/* Feed/folder dropdown filter */
.NB-manage-filter-feed {
    flex: 0 0 auto;
}

.NB-manage-feed-chooser {
    width: 200px;
    padding: 4px 8px;
    font-size: 12px;
    border: 1px solid #D0D0D0;
    border-radius: 4px;
    background: white;
    cursor: pointer;
}

.NB-manage-feed-chooser:focus {
    outline: none;
    border-color: #50A050;
}

/* Search input filter */
.NB-manage-filter-search {
    flex: 1;
}

.NB-manage-search-input {
    width: 100%;
    padding: 4px 8px;
    font-size: 12px;
    border: 1px solid #D0D0D0;
    border-radius: 4px;
    background: white;
}

.NB-manage-search-input:focus {
    outline: none;
    border-color: #50A050;
}

.NB-manage-search-input::placeholder {
    color: #A0A0A0;
}

.NB-manage-training-folders {
    padding: 0 12px 24px;
    flex: 1;
    overflow-y: auto;
    margin-bottom: 24px;
    min-height: 0;
}

.NB-manage-folder {
    margin-bottom: 16px;
}

.NB-manage-folder-title {
    font-weight: bold;
    font-size: 13px;
    color: #505050;
    padding: 8px 12px;
    background-color: #EAECE5;
    border-radius: 3px;
    margin-bottom: 8px;
}

.NB-manage-folder-feeds {
    padding-left: 12px;
}

.NB-manage-folder-classifiers {
    margin-bottom: 8px;
}

.NB-manage-feed {
    margin-bottom: 12px;
    border-left: 3px solid #E0E0E0;
    padding-left: 12px;
}

.NB-manage-feed-header {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
}

.NB-manage-feed-header .feed_favicon {
    margin-right: 8px;
    width: 16px;
    height: 16px;
}

.NB-manage-feed-title {
    font-weight: bold;
    font-size: 13px;
    color: #303030;
}

.NB-manage-feed-classifiers {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.NB-manage-classifier-item {
    display: inline-block;
}

.NB-manage-classifier-item .NB-classifier {
    font-size: 12px;
}

/* Manage tab submit area */
.NB-manage-submit-area {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    min-height: 36px;
}

.NB-manage-save {
    display: none;
}

.NB-manage-saved-message {
    display: none;
    color: #4a8f29;
    font-size: 13px;
    font-weight: bold;
    margin-right: 12px;
}

/* Empty state */
.NB-manage-training-empty {
    text-align: center;
    padding: 40px;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.NB-manage-training-empty-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: transparent url('/media/embed/icons/nouns/thumbs-up.svg') no-repeat center center;
    background-size: 60px;
    opacity: 0.3;
}

.NB-manage-training-empty-message h3 {
    font-size: 18px;
    color: #505050;
    margin-bottom: 8px;
}

.NB-manage-training-empty-message p {
    font-size: 14px;
    color: #808080;
    margin-bottom: 20px;
}

/* Loading state */
.NB-manage-loading {
    text-align: center;
    padding: 40px;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.NB-manage-loading .NB-modal-loading {
    display: block;
    position: relative;
    width: 24px;
    height: 24px;
    margin: 0 auto 12px;
}

.NB-manage-loading-text {
    font-size: 14px;
    color: #808080;
}

/* Error state */
.NB-manage-training-error {
    text-align: center;
    padding: 40px;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.NB-manage-training-error-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 16px;
    background-image: url('/media/img/icons/nouns/alert.svg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0.5;
}

.NB-manage-training-error h3 {
    font-size: 16px;
    font-weight: bold;
    margin: 0 0 8px 0;
}

.NB-manage-training-error p {
    font-size: 13px;
    color: #808080;
    margin: 0 0 20px 0;
}

/* ======================= */
/* = Intelligence Slider = */
/* ======================= */

.NB-taskbar-intelligence {
    margin: 6px auto 0;
    font-size: 11px;
    white-space: nowrap;
    overflow: hidden;
    text-align: center;
}

.NB-taskbar-intelligence.NB-modal-slider {
    right: 18px;
    top: 28px;
}

.NB-taskbar-intelligence .NB-taskbar-intelligence-indicator {
    position: absolute;
    top: -16px;
    width: 12px;
    height: 12px;
}

.NB-taskbar-intelligence .NB-taskbar-intelligence-negative {
    right: 94px;
    background: transparent url(/media/embed/icons/nouns/indicator-hidden.svg) no-repeat 0 0;
    background-size: 8px;
}

.NB-taskbar-intelligence .NB-taskbar-intelligence-neutral {
    right: 45px;
    background: transparent url(/media/embed/icons/nouns/indicator-unread.svg) no-repeat 0 0;
    background-size: 8px;
}

.NB-taskbar-intelligence .NB-taskbar-intelligence-positive {
    right: -4px;
    background: transparent url(/media/embed/icons/nouns/indicator-focus.svg) no-repeat 0 0;
    background-size: 8px;
}

.NB-taskbar-intelligence .NB-taskbar-intelligence-starred {
    right: -4px;
    background: transparent url(/media/embed/icons/nouns/indicator-unread.svg) no-repeat 0 0;
    background-size: 8px;
}

.NB-intelligence-slider {
    display: inline-block;
}

.NB-intelligence-slider .segmented-control {
    float: left;
    width: auto;
}

.NB-intelligence-slider .NB-intelligence-slider-control {
    line-height: 13px;
    height: 13px;
    position: relative;
    padding: 4px 8px 4px;
    display: flex;
}

.NB-narrow-pane-blue .NB-intelligence-slider .NB-intelligence-slider-blue .NB-intelligence-label {
    display: none;
}

.NB-narrow-pane-green .NB-intelligence-slider .NB-intelligence-slider-green .NB-intelligence-label {
    display: none;
}

.NB-narrow-pane-yellow .NB-intelligence-slider .NB-intelligence-slider-yellow .NB-intelligence-label {
    display: none;
}

.NB-intelligence-slider img {
    width: 8px;
    height: 8px;
    margin: 3px 5px -1px -2px;
    float: left;
    vertical-align: bottom;
}

.NB-intelligence-slider .NB-intelligence-slider-blue img {
    width: 12px;
    height: 12px;
    margin: 1px 5px -1px 0px;
}

.NB-narrow-pane-green .NB-intelligence-slider .NB-intelligence-slider-green img {
    margin: 3px 6px 2px;
}

.NB-narrow-pane-blue .NB-intelligence-slider .NB-intelligence-slider-blue img {
    margin: 1px 4px 0px;
}

.NB-narrow-pane-yellow .NB-intelligence-slider .NB-intelligence-slider-yellow img {
    margin: 3px 6px 2px;
}

/* ================ */
/* = Media Player = */
/* ================ */

.NB-media-player {
    border-bottom: 1px solid #dbdbda;
    background-color: #f6f7f5;
    background-image: linear-gradient(180deg, #f8f9f6, #f0f1ee);
    overflow: visible;
}

.NB-media-player.NB-hidden {
    display: none;
}

/* Mini player — two-row layout */
.NB-media-player-mini {
    display: flex;
    flex-direction: column;
    padding: 8px 10px 8px;
    gap: 4px;
    user-select: none;
}

/* Row 1: Now-playing info */
.NB-media-player-row-info {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 36px;
}

/* Row 2: Full-width scrubber */
.NB-media-player-row-scrubber {
    display: flex;
    align-items: center;
    height: 14px;
}

/* Row 3: Controls + time (centered) + speed/volume */
.NB-media-player-row-controls {
    display: flex;
    align-items: center;
    gap: 4px;
    height: 26px;
}

.NB-media-player-right-controls {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
}

/* Video container in mini player */
.NB-media-player-video-container {
    width: 80px;
    height: 45px;
    flex-shrink: 0;
    border-radius: 4px;
    overflow: hidden;
    background: #000;
}

.NB-media-player-video-container.NB-hidden {
    display: none;
}

.NB-media-player-video-container video,
.NB-media-player-video-container iframe {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border: 0;
}

/* Podcast artwork in mini player */
.NB-media-player-artwork {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    border-radius: 4px;
    overflow: hidden;
    background: #e0e0e0;
}

.NB-media-player-artwork img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.NB-media-player-artwork.NB-hidden {
    display: none;
}

/* Headphone icon fallback when no video/artwork */
.NB-media-player-icon {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    background: linear-gradient(135deg, #629f3e, #4a8530);
}

.NB-media-player-icon svg {
    width: 22px;
    height: 22px;
    fill: #fff;
}

/* Info section */
.NB-media-player-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
    flex: 1;
    gap: 2px;
}

.NB-media-player-feed-row {
    display: flex;
    align-items: center;
    gap: 4px;
}

.NB-media-player-feed-title {
    font-size: 10px;
    color: #808080;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.2;
}

.NB-media-player-favicon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.NB-media-player-favicon img {
    width: 16px;
    height: 16px;
}

.NB-media-player-title {
    font-size: 11px;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    cursor: pointer;
    color: #303030;
    line-height: 1.2;
}

.NB-media-player-title:hover {
    text-decoration: underline;
}

.NB-media-player-type-badge {
    font-size: 9px;
    text-transform: uppercase;
    color: #999;
    font-weight: 600;
    white-space: nowrap;
    flex-shrink: 0;
}

/* Transport controls */
.NB-media-player-controls {
    display: flex;
    align-items: center;
    gap: 0;
    flex-shrink: 0;
}

.NB-media-player-play-pause,
.NB-media-player-skip-back,
.NB-media-player-skip-forward {
    width: 26px;
    height: 26px;
    cursor: pointer;
    border-radius: 4px;
    opacity: 0.65;
    display: flex;
    align-items: center;
    justify-content: center;
}

.NB-media-player-play-pause {
    width: 28px;
    height: 28px;
    opacity: 0.8;
}

.NB-media-player-play-pause:hover,
.NB-media-player-skip-back:hover,
.NB-media-player-skip-forward:hover {
    opacity: 1;
    background-color: rgba(0, 0, 0, 0.06);
}

.NB-media-player-play-pause svg,
.NB-media-player-skip-back svg,
.NB-media-player-skip-forward svg {
    width: 14px;
    height: 14px;
    fill: #404040;
}

.NB-media-player-play-pause svg {
    width: 18px;
    height: 18px;
}

.NB-media-player-skip-back .NB-skip-label,
.NB-media-player-skip-forward .NB-skip-label {
    font-size: 7px;
    font-weight: 700;
    color: #606060;
    position: absolute;
    margin-top: 1px;
}

/* Progress bar */
.NB-media-player-progress-container {
    flex: 1;
    display: flex;
    align-items: center;
}

.NB-media-player-progress {
    width: 100%;
    height: 4px;
    -webkit-appearance: none;
    appearance: none;
    background: #ddd;
    border-radius: 2px;
    outline: none;
    cursor: pointer;
    margin: 0;
}

.NB-media-player-progress::-webkit-slider-runnable-track {
    height: 4px;
    border-radius: 2px;
}

.NB-media-player-progress::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 10px;
    height: 10px;
    background: #505050;
    border-radius: 50%;
    cursor: pointer;
    margin-top: -3px;
}

.NB-media-player-progress::-moz-range-thumb {
    width: 10px;
    height: 10px;
    background: #505050;
    border-radius: 50%;
    border: none;
    cursor: pointer;
}

.NB-media-player-time {
    font-size: 10px;
    color: #999;
    display: flex;
    gap: 2px;
    justify-content: center;
    line-height: 1;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
    flex: 1;
}

.NB-media-player-speed {
    font-size: 10px;
    font-weight: 600;
    color: #606060;
    cursor: pointer;
    padding: 2px 5px;
    border-radius: 3px;
    min-width: 26px;
    text-align: center;
    white-space: nowrap;
    line-height: 1.4;
    flex-shrink: 0;
}

.NB-media-player-speed:hover {
    background-color: rgba(0, 0, 0, 0.06);
}

/* Volume: icon + hover popover */
.NB-media-player-volume-container {
    position: relative;
    flex-shrink: 0;
}

.NB-media-player-volume-icon {
    width: 22px;
    height: 22px;
    cursor: pointer;
    opacity: 0.5;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 3px;
}

.NB-media-player-volume-container:hover .NB-media-player-volume-icon,
.NB-media-player-volume-icon:hover {
    opacity: 0.8;
    background-color: rgba(0, 0, 0, 0.06);
}

.NB-media-player-volume-icon svg {
    width: 14px;
    height: 14px;
    fill: #505050;
}

/* Popover: vertical slider above volume icon */
.NB-media-player-volume-popover {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    width: 28px;
    height: 96px;
    padding: 0 0 8px;
    background: #f0f1ee;
    border: 1px solid #cccbc9;
    border-radius: 14px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.10), 0 1px 3px rgba(0, 0, 0, 0.06);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.15s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.NB-media-player-volume-container:hover .NB-media-player-volume-popover {
    opacity: 1;
    pointer-events: auto;
}

/* Rotated horizontal slider to appear vertical */
.NB-media-player-volume {
    -webkit-appearance: none;
    appearance: none;
    width: 80px;
    height: 6px;
    background: transparent;
    cursor: pointer;
    margin: 0;
    padding: 0;
    transform: rotate(-90deg);
}

.NB-media-player-volume::-webkit-slider-runnable-track {
    height: 4px;
    background: #d4d4d2;
    border-radius: 2px;
}

.NB-media-player-volume::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 12px;
    height: 12px;
    background: #606060;
    border-radius: 50%;
    cursor: pointer;
    margin-top: -4px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}

.NB-media-player-volume::-moz-range-track {
    height: 4px;
    background: #d4d4d2;
    border-radius: 2px;
    border: none;
}

.NB-media-player-volume::-moz-range-thumb {
    width: 12px;
    height: 12px;
    background: #606060;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}

.NB-media-player-settings {
    width: 20px;
    height: 20px;
    cursor: pointer;
    opacity: 0.35;
    border-radius: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-left: auto;
}

.NB-media-player-settings:hover {
    opacity: 0.7;
    background-color: rgba(0, 0, 0, 0.06);
}

.NB-media-player-settings svg {
    width: 14px;
    height: 14px;
    fill: #505050;
}

.NB-media-player-close {
    width: 20px;
    height: 20px;
    cursor: pointer;
    opacity: 0.4;
    border-radius: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.NB-media-player-close:hover {
    opacity: 0.7;
    background-color: rgba(0, 0, 0, 0.06);
}

.NB-media-player-close svg {
    width: 12px;
    height: 12px;
    fill: #505050;
}


.NB-media-player-fullscreen {
    width: 20px;
    height: 20px;
    cursor: pointer;
    opacity: 0.5;
    border-radius: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.NB-media-player-fullscreen:hover {
    opacity: 0.8;
    background-color: rgba(0, 0, 0, 0.06);
}

.NB-media-player-fullscreen svg {
    width: 14px;
    height: 14px;
    fill: #505050;
}

/* Always-visible queue area */
.NB-media-player-queue-area {
    border-top: 1px solid #e5e5e4;
}

.NB-media-player-queue-area:empty {
    display: none;
}

.NB-media-player-queue-header {
    padding: 5px 6px 3px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.NB-media-player-queue-header .segmented-control {
    margin: 0;
    flex: 1;
    font-size: 10px;
    text-transform: uppercase;
}

.NB-media-player-queue-header .segmented-control li {
    padding: 2px 8px;
    line-height: 16px;
    font-weight: 600;
    color: #999;
}

.NB-media-player-queue-header .segmented-control li.NB-active {
    color: #505050;
}

.NB-media-player-queue-count,
.NB-media-player-history-count {
    font-weight: 600;
    color: #888;
    font-size: 9px;
    background-color: rgba(0, 0, 0, 0.08);
    padding: 1px 5px;
    border-radius: 8px;
    margin-left: 3px;
    display: inline-block;
    line-height: 1.4;
    min-width: 14px;
    text-align: center;
}

.NB-media-player-queue-clear {
    display: flex;
    align-items: center;
    gap: 3px;
    font-size: 10px;
    font-weight: 500;
    color: #b0b0b0;
    cursor: pointer;
    padding: 2px 6px;
    border-radius: 3px;
    text-transform: none;
}

.NB-media-player-queue-clear:hover {
    color: #808080;
    background-color: rgba(0, 0, 0, 0.06);
}

.NB-media-player-queue-clear svg {
    width: 12px;
    height: 12px;
    fill: currentColor;
}

.NB-media-player-queue {
    list-style: none;
    margin: 0;
    padding: 0;
    max-height: 102px;
    overflow-y: auto;
}

.NB-media-player-queue-empty {
    font-size: 11px;
    color: #bbb;
    padding: 8px 10px;
    text-align: center;
    font-style: italic;
}

.NB-media-player-queue li {
    display: flex;
    align-items: center;
    padding: 5px 6px 5px 2px;
    gap: 6px;
    cursor: pointer;
    font-size: 11px;
    color: #505050;
    transition: transform 0.15s ease, background-color 0.15s;
    position: relative;
}

.NB-media-player-queue li:hover {
    background-color: rgba(0, 0, 0, 0.04);
}

.NB-queue-drag-handle {
    width: 18px;
    height: 24px;
    flex-shrink: 0;
    cursor: grab;
    opacity: 0.3;
    display: flex;
    align-items: center;
    justify-content: center;
}

.NB-queue-drag-handle:hover {
    opacity: 0.6;
}

.NB-queue-drag-handle:active {
    cursor: grabbing;
}

.NB-queue-drag-handle svg {
    width: 14px;
    height: 14px;
    fill: #888;
}

.NB-media-player-queue li .NB-queue-favicon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.NB-media-player-queue li .NB-queue-favicon img {
    width: 16px;
    height: 16px;
}

.NB-queue-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.NB-media-player-queue li .NB-queue-title {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    line-height: 1.3;
}

.NB-queue-date {
    font-size: 9px;
    color: #b0b0b0;
    line-height: 1.2;
}

.NB-media-player-queue li .NB-queue-type {
    font-size: 9px;
    text-transform: uppercase;
    color: #bbb;
    flex-shrink: 0;
    align-self: flex-start;
    margin-top: 1px;
}

.NB-media-player-queue-remove {
    width: 16px;
    height: 16px;
    opacity: 0;
    cursor: pointer;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    align-self: flex-start;
    margin-top: 1px;
}

.NB-media-player-queue-remove svg {
    width: 10px;
    height: 10px;
    fill: #999;
}

.NB-media-player-queue li:hover .NB-media-player-queue-remove {
    opacity: 0.5;
}

.NB-media-player-queue-remove:hover {
    opacity: 1 !important;
}

/* Drag state */
.NB-media-player-queue li.NB-queue-dragging {
    background: #e8eae6;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    z-index: 10;
    opacity: 0.9;
}

/* History items - no drag handle, extra left padding */
.NB-media-player-history-list li {
    padding-left: 8px;
}

.NB-media-player-history-remove {
    width: 16px;
    height: 16px;
    opacity: 0;
    cursor: pointer;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    align-self: flex-start;
    margin-top: 1px;
}

.NB-media-player-history-remove svg {
    width: 10px;
    height: 10px;
    fill: #999;
}

.NB-media-player-queue li:hover .NB-media-player-history-remove {
    opacity: 0.5;
}

.NB-media-player-history-remove:hover {
    opacity: 1 !important;
}

/* In-story media player overlay buttons */
.NB-media-play-wrapper {
    position: relative;
    display: inline-block;
}

.NB-media-overlay-buttons {
    display: flex;
    gap: 6px;
    margin: 8px 0 2px;
}

.NB-media-play-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    padding: 7px 14px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    border: 1px solid rgba(0, 0, 0, 0.12);
    transition: background-color 0.15s, box-shadow 0.15s;
    user-select: none;
    -webkit-user-select: none;
}

.NB-media-play-btn svg {
    width: 20px;
    height: 16px;
    flex-shrink: 0;
}

.NB-media-play-now {
    background: #629f3e;
    color: #fff;
    border-color: #558b36;
}

.NB-media-play-now svg {
    fill: #fff;
}

.NB-media-play-now:hover {
    background: #55903a;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}

.NB-media-play-next,
.NB-media-play-last {
    background: rgba(0, 0, 0, 0.06);
    color: #505050;
}

.NB-media-play-next svg,
.NB-media-play-last svg {
    fill: #606060;
}

.NB-media-play-next:hover,
.NB-media-play-last:hover {
    background: rgba(0, 0, 0, 0.12);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}


/* Media player settings popover - arrow positioning */
.NB-media-settings-popover-container.popover.top-right .arrow {
    left: 6px;
    right: auto;
    margin-left: 0;
}

/* Media player settings popover */
.NB-media-settings-popover .NB-popover-section {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    padding: 10px 0;
    margin: 0 16px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.NB-media-settings-popover .NB-popover-section:last-child {
    border-bottom: none;
}

.NB-media-settings-popover .NB-popover-section-label {
    width: 100px;
    flex-shrink: 0;
}

.NB-media-settings-popover .NB-popover-section-controls {
    flex: 1;
    min-width: 0;
}

.NB-media-settings-popover .NB-popover-section-title {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #909090;
    margin-bottom: 2px;
    line-height: 16px;
}

.NB-media-settings-popover .NB-popover-section-description {
    font-size: 10px;
    color: #a0a0a0;
    line-height: 14px;
}

.NB-media-settings-popover .segmented-control {
    font-size: 11px;
}

.NB-media-settings-popover .segmented-control li {
    padding: 3px 8px;
    font-size: 11px;
}

/* ===================== */
/* = Add Feeds/Folders = */
/* ===================== */

.NB-modal.NB-add .NB-fieldset,
.NB-modal.NB-add h5 {
    overflow: visible;
}

.NB-modal.NB-add .NB-fieldset-fields {
    margin: 14px 0 0 16px;
}

.NB-add-popover-container.popover {
    background: linear-gradient(160deg, #FAFBF9 0%, #F0F1ED 100%);
    border-radius: 10px;
}

.NB-add-popover-container.popover.top-left .arrow {
    left: 12px;
}

.NB-add-popover {
    padding: 18px 18px;
}

.NB-add-form {
    position: relative;
}

.NB-add-form .NB-module-content-header {
    margin-top: 0;
}

/* Header */
.NB-add-header {
    display: flex;
    align-items: center;
    gap: 9px;
    margin: 0 0 16px;
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.NB-add-header-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    background: #5C89C9;
    color: #FFF;
    border-radius: 6px;
    font-size: 18px;
    font-weight: 700;
    line-height: 1;
}


/* URL input row */
.NB-add-input-row {
    display: flex;
    align-items: stretch;
    gap: 0;
    margin: 0 0 14px;
    border: 1px solid #C8C8C8;
    border-radius: 8px;
    overflow: hidden;
    background: #FFF;
    transition: border-color 0.15s ease;
}

.NB-add-input-row:focus-within {
    border-color: #5C89C9;
    box-shadow: 0 0 0 2px rgba(92, 137, 201, 0.15);
}

.NB-add-input-row .NB-add-url {
    flex: 1;
    min-width: 0;
    border: none;
    outline: none;
    padding: 12px 14px;
    font-size: 15px;
    background: transparent;
    color: #333;
    box-sizing: border-box;
    margin: 0;
}

.NB-add-input-row .NB-add-url::placeholder {
    color: #A0A0A0;
}

.NB-add-input-row .NB-add-url-submit {
    flex-shrink: 0;
    margin: 0;
    padding: 0 22px;
    background: #5C89C9;
    color: #FFF;
    border: none;
    border-radius: 0 7px 7px 0;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s ease;
    display: flex;
    align-items: center;
}

.NB-add-input-row .NB-add-url-submit:hover {
    background: #4A73B0;
}

.NB-add-input-row .NB-add-url-submit.NB-disabled {
    opacity: 0.6;
    cursor: default;
}

.NB-add-input-row .NB-loading {
    width: 0;
    height: 16px;
    flex-shrink: 0;
    align-self: center;
    overflow: hidden;
    transition: width 0.15s ease, margin 0.15s ease;
}

.NB-add-input-row .NB-loading.NB-active {
    width: 16px;
    margin-right: 8px;
}

/* Folder selector row (inside header) */
.NB-add-folder-row {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-left: auto;
}

.NB-add-folder-label {
    font-size: 12px;
    color: #909090;
    font-weight: 500;
}

.NB-add-folder-row .NB-folders {
    font-size: 12px;
    margin: 0;
    padding: 3px 4px;
    border: 1px solid #D8D8D8;
    border-radius: 4px;
    background: #FAFAFA;
    color: #555;
    outline: none;
    max-width: 200px;
}

.NB-add-folder-row .NB-folders:focus {
    border-color: #5C89C9;
}

.NB-add-folder-row .NB-add-folder-icon {
    width: 20px;
    height: 20px;
    background: transparent url('/media/embed/icons/circular/g_icn_folder_add.png') no-repeat 0 0;
    background-size: 20px;
    cursor: pointer;
    flex-shrink: 0;
    opacity: 0.6;
    transition: opacity 0.15s ease;
}

.NB-add-folder-row .NB-add-folder-icon:hover {
    background: transparent url('/media/embed/icons/circular/g_icn_folder_add_dark.png') no-repeat 0 0;
    background-size: 20px;
    opacity: 1;
}

/* New folder section */
.NB-add-form .NB-add-folder {
    overflow: hidden;
}

.NB-add-folder-input-row {
    display: flex;
    align-items: stretch;
    gap: 0;
    margin: 6px 0 4px;
    border: 1px solid #C8C8C8;
    border-radius: 8px;
    overflow: hidden;
    background: #FFF;
    transition: border-color 0.15s ease;
}

.NB-add-folder-input-row:focus-within {
    border-color: #5C89C9;
    box-shadow: 0 0 0 2px rgba(92, 137, 201, 0.15);
}

.NB-add-folder-input-row .NB-add-folder-input {
    flex: 1;
    min-width: 0;
    border: none;
    outline: none;
    padding: 10px 14px;
    font-size: 14px;
    background: transparent;
    color: #333;
    box-sizing: border-box;
    margin: 0;
}

.NB-add-folder-input-row .NB-add-folder-input::placeholder {
    color: #A0A0A0;
}

.NB-add-folder-input-row .NB-add-folder-submit {
    flex-shrink: 0;
    margin: 0;
    padding: 0 20px;
    background: #6EA66E;
    color: #FFF;
    border: none;
    border-radius: 0 7px 7px 0;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s ease;
    display: flex;
    align-items: center;
}

.NB-add-folder-input-row .NB-add-folder-submit:hover {
    background: #5C8F5C;
}

.NB-add-folder-input-row .NB-loading {
    width: 0;
    height: 16px;
    flex-shrink: 0;
    align-self: center;
    overflow: hidden;
    transition: width 0.15s ease, margin 0.15s ease;
}

.NB-add-folder-input-row .NB-loading.NB-active {
    width: 16px;
    margin-right: 8px;
}

/* Error */
.NB-add-form .NB-error {
    font-size: 12px;
    clear: both;
    color: darkred;
    line-height: 16px;
    font-weight: bold;
    display: none;
}

.NB-add-form .NB-error-message {
    padding: 6px 0 0;
}

.NB-add .NB-add-danger {
    display: block;
    clear: both;
    font-size: 12px;
    color: #535558;
    font-weight: bold;
    margin: 8px 0 12px;
    float: left;
}

.NB-add .NB-add-danger img {
    vertical-align: bottom;
    padding: 0 4px 0 0;
}

/* Discover Section in Add Popover */
.NB-add-discover-section {
    margin-top: 22px;
    padding-top: 0;
}

.NB-add-discover-divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 0 -18px 18px;
}

.NB-add-discover-divider::before,
.NB-add-discover-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid #E0E0E0;
}

.NB-add-discover-divider span {
    padding: 0 14px;
    font-size: 11px;
    color: #808080;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.NB-add-discover-sources {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
    margin-bottom: 14px;
}

.NB-add-discover-source {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 14px 8px;
    background: linear-gradient(135deg, #FAFAFA 0%, #F0F0F0 100%);
    border: 1px solid #E0E0E0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.15s ease;
}

.NB-add-discover-source:hover {
    background: linear-gradient(135deg, #FFFFFF 0%, #F5F5F5 100%);
    border-color: #5C89C9;
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(92, 137, 201, 0.2);
}

.NB-add-discover-source img {
    width: 24px;
    height: 24px;
    margin-bottom: 5px;
}

.NB-add-discover-source img.NB-mono {
    filter: brightness(0.3);
}

.NB-add-discover-source span {
    font-size: 12px;
    color: #606060;
    font-weight: 500;
    text-align: center;
    line-height: 1.2;
}

/* Google News smaller text to fit in grid cell */
.NB-add-discover-source[data-tab="google-news"] span {
    font-size: 10px;
    white-space: nowrap;
}

.NB-add-discover-buttons {
    display: flex;
    gap: 12px;
}

.NB-add-discover-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    flex: 1;
    padding: 11px 14px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.15s ease;
    border: 1px solid;
    background: transparent;
}

.NB-add-discover-btn img {
    width: 15px;
    height: 15px;
}

.NB-add-discover-btn span {
    font-size: 13px;
    font-weight: 600;
}

.NB-add-discover-trending {
    border-color: #9BB8D8;
    background: #F2F6FB;
}

.NB-add-discover-trending img {
    filter: brightness(0) saturate(100%) invert(38%) sepia(30%) saturate(600%) hue-rotate(180deg);
}

.NB-add-discover-trending span {
    color: #4A73B0;
}

.NB-add-discover-trending:hover {
    background: #E4EDF7;
    border-color: #5C89C9;
}

.NB-add-discover-popular {
    position: relative;
    border-color: #E0B896;
    background: #FDF6F0;
}

.NB-add-discover-popular > img {
    filter: brightness(0) saturate(100%) invert(48%) sepia(60%) saturate(500%) hue-rotate(350deg);
}

.NB-add-discover-popular > span {
    color: #C06520;
}

.NB-add-discover-popular:hover {
    background: #F8ECE0;
    border-color: #D4742B;
}

.NB-add-discover-popular-arrow {
    font-size: 10px;
    color: #C06520;
    margin-left: -2px;
}

/* Flyout wrapper with invisible bridge to prevent mouse-leave gap */
.NB-add-discover-popular-flyout {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    width: 280px;
    padding-bottom: 8px;
    z-index: 100;
}

.NB-add-discover-popular-flyout-inner {
    background: #FFFFFF;
    border: 1px solid #D0D0D0;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12), 0 2px 8px rgba(0, 0, 0, 0.06);
    max-height: 520px;
    overflow-y: auto;
    padding: 6px 0;
}

.NB-add-discover-popular-category {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 9px 16px;
    margin: 0 6px;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.1s ease;
}

.NB-add-discover-popular-category:hover {
    background: #F0F4FA;
}

.NB-add-discover-popular-category-name {
    font-size: 13px;
    font-weight: 500;
    color: #333;
    text-transform: capitalize;
}

.NB-add-discover-popular-category-count {
    font-size: 11px;
    color: #A0A0A0;
    font-weight: 500;
    white-space: nowrap;
    margin-left: 12px;
}

.NB-add-discover-popular-category.NB-category-all .NB-add-discover-popular-category-name {
    font-weight: 600;
    color: #5C89C9;
}

.NB-add-discover-popular-separator {
    height: 1px;
    background: #E8E8E8;
    margin: 4px 16px;
}

.NB-add-discover-popular-loading {
    padding: 16px;
    text-align: center;
    font-size: 12px;
    color: #999;
}

.NB-add-url.NB-autocomplete-loading {
    background: transparent url('/media/embed/reader/ring_spinner.svg') no-repeat right 8px center !important;
    background-size: 16px !important;
    padding-right: 32px !important;
}

.chzn-drop {
    text-shadow: none;
}

/* Autocomplete dropdown */
.ui-menu.ui-autocomplete.ui-widget-content {
    padding: 4px 0;
    margin: 0;
    border: 1px solid #D0D0D0;
    border-radius: 10px;
    background: #FFFFFF;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12), 0 2px 8px rgba(0, 0, 0, 0.06);
    max-height: calc(100vh - 100px);
    overflow-y: auto;
}

.ui-menu.ui-autocomplete li {
    display: block;
    padding: 0;
    list-style: none;
    margin: 0;
    width: 100%;
    box-sizing: border-box;
}

.ui-menu.ui-autocomplete li a,
.ui-menu.ui-autocomplete li a.NB-autocomplete-item {
    display: flex !important;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 12px 12px;
    width: 100%;
    box-sizing: border-box;
    cursor: pointer;
}

.ui-menu.ui-autocomplete li a.ui-state-hover,
.ui-menu.ui-autocomplete li a.ui-state-active,
.ui-menu.ui-autocomplete li a.ui-state-focus {
    font-weight: normal;
    background: #F0F4FA;
    border: none;
    margin: 0;
}

/* Favicon */
.ui-menu.ui-autocomplete li a .NB-add-autocomplete-favicon {
    display: block;
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    margin-top: 1px;
}

/* Content area */
.ui-menu.ui-autocomplete .NB-autocomplete-content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.ui-menu.ui-autocomplete .NB-autocomplete-top-row {
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.ui-menu.ui-autocomplete .NB-autocomplete-bottom-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Title */
.ui-menu.ui-autocomplete .NB-add-autocomplete-title {
    flex: 1;
    min-width: 0;
    color: #1A1A1A;
    font-weight: 600;
    font-size: 13px;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Subscribers */
.ui-menu.ui-autocomplete .NB-add-autocomplete-subscribers {
    flex-shrink: 0;
    font-size: 11px;
    color: #909090;
    font-weight: 500;
    white-space: nowrap;
}

/* Address */
.ui-menu.ui-autocomplete .NB-add-autocomplete-address {
    flex: 1;
    min-width: 0;
    color: #808080;
    font-size: 11px;
    font-weight: 400;
    line-height: 1.2;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Freshness indicator in autocomplete */
.NB-autocomplete-freshness {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
}

.NB-autocomplete-freshness .NB-freshness-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    flex-shrink: 0;
}

.NB-autocomplete-freshness .NB-freshness-label {
    font-size: 10px;
    font-weight: 500;
    white-space: nowrap;
    line-height: 1;
}

.NB-autocomplete-freshness.NB-freshness-active .NB-freshness-dot {
    background: #4CAF50;
}
.NB-autocomplete-freshness.NB-freshness-active .NB-freshness-label {
    color: #4CAF50;
}

.NB-autocomplete-freshness.NB-freshness-stale .NB-freshness-dot {
    background: #F9A825;
}
.NB-autocomplete-freshness.NB-freshness-stale .NB-freshness-label {
    color: #B8860B;
}

.NB-autocomplete-freshness.NB-freshness-none .NB-freshness-dot {
    background: #C0C0C0;
}
.NB-autocomplete-freshness.NB-freshness-none .NB-freshness-label {
    color: #B0B0B0;
}

/* ================ */
/* = Manage Feeds = */
/* ================ */

.NB-manage .NB-manage-field {}

.NB-manage .NB-manage-container {
    height: 375px;
    overflow-y: auto;
    padding: 0 18px 18px 0;
}

.NB-manage .NB-classifier-title-like {
    color: #3D931B;
    padding-left: 20px;
    background: transparent url('/media/embed/icons/nouns/thumbs-up.svg') no-repeat 0 0;

}

.NB-manage .NB-classifier-title-dislike {
    color: #932C15;
    padding-left: 20px;
    background: transparent url('/media/embed/icons/nouns/thumbs-down.svg') no-repeat 0 0;
}

.NB-manage .NB-manage-classifier {
    overflow: hidden;
}

.NB-manage .NB-manage-classifier .NB-classifiers {
    clear: both;
}

.NB-manage .NB-classifier-empty {
    margin: 0 0 4px 12px;
    font-size: 12px;
    color: #A0A0A0;
}

.NB-manage .NB-classifier-empty .NB-like {
    width: 14px;
    height: 20px;
    margin: 0 2px;
    vertical-align: -6px;
    opacity: .4;
}

.NB-manage .NB-classifier-empty .NB-dislike {
    width: 14px;
    height: 20px;
    margin: 0 2px;
    vertical-align: -4px;
    opacity: .4;
}

.NB-manage .NB-manage-rename {
    margin: 0 0 12px 12px;
    display: none;
    /* Sorry, but this is not v1.0. Maybe next tuesday. No, next, next tuesday. */
}

.NB-manage .NB-manage-rename label {
    font-size: 14px;
    font-weight: bold;
}

.NB-manage .NB-manage-rename input {
    font-size: 14px;
    padding: 2px;
    margin: 0 4px;
    border: 1px solid #606060;
    width: 400px;
    -moz-box-shadow: 2px 2px 0 #D0D0D0;
    -webkit-box-shadow: 2px 2px 0 #D0D0D0;
    box-shadow: 2px 2px 0 #D0D0D0;
}

.NB-manage .NB-manage-delete {
    margin: 6px 0 4px;
    font-size: 12px;
}

.NB-manage .NB-manage-delete .NB-delete {
    text-decoration: underline;
    color: #AF1313;
}


.NB-manage .NB-manage-delete .NB-delete-confirm {
    font-weight: bold;
    text-decoration: underline;
    color: #DB1818;
    margin: 0 12px 0 24px;
    display: none;
}

.NB-manage .NB-manage-delete .NB-delete-cancel {
    margin: 0;
    text-decoration: underline;
    color: #A0A0A0;
    display: none;
}

/* =================== */
/* = Mark Read Modal = */
/* =================== */


.NB-modal-markread .NB-modal-title .NB-icon {
    background: transparent url('/media/embed/icons/circular/g_modal_markread.png');
    background-size: 28px;
}

.NB-markread-slider-container {
    margin: 4px 0 4px 0;
    padding: 10px 12px;
    background: rgba(0, 0, 0, 0.03);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.NB-markread-slider {
    width: 100%;
    height: 8px;
    -webkit-appearance: none;
    appearance: none;
    border-radius: 4px;
    outline: none;
    background: linear-gradient(to right, #4a90d9 0%, #e0e0e0 100%);
    cursor: pointer;
    margin: 4px 0;
}

.NB-markread-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    background: #4a90d9;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    margin-top: 0;
}

.NB-markread-slider::-webkit-slider-thumb:hover {
    transform: scale(1.1);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.NB-markread-slider::-moz-range-thumb {
    width: 18px;
    height: 18px;
    background: #4a90d9;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.NB-markread-slider::-moz-range-track {
    height: 8px;
    border-radius: 4px;
}

.NB-markread-slider-value {
    font-size: 12px;
    color: #555;
    text-align: center;
    line-height: 1.4;
}

.NB-markread-slider-value b {
    color: #4a90d9;
    font-weight: 600;
}

.NB-markread-submit-wrapper {
    display: inline-flex;
    align-items: center;
    gap: 0;
    position: relative;
}

.NB-markread-shortcut-hint {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 10px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.55);
    pointer-events: none;
    letter-spacing: 0.5px;
}

.NB-markread-submit-wrapper .NB-markread-submit {
    padding-right: 42px;
}

/* =================== */
/* = Classifier Tags = */
/* =================== */

.NB-classifiers {
    clear: both;
    overflow: hidden;
}


.NB-classifiers .NB-classifier ::-moz-selection {
    background: transparent;
}

.NB-classifiers .NB-classifier ::selection {
    background: transparent;
}

.NB-classifiers .NB-classifier {
    white-space: nowrap;
    float: left;
    display: block;
    margin: 2px 6px 6px 0;
    cursor: pointer;
    padding: 0 30px 0 26px;
    font-size: 12px;
    background-color: #D8DEE2;
    position: relative;
    border: 1px solid transparent;
}

.NB-classifiers .NB-classifier input[type=checkbox] {
    margin: 3px 6px 2px 4px;
    cursor: pointer;
    float: left;
}

.NB-classifiers .NB-classifier label {
    cursor: pointer;
    color: black;
    float: left;
    display: block;
    padding: 2px 0;
}

.NB-classifiers .NB-classifier label b {
    color: rgba(0, 0, 0, .4);
    text-shadow: none;
    font-weight: normal;
}

.NB-classifiers .NB-classifier label span {
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.5);
}

.NB-classifiers .NB-classifier.NB-classifier-facet-disabled {
    background-color: white;
}

.NB-classifiers .NB-classifier input {
    display: none;
}

.NB-classifiers .NB-classifier .feed_favicon {
    margin-top: -2px;
    width: 16px;
    height: 16px;
}

.NB-classifiers .NB-classifier .NB-classifier-icon-like {
    width: 16px;
    height: 16px;
    background: transparent url('/media/embed/icons/nouns/thumbs-up.svg') no-repeat 0 0;
    background-size: 14px;
    position: absolute;
    left: 6px;
    top: 2px;
    opacity: .2;
}

.NB-classifiers .NB-classifier .NB-classifier-icon-dislike {
    width: 27px;
    height: 22px;
    position: absolute;
    top: -1px;
    right: -1px;
    background: transparent url('/media/embed/icons/nouns/thumbs-down.svg') no-repeat 4px 3px;
    background-size: 14px;
    opacity: .2;
}

.NB-classifiers .NB-classifier .NB-classifier-icon-dislike-inner {
    margin: 4px 4px 0 0;
    width: 18px;
    height: 13px;
    border-left: 1px solid #EBEBE1;
}

.NB-classifiers .NB-classifier.NB-classifier-like {
    background-color: #34912E;
    border: 1px solid #202020;
    -webkit-box-shadow: 1px 1px 1px #BDC0D7;
    -moz-box-shadow: 1px 1px 1px #BDC0D7;
    box-shadow: 1px 1px 1px #BDC0D7;
}

.NB-classifiers .NB-classifier.NB-classifier-dislike {
    background-color: #A90103;
    border: 1px solid #000;
    -webkit-box-shadow: 1px 1px 1px #BDC0D7;
    -moz-box-shadow: 1px 1px 1px #BDC0D7;
    box-shadow: 1px 1px 1px #BDC0D7;
}

.NB-classifiers .NB-classifier.NB-classifier-hover-like {
    background-color: #54A54E;
}

.NB-classifiers .NB-classifier.NB-classifier-like.NB-classifier-hover-like {
    background-color: #34912E;
}

.NB-classifiers .NB-classifier.NB-classifier-dislike.NB-classifier-hover-like {
    border: 1px solid transparent;
}

.NB-classifiers .NB-classifier.NB-classifier-like label b,
.NB-classifiers .NB-classifier.NB-classifier-hover-like label b {
    color: white;
}

.NB-classifiers .NB-classifier.NB-classifier-like label span,
.NB-classifiers .NB-classifier.NB-classifier-hover-like label span {
    color: white;
    text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.5);
}

.NB-classifiers .NB-classifier.NB-classifier-like .NB-classifier-icon-dislike,
.NB-classifiers .NB-classifier.NB-classifier-hover-like .NB-classifier-icon-dislike {
    opacity: .1;
}

.NB-classifiers .NB-classifier.NB-classifier-dislike .NB-classifier-icon-dislike,
.NB-classifiers .NB-classifier.NB-classifier-hover-dislike .NB-classifier-icon-dislike {
    opacity: 1;
}

.NB-classifiers .NB-classifier.NB-classifier-dislike .NB-classifier-icon-like,
.NB-classifiers .NB-classifier.NB-classifier-hover-dislike .NB-classifier-icon-like {
    opacity: .1;
}

.NB-classifiers .NB-classifier.NB-classifier-dislike.NB-classifier-hover-like .NB-classifier-icon-like {
    opacity: 1;
}

.NB-classifiers .NB-classifier.NB-classifier-dislike.NB-classifier-hover-like .NB-classifier-icon-dislike {
    opacity: .1;
}

.NB-classifiers .NB-classifier.NB-classifier-hover-like.NB-classifier-hover-dislike .NB-classifier-icon-dislike {
    opacity: 1;
}

.NB-classifiers .NB-classifier.NB-classifier-hover-like.NB-classifier-hover-dislike .NB-classifier-icon-like {
    opacity: .1;
}

.NB-classifiers .NB-classifier.NB-classifier-like .NB-classifier-icon-like,
.NB-classifiers .NB-classifier.NB-classifier-hover-like .NB-classifier-icon-like,
.NB-classifiers .NB-classifier.NB-classifier-dislike .NB-classifier-icon-dislike,
.NB-classifiers .NB-classifier.NB-classifier-hover-dislike .NB-classifier-icon-dislike {
    opacity: 1;
}

.NB-classifiers .NB-classifier.NB-classifier-hover-dislike {
    background-color: #C92123;
}

.NB-classifiers .NB-classifier.NB-classifier-like.NB-classifier-hover-dislike {
    border: 1px solid transparent;
}

.NB-classifiers .NB-classifier.NB-classifier-like.NB-classifier-hover-like.NB-classifier-hover-dislike {
    background-color: #C92123;
}

.NB-classifiers .NB-classifier.NB-classifier-dislike.NB-classifier-hover-like.NB-classifier-hover-dislike {
    border: 1px solid #000;
    background-color: #A90103;
}

.NB-classifiers .NB-classifier.NB-classifier-dislike .NB-classifier-icon-dislike-inner,
.NB-classifiers .NB-classifier.NB-classifier-hover-dislike .NB-classifier-icon-dislike-inner {
    border-left-color: #C17C52;
}

.NB-classifiers .NB-classifier.NB-classifier-dislike label b,
.NB-classifiers .NB-classifier.NB-classifier-hover-dislike label b {
    color: white;
}

.NB-classifiers .NB-classifier.NB-classifier-dislike label span,
.NB-classifiers .NB-classifier.NB-classifier-hover-dislike label span {
    color: white;
    text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.5);
}

/* ================================ */
/* = Classifier Text Premium Only = */
/* ================================ */

.NB-classifier-text-premium-notice {
    clear: both;
    width: 80%;
    margin: 12px auto 0;
    padding: 8px 12px;
    background-color: #FFF9E6;
    border: 1px solid #FFD700;
    border-radius: 4px;
}

.NB-classifier-text-premium-notice-text {
    font-size: 12px;
    color: #666;
    line-height: 1.4;
    text-align: center;
}

.NB-classifier-text-premium-notice-text a {
    color: #0066CC;
    text-decoration: none;
    font-weight: bold;
}

.NB-classifier-text-premium-notice-text a:hover {
    text-decoration: underline;
}

/* ====================================== */
/* = Briefing Classifier Pills          = */
/* ====================================== */

/* reader.css: Classifier pills in briefing summary (non-interactive, inline) */
.NB-briefing-classifier {
    display: inline-flex;
    align-items: center;
    float: none;
    margin: 0 4px 0 0;
    padding: 0 8px 0 20px;
    vertical-align: middle;
    cursor: default;
    font-size: 10px;
    background-color: #34912E;
    border: 1px solid #202020;
    border-radius: 14px;
    box-shadow: 1px 1px 1px #BDC0D7;
    position: relative;
}

/* reader.css: Classifier icon is now an <img> element with inline styles */
.NB-briefing-classifier .NB-classifier-icon-like {
    width: 12px;
    height: 12px;
    opacity: 1;
}

.NB-briefing-classifier .NB-classifier-icon-dislike {
    display: none;
}

.NB-briefing-classifier label {
    cursor: default;
    color: white;
    padding: 1px 0;
}

.NB-briefing-classifier label b {
    color: rgba(255, 255, 255, 0.7);
    font-weight: normal;
}

.NB-briefing-classifier label span {
    color: white;
    text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.5);
}

/* =============================== */
/* = Regex Classifier Input      = */
/* =============================== */

.NB-classifier-regex-container {
    margin: 12px 0;
    padding: 10px;
    background-color: rgba(100, 130, 180, 0.08);
    border-radius: 4px;
    border: 1px solid rgba(100, 130, 180, 0.15);
    clear: both;
}

.NB-classifier-regex-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.NB-classifier-regex-toggle {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 12px;
    color: #606060;
}

.NB-classifier-regex-toggle input {
    margin-right: 6px;
}

.NB-classifier-regex-pro-badge {
    font-size: 9px;
    text-transform: uppercase;
    background-color: #7B68EE;
    color: white;
    padding: 2px 6px;
    border-radius: 3px;
    font-weight: bold;
}

.NB-classifier-regex-input-wrapper {
    transition: opacity 0.2s ease;
}

.NB-classifier-regex-input-wrapper.NB-hidden {
    display: none;
}

.NB-classifier-regex-input {
    width: 100%;
    padding: 8px;
    font-family: 'Monaco', 'Menlo', 'Consolas', monospace;
    font-size: 12px;
    border: 1px solid #ccc;
    border-radius: 3px;
    box-sizing: border-box;
}

.NB-classifier-regex-input:focus {
    border-color: #4A90D9;
    outline: none;
    box-shadow: 0 0 3px rgba(74, 144, 217, 0.3);
}

.NB-classifier-regex-validation {
    font-size: 11px;
    margin: 4px 0;
    min-height: 16px;
}

.NB-classifier-regex-validation.NB-valid {
    color: #3D931B;
}

.NB-classifier-regex-validation.NB-error {
    color: #932C15;
}

.NB-classifier-regex-preview-container {
    margin-top: 8px;
    padding: 8px;
    background-color: rgba(255, 255, 255, 0.8);
    border: 1px solid #e0e0e0;
    border-radius: 3px;
    max-height: 120px;
    overflow-y: auto;
}

.NB-classifier-regex-preview-header {
    font-size: 10px;
    text-transform: uppercase;
    color: #808080;
    margin-bottom: 6px;
}

.NB-classifier-regex-preview {
    font-size: 12px;
    line-height: 1.5;
    color: #404040;
}

.NB-classifier-regex-preview .NB-regex-match {
    background-color: #FFEB3B;
    padding: 1px 2px;
    border-radius: 2px;
}

.NB-classifier-regex-preview .NB-no-matches {
    color: #999;
    font-style: italic;
}

/* Regex classifier pill styling */
.NB-classifiers .NB-classifier.NB-classifier-regex {
    background-color: #E8EAF6;
    border: 1px dashed #7986CB;
}

.NB-classifiers .NB-classifier.NB-classifier-regex.NB-classifier-hover-like {
    background-color: #C5CAE9;
    border: 1px dashed #5C6BC0;
}

.NB-classifiers .NB-classifier.NB-classifier-regex.NB-classifier-hover-like label b,
.NB-classifiers .NB-classifier.NB-classifier-regex.NB-classifier-hover-like label span {
    color: #1A237E;
    text-shadow: none;
}

.NB-classifiers .NB-classifier.NB-classifier-regex.NB-classifier-hover-dislike {
    background-color: #FFCDD2;
    border: 1px dashed #E57373;
}

.NB-classifiers .NB-classifier.NB-classifier-regex.NB-classifier-hover-dislike label b,
.NB-classifiers .NB-classifier.NB-classifier-regex.NB-classifier-hover-dislike label span {
    color: #B71C1C;
    text-shadow: none;
}

.NB-classifiers .NB-classifier.NB-classifier-regex.NB-classifier-like {
    background-color: #2E7D32;
    border: 1px solid #1B5E20;
}

.NB-classifiers .NB-classifier.NB-classifier-regex.NB-classifier-like.NB-classifier-hover-like {
    background-color: #1B5E20;
    border: 1px solid #0D3D12;
}

.NB-classifiers .NB-classifier.NB-classifier-regex.NB-classifier-like.NB-classifier-hover-like label b,
.NB-classifiers .NB-classifier.NB-classifier-regex.NB-classifier-like.NB-classifier-hover-like label span {
    color: white;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
}

.NB-classifiers .NB-classifier.NB-classifier-regex.NB-classifier-like.NB-classifier-hover-dislike {
    background-color: #C62828;
    border: 1px solid #B71C1C;
}

.NB-classifiers .NB-classifier.NB-classifier-regex.NB-classifier-like.NB-classifier-hover-dislike label b,
.NB-classifiers .NB-classifier.NB-classifier-regex.NB-classifier-like.NB-classifier-hover-dislike label span {
    color: white;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
}

.NB-classifiers .NB-classifier.NB-classifier-regex.NB-classifier-dislike {
    background-color: #C62828;
    border: 1px solid #B71C1C;
}

.NB-classifiers .NB-classifier.NB-classifier-regex.NB-classifier-dislike.NB-classifier-hover-dislike {
    background-color: #B71C1C;
    border: 1px solid #8B0000;
}

.NB-classifiers .NB-classifier.NB-classifier-regex.NB-classifier-dislike.NB-classifier-hover-dislike label b,
.NB-classifiers .NB-classifier.NB-classifier-regex.NB-classifier-dislike.NB-classifier-hover-dislike label span {
    color: white;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
}

.NB-classifiers .NB-classifier.NB-classifier-regex.NB-classifier-dislike.NB-classifier-hover-like {
    background-color: #2E7D32;
    border: 1px solid #1B5E20;
}

.NB-classifiers .NB-classifier.NB-classifier-regex.NB-classifier-dislike.NB-classifier-hover-like label b,
.NB-classifiers .NB-classifier.NB-classifier-regex.NB-classifier-dislike.NB-classifier-hover-like label span {
    color: white;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
}

/* Regex badge inside classifier */
.NB-classifier-regex-badge {
    display: inline-block;
    background: #7B68EE;
    color: white;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 8px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 1px 4px;
    border-radius: 3px;
    margin-right: 4px;
    vertical-align: middle;
}

.NB-classifier-like .NB-classifier-regex-badge {
    background: rgba(255, 255, 255, 0.3);
}

.NB-classifier-dislike .NB-classifier-regex-badge {
    background: rgba(255, 255, 255, 0.3);
}

/* PRO notice for regex */
.NB-classifier-regex-pro-notice {
    margin-top: 8px;
    padding: 8px 12px;
    background-color: #FFF9E6;
    border: 1px solid #FFD700;
    border-radius: 4px;
    font-size: 11px;
    color: #666;
    line-height: 1.4;
}

.NB-classifier-regex-pro-notice a {
    color: #7B68EE;
    font-weight: bold;
    text-decoration: none;
}

.NB-classifier-regex-pro-notice a:hover {
    text-decoration: underline;
}

/* Type badge: scope toggle icons + type label inside classifier pill */
.NB-classifier-type-badge {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 8px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 2px 5px 2px 2px;
    border-radius: 3px;
    margin-right: 4px;
    vertical-align: middle;
    background: rgba(128, 128, 128, 0.15);
    color: #777;
    line-height: 1;
}

/* Feed-type classifier badge (Site) — no scope controls */
.NB-classifier-type-badge.NB-classifier-type-feed {
    cursor: default;
    padding-left: 3px;
}

/* Scope toggle group: three icons side by side */
.NB-classifier-scope-toggles {
    display: inline-flex;
    align-items: center;
    gap: 1px;
}

/* Individual scope toggle icon */
.NB-scope-toggle {
    display: inline-flex;
    width: 11px;
    height: 11px;
    cursor: pointer;
    opacity: 0.25;
    transition: opacity 0.15s, transform 0.15s, color 0.15s;
    color: inherit;
    flex-shrink: 0;
    border-radius: 2px;
    padding: 1px;
    position: relative;
}

.NB-scope-toggle svg {
    width: 100%;
    height: 100%;
    display: block;
}

.NB-scope-toggle:hover {
    opacity: 0.7;
}

/* Instant tooltip for scope toggles (appended to body) */
.NB-scope-tooltip {
    position: fixed;
    z-index: 100000;
    background: rgba(0, 0, 0, 0.85);
    color: #fff;
    font-size: 11px;
    font-weight: 500;
    white-space: nowrap;
    padding: 4px 8px;
    border-radius: 4px;
    pointer-events: none;
    line-height: 1.3;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* Active scope toggle — fully visible with scope color */
.NB-scope-toggle.NB-active {
    opacity: 1;
}

.NB-scope-toggle-feed.NB-active {
    color: #777;
}

.NB-scope-toggle-folder.NB-active {
    color: #3B82F6;
}

.NB-scope-toggle-global.NB-active {
    color: #8B5CF6;
}

.NB-classifier-type-label {
    line-height: 1;
}

/* Liked classifier — badge adapts to green background */
.NB-classifier-like .NB-classifier-type-badge {
    background: rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.9);
}

.NB-classifier-like .NB-scope-toggle {
    opacity: 0.3;
    color: rgba(255, 255, 255, 0.6);
}

.NB-classifier-like .NB-scope-toggle:hover {
    opacity: 0.6;
}

.NB-classifier-like .NB-scope-toggle.NB-active {
    opacity: 1;
}

.NB-classifier-like .NB-scope-toggle-feed.NB-active {
    color: rgba(255, 255, 255, 0.9);
}

.NB-classifier-like .NB-scope-toggle-folder.NB-active {
    color: #93c5fd;
}

.NB-classifier-like .NB-scope-toggle-global.NB-active {
    color: #c4b5fd;
}

/* Disliked classifier — badge adapts to red background */
.NB-classifier-dislike .NB-classifier-type-badge {
    background: rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.9);
}

.NB-classifier-dislike .NB-scope-toggle {
    opacity: 0.3;
    color: rgba(255, 255, 255, 0.6);
}

.NB-classifier-dislike .NB-scope-toggle:hover {
    opacity: 0.6;
}

.NB-classifier-dislike .NB-scope-toggle.NB-active {
    opacity: 1;
}

.NB-classifier-dislike .NB-scope-toggle-feed.NB-active {
    color: rgba(255, 255, 255, 0.9);
}

.NB-classifier-dislike .NB-scope-toggle-folder.NB-active {
    color: #93c5fd;
}

.NB-classifier-dislike .NB-scope-toggle-global.NB-active {
    color: #c4b5fd;
}

/* Scope popover */
.NB-classifier-scope-popover {
    position: absolute;
    z-index: 1000;
    background: white;
    border: 1px solid #ddd;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    padding: 4px 0;
    min-width: 180px;
    font-size: 12px;
}

.NB-scope-option {
    display: flex;
    align-items: center;
    padding: 6px 12px;
    cursor: pointer;
    color: #333;
    gap: 8px;
}

.NB-scope-option:hover {
    background: #f5f5f5;
}

.NB-scope-option.NB-active {
    background: #EEF2FF;
    color: #4338CA;
    font-weight: 600;
}

.NB-scope-option .NB-scope-icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.NB-scope-option .NB-scope-icon svg {
    width: 16px;
    height: 16px;
    display: block;
}

.NB-scope-option .NB-scope-label {
    flex: 1;
}

.NB-scope-option .NB-scope-lock {
    color: #999;
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

.NB-scope-option .NB-scope-lock svg {
    width: 14px;
    height: 14px;
    display: block;
}

.NB-scope-upgrade-nudge {
    padding: 6px 12px;
    border-top: 1px solid #eee;
    font-size: 11px;
    color: #666;
}

.NB-scope-upgrade-nudge a {
    color: #8B5CF6;
    font-weight: bold;
    text-decoration: none;
}

.NB-scope-upgrade-nudge a:hover {
    text-decoration: underline;
}

/* ================================== */
/* = Compact Classifier Dialog      = */
/* ================================== */

/* Reduced section spacing */
.NB-modal-classifiers .NB-modal-field {
    margin-bottom: 8px;
}

/* Section headers - Title Case */
.NB-modal-classifiers h5 {
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0;
    margin: 0 0 8px 0;
    color: #505050;
}

/* Content section help text */
.NB-classifier-content-section .NB-classifier-help-text {
    font-size: 12px;
    margin: 0 0 8px 0;
    padding: 6px 10px;
}

/* Compact stacked inputs */
.NB-classifier-content-inputs {
    margin-bottom: 8px;
}

.NB-classifier-content-inputs label {
    font-size: 10px;
    color: #888;
    margin-bottom: 2px;
    display: block;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.NB-classifier-content-inputs input {
    width: 100%;
    padding: 6px 8px;
    font-size: 12px;
    margin-bottom: 6px;
    border: 1px solid #ddd;
    border-radius: 3px;
    box-sizing: border-box;
}

.NB-classifier-content-inputs input:focus {
    border-color: #4A90D9;
    outline: none;
}

/* Content classifiers container */
.NB-classifier-content-classifiers {
    clear: both;
    overflow: hidden;
    margin-top: 24px;
}

/* Story-specific classifiers */
.NB-classifier-this-story {
    margin-bottom: 2px;
}

/* Feed items - subtle separator when both groups exist */
.NB-classifier-this-story+.NB-classifier-feed-items {
    padding-top: 4px;
    border-top: 1px dashed #ddd;
    margin-top: 4px;
}

.NB-classifier-this-story+.NB-classifier-feed-items::before {
    content: 'More from this site';
    display: block;
    font-size: 9px;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    margin-bottom: 12px;
}

/* Feed items container */
.NB-classifier-feed-items,
.NB-classifier-folder-items,
.NB-classifier-global-items {
    clear: both;
    overflow: hidden;
}

/* Folder items separator */
.NB-classifier-this-story+.NB-classifier-folder-items,
.NB-classifier-feed-items+.NB-classifier-folder-items {
    padding-top: 4px;
    border-top: 1px dashed #ddd;
    margin-top: 4px;
}

.NB-classifier-this-story+.NB-classifier-folder-items::before,
.NB-classifier-feed-items+.NB-classifier-folder-items::before {
    content: 'More from this folder';
    display: block;
    font-size: 9px;
    color: #3B82F6;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    margin-bottom: 12px;
}

/* Global items separator */
.NB-classifier-this-story+.NB-classifier-global-items,
.NB-classifier-feed-items+.NB-classifier-global-items,
.NB-classifier-folder-items+.NB-classifier-global-items {
    padding-top: 4px;
    border-top: 1px dashed #ddd;
    margin-top: 4px;
}

.NB-classifier-this-story+.NB-classifier-global-items::before,
.NB-classifier-feed-items+.NB-classifier-global-items::before,
.NB-classifier-folder-items+.NB-classifier-global-items::before {
    content: 'More from global filters';
    display: block;
    font-size: 9px;
    color: #8B5CF6;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    margin-bottom: 12px;
}

/* Premium notice */
.NB-modal-classifiers .NB-classifier-text-premium-notice {
    margin-top: 8px;
}

.NB-modal-classifiers .NB-classifier-text-premium-notice-text {
    font-size: 12px;
    padding: 6px 10px;
}

/* ================================ */
/* = Match Type Segmented Control = */
/* ================================ */

/* Input row - input and segmented control on same line */
.NB-classifier-input-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 6px;
}

.NB-modal-classifiers .NB-classifier-input-row input[type="text"] {
    margin-bottom: 0;
}

.NB-modal-field .NB-classifier-input-row .NB-classifier-exact-input,
.NB-modal-field .NB-classifier-input-row .NB-classifier-regex-input-inline {
    flex: 1;
    margin-bottom: 0;
    padding: 0 10px;
    height: 30px;
    box-sizing: border-box;
}

.NB-classifier-match-type-control {
    display: inline-flex;
    background: #e8e8e8;
    border-radius: 6px;
    padding: 2px;
    flex-shrink: 0;
    height: 30px;
    box-sizing: border-box;
    align-items: center;
}

.NB-classifier-match-type-control .NB-match-type-option {
    padding: 5px 14px;
    font-size: 12px;
    font-weight: 500;
    color: #666;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.15s ease;
    user-select: none;
}

.NB-classifier-match-type-control .NB-match-type-option:hover {
    color: #444;
}

.NB-classifier-match-type-control .NB-match-type-option.NB-active {
    background: white;
    color: #333;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
}

.NB-classifier-match-type-control .NB-match-type-option.NB-match-type-regex.NB-active {
    background: #7B68EE;
    color: white;
}

/* Help icon to left of input */
.NB-classifier-help-icon {
    font-size: 16px;
    color: #aaa;
    cursor: help;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 30px;
}

.NB-classifier-help-icon:hover {
    color: #666;
}

/* Info icon inside Regex button */
.NB-regex-info-icon {
    margin-left: 4px;
    font-size: 10px;
    opacity: 0.7;
    cursor: help;
}

.NB-regex-info-icon:hover {
    opacity: 1;
}

/* Regex popover */
.NB-classifier-regex-popover {
    display: none;
    position: absolute;
    z-index: 10000;
    background: linear-gradient(135deg, #f8f7ff 0%, #f0edff 100%);
    border: 1px solid #d8d4ff;
    border-radius: 6px;
    padding: 12px 14px;
    font-size: 11px;
    line-height: 1.5;
    max-height: 350px;
    overflow-y: auto;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    width: 520px;
}

.NB-classifier-regex-popover.NB-visible {
    display: block;
}

.NB-classifier-regex-popover-columns {
    display: flex;
    gap: 20px;
}

.NB-classifier-regex-popover-column {
    flex: 1;
    min-width: 0;
}

.NB-regex-tip-category {
    font-weight: 600;
    color: #7B68EE;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 8px 0 4px;
    padding-bottom: 2px;
    border-bottom: 1px solid rgba(123, 104, 238, 0.2);
}

.NB-regex-tip-category:first-child {
    margin-top: 0;
}

.NB-classifier-regex-popover-list {
    margin: 0;
    padding-left: 0;
    list-style: none;
}

.NB-classifier-regex-popover-list li {
    margin-bottom: 3px;
    color: #555;
    font-size: 10px;
    line-height: 1.4;
}

.NB-classifier-regex-popover-list code {
    background: rgba(123, 104, 238, 0.15);
    padding: 1px 4px;
    border-radius: 3px;
    font-family: 'Monaco', 'Menlo', 'Consolas', monospace;
    font-size: 9px;
    color: #5a4fcf;
    white-space: nowrap;
}

.NB-classifier-regex-popover-note {
    margin-top: 10px;
    padding-top: 8px;
    border-top: 1px solid rgba(123, 104, 238, 0.2);
    font-size: 10px;
    color: #777;
    font-style: italic;
}

/* Input row positioning for popover */
.NB-classifier-input-row {
    position: relative;
}

/* Unified text/title/url input styling */
.NB-classifier-text-input,
.NB-classifier-title-input,
.NB-classifier-url-input {
    flex: 1;
    height: 30px;
    padding: 0 8px;
    font-size: 12px;
    border: 1px solid #ddd;
    border-radius: 3px;
    box-sizing: border-box;
}

.NB-classifier-text-input:focus,
.NB-classifier-title-input:focus,
.NB-classifier-url-input:focus {
    border-color: #4A90D9;
    outline: none;
}

/* Regex mode styling for inputs */
.NB-classifier-input-regex-mode {
    font-family: 'Monaco', 'Menlo', 'Consolas', monospace;
    border: 1px solid #b8b0ff;
    background: #fdfcff;
}

.NB-classifier-input-regex-mode:focus {
    border-color: #7B68EE;
    box-shadow: 0 0 0 2px rgba(123, 104, 238, 0.2);
}

/* Unified validation div styling */
.NB-classifier-validation-inline {
    font-size: 11px;
    margin: 12px 0 12px 36px;
    min-height: 18px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.NB-classifier-validation-inline:empty {
    display: none;
    margin: 0;
}

/* Regex validation badges */
.NB-regex-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 10px;
    font-weight: 500;
}

.NB-regex-badge-valid {
    background: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #a5d6a7;
}

.NB-regex-badge-match {
    background: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #a5d6a7;
}

.NB-regex-badge-no-match {
    background: #f5f5f5;
    color: #757575;
    border: 1px solid #e0e0e0;
}

.NB-regex-badge-error {
    background: #ffebee;
    color: #c62828;
    border: 1px solid #ef9a9a;
}

/* Full content match warning */
.NB-regex-full-match-warning {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    margin-top: 8px;
    padding: 8px 10px;
    background: linear-gradient(135deg, #fff8e1 0%, #ffecb3 100%);
    border: 1px solid #ffcc02;
    border-radius: 6px;
    font-size: 11px;
    line-height: 1.4;
}

.NB-regex-warning-icon {
    flex-shrink: 0;
    font-size: 14px;
    color: #f57c00;
}

.NB-regex-warning-text {
    color: #5d4037;
}

/* Section header with inline notices */
h5.NB-classifier-section-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.NB-classifier-header-notices {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
    font-size: 10px;
    font-weight: normal;
    text-align: right;
}

/* Archive notice - always visible for non-archive users */
.NB-classifier-archive-notice,
.NB-classifier-pro-notice,
.NB-classifier-scope-notice {
    color: #807060;
    white-space: nowrap;
}

.NB-classifier-archive-notice a,
.NB-classifier-pro-notice a,
.NB-classifier-scope-notice a {
    color: #d97706;
    font-weight: 600;
    text-decoration: none;
}

.NB-classifier-archive-notice a:hover,
.NB-classifier-pro-notice a:hover,
.NB-classifier-scope-notice a:hover {
    text-decoration: underline;
}

/* Pro/Regex notice - hidden by default, shown when regex selected */
.NB-classifier-pro-notice {
    display: none;
}

.NB-classifier-pro-notice.NB-visible {
    display: block;
}

/* Scope notice - hidden by default, animated in when non-Pro clicks scope */
.NB-classifier-scope-notice {
    display: none;
    opacity: 0;
    transform: translateX(10px);
}

.NB-classifier-scope-notice.NB-visible {
    display: block;
    animation: scope-notice-in 0.3s ease-out forwards;
}

@keyframes scope-notice-in {
    0% { opacity: 0; transform: translateX(10px); }
    100% { opacity: 1; transform: translateX(0); }
}

/* Shake animation on type badge when scope change is denied */
.NB-classifier-type-badge.NB-shake {
    animation: badge-shake 0.4s ease-in-out;
}

@keyframes badge-shake {
    0%, 100% { transform: translateX(0); }
    15% { transform: translateX(-3px); }
    30% { transform: translateX(3px); }
    45% { transform: translateX(-2px); }
    60% { transform: translateX(2px); }
    75% { transform: translateX(-1px); }
    90% { transform: translateX(1px); }
}

/* Flash toggle amber when denied */
.NB-scope-toggle.NB-scope-toggle-denied {
    opacity: 1 !important;
    color: #d97706 !important;
    transition: color 0.8s ease-out;
}

/* Denied tooltip styled amber */
.NB-scope-tooltip.NB-scope-tooltip-denied {
    background: #d97706;
    color: #fff;
    font-weight: 600;
}

/* =================== */
/* = Mouse Indicator = */
/* =================== */

#mouse-indicator {
    position: absolute;
    top: 50px;
    left: -10px;
    opacity: 0;
    background: transparent url('/media/embed/reader/mouse_indicator.png') no-repeat 0 0;
    background-size: 10px 15px;
    width: 10px;
    height: 15px;
    z-index: 10;
    cursor: pointer;
}

/* ================ */
/* = Page Modules = */
/* ================ */

.NB-module .NB-module-direction {
    display: block;
    width: 24px;
    height: 32px;
    float: right;
    margin: -8px 0;
    padding: 0px;
}

.NB-module .NB-module-direction.NB-disabled {
    opacity: .25;
}

.NB-module .NB-module-next-page {
    margin-right: -12px;
    padding-right: 8px;

    background: transparent url('/media/embed/reader/next_page.png') no-repeat 4px center;
    background-size: 14px;
}

.NB-module .NB-module-next-page.NB-javascript {
    opacity: .2;
}

.NB-module .NB-module-next-page:link {
    background: transparent url('/media/embed/reader/next_page.png') no-repeat 4px center;
    background-size: 14px;
}

.NB-module .NB-module-next-page:hover {
    background: transparent url('/media/embed/reader/next_page_active.png') no-repeat 4px center;
    background-size: 14px;
}

.NB-module .NB-module-next-page.NB-disabled:hover {
    background: transparent url('/media/embed/reader/next_page.png') no-repeat 4px center;
    background-size: 14px;
    cursor: default;
}

.NB-module .NB-module-previous-page {
    padding: 0 4px 0 4px;
    background: transparent url('/media/embed/reader/previous_page.png') no-repeat 8px center;
    background-size: 14px;
}

.NB-module .NB-module-previous-page:link {
    background: transparent url('/media/embed/reader/previous_page.png') no-repeat 8px center;
    background-size: 14px;
}

.NB-module .NB-module-previous-page:hover {
    background: transparent url('/media/embed/reader/previous_page_active.png') no-repeat 8px center;
    background-size: 14px;
}

.NB-module .NB-module-previous-page.NB-disabled:hover {
    background: transparent url('/media/embed/reader/previous_page.png') no-repeat 8px center;
    background-size: 14px;
    cursor: default;
}

.NB-module .NB-module-page-indicator {
    display: block;
    width: 16px;
    height: 16px;
    float: left;
    padding: 2px 3px 0px;
    opacity: .25;
    cursor: pointer;
    background: transparent url('/media/embed/icons/silk/bullet_blue.png') no-repeat center center;
}

.NB-module .NB-module-page-indicator:hover {
    opacity: 1;
}

.NB-module .NB-module-page-indicator.NB-active {
    opacity: 1;
    background: transparent url('/media/embed/icons/silk/bullet_orange.png') no-repeat center center;
}

/* ============= */
/* = Main Page = */
/* ============= */

.NB-module a {
    text-decoration: none;
    /*    color: #3E4773;*/
}

.NB-module a:hover {
    /*    color: #0E1763;*/
}

.NB-module h5 {
    margin: 0 0 12px;
    padding: 8px 12px 6px;
    overflow: hidden;
}

.NB-module .NB-module-header-left {
    float: left;
}

.NB-module .NB-module-header-center {
    text-align: center;
    margin: 0 auto;
    width: 132px;
}

.NB-module .NB-module-header-right {
    font-size: 13px;
    line-height: 16px;
    font-weight: normal;
    display: flex;
    order: 2;
    flex: 0 1 0;
    margin-left: auto;
}

.NB-module .NB-module-header-text {
    flex: 2 1 0;
}

.NB-module .NB-spinner {
    background: transparent url('/media/embed/reader/ring_spinner.svg') no-repeat center center;
    background-size: 16px;
    width: 16px;
    height: 16px;
    margin: 0 6px;
    opacity: .6;
    display: none;
}

.NB-module.NB-loading .NB-spinner,
.NB-module-item.NB-loading .NB-spinner {
    display: block;
}

.NB-module .NB-module-content-header {
    padding-left: 4px;
}

.NB-module-content-header {
    padding: 0 0 0px;
    margin: 0 0 4px 0;
    font-size: 13px;
    letter-spacing: 1px;
    color: #696e62;
    clear: both;
}

.NB-module .NB-module-content-subtitle {
    float: right;
    color: #C0C0C0;
    text-shadow: none;
    margin: 2px 0 0 0;
    font-size: 10px;
    white-space: nowrap;
}

.NB-module .NB-module-content-account-realtime {
    background: transparent url('/media/img/reader/realtime_spinner_loading.gif') no-repeat 0 1px;
    font-size: 11px;
    text-transform: uppercase;
    color: #D8BD70;
    font-weight: bold;
    float: right;
    width: 16px;
    height: 16px;
    margin: 0 4px 0 0;
}

.NB-module .NB-module-content-account-realtime.NB-active {
    background: transparent url('/media/img/reader/realtime_spinner.gif') no-repeat 0 1px;
}

.NB-module .NB-module-content-account-realtime.NB-error {
    background: transparent url('/media/img/reader/realtime_spinner_error.gif') no-repeat 0 1px;
}

.NB-module .NB-module-item {
    position: relative;
    min-height: 77px;
    clear: both;
    overflow: hidden;
    border-radius: 3px;
}

.NB-module .NB-module-item.NB-last {
    margin-bottom: 0;
}

.NB-module .NB-module-item-image {
    position: absolute;
    left: 0;
    top: 0;
}

.NB-module .NB-module-item .NB-module-item-image img {
    width: 100px;
    height: 75px;
    overflow: hidden;
    margin: 0 8px 2px 12px;
    border: 1px solid #606060;
    -moz-box-shadow: 1px 1px 0 #D0D0D0;
    -webkit-box-shadow: 1px 1px 0 #D0D0D0;
    box-shadow: 1px 1px 0 #D0D0D0;
}

.NB-module .NB-modal-submit-grey {
    color: #505050;
}

.NB-module .NB-module-item .NB-module-item-title {
    margin: 0 0 4px 128px;
}

.NB-module .NB-module-item .NB-modal-submit-button {
    float: left;
    margin: 4px 0 0 0;
}

.NB-module .NB-module-item .NB-menu-manage-logout {
    float: right;
    margin: 4px 4px 0 0;
}

/* =========================== */
/* = Right Modules - Account = */
/* =========================== */

.NB-module-features {
    margin-top: 0;
}

.NB-account .NB-module,
.NB-manage .NB-module {
    margin: 0;
    padding: 0;
    clear: both;
    overflow: hidden;
}

.NB-account .NB-module .NB-module-account-settings {
    background: transparent url('/media/embed/icons/nouns/settings.svg') no-repeat 0 0;
    background-size: 16px;
    width: 16px;
    height: 16px;
    float: right;
    cursor: pointer;
}

.NB-module .NB-module-account-settings.NB-javascript {
    opacity: .2;
    cursor: default;
}

.NB-account .NB-module .NB-module-item .NB-module-account-premium {
    float: right;
    margin-right: 12px;
}

.NB-account .NB-module .NB-module-item .NB-modal-submit-button.NB-javascript {
    opacity: .2;
}

.NB-module.NB-module-features .NB-module-content-header {
    /* border-bottom: 1px solid #E8EAE4; */
    padding-bottom: 4px;
}

.NB-module-account .NB-module-item-image {
    position: relative;
    float: left;
}

.NB-module-account .NB-module-content-header,
.NB-module-account .NB-module-item .NB-module-item-title {
    clear: none;
    overflow: hidden;
}

.NB-module-account .NB-module-item .NB-module-item-image img {
    width: 100px;
    margin-right: 14px;
    height: auto;
    border: none;
    -moz-box-shadow: none;
    -webkit-box-shadow: none;
    box-shadow: none;
    cursor: pointer;
    margin-top: 6px;
    border-radius: 4px;
}

/* ======================= */
/* = How it Works Module = */
/* ======================= */

.NB-module-howitworks {
    position: relative;
    overflow: hidden;
}

.NB-module-howitworks .NB-howitworks-page-indicators {
    position: absolute;
    width: 132px;
    height: 20px;
    right: 64px;
    top: 8px;
}

.NB-module-howitworks .NB-howitworks-page {
    display: none;
    overflow: hidden;
    left: 0;
    margin: 12px 0 0;
}

.NB-module-howitworks .NB-howitworks-page.NB-active {
    display: block;
}

.NB-module-howitworks .NB-howitworks-page .NB-howitworks-page-image {
    width: 200px;
    height: 135px;
    padding: 2px;
    border: 1px solid #E0E0E0;
    margin: 0 12px 0;
    float: left;
}

.NB-module-howitworks .NB-howitworks-page .NB-howitworks-page-description {
    height: 135px;
    line-height: 30px;
    font-size: 22px;
    color: #303030;
    text-shadow: 1px 1px 0px #F0F0F0;
    width: 248px;
}

.NB-module-howitworks .NB-howitworks-page .NB-howitworks-page-description td {
    padding: 0;
    margin: 0;
    vertical-align: middle;
    text-align: center;
}

/* =================== */
/* = Getting started = */
/* =================== */

.NB-account .NB-module-gettingstarted {
    margin-bottom: 24px;
}

.NB-module-gettingstarted .NB-module-item-intro {
    border-radius: 8px;
    padding: 20px 16px;
    margin-bottom: 24px;
    overflow: hidden;
    background: linear-gradient(145deg, #f8fdf4 0%, #eef7e5 50%, #e5f2d8 100%);
    border: 1px solid rgba(106, 142, 66, 0.25);
    box-shadow: 0 2px 8px rgba(106, 142, 66, 0.08);
}

.NB-module-gettingstarted .NB-intro-avatar {
    margin: 12px auto 36px;
}

.NB-module-gettingstarted .NB-intro-avatar-bezel {
    padding: 4px;
    width: 48px;
    line-height: 0;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, rgba(106, 142, 66, 0.15) 0%, rgba(106, 142, 66, 0.08) 100%);
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(106, 142, 66, 0.12);
}

.NB-module-gettingstarted .NB-intro-avatar img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
}

.NB-module-gettingstarted .NB-intro-progress {
    position: relative;
    margin: 24px 64px;
}

.NB-module-gettingstarted .NB-intro-progress .progress {
    height: 10px;
    margin-top: -30px;
}

.NB-module-gettingstarted .NB-intro-progress-goal {
    top: -10px;
    left: 0px;
    position: absolute;
    border-radius: 16px;
    background-color: #FFF;
    border: 1px solid rgba(106, 142, 66, 0.25);
    box-shadow: 0 1px 4px rgba(106, 142, 66, 0.15);
    width: 28px;
    height: 28px;
    z-index: 1;
}

.NB-module-gettingstarted .NB-intro-progress-goal.NB-1 {
    left: 0;
    background: #fff url(/media/embed/icons/silk/flag_blue.png) no-repeat center center;
}

.NB-module-gettingstarted .NB-intro-progress-goal.NB-2 {
    margin: 0 auto;
    left: auto;
    position: relative;
    background: #fff url(/media/embed/icons/silk/flag_green.png) no-repeat center center;
}

.NB-module-gettingstarted .NB-intro-progress-goal.NB-3 {
    left: auto;
    right: 0;
    background: #fff url(/media/embed/icons/silk/flag_yellow.png) no-repeat center center;
}

.NB-module-gettingstarted .NB-intro-progress-goal.NB-done {
    background: linear-gradient(135deg, #6a9e42 0%, #5a8a36 100%);
    border-color: rgba(90, 138, 54, 0.4);
}

.NB-module-gettingstarted .NB-intro-progress-goal.NB-done::after {
    content: '\2713';
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 16px;
    font-weight: bold;
}

.NB-module-gettingstarted .NB-intro-goals {
    margin: 24px 0 0;
    overflow: hidden;
}

.NB-module-gettingstarted .NB-intro-goal {
    width: 33.33%;
    float: left;
    text-align: center;
    font-size: 12px;
    color: #5E6062;
    padding: 0 6px;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}

.NB-module-gettingstarted .NB-icon {
    display: inline-block;
    margin: 0 2px 0 0;
    width: 16px;
    height: 16px;
    vertical-align: text-bottom;
}

.NB-module-gettingstarted .NB-modal-submit-button {
    padding: 4px 6px;
}

.NB-module-gettingstarted .NB-module-launch-intro .NB-icon {
    background: transparent url(/media/embed/icons/silk/lorry.png) no-repeat center center;
    background-size: 16px;
}

.NB-module-gettingstarted .NB-module-friends-button .NB-icon {
    background: transparent url('/media/embed/icons/nouns/share.svg') no-repeat 0 0;
    background-size: 16px;
}

.NB-module-gettingstarted .NB-module-account-train .NB-icon {
    background: transparent url("/media/embed/icons/nouns/dialog-trainer.svg") no-repeat center center;
    background-size: 16px;
    filter: hue-rotate(140deg) saturate(15);
}

.NB-module-gettingstarted .NB-intro-goal .NB-not-done {
    margin: 6px auto;
    float: none;
}

.NB-module-gettingstarted .NB-intro-goal .NB-done {
    color: #7CB621;
    font-weight: bold;
    padding: 12px 0;
}

.NB-module-gettingstarted .NB-done .NB-not-done,
.NB-module-gettingstarted .NB-not-done .NB-done {
    display: none;
}

/* ========================== */
/* = Premium Upgrade Module = */
/* ========================== */

.NB-account .NB-module-premium {}

.NB-module-premium .NB-module-item-intro {
    border-radius: 8px;
    padding: 20px 16px;
    margin-bottom: 24px;
    overflow: hidden;
    font-size: 14px;
    text-align: center;
    background: linear-gradient(145deg, #f8fdf4 0%, #eef7e5 50%, #e5f2d8 100%);
    border: 1px solid rgba(106, 142, 66, 0.25);
    box-shadow: 0 2px 8px rgba(106, 142, 66, 0.08);
}

.NB-module-premium .NB-module-item .NB-modal-submit-button {
    float: none;
}

.NB-module-premium .NB-module-premium-price {
    font-size: 12px;
    text-transform: uppercase;
    margin: 12px 0 0;
    color: #ebc17c;
}

.NB-module.NB-module-premium .NB-module-premium-button {
    padding: 12px 28px;
    margin: 20px auto 0;
    display: block;
    float: none;
    width: fit-content;
    font-weight: 500;
    border-radius: 6px;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.NB-module.NB-module-premium .NB-module-premium-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(106, 142, 66, 0.3);
}

.NB-module-premium .NB-module-premium-icon {
    width: 36px;
    height: 36px;
    display: block;
    margin: 0 auto 12px;
}

.NB-module-premium-icon.NB-1 {
    background: transparent url('/media/embed/icons/icons8/icons8-sheets-100.png') no-repeat 0 0;
    background-size: 36px;
}

.NB-module-premium-icon.NB-2 {
    background: transparent url('/media/embed/icons/icons8/icons8-lightning-bolt-100.png') no-repeat 0 0;
    background-size: 36px;
}

.NB-module-premium-icon.NB-3 {
    background: transparent url('/media/embed/icons/icons8/icons8-comics-magazine-100.png') no-repeat 0 0;
    background-size: 36px;
}

.NB-module-premium-icon.NB-4 {
    background: transparent url('/media/embed/icons/icons8/icons8-search-100.png') no-repeat 0 0;
    background-size: 36px;
}

.NB-module-premium-icon.NB-5 {
    background: transparent url('/media/embed/icons/icons8/icons8-tags-100.png') no-repeat 0 0;
    background-size: 36px;
}

.NB-module-premium-icon.NB-6 {
    background: transparent url('/media/embed/icons/icons8/icons8-security-wi-fi-100.png') no-repeat 0 0;
    background-size: 36px;
}

.NB-module-premium-icon.NB-7 {
    background: transparent url('/media/embed/icons/icons8/icons8-rss-100.png') no-repeat 0 0;
    background-size: 36px;
}

.NB-module-premium-icon.NB-8 {
    background: transparent url('/media/embed/icons/icons8/icons8-activity-history-100.png') no-repeat 0 0;
    background-size: 36px;
}

.NB-module-premium-icon.NB-9 {
    background: transparent url('/media/embed/icons/nouns/direction_black.svg') no-repeat 0 0;
    background-size: 36px;
}

.NB-module-premium-icon.NB-10 {
    background: transparent url('/media/embed/icons/icons8/icons8-knife-and-spatchula-100.png') no-repeat 0 0;
    background-size: 36px;
}

.NB-module-premium-archive-icon.NB-1 {
    background: transparent url('/media/embed/icons/icons8/icons8-bursts-100.png') no-repeat 0 0;
    background-size: 36px;
}

.NB-module-premium-archive-icon.NB-2 {
    background: transparent url('/media/embed/icons/icons8/icons8-calendar-100.png') no-repeat 0 0;
    background-size: 36px;
}

.NB-module-premium-archive-icon.NB-3 {
    background: transparent url('/media/embed/icons/icons8/icons8-filing-cabinet-100.png') no-repeat 0 0;
    background-size: 36px;
}

.NB-module-premium-archive-icon.NB-4 {
    background: transparent url('/media/embed/icons/icons8/icons8-quadcopter-100.png') no-repeat 0 0;
    background-size: 36px;
}

.NB-module-premium-archive-icon.NB-5 {
    background: transparent url('/media/embed/icons/nouns/train.svg') no-repeat 0 0;
    background-size: 36px;
    filter: brightness(0.5);
}

.NB-module-premium-archive-icon.NB-6 {
    background: transparent url('/media/embed/icons/nouns/direction_black.svg') no-repeat 0 0;
    background-size: 36px;
}

.NB-module-premium-archive-icon.NB-7 {
    background: transparent url('/media/embed/icons/icons8/icons8-rss-100.png') no-repeat 0 0;
    background-size: 36px;
}

.NB-module-premium-archive-icon.NB-8 {
    background: transparent url('/media/embed/icons/icons8/icons8-relax-with-book-100.png') no-repeat 0 0;
    background-size: 36px;
}

.NB-module-premium-archive-icon.NB-9 {
    background: transparent url('/media/embed/icons/nouns/mark-read.svg') no-repeat 0 0;
    background-size: 36px;
}

.NB-module-premium-reason {
    padding: 0 24px;
}

.NB-module-premium-reason .NB-feedchooser-premium-poor-hungry-dog {
    display: block;
    margin: 12px auto 4px;
    border: 1px solid #303030;
    width: 128px;
    height: 96px;
}

/* ================================ */
/* = Premium Trial Module         = */
/* = (For all trial/upgrade states)*/
/* ================================ */

.NB-account .NB-module-trial {}

.NB-module-trial .NB-module-item-intro {
    border-radius: 8px;
    padding: 20px 16px;
    margin-bottom: 24px;
    overflow: hidden;
    font-size: 14px;
    text-align: center;
    background: linear-gradient(145deg, #f8fdf4 0%, #eef7e5 50%, #e5f2d8 100%);
    border: 1px solid rgba(106, 142, 66, 0.25);
    box-shadow: 0 2px 8px rgba(106, 142, 66, 0.08);
}

.NB-module-trial .NB-module-trial-icon {
    width: 48px;
    height: 48px;
    display: block;
    margin: 0 auto 16px;
    background: linear-gradient(135deg, #6a9e42 0%, #5a8a36 100%);
    border-radius: 50%;
    position: relative;
}

.NB-module-trial .NB-module-trial-icon::after {
    content: '★';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 24px;
    color: #fff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.NB-module-trial .NB-module-trial-message {
    font-size: 14px;
    margin-bottom: 12px;
    color: #404040;
    line-height: 1.5;
}

.NB-module-trial .NB-module-trial-message .NB-trial-days {
    color: #5a8a36;
    font-size: 16px;
    font-weight: 600;
}

.NB-module-trial .NB-module-trial-benefits {
    color: #5a7a3a;
    margin-bottom: 16px;
    font-weight: 500;
    font-size: 13px;
    padding: 8px 12px;
    background: rgba(106, 142, 66, 0.1);
    border-radius: 4px;
    display: inline-block;
}

.NB-module-trial .NB-module-trial-features {
    list-style: none;
    padding: 0;
    margin: 0 auto 20px;
    text-align: left;
    display: block;
    width: fit-content;
}

.NB-module-trial .NB-module-trial-features li {
    padding: 5px 0 5px 24px;
    font-size: 12px;
    color: #505050;
    line-height: 1.4;
    background-repeat: no-repeat;
    background-position: 0 center;
    background-size: 16px;
}

.NB-module-trial .NB-module-trial-features li.NB-sites {
    background-image: url('/media/embed/icons/icons8/icons8-sheets-100.png');
}

.NB-module-trial .NB-module-trial-features li.NB-folder {
    background-image: url('/media/embed/icons/icons8/icons8-comics-magazine-100.png');
}

.NB-module-trial .NB-module-trial-features li.NB-text {
    background-image: url('/media/embed/icons/icons8/icons8-activity-history-100.png');
}

.NB-module-trial .NB-module-trial-features li.NB-tags {
    background-image: url('/media/embed/icons/icons8/icons8-tags-100.png');
}

.NB-module-trial .NB-module-trial-features li.NB-search {
    background-image: url('/media/embed/icons/icons8/icons8-search-100.png');
}

.NB-module-trial .NB-module-trial-features li.NB-more {
    background-image: url('/media/embed/icons/icons8/icons8-bursts-100.png');
}

.NB-module.NB-module-trial .NB-module-trial-button {
    padding: 12px 28px;
    margin: 0 auto;
    display: block;
    float: none;
    width: fit-content;
    cursor: pointer;
    font-weight: 500;
    border-radius: 6px;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.NB-module.NB-module-trial .NB-module-trial-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(106, 142, 66, 0.3);
}

.NB-module-hide {
    display: inline-block;
    padding: 3px 10px;
    font-size: 11px;
    font-weight: 500;
    color: #888;
    background: #f0f0f0;
    border: 1px solid #ddd;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.15s ease;
}

.NB-module-hide:hover {
    color: #666;
    background: #e8e8e8;
    border-color: #ccc;
}

/* ================================= */
/* = Feed Chooser Trial Banner     = */
/* ================================= */

.NB-modal-feedchooser .NB-feedchooser-trial-banner {
    margin: 0 24px 24px;
    padding: 16px;
    border: 2px solid #e6c86e;
    background: linear-gradient(135deg, #fff9e6 0%, #fff3d4 100%);
    border-radius: 6px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.NB-modal-feedchooser .NB-feedchooser-trial-icon {
    width: 24px;
    height: 24px;
    margin-right: 10px;
    background: transparent url('/media/img/icons/silk/award_star_gold_1.png') no-repeat center center;
    background-size: 16px;
    flex-shrink: 0;
}

.NB-modal-feedchooser .NB-feedchooser-trial-message {
    font-size: 15px;
    color: #6a5818;
}

.NB-modal-feedchooser .NB-feedchooser-trial-message strong {
    color: #c4880a;
    font-size: 17px;
}

.NB-modal-feedchooser .NB-feedchooser-trial-upgrade {
    margin-top: 24px;
    overflow: hidden;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

.NB-modal-feedchooser .NB-feedchooser-trial-cta {
    margin-bottom: 20px;
    padding: 12px 16px;
    font-size: 14px;
    font-weight: 500;
    color: #5a7a3a;
    text-align: center;
    width: 100%;
    background: linear-gradient(135deg, #f0f7e6 0%, #e8f2dc 100%);
    border-radius: 6px;
    border: 1px solid rgba(106, 142, 66, 0.2);
}

.NB-modal-feedchooser .NB-feedchooser-trial-upgrade .NB-provider-main,
.NB-modal-feedchooser .NB-feedchooser-trial-upgrade .NB-provider-alternate {
    width: calc(50% - 25px);
}

/* ================================= */
/* = Welcome Page Trial Banner     = */
/* ================================= */

.NB-signup-trial-banner {
    background: linear-gradient(135deg, #6c9633 0%, #5a7f2a 100%);
    padding: 16px 24px;
    border-radius: 8px;
    margin-bottom: 24px;
    text-align: center;
    color: white;
}

.NB-signup-trial-banner .NB-trial-highlight {
    display: block;
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 4px;
}

.NB-signup-trial-banner .NB-trial-subtitle {
    font-size: 13px;
    opacity: 0.9;
}

/* ================= */
/* = Manage Module = */
/* ================= */

.NB-module-manage .NB-menu-manage li.NB-menu-item {
    background-color: #F7F8F5;
}

/* ================ */
/* = Stats Module = */
/* ================ */

.NB-splash-module-section {
    overflow: hidden;
}

.NB-module-stats-counts {
    border-radius: 4px;
    background-color: #F7F8F5;
    border: 1px solid rgba(0, 0, 0, .05);
    overflow: hidden;
    margin-bottom: 20px;
}

.NB-module-stats-count {
    border-bottom: 1px solid rgba(0, 0, 0, .05);
    text-align: center;
    text-transform: uppercase;
    font-size: 12px;
    overflow: hidden;
    padding: 6px 0;
}

.NB-module-stats-count:last-child {
    border-bottom: none;
}

.NB-module-stats-count-shared-stories {
    width: 38%;
}

.NB-module-stats-count-following,
.NB-module-stats-count-followers {
    width: 31%;
}

.NB-module-stats-count-number {
    clear: both;
    font-size: 18px;
    color: #0D003C;
    text-shadow: 1px 1px 0 #E8E8E8;
    font-weight: bold;
}

.NB-module-stats-count-description {
    margin: 4px 0 0 0;
    color: #A0A0A0;
    clear: both;
}

.NB-module-account-subscription .NB-module-stats-count-description {
    color: #0D003C;
    margin-bottom: 4px;
    padding: 0 8px;
}

.NB-module-stats-count-graph {
    clear: both;
    margin: 0 auto;
    width: 100px;
}

.NB-graph-value {
    float: left;
    height: 30px;
    width: 3px;
    padding: 0 1px 0 0;
    margin: 0 0 14px 0;
    position: relative;
}

.NB-graph-value .NB-graph-bar {
    background-color: darkblue;
    position: absolute;
    bottom: 0;
    left: 0;
    width: 3px;
}

.NB-graph-value .NB-graph-label {
    width: 20px;
    height: 20px;
    font-size: 10px;
    text-align: center;
    position: absolute;
    bottom: -25px;
    left: -8px;
    display: none;
    padding: 3px 0 0 0;
    color: #A0A0A0;
    text-shadow: 1px 1px 0 #F0F0F0;
    background: transparent url('/media/embed/reader/graph_arrow_up.png') no-repeat 8px 0;
}

.NB-graph-value:hover .NB-graph-label {
    display: block;
}

/* ================== */
/* = Center Modules = */
/* ================== */

.NB-modules-center,
.NB-account-wide {
    margin: 24px 0 0 0px;
    flex: 1;
    transition: margin 0.36s ease-out,
        padding 0.36s ease-out,
        gap 0.36s ease-out;
}

.NB-modules-center {
    flex: 4 1 0;
    min-width: 0;
}

.NB-account-wide {
    flex: 3 1 0;
    min-width: 0;
}

.NB-module-header {
    transition: margin 0.36s ease-out;
}

.NB-dashboard-rivers-left .NB-module,
.NB-dashboard-rivers-right .NB-module {
    margin: 0 0 34px;
    clear: both;
}

.NB-module-river .NB-story-title-container:first-child .NB-story-title {
    border-top: none;
}

.NB-module-river .NB-story-title-container:last-child .NB-story-title {
    border-bottom: none;
}

.NB-module-river .NB-module-river-favicon {
    display: inline-block;
    cursor: pointer;
}

.NB-module-river .NB-module-river-favicon img {
    width: 16px;
    height: 16px;
    transform: translate(0px, 2px);
    margin-right: 8px;
}

.NB-module-river .NB-module-river-favicon .NB-feed-emoji,
.NB-module-river .NB-module-river-favicon .NB-feed-icon-colored,
.NB-module-river .NB-module-river-favicon .NB-folder-emoji,
.NB-module-river .NB-module-river-favicon .NB-folder-icon-colored {
    transform: translate(0px, 2px);
    margin-right: 8px;
}

.NB-module-river .NB-module-river-title {
    display: inline-block;
    cursor: pointer;
    text-align: left;
    display: flex;
    justify-content: center;
    flex: 1 1 0;
}

.NB-module-river .NB-dashboard-column-control {
    float: left;
    line-height: 0;
    display: none;
    margin-right: 6px;
}

.NB-module-river .NB-dashboard-column-control.NB-active {
    display: inline-block;
}

.NB-module-river .NB-dashboard-column-control li {
    width: 32px;
    padding: 5px 0;
}

.NB-module-river .NB-dashboard-column-control li img {
    opacity: 0.3;
    width: 16px;
    height: 16px;
}

.NB-module-river .NB-dashboard-column-control li.NB-active img {
    opacity: 0.5;
}

.NB-module-river .NB-module-river-settings {
    order: 3;
}

.NB-module-river .NB-view-river {
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    border-radius: 3px;
    margin: 0 2px;
}

.NB-module-river .NB-feedbar-options-container {
    float: right;
}

.NB-module-river .NB-feedbar-options {
    cursor: pointer;
    float: right;
    text-transform: uppercase;
    color: rgba(0, 0, 0, .5);
    border: 1px solid rgba(0, 0, 0, .1);
    border-radius: 16px;
    font-size: 9px;
    font-weight: bold;
    padding: 1px 4px 1px 8px;
    line-height: 14px;
    margin: 1px 0 0;
}

.NB-module-river .NB-feedbar-options:hover,
.NB-module-river .NB-feedbar-options.NB-active {
    background-color: rgba(0, 0, 0, .1);
}

.NB-module-river .NB-feedbar-options .NB-icon {
    float: right;
    width: 16px;
    height: 12px;
    background: transparent url('/media/embed/icons/nouns/down.svg') no-repeat center center;
    background-size: 8px;
    margin: 0 0 0 4px;
}


/* ============ */
/* = Features = */
/* ============ */

.NB-module-features table {
    list-style: none;
    padding: 0;
    margin: 12px 6px 28px;
}

.NB-module-features .NB-feedback-table {
    margin-bottom: 34px;
}

.NB-module-features .NB-features-add {
    float: left;
    display: none;
    margin-right: 12px;
}

.NB-module-features .NB-module-header:hover .NB-features-add {
    display: block;
}

.NB-module-features .NB-module-feature td {
    margin: 0 0 0;
}

.NB-module-features .NB-module-feature.last td {
    margin-bottom: 0;
}

.NB-module-features .NB-module-feature.NB-module-feature-new td {
    background-color: #FCFFB4;
}

.NB-module-features .NB-module-feature .NB-module-feature-date {
    float: left;
    padding: 4px 8px;
    margin: 0;
    color: #808080;
    font-size: 11px;
    line-height: 20px;
    white-space: nowrap;
    min-width: 74px;
}

.NB-module-features .NB-module-feature.last .NB-module-feature-date {
    margin-bottom: 0;
}

.NB-module-features .NB-module-feature .NB-module-feature-description {
    color: #404040;
    font-size: 12px;
    line-height: 16px;
    padding: 4px 0 4px 8px;
    margin: 0;
    width: 100%;
}

.NB-module-features .NB-module-feature.last .NB-module-feature-description {
    margin-bottom: 0;
}

.NB-module-features .NB-module-feature .NB-module-feature-description a {
    color: #405BA8;
}

.NB-module-features .NB-module-feature .NB-module-feature-description a:hover {
    color: #A85B40;
}

.NB-module-features .NB-module-feature .NB-module-feature-description img {
    width: 16px;
    height: 16px;
    vertical-align: bottom;
}

.NB-module-features .NB-module-feature .NB-module-feature-description img.NB-module-feature-arrow {
    padding: 0 4px;
    vertical-align: text-bottom;
    width: 16px;
    height: 16px;
}

.NB-module-features .NB-module-feature .NB-module-feature-tag {
    font-size: 8px;
    padding: 0 4px;
    background-color: #DC8A13;
    color: white;
    font-weight: bold;
    text-transform: uppercase;
    margin-right: 4px;
    display: inline-block;
    vertical-align: text-bottom;
}

.NB-module-features .NB-module-feature .NB-module-feature-tag.NB-tag-problem {
    background-color: #EC8C35;
}

.NB-module-features .NB-module-feature .NB-module-feature-tag.NB-tag-praise {
    background-color: #FAD477;
    color: white;
}

.NB-module-features .NB-module-feature .NB-module-feature-tag.NB-tag-idea {
    background-color: #9DDC5F;
}

.NB-module-features .NB-module-feature .NB-module-feature-tag.NB-tag-question {
    background-color: #6DAEDC;
}

.NB-module-features .NB-module-feature .NB-module-feature-tag.NB-tag-updates {
    background-color: #12A89D;
}

#add-feature-form {
    display: none;
}

/* ============================ */
/* = Module: Recommended Feed = */
/* ============================ */

.NB-module-recommended {
    overflow: hidden;
    margin-bottom: 42px;
}

.NB-module-recommended .NB-module-recommended-date {
    line-height: 14px;
    position: absolute;
    top: 18px;
    left: 12px;
    color: #585a55;
    font-size: 11px;
    margin: 1px 2px 0 0;
    text-shadow: 0 1px 0 #E9E9E9;
}

.NB-module-recommended .NB-module-recommended-date span {
    vertical-align: text-top;
    margin: 0 0 0 -3px;
    line-height: 12px;
    font-size: 8px;
}

.NB-module-recommended .NB-recommended {
    margin: 12px 0 0 0;
    padding: 0 12px;
}

.NB-module-recommended .NB-javascript.NB-module-direction,
.NB-module-recommended .NB-javascript.NB-modal-submit-button,
.NB-module-recommended .NB-javascript.NB-recommended-statistics,
.NB-module-recommended .NB-javascript.NB-recommended-intelligence {
    opacity: .2;
}

.NB-module-recommended .NB-recommended-statistics {
    margin: 2px 0 0 0;
    position: absolute;
    left: -26px;
    top: 3px;
    width: 16px;
    height: 16px;
    cursor: pointer;
    background: transparent url('/media/embed/icons/nouns/dialog-statistics.svg') no-repeat 0 0;
    background-size: 16px;
    filter: hue-rotate(284deg) saturate(18);
}

.NB-module-recommended .NB-recommended-favicon {
    width: 16px;
    height: 16px;
    float: left;
    margin: 2px 4px 0 0px;
}

.NB-module-recommended .NB-recommended-title {
    padding: 0 0 4px 20px;
    border-bottom: 1px solid #E0E0E0;
}

.NB-module-recommended .NB-recommended-description {
    font-size: 13px;
    line-height: 20px;
    margin: 8px 0 0 0;
    color: #505050;
    padding-bottom: 8px;
    border-bottom: 1px solid #E0E0E0;
    overflow: hidden;
}

.NB-module-recommended .NB-modal-submit {
    margin: 8px 0 0 0;
}

.NB-module-recommended .NB-recommended-subscribers {
    position: relative;
    float: right;
    text-transform: uppercase;
    font-size: 11px;
    color: #808080;
    margin: 0 0 0 0;
}

.NB-module-recommended .NB-modal-submit-button {
    float: left;
    margin-left: 0 !important;
    margin-right: 8px !important;
}

.NB-module-recommended .NB-recommended-added {
    padding: 6px 0 0 20px;
    background: transparent url('/media/embed/icons/circular/newuser_icn_setup.png') no-repeat 0 2px;
    background-size: 18px;
    font-size: 12px;
    font-weight: bold;
    color: #123B00;
    overflow: hidden;
}

.NB-recommended-show-moderation-wrapper {
    display: none;
    float: left;
    margin-right: 12px;
}

.NB-module-recommended .NB-module-header:hover .NB-recommended-show-moderation-wrapper {
    display: block;
}

.NB-recommended-unmoderated {
    display: none;
}

/* ========= */
/* = Menus = */
/* ========= */

.NB-menu-manage-container {
    z-index: 10;
    position: absolute;
    display: none;
    opacity: 0;
    width: 260px;
    padding: 0;
    margin: 0;
    background-color: #EAECE6;
    border-top: 1px solid #90928B;
    border-left: 1px solid #90928B;
    border-right: 1px solid #90928B;
    border-bottom: 1px solid #90928B;
    -webkit-box-shadow: 2px 2px 5px #5E6267;
    -moz-box-shadow: 2px 2px 5px #5E6267;
    box-shadow: 2px 2px 5px #5E6267;
}

.NB-menu-manage-container.NB-inverse {
    background-color: #F1F3EC;
}

/* Hide style controls when opened from modal title */
.NB-menu-manage-container.NB-menu-manage-hide-style-controls .NB-menu-manage-font,
.NB-menu-manage-container.NB-menu-manage-hide-style-controls .NB-menu-manage-size,
.NB-menu-manage-container.NB-menu-manage-hide-style-controls .NB-menu-manage-density,
.NB-menu-manage-container.NB-menu-manage-hide-style-controls .NB-menu-manage-theme {
    display: none;
}

.NB-menu-manage {
    list-style: none;
    font-size: 11px;
    margin: 4px 0 0;
    padding: 0;
    position: relative;
}

.NB-inverse .NB-menu-manage {
    margin: 0 0 4px;
}

.NB-menu-manage-container .NB-menu-manage-arrow {
    width: 19px;
    height: 20px;
    background-image: -webkit-gradient(linear, left top, left bottom, from(#F1F3EC), to(#DADCD6));
    background-image: -moz-linear-gradient(center top, #F1F3EC 0%, #DADCD6 100%);
    background-image: linear-gradient(top, #F1F3EC, #DADCD6);
    border-top: 1px solid #90928B;
    border-left: 1px solid #90928B;
    border-right: 1px solid #90928B;
    z-index: 10;
    position: absolute;
    top: -21px;
    left: -1px;
}

.NB-menu-manage-container.NB-inverse .NB-menu-manage-arrow {
    border-top: none;
    border-bottom: 1px solid #90928B;
    bottom: -21px;
    top: auto;
}

.NB-menu-manage-container .NB-menu-manage-arrow .NB-icon {
    background: transparent url('/media/embed/icons/nouns/down.svg') no-repeat 5px 6px;
    width: 19px;
    height: 20px;
    background-size: 8px;
}

.NB-menu-manage-container.NB-inverse .NB-menu-manage-arrow .NB-icon {
    background-image: url('/media/embed/icons/nouns/up.svg');
    background-size: 8px;
}

.NB-menu-manage li.NB-menu-item {
    margin: 0 0 0 0;
    padding: 0px;
    cursor: pointer;
    clear: both;
    position: relative;
    background-color: white;
}

.NB-menu-manage li.NB-menu-item:hover:not(.NB-disabled):not(.NB-active),
.NB-menu-manage li.NB-menu-item.NB-hover:not(.NB-disabled):not(.NB-active) {
    background-color: #ECEEEA;
}

.NB-menu-manage li.NB-menu-item:active:not(.NB-disabled):not(.NB-active) {
    background-color: #ACB2A6;
}


.NB-menu-manage li.NB-menu-separator {
    background-color: rgba(0, 0, 0, .05);
    padding: 0;
    height: 1px;
}

.NB-menu-manage li.NB-menu-separator-inverse {
    background-color: rgba(0, 0, 0, .01);
    padding: 0;
    height: 1px;
}

.NB-menu-manage li.NB-menu-separator-top {
    background-color: rgba(0, 0, 0, .01);

    margin-bottom: 1px;
    padding: 0;
    height: 1px;
}

.NB-menu-manage li.NB-menu-separator:hover {
    background-color: rgba(0, 0, 0, .05);

    color: inherit;
    cursor: default;
}

.NB-menu-manage li.NB-menu-manage-feed-info:hover,
.NB-menu-manage li.NB-menu-manage-site-info:hover {
    color: inherit;
    cursor: default;
}

.NB-menu-manage li.NB-menu-separator-inverse:hover {
    background-color: rgba(0, 0, 0, .01);

    color: inherit;
    cursor: default;
}

.NB-menu-manage .NB-menu-manage-title {
    font-size: 14px;
    text-shadow: 0 1px 0 rgba(255, 255, 255, .6);
    padding: 5px 0 5px 0;
    margin-left: 36px;
}

.NB-menu-manage li.NB-menu-item:hover:not(.NB-disabled) .NB-menu-manage-title {
    text-shadow: 0 1px 0 rgba(255, 255, 255, .6);
}

.NB-menu-manage li.NB-menu-item:active:not(.NB-disabled) .NB-menu-manage-title {
    text-shadow: 0 1px 0 rgba(0, 0, 0, .4);
    color: rgba(255, 255, 255, 1);
}

.NB-menu-manage .NB-disabled {
    opacity: .4;
    cursor: default;
}

.NB-menu-manage .NB-menu-manage-story-share-save.NB-disabled {
    opacity: 1;
}

.NB-menu-manage .NB-menu-manage-subtitle {
    font-size: 11px;
    color: #718C7B;
}

.NB-menu-manage li.NB-menu-item:hover .NB-menu-manage-subtitle {
    color: rgba(0, 0, 0, .4);
}

.NB-menu-manage li.NB-menu-item:active .NB-menu-manage-subtitle {
    color: rgba(255, 255, 255, 1);
    text-shadow: 0 1px 0 rgba(0, 0, 0, .4);
}

.NB-menu-manage .NB-menu-manage-subtitle {
    margin: -2px 0 0 36px;
    padding: 0 0 5px 0;
}

.NB-menu-manage .NB-menu-manage-image {
    padding: 0;
    position: absolute;
    width: 18px;
    height: 18px;
    top: 5px;
    left: 10px;
}

.NB-menu-manage .NB-menu-manage-theme .NB-menu-manage-image {
    top: 5px;
}

.NB-menu-manage .NB-menu-manage-feed-info,
.NB-menu-manage .NB-menu-manage-site-info {
    font-weight: bold;
    font-size: 15px;
    position: relative;
    padding-top: 8px;
    padding-bottom: 8px;
    text-shadow: 0 1px 0 #FFF;
    background-color: #F1F3EC;
}

.NB-menu-manage .NB-menu-manage-feed-info:hover,
.NB-menu-manage .NB-menu-manage-site-info:hover {
    background-color: #F1F3EC;
}

.NB-menu-manage .NB-menu-manage-site-info {
    padding-top: 6px;
}

.NB-menu-manage .NB-menu-manage-feed-info .feed_favicon {
    position: absolute;
    left: 10px;
    top: 10px;
}

.NB-menu-manage .NB-menu-manage-feed-info .feed_title {}

.NB-menu-manage .NB-menu-manage-feed-train .NB-menu-manage-image {
    background: transparent url("/media/embed/icons/nouns/dialog-trainer.svg") no-repeat center center;
    background-size: 18px;
    filter: hue-rotate(140deg) saturate(15);
}

.NB-menu-manage .NB-menu-manage-feed-trainfilter .NB-menu-manage-image {
    background: transparent url("/media/embed/icons/nouns/prompt.svg") no-repeat center center;
    background-size: 18px;
    filter: hue-rotate(-51deg) saturate(3);
}

.NB-menu-manage .NB-menu-manage-feed-notifications .NB-menu-manage-image {
    background: transparent url("/media/embed/icons/nouns/dialog-notifications.svg") no-repeat center center;
    background-size: 18px;
    filter: hue-rotate(320deg) saturate(18);
}

.NB-menu-manage .NB-menu-manage-feed-recommend .NB-menu-manage-image {
    background: transparent url('/media/embed/icons/circular/g_icn_award.png') no-repeat 0 1px;
    background-size: 18px;
}

.NB-menu-manage .NB-menu-manage-story-train .NB-menu-manage-image {
    background: transparent url("/media/embed/icons/nouns/dialog-trainer.svg") no-repeat center center;
    background-size: 18px;
    filter: hue-rotate(140deg) saturate(15);
}

.NB-menu-manage .NB-menu-manage-story-train .NB-menu-manage-image {
    background: transparent url("/media/embed/icons/nouns/prompt.svg") no-repeat center center;
    background-size: 18px;
    filter: hue-rotate(-51deg) saturate(3);
}

.NB-menu-manage .NB-menu-manage-story-mark-read-newer.NB-up .NB-menu-manage-image,
.NB-menu-manage .NB-menu-manage-story-mark-read-older.NB-up .NB-menu-manage-image {
    background: transparent url('/media/embed/icons/circular/menu_icn_markread_up.png') no-repeat 0 0;
    background-size: 18px;
}

.NB-menu-manage .NB-menu-manage-story-mark-read-newer.NB-down .NB-menu-manage-image,
.NB-menu-manage .NB-menu-manage-story-mark-read-older.NB-down .NB-menu-manage-image {
    background: transparent url('/media/embed/icons/circular/menu_icn_markread_down.png') no-repeat 0 0;
    background-size: 18px;
}

.NB-menu-manage .NB-menu-manage-feed-settings .NB-menu-manage-image,
.NB-menu-manage .NB-menu-manage-folder-settings .NB-menu-manage-image {
    background: transparent url('/media/embed/icons/nouns/settings.svg') no-repeat 0 0;
    background-size: 18px;
}

.NB-menu-manage .NB-menu-manage-feed-reload .NB-menu-manage-image {
    background: transparent url('/media/embed/icons/nouns/boomerang.svg') no-repeat 0 0;
    background-size: 18px;
    filter: hue-rotate(320deg) saturate(16.5);
}

.NB-menu-manage .NB-menu-manage-feed-stats .NB-menu-manage-image {
    background: transparent url('/media/embed/icons/nouns/dialog-statistics.svg') no-repeat 0 0;
    background-size: 18px;
    filter: hue-rotate(284deg) saturate(18);
}

.NB-menu-manage .NB-menu-manage-mark-read .NB-menu-manage-image {
    background: transparent url("/media/embed/icons/nouns/mark-read.svg") no-repeat center center;
    background-size: 18px;
    filter: hue-rotate(20deg) saturate(18);
}

.NB-menu-manage .NB-menu-manage-folder-subscribe .NB-menu-manage-image {
    background: transparent url('/media/embed/icons/nouns/add.svg') no-repeat 0 0;
    background-size: 16px;
}

.NB-menu-manage .NB-menu-manage-folder-subfolder .NB-menu-manage-image {
    background: transparent url('/media/embed/icons/nouns/folder-open.svg') no-repeat 0 0;
    background-size: 16px;
}

.NB-menu-manage .NB-menu-manage-social-profile .NB-menu-manage-image {
    background: transparent url('/media/embed/icons/nouns/subscribers.svg') no-repeat 0 0;
    background-size: 18px;
    filter: hue-rotate(87deg) saturate(10.5);
}

.NB-menu-manage .NB-menu-manage-keyboard .NB-menu-manage-image {
    background: transparent url("/media/embed/icons/nouns/dialog-keyboard.svg") no-repeat center center;
    background-size: 18px;
    filter: hue-rotate(139deg) saturate(10);
}

.NB-menu-manage .NB-menu-manage-tutorial .NB-menu-manage-image {
    background: transparent url("/media/embed/icons/nouns/dialog-tips.svg") no-repeat center center;
    background-size: 18px;
    filter: hue-rotate(321deg) saturate(18);
}

.NB-menu-manage .NB-menu-manage-feed-exception .NB-menu-manage-image {
    background: transparent url('/media/embed/icons/circular/newuser_icn_sharewith_active.png') no-repeat 0 1px;
    background-size: 18px;
}

.NB-menu-manage .NB-menu-manage-delete .NB-menu-manage-image,
.NB-menu-manage .NB-menu-manage-delete-search .NB-menu-manage-image {
    background: transparent url('/media/embed/icons/nouns/delete.svg') no-repeat 0 0;
    background-size: 18px;
}

.NB-menu-manage .NB-menu-manage-delete.NB-menu-manage-feed-delete-cancel .NB-menu-manage-image {
    background: transparent url('/media/embed/icons/nouns/cancel.svg') no-repeat 0 0;
    background-size: 18px;
    filter: hue-rotate(20deg) saturate(18);
}

.NB-menu-manage .NB-menu-manage-delete-confirm .NB-menu-manage-image {
    background: transparent url('/media/embed/icons/circular/exclamation.png') no-repeat 0 1px;
    background-size: 16px;
    font-weight: bold;
}

.NB-menu-manage .NB-menu-manage-move .NB-menu-manage-image {
    background: transparent url('/media/embed/icons/nouns/folder-closed.svg') no-repeat 0 0;
    background-size: 16px;
}

.NB-menu-manage .NB-menu-manage-move.NB-active .NB-menu-manage-image {
    background: transparent url('/media/embed/icons/nouns/accept.svg') no-repeat 0 0;
    background-size: 16px;
    filter: hue-rotate(20deg) saturate(18);
}

.NB-menu-manage .NB-menu-manage-move.NB-menu-manage-feed-move-cancel .NB-menu-manage-image {
    background: transparent url('/media/embed/icons/nouns/cancel.svg') no-repeat 0 0;
    background-size: 18px;
    filter: hue-rotate(20deg) saturate(18);
}

.NB-menu-manage .NB-menu-manage-mute .NB-menu-manage-image,
.NB-menu-manage .NB-menu-manage-unmute .NB-menu-manage-image {
    background: transparent url('/media/embed/icons/circular/menu_icn_mute.png') no-repeat 0 0;
    background-size: 18px;
}

.NB-menu-manage .NB-menu-manage-rename .NB-menu-manage-image {
    background: transparent url('/media/embed/icons/nouns/rename.svg') no-repeat 0 0;
    background-size: 18px;
}

.NB-menu-manage .NB-menu-manage-rename.NB-active .NB-menu-manage-image {
    background: transparent url('/media/embed/icons/nouns/accept.svg') no-repeat 0 0;
    background-size: 16px;
    filter: hue-rotate(20deg) saturate(18);
}

.NB-menu-manage .NB-menu-manage-rename.NB-menu-manage-feed-rename-cancel .NB-menu-manage-image {
    background: transparent url('/media/embed/icons/nouns/cancel.svg') no-repeat 0 0;
    background-size: 18px;
    filter: hue-rotate(20deg) saturate(18);
}

.NB-menu-manage .NB-menu-manage-story-share .NB-menu-manage-image {
    background: transparent url('/media/embed/icons/nouns/share.svg') no-repeat 0 2px;
    background-size: 16px;
}

.NB-menu-manage .NB-menu-manage-story-share.NB-active .NB-menu-manage-image {
    background: transparent url('/media/embed/icons/nouns/accept.svg') no-repeat 0 0;
    background-size: 16px;
    filter: hue-rotate(20deg) saturate(18);
}

.NB-menu-manage .NB-menu-manage-story-share.NB-menu-manage-story-share-cancel .NB-menu-manage-image {
    background: transparent url('/media/embed/icons/nouns/cancel.svg') no-repeat 0 0;
    background-size: 18px;
    filter: hue-rotate(20deg) saturate(18);
}

.NB-menu-manage .NB-menu-manage-confirm .NB-menu-manage-image {
    background: transparent url('/media/embed/icons/nouns/right.svg') no-repeat 4px 3px;
    background-size: 8px;
}

.NB-menu-manage .NB-menu-manage-confirm {
    overflow: hidden;
    position: relative;
    padding-top: 3px;
    padding-bottom: 2px;
}

.NB-menu-manage .NB-menu-manage-feed-move-confirm {
    padding: 0;
}

.NB-menu-manage .NB-menu-manage-confirm .NB-menu-manage-confirm-position {
    position: absolute;
    bottom: 2px;
    left: 0;
    width: 100%;
}

.NB-menu-manage .NB-menu-manage-confirm select,
.NB-menu-manage .NB-menu-manage-confirm input.NB-menu-manage-title,
.NB-menu-manage .NB-menu-manage-open-input {
    padding: 1px;
    font-size: 11px;
    margin: 2px 0 2px 36px;
    display: block;
    width: 164px;
    float: left;
    height: 15px;
    border: 1px solid #606060;
}

.NB-menu-manage .NB-menu-manage-open-input {
    float: right;
    margin: 4px 8px 0 0;
}

.NB-menu-manage .NB-menu-manage-confirm select {
    height: auto;
}

.NB-menu-manage li.NB-menu-item.NB-menu-manage-confirm:hover {
    background-color: #BAE3A8;
    cursor: default;
}

.NB-menu-manage .NB-menu-manage-confirm input.NB-menu-manage-title,
.NB-menu-manage .NB-menu-manage-confirm:hover input.NB-menu-manage-title {
    text-shadow: none;
}

.NB-menu-manage .NB-modal-submit-button {
    margin: 4px 4px 0 0;
}

.NB-menu-manage .NB-menu-manage-confirm .NB-modal-submit-button {
    margin: 2px 4px 2px 0;
}

.NB-menu-manage .NB-modal-submit-button,
.NB-menu-manage .NB-menu-manage-confirm .NB-menu-manage-move-save,
.NB-menu-manage .NB-menu-manage-confirm .NB-menu-manage-rename-save {
    float: right;
    font-size: 10px;
    font-weight: bold;
    color: white;
    padding: 2px 6px;
    background-color: #639510;
    cursor: pointer;
}

.NB-menu-manage .NB-menu-manage-confirm .NB-menu-manage-story-share-save {
    font-size: 10px;
    font-weight: bold;
    color: white;
    padding: 2px 6px;
    margin: 4px 0 0;
    background-color: #639510;
    cursor: pointer;
    text-align: center;
    width: 100%;
}

.NB-menu-manage .NB-menu-manage-confirm .NB-menu-manage-story-share-unshare {
    width: 100%;
    text-align: center;
    margin: 4px 0 0;
}

.NB-menu-manage .NB-menu-manage-confirm .NB-sideoption-save-notes,
.NB-menu-manage .NB-menu-manage-confirm .NB-sideoption-share-comments {
    height: 28px;
}

.NB-menu-manage .NB-menu-manage-confirm .NB-add-folders {
    float: left;
    max-height: 84px;
    overflow-y: auto;
}

.NB-menu-manage .NB-menu-manage-feed-move-save {
    display: none;
}

.NB-menu-manage .NB-menu-manage-feed-move-save {
    float: right;
    display: none;
}

.NB-menu-manage .NB-menu-manage-confirm .NB-change-folders {
    width: 100%;
    height: 84px;
    overflow-y: auto;
}

.NB-menu-manage .NB-change-folders .NB-folders {
    padding: 4px 0;
}

.NB-menu-manage .NB-change-folders .NB-folder-option {
    overflow: hidden;
    clear: both;
    cursor: pointer;
}

.NB-menu-manage .NB-change-folders .NB-folder-option:hover {
    background-color: rgba(0, 4, 0, .1);
}

.NB-menu-manage .NB-change-folders .NB-folder-option .NB-icon,
.NB-menu-manage .NB-change-folders .NB-add-folder-form .NB-icon {
    background: transparent url('/media/embed/icons/nouns/folder-open.svg') no-repeat 0 0;
    width: 16px;
    height: 16px;
    background-size: 16px;
    float: left;
    clear: left;
    margin: 1px 4px;
}

.NB-menu-manage .NB-change-folders .NB-folder-option.NB-folder-option-active .NB-icon {
    background: transparent url('/media/embed/icons/nouns/folder-closed.svg') no-repeat 0 0;
    background-size: 16px;
}

.NB-menu-manage .NB-change-folders .NB-folder-option:hover .NB-icon-add {
    background: transparent url('/media/embed/icons/circular/g_icn_folder_add.png') no-repeat 0 0;
    float: right;
    width: 16px;
    height: 16px;
    margin: 1px 4px 0;
    background-size: 16px;
}

.NB-menu-manage .NB-change-folders .NB-folder-option:hover .NB-icon-add:hover {
    background: transparent url('/media/embed/icons/circular/g_icn_folder_add_dark.png') no-repeat 0 0;
    background-size: 16px;
}

.NB-menu-manage .NB-change-folders .NB-folder-option-title {
    padding: 3px 0 2px;
}

.NB-menu-manage .NB-change-folders .NB-folder-option.NB-folder-option-active .NB-folder-option-title {
    font-weight: bold;
}

.NB-menu-manage .NB-change-folders .NB-input {
    font-size: 11px;
    float: left;
    margin: 0;
}

.NB-menu-manage .NB-change-folders .NB-menu-manage-add-folder-save {
    margin: 0 4px 0 0;
}

.NB-menu-manage .NB-menu-manage-story-share-confirm .NB-sideoption-share {
    overflow: hidden;
    border: none;
}

.NB-menu-manage .NB-menu-manage-story-share-confirm .NB-sideoption-share .NB-modal-submit-button {}

.NB-menu-manage .NB-menu-manage-site-mark-read .NB-menu-manage-image {
    background: transparent url("/media/embed/icons/nouns/mark-read.svg") no-repeat center center;
    background-size: 18px;
    filter: hue-rotate(20deg) saturate(18);
}

.NB-menu-manage .NB-menu-manage-trainer .NB-menu-manage-image {
    background: transparent url("/media/embed/icons/nouns/dialog-trainer.svg") no-repeat center center;
    background-size: 18px;
    filter: hue-rotate(140deg) saturate(15);
}

.NB-menu-manage .NB-menu-manage-goodies .NB-menu-manage-image {
    background: transparent url("/media/embed/icons/nouns/dialog-goodies.svg") no-repeat center center;
    background-size: 18px;
    filter: hue-rotate(186deg) saturate(18);
}

.NB-menu-manage .NB-menu-manage-statistics .NB-menu-manage-image {
    background: transparent url("/media/embed/icons/nouns/dialog-statistics.svg") no-repeat center center;
    background-size: 18px;
    filter: hue-rotate(284deg) saturate(18);
}

.NB-menu-manage .NB-menu-manage-newsletters .NB-menu-manage-image {
    background: transparent url("/media/embed/icons/nouns/email.svg") no-repeat center center;
    background-size: 18px;
    filter: hue-rotate(134deg) saturate(16);
}

.NB-menu-manage .NB-menu-manage-notifications .NB-menu-manage-image {
    background: transparent url("/media/embed/icons/nouns/dialog-notifications.svg") no-repeat center center;
    background-size: 18px;
    filter: hue-rotate(320deg) saturate(18);
}

.NB-menu-manage .NB-menu-manage-import .NB-menu-manage-image {
    background: transparent url("/media/embed/icons/nouns/dialog-import.svg") no-repeat center center;
    background-size: 18px;
    filter: hue-rotate(30deg) saturate(10);
}

.NB-menu-manage .NB-menu-manage-friends .NB-menu-manage-image {
    background: transparent url('/media/embed/icons/nouns/followers.svg') no-repeat 0 0;
    background-size: 18px;
    filter: hue-rotate(139deg) saturate(18.5);
}

.NB-menu-manage .NB-menu-manage-profile-editor .NB-menu-manage-image {
    background: transparent url('/media/embed/icons/nouns/subscribers.svg') no-repeat 0 0;
    background-size: 18px;
    filter: hue-rotate(87deg) saturate(10.5);
}

.NB-menu-manage .NB-menu-manage-preferences .NB-menu-manage-image {
    background: transparent url('/media/embed/icons/nouns/dialog-preferences.svg') no-repeat 0 0;
    background-size: 18px;
    filter: hue-rotate(320deg) saturate(17.5);
}

.NB-menu-manage .NB-menu-manage-theme .NB-menu-manage-image {
    background: transparent url("/media/embed/icons/nouns/menu-theme.svg") no-repeat center center;
    background-size: 18px;
    filter: hue-rotate(130deg) saturate(10);
}

.NB-menu-manage .NB-menu-item.NB-menu-manage-size,
.NB-menu-manage .NB-menu-item.NB-menu-manage-theme,
.NB-menu-manage .NB-menu-item.NB-menu-manage-density,
.NB-menu-manage .NB-menu-item.NB-menu-manage-font {
    padding: 2px 0;
}

.NB-menu-manage .NB-menu-manage-density .segmented-control,
.NB-menu-manage .NB-menu-manage-font .segmented-control,
.NB-menu-manage .NB-menu-manage-size .segmented-control,
.NB-menu-manage .NB-menu-manage-theme .segmented-control {
    margin: 0 6px 0 36px;
    max-width: 300px;
}

.NB-menu-manage .NB-menu-manage-theme .segmented-control li {
    padding: 4px 8px;
}

.NB-menu-manage .NB-menu-manage-font .NB-menu-manage-image {
    background: transparent url("/media/embed/icons/nouns/font.svg") no-repeat center center;
    background-size: 18px;
    filter: hue-rotate(226deg) saturate(10.5);
}

.NB-menu-manage .NB-menu-manage-font .segmented-control li {
    padding: 4px 8px;
}

.NB-menu-manage .NB-menu-manage-size .NB-menu-manage-image {
    background: transparent url("/media/embed/icons/nouns/font-size.svg") no-repeat center center;
    background-size: 18px;
    filter: hue-rotate(40deg) saturate(10.5);
}

.NB-menu-manage .NB-menu-manage-size .segmented-control li {
    font-weight: bold;
}

.NB-menu-manage .NB-menu-manage-size .segmented-control li.NB-options-feed-size-xs {
    font-size: 9px;
    padding: 7px 12px 6px;
}

.NB-menu-manage .NB-menu-manage-size .segmented-control li.NB-options-feed-size-s {
    font-size: 10px;
    padding: 6px 12px 5px;
}

.NB-menu-manage .NB-menu-manage-size .segmented-control li.NB-options-feed-size-m {
    font-size: 12px;
    padding: 5px 12px 4px;
}

.NB-menu-manage .NB-menu-manage-size .segmented-control li.NB-options-feed-size-l {
    font-size: 13px;
    padding: 4px 12px;
}

.NB-menu-manage .NB-menu-manage-size .segmented-control li.NB-options-feed-size-xl {
    font-size: 15px;
    padding: 3px 12px 2px;
}

.NB-menu-manage .NB-menu-manage-density .NB-menu-manage-image {
    background: transparent url("/media/embed/icons/nouns/square-space.svg") no-repeat center center;
    background-size: 18px;
    filter: hue-rotate(126deg) saturate(10.5);
}

.NB-menu-manage .NB-menu-manage-density .segmented-control li.NB-density-option {
    padding: 4px 8px;
}

.NB-menu-manage .NB-menu-manage-account .NB-menu-manage-image {
    background: transparent url('/media/embed/icons/nouns/dialog-account.svg') no-repeat 0 0;
    background-size: 18px;
    filter: hue-rotate(287deg) saturate(10.5);
}

.NB-menu-manage .NB-menu-manage-feedchooser .NB-menu-manage-image {
    background: transparent url('/media/embed/icons/circular/g_icn_mute.png') no-repeat 0 0;
    background-size: 18px;
}

.NB-menu-manage .NB-menu-manage-organizer .NB-menu-manage-image {
    background: transparent url("/media/embed/icons/nouns/dialog-organize.svg") no-repeat center center;
    background-size: 18px;
    filter: hue-rotate(311deg) saturate(16);
}

.NB-menu-manage .NB-menu-manage-premium .NB-menu-manage-image {
    background: transparent url('/media/embed/icons/circular/g_icn_greensun.png') no-repeat 0 0px;
    background-size: 18px;
}

.NB-menu-manage .NB-menu-manage-story-thirdparty .NB-menu-manage-image {
    background: transparent url('/media/embed/icons/nouns/sendto.svg') no-repeat 0 0;
    background-size: 16px;
    filter: hue-rotate(338deg) saturate(18);
}

.NB-menu-manage .NB-menu-manage-story-thirdparty .NB-menu-manage-thirdpartyicon {
    width: 16px;
    height: 16px;
    float: right;
    margin: 0 0 0 0;
    padding: 6px 4px 6px 0;
    background-repeat: no-repeat;
    background-position: center center;
    background-size: 18px;
}

.NB-menu-manage .NB-menu-manage-story-thirdparty .NB-menu-manage-thirdparty-email {
    background-image: url("/media/embed/icons/nouns/email.svg");
    filter: hue-rotate(134deg) saturate(16);
    margin-right: 4px;
}

.NB-menu-manage .NB-menu-manage-story-thirdparty .NB-menu-manage-thirdparty-instapaper {
    background-image: url('/media/embed/reader/instapaper.png');
}

.NB-menu-manage .NB-menu-manage-story-thirdparty .NB-menu-manage-thirdparty-readitlater {
    background-image: url('/media/embed/reader/pocket.png');
}

.NB-menu-manage .NB-menu-manage-story-thirdparty .NB-menu-manage-thirdparty-linkedin {
    background-image: url('/media/embed/reader/linkedin.jpg');
}

.NB-menu-manage .NB-menu-manage-story-thirdparty .NB-menu-manage-thirdparty-whatsapp {
    background-image: url('/media/embed/reader/whatsapp.png');
}

.NB-menu-manage .NB-menu-manage-story-thirdparty .NB-menu-manage-thirdparty-bluesky {
    background-image: url('/media/embed/reader/bluesky.svg');
}

.NB-menu-manage .NB-menu-manage-story-thirdparty .NB-menu-manage-thirdparty-mastodon {
    background-image: url('/media/embed/welcome/mastodon_logo.svg');
}

.NB-menu-manage .NB-menu-manage-story-thirdparty .NB-menu-manage-thirdparty-livejournal {
    background-image: url('/media/embed/reader/livejournal.png');
}

.NB-menu-manage .NB-menu-manage-story-thirdparty .NB-menu-manage-thirdparty-hackernews {
    background-image: url('/media/embed/reader/hackernews.png');
}

.NB-menu-manage .NB-menu-manage-story-thirdparty .NB-menu-manage-thirdparty-flipboard {
    background-image: url('/media/embed/reader/flipboard.jpg');
}

.NB-menu-manage .NB-menu-manage-story-thirdparty .NB-menu-manage-thirdparty-lineme {
    background-image: url('/media/embed/reader/lineme.png');
}

.NB-menu-manage .NB-menu-manage-story-thirdparty .NB-menu-manage-thirdparty-telegram {
    background-image: url('/media/embed/reader/telegram.png');
}

.NB-menu-manage .NB-menu-manage-story-thirdparty .NB-menu-manage-thirdparty-copyurl {
    background-image: url('/media/embed/reader/copyurl.png');
}

.NB-menu-manage .NB-menu-manage-story-thirdparty .NB-menu-manage-thirdparty-copytext {
    background-image: url('/media/embed/reader/copytext.png');
}

.NB-menu-manage .NB-menu-manage-story-thirdparty .NB-menu-manage-thirdparty-pdf {
    background-image: url('/media/embed/reader/pdf.png');
}

.NB-menu-manage .NB-menu-manage-story-thirdparty .NB-menu-manage-thirdparty-print {
    background-image: url('/media/embed/reader/print.png');
}

.NB-menu-manage .NB-menu-manage-story-thirdparty .NB-menu-manage-thirdparty-tumblr {
    background-image: url('/media/embed/reader/tumblr.png');
}

.NB-menu-manage .NB-menu-manage-story-thirdparty .NB-menu-manage-thirdparty-blogger {
    background-image: url('/media/embed/reader/blogger.png');
}

.NB-menu-manage .NB-menu-manage-story-thirdparty .NB-menu-manage-thirdparty-delicious {
    background-image: url('/media/embed/reader/delicious.png');
}

.NB-menu-manage .NB-menu-manage-story-thirdparty .NB-menu-manage-thirdparty-pinboard {
    background-image: url('/media/embed/reader/pinboard.png');
}

.NB-menu-manage .NB-menu-manage-story-thirdparty .NB-menu-manage-thirdparty-raindrop {
    background-image: url('/media/embed/reader/raindrop.svg');
}

.NB-menu-manage .NB-menu-manage-story-thirdparty .NB-menu-manage-thirdparty-pinterest {
    background-image: url('/media/embed/reader/pinterest.png');
}

.NB-menu-manage .NB-menu-manage-story-thirdparty .NB-menu-manage-thirdparty-buffer {
    background-image: url('/media/embed/reader/buffer.png');
}

.NB-menu-manage .NB-menu-manage-story-thirdparty .NB-menu-manage-thirdparty-diigo {
    background-image: url('/media/embed/reader/diigo.png');
}

.NB-menu-manage .NB-menu-manage-story-thirdparty .NB-menu-manage-thirdparty-evernote {
    background-image: url('/media/embed/reader/evernote.png');
}

.NB-menu-manage .NB-menu-manage-story-thirdparty .NB-menu-manage-thirdparty-googleplus {
    background-image: url('/media/embed/reader/googleplus.png');
}

.NB-menu-manage .NB-menu-manage-story-thirdparty .NB-menu-manage-thirdparty-email {
    background-image: url("/media/embed/icons/nouns/email.svg");
    filter: hue-rotate(134deg) saturate(16);
}

.NB-menu-manage .NB-menu-manage-story-thirdparty .NB-menu-manage-thirdparty-twitter {
    background-image: url('/media/embed/reader/twitter.png');
}

.NB-menu-manage .NB-menu-manage-story-thirdparty .NB-menu-manage-thirdparty-facebook {
    background-image: url('/media/embed/reader/facebook.png');
}

.NB-menu-manage .NB-menu-manage-story-thirdparty .NB-menu-manage-thirdparty-reddit {
    background-image: url('/media/embed/reader/reddit.png');
}

.NB-menu-manage .NB-menu-manage-story-thirdparty .NB-menu-manage-thirdparty-readwise {
    background-image: url('/media/embed/reader/readwise.png');
}

.NB-menu-manage .NB-menu-manage-story-thirdparty .NB-menu-manage-thirdpartyicon {
    opacity: .2;
}

.NB-menu-manage .NB-menu-manage-story-thirdparty .NB-menu-manage-thirdparty-email {
    opacity: 1;
}

.NB-menu-manage .NB-menu-manage-story-thirdparty.NB-menu-manage-highlight-twitter .NB-menu-manage-thirdparty-email,
.NB-menu-manage .NB-menu-manage-story-thirdparty.NB-menu-manage-highlight-facebook .NB-menu-manage-thirdparty-email,
.NB-menu-manage .NB-menu-manage-story-thirdparty.NB-menu-manage-highlight-reddit .NB-menu-manage-thirdparty-email,
.NB-menu-manage .NB-menu-manage-story-thirdparty.NB-menu-manage-highlight-readitlater .NB-menu-manage-thirdparty-email,
.NB-menu-manage .NB-menu-manage-story-thirdparty.NB-menu-manage-highlight-linkedin .NB-menu-manage-thirdparty-email,
.NB-menu-manage .NB-menu-manage-story-thirdparty.NB-menu-manage-highlight-whatsapp .NB-menu-manage-thirdparty-email,
.NB-menu-manage .NB-menu-manage-story-thirdparty.NB-menu-manage-highlight-bluesky .NB-menu-manage-thirdparty-email,
.NB-menu-manage .NB-menu-manage-story-thirdparty.NB-menu-manage-highlight-mastodon .NB-menu-manage-thirdparty-email,
.NB-menu-manage .NB-menu-manage-story-thirdparty.NB-menu-manage-highlight-livejournal .NB-menu-manage-thirdparty-email,
.NB-menu-manage .NB-menu-manage-story-thirdparty.NB-menu-manage-highlight-hackernews .NB-menu-manage-thirdparty-email,
.NB-menu-manage .NB-menu-manage-story-thirdparty.NB-menu-manage-highlight-flipboard .NB-menu-manage-thirdparty-email,
.NB-menu-manage .NB-menu-manage-story-thirdparty.NB-menu-manage-highlight-lineme .NB-menu-manage-thirdparty-email,
.NB-menu-manage .NB-menu-manage-story-thirdparty.NB-menu-manage-highlight-telegram .NB-menu-manage-thirdparty-email,
.NB-menu-manage .NB-menu-manage-story-thirdparty.NB-menu-manage-highlight-copyurl .NB-menu-manage-thirdparty-email,
.NB-menu-manage .NB-menu-manage-story-thirdparty.NB-menu-manage-highlight-copytext .NB-menu-manage-thirdparty-email,
.NB-menu-manage .NB-menu-manage-story-thirdparty.NB-menu-manage-highlight-print .NB-menu-manage-thirdparty-email,
.NB-menu-manage .NB-menu-manage-story-thirdparty.NB-menu-manage-highlight-pdf .NB-menu-manage-thirdparty-email,
.NB-menu-manage .NB-menu-manage-story-thirdparty.NB-menu-manage-highlight-tumblr .NB-menu-manage-thirdparty-email,
.NB-menu-manage .NB-menu-manage-story-thirdparty.NB-menu-manage-highlight-blogger .NB-menu-manage-thirdparty-email,
.NB-menu-manage .NB-menu-manage-story-thirdparty.NB-menu-manage-highlight-delicious .NB-menu-manage-thirdparty-email,
.NB-menu-manage .NB-menu-manage-story-thirdparty.NB-menu-manage-highlight-pinboard .NB-menu-manage-thirdparty-email,
.NB-menu-manage .NB-menu-manage-story-thirdparty.NB-menu-manage-highlight-raindrop .NB-menu-manage-thirdparty-email,
.NB-menu-manage .NB-menu-manage-story-thirdparty.NB-menu-manage-highlight-pinterest .NB-menu-manage-thirdparty-email,
.NB-menu-manage .NB-menu-manage-story-thirdparty.NB-menu-manage-highlight-buffer .NB-menu-manage-thirdparty-email,
.NB-menu-manage .NB-menu-manage-story-thirdparty.NB-menu-manage-highlight-diigo .NB-menu-manage-thirdparty-email,
.NB-menu-manage .NB-menu-manage-story-thirdparty.NB-menu-manage-highlight-evernote .NB-menu-manage-thirdparty-email,
.NB-menu-manage .NB-menu-manage-story-thirdparty.NB-menu-manage-highlight-googleplus .NB-menu-manage-thirdparty-email,
.NB-menu-manage .NB-menu-manage-story-thirdparty.NB-menu-manage-highlight-instapaper .NB-menu-manage-thirdparty-email,
.NB-menu-manage .NB-menu-manage-story-thirdparty.NB-menu-manage-highlight-readwise .NB-menu-manage-thirdparty-email {
    opacity: .2;
}

.NB-menu-manage .NB-menu-manage-story-thirdparty.NB-menu-manage-highlight-twitter .NB-menu-manage-thirdparty-twitter {
    opacity: 1;
}

.NB-menu-manage .NB-menu-manage-story-thirdparty.NB-menu-manage-highlight-facebook .NB-menu-manage-thirdparty-facebook {
    opacity: 1;
}

.NB-menu-manage .NB-menu-manage-story-thirdparty.NB-menu-manage-highlight-reddit .NB-menu-manage-thirdparty-reddit {
    opacity: 1;
}

.NB-menu-manage .NB-menu-manage-story-thirdparty.NB-menu-manage-highlight-readitlater .NB-menu-manage-thirdparty-readitlater {
    opacity: 1;
}

.NB-menu-manage .NB-menu-manage-story-thirdparty.NB-menu-manage-highlight-linkedin .NB-menu-manage-thirdparty-linkedin {
    opacity: 1;
}

.NB-menu-manage .NB-menu-manage-story-thirdparty.NB-menu-manage-highlight-whatsapp .NB-menu-manage-thirdparty-whatsapp {
    opacity: 1;
}

.NB-menu-manage .NB-menu-manage-story-thirdparty.NB-menu-manage-highlight-bluesky .NB-menu-manage-thirdparty-bluesky {
    opacity: 1;
}

.NB-menu-manage .NB-menu-manage-story-thirdparty.NB-menu-manage-highlight-mastodon .NB-menu-manage-thirdparty-mastodon {
    opacity: 1;
}

.NB-menu-manage .NB-menu-manage-story-thirdparty.NB-menu-manage-highlight-livejournal .NB-menu-manage-thirdparty-livejournal {
    opacity: 1;
}

.NB-menu-manage .NB-menu-manage-story-thirdparty.NB-menu-manage-highlight-hackernews .NB-menu-manage-thirdparty-hackernews {
    opacity: 1;
}

.NB-menu-manage .NB-menu-manage-story-thirdparty.NB-menu-manage-highlight-flipboard .NB-menu-manage-thirdparty-flipboard {
    opacity: 1;
}

.NB-menu-manage .NB-menu-manage-story-thirdparty.NB-menu-manage-highlight-lineme .NB-menu-manage-thirdparty-lineme {
    opacity: 1;
}

.NB-menu-manage .NB-menu-manage-story-thirdparty.NB-menu-manage-highlight-telegram .NB-menu-manage-thirdparty-telegram {
    opacity: 1;
}

.NB-menu-manage .NB-menu-manage-story-thirdparty.NB-menu-manage-highlight-copyurl .NB-menu-manage-thirdparty-copyurl {
    opacity: 1;
}

.NB-menu-manage .NB-menu-manage-story-thirdparty.NB-menu-manage-highlight-copytext .NB-menu-manage-thirdparty-copytext {
    opacity: 1;
}

.NB-menu-manage .NB-menu-manage-story-thirdparty.NB-menu-manage-highlight-print .NB-menu-manage-thirdparty-print {
    opacity: 1;
}

.NB-menu-manage .NB-menu-manage-story-thirdparty.NB-menu-manage-highlight-pdf .NB-menu-manage-thirdparty-pdf {
    opacity: 1;
}

.NB-menu-manage .NB-menu-manage-story-thirdparty.NB-menu-manage-highlight-tumblr .NB-menu-manage-thirdparty-tumblr {
    opacity: 1;
}

.NB-menu-manage .NB-menu-manage-story-thirdparty.NB-menu-manage-highlight-blogger .NB-menu-manage-thirdparty-blogger {
    opacity: 1;
}

.NB-menu-manage .NB-menu-manage-story-thirdparty.NB-menu-manage-highlight-delicious .NB-menu-manage-thirdparty-delicious {
    opacity: 1;
}

.NB-menu-manage .NB-menu-manage-story-thirdparty.NB-menu-manage-highlight-pinboard .NB-menu-manage-thirdparty-pinboard {
    opacity: 1;
}

.NB-menu-manage .NB-menu-manage-story-thirdparty.NB-menu-manage-highlight-raindrop .NB-menu-manage-thirdparty-raindrop {
    opacity: 1;
}

.NB-menu-manage .NB-menu-manage-story-thirdparty.NB-menu-manage-highlight-pinterest .NB-menu-manage-thirdparty-pinterest {
    opacity: 1;
}

.NB-menu-manage .NB-menu-manage-story-thirdparty.NB-menu-manage-highlight-buffer .NB-menu-manage-thirdparty-buffer {
    opacity: 1;
}

.NB-menu-manage .NB-menu-manage-story-thirdparty.NB-menu-manage-highlight-diigo .NB-menu-manage-thirdparty-diigo {
    opacity: 1;
}

.NB-menu-manage .NB-menu-manage-story-thirdparty.NB-menu-manage-highlight-evernote .NB-menu-manage-thirdparty-evernote {
    opacity: 1;
}

.NB-menu-manage .NB-menu-manage-story-thirdparty.NB-menu-manage-highlight-googleplus .NB-menu-manage-thirdparty-googleplus {
    opacity: 1;
}

.NB-menu-manage .NB-menu-manage-story-thirdparty.NB-menu-manage-highlight-instapaper .NB-menu-manage-thirdparty-instapaper {
    opacity: 1;
}

.NB-menu-manage .NB-menu-manage-story-thirdparty.NB-menu-manage-highlight-readwise .NB-menu-manage-thirdparty-readwise {
    opacity: 1;
}

.NB-menu-manage .NB-menu-manage-story-thirdparty.NB-menu-manage-highlight-email .NB-menu-manage-thirdparty-email {
    opacity: 1;
}

.NB-menu-manage .NB-menu-manage-story-unread .NB-menu-manage-image {
    background: transparent url('/media/embed/icons/nouns/indicator-unread.svg') no-repeat 4px center;
    background-size: 8px;
}

.NB-menu-manage .NB-menu-manage-story-read .NB-menu-manage-image {
    background: transparent url('/media/embed/icons/nouns/indicator-unread.svg') no-repeat 4px center;
    background-size: 8px;
    opacity: 0.2;
}

.NB-menu-manage .NB-menu-manage-story-star .NB-menu-manage-image {
    background: transparent url('/media/embed/icons/nouns/saved-stories.svg') no-repeat 0 0;
    background-size: 16px;
}

.NB-menu-manage .NB-menu-manage-story-open .NB-menu-manage-image {
    background: transparent url('/media/embed/icons/nouns/link.svg') no-repeat 0 0;
    background-size: 16px;
    filter: hue-rotate(168deg) saturate(18);
}

.NB-menu-manage.NB-story-starred .NB-menu-manage-story-star .NB-menu-manage-image {
    background: transparent url('/media/embed/icons/nouns/saved-stories.svg') no-repeat 0 0;
    background-size: 16px;
    opacity: .55;
}

.NB-menu-manage .NB-menu-manage-confirm,
.NB-menu-manage .NB-menu-manage-delete-confirm {
    display: none;
}

/* Mute duration slider in manage menu */
.NB-menu-manage .NB-menu-manage-feed-mute-confirm {
    display: none;
}

.NB-menu-manage .NB-menu-manage-feed-mute-confirm .NB-menu-manage-confirm-position {
    position: static;
}

.NB-menu-manage .NB-mute-slider-container {
    margin: 4px 12px 6px 26px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.NB-menu-manage .NB-mute-slider {
    flex: 1;
    height: 6px;
    -webkit-appearance: none;
    appearance: none;
    background: #ddd;
    border-radius: 3px;
    outline: none;
    cursor: pointer;
    margin: 0;
}

.NB-menu-manage .NB-mute-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    background: #4a90d9;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.NB-menu-manage .NB-mute-slider::-moz-range-thumb {
    width: 16px;
    height: 16px;
    background: #4a90d9;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.NB-menu-manage .NB-mute-buttons {
    display: flex;
    flex-direction: column;
    gap: 4px;
    align-items: center;
}

.NB-menu-manage .NB-mute-forever-save {
    font-size: 11px;
    text-align: center;
    padding: 3px 8px;
    white-space: nowrap;
}

.NB-menu-manage .NB-mute-slider-save {
    font-size: 11px;
    text-align: center;
    padding: 3px 8px;
}

.NB-mute-time-remaining {
    font-size: 10px;
    color: #808080;
    font-weight: normal;
    margin-left: 4px;
}

.NB-menu-manage .NB-menu-manage-controls {
    overflow: hidden;
    background: none;
    padding: 2px 0 3px;
}

.NB-menu-manage li.NB-menu-manage-controls:hover {
    overflow: hidden;
    background: none;
    cursor: default;
}

.NB-menu-manage .NB-menu-manage-controls .segmented-control {
    display: inline-block;
    margin: 4px 0 0 36px;
    height: 14px;
    width: auto;
    color: white;
    overflow: hidden;
    text-align: center;
}

.NB-menu-manage .NB-menu-manage-controls .segmented-control:last-child {}

.NB-menu-manage .NB-menu-manage-controls .segmented-control li {
    clear: none;
    padding: 1px 12px 0;
    font-size: 10px;
}

/* =================== */
/* = Ask AI Menu     = */
/* =================== */

.NB-menu-ask-ai-container {
    z-index: 10;
    position: absolute;
    display: none;
    width: 360px;
    padding: 0;
    margin: 0;
    background-color: #EAECE6;
    border: 1px solid #90928B;
    -webkit-box-shadow: 2px 2px 5px rgba(94, 98, 103, 0.5);
    -moz-box-shadow: 2px 2px 5px rgba(94, 98, 103, 0.5);
    box-shadow: 2px 2px 5px rgba(94, 98, 103, 0.5);
    border-radius: 6px;
}

.NB-menu-ask-ai-container.NB-inverse {
    background-color: #F1F3EC;
}

.NB-menu-ask-ai-options {
    list-style: none;
    font-size: 13px;
    margin: 0;
    padding: 8px 0;
    position: relative;
}

.NB-menu-ask-ai-option,
.NB-menu-ask-ai-group {
    margin: 0;
    padding: 10px 16px;
    cursor: pointer;
    clear: both;
    position: relative;
    background-color: white;
    transition: background-color 0.25s ease, transform 0.25s ease;
    display: flex;
    align-items: center;
    gap: 10px;
}

.NB-menu-ask-ai-group {
    flex-direction: column;
    align-items: stretch;
    padding: 12px 12px 4px 12px;
    cursor: default;
    gap: 0;
}

.NB-menu-ask-ai-group-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: -12px -12px 4px -12px;
    padding: 12px;
    border-radius: 4px 4px 0 0;
    font-weight: 600;
    color: #5E6267;
    transition: background-color 0.25s ease, color 0.25s ease;
}

/* Highlight Summarize header row when hovering over Brief/Medium/Detailed segments */
.NB-menu-ask-ai-group:has(.NB-menu-ask-ai-segment:hover) .NB-menu-ask-ai-group-header {
    background-color: #ECEEEA;
    color: #303030;
}

.NB-menu-ask-ai-group:has(.NB-menu-ask-ai-segment:hover) .NB-menu-ask-ai-group-header .NB-menu-ask-ai-icon {
    filter: grayscale(0%) brightness(1);
}

.NB-menu-ask-ai-option:hover {
    background-color: #ECEEEA;
}

.NB-menu-ask-ai-option:active {
    background-color: #ACB2A6;
}

.NB-menu-ask-ai-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    filter: grayscale(100%) brightness(0.6);
    transition: filter 0.25s ease;
}

.NB-menu-ask-ai-option:hover .NB-menu-ask-ai-icon {
    filter: grayscale(0%) brightness(1);
}

.NB-menu-ask-ai-text {
    flex: 1;
}

/* Segmented Control for Summarize Options */
.NB-menu-ask-ai-segmented-control {
    display: flex;
    gap: 8px;
    background-color: #F8F9F6;
    padding: 4px;
    border-radius: 6px;
    margin-left: 28px;
    /* Indent to align with "Summarize" text (18px icon + 10px gap) */
}

.NB-menu-ask-ai-segment {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 10px 8px;
    background-color: white;
    border: 1px solid #D0D2CC;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.25s ease;
}

.NB-menu-ask-ai-segment:hover {
    background-color: #ECEEEA;
    border-color: #90928B;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.NB-menu-ask-ai-segment:active {
    background-color: #ACB2A6;
    transform: translateY(0);
}

.NB-menu-ask-ai-segment-icon {
    width: 20px;
    height: 20px;
    filter: grayscale(100%) brightness(0.6);
    transition: filter 0.25s ease;
}

.NB-menu-ask-ai-segment:hover .NB-menu-ask-ai-segment-icon {
    filter: grayscale(0%) brightness(1);
}

.NB-menu-ask-ai-segment-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    text-align: center;
}

.NB-menu-ask-ai-segment-text {
    font-size: 12px;
    font-weight: 600;
    color: #5E6267;
}

.NB-menu-ask-ai-segment-detail {
    font-size: 10px;
    color: #90928B;
}

/* Custom Question Input in Menu */
.NB-menu-ask-ai-custom-input-wrapper {
    display: flex;
    gap: 8px;
    padding: 10px;
    background-color: #F8F9F6;
    border-top: 1px solid #D0D2CC;
    border-bottom-left-radius: 6px;
    border-bottom-right-radius: 6px;
}

.NB-menu-ask-ai-custom-input {
    flex: 1;
    min-width: 0;
    padding: 8px 12px;
    border: 1px solid #D0D2CC;
    border-radius: 4px;
    font-size: 13px;
    background-color: white;
}

.NB-menu-ask-ai-custom-input:focus {
    outline: none;
    border-color: #90928B;
}

.NB-menu-ask-ai-custom-input::placeholder {
    color: #B0B2AC;
    font-style: italic;
}

/* Ask split button menu */
.NB-menu-ask-ai-submit-menu {
    position: relative;
    display: inline-flex;
    align-items: stretch;
    flex-shrink: 0;
}

.NB-menu-ask-ai-submit-menu .NB-menu-ask-ai-custom-submit {
    padding: 8px 14px;
    font-size: 13px;
    font-weight: 600;
    background-color: #6BA562;
    border: none;
    border-radius: 4px 0 0 4px;
    color: white;
    cursor: pointer;
    transition: all 0.15s ease;
}

.NB-menu-ask-ai-submit-menu .NB-menu-ask-ai-custom-submit:hover {
    background-color: #5A9452;
}

.NB-menu-ask-ai-submit-menu .NB-menu-ask-ai-submit-dropdown-trigger {
    padding: 8px 10px;
    background-color: #6BA562;
    border: none;
    border-left: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 0 4px 4px 0;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    transition: all 0.15s ease;
}

.NB-menu-ask-ai-submit-menu .NB-menu-ask-ai-submit-dropdown-trigger:hover {
    background-color: #5A9452;
}

.NB-menu-ask-ai-submit-menu .NB-dropdown-arrow {
    font-size: 10px;
    opacity: 0.9;
}

/* Disabled state - faded green to match active state but look inactive */
.NB-menu-ask-ai-submit-menu.NB-disabled .NB-menu-ask-ai-custom-submit {
    background-color: #9DBF96;
    color: rgba(255, 255, 255, 0.6);
    cursor: default;
    pointer-events: none;
}

.NB-menu-ask-ai-submit-menu.NB-disabled .NB-menu-ask-ai-custom-submit:hover {
    background-color: #9DBF96;
}


/* Model dropdown */
.NB-menu-ask-ai-submit-menu .NB-menu-ask-ai-model-dropdown {
    position: absolute;
    bottom: 100%;
    right: 0;
    margin-bottom: 4px;
    background-color: white;
    border: 1px solid #D0D2CC;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    min-width: 230px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(4px);
    transition: all 0.15s ease;
    z-index: 100;
}

.NB-menu-ask-ai-submit-menu.NB-dropdown-open .NB-menu-ask-ai-model-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.NB-menu-ask-ai-voice-button {
    min-width: 36px;
    padding: 2px 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: white;
    border: 1px solid #D0D2CC;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.NB-menu-ask-ai-voice-button:hover {
    background-color: #F4F6F3;
    border-color: #90928B;
}

.NB-menu-ask-ai-voice-button.NB-recording {
    background-color: #FF6B6B;
    border-color: #FF6B6B;
    animation: pulse 1.5s ease-in-out infinite;
}

.NB-menu-ask-ai-voice-button.NB-transcribing {
    background-color: #4ECDC4;
    border-color: #4ECDC4;
}

.NB-menu-ask-ai-voice-icon {
    width: 18px;
    height: 18px;
    display: block;
}

.NB-menu-ask-ai-voice-button.NB-recording .NB-menu-ask-ai-voice-icon,
.NB-menu-ask-ai-voice-button.NB-transcribing .NB-menu-ask-ai-voice-icon {
    filter: brightness(0) invert(1);
}

/* Recording Indicator */
.NB-menu-ask-ai-recording-indicator {
    display: none;
    align-items: flex-end;
    gap: 2px;
    height: 20px;
}

.NB-menu-ask-ai-voice-button.NB-recording .NB-menu-ask-ai-recording-indicator {
    display: flex;
}

.NB-menu-ask-ai-voice-button.NB-recording .NB-menu-ask-ai-voice-icon {
    display: none;
}

.NB-recording-bar {
    width: 3px;
    background-color: white;
    border-radius: 2px;
    animation: recording-wave 0.8s ease-in-out infinite;
}

.NB-recording-bar:nth-child(1) {
    animation-delay: 0s;
}

.NB-recording-bar:nth-child(2) {
    animation-delay: 0.1s;
}

.NB-recording-bar:nth-child(3) {
    animation-delay: 0.2s;
}

.NB-recording-bar:nth-child(4) {
    animation-delay: 0.3s;
}

@keyframes recording-wave {
    0%, 100% {
        height: 5px;
    }

    50% {
        height: 18px;
    }
}

.NB-menu-ask-ai-option:first-child {
    border-top-left-radius: 4px;
    border-top-right-radius: 4px;
}

.NB-menu-ask-ai-option:last-child {
    border-bottom-left-radius: 4px;
    border-bottom-right-radius: 4px;
}

/* Thinking Toggle - inside model dropdown */
.NB-thinking-toggle-wrapper {
    display: flex;
    justify-content: center;
    padding: 8px 10px;
    border-top: 1px solid #E8EAE4;
    border-radius: 0 0 5px 5px;
}

.NB-thinking-toggle-segmented {
    display: inline-flex;
    background-color: #E8EAE4;
    border-radius: 6px;
    padding: 2px;
    gap: 2px;
    flex: 1;
}

.NB-thinking-toggle-option {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    flex: 1;
    padding: 5px 14px;
    font-size: 12px;
    font-weight: 500;
    color: #808080;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.15s ease;
    user-select: none;
}

.NB-thinking-toggle-option:hover {
    color: #505050;
    background-color: rgba(255, 255, 255, 0.5);
}

.NB-thinking-toggle-option.NB-selected {
    background-color: white;
    color: #303030;
    font-weight: 600;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.NB-thinking-toggle-icon {
    width: 14px;
    height: 14px;
}

/* =================== */
/* = Ask AI Pane     = */
/* =================== */

.right-east {
    background-color: #F4F6F3;
    overflow-y: auto;
}

.NB-story-ask-ai-pane-content {
    height: 100%;
}

.NB-story-ask-ai-pane {
    height: 100%;
    background-color: #F4F6F3;
    display: flex;
    flex-direction: column;
}

.NB-story-ask-ai-header {
    background: linear-gradient(to bottom, #FFFFFF 0%, #F1F3EC 100%);
    border-bottom: 1px solid #D0D2CC;
    padding: 12px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.NB-story-ask-ai-title {
    font-size: 16px;
    font-weight: bold;
    color: #333;
}

.NB-story-ask-ai-close {
    width: 24px;
    height: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 3px;
    transition: background-color 0.1s ease;
}

.NB-story-ask-ai-close:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

.NB-story-ask-ai-close .NB-icon {
    width: 16px;
    height: 16px;
    background: url('/media/embed/icons/nouns/close.svg') no-repeat center center;
    background-size: 12px;
}

.NB-story-ask-ai-content {
    padding: 16px;
    flex: 1;
    overflow-y: auto;
}

.NB-story-ask-ai-question {
    margin-bottom: 16px;
    padding: 12px;
    background-color: #FFFFFF;
    border: 1px solid #E0E2DC;
    border-radius: 4px;
    font-size: 13px;
    line-height: 1.5;
}

.NB-story-ask-ai-custom-input-wrapper {
    margin-bottom: 16px;
    display: flex;
    gap: 8px;
}

.NB-story-ask-ai-custom-input {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #D0D2CC;
    border-radius: 3px;
    font-size: 13px;
}

.NB-story-ask-ai-submit {
    padding: 8px 16px;
    font-size: 13px;
}

.NB-story-ask-ai-followup-wrapper {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #E0E2DC;
}

.NB-story-ask-ai-input-row {
    display: flex;
    gap: 8px;
    align-items: center;
}

.NB-story-ask-ai-followup-input {
    flex: 1;
    min-width: 60px;
    padding: 7px 12px;
    border: 1px solid #D0D2CC;
    border-radius: 4px;
    font-size: 12px;
    box-sizing: border-box;
}

/* Re-ask menu with hover dropdown */
.NB-story-ask-ai-reask-menu {
    position: relative;
    flex-shrink: 0;
    display: inline-flex;
    align-items: stretch;
}

.NB-story-ask-ai-reask-button {
    padding: 7px 12px;
    font-size: 12px;
    border-radius: 4px;
    background-color: transparent;
    border: 1px solid #B0B2AC;
    color: #505050;
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    transition: all 0.15s ease;
    box-sizing: border-box;
}

.NB-story-ask-ai-reask-button:hover {
    background-color: #F0F2EC;
    border-color: #808080;
    color: #303030;
}

.NB-story-ask-ai-reask-button .NB-dropdown-arrow {
    font-size: 10px;
    opacity: 0.6;
}

/* Send menu with split button */
.NB-story-ask-ai-send-menu {
    position: relative;
    flex-shrink: 0;
    display: inline-flex;
    align-items: stretch;
}

.NB-story-ask-ai-send-menu .NB-story-ask-ai-send-button {
    padding: 7px 12px;
    font-size: 12px;
    background-color: #4A90A4;
    border: 1px solid #4A90A4;
    border-radius: 4px 0 0 4px;
    color: white;
    cursor: pointer;
    transition: all 0.15s ease;
    margin: 0;
    box-shadow: none;
    box-sizing: border-box;
}

.NB-story-ask-ai-send-menu .NB-story-ask-ai-send-button:hover {
    background-color: #3A7A8A;
}

.NB-story-ask-ai-send-menu .NB-story-ask-ai-send-dropdown-trigger {
    padding: 7px 10px;
    background-color: #4A90A4;
    border: 1px solid #4A90A4;
    border-left: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 0 4px 4px 0;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    transition: all 0.15s ease;
    box-sizing: border-box;
}

.NB-story-ask-ai-send-menu .NB-story-ask-ai-send-dropdown-trigger:hover {
    background-color: #3A7A8A;
}

.NB-story-ask-ai-send-dropdown-trigger .NB-dropdown-arrow {
    font-size: 8px;
    opacity: 0.9;
}

/* Send dropdown (click to open) */
.NB-story-ask-ai-send-menu .NB-story-ask-ai-model-dropdown {
    opacity: 0;
    visibility: hidden;
}

.NB-story-ask-ai-send-menu.NB-dropdown-open .NB-story-ask-ai-model-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Finish recording menu with split button */
.NB-story-ask-ai-finish-recording-menu {
    position: relative;
    flex-shrink: 0;
    display: inline-flex;
    align-items: stretch;
}

.NB-story-ask-ai-finish-recording-menu .NB-story-ask-ai-finish-recording-button {
    padding: 7px 12px;
    font-size: 12px;
    background-color: #C45A47;
    border: 1px solid #C45A47;
    border-radius: 4px 0 0 4px;
    color: white;
    cursor: pointer;
    transition: all 0.15s ease;
    margin: 0;
    box-shadow: none;
    box-sizing: border-box;
}

.NB-story-ask-ai-finish-recording-menu .NB-story-ask-ai-finish-recording-button:hover {
    background-color: #A44A37;
}

.NB-story-ask-ai-finish-recording-menu .NB-story-ask-ai-finish-recording-dropdown-trigger {
    padding: 7px 10px;
    background-color: #C45A47;
    border: 1px solid #C45A47;
    border-left: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 0 4px 4px 0;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    transition: all 0.15s ease;
    box-sizing: border-box;
}

.NB-story-ask-ai-finish-recording-menu .NB-story-ask-ai-finish-recording-dropdown-trigger:hover {
    background-color: #A44A37;
}

.NB-story-ask-ai-finish-recording-dropdown-trigger .NB-dropdown-arrow {
    font-size: 8px;
    opacity: 0.9;
}

/* Finish recording dropdown (click to open) */
.NB-story-ask-ai-finish-recording-menu .NB-story-ask-ai-model-dropdown {
    opacity: 0;
    visibility: hidden;
}

.NB-story-ask-ai-finish-recording-menu.NB-dropdown-open .NB-story-ask-ai-model-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Model dropdown */
.NB-story-ask-ai-model-dropdown {
    position: absolute;
    bottom: 100%;
    right: 0;
    margin-bottom: 4px;
    background-color: white;
    border: 1px solid #D0D2CC;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    min-width: 250px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(4px);
    transition: all 0.15s ease;
    z-index: 100;
}

.NB-story-ask-ai-reask-menu:hover .NB-story-ask-ai-model-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.NB-model-option {
    padding: 10px 14px;
    font-size: 12px;
    color: #404040;
    cursor: pointer;
    transition: background-color 0.1s ease;
}

.NB-model-option:first-child {
    border-radius: 5px 5px 0 0;
}

.NB-model-option:last-child {
    border-radius: 0 0 5px 5px;
}

.NB-model-option:hover {
    background-color: #F4F6F3;
}

.NB-model-option.NB-selected {
    background-color: #E8F0F8;
    color: #2060A0;
    font-weight: 600;
}

.NB-model-option.NB-selected:hover {
    background-color: #D8E8F4;
}

.NB-provider-pill {
    display: inline-block;
    padding: 2px 6px;
    margin-right: 6px;
    border-radius: 3px;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    vertical-align: middle;
    width: 72px;
    text-align: center;
}

.NB-provider-pill.NB-provider-anthropic {
    background: linear-gradient(135deg, #D97857 0%, #C56B4A 100%);
    color: #4A2218;
    border: 1px solid #C5684A;
}

.NB-provider-pill.NB-provider-openai {
    background: linear-gradient(135deg, #74AA9C 0%, #5A9A8A 100%);
    color: #1A3D36;
    border: 1px solid #4A8A7A;
}

.NB-provider-pill.NB-provider-google {
    background: linear-gradient(135deg, #8AB4F8 0%, #669DF6 100%);
    color: #1A3A5C;
    border: 1px solid #5B8EE6;
}

.NB-provider-pill.NB-provider-xai {
    background: linear-gradient(135deg, #1A1A1A 0%, #0A0A0A 100%);
    color: #FFFFFF;
    border: 1px solid #333333;
}

.NB-story-ask-ai-voice-button {
    min-width: 36px;
    padding: 6px 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: white;
    border: 1px solid #D0D2CC;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
    box-sizing: border-box;
}

.NB-story-ask-ai-voice-button:hover {
    background-color: #F4F6F3;
    border-color: #90928B;
}

.NB-story-ask-ai-voice-button.NB-recording {
    background-color: #FF6B6B;
    border-color: #FF6B6B;
    animation: pulse 1.5s ease-in-out infinite;
}

.NB-story-ask-ai-voice-button.NB-transcribing {
    background-color: #4ECDC4;
    border-color: #4ECDC4;
}

.NB-story-ask-ai-voice-icon {
    width: 18px;
    height: 18px;
    display: block;
}

.NB-story-ask-ai-voice-button.NB-recording .NB-story-ask-ai-voice-icon,
.NB-story-ask-ai-voice-button.NB-transcribing .NB-story-ask-ai-voice-icon {
    filter: brightness(0) invert(1);
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.05);
        opacity: 0.9;
    }
}

.NB-story-ask-ai-response {
    min-height: 200px;
}

.NB-story-ask-ai-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}

.NB-story-ask-ai-loading .NB-spinner {
    width: 32px;
    height: 32px;
    border: 3px solid #E0E2DC;
    border-top-color: #90928B;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.NB-story-ask-ai-loading .NB-loading-text {
    margin-top: 12px;
    color: #666;
    font-size: 13px;
}

.NB-story-ask-ai-answer {
    padding: 12px;
    background-color: #FFFFFF;
    border: 1px solid #E0E2DC;
    border-radius: 4px;
    line-height: 1.6;
    counter-reset: ordered-list;
    font-size: inherit;
}

.NB-story-ask-ai-answer p {
    margin: 0 0 8px 0;
}

.NB-story-ask-ai-answer p:last-child {
    margin-bottom: 0;
}

.NB-story-ask-ai-answer ul,
.NB-story-ask-ai-answer ol {
    margin: 8px 0;
    padding-left: 24px;
}

.NB-story-ask-ai-answer ol {
    list-style: none;
    padding-left: 0;
}

.NB-story-ask-ai-answer ol li {
    counter-increment: ordered-list;
    padding-left: 24px;
    position: relative;
}

.NB-story-ask-ai-answer ol li::before {
    content: counter(ordered-list) ". ";
    position: absolute;
    left: 0;
    font-weight: 600;
}

.NB-story-ask-ai-answer li {
    margin: 4px 0;
}

.NB-story-ask-ai-answer strong {
    font-weight: 600;
}

.NB-story-ask-ai-answer hr {
    border: none;
    border-top: 1px solid #E0E2DC;
    margin: 16px 0;
}

.NB-story-ask-ai-answer h1,
.NB-story-ask-ai-answer h2,
.NB-story-ask-ai-answer h3,
.NB-story-ask-ai-answer h4,
.NB-story-ask-ai-answer h5,
.NB-story-ask-ai-answer h6 {
    margin: 16px 0 8px 0;
    font-weight: 600;
    line-height: 1.3;
}

.NB-story-ask-ai-answer h1:first-child,
.NB-story-ask-ai-answer h2:first-child,
.NB-story-ask-ai-answer h3:first-child,
.NB-story-ask-ai-answer h4:first-child,
.NB-story-ask-ai-answer h5:first-child,
.NB-story-ask-ai-answer h6:first-child {
    margin-top: 0;
}

.NB-story-ask-ai-answer h1 {
    font-size: 1.5em;
}

.NB-story-ask-ai-answer h2 {
    font-size: 1.3em;
}

.NB-story-ask-ai-answer h3 {
    font-size: 1.15em;
}

.NB-story-ask-ai-answer h4 {
    font-size: 1em;
}

.NB-story-ask-ai-answer h5 {
    font-size: 0.9em;
}

.NB-story-ask-ai-answer h6 {
    font-size: 0.85em;
    color: #666;
}

.NB-story-ask-ai-usage-message {
    padding: 12px;
    margin-top: 16px;
    background-color: #F7F9FC;
    border: 1px solid #D4E0F7;
    border-left: 3px solid #4A90E2;
    border-radius: 6px;
    color: #2C5282;
    font-size: 13px;
    line-height: 1.5;
}

.NB-story-ask-ai-usage-message a {
    color: #4A90E2;
    text-decoration: none;
    font-weight: 600;
}

.NB-story-ask-ai-usage-message a:hover {
    text-decoration: underline;
    color: #2E5F8F;
}

/* Model Pills */
.NB-story-ask-ai-model-pill {
    display: inline-block;
    padding: 4px 10px;
    margin-bottom: 12px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

.NB-story-ask-ai-model-pill.NB-provider-anthropic {
    background: linear-gradient(135deg, #D97857 0%, #C56B4A 100%);
    color: #4A2218;
    border: 1px solid #C5684A;
}

.NB-story-ask-ai-model-pill.NB-provider-openai {
    background: linear-gradient(135deg, #74AA9C 0%, #5A9A8A 100%);
    color: #1A3D36;
    border: 1px solid #4A8A7A;
}

.NB-story-ask-ai-model-pill.NB-provider-google {
    background: linear-gradient(135deg, #8AB4F8 0%, #669DF6 100%);
    color: #1A3A5C;
    border: 1px solid #5B8EE6;
}

.NB-story-ask-ai-model-pill.NB-provider-xai {
    background: linear-gradient(135deg, #1A1A1A 0%, #0A0A0A 100%);
    color: #FFFFFF;
    border: 1px solid #333333;
}

.NB-story-ask-ai-model-pill.NB-provider-unknown {
    background: linear-gradient(135deg, #E0E0E0 0%, #BDBDBD 100%);
    color: #424242;
    border: 1px solid #9E9E9E;
}

/* Pulsating border animation for loading state */
@keyframes pulse-border {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(100, 150, 200, 0.4);
    }

    50% {
        box-shadow: 0 0 0 4px rgba(100, 150, 200, 0.2);
    }
}

.NB-story-ask-ai-model-pill.NB-loading {
    animation: pulse-border 1.5s ease-in-out infinite;
}

.NB-story-ask-ai-model-pill.NB-loading.NB-provider-anthropic {
    animation: pulse-border-anthropic 1.5s ease-in-out infinite;
}

@keyframes pulse-border-anthropic {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(217, 120, 87, 0.6);
    }

    50% {
        box-shadow: 0 0 0 4px rgba(217, 120, 87, 0.3);
    }
}

.NB-story-ask-ai-model-pill.NB-loading.NB-provider-openai {
    animation: pulse-border-openai 1.5s ease-in-out infinite;
}

@keyframes pulse-border-openai {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(116, 170, 156, 0.6);
    }

    50% {
        box-shadow: 0 0 0 4px rgba(116, 170, 156, 0.3);
    }
}

.NB-story-ask-ai-model-pill.NB-loading.NB-provider-google {
    animation: pulse-border-google 1.5s ease-in-out infinite;
}

@keyframes pulse-border-google {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(138, 180, 248, 0.6);
    }

    50% {
        box-shadow: 0 0 0 4px rgba(138, 180, 248, 0.3);
    }
}

.NB-story-ask-ai-model-pill.NB-loading.NB-provider-xai {
    animation: pulse-border-xai 1.5s ease-in-out infinite;
}

@keyframes pulse-border-xai {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(100, 100, 100, 0.6);
    }

    50% {
        box-shadow: 0 0 0 4px rgba(100, 100, 100, 0.3);
    }
}

/* Error state for model pill */
.NB-story-ask-ai-model-pill.NB-error {
    animation: none;
    border-color: #D32F2F !important;
    box-shadow: 0 0 0 2px rgba(211, 47, 47, 0.3);
}

/* ======================== */
/* = Ask AI Inline Styles = */
/* ======================== */

.NB-story-ask-ai-inline {
    margin: 24px 0;
    padding: 20px;
    background: linear-gradient(135deg, #F0F4FF 0%, #FFF5F0 100%);
    border: 1px solid #D4E0F7;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    position: relative;
    box-sizing: border-box;
    opacity: 0;
    transform: translateY(-10px) scale(0.98);
    animation: askAiUnfurl 3s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
    overflow: hidden;
}

/* Story font themes */
.NB-theme-sans-serif .NB-story-ask-ai-inline {
    font-family: "DejaVu Sans", "Bitstream Vera Sans", "Verdana", "Tahoma", "Geneva", sans-serif;
}

.NB-theme-serif .NB-story-ask-ai-inline {
    font-family: "Palatino Linotype", "Palatino", "URW Palladio L", "Nimbus Roman No9 L", Georgia, serif;
}

.NB-theme-gotham .NB-story-ask-ai-inline {
    font-family: 'Gotham Narrow A', 'Gotham Narrow B';
}

.NB-theme-sentinel .NB-story-ask-ai-inline {
    font-family: 'Sentinel A', 'Sentinel B';
}

.NB-theme-whitney .NB-story-ask-ai-inline {
    font-family: 'Whitney A', 'Whitney B';
}

.NB-theme-chronicle .NB-story-ask-ai-inline {
    font-family: 'Chronicle A', 'Chronicle B';
}

/* Story font sizes - sans-serif */
.NB-theme-sans-serif.NB-theme-size-xs .NB-story-ask-ai-inline {
    font-size: 11px;
}

.NB-theme-sans-serif.NB-theme-size-s .NB-story-ask-ai-inline {
    font-size: 12px;
}

.NB-theme-sans-serif.NB-theme-size-m .NB-story-ask-ai-inline {
    font-size: 13px;
}

.NB-theme-sans-serif.NB-theme-size-l .NB-story-ask-ai-inline {
    font-size: 15px;
}

.NB-theme-sans-serif.NB-theme-size-xl .NB-story-ask-ai-inline {
    font-size: 18px;
}

/* Story font sizes - gotham */
.NB-theme-gotham.NB-theme-size-xs .NB-story-ask-ai-inline {
    font-size: 13px;
}

.NB-theme-gotham.NB-theme-size-s .NB-story-ask-ai-inline {
    font-size: 14px;
}

.NB-theme-gotham.NB-theme-size-m .NB-story-ask-ai-inline {
    font-size: 15px;
}

.NB-theme-gotham.NB-theme-size-l .NB-story-ask-ai-inline {
    font-size: 16px;
}

.NB-theme-gotham.NB-theme-size-xl .NB-story-ask-ai-inline {
    font-size: 19px;
}

/* Story font sizes - sentinel */
.NB-theme-sentinel.NB-theme-size-xs .NB-story-ask-ai-inline {
    font-size: 13px;
}

.NB-theme-sentinel.NB-theme-size-s .NB-story-ask-ai-inline {
    font-size: 14px;
}

.NB-theme-sentinel.NB-theme-size-m .NB-story-ask-ai-inline {
    font-size: 15px;
}

.NB-theme-sentinel.NB-theme-size-l .NB-story-ask-ai-inline {
    font-size: 16px;
}

.NB-theme-sentinel.NB-theme-size-xl .NB-story-ask-ai-inline {
    font-size: 19px;
}

/* Story font sizes - whitney */
.NB-theme-whitney.NB-theme-size-xs .NB-story-ask-ai-inline {
    font-size: 13px;
}

.NB-theme-whitney.NB-theme-size-s .NB-story-ask-ai-inline {
    font-size: 14px;
}

.NB-theme-whitney.NB-theme-size-m .NB-story-ask-ai-inline {
    font-size: 15px;
}

.NB-theme-whitney.NB-theme-size-l .NB-story-ask-ai-inline {
    font-size: 16px;
}

.NB-theme-whitney.NB-theme-size-xl .NB-story-ask-ai-inline {
    font-size: 19px;
}

/* Story font sizes - chronicle */
.NB-theme-chronicle.NB-theme-size-xs .NB-story-ask-ai-inline {
    font-size: 13px;
}

.NB-theme-chronicle.NB-theme-size-s .NB-story-ask-ai-inline {
    font-size: 14px;
}

.NB-theme-chronicle.NB-theme-size-m .NB-story-ask-ai-inline {
    font-size: 15px;
}

.NB-theme-chronicle.NB-theme-size-l .NB-story-ask-ai-inline {
    font-size: 16px;
}

.NB-theme-chronicle.NB-theme-size-xl .NB-story-ask-ai-inline {
    font-size: 19px;
}

/* Story font sizes - serif */
.NB-theme-serif.NB-theme-size-xs .NB-story-ask-ai-inline {
    font-size: 13px;
}

.NB-theme-serif.NB-theme-size-s .NB-story-ask-ai-inline {
    font-size: 14px;
}

.NB-theme-serif.NB-theme-size-m .NB-story-ask-ai-inline {
    font-size: 15px;
}

.NB-theme-serif.NB-theme-size-l .NB-story-ask-ai-inline {
    font-size: 16px;
}

.NB-theme-serif.NB-theme-size-xl .NB-story-ask-ai-inline {
    font-size: 19px;
}

@keyframes askAiUnfurl {
    0% {
        opacity: 0;
        transform: translateY(-10px) scale(0.98);
    }

    15% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }

    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes askAiCollapse {
    0% {
        opacity: 1;
        transform: translateY(0) scale(1);
        padding: 20px;
        margin-top: 24px;
        margin-bottom: 0;
        border-width: 1px;
    }

    70% {
        opacity: 0.3;
        transform: translateY(-5px) scale(0.99);
    }

    100% {
        opacity: 0;
        transform: translateY(-10px) scale(0.98);
        padding: 0;
        margin-top: 0;
        margin-bottom: 0;
        border-width: 0;
    }
}

.NB-story-ask-ai-inline.NB-closing {
    animation: askAiCollapse 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.NB-story-ask-ai-inline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #4A90E2 0%, #E24A90 50%, #E2904A 100%);
}

@keyframes slideInFade {
    from {
        opacity: 0;
        transform: translateX(-10px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.NB-story-ask-ai-inline .NB-story-ask-ai-close {
    width: 22px;
    height: 22px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.15s ease;
    background-color: rgba(0, 0, 0, 0.06);
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 10;
}

.NB-story-ask-ai-inline .NB-story-ask-ai-close::before {
    content: '×';
    font-size: 18px;
    line-height: 1;
    color: #6B7A92;
    font-weight: 400;
    padding-top: 1px;
    font-family: Arial, "Helvetica Neue", Helvetica, sans-serif;
}

.NB-story-ask-ai-inline .NB-story-ask-ai-close:hover {
    background-color: rgba(226, 74, 74, 0.12);
    transform: scale(1.1);
}

.NB-story-ask-ai-inline .NB-story-ask-ai-close:hover::before {
    color: #D84444;
}

.NB-story-ask-ai-inline .NB-story-ask-ai-close .NB-icon {
    display: none;
}

.NB-story-ask-ai-inline .NB-story-ask-ai-content {
    padding: 0;
}

.NB-story-ask-ai-inline .NB-story-ask-ai-question-wrapper {
    margin-bottom: 20px;
    position: relative;
    opacity: 0;
    animation: questionFadeIn 0.5s ease-out 0.15s forwards;
}

.NB-story-ask-ai-inline .NB-story-ask-ai-question-border {
    display: none;
}

.NB-story-ask-ai-inline .NB-story-ask-ai-question {
    padding: 14px 16px;
    background-color: rgba(255, 255, 255, 0.85);
    border: 2px solid #D4E0F7;
    border-radius: 4px;
    position: relative;
    transition: border-color 0.3s ease;
}

.NB-story-ask-ai-inline.NB-thinking .NB-story-ask-ai-question {
    animation: borderPulse 1.7s ease infinite;
}

@keyframes borderPulse {
    0% {
        border-color: #E1EBFF;
    }

    38% {
        border-color: #5C89C9;
    }

    100% {
        border-color: #E1EBFF;
    }
}

@keyframes questionFadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes questionSlideIn {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes questionSlideOut {
    from {
        opacity: 1;
        transform: translateY(0);
    }

    to {
        opacity: 0;
        transform: translateY(-8px);
    }
}

.NB-story-ask-ai-inline.NB-closing .NB-story-ask-ai-question {
    animation: questionSlideOut 0.3s ease-out forwards;
}

.NB-story-ask-ai-inline .NB-story-ask-ai-question-text {
    font-size: 14px;
    line-height: 1.5;
    color: #2C3E50;
    font-weight: 500;
    font-style: italic;
    padding-right: 90px;
}

/* Model pill wrapper for inline pills in answer content */
.NB-story-ask-ai-model-pill-wrapper {
    display: flex;
    justify-content: flex-end;
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    margin-bottom: 0;
    padding: 4px;
    transition: max-height 0.3s ease-out, opacity 0.3s ease-out, margin-bottom 0.3s ease-out;
}

.NB-story-ask-ai-model-pill-wrapper.NB-visible {
    max-height: 30px;
    opacity: 1;
    margin-bottom: 8px;
}

.NB-story-ask-ai-model-pill-wrapper .NB-story-ask-ai-model-pill {
    margin-bottom: 0;
    font-size: 10px;
    padding: 3px 8px;
}

.NB-story-ask-ai-inline .NB-story-ask-ai-custom-input-wrapper {
    margin-bottom: 16px;
    display: flex;
    gap: 8px;
}

.NB-story-ask-ai-inline .NB-story-ask-ai-custom-input {
    flex: 1;
    padding: 10px 14px;
    border: 1px solid #D4E0F7;
    border-radius: 6px;
    font-size: 13px;
    background-color: #FFFFFF;
}

.NB-story-ask-ai-inline .NB-story-ask-ai-custom-input:focus {
    outline: none;
    border-color: #4A90E2;
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.1);
}

.NB-story-ask-ai-inline .NB-story-ask-ai-submit {
    padding: 10px 20px;
    font-size: 13px;
    background: linear-gradient(135deg, #4A90E2 0%, #357ABD 100%);
    border: none;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.NB-story-ask-ai-inline .NB-story-ask-ai-submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(74, 144, 226, 0.3);
}

.NB-story-ask-ai-inline .NB-story-ask-ai-response {
    min-height: auto;
}

.NB-story-ask-ai-inline .NB-story-ask-ai-loading {
    display: none;
}

@keyframes scaleInFade {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes scaleOutFade {
    from {
        opacity: 1;
        transform: scale(1);
    }

    to {
        opacity: 0;
        transform: scale(0.9);
    }
}

.NB-story-ask-ai-inline.NB-closing .NB-story-ask-ai-loading {
    animation: scaleOutFade 0.25s ease-out forwards;
}

.NB-story-ask-ai-inline .NB-story-ask-ai-loading .NB-spinner {
    display: none;
}

.NB-story-ask-ai-inline .NB-story-ask-ai-loading .NB-loading-text {
    color: #2C5AA0;
    font-size: 14px;
    font-weight: 500;
    font-style: italic;
}

.NB-story-ask-ai-inline .NB-story-ask-ai-loading.NB-followup {
    padding: 0;
    min-height: 0;
}

.NB-story-ask-ai-inline .NB-story-ask-ai-loading.NB-followup .NB-loading-text {
    display: none;
}

.NB-story-ask-ai-inline .NB-story-ask-ai-answer {
    padding: 16px;
    background-color: rgba(255, 255, 255, 0.9);
    border: 1px solid #D4E0F7;
    border-radius: 8px;
    line-height: 1.7;
    color: #333;
}

.NB-story-ask-ai-inline .NB-story-ask-ai-followup-wrapper {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #D4E0F7;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.NB-story-ask-ai-inline .NB-story-ask-ai-error {
    margin-top: 16px;
    padding: 16px;
    background-color: rgba(255, 255, 255, 0.9);
    border: 1px solid #E2A04A;
    border-left: 3px solid #E2904A;
    border-radius: 8px;
    font-size: 13px;
    line-height: 1.6;
    color: #8B4513;
    display: none;
    opacity: 0;
    transform: scale(0.95);
}

.NB-story-ask-ai-inline .NB-story-ask-ai-error.NB-active {
    display: block;
    animation: errorFadeIn 0.3s ease-out forwards;
}

.NB-story-ask-ai-inline .NB-story-ask-ai-error strong {
    font-weight: 600;
    color: #B8651B;
}

@keyframes errorFadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* ==================== */
/* = Statistics Modal = */
/* ==================== */

.NB-embedded-statistics {
    overflow: visible;
}

.NB-modal-statistics {}

.NB-modal-statistics .NB-modal-title .NB-icon {
    background: transparent url("/media/embed/icons/nouns/dialog-statistics.svg") no-repeat center center;
    background-size: 28px;
    filter: hue-rotate(284deg) saturate(18);
}

.NB-modal-statistics .NB-statistics-stat {
    border: 1px solid #e6e6e6;
    clear: both;
    margin: 24px 0 0;
    overflow: hidden;
    padding: 10px 0 0;
    text-align: center;
    display: flex;
    flex-wrap: wrap;
}

.NB-modal-statistics .NB-statistics-stat .NB-statistics-label {
    text-transform: uppercase;
    color: #A0A0A0;
    text-shadow: 0 1px 0 #FFF;
    font-size: 11px;
    margin-top: 8px;
}

.NB-modal-statistics .NB-statisics-realtime-spinner {
    width: 16px;
    height: 16px;
    margin-right: 6px;
    vertical-align: middle;
    display: inline-block;
}

.NB-modal-statistics .NB-statistics-stat .NB-statistics-count {
    font-size: 17px;
    padding: 6px 0 0;
    margin-bottom: 8px;
}

.NB-modal-statistics .NB-statistics-realtime .NB-statistics-count {
    font-size: 13px;
    color: #808080;
}

.NB-modal-statistics .NB-statistics-history-stat .NB-statistics-count {
    font-size: 42px;
    margin-top: 12px;
}

.NB-modal-statistics .NB-statistics-stat .NB-statistics-update {
    flex: 1 1 0;
    text-align: center;
    overflow: hidden;
    margin: 0 0 12px 0;
}

.NB-modal-statistics .NB-statistics-update-explainer {
    clear: both;
    margin: 6px 24px 6px;
    font-size: 10px;
    color: #808080;
}

.NB-modal-statistics .NB-statistics-update-explainer b {
    padding-right: 8px;
}

.NB-modal-statistics .NB-statistics-premium-stats {
    border-top: 1px solid #E0E0E0;
    padding: 12px 0 0;
    margin: 0 12px;
    clear: both;
    text-align: center;
}

.NB-modal-statistics .NB-statistics-premium-stats .NB-statistics-update {
    width: auto;
    margin: 0;
    padding: 0;
    float: none;
}

.NB-modal-statistics .NB-statistics-stat .NB-statistics-fetches-half {
    /* float: left; */
    text-align: center;
    margin: 0 18px 6px 0;
    flex: 1 1 0;
    flex-basis: fit-content;
}

.NB-modal-statistics .NB-statistics-stat .NB-statistics-fetches-half:last-child {
    margin-right: 0;
}

.NB-modal-statistics .NB-statistics-stat .NB-statistics-history-stat {
    text-align: center;
    margin: 0 24px;
    overflow: hidden;
    width: 100%;
}

.NB-modal-statistics .NB-statistics-stat .NB-statistics-history-count-chart {
    margin: 12px 24px 18px;
    width: 524px;
    height: 180px;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    margin: 36px auto;
}

.NB-modal-statistics .NB-statistics-stat .NB-statistics-history-hours-chart {
    margin: 12px 24px 18px;
    width: 524px;
    margin-left: auto;
    margin-right: auto;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}

.NB-modal-statistics .NB-statistics-stat .NB-statistics-history-days-chart {
    margin: 32px 24px;
    width: 524px;
    height: 300px;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    margin: 36px auto;
}

.NB-modal-statistics .NB-statistics-stat .NB-statistics-history-hours-chart {
    text-align: left;
    color: #808080;
    font-size: 10px;
}

.NB-modal-statistics .NB-statistics-history-chart-hours-row {
    background-color: #97BBCD;
    height: 50px;
}

.NB-modal-statistics .NB-statistics-history-chart-hours-row td {
    width: 18px;
}

.NB-modal-statistics .NB-modal-loading {
    margin: 6px 8px 0;
}

.NB-history-fetch {
    overflow: hidden;
    clear: both;
    font-size: 10px;
    margin: 2px 0 0 8px;
    text-align: left;
}

.NB-history-fetch.NB-ok {
    color: #135500;
}

.NB-history-fetch.NB-errorcode {
    color: #6A1000;
}

.NB-history-fetch .NB-history-fetch-code {
    display: inline;
    font-weight: normal;
}

.NB-history-fetch .NB-history-fetch-date {
    float: left;
    padding-right: 4px;
}

.NB-history-fetch .NB-history-fetch-message {
    padding-right: 4px;
    margin-left: 110px;
    font-weight: bold;
}

.NB-history-fetch .NB-history-fetch-exception {
    display: none;
}

.NB-history-empty {
    color: #C0C0C0;
    font-size: 10px;
    padding: 4px 12px;
}

/* ============================== */
/* = Auto-Mark Read Settings    = */
/* ============================== */

/* Header with premium badge */
.NB-exception-option-auto-mark-read h5 {
    display: flex;
    align-items: center;
    gap: 8px;
}

.NB-exception-option-auto-mark-read .NB-exception-option-status {
    opacity: 0;
    color: #4A9937;
    font-size: 11px;
    font-weight: bold;
    order: 999;
    margin-left: auto;
}

/* Upgrade notice badge */
.NB-exception-option-auto-mark-read .NB-auto-mark-read-upgrade-notice {
    font-size: 11px;
    text-decoration: none;
    color: #707070;
    padding: 3px 8px;
    border-radius: 4px;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.NB-exception-option-auto-mark-read .NB-auto-mark-read-upgrade-notice:hover {
    background-color: rgba(74, 144, 217, 0.1);
    color: #4a90d9;
}

.NB-exception-option-auto-mark-read .NB-auto-mark-read-upgrade-notice .NB-archive-badge {
    display: inline-block;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: white;
    font-size: 9px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 2px 6px;
    border-radius: 3px;
}

.NB-exception-option-auto-mark-read .NB-auto-mark-read-upgrade-notice.NB-flash {
    animation: flash-upgrade 0.6s ease;
    background-color: rgba(99, 102, 241, 0.15);
    color: #6366f1;
}

/* Segmented control - uses site-wide styles from controls.css */
.NB-exception-option-auto-mark-read .segmented-control.NB-menu-manage-auto-mark-read {
    margin: 0 0 8px 0;
}

.NB-exception-option-auto-mark-read .segmented-control.NB-menu-manage-auto-mark-read li {
    padding: 6px 12px;
    font-size: 12px;
}

.NB-exception-option-auto-mark-read .segmented-control.NB-menu-manage-auto-mark-read.NB-disabled {
    opacity: 0.5;
    pointer-events: none;
}

/* Slider container */
.NB-exception-option-auto-mark-read .NB-auto-mark-read-slider-container {
    margin: 4px 0 4px 0;
    padding: 10px 12px;
    background: rgba(0, 0, 0, 0.03);
    border-radius: 6px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Slider */
.NB-exception-option-auto-mark-read .NB-auto-mark-read-slider {
    width: 100%;
    height: 8px;
    -webkit-appearance: none;
    appearance: none;
    background: #ddd;
    border-radius: 4px;
    outline: none;
    cursor: pointer;
    margin: 4px 0;
}

.NB-exception-option-auto-mark-read .NB-auto-mark-read-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    background: #4a90d9;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    transition: transform 0.1s ease, box-shadow 0.1s ease;
    margin-top: 0;
}

.NB-exception-option-auto-mark-read .NB-auto-mark-read-slider::-webkit-slider-thumb:hover {
    transform: scale(1.1);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.NB-exception-option-auto-mark-read .NB-auto-mark-read-slider::-moz-range-thumb {
    width: 18px;
    height: 18px;
    background: #4a90d9;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.NB-exception-option-auto-mark-read .NB-auto-mark-read-slider::-moz-range-track {
    height: 8px;
    border-radius: 4px;
}

.NB-exception-option-auto-mark-read .NB-auto-mark-read-slider:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Slider value text */
.NB-exception-option-auto-mark-read .NB-auto-mark-read-slider-value {
    font-size: 12px;
    color: #555;
    text-align: center;
    line-height: 1.4;
}

.NB-exception-option-auto-mark-read .NB-auto-mark-read-slider-value b {
    color: #4a90d9;
    font-weight: 600;
}

/* ==================== */
/* = Mute Section      = */
/* ==================== */

.NB-exception-option-mute h5 {
    display: flex;
    align-items: center;
}

.NB-exception-option-mute .NB-mute-status {
    opacity: 0;
    color: #4A9937;
    font-size: 11px;
    font-weight: normal;
    margin-left: auto;
}

.NB-exception-option-mute .NB-mute-slider-container {
    margin: 4px 0 4px 0;
    padding: 10px 12px;
    background: rgba(0, 0, 0, 0.03);
    border-radius: 6px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.NB-exception-option-mute .NB-mute-current-status {
    font-size: 12px;
    color: #707070;
}

.NB-exception-option-mute .NB-mute-settings-slider {
    width: 100%;
    height: 8px;
    -webkit-appearance: none;
    appearance: none;
    background: #ddd;
    border-radius: 4px;
    outline: none;
    cursor: pointer;
    margin: 0 0 8px;
}

.NB-exception-option-mute .NB-mute-settings-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    background: #4a90d9;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.NB-exception-option-mute .NB-mute-settings-slider::-moz-range-thumb {
    width: 18px;
    height: 18px;
    background: #4a90d9;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.NB-exception-option-mute .NB-mute-buttons {
    display: flex;
    gap: 4px;
}

.NB-exception-option-mute .NB-mute-settings-timed-save,
.NB-exception-option-mute .NB-mute-settings-forever-save,
.NB-exception-option-mute .NB-mute-settings-unmute-save {
    font-size: 12px;
    text-align: center;
    padding: 4px 10px;
    flex: 1;
    cursor: pointer;
}

/* Show mute buttons when active, unmute button when muted */
.NB-mute-state-active .NB-mute-buttons-unmute {
    display: none;
}

.NB-mute-state-timed .NB-mute-buttons-unmute,
.NB-mute-state-permanent .NB-mute-buttons-unmute {
    margin-top: 4px;
}

.NB-mute-state-timed .NB-mute-current-status {
    color: #9a6f30;
}

.NB-mute-state-permanent .NB-mute-current-status {
    color: #8b3a3a;
}

/* ==================== */
/* = Mark as Unread Slider = */
/* ==================== */

.NB-mark-unread-slider-container {
    margin: 4px 0 4px 0;
    padding: 10px 12px;
    background: rgba(0, 0, 0, 0.03);
    border-radius: 6px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.NB-mark-unread-slider {
    width: 100%;
    height: 8px;
    -webkit-appearance: none;
    appearance: none;
    background: #ddd;
    border-radius: 4px;
    outline: none;
    cursor: pointer;
    margin: 4px 0;
}

.NB-mark-unread-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    background: #4a90d9;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    transition: transform 0.1s ease, box-shadow 0.1s ease;
    margin-top: 0;
}

.NB-mark-unread-slider::-webkit-slider-thumb:hover {
    transform: scale(1.1);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.NB-mark-unread-slider::-moz-range-thumb {
    width: 18px;
    height: 18px;
    background: #4a90d9;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.NB-mark-unread-slider::-moz-range-track {
    height: 8px;
    border-radius: 4px;
}

.NB-mark-unread-slider-value {
    font-size: 12px;
    color: #555;
    text-align: center;
    line-height: 1.4;
}

.NB-mark-unread-slider-value b {
    color: #4a90d9;
    font-weight: 600;
}

.NB-mark-unread-premium-notice {
    text-align: center;
    margin: 4px 0;
    display: none;
}

.NB-mark-unread-premium-notice a {
    font-size: 12px;
    color: #555;
    text-decoration: none;
}

.NB-mark-unread-premium-notice .NB-premium-badge,
.NB-mark-unread-premium-notice .NB-archive-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    margin-right: 4px;
}

.NB-mark-unread-premium-notice .NB-premium-badge {
    background: #f5a623;
    color: white;
}

.NB-mark-unread-premium-notice .NB-archive-badge {
    background: #8b5cf6;
    color: white;
}

.NB-modal-statistics .NB-statistics-classifiers {
    border: 1px solid #e6e6e6;
    clear: both;
    margin: 24px 0 0;
    overflow: hidden;
    padding: 10px 12px;
    font-size: 12px;
}

.NB-modal-statistics .NB-statistics-facet-title {
    text-transform: uppercase;
    text-align: center;
    border-bottom: 1px solid #E0E0E0;
    margin: 4px 0;
    padding: 0 0 4px;
    clear: both;
}

.NB-modal-statistics .NB-statistics-facet {
    clear: both;
    padding: 2px 0;
    position: relative;
    border-bottom: 1px solid #F6F6F6;
    overflow: hidden;
}

.NB-modal-statistics .NB-statistics-facet-name {
    width: 40%;
}

.NB-modal-statistics .NB-statistics-facet-pos {
    position: absolute;
    top: 0;
    right: 0;
    width: 30%;
    padding: 4px 0;
}

.NB-modal-statistics .NB-statistics-facet-separator {
    position: absolute;
    height: 16px;
    width: 2px;
    right: 30%;
    margin-left: -2px;
    background-color: black;
}

.NB-modal-statistics .NB-statistics-facet-neg {
    position: absolute;
    top: 0;
    right: 30%;
    width: 30%;
    padding: 4px 0;
    text-align: right;
}

.NB-modal-statistics .NB-statistics-facet-pos .NB-statistics-facet-bar {
    height: 8px;
    position: absolute;
    left: 0;
    top: 6px;
    background-color: #6EA74A;
}

.NB-modal-statistics .NB-statistics-facet-neg .NB-statistics-facet-bar {
    height: 8px;
    position: absolute;
    right: 2px;
    top: 6px;
    background-color: #CC2A2E;
}

.NB-modal-statistics .NB-statistics-facet-count {
    font-size: 9px;
    color: #C0C0C0;
}

/* ============================= */
/* = Feed Recommendation Modal = */
/* ============================= */

.NB-modal-recommend .NB-modal-title .NB-icon {
    background: transparent url('/media/embed/icons/circular/g_modal_recommend.png');
    background-size: 28px;
}

.NB-modal-recommend .NB-modal-loading {
    margin: 6px 8px 0;
}

.NB-modal.NB-modal-recommend .NB-modal-recommend-tagline-container {
    padding: 6px 0;
    margin: 4px 0;
    border-top: 1px solid #C0C0C0;
    border-bottom: 1px solid #C0C0C0;
}

.NB-modal-recommend .NB-modal-recommend-tagline {
    width: 558px;
    height: 80px;
    font-size: 14px;
    color: #404040;
    line-height: 20px;
    padding: 8px;
    margin: 0;
    border: 1px solid #E0E0E0;
    /* font-family: "Lucida Grande", Verdana, Arial, Helvetica, sans-serif; */
}

.NB-modal-recommend .NB-modal-recommend-credit {
    color: #505050;
    font-size: 12px;
    margin: 4px 0;
}

.NB-modal-recommend .NB-modal-recommend-twitter {}

.NB-modal-recommend .NB-modal-recommend-explanation {
    clear: both;
    color: #505050;
    font-size: 12px;
    margin: 12px 0 14px;
    padding: 0 1px;
}

/* ==================== */
/* = User Admin Modal = */
/* ==================== */

.NB-modal-admin .NB-modal-title .NB-icon {
    background: transparent url('/media/embed/icons/circular/g_modal_admin.png');
    background-size: 28px;
}

.NB-modal-admin .NB-profile-badge-actions,
.NB-modal-admin .NB-profile-badge-action-admin {
    display: none;
}

.NB-modal-admin .NB-profile-badge {
    border-bottom: none;
}

.NB-modal-admin .NB-account-payments,
.NB-modal-admin .NB-admin-actions {
    overflow: hidden;
    padding: 12px 24px;
}

.NB-modal-admin .NB-modal-submit-button {
    float: left;
}

.NB-modal-admin dl {
    font-size: 12px;
}

.NB-modal-admin dt {
    display: block;
    float: left;
    width: 85px;
    padding: 0 15px 0 0;
    position: relative;
    color: #888;
    text-align: right;
    line-height: 16px;
}

.NB-modal-admin dd {
    color: #000;
    margin-left: 100px;
    padding-bottom: 5px;
    min-height: 16px;
    line-height: 16px;
    word-wrap: break-word;
    overflow: hidden;
}

.NB-modal-admin .NB-admin-training-counts span {
    padding-right: 8px;
}

.NB-modal-admin .NB-admin-training-counts span.NB-grey {
    color: #D0D0D0;
}

.NB-modal-admin .NB-admin-training-counts span.NB-green {
    color: #2B8B19;
}

.NB-modal-admin .NB-admin-training-counts span.NB-red {
    color: #761113;
}

/* ===================== */
/* = Email Story Modal = */
/* ===================== */

.NB-modal-email .NB-modal-loading {
    margin: 6px 8px 0;
}

.NB-modal-email label {
    float: left;
    padding-top: 4px;
    font-weight: bold;
}

.NB-modal-email .NB-input,
.NB-modal-email .NB-modal-email-cc-wrapper {
    width: 430px;
    margin-left: 120px;
    display: block;
    overflow: hidden;
}

.NB-modal-email .NB-modal-email-feed {
    font-size: 11px;
    margin: 0 0 6px;
    line-height: 10px;
}

.NB-modal-email .NB-modal-email-feed .NB-modal-feed-image {
    height: 12px;
    width: 12px;
}

.NB-modal-email .NB-modal-email-feed .NB-modal-feed-title {
    margin-left: 0;
    float: none;
    overflow: visible;
}

.NB-modal-email .NB-modal-email-story-title {
    clear: both;
    margin: 8px 0 4px;
}

.NB-modal-email .NB-modal-email-story-permalink {
    color: #808080;
    font-size: 11px;
}

.NB-modal.NB-modal-email .NB-modal-email-comments-container {
    padding: 6px 0 0;
    margin: 0;
}

.NB-modal-email .NB-modal-email-comments {
    width: 550px;
    height: 80px;
    font-size: 14px;
    color: #404040;
    line-height: 20px;
    padding: 8px 0 0 8px;
    margin: 0;
    border: 1px solid #808080;
    /* font-family: "Lucida Grande", Verdana, Arial, Helvetica, sans-serif; */
}

.NB-modal-email .NB-modal-email-to-container,
.NB-modal-email .NB-modal-email-from-container {
    color: #505050;
    font-size: 12px;
    padding: 12px 0 0;
}

.NB-modal-email .NB-modal-email-to-container {
    margin: 4px 0;
}

.NB-modal-email .NB-modal-email-from-container {}

.NB-modal-email form {
    margin: 24px 0 0;
}

.NB-modal-email .NB-modal-email-cc {
    float: left;
    margin: 4px 6px 0 0;
}

.NB-modal-email .NB-modal-email-explanation {
    clear: both;
    color: #505050;
    font-size: 12px;
    margin: 0;
    padding: 14px 1px 0;
}

.NB-modal.NB-modal-email .NB-error {
    font-size: 12px;
    margin-top: 8px;
}

/* ================== */
/* = Tutorial Modal = */
/* ================== */


.NB-modal-tutorial .NB-modal-title .NB-icon {
    background: transparent url("/media/embed/icons/nouns/dialog-tips.svg") no-repeat center center;
    background-size: 28px;
    filter: hue-rotate(321deg) saturate(18);
}

.NB-modal-tutorial h4 {
    clear: both;
}

.NB-modal-tutorial .NB-page {
    display: none;
}

.NB-modal-tutorial .NB-modal-page {
    float: right;
    margin-top: 7px;
}

.NB-modal-tutorial .NB-page {
    /*  height: 446px;*/
    overflow: hidden;
}

.NB-modal-tutorial .NB-page.NB-page-1 {
    display: block;
}

.NB-modal-tutorial .NB-modal-submit .NB-modal-submit-button {
    float: right;
}

.NB-modal-tutorial ul {
    clear: both;
    list-style: none;
    padding: 0;
}

.NB-modal-tutorial li {
    margin: 0 0 12px;
    padding: 0;
    padding-left: 20px;
    background: transparent url('/media/embed/icons/silk/bullet_blue.png') no-repeat 0 2px;
}

.NB-modal-tutorial .NB-page-1 .NB-right {
    padding-right: 12px;
}

.NB-modal-tutorial .NB-tutorial-view {
    float: left;
    width: 33%;
    text-align: center;
    margin: 0 0 18px 0;
}

.NB-modal-tutorial .NB-tutorial-view .NB-tutorial-view-title {
    font-size: 18px;
    font-weight: bold;
    margin: 0 0 2px 0;
    padding-right: 16px;
}

.NB-modal-tutorial .NB-tutorial-view .NB-tutorial-view-title img {
    vertical-align: middle;
    margin: -2px 4px 0 0;
}

.NB-modal-tutorial .NB-tutorial-view .NB-tutorial-view-image {
    border: 1px solid #303030;
    width: 180px;
    height: 150px;
}

.NB-modal-tutorial .NB-tutorial-view span {
    font-size: 11px;
    color: #808080;
}

.NB-modal-tutorial .NB-page-2 ul {
    margin-bottom: 0;
}

.NB-modal-tutorial .NB-page-3 b {
    display: block;
    margin: 0 0 8px 0;
}

.NB-modal-tutorial .NB-tutorial-slider-demo {
    position: relative;
}

.NB-modal-tutorial .NB-taskbar-intelligence {
    left: 64px;
    right: auto;
    top: 24px;
    position: relative;
}

.NB-modal-tutorial .NB-page-3 .NB-tutorial-train-1 {
    margin-bottom: 12px;
}

.NB-modal-tutorial .NB-page-3 .NB-tutorial-train-1 img {
    margin-right: 24px;
    border: 1px solid #505050;
}

.NB-modal-tutorial .NB-page-3 ul img.NB-trainer-bullet {
    width: 8px;
    margin: 0px 8px 2px 0;
}

.NB-modal-tutorial .NB-page-4 ul li {
    clear: both;
    padding: 0 224px 0 20px;
    margin: 0 0 18px 0;
}

.NB-modal-tutorial .NB-page-4 img {
    border: 1px solid #303030;
    float: right;
    clear: right;
    margin: 0 -212px 18px 12px;
}

.NB-modal-tutorial .NB-page-4 .NB-modal-keyboard .NB-keyboard-group {
    width: 510px;
}

.NB-modal-tutorial .NB-page-4 .NB-modal-keyboard .NB-keyboard-shortcut {
    margin: 0 20px 0 0;
    width: 235px;
}

.NB-modal-tutorial .NB-page-4 .NB-modal-keyboard .NB-keyboard-shortcut:last-child {
    margin-bottom: 0;
    margin-right: 0;
}

.NB-modal-tutorial .NB-page-5 .NB-tutorial-twitter {
    overflow: hidden;
}

.NB-modal-tutorial .NB-page-5 .NB-tutorial-twitter a {
    background-color: #E9F4FD;
    float: left;
    font-size: 20px;
    margin: 0px 16px;
    padding: 12px;
    text-align: center;
    width: 40%;
}

.NB-modal-tutorial .NB-page-5 .NB-tutorial-twitter a:hover {
    background-color: #FAE3DB;
}

.NB-modal-tutorial .NB-page-5 .NB-tutorial-twitter img {
    margin: 0 12px 0 0;
    vertical-align: middle;
    border: 1px solid transparent;
    width: 64px;
    height: 64px;
}

.NB-modal-tutorial .NB-page-5 h4.NB-tutorial-feedback-header {
    margin: 24px 0px 12px;
}

.NB-modal-tutorial .NB-page-5 ul,
.NB-modal-tutorial .NB-page-5 h4 {
    clear: none;
}


/* ================== */
/* = Tutorial Modal = */
/* ================== */

.NB-modal-intro {}

.NB-modal.NB-modal-intro .NB-modal-title {
    text-align: center;
    font-weight: normal;
    line-height: 46px;
}

.NB-modal-intro .NB-divider {
    height: 1px;
    width: 100%;
    clear: both;
    margin: 12px 0;
    background-color: #F4F5F2;
}

.NB-modal-intro .NB-modal-loading {
    margin: 16px 8px 0 0;
}

.NB-modal-intro .NB-intro-section {
    padding: 24px 4px;
    text-align: center;
    overflow: hidden;
}

.NB-modal-intro h4 {
    clear: both;
}

.NB-modal-intro .NB-page {
    display: none;
}

.NB-modal-intro .NB-modal-page {
    position: absolute;
    top: 14px;
    right: 12px;
    line-height: 46px;
}

.NB-modal-intro .NB-modal-page-text {
    float: right;
}

.NB-modal-intro .NB-page {
    height: 390px;
    overflow-x: hidden;
    overflow-y: auto;
}

.NB-modal-intro .NB-page.NB-page-1 {
    display: block;
}

.NB-modal-intro .NB-modal-submit-bottom .NB-modal-submit-button {
    float: right;
}

.NB-modal-intro ul {
    clear: both;
    list-style: none;
    padding: 0;
}

.NB-modal-intro li {
    margin: 0 0 12px;
    padding: 0;
    padding-left: 20px;
    background: transparent url('/media/embed/icons/silk/bullet_blue.png') no-repeat 0 2px;
}

.NB-modal-intro .NB-intro-spinning-logo {
    position: absolute;
    top: 90px;
    left: 180px;
    width: 256px;
    height: 256px;
    -webkit-animation: -webkit-slow-spin 60s infinite linear;
    -moz-animation-duration: 60s;
    -moz-animation-name: -moz-slow-spin;
    -moz-animation-iteration-count: infinite;
    -moz-animation-timing-function: linear;
}

@-webkit-keyframes -webkit-slow-spin {
    from {
        -webkit-transform: rotate(0deg)
    }

    to {
        -webkit-transform: rotate(360deg)
    }
}

@-moz-keyframes -moz-slow-spin {
    from {
        -moz-transform: rotate(0deg)
    }

    to {
        -moz-transform: rotate(360deg)
    }
}

.NB-modal-intro .NB-page-1-started {
    margin: 284px 0 0;
    text-align: center;
}

.NB-modal-intro .NB-page.NB-page-2 {
    position: relative;
}

.NB-modal-intro h4 {
    margin: 32px 0 0;
    text-align: center;
}

.NB-modal-intro .NB-intro-imports {
    position: relative;
}

.NB-modal-intro .NB-page-2-importing {
    font-size: 16px;
    font-weight: bold;
}

.NB-modal-intro .NB-carousel {
    position: relative;
    height: 70px;
    overflow: hidden;
}

.NB-modal-intro .NB-carousel-inner {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.NB-modal-intro .NB-carousel .NB-carousel-item {
    overflow: hidden;
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
}

.NB-modal-intro .NB-carousel-item.NB-intro-imports-start {
    left: 0;
    padding: 0 24px;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}

.NB-modal-intro .NB-carousel-item.NB-intro-imports-progress {
    left: 100%;
}

.NB-modal-intro .NB-carousel-item.NB-intro-imports-sites {
    left: 200%;
}

.NB-modal-intro .NB-intro-import-delayed {
    color: #606060;
    margin: 8px 0 0;
    font-size: 14px;
    text-align: center;
    display: none;
}

.NB-modal-intro .NB-intro-import-starred-message {
    display: none;
    text-align: center;
    margin: -24px 0 12px;
    font-size: 14px;
    font-weight: bold;
}

.NB-modal-intro .NB-intro-module-containers {
    overflow: hidden;
}

.NB-modal-intro .NB-intro-module-container {
    width: 46%;
    text-align: center;
}

.NB-modal-intro .NB-module-content-header {
    text-align: center;
    padding: 4px 0;
    margin: 0;
}

.NB-modal-intro .NB-intro-module {
    border-radius: 3px;
    background-color: #F7F8F5;
    border: 1px solid #DFE2DA;
    padding: 12px;
    overflow: hidden;
    width: 100%;

    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}

.NB-modal-intro .NB-page-2 h4 {
    margin: 24px 0 32px;
    font-size: 24px;
}

.NB-intro-import-only.NB-modal-intro .NB-page-2 .NB-page-2-started {
    display: none;
}

.NB-modal-intro .NB-intro-module .NB-modal-submit-button {
    margin: 0;
    font-weight: bold;
    position: relative;
    display: block;
    width: 165px;
    margin: 0 auto;
    overflow: hidden;
    line-height: 11px;
}

.NB-modal-intro .NB-intro-module .NB-modal-submit-button input[type=file] {
    position: absolute;
    right: 0px;
    top: 0px;
    font-family: Arial;
    font-size: 118px;
    margin: 0px;
    padding: 0px;
    cursor: pointer;
    opacity: 0;
    z-index: 10;
}

.NB-modal-intro .NB-intro-module.NB-intro-import-opml {
    position: relative;
}

.NB-modal-intro .NB-intro-imports .NB-intro-import-message {
    margin: 0 0 8px;
    padding: 0;
}

.NB-modal-intro .NB-intro-module h3 {
    font-size: 32px;
    margin: 0 0 4px;
}

.NB-modal-intro .NB-add-google-reader-arrow {
    width: 16px;
    height: 16px;
    vertical-align: bottom;
    margin: 0 4px;
}

.NB-modal-intro .NB-intro-bookmarklet,
.NB-modal-intro .NB-intro-starredimport {
    text-align: center;
    overflow: hidden;
    margin: 32px 0 0;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}

.NB-modal-intro .NB-intro-starredimport {
    margin: 12px 0 0;
}

.NB-modal-intro .NB-intro-bookmarklet-info {
    float: left;
    font-size: 13px;
    padding: 2px 0 0 12px;
}

.NB-modal-intro .NB-intro-starredimport-info {
    font-size: 13px;
    padding: 0 0 10px;
    display: block;
}

.NB-modal-intro a.NB-goodies-bookmarklet-button {
    float: left;
    margin: 2px 0 0;
}

.NB-modal-intro .NB-intro-imports-progress .NB-loading {
    margin: 24px auto -24px;
    float: none;
}

.NB-modal-intro .NB-intro-imports-progress h4 {
    margin: 4px 0;
}

.NB-modal-intro .NB-intro-imports-sites h4 {
    margin: 4px 0;
}

.NB-modal-intro .NB-intro-imports-sites h6 {
    text-align: center;
    font-size: 16px;
}

.NB-modal-intro .NB-intro-imports-sites h6.NB-error {
    font-size: 13px;
}

.NB-modal-intro .NB-intro-imports-sites .NB-modal-submit-button {
    margin: 0 auto 18px;
    text-align: center;
    display: block;
    line-height: 20px;
    color: #606060;
}

.NB-modal-intro .NB-page-3-started {
    margin: 4px;
}

.NB-modal-intro .NB-intro-services .NB-error {
    display: block;
    clear: both;
    margin: 12px 24px;
    float: left;
}

.NB-modal-intro .NB-friends-service {
    width: 50%;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    display: inline-block;
    text-align: center;
    padding: 12px;
    overflow: hidden;
}

.NB-modal-intro .NB-friends-service h3 {
    margin: 12px 0 24px;
}

.NB-modal-intro .NB-friends-service .NB-module-content-header {
    margin: 0;
}

.NB-modal-intro .NB-friends-service .NB-friends-service-title {
    margin-bottom: 20px;
}

.NB-modal-intro .NB-friends-service .NB-modal-submit-button {
    margin: 0;
    font-weight: bold;
    position: relative;
    display: block;
    width: 195px;
    margin: 0 auto;
    overflow: hidden;
    line-height: 11px;
}

.NB-modal-intro .NB-friends-service-facebook {
    position: relative;
    width: 50%;
}

.NB-modal-intro .NB-friends-autofollow {
    text-align: center;
    font-size: 11px;
    margin: 0 0 24px;
}

.NB-modal-intro .NB-friends-autofollow input[type=checkbox] {
    margin: 0 6px 0 0;
}

.NB-modal-intro .NB-friends-service .NB-modal-submit-button img,
.NB-modal-intro .NB-friends-service-connected img {
    vertical-align: text-bottom;
    margin: 0 8px 0 0;
}

.NB-modal-intro .NB-friends-service-connected {
    font-weight: bold;
    font-size: 12px;
    color: darkgreen;
}

.NB-modal-intro .NB-intro-services .NB-note {
    display: block;
    clear: both;
    margin: 12px 24px 12px;
    color: #505050;
    font-size: 11px;
    text-align: center;
}

.NB-modal-intro .NB-services-stats {
    border-top: 1px solid #E6E6E6;
    padding: 8px 20% 0;
    overflow: hidden;
    text-align: center;
    text-transform: uppercase;
    font-size: 13px;
}

.NB-modal-intro .NB-intro-services-stats-count {
    float: left;
    width: 50%;
}

.NB-modal-intro .NB-intro-services-stats-count-number {
    clear: both;
    font-size: 18px;
    margin: 8px 0 0 0;
    color: #0D003C;
    text-shadow: 1px 1px 0 #E8E8E8;
    font-weight: bold;
}

.NB-modal-intro .NB-intro-services-stats-count-description {
    margin: 4px 0 0 0;
    color: #808080;
    clear: both;
}

.NB-modal-intro .NB-page-4-started {
    margin: 6px 0 18px;
}

.NB-modal-intro .NB-intro-follows {
    border-radius: 6px;
    border: 1px solid #DFE2DA;
    background-color: #F7F8F5;
    width: 100%;
}

.NB-modal-intro .NB-intro-uptodate-follow {
    width: 50%;
    text-align: center;
    text-shadow: 0 1px 0 rgba(255, 255, 255, .8);
    border-right: 1px solid #DFE2DA;
    border-bottom: 1px solid #DFE2DA;
    padding: 12px;
}

.NB-modal-intro .NB-intro-uptodate-follow:last-child {
    border-right: none;
}

.NB-modal-intro .NB-intro-uptodate-subscribe .NB-intro-uptodate-follow {
    border-bottom: none;
}

.NB-modal-intro .NB-intro-uptodate-follow iframe {
    margin: 6px -76px 0 40px;
}

.NB-modal-intro .NB-intro-uptodate-follow .NB-modal-submit-button {
    width: 100px;
    text-shadow: none;
    margin: 12px auto 6px;
}

.NB-modal-intro .NB-intro-uptodate-follow .NB-subscribed,
.NB-modal-intro .NB-intro-uptodate-follow.NB-active .NB-modal-submit-button {
    display: none;
    clear: both;
}

.NB-modal-intro .NB-intro-uptodate-follow .NB-subscribed {
    margin: 12px auto 6px;
    height: 19px;
}

.NB-modal-intro .NB-intro-uptodate-follow.NB-active .NB-subscribed {
    display: inline-block;
}

.NB-modal-intro .NB-intro-uptodate-follow input {
    float: left;
    margin: 26px 8px 0;
}

.NB-modal-intro .NB-intro-uptodate-follow span {
    font-weight: bold;
}

.NB-modal-intro .NB-intro-uptodate-follow img {
    margin: 4px 12px;
    width: 48px;
    height: 48px;
    display: inline-block;
    vertical-align: middle;
}

.NB-modal-intro .NB-intro-uptodate-subscribe img {
    width: 16px;
    height: 16px;
    margin: 2px 4px;
    float: none;
    vertical-align: top;
}

.NB-modal-intro .NB-intro-uptodate-follow label {
    display: block;
    padding: 4px 2px;
}

.NB-modal-intro .NB-intro-uptodate-follow .NB-intro-uptodate-newwindow {
    width: 10px;
    height: 10px;
    float: right;
    margin-top: 22px;
    display: none;
}

.NB-modal-intro .NB-intro-uptodate-follow-twitter.NB-intro-uptodate-twitter-inactive .NB-intro-uptodate-newwindow {
    display: block;
}

.NB-modal-intro .NB-intro-uptodate-follow-twitter.NB-intro-uptodate-twitter-inactive input {
    display: none;
}

.NB-modal-intro .NB-intro-module.NB-intro-import-opml,
.NB-modal-intro .NB-intro-module.NB-intro-import-starred {
    height: 200px;
    padding-top: 64px;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}

.NB-modal-intro .NB-intro-module.NB-intro-categories-container {
    height: 200px;
    overflow: auto;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}

.NB-modal-intro .NB-intro-categories {}

.NB-intro-categories .NB-category {
    margin: 0 0 12px;
    cursor: pointer;
}

.NB-intro-categories .NB-category .NB-category-title {
    width: auto;
}

.NB-intro-categories .NB-category .NB-category-title .NB-checkmark {
    background: transparent url(/media/embed/reader/checkmark.png) no-repeat 0 0;
    background-size: 14px 13px;
    width: 14px;
    height: 13px;
    position: absolute;
    right: 4px;
    top: 3px;
    display: none;
}

.NB-intro-categories .NB-category.NB-active .NB-category-title .NB-checkmark {
    display: block;
}

.NB-intro-categories .NB-category-feed {
    text-align: left;
    height: 18px;
    padding: 3px 0 0;
    overflow: hidden;
    font-size: 12px;
    font-weight: bold;
    margin: 1px 4px 0;
    opacity: .5;
}

.NB-intro-categories .NB-category.NB-active .NB-category-feed {
    opacity: 1;
}

.NB-intro-categories .NB-category-feed .NB-category-feed-favicon {
    float: left;
    width: 16px;
    height: 16px;
    margin: 0 4px 0 6px;
}


/* ============ */
/* = Carousel = */
/* ============ */

.carousel {
    position: relative;
}

.carousel-inner {
    overflow: hidden;
    width: 100%;
    position: relative;
}

.carousel .item {
    display: none;
    position: relative;
    -webkit-transition: 0.6s ease-in-out left;
    -moz-transition: 0.6s ease-in-out left;
    -ms-transition: 0.6s ease-in-out left;
    -o-transition: 0.6s ease-in-out left;
    transition: 0.6s ease-in-out left;
}

.carousel .item>img {
    display: block;
    line-height: 1;
}

.carousel .active, .carousel .next, .carousel .prev {
    display: block;
}

.carousel .active {
    left: 0;
}

.carousel .next, .carousel .prev {
    position: absolute;
    top: 0;
    width: 100%;
}

.carousel .next {
    left: 100%;
}

.carousel .prev {
    left: -100%;
}

.carousel .next.left, .carousel .prev.right {
    left: 0;
}

.carousel .active.left {
    left: -100%;
}

.carousel .active.right {
    left: 100%;
}

.carousel-control {
    position: absolute;
    top: 40%;
    left: 15px;
    width: 40px;
    height: 40px;
    margin-top: -20px;
    font-size: 60px;
    font-weight: 100;
    line-height: 30px;
    color: #ffffff;
    text-align: center;
    background: #222222;
    border: 3px solid #ffffff;
    border-radius: 23px;
    opacity: 0.5;
    filter: alpha(opacity=50);
}

.carousel-control.right {
    left: auto;
    right: 15px;
}

.carousel-control:hover {
    color: #ffffff;
    text-decoration: none;
    opacity: 0.9;
    filter: alpha(opacity=90);
}

.carousel-caption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 10px 15px 5px;
    background: #333333;
    background: rgba(0, 0, 0, 0.75);
}

.carousel-caption h4, .carousel-caption p {
    color: #ffffff;
}

/* ========================= */
/* = Feed Exceptions Modal = */
/* ========================= */

.NB-modal-exception .NB-exception-only {
    display: inline;
}

.NB-modal-exception .NB-exception-block-only {
    display: block;
}

.NB-modal-exception.NB-modal-feed-settings .NB-modal-title,
.NB-modal-exception.NB-modal-folder-settings .NB-modal-title {
    display: block;
}

.NB-modal-exception .NB-modal-title.NB-exception-block-only {
    display: block;
}

.NB-modal-exception.NB-modal-folder-settings .NB-exception-block-only,
.NB-modal-exception.NB-modal-feed-settings .NB-exception-block-only {
    display: none;
}

.NB-modal-exception.NB-modal-feed-settings .NB-exception-only,
.NB-modal-exception.NB-modal-folder-settings .NB-exception-only,
.NB-modal-exception.NB-modal-feed-settings .NB-exception-block-only,
.NB-modal-exception.NB-modal-folder-settings .NB-exception-block-only {
    display: none;
}

.NB-modal-exception .NB-settings-only {
    display: none;
}

.NB-modal-exception.NB-modal-folder-settings .NB-settings-only,
.NB-modal-exception.NB-modal-feed-settings .NB-settings-only {
    display: block;
}

.NB-modal-exception .NB-modal-title {
    display: none;
}

.NB-modal-exception .NB-exception-explanation {
    color: #606060;
    font-size: 12px;
    margin: 24px 0;
}

.NB-modal-exception .NB-exception-option-option {
    color: #A0A0A0;
    padding: 0 8px 0 0;
}

.NB-modal-exception .NB-exception-option-meta {
    float: right;
    font-size: 11px;
    font-weight: bold;
    padding: 2px 0 0 0;
}

.NB-modal-exception .NB-exception-option-meta-recommended {
    color: #4A9937;
    order: 5;
    flex: auto;
    text-align: right;
}

.NB-modal-exception .NB-modal-submit input.NB-modal-submit-green {
    margin-bottom: 6px;
}

.NB-modal-exception .NB-exception-input-wrapper {
    position: relative;
    margin: 4px 0 0;
}

.NB-modal-exception .NB-exception-label {
    position: absolute;
    top: 2px;
    left: 0;
}

.NB-modal-exception input[type=text] {
    width: 400px;
    margin: 0 0 12px 104px;
}

.NB-modal-exception .NB-modal-submit-button {
    display: inline-block;
}

.NB-modal-exception .NB-exception-submit-wrapper {
    margin: 0 0 2px 100px;
}

.NB-modal-exception .NB-modal-loading {
    margin: 6px 8px 0;
}

.NB-modal-exception .NB-fieldset-fields .NB-error {
    padding: 6px 0 6px 4px;
}

.NB-modal-feed-settings .NB-exception-option-status,
.NB-modal-folder-settings .NB-exception-option-status {
    color: #3945C0;
    font-weight: bold;
    opacity: 0;
}

.NB-modal-notifications .NB-preference-label,
.NB-modal-feed-settings .NB-preference-label,
.NB-modal-folder-settings .NB-preference-label {
    float: left;
    margin: 10px 0;
    width: 102px;
    clear: both;
}

.NB-modal-notifications .NB-preference-options,
.NB-modal-feed-settings .NB-preference-options,
.NB-modal-folder-settings .NB-preference-options {
    margin: 6px 0;
    float: left;
    overflow: hidden;
}

.NB-modal-folder-settings .NB-premium-only .NB-premium-only-divider {
    background: transparent url(/media/embed/reader/separator_small.png) no-repeat 50% 100%;
    height: 20px;
    width: 100%;
    margin: 4px 0 0;
}

.NB-modal-folder-settings .NB-premium-only .NB-premium-only-text {
    text-align: center;
    margin: 6px 0 8px 0;
    color: #707070;
    font-size: 11px;
}

.NB-modal-folder-settings .NB-folder-icon-settings {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 8px 12px;
}

.NB-modal-folder-settings .NB-folder-icon-current-preview {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #F5F5F5;
    border-radius: 6px;
    border: 1px solid #DDD;
}

.NB-modal-folder-settings .NB-folder-icon-current-preview img {
    width: 32px;
    height: 32px;
}

.NB-modal-folder-settings .NB-folder-icon-preview-emoji {
    font-size: 32px;
    line-height: 1;
}

.NB-modal-folder-settings .NB-folder-icon-preview-default {
    opacity: 0.5;
}

/* ======================= */
/* = Notifications Modal = */
/* ======================= */

.NB-modal-notifications .NB-modal-title .NB-icon {
    background: transparent url("/media/embed/icons/nouns/dialog-notifications.svg") no-repeat center center;
    background-size: 28px;
    filter: hue-rotate(320deg) saturate(18);
}

.NB-modal.NB-modal-notifications .NB-fieldset {
    border-bottom: none;
    width: 100%;
}

.NB-modal-notifications .NB-preference-label {
    clear: none;
}

.NB-modal-notifications .NB-preference-options {
    float: right;
}

.NB-modal-notifications .NB-modal-section-site {
    margin: 12px 0 0;
}

.NB-feedbar-options-notifications .NB-feed-notification {
    padding: 0;
}

.NB-feed-notification {
    width: 100%;
    overflow: hidden;
    position: relative;
    padding: 10px 0;
    border-bottom: 1px solid #F0F0F0;
}

.NB-feed-notification:last-child {
    border-bottom: none;
}

.NB-feed-notification .NB-feed-title {
    font-size: 12px;
    padding: 0 260px 0 24px;
}

.NB-feed-notification .NB-feed-icon {
    width: 16px;
    height: 16px;
    position: absolute;
    top: 10px;
    left: 0;
}

.NB-feed-notification .NB-feed-frequency-icon {
    float: left;
    clear: left;
    width: 16px;
    height: 16px;
    margin: 4px 7px 0 0;
}

.NB-feed-notification .NB-feed-frequency {
    float: left;
    color: #A0A0A0;
    font-size: 10px;
    margin: 2px 0 0 0;
}

.NB-feed-notification .NB-feed-notification-controls {
    position: relative;
    top: 0;
    right: 0;
}

.NB-feed-notification .NB-feed-notification-filter {
    float: right;
    margin: 0 12px;
}

.NB-feed-notification .NB-feed-notification-filter .NB-unread-icon,
.NB-feed-notification .NB-feed-notification-filter .NB-focus-icon {
    width: 8px;
    height: 12px;
    display: block;
    float: left;
    margin: 0 5px 0 2px;
    background: transparent url('/media/embed/icons/nouns/indicator-unread.svg') no-repeat 0 center;
    background-size: 8px;
}

.NB-feed-notification .NB-feed-notification-filter .NB-focus-icon {
    background: transparent url('/media/embed/icons/nouns/indicator-focus.svg') no-repeat 0 center;
    background-size: 8px;
}

.NB-feed-notification .segmented-control {
    margin: 0 0 4px 0;
}

.NB-feed-notification .segmented-control li {
    padding: 2px 6px;
    font-size: 10px;
    min-width: 36px;
}

.NB-feed-notification .segmented-control li:not(.NB-active) {
    color: #A0A0A0;
}

.NB-feed-notification .NB-feed-notification-types {
    float: right;
    clear: right;
}

.NB-feed-notification .NB-feed-notification-filter-focus {
    width: 82px;
}

/* ===================== */
/* = Feedchooser Modal = */
/* ===================== */

.NB-modal-feedchooser {
    overflow: hidden;
    position: relative;
    min-height: 500px;
}

.NB-modal-feedchooser .NB-modal-subtitle {
    font-weight: normal;
    font-size: 12px;
    color: #606060;
    text-shadow: 1px 1px 0 #F0F0F0;
    width: 715px;
}

.NB-modal-feedchooser .NB-modal-subtitle b {
    padding-right: 8px;
    color: #303030;
}

.NB-modal-feedchooser .NB-feedchooser-subtitle-type-prefix {
    color: #C0C0C0;
}

.NB-modal-feedchooser .NB-feedchooser-subtitle-type-price {
    color: #C0C0C0;
    float: right;
}

.NB-modal-feedchooser .NB-feedchooser-type {
    width: auto;
    margin: 0 24px;
    padding: 0;
}

.NB-modal-feedchooser .NB-feedchooser-type.NB-right {
    margin: 0 0 0 0;
    width: 425px;
    padding: 0 0 0 42px;
    margin-right: 24px;
    float: right;
    position: relative;
    border-left: 1px solid #B0B0B0;
}

.NB-modal-feedchooser .NB-feedchooser-type.NB-right .NB-feedchooser-info {
    clear: both;
}

.NB-modal-feedchooser.NB-feedchooser-chooser-only .NB-feedchooser-type {
    float: none;
    width: auto;
    margin: 0 auto;
}

.NB-modal-feedchooser .NB-modal-title .NB-icon {
    background: transparent url('/media/embed/icons/circular/g_icn_mute.png');
    background-size: 28px;
}

.NB-modal-feedchooser.NB-feedchooser-premium .NB-feedchooser-type {
    float: none;
    width: 96%;
    margin: 0 auto;
    padding: 0;
    border-left: none;
}

.NB-modal-feedchooser .NB-feedchooser-porpoise {
    border-radius: 16px;
    line-height: 48px;
    color: #808080;
    font-size: 18px;
    padding: 8px 2px;
    background-color: white;
    position: absolute;
    margin-top: -24px;
    width: 30px;
    text-align: center;
    top: 50%;
    left: -17px
}

.NB-modal-feedchooser .NB-feedchooser-info {
    overflow: hidden;
}

.NB-modal-feedchooser .NB-feedchooser-info-type {
    padding: 20px 16px;
    background-color: #505050;
    color: white;
    text-shadow: 1px 1px 0 #000;
    font-size: 16px;
    font-weight: bold;
    text-transform: uppercase;
    text-align: left;
}

.NB-modal-feedchooser .NB-feedchooser-premium-plan {
    overflow: hidden;
    border-radius: 6px 6px 0px 0;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    margin: 0 0 28px;
    background-color: #F7F7F5;
}

.NB-modal-feedchooser .NB-feedchooser-premium-plan:last-child {
    margin-bottom: 0;
}

.NB-modal-feedchooser .NB-feedchooser-info-counts {
    float: right;
    font-size: 13px;
    line-height: 14px;
    color: #427700;
    margin: 10px 0 1px;
    font-weight: 600;
    background: rgba(66, 119, 0, 0.1);
    padding: 4px 10px;
    border-radius: 12px;
}

.NB-modal-feedchooser .NB-feedchooser-info-sort {
    font-size: 11px;
    line-height: 14px;
    color: #909090;
    margin: 8px 0 0;
    font-weight: 500;
}

.NB-modal-feedchooser .NB-feedchooser-info-reset {
    font-size: 11px;
    line-height: 14px;
    margin: 8px 0 0;
    font-weight: 600;
    display: none;
    cursor: pointer;
    padding: 6px 12px;
    background: rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 4px;
    color: #505050;
    transition: all 0.15s ease;
}

.NB-modal-feedchooser .NB-feedchooser-info-reset:hover {
    background: rgba(0, 0, 0, 0.1);
    border-color: rgba(0, 0, 0, 0.15);
    color: #303030;
}

.NB-modal-feedchooser .NB-feedchooser-info-counts.NB-full {
    color: #2563eb;
    background: rgba(37, 99, 235, 0.1);
}

.NB-modal-feedchooser .NB-feedchooser-info-counts.NB-error {
    display: block;
    color: #dc2626;
    background: rgba(220, 38, 38, 0.1);
}

.NB-modal-feedchooser .NB-feedchooser-folder-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    font-size: 11px;
    color: #808080;
    margin: 8px 0 8px;
}

.NB-modal-feedchooser .NB-feedchooser-folder-actions .NB-splash-link {
    color: #606060;
    cursor: pointer;
}

.NB-modal-feedchooser .NB-feedchooser-folder-actions .NB-splash-link:hover {
    color: #303030;
    text-decoration: underline;
}

.NB-modal-feedchooser .NB-feedchooser-folder-actions-separator {
    color: #c0c0c0;
}

/* ========================= */
/* = Unified Header Card = */
/* ========================= */

.NB-modal-feedchooser .NB-feedchooser-header {
    padding: 16px 0 0;
    margin-bottom: 0;
}

.NB-modal-feedchooser .NB-feedchooser-header-top {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

/* Tier badges */
.NB-modal-feedchooser .NB-feedchooser-tier-badge {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 5px 10px;
    border-radius: 4px;
}

.NB-modal-feedchooser .NB-feedchooser-tier-badge.NB-tier-free {
    background: #e5e7eb;
    color: #4b5563;
}

.NB-modal-feedchooser .NB-feedchooser-tier-badge.NB-tier-premium {
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    color: #92400e;
}

.NB-modal-feedchooser .NB-feedchooser-tier-badge.NB-tier-archive {
    background: linear-gradient(135deg, #dbeafe, #bfdbfe);
    color: #1e40af;
}

.NB-modal-feedchooser .NB-feedchooser-tier-badge.NB-tier-pro {
    background: linear-gradient(135deg, #d1fae5, #a7f3d0);
    color: #065f46;
}

/* Usage text - small colored count in actions row */
.NB-modal-feedchooser .NB-feedchooser-usage-text {
    font-size: 11px;
    font-weight: 500;
    color: #6b7280;
}

.NB-modal-feedchooser .NB-feedchooser-usage-text.NB-state-ok {
    color: #16a34a;
}

.NB-modal-feedchooser .NB-feedchooser-usage-text.NB-state-error {
    color: #dc2626;
}

/* Progress bar container */
.NB-modal-feedchooser .NB-feedchooser-progress-container {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 4px;
}

.NB-modal-feedchooser .NB-feedchooser-progress-track {
    flex: 1;
    height: 8px;
    background: #e5e7eb;
    border-radius: 4px;
    overflow: hidden;
}

.NB-modal-feedchooser .NB-feedchooser-progress-bar {
    height: 100%;
    border-radius: 4px;
    transition: width 0.2s ease;
}

.NB-modal-feedchooser .NB-feedchooser-progress-container.NB-state-ok .NB-feedchooser-progress-bar {
    background: linear-gradient(90deg, #22c55e, #16a34a);
}

.NB-modal-feedchooser .NB-feedchooser-progress-container.NB-state-error .NB-feedchooser-progress-bar {
    background: linear-gradient(90deg, #ef4444, #dc2626);
}

.NB-modal-feedchooser .NB-feedchooser-progress-label {
    font-size: 12px;
    font-weight: 500;
    color: #6b7280;
    white-space: nowrap;
}

.NB-modal-feedchooser .NB-feedchooser-progress-container.NB-state-ok .NB-feedchooser-progress-label {
    color: #16a34a;
}

.NB-modal-feedchooser .NB-feedchooser-progress-container.NB-state-error .NB-feedchooser-progress-label {
    color: #dc2626;
}

/* Inline upgrade prompt */
.NB-modal-feedchooser .NB-feedchooser-upgrade-inline {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.12), rgba(14, 165, 233, 0.08));
    border: 1px solid rgba(56, 189, 248, 0.25);
    border-radius: 6px;
    margin-bottom: 12px;
    cursor: pointer;
    transition: all 0.15s ease;
}

.NB-modal-feedchooser .NB-feedchooser-upgrade-inline:hover {
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.18), rgba(14, 165, 233, 0.14));
    border-color: rgba(56, 189, 248, 0.4);
}

.NB-modal-feedchooser .NB-feedchooser-upgrade-icon {
    width: 20px;
    height: 20px;
    background: transparent url('/media/embed/icons/circular/premium.png') no-repeat center center;
    background-size: 18px;
    flex-shrink: 0;
}

.NB-modal-feedchooser .NB-feedchooser-upgrade-text {
    font-size: 13px;
    font-weight: 600;
    color: #0369a1;
}

.NB-modal-feedchooser .NB-feedchooser-upgrade-limit {
    font-size: 12px;
    font-weight: 500;
    color: #0369a1;
    margin-left: auto;
}

.NB-modal-feedchooser .NB-feedchooser-upgrade-arrow {
    width: 16px;
    height: 16px;
    background: transparent url('/media/embed/icons/nouns/right.svg') no-repeat center center;
    background-size: 10px;
    filter: brightness(0) saturate(100%) invert(30%) sepia(98%) saturate(1200%) hue-rotate(180deg);
    flex-shrink: 0;
}

/* Actions row - directly above feed list */
.NB-modal-feedchooser .NB-feedchooser-actions-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0 0 4px;
}

.NB-modal-feedchooser .NB-feedchooser-actions-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.NB-modal-feedchooser .NB-feedchooser-actions-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.NB-modal-feedchooser .NB-feedchooser-actions-right .NB-feedchooser-folder-actions {
    margin: 0;
}

.NB-modal-feedchooser .NB-modal-subtitle {
    width: auto;
}

.NB-modal-feedchooser .NB-feedchooser {
    background-color: #F7F8F5;
    overflow-y: auto;
    font-size: 11px;
    list-style: none;
    /*    margin: 12px 0;*/
    padding: 0;
    max-height: 742px;
    min-height: 186px;
    width: auto;
    border: 1px solid #909090;
}

.NB-modal-feedchooser .NB-feedchooser .NB-hidden {
    display: block;
}

.NB-modal-feedchooser .NB-modal-submit.NB-modal-submit-paypal {
    border-radius: 3px;
    border: 1px solid #ebc17c;
    padding: 0 8px 4px 0px;
    background-color: #FFED68;
    background-image: -webkit-gradient(linear,
            left bottom,
            left top,
            color-stop(0.16, #fff5cc),
            color-stop(0.84, #fff7d4));
    background-image: -moz-linear-gradient(center bottom,
            #fff5cc 16%,
            #fff7d4 84%);
    -moz-box-shadow: 0 2px 0px #ebc17c;
    box-shadow: 0 2px 0px #ebc17c;

}

.NB-modal-feedchooser .NB-feedchooser-paypal {
    min-height: 84px;
    width: 50%;
    text-align: center;
    overflow: hidden;
    float: left;
    clear: both;
    padding: 16px 0 0;
}

.NB-modal-feedchooser .NB-feedchooser-paypal img {
    margin: 0 auto;
}

.NB-modal-feedchooser .NB-feedchooser-stripe {
    min-height: 48px;
    width: 44%;
    text-align: center;
    overflow: hidden;
    float: left;
    margin: 12px 0 8px;
    padding-left: 12px;
    border-left: 1px solid #C6B400;
}

.NB-modal-feedchooser .NB-feedchooser-stripe .NB-modal-submit-green {
    /*     -moz-box-shadow:0 2px 0 #1a5e0e;*/
    /*    box-shadow:0 2px 0 #1a5e0e;*/
}

.NB-modal-feedchooser .NB-premium-prorate-message {
    font-size: 1em;
    color: rgba(0, 0, 0, 0.5);
    text-transform: none;
    padding: 6px 32px 0;
}

.NB-modal-feedchooser .NB-creditcards {
    width: 100%;
    margin: 8px 0 0;
}

.NB-modal-feedchooser .NB-creditcards img {
    width: 24px;
    height: 18px;
    margin: 0 2px 0 0;
}

.NB-modal-feedchooser .NB-feedchooser-dollar {
    margin: 0px auto;
    padding: 4px 0 4px 2px;
    font-weight: bold;
}

.NB-modal-feedchooser .NB-feedchooser-dollar-value {
    /*    padding: 4px 0 4px 36px;*/
    padding: 4px 0 4px 0px;
    text-shadow: 1px 1px 0 #FFF8B1;
    clear: both;
    position: relative;
    color: #9BA6CC;
    display: none;

    -webkit-transition: all .24s ease-out;
    -moz-transition: all .24s ease-out;
    -o-transition: all .24s ease-out;
    -ms-transition: all .24s ease-out;
}

.NB-modal-feedchooser .NB-feedchooser-dollar-value.NB-selected {
    display: block;
}

.NB-modal-feedchooser .NB-feedchooser-dollar-value:hover,
.NB-modal-feedchooser .NB-feedchooser-dollar-value.NB-selected {
    color: #727BA0;
}

.NB-modal-feedchooser .NB-feedchooser-dollar-value .NB-feedchooser-dollar-image {
    display: none !important;
    position: absolute;
    width: 40px;
    height: 40px;
    top: -10px;
    left: -40px;
    display: block;
    opacity: 0.1;

    -webkit-transition: all .24s ease-out;
    -moz-transition: all .24s ease-out;
    -o-transition: all .24s ease-out;
    -ms-transition: all .24s ease-out;

}

.NB-modal-feedchooser .NB-feedchooser-dollar-value.NB-selected.NB-1 .NB-feedchooser-dollar-image,
.NB-modal-feedchooser .NB-feedchooser-dollar-value.NB-1:hover .NB-feedchooser-dollar-image {
    opacity: 1;
}

.NB-modal-feedchooser .NB-feedchooser-dollar-value.NB-selected.NB-2 .NB-feedchooser-dollar-image,
.NB-modal-feedchooser .NB-feedchooser-dollar-value.NB-2:hover .NB-feedchooser-dollar-image {
    opacity: 1;
}

.NB-modal-feedchooser .NB-feedchooser-dollar-value.NB-selected.NB-3 .NB-feedchooser-dollar-image,
.NB-modal-feedchooser .NB-feedchooser-dollar-value.NB-3:hover .NB-feedchooser-dollar-image {
    opacity: 1;
}

.NB-modal-feedchooser .NB-feedchooser-dollar-month {
    display: inline;
    padding: 0 4px 0 0;
    font-size: 15px;
    position: relative;
}

.NB-modal-feedchooser .NB-selected .NB-feedchooser-dollar-month {
    color: #1C55C0;
}

.NB-modal-feedchooser .NB-feedchooser-dollar-year {
    text-transform: uppercase;
    font-size: 11px;
    color: #86899F;
    display: inline;
}

.NB-modal-feedchooser .NB-selected .NB-feedchooser-dollar-year {
    color: #455596;
}

.NB-modal-feedchooser .NB-feedchooser-payextra {
    margin: 6px 0;
}

.NB-modal-feedchooser #NB-feedchooser-payextra-checkbox {
    margin: 0 6px;
    cursor: pointer;
}

.NB-modal-feedchooser .NB-feedchooser-payextra label {
    cursor: pointer;
}

.NB-modal-feedchooser .NB-feedchooser .feed .feed_counts {
    display: block;
    text-transform: uppercase;
}

.NB-modal-feedchooser #NB-feedchooser-feeds .feed {
    display: block;
}

.NB-modal-feedchooser #NB-feedchooser-feeds {
    min-height: 300px;
    max-height: 500px;
    overflow-y: auto;
}

.NB-modal-feedchooser .NB-feed-organizer-sort {
    display: none;
}

.NB-modal-feedchooser .feed.NB-highlighted .feed_title {
    font-weight: bold;
}

.NB-modal-feedchooser .feed {
    font-weight: normal;
}

.NB-modal-feedchooser .feed:not(.NB-highlighted) .feed_favicon {
    opacity: .3;
}

.NB-modal-feedchooser .feed:not(.NB-highlighted) .feed_title {
    color: #808080;
}

.NB-modal-feedchooser .feed .feed_counts .unread_count_negative,
.NB-modal-feedchooser .feed .feed_counts .unread_count_positive {
    display: none;
}

.NB-modal-feedchooser .feed.NB-highlighted .feed_counts,
.NB-modal-feedchooser .feed.NB-highlighted .feed_counts .unread_count_positive {
    display: block;
}

.NB-modal-feedchooser .feed .feed_counts,
.NB-modal-feedchooser .feed .feed_counts .unread_count_negative {
    display: block;
}

.NB-modal-feedchooser .feed.NB-highlighted .feed_counts .unread_count_negative {
    display: none;
}

.NB-modal-feedchooser .NB-feedlist .folder_title .feed_counts_floater {
    display: none;
}

.NB-modal-feedchooser .NB-folder-highlight-status {
    position: absolute;
    right: 28px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    padding: 2px 6px;
    border-radius: 3px;
    letter-spacing: 0.5px;
}

.NB-modal-feedchooser .NB-folder-highlight-status.NB-folder-on {
    background-color: #6EA74A;
    color: yellow;
}

.NB-modal-feedchooser .NB-folder-highlight-status.NB-folder-off {
    background-color: #CC2A2E;
    color: orange;
}

.NB-modal-feedchooser .NB-feedlist .feed .NB-feedlist-manage-icon:hover {
    background: transparent url('/media/embed/icons/nouns/right.svg') no-repeat 3px 4px;
    background-size: 8px;
}

.NB-modal-feedchooser .NB-feedlist .folder_title .NB-feedlist-manage-icon {
    background: none;
}

.NB-modal-feedchooser .NB-feedlist .feed.NB-hover-inverse .NB-feedlist-manage-icon:hover {
    background: transparent url('/media/embed/icons/nouns/right.svg') no-repeat 3px 4px;
    background-size: 8px;
}

.NB-modal-feedchooser .NB-feedlist .folder.NB-hover-inverse .NB-feedlist-manage-icon {
    background: none;
}

.NB-modal-feedchooser .NB-feedlist .folder_title:hover .NB-folder-icon {
    display: block !important;
}

.NB-modal-feedchooser .NB-feedlist .folder .NB-feedlist-collapse-icon {
    display: block;
    opacity: 0.4;
    transition: opacity 0.15s ease;
}

.NB-modal-feedchooser .NB-feedlist .folder .folder_title:hover .NB-feedlist-collapse-icon {
    opacity: 0.8;
}

.NB-modal-feedchooser .NB-feedlist .folder .folder_title:hover .NB-feedlist-collapse-icon:hover {
    opacity: 1;
}

.NB-modal-feedchooser .unread_count_positive {
    color: yellow;
}

.NB-modal-feedchooser .unread_count_negative {
    color: orange;
}

.NB-modal-feedchooser .NB-modal-submit {
    text-align: center;
    position: relative;
    margin-top: 24px;
}

.NB-modal-feedchooser .NB-modal-submit .NB-modal-submit-or {
    position: absolute;
    right: -12px;
    padding: 12px;
    background-color: #FFF;
}

.NB-modal-feedchooser .NB-modal-submit-add {
    display: none;
}

.NB-modal-feedchooser .NB-feedchooser-premium-bullets {
    list-style: none;
    margin: 0;
    padding: 16px 0;
    font-size: 13px;
    color: #505050;
    text-shadow: 0px 1px 0 rgba(255, 255, 255, .6);
    font-weight: bold;
}

.NB-modal-feedchooser .NB-feedchooser-premium-bullets li {
    margin: 0;
    padding: 8px 12px 8px 42px;
    border-top: 1px solid white;
    position: relative;
}

.NB-modal-feedchooser .NB-feedchooser-premium-bullets li:first-child {
    border-top: none;
}

.NB-feedchooser-premium-bullets li .NB-feedchooser-premium-bullet-image {
    position: absolute;
    left: 12px;
    top: 8px;
    width: 16px;
    height: 16px;
}

.NB-welcome-premium-bullet {
    width: 16px;
    height: 16px;
    vertical-align: bottom;
    margin: 0 6px 0 0;
    display: inline-block;
}

.NB-feedchooser-premium-bullets li.NB-1 .NB-feedchooser-premium-bullet-image,
.NB-welcome-premium-bullet.NB-1 {
    background: transparent url('/media/embed/icons/icons8/icons8-sheets-100.png') no-repeat 0 0;
    background-size: 16px;
}

.NB-feedchooser-premium-bullets li.NB-2 .NB-feedchooser-premium-bullet-image,
.NB-welcome-premium-bullet.NB-2 {
    background: transparent url('/media/embed/icons/icons8/icons8-lightning-bolt-100.png') no-repeat 0 0;
    background-size: 16px;
}

.NB-feedchooser-premium-bullets li.NB-3 .NB-feedchooser-premium-bullet-image,
.NB-welcome-premium-bullet.NB-3 {
    background: transparent url('/media/embed/icons/icons8/icons8-comics-magazine-100.png') no-repeat 0 0;
    background-size: 16px;
}

.NB-feedchooser-premium-bullets li.NB-4 .NB-feedchooser-premium-bullet-image,
.NB-welcome-premium-bullet.NB-4 {
    background: transparent url('/media/embed/icons/icons8/icons8-search-100.png') no-repeat 0 0;
    background-size: 16px;
}

.NB-feedchooser-premium-bullets li.NB-5 .NB-feedchooser-premium-bullet-image,
.NB-welcome-premium-bullet.NB-5 {
    background: transparent url('/media/embed/icons/icons8/icons8-tags-100.png') no-repeat 0 0;
    background-size: 16px;
}

.NB-feedchooser-premium-bullets li.NB-6 .NB-feedchooser-premium-bullet-image,
.NB-welcome-premium-bullet.NB-6 {
    background: transparent url('/media/embed/icons/icons8/icons8-security-wi-fi-100.png') no-repeat 0 0;
    background-size: 16px;
}

.NB-feedchooser-premium-bullets li.NB-7 .NB-feedchooser-premium-bullet-image,
.NB-welcome-premium-bullet.NB-7 {
    background: transparent url('/media/embed/icons/icons8/icons8-rss-100.png') no-repeat 0 0;
    background-size: 16px;
}

.NB-feedchooser-premium-bullets li.NB-8 .NB-feedchooser-premium-bullet-image,
.NB-welcome-premium-bullet.NB-8 {
    background: transparent url('/media/embed/icons/icons8/icons8-activity-history-100.png') no-repeat 0 0;
    background-size: 16px;
}

.NB-feedchooser-premium-bullets li.NB-9 .NB-feedchooser-premium-bullet-image,
.NB-welcome-premium-bullet.NB-9 {
    background: transparent url('/media/embed/icons/nouns/direction_black.svg') no-repeat 0 0;
    background-size: 16px;
}

.NB-feedchooser-premium-bullets li.NB-10 .NB-feedchooser-premium-bullet-image,
.NB-welcome-premium-bullet.NB-10 {
    background: transparent url('/media/embed/icons/icons8/icons8-knife-and-spatchula-100.png') no-repeat 0 0;
    background-size: 16px;
}

.NB-feedchooser-premium-bullets li.NB-11 .NB-feedchooser-premium-bullet-image,
.NB-welcome-premium-bullet.NB-11 {
    background: transparent url('/media/img/icons/nouns/prompt.svg') no-repeat center center;
    background-size: 18px;
    filter: grayscale(1) brightness(0.5);
}

.NB-feedchooser-premium-bullets .NB-feedchooser-premium-poor-hungry-dog {
    display: block;
    margin: 12px auto 4px;
    border: 1px solid #303030;
    width: 128px;
    height: 96px;
}

.NB-feedchooser-premium-archive-bullets li.NB-1 .NB-feedchooser-premium-bullet-image,
.NB-welcome-premium-archive-bullet.NB-1 {
    background: transparent url('/media/embed/icons/icons8/icons8-bursts-100.png') no-repeat 0 0;
    background-size: 16px;
}

.NB-feedchooser-premium-archive-bullets li.NB-2 .NB-feedchooser-premium-bullet-image,
.NB-welcome-premium-archive-bullet.NB-2 {
    background: transparent url('/media/embed/icons/icons8/icons8-relax-with-book-100.png') no-repeat 0 0;
    background-size: 16px;
}

.NB-feedchooser-premium-archive-bullets li.NB-3 .NB-feedchooser-premium-bullet-image,
.NB-welcome-premium-archive-bullet.NB-3 {
    background: transparent url('/media/embed/icons/icons8/icons8-filing-cabinet-100.png') no-repeat 0 0;
    background-size: 16px;
}

.NB-feedchooser-premium-archive-bullets li.NB-4 .NB-feedchooser-premium-bullet-image,
.NB-welcome-premium-archive-bullet.NB-4 {
    background: transparent url('/media/embed/icons/icons8/icons8-quadcopter-100.png') no-repeat 0 0;
    background-size: 16px;
}

.NB-feedchooser-premium-archive-bullets li.NB-5 .NB-feedchooser-premium-bullet-image,
.NB-welcome-premium-archive-bullet.NB-5 {
    background: transparent url('/media/embed/icons/nouns/train.svg') no-repeat 0 0;
    background-size: 16px;
    filter: brightness(0.5);
}

.NB-feedchooser-premium-archive-bullets li.NB-6 .NB-feedchooser-premium-bullet-image,
.NB-welcome-premium-archive-bullet.NB-6 {
    background: transparent url('/media/embed/icons/nouns/direction_black.svg') no-repeat 0 0;
    background-size: 16px;
}

.NB-feedchooser-premium-archive-bullets li.NB-7 .NB-feedchooser-premium-bullet-image,
.NB-welcome-premium-archive-bullet.NB-7 {
    background: transparent url('/media/embed/icons/icons8/icons8-rss-100.png') no-repeat 0 0;
    background-size: 16px;
}

.NB-feedchooser-premium-archive-bullets li.NB-8 .NB-feedchooser-premium-bullet-image,
.NB-welcome-premium-archive-bullet.NB-8 {
    background: transparent url('/media/embed/icons/icons8/icons8-calendar-100.png') no-repeat 0 0;
    background-size: 16px;
}

.NB-feedchooser-premium-archive-bullets li.NB-9 .NB-feedchooser-premium-bullet-image,
.NB-welcome-premium-archive-bullet.NB-9 {
    background: transparent url('/media/embed/icons/nouns/prompt.svg') no-repeat 0 0;
    background-size: 16px;
    filter: grayscale(1) brightness(0.5);
}

.NB-modal-feedchooser .NB-payment-providers {
    margin: 0 24px 24px;
}

.NB-modal-feedchooser .NB-provider-main,
.NB-modal-feedchooser .NB-provider-alternate {
    text-align: center;
    flex-grow: 1;
    width: 50%;
    font-size: 0.7em;
    color: #838b82;
}

.NB-modal-feedchooser .NB-provider-text {
    text-transform: uppercase;
}

.NB-modal-feedchooser .NB-provider-main .NB-modal-submit-button,
.NB-modal-feedchooser .NB-provider-alternate .NB-modal-submit-button {
    padding-top: 12px;
    padding-bottom: 12px;
}

.NB-modal-feedchooser .NB-paypal-button {
    margin-top: 6px;
}

.NB-modal-feedchooser .NB-feedchooser-premium-upgrade {
    margin-top: 24px;
    overflow: hidden;
    display: flex;
    align-items: center;
}

.NB-modal-feedchooser .NB-feedchooser-premium-upgrade:first-child {
    margin-top: 0;
}

.NB-modal-feedchooser .NB-feedchooser-premium-already {
    margin: 0 24px 0;
    padding: 16px 16px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    background-color: rgb(244 251 232);
    border-radius: 4px;
    text-align: center;
    font-size: 0.8em;
    color: #354e35;
    width: 100%;
    display: flex;
    align-items: center;
}

.NB-modal-feedchooser .NB-provider-note {
    width: 100%;
    font-size: 0.75em;
    color: darkgray;
    margin-top: 12px;
}

.NB-modal-feedchooser .NB-feedchooser-or-bar {
    flex-grow: 0;
    width: 1px;
    background-color: rgba(0, 0, 0, .1);
    height: 64px;
    margin: 0 24px;
}

.NB-modal-feedchooser .NB-feedchooser-premium-already-icon {
    background: transparent url('/media/embed/icons/circular/newuser_icn_setup.png') no-repeat center center;
    background-size: 28px;
    width: 36px;
    height: 36px;
    margin: 0 8px;
}

.NB-modal-feedchooser .NB-feedchooser-premium-already-message {
    flex-grow: 1;
}

/* ======================= */
/* = Feedchooser Upgrade = */
/* ======================= */

.NB-modal-feedchooser .NB-feedchooser-upgrade-banner {
    margin: 16px 0 0;
    padding: 14px 18px;
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.15) 0%, rgba(14, 165, 233, 0.12) 100%);
    border: 1px solid rgba(56, 189, 248, 0.3);
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.2s ease;
}

.NB-modal-feedchooser .NB-feedchooser-upgrade-banner:hover {
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.22) 0%, rgba(14, 165, 233, 0.18) 100%);
    border-color: rgba(56, 189, 248, 0.45);
}

.NB-modal-feedchooser .NB-feedchooser-upgrade-banner-text {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 600;
    color: #0369a1;
}

.NB-modal-feedchooser .NB-feedchooser-upgrade-banner-icon {
    width: 22px;
    height: 22px;
    background: transparent url('/media/embed/icons/circular/premium.png') no-repeat center center;
    background-size: 20px;
}

.NB-modal-feedchooser .NB-feedchooser-upgrade-banner-arrow {
    width: 18px;
    height: 18px;
    background: transparent url('/media/embed/icons/nouns/right.svg') no-repeat center center;
    background-size: 10px;
    filter: brightness(0) saturate(100%) invert(30%) sepia(98%) saturate(1200%) hue-rotate(180deg);
    opacity: 0.7;
}

.NB-modal-feedchooser .NB-feedchooser-upgrade-banner-description {
    font-size: 13px;
    font-weight: 500;
    color: #0369a1;
    margin-left: auto;
    margin-right: 8px;
}

/* ========================= */
/* = Premium Upgrade Modal = */
/* ========================= */

/* Prevent scrolling - modal should fit viewport */
#simplemodal-container:has(.NB-modal-premium-upgrade) .simplemodal-wrap {
    overflow: visible !important;
}

.NB-modal-premium-upgrade {
    padding: 20px 28px;
    background: linear-gradient(180deg, #fafafa 0%, #f5f5f4 100%);
}

.NB-premium-upgrade-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.NB-modal-premium-upgrade .NB-modal-title {
    margin-bottom: 0;
    font-size: 22px;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: #1a1a1a;
}

.NB-modal-premium-upgrade .NB-modal-title .NB-icon {
    background: transparent url('/media/embed/icons/circular/g_modal_award.png') no-repeat center center;
    background-size: 28px;
}

.NB-premium-trial-badge {
    padding: 5px 10px;
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
    border: 1px solid #fcd34d;
    border-radius: 4px;
    font-size: 11px;
    color: #92400e;
    white-space: nowrap;
    box-shadow: 0 1px 2px rgba(251, 191, 36, 0.1);
}

.NB-premium-trial-badge strong {
    color: #d97706;
    font-size: 13px;
    font-weight: 700;
}

/* Horizontal tier layout */
.NB-premium-tiers {
    display: flex;
    flex-direction: row;
    gap: 12px;
    align-items: stretch;
}

.NB-premium-tier {
    flex: 1;
    background: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow:
        0 1px 3px rgba(0, 0, 0, 0.04),
        0 4px 12px rgba(0, 0, 0, 0.03);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

/* Tier width proportions for three premium tiers (34-38-28) */
.NB-premium-tier-premium {
    flex: 34;
}

.NB-premium-tier-archive {
    flex: 38;
}

.NB-premium-tier-pro {
    flex: 28;
}

/* Bottom row: Free and Self-Hosted side by side */
.NB-premium-tiers-bottom {
    display: flex;
    flex-direction: row;
    gap: 12px;
    margin-top: 12px;
    align-items: stretch;
}

.NB-premium-tiers-bottom .NB-premium-tier {
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Free tier muted styling */
.NB-premium-tier-free {
    background: linear-gradient(180deg, #f3f4f6 0%, #e5e7eb 100%);
    border-color: #d1d5db;
}

.NB-premium-tier-free:hover {
    border-color: #9ca3af;
    transform: translateY(-2px);
}

.NB-premium-tier-free .NB-premium-tier-header {
    background: linear-gradient(135deg, #6b7280 0%, #4b5563 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 16px;
    min-height: 44px;
    box-sizing: border-box;
}

.NB-premium-tier-free .NB-premium-tier-name {
    color: white;
    font-size: 16px;
    text-transform: none;
    margin-bottom: 0;
}

.NB-premium-tier-free .NB-premium-tier-price-subtitle {
    color: rgba(255, 255, 255, 0.8);
    font-size: 13px;
    font-weight: 400;
}

.NB-premium-tier-free .NB-premium-tier-features {
    background-color: #f9fafb;
    padding: 10px 16px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px 16px;
    align-content: start;
}

.NB-premium-tier-free .NB-premium-tier-features li {
    color: #4b5563;
    padding: 6px 0;
    font-size: 12px;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.NB-premium-tier-free .NB-premium-tier-features li span {
    flex: 1;
}

/* Green checkmarks for free tier - override absolute positioning for flex layout */
.NB-premium-tier-features-free li .NB-premium-bullet-image {
    background-image: url('/media/embed/icons/nouns/accept.svg');
    filter: invert(48%) sepia(79%) saturate(2476%) hue-rotate(86deg) brightness(95%) contrast(100%);
    /* green */
    width: 12px;
    height: 12px;
    background-size: 12px;
}

.NB-premium-tier-free .NB-premium-tier-actions {
    background: linear-gradient(180deg, #f3f4f6 0%, #e5e7eb 100%);
    border-top: 1px solid #d1d5db;
    padding: 10px 12px;
}

/* Free tier status styling */
.NB-premium-tier-free-status {
    padding: 0;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.NB-premium-tier-free-trial-notice {
    font-size: 11px;
    color: #6b7280;
    line-height: 1.4;
    padding: 6px 10px;
    background: rgba(0, 0, 0, 0.04);
    border-radius: 6px;
}

.NB-premium-tier-free-current {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 12px;
    color: #4b5563;
    font-weight: 500;
}

.NB-premium-tier-free-current .NB-premium-tier-status-icon {
    width: 14px;
    height: 14px;
    background-image: url('/media/embed/icons/nouns/accept.svg');
    background-size: contain;
    background-repeat: no-repeat;
    filter: invert(48%) sepia(79%) saturate(2476%) hue-rotate(86deg) brightness(95%) contrast(100%);
}

/* Self-Hosted tier styling */
.NB-premium-tier-selfhosted {
    background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
    border-color: #cbd5e1;
}

.NB-premium-tier-selfhosted:hover {
    border-color: #94a3b8;
    transform: translateY(-2px);
}

.NB-premium-tier-selfhosted .NB-premium-tier-header {
    background: linear-gradient(135deg, #475569 0%, #334155 100%);
    padding: 12px 16px;
    min-height: 44px;
    box-sizing: border-box;
}

.NB-premium-tier-selfhosted .NB-premium-tier-label {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    margin-bottom: 2px;
}

.NB-premium-tier-selfhosted .NB-premium-tier-name {
    color: white;
    font-size: 16px;
    text-transform: none;
}

.NB-premium-tier-selfhosted .NB-premium-tier-features {
    background-color: #f8fafc;
    padding: 10px 16px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px 16px;
    align-content: start;
    flex: 1;
}

.NB-premium-tier-selfhosted .NB-premium-tier-features li {
    color: #475569;
    padding: 6px 0;
    font-size: 12px;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.NB-premium-tier-selfhosted .NB-premium-tier-features li span {
    flex: 1;
}

/* Green checkmarks for self-hosted tier - override absolute positioning for flex layout */
.NB-premium-tier-features-selfhosted li .NB-premium-bullet-image {
    background-image: url('/media/embed/icons/nouns/accept.svg');
    filter: invert(48%) sepia(79%) saturate(2476%) hue-rotate(86deg) brightness(95%) contrast(100%);
    /* green */
    width: 12px;
    height: 12px;
    background-size: 12px;
}

.NB-premium-tier-selfhosted .NB-premium-tier-actions {
    background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
    border-top: 1px solid #cbd5e1;
    padding: 10px 12px;
}

.NB-premium-selfhosted-github {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
    font-size: 12px;
    padding: 8px 12px;
}

.NB-premium-selfhosted-github .NB-github-icon {
    width: 16px;
    height: 16px;
}

.NB-premium-tier:hover {
    border-color: rgba(0, 0, 0, 0.12);
    box-shadow:
        0 4px 12px rgba(0, 0, 0, 0.08),
        0 12px 32px rgba(0, 0, 0, 0.06);
    transform: translateY(-4px);
}

/* Tier header styling */
.NB-premium-tier-header {
    padding: 20px 16px 18px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* Subtle pattern overlay for headers */
.NB-premium-tier-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 80%, rgba(255, 255, 255, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.1) 0%, transparent 40%);
    pointer-events: none;
}

.NB-premium-tier-premium .NB-premium-tier-header {
    background: linear-gradient(145deg, #22c55e 0%, #16a34a 50%, #15803d 100%);
}

.NB-premium-tier-archive .NB-premium-tier-header {
    background: linear-gradient(145deg, #3b82f6 0%, #2563eb 50%, #1d4ed8 100%);
}

.NB-premium-tier-pro .NB-premium-tier-header {
    background: linear-gradient(145deg, #f59e0b 0%, #d97706 50%, #b45309 100%);
}

.NB-premium-tier-name {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 8px;
    color: rgba(255, 255, 255, 0.9);
    position: relative;
}

.NB-premium-tier-price {
    position: relative;
    color: #ffffff;
}

.NB-premium-tier-price-amount {
    font-size: 36px;
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1;
    display: inline-block;
}

.NB-premium-tier-price-period {
    font-size: 15px;
    font-weight: 500;
    opacity: 0.85;
    margin-left: 2px;
}

/* Features list */
.NB-premium-tier-features {
    flex: 1;
    list-style: none;
    margin: 0;
    padding: 14px 16px;
    font-size: 12px;
    color: #374151;
    line-height: 1.4;
}

.NB-premium-tier-features li {
    padding: 5px 0 5px 26px;
    position: relative;
}

.NB-premium-tier-features li:last-child {
    border-bottom: none;
}

/* Feature bullet icons */
.NB-premium-tier-features li .NB-premium-bullet-image {
    position: absolute;
    left: 0;
    top: 5px;
    width: 18px;
    height: 18px;
    background-size: 18px;
    background-repeat: no-repeat;
    background-position: center;
}

/* Premium tier icons with individual vivid colors */
.NB-premium-tier-premium .NB-premium-tier-features li.NB-1 .NB-premium-bullet-image {
    background-image: url('/media/embed/icons/icons8/icons8-sheets-100.png');
    filter: invert(48%) sepia(79%) saturate(2476%) hue-rotate(86deg) brightness(95%) contrast(100%);
    /* green */
}

.NB-premium-tier-premium .NB-premium-tier-features li.NB-2 .NB-premium-bullet-image {
    background-image: url('/media/embed/icons/icons8/icons8-lightning-bolt-100.png');
    filter: invert(57%) sepia(98%) saturate(1000%) hue-rotate(360deg) brightness(103%) contrast(105%);
    /* orange */
}

.NB-premium-tier-premium .NB-premium-tier-features li.NB-3 .NB-premium-bullet-image {
    background-image: url('/media/embed/icons/icons8/icons8-comics-magazine-100.png');
    filter: invert(36%) sepia(87%) saturate(2000%) hue-rotate(310deg) brightness(95%) contrast(100%);
    /* pink */
}

.NB-premium-tier-premium .NB-premium-tier-features li.NB-4 .NB-premium-bullet-image {
    background-image: url('/media/embed/icons/icons8/icons8-search-100.png');
    filter: invert(37%) sepia(93%) saturate(2000%) hue-rotate(200deg) brightness(95%) contrast(100%);
    /* blue */
}

.NB-premium-tier-premium .NB-premium-tier-features li.NB-5 .NB-premium-bullet-image {
    background-image: url('/media/embed/icons/icons8/icons8-tags-100.png');
    filter: invert(30%) sepia(90%) saturate(2500%) hue-rotate(260deg) brightness(90%) contrast(100%);
    /* purple */
}

.NB-premium-tier-premium .NB-premium-tier-features li.NB-6 .NB-premium-bullet-image {
    background-image: url('/media/embed/icons/icons8/icons8-security-wi-fi-100.png');
    filter: invert(55%) sepia(75%) saturate(1500%) hue-rotate(140deg) brightness(95%) contrast(95%);
    /* teal */
}

.NB-premium-tier-premium .NB-premium-tier-features li.NB-7 .NB-premium-bullet-image {
    background-image: url('/media/embed/icons/icons8/icons8-rss-100.png');
    filter: invert(35%) sepia(95%) saturate(2500%) hue-rotate(350deg) brightness(95%) contrast(105%);
    /* red */
}

.NB-premium-tier-premium .NB-premium-tier-features li.NB-8 .NB-premium-bullet-image {
    background-image: url('/media/embed/icons/icons8/icons8-activity-history-100.png');
    filter: invert(55%) sepia(80%) saturate(2000%) hue-rotate(170deg) brightness(95%) contrast(95%);
    /* cyan */
}

.NB-premium-tier-premium .NB-premium-tier-features li.NB-9 .NB-premium-bullet-image {
    background-image: url('/media/embed/icons/nouns/direction_black.svg');
    filter: invert(25%) sepia(85%) saturate(2500%) hue-rotate(280deg) brightness(85%) contrast(105%);
    /* violet */
}

.NB-premium-tier-premium .NB-premium-tier-features li.NB-10 .NB-premium-bullet-image {
    background-image: url('/media/embed/icons/icons8/icons8-knife-and-spatchula-100.png');
    filter: invert(60%) sepia(80%) saturate(1500%) hue-rotate(35deg) brightness(100%) contrast(100%);
    /* yellow-gold */
}

/* Archive tier icons with individual vivid colors */
.NB-premium-tier-features-archive li.NB-1 .NB-premium-bullet-image {
    background-image: url('/media/embed/icons/icons8/icons8-bursts-100.png');
    filter: invert(35%) sepia(95%) saturate(2500%) hue-rotate(350deg) brightness(95%) contrast(105%);
    /* red */
}

.NB-premium-tier-features-archive li.NB-2 .NB-premium-bullet-image {
    background-image: url('/media/embed/icons/icons8/icons8-relax-with-book-100.png');
    filter: invert(48%) sepia(79%) saturate(2476%) hue-rotate(86deg) brightness(95%) contrast(100%);
    /* green */
}

.NB-premium-tier-features-archive li.NB-3 .NB-premium-bullet-image {
    background-image: url('/media/embed/icons/nouns/mark-read.svg');
    filter: invert(55%) sepia(80%) saturate(2000%) hue-rotate(170deg) brightness(95%) contrast(95%);
    /* cyan */
}

.NB-premium-tier-features-archive li.NB-4 .NB-premium-bullet-image {
    background-image: url('/media/embed/icons/icons8/icons8-filing-cabinet-100.png');
    filter: invert(45%) sepia(70%) saturate(1200%) hue-rotate(10deg) brightness(95%) contrast(100%);
    /* brown-orange */
}

.NB-premium-tier-features-archive li.NB-5 .NB-premium-bullet-image {
    background-image: url('/media/embed/icons/icons8/icons8-quadcopter-100.png');
    filter: invert(37%) sepia(93%) saturate(2000%) hue-rotate(200deg) brightness(95%) contrast(100%);
    /* blue */
}

.NB-premium-tier-features-archive li.NB-6 .NB-premium-bullet-image {
    background-image: url('/media/embed/icons/nouns/train.svg');
    filter: invert(37%) sepia(93%) saturate(2000%) hue-rotate(200deg) brightness(95%) contrast(100%);
    /* blue */
}

.NB-premium-tier-features-archive li.NB-7 .NB-premium-bullet-image {
    background-image: url('/media/embed/icons/nouns/direction_black.svg');
    filter: invert(25%) sepia(85%) saturate(2500%) hue-rotate(280deg) brightness(85%) contrast(105%);
    /* violet */
}

.NB-premium-tier-features-archive li.NB-8 .NB-premium-bullet-image {
    background-image: url('/media/embed/icons/icons8/icons8-rss-100.png');
    filter: invert(57%) sepia(98%) saturate(1000%) hue-rotate(360deg) brightness(103%) contrast(105%);
    /* orange */
}

.NB-premium-tier-features-archive li.NB-9 .NB-premium-bullet-image {
    background-image: url('/media/embed/icons/nouns/history.svg');
    filter: invert(45%) sepia(90%) saturate(1500%) hue-rotate(330deg) brightness(95%) contrast(95%);
    /* pink/magenta */
}

.NB-premium-tier-features-archive li.NB-10 .NB-premium-bullet-image {
    background-image: url('/media/img/icons/nouns/prompt.svg');
    filter: invert(30%) sepia(90%) saturate(2500%) hue-rotate(260deg) brightness(90%) contrast(100%);
    /* purple */
}

.NB-premium-tier-features-archive li.NB-11 .NB-premium-bullet-image {
    background-image: url('/media/embed/icons/icons8/icons8-calendar-100.png');
    filter: invert(55%) sepia(80%) saturate(2000%) hue-rotate(170deg) brightness(95%) contrast(95%);
    /* cyan */
}

.NB-premium-tier-features-archive li.NB-12 .NB-premium-bullet-image {
    background-image: url('/media/embed/icons/nouns/folder-open.svg');
    filter: invert(45%) sepia(70%) saturate(1200%) hue-rotate(10deg) brightness(95%) contrast(100%);
    /* brown-orange */
}

.NB-premium-tier-features-archive li.NB-13 .NB-premium-bullet-image {
    background-image: url('/media/embed/icons/nouns/world.svg');
    filter: invert(35%) sepia(95%) saturate(2500%) hue-rotate(350deg) brightness(95%) contrast(105%);
    /* red */
}

/* Pro tier icons with individual vivid colors */
.NB-premium-tier-features-pro li.NB-1 .NB-premium-bullet-image {
    background-image: url('/media/embed/icons/nouns/stack.svg');
    filter: invert(48%) sepia(79%) saturate(2476%) hue-rotate(86deg) brightness(95%) contrast(100%);
    /* green */
}

.NB-premium-tier-features-pro li.NB-2 .NB-premium-bullet-image {
    background-image: url('/media/embed/icons/icons8/icons8-lightning-bolt-100.png');
    filter: invert(57%) sepia(98%) saturate(1000%) hue-rotate(360deg) brightness(103%) contrast(105%);
    /* orange */
}

.NB-premium-tier-features-pro li.NB-3 .NB-premium-bullet-image {
    background-image: url('/media/embed/icons/nouns/train.svg');
    filter: invert(65%) sepia(90%) saturate(1200%) hue-rotate(15deg) brightness(100%) contrast(100%);
    /* gold */
}

.NB-premium-tier-features-pro li.NB-4 .NB-premium-bullet-image {
    background-image: url('/media/embed/icons/icons8/icons8-pyramids-100.png');
    filter: invert(65%) sepia(90%) saturate(1200%) hue-rotate(15deg) brightness(100%) contrast(100%);
    /* gold */
}

.NB-premium-tier-features-pro li.NB-5 .NB-premium-bullet-image {
    background-image: url('/media/embed/icons/nouns/train.svg');
    filter: invert(65%) sepia(90%) saturate(1200%) hue-rotate(15deg) brightness(100%) contrast(100%);
    /* gold */
}

.NB-premium-tier-features-pro li.NB-6 .NB-premium-bullet-image {
    background-image: url('/media/embed/icons/icons8/icons8-search-100.png');
    filter: invert(65%) sepia(90%) saturate(1200%) hue-rotate(15deg) brightness(100%) contrast(100%);
    /* gold */
}


/* "Everything in X, plus:" styling */
.NB-premium-tier-features li.NB-premium-tier-includes {
    font-weight: 600;
    padding-left: 0;
    padding-top: 0;
    padding-bottom: 6px;
    margin-bottom: 2px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.NB-premium-tier-premium .NB-premium-tier-features li.NB-premium-tier-includes {
    color: #16a34a;
}

.NB-premium-tier-archive .NB-premium-tier-features li.NB-premium-tier-includes {
    color: #2563eb;
}

.NB-premium-tier-pro .NB-premium-tier-features li.NB-premium-tier-includes {
    color: #d97706;
}

.NB-premium-tier-features li.NB-premium-tier-includes::before {
    display: none;
}

/* Upcoming features header */
.NB-premium-tier-features li.NB-premium-tier-upcoming-header {
    font-weight: 600;
    padding-left: 0;
    padding-top: 8px;
    padding-bottom: 6px;
    margin-top: 4px;
    margin-bottom: 2px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    color: #9ca3af;
}

.NB-premium-tier-features li.NB-premium-tier-upcoming-header::before {
    display: none;
}

/* Upcoming features - lighter styling */
.NB-premium-tier-features li.NB-upcoming {
    color: #9ca3af;
}

.NB-premium-tier-features li.NB-upcoming .NB-premium-bullet-image {
    opacity: 0.5;
}

/* Free and Self-Hosted tiers use flex layout instead of absolute positioning */
.NB-premium-tier-free .NB-premium-tier-features li,
.NB-premium-tier-selfhosted .NB-premium-tier-features li {
    padding-left: 0;
    position: static;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

/* Bullet image overrides for Free and Self-Hosted flex layout */
.NB-premium-tier-free .NB-premium-tier-features li .NB-premium-bullet-image,
.NB-premium-tier-selfhosted .NB-premium-tier-features li .NB-premium-bullet-image {
    position: static;
    flex-shrink: 0;
    width: 12px;
    height: 12px;
    background-size: 12px;
    margin-top: 2px;
}

/* Dog image in premium tier */
.NB-premium-dog-image {
    display: block;
    margin: 4px auto 0;
    width: 56px;
    height: 42px;
    border: 1px solid #e5e7eb;
    border-radius: 4px;
    object-fit: cover;
}

.NB-premium-hungry-dog {
    color: #16a34a;
    font-weight: 600;
}

/* Actions section */
.NB-premium-tier-actions {
    padding: 16px 16px 18px;
    background: linear-gradient(180deg, #fafafa 0%, #f5f5f5 100%);
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.NB-premium-tier-buttons {
    text-align: center;
}

.NB-premium-tier-buttons .NB-creditcards {
    margin-bottom: 10px;
    opacity: 0.7;
    transition: opacity 0.2s ease;
}

.NB-premium-tier:hover .NB-premium-tier-buttons .NB-creditcards {
    opacity: 1;
}

.NB-premium-tier-buttons .NB-creditcards img {
    width: 26px;
    height: 18px;
    margin: 0 3px;
}

/* Upgrade buttons - tier specific */
.NB-premium-tier-buttons .NB-modal-submit-button {
    width: 100%;
    padding: 12px 16px;
    font-size: 13px;
    font-weight: 600;
    box-sizing: border-box;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    letter-spacing: -0.01em;
}

.NB-premium-tier-premium .NB-premium-tier-buttons .NB-modal-submit-button.NB-modal-submit-green {
    background: linear-gradient(180deg, #22c55e 0%, #16a34a 100%);
    box-shadow: 0 1px 2px rgba(22, 163, 74, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.NB-premium-tier-premium .NB-premium-tier-buttons .NB-modal-submit-button.NB-modal-submit-green:hover {
    background: linear-gradient(180deg, #16a34a 0%, #15803d 100%);
    box-shadow: 0 4px 12px rgba(22, 163, 74, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.NB-premium-tier-archive .NB-premium-tier-buttons .NB-modal-submit-button.NB-modal-submit-green {
    background: linear-gradient(180deg, #3b82f6 0%, #2563eb 100%);
    box-shadow: 0 1px 2px rgba(37, 99, 235, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.NB-premium-tier-archive .NB-premium-tier-buttons .NB-modal-submit-button.NB-modal-submit-green:hover {
    background: linear-gradient(180deg, #2563eb 0%, #1d4ed8 100%);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.NB-premium-tier-pro .NB-premium-tier-buttons .NB-modal-submit-button.NB-modal-submit-green {
    background: linear-gradient(180deg, #f59e0b 0%, #d97706 100%);
    box-shadow: 0 1px 2px rgba(217, 119, 6, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.NB-premium-tier-pro .NB-premium-tier-buttons .NB-modal-submit-button.NB-modal-submit-green:hover {
    background: linear-gradient(180deg, #d97706 0%, #b45309 100%);
    box-shadow: 0 4px 12px rgba(217, 119, 6, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.NB-premium-tier-buttons .NB-provider-alternate {
    margin-top: 8px;
    font-size: 10px;
    color: #6b7280;
}

.NB-premium-tier-buttons .NB-provider-alternate .NB-modal-submit-button {
    margin-top: 4px;
    background: #ffffff;
    border: 1px solid #d1d5db;
    color: #374151;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.NB-premium-tier-buttons .NB-provider-alternate .NB-modal-submit-button:hover {
    background: #f9fafb;
    border-color: #9ca3af;
}

.NB-premium-tier-buttons .NB-paypal-button {
    margin-top: 6px;
}

.NB-premium-tier-buttons .NB-premium-prorate-message {
    margin-top: 10px;
    font-size: 11px;
    color: #9ca3af;
    font-style: italic;
}

/* Already subscribed status */
.NB-premium-tier-status {
    text-align: center;
    padding: 12px 0;
}

.NB-premium-tier-status-icon {
    width: 36px;
    height: 36px;
    margin: 0 auto 10px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.NB-premium-tier-premium .NB-premium-tier-status-icon {
    background: rgba(34, 197, 94, 0.12);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2316a34a' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E");
    background-size: 18px;
    background-position: center;
    background-repeat: no-repeat;
}

.NB-premium-tier-archive .NB-premium-tier-status-icon {
    background: rgba(59, 130, 246, 0.12);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232563eb' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E");
    background-size: 18px;
    background-position: center;
    background-repeat: no-repeat;
}

.NB-premium-tier-pro .NB-premium-tier-status-icon {
    background: rgba(245, 158, 11, 0.12);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23d97706' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E");
    background-size: 18px;
    background-position: center;
    background-repeat: no-repeat;
}

.NB-premium-tier-status-text {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 14px;
}

.NB-premium-tier-premium .NB-premium-tier-status-text {
    color: #16a34a;
}

.NB-premium-tier-archive .NB-premium-tier-status-text {
    color: #2563eb;
}

.NB-premium-tier-pro .NB-premium-tier-status-text {
    color: #d97706;
}

.NB-premium-tier-status .NB-modal-submit-button {
    font-size: 12px;
    padding: 10px 14px;
}

/* Active subscription status with checkmark */
.NB-premium-tier-status-active,
.NB-premium-tier-status-included {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 12px 14px;
    margin-bottom: 12px;
    border-radius: 8px;
}

.NB-premium-tier-status-active {
    background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
    border: 1px solid #6ee7b7;
}

.NB-premium-tier-archive .NB-premium-tier-status-active {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    border: 1px solid #93c5fd;
}

.NB-premium-tier-pro .NB-premium-tier-status-active {
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
    border: 1px solid #fcd34d;
}

.NB-premium-tier-status-included {
    background: linear-gradient(135deg, #f9fafb 0%, #f3f4f6 100%);
    border: 1px solid #d1d5db;
}

.NB-premium-tier-status-active .NB-premium-tier-status-icon,
.NB-premium-tier-status-included .NB-premium-tier-status-icon {
    width: 28px;
    height: 28px;
    margin: 0 0 8px 0;
}

.NB-premium-tier-status-included .NB-premium-tier-status-icon {
    background: rgba(107, 114, 128, 0.12);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E");
    background-size: 14px;
    background-position: center;
    background-repeat: no-repeat;
}

.NB-premium-tier-status-active .NB-premium-tier-status-text,
.NB-premium-tier-status-included .NB-premium-tier-status-text {
    margin-bottom: 0;
    font-size: 12px;
    text-align: center;
    line-height: 1.4;
}

.NB-premium-tier-status-included .NB-premium-tier-status-text {
    color: #6b7280;
}

/* Switch/downgrade button styling */
.NB-premium-tier-status .NB-modal-submit-grey {
    background: #ffffff;
    border: 1px solid #d1d5db;
    color: #374151;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.NB-premium-tier-status .NB-modal-submit-grey:hover {
    background: #f9fafb;
    border-color: #9ca3af;
}

/* Trial status badge in tier */
.NB-premium-tier-trial-status {
    text-align: center;
    padding: 10px 14px;
    margin-bottom: 14px;
    background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
    border: 1px solid #6ee7b7;
    border-radius: 6px;
    font-size: 12px;
    color: #047857;
}

.NB-premium-tier-trial-status strong {
    font-weight: 700;
}

/* Responsive: stack on mobile */
@media (max-width: 900px) {
    .NB-modal-premium-upgrade {
        padding: 24px 20px;
    }

    .NB-premium-tiers {
        flex-direction: column;
        gap: 16px;
    }

    .NB-premium-tier {
        max-width: 100%;
    }

    .NB-premium-tier-features {
        max-height: none;
    }

    .NB-premium-tier-header {
        padding: 24px 16px 20px;
    }

    .NB-premium-tier-price-amount {
        font-size: 36px;
    }
}

/* ===================== */
/* = Newsletters Modal = */
/* ===================== */

.NB-modal-newsletters fieldset {
    margin: 32px 0;
}

.NB-modal-newsletters .NB-modal-title .NB-icon {
    background: transparent url('/media/embed/icons/circular/g_modal_mail.png');
    background-size: 28px;
}

.NB-modal-newsletters .NB-newsletters-email {
    margin: 0 0 0 24px;
    font-size: 18px;
    width: 80%;
}

.NB-modal-newsletters p {
    margin-left: 24px;
    font-size: 14px;
}

.NB-modal-newsletters .NB-newsletters-gmail {
    width: 700px;
    margin: 0 auto;
    display: block;
    padding: 12px;
    border: 1px solid #F0F0F0;

}

/* ================= */
/* = Goodies Modal = */
/* ================= */

.NB-modal-goodies fieldset {
    margin: 32px 0 32px;
}

.NB-modal-goodies .NB-modal-title .NB-icon {
    background: transparent url("/media/embed/icons/nouns/dialog-goodies.svg") no-repeat center center;
    background-size: 28px;
    filter: hue-rotate(186deg) saturate(18);
}

.NB-modal-goodies .NB-goodies-group {
    clear: both;
    margin: 16px 0 0 0;
    overflow: hidden;
    background-color: #F7F7F5;
    padding: 8px;
}

.NB-modal-goodies .NB-goodies-title {
    font-size: 14px;
    font-weight: bold;
    text-transform: uppercase;
    margin: 8px;
    color: #404030;
    text-shadow: 1px 1px 0 #E0E0E0;
}

.NB-modal-goodies .NB-goodies-bookmarklet-button,
.NB-modal-intro .NB-goodies-bookmarklet-button,
.NB-modal-goodies .NB-goodies-contenthandler-button {
    display: inline-block;
    float: right;
    /* font-family: 'Lucida Grande', Verdana, sans-serif; */
    font-weight: bold;
    font-size: 11px;
    border-radius: 8px;
    color: #fff;
    background-color: #626262;
    border: 1px solid #626262;
    padding: 0px 7px 1px 7px;
    text-shadow: #3b3b3b 1px 1px 0px;
    min-width: 62px;
    text-align: center;
    vertical-align: 2px;
    color: #fff;
    text-decoration: none;
    outline: none;
    margin: 8px 8px;
}

.NB-modal-goodies .NB-goodies-firefox-link {
    float: right;
}

.NB-modal-goodies .NB-goodies-firefox {
    float: right;
    width: 28px;
    height: 28px;
    margin: 0 6px 0 0;
    background: transparent url('/media/img/reader/firefox.png') no-repeat 0 0;
}

.NB-modal-goodies .NB-modal-submit-button {
    float: right;
}

.NB-modal-goodies .NB-goodies-safari {
    float: right;
    width: 28px;
    height: 28px;
    margin: 0 6px 0 0;
    background: transparent url('/media/img/reader/safari.png') no-repeat 0 0;
}

.NB-modal-goodies .NB-goodies-chrome-link {
    float: right;
}

.NB-modal-goodies .NB-goodies-chrome {
    float: right;
    width: 28px;
    height: 28px;
    margin: 0 6px 0 0;
    background: transparent url('/media/img/reader/chrome.png') no-repeat 0 0;
}

.NB-modal-goodies .NB-goodies-readkit {
    float: right;
    width: 28px;
    height: 28px;
    margin: 0 6px 0 0;
    background: transparent url('/media/img/mobile/readkit.png') no-repeat 0 0;
    background-size: 28px;
}

.NB-modal-goodies .NB-goodies-tafiti {
    float: right;
    width: 28px;
    height: 28px;
    margin: 0 6px 0 0;
    background: transparent url('/media/img/mobile/tafiti.png') no-repeat 0 0;
    background-size: 28px;
}

.NB-modal-goodies .NB-goodies-reeder-ios {
    float: right;
    width: 28px;
    height: 28px;
    margin: 0 6px 0 0;
    background: transparent url('/media/img/mobile/icon_reeder_ios.png') no-repeat 0 0;
    background-size: 28px;
}

.NB-modal-goodies .NB-goodies-reeder-mac {
    float: right;
    width: 28px;
    height: 28px;
    margin: 0 6px 0 0;
    background: transparent url('/media/img/mobile/icon_reeder_mac.png') no-repeat 0 0;
    background-size: 28px;
}

.NB-modal-goodies .NB-goodies-leaf {
    float: right;
    width: 28px;
    height: 28px;
    margin: 0 6px 0 0;
    background: transparent url('/media/img/mobile/icon_leaf.png') no-repeat 0 0;
    background-size: 28px;
}

.NB-modal-goodies .NB-goodies-unread-ios {
    float: right;
    width: 28px;
    height: 28px;
    margin: 0 6px 0 0;
    background: transparent url('/media/img/mobile/icon_unread.png') no-repeat 0 0;
    background-size: 28px;
}

.NB-modal-goodies .NB-goodies-bluree {
    float: right;
    width: 28px;
    height: 28px;
    margin: 0 6px 0 0;
    background: transparent url('/media/img/mobile/bluree.png') no-repeat 0 0;
    background-size: 28px;
}

.NB-modal-goodies .NB-goodies-subtitle {
    margin: 14px 8px 4px;
    line-height: 18px;
    color: #707070;
}

.NB-modal-goodies .NB-goodies-custom-input {
    float: right;
    width: 320px;
    border: 1px solid #909090;
    padding: 4px;
    margin: 6px 0 0 0;
}

.NB-modal-goodies .NB-goodies-mobile-link {
    float: right;
}

.NB-modal-goodies .NB-goodies-ios {
    float: right;
    width: 28px;
    height: 28px;
    margin: 0 6px 0 0;
    background: transparent url('/media/img/mobile/apple.png') no-repeat 0 0;
    background-size: 28px 28px;
}

.NB-modal-goodies .NB-goodies-android {
    float: right;
    width: 28px;
    height: 28px;
    margin: 0 6px 0 0;
    background: transparent url('/media/img/mobile/android.png') no-repeat 0 0;
}

.NB-modal-goodies .NB-goodies-nokia {
    float: right;
    width: 28px;
    height: 28px;
    margin: 0 6px 0 0;
    background: transparent url('/media/img/mobile/nokia.png') no-repeat 0 0;
}

.NB-modal-goodies .NB-goodies-sailfish {
    float: right;
    width: 64px;
    height: 28px;
    margin: 0 6px 0 0;
    background: transparent url('/media/img/mobile/sailfish.png') no-repeat 0 0;
    background-size: auto 28px;
}

.NB-modal-goodies .NB-goodies-windows {
    float: right;
    width: 28px;
    height: 28px;
    margin: 0 6px 0 0;
    background: transparent url('/media/img/mobile/windows_phone_icon.png') no-repeat 0 0;
    background-size: 28px;
}

/* ============================ */
/* = Keyboard Shortcuts Modal = */
/* ============================ */


.NB-modal-keyboard .NB-modal-title .NB-icon {
    background: transparent url("/media/embed/icons/nouns/dialog-keyboard.svg") no-repeat center center;
    background-size: 28px;
    filter: hue-rotate(139deg) saturate(10);
}

.NB-modal-keyboard .NB-keyboard-group {
    clear: both;
    margin: 16px 0 0 0;
    overflow: hidden;
    background-color: #F0F0F0;
    padding: 8px;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}

.NB-modal-keyboard .NB-keyboard-shortcut {
    width: 50%;
    float: left;
    padding: 0 12px;

    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}


.NB-keyboard-shortcut-key {
    border-radius: 6px;
    border-top: 1px solid #717171;
    border-left: 1px solid #717171;
    border-bottom: 1px solid #303030;
    border-right: 1px solid #303030;
    background-color: #505050;
    color: #FFF;
    text-shadow: 1px 1px 0 #000;
    font-weight: bold;
    padding: 4px 6px;
    float: left;
    margin: 0 4px 0 0;
}

.NB-keyboard-shortcut-key span {
    color: #A0A0A0;
    padding: 0 4px;
}

.NB-keyboard-shortcut-explanation {
    float: right;
    font-size: 14px;
    font-weight: bold;
    margin: 6px 12px 0 0;
    color: #404030;
}

.NB-keyboard-shortcut-image {
    clear: both;
}

.NB-keyboard-shortcut-image img {
    margin: 8px 0 0 0;
    border: 1px solid #202020;
    width: 268px;
}

/* =============== */
/* = Preferences = */
/* =============== */

.NB-modal-preferences {
    overflow: hidden;
}

.NB-modal-preferences .NB-modal-title .NB-icon {
    background: transparent url('/media/embed/icons/nouns/dialog-preferences.svg') no-repeat 0 0;
    background-size: 28px;
    filter: hue-rotate(320deg) saturate(17.5);
}

.NB-modal-preferences .NB-modal-submit-button {
    float: left;
}

.NB-modal-preferences .NB-modal-submit-form {
    margin-top: 12px;
}

.NB-modal-preferences .NB-preferences-scroll {
    overflow: auto;
    max-height: 600px;
    width: 100%;
    padding-right: 12px;
}

.NB-modal-notifications .NB-preference,
.NB-modal-preferences .NB-preference {
    overflow: hidden;
    margin: 12px 0 0;
    border-bottom: 1px solid rgba(0, 0, 0, .05);
    padding: 12px;
    background-color: #F7F7F5;
    border-radius: 4px;
}

.NB-modal-preferences .NB-preference.NB-last {
    margin-bottom: 0;
}

.NB-modal-preferences .NB-preference .NB-preference-options {
    float: right;
    width: 420px;
    overflow: hidden;
    padding: 2px 0;
}

.NB-modal-preferences .NB-preference-story-share .NB-preference-options {
    column-count: 2;
}

.NB-modal-preferences .NB-preference .NB-preference-label {
    float: left;
    width: 176px;
    position: relative;
}

.NB-modal-preferences .NB-preference .NB-preference-sublabel {
    font-size: 11px;
    color: #808080;
    margin: 4px 30px 0px 0px;
}

.NB-modal-preferences .NB-preference .NB-preference-sublabel-link {
    font-size: 11px;
    margin: 4px 30px 0px 0px;
}

.NB-modal-preferences .NB-preference .NB-preference-options input {
    clear: both;
    float: left;
}

.NB-modal-preferences .NB-preference .NB-preference-options input[type=radio] {
    margin-top: 2px;
}

.NB-modal-preferences .NB-preference .NB-preference-options input[type=checkbox] {
    margin-top: 2px;
}

.NB-modal-preferences .NB-preference .NB-preference-options label {
    padding-left: 4px;
    margin: 0 0 4px 0;
    float: left;
    cursor: pointer;
}

.NB-modal-preferences .NB-preference .NB-preference-error {
    color: #83210A;
    font-size: 11px;
    margin-top: 4px;
    font-weight: bold;
}

.NB-modal-preferences .NB-preferences-notpremium {
    padding: 6px 12px;
    background-color: #FEF4D9;
    text-align: center;
    margin: 12px 0;
    border-radius: 3px;
    border-bottom: 1px solid rgba(0, 0, 0, .1);
}

.NB-modal-preferences .NB-preference-story-pane-position input {
    margin-top: 4px;
}

.NB-modal-preferences .NB-preference-story-pane-position label img {
    vertical-align: middle;
    margin: -2px 6px 0 2px;
}

.NB-modal-preferences .NB-preference-story-styling .NB-preference-story-styling-sans-serif {
    font-family: "Lucida Grande", Verdana, Arial, Helvetica, sans-serif;
}

.NB-modal-preferences .NB-preference-story-styling .NB-preference-story-styling-serif {
    font-family: "Palatino Linotype", Georgia, "URW Palladio L", "Century Schoolbook L", serif;
}

.NB-modal-preferences .NB-preference-story-size .NB-preference-options div {
    clear: both;
    overflow: hidden;
    margin: 1px 0 0 0;
    line-height: 18px;
}

.NB-modal-preferences .NB-preference-story-size .NB-preference-story-size-xs {
    font-size: 11px;
}

.NB-modal-preferences .NB-preference-story-size .NB-preference-story-size-s {
    font-size: 12px;
}

.NB-modal-preferences .NB-preference-story-size .NB-preference-story-size-m {
    font-size: 13px;
}

.NB-modal-preferences .NB-preference-story-size .NB-preference-story-size-l {
    font-size: 14px;
}

.NB-modal-preferences .NB-preference-story-size .NB-preference-story-size-xl {
    font-size: 15px;
}

.NB-modal-preferences .NB-preference-window input {
    margin-top: 4px;
}

.NB-modal-preferences .NB-preference-window label img {
    vertical-align: middle;
    margin: -2px 6px 0 2px;
}

.NB-modal-preferences .NB-preference-hidereadfeeds label img {
    vertical-align: middle;
    margin: -4px 6px 0 2px;
}

.NB-modal-preferences .NB-preference-showstorychanges label img {
    vertical-align: middle;
    margin: -4px 6px 0 2px;
    width: 16px;
    height: 16px;
}

.NB-modal-preferences .NB-preference-singlestory label img {
    vertical-align: middle;
    margin: -5px 6px 0 2px;
}

.NB-modal-preferences .NB-preference-animations label img {
    vertical-align: middle;
    margin: -5px 6px 0 2px;
}

.NB-modal-preferences .NB-preference-feedorder label img {
    vertical-align: middle;
    margin: -3px 6px 0 2px;
}

.NB-modal-preferences .NB-preference-ssl label img {
    vertical-align: middle;
    margin: -5px 6px 0 2px;
    width: 16px;
    height: 16px;
}

.NB-modal-preferences .NB-preference-password .NB-preference-option {
    float: left;
    margin: 0 12px 0 0;
}

.NB-modal-preferences .NB-preference-password label {
    text-transform: uppercase;
    font-size: 10px;
    color: #505050;
    margin: 0;
}

.NB-modal-preferences .NB-preference-password input {
    width: 140px;
    font-size: 14px;
    padding: 2px;
    margin: 0px 4px 2px;
    border: 1px solid #606060;
    -moz-box-shadow: 2px 2px 0 #D0D0D0;
    -webkit-box-shadow: 2px 2px 0 #D0D0D0;
    box-shadow: 2px 2px 0 #D0D0D0;
}

/* Days of Unread Segmented Control */
.NB-modal-preferences .NB-preference-daysofunread .NB-preference-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.NB-modal-preferences .NB-preference-daysofunread .NB-preference-daysofunread-control {
    display: flex;
    margin: 0;
    width: 100%;
}

.NB-modal-preferences .NB-preference-daysofunread .NB-daysofunread-option {
    padding: 6px 16px;
    font-size: 12px;
    text-align: center;
}

.NB-modal-preferences .NB-preference-daysofunread .NB-preference-daysofunread-control.NB-disabled {
    opacity: 0.5;
    pointer-events: none;
}

/* Days of Unread Slider container */
.NB-modal-preferences .NB-preference-daysofunread .NB-daysofunread-slider-container {
    margin: 0;
    padding: 10px 12px;
    background: rgba(0, 0, 0, 0.03);
    border-radius: 6px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Days of Unread Slider */
.NB-modal-preferences .NB-preference-daysofunread .NB-daysofunread-slider {
    width: 100%;
    height: 8px;
    -webkit-appearance: none;
    appearance: none;
    background: #ddd;
    border-radius: 4px;
    outline: none;
    cursor: pointer;
    margin: 4px 0;
}

.NB-modal-preferences .NB-preference-daysofunread .NB-daysofunread-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    background: #4a90d9;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    transition: transform 0.1s ease, box-shadow 0.1s ease;
    margin-top: 0;
}

.NB-modal-preferences .NB-preference-daysofunread .NB-daysofunread-slider::-webkit-slider-thumb:hover {
    transform: scale(1.1);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.NB-modal-preferences .NB-preference-daysofunread .NB-daysofunread-slider::-moz-range-thumb {
    width: 18px;
    height: 18px;
    background: #4a90d9;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.NB-modal-preferences .NB-preference-daysofunread .NB-daysofunread-slider::-moz-range-track {
    height: 8px;
    border-radius: 4px;
}

.NB-modal-preferences .NB-preference-daysofunread .NB-daysofunread-slider:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Days of Unread Slider value text */
.NB-modal-preferences .NB-preference-daysofunread .NB-daysofunread-slider-value {
    font-size: 12px;
    color: #555;
    text-align: center;
    line-height: 1.4;
}

.NB-modal-preferences .NB-preference-daysofunread .NB-daysofunread-slider-value b {
    color: #4a90d9;
    font-weight: 600;
}

/* Days of Unread Upgrade notice */
.NB-modal-preferences .NB-preference-daysofunread .NB-daysofunread-upgrade-notice {
    font-size: 11px;
    text-decoration: none;
    color: #707070;
    padding: 3px 8px;
    border-radius: 4px;
    transition: background-color 0.15s ease, color 0.15s ease;
    display: inline-block;
    margin-top: 0;
}

.NB-modal-preferences .NB-preference-daysofunread .NB-daysofunread-upgrade-notice:hover {
    background-color: rgba(74, 144, 217, 0.1);
    color: #4a90d9;
}

.NB-modal-preferences .NB-preference-daysofunread .NB-daysofunread-upgrade-notice .NB-archive-badge {
    display: inline-block;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: white;
    font-size: 9px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 2px 6px;
    border-radius: 3px;
}

.NB-modal-preferences .NB-preference-daysofunread .NB-daysofunread-upgrade-notice.NB-flash {
    animation: flash-upgrade 0.6s ease;
    background-color: rgba(99, 102, 241, 0.15);
    color: #6366f1;
}

.NB-modal-preferences .NB-preference-readstorydelay .NB-tangle-readstorydelay,
.NB-modal-preferences .NB-preference-slider {
    display: inline-block;
    margin: 0 16px 0 8px;
    top: 2px;
    width: 100px;
}

.NB-modal-preferences .NB-preference.NB-preference-story-share .NB-preference-option {
    margin: 0 8px 4px 0;
    clear: both;
}

.NB-modal-preferences .NB-preference.NB-preference-story-share input {
    clear: none;
}

.NB-modal-preferences .NB-preference.NB-preference-story-share label {
    margin: 0 0 0 2px;
    padding-left: 20px;
}

.NB-modal-preferences .NB-preference-story-share label[for=NB-preference-story-share-twitter] {
    background: transparent url('/media/embed/reader/twitter.png') no-repeat 0 0;
    background-size: 16px;
}

.NB-modal-preferences .NB-preference-story-share label[for=NB-preference-story-share-facebook] {
    background: transparent url('/media/embed/reader/facebook_icon.png') no-repeat 0 0;
    background-size: 16px;
}

.NB-modal-preferences .NB-preference-story-share label[for=NB-preference-story-share-reddit] {
    background: transparent url('/media/embed/reader/reddit.png') no-repeat 0 0;
    background-size: 16px;
}

.NB-modal-preferences .NB-preference-story-share label[for=NB-preference-story-share-readitlater] {
    background: transparent url('/media/embed/reader/pocket.png') no-repeat 0 0;
    background-size: 16px;
}

.NB-modal-preferences .NB-preference-story-share label[for=NB-preference-story-share-linkedin] {
    background: transparent url('/media/embed/reader/linkedin.jpg') no-repeat 0 0;
    background-size: 16px;
}

.NB-modal-preferences .NB-preference-story-share label[for=NB-preference-story-share-whatsapp] {
    background: transparent url('/media/embed/reader/whatsapp.png') no-repeat 0 0;
    background-size: 16px;
}

.NB-modal-preferences .NB-preference-story-share label[for=NB-preference-story-share-bluesky] {
    background: transparent url('/media/embed/reader/bluesky.svg') no-repeat 0 0;
    background-size: 16px;
}

.NB-modal-preferences .NB-preference-story-share label[for=NB-preference-story-share-mastodon] {
    background: transparent url('/media/embed/welcome/mastodon_logo.svg') no-repeat 0 0;
    background-size: 16px;
}

.NB-modal-preferences .NB-preference-story-share label[for=NB-preference-story-share-livejournal] {
    background: transparent url('/media/embed/reader/livejournal.png') no-repeat 0 0;
    background-size: 16px;
}

.NB-modal-preferences .NB-preference-story-share label[for=NB-preference-story-share-hackernews] {
    background: transparent url('/media/embed/reader/hackernews.png') no-repeat 0 0;
    background-size: 16px;
}

.NB-modal-preferences .NB-preference-story-share label[for=NB-preference-story-share-flipboard] {
    background: transparent url('/media/embed/reader/flipboard.jpg') no-repeat 0 0;
    background-size: 16px;
}

.NB-modal-preferences .NB-preference-story-share label[for=NB-preference-story-share-lineme] {
    background: transparent url('/media/embed/reader/lineme.png') no-repeat 0 0;
    background-size: 16px;
}

.NB-modal-preferences .NB-preference-story-share label[for=NB-preference-story-share-telegram] {
    background: transparent url('/media/embed/reader/telegram.png') no-repeat 0 0;
    background-size: 16px;
}

.NB-modal-preferences .NB-preference-story-share label[for=NB-preference-story-share-copyurl] {
    background: transparent url('/media/embed/reader/copyurl.png') no-repeat 0 0;
    background-size: 16px;
}

.NB-modal-preferences .NB-preference-story-share label[for=NB-preference-story-share-copytext] {
    background: transparent url('/media/embed/reader/copytext.png') no-repeat 0 0;
    background-size: 16px;
}

.NB-modal-preferences .NB-preference-story-share label[for=NB-preference-story-share-pdf] {
    background: transparent url('/media/embed/reader/pdf.png') no-repeat 0 0;
    background-size: 16px;
}

.NB-modal-preferences .NB-preference-story-share label[for=NB-preference-story-share-print] {
    background: transparent url('/media/embed/reader/print.png') no-repeat 0 0;
    background-size: 16px;
}

.NB-modal-preferences .NB-preference-story-share label[for=NB-preference-story-share-tumblr] {
    background: transparent url('/media/embed/reader/tumblr.png') no-repeat 0 0;
}

.NB-modal-preferences .NB-preference-story-share label[for=NB-preference-story-share-blogger] {
    background: transparent url('/media/embed/reader/blogger.png') no-repeat 0 0;
    background-size: 16px;
}

.NB-modal-preferences .NB-preference-story-share label[for=NB-preference-story-share-delicious] {
    background: transparent url('/media/embed/reader/delicious.png') no-repeat 0 0;
}

.NB-modal-preferences .NB-preference-story-share label[for=NB-preference-story-share-pinboard] {
    background: transparent url('/media/embed/reader/pinboard.png') no-repeat 0 0;
}

.NB-modal-preferences .NB-preference-story-share label[for=NB-preference-story-share-raindrop] {
    background: transparent url('/media/embed/reader/raindrop.svg') no-repeat 0 0;
}

.NB-modal-preferences .NB-preference-story-share label[for=NB-preference-story-share-pinterest] {
    background: transparent url('/media/embed/reader/pinterest.png') no-repeat 0 0;
    background-size: 16px;
}

.NB-modal-preferences .NB-preference-story-share label[for=NB-preference-story-share-buffer] {
    background: transparent url('/media/embed/reader/buffer.png') no-repeat 0 0;
    background-size: 16px;
}

.NB-modal-preferences .NB-preference-story-share label[for=NB-preference-story-share-diigo] {
    background: transparent url('/media/embed/reader/diigo.png') no-repeat 0 0;
}

.NB-modal-preferences .NB-preference-story-share label[for=NB-preference-story-share-evernote] {
    background: transparent url('/media/embed/reader/evernote.png') no-repeat 0 0;
}

.NB-modal-preferences .NB-preference-story-share label[for=NB-preference-story-share-googleplus] {
    background: transparent url('/media/embed/reader/googleplus.png') no-repeat 0 0;
}

.NB-modal-preferences .NB-preference-story-share label[for=NB-preference-story-share-email] {
    background: transparent url("/media/embed/icons/nouns/email.svg") no-repeat center center;
    background-size: 18px;
    filter: hue-rotate(134deg) saturate(16);
}

.NB-modal-preferences .NB-preference-story-share label[for=NB-preference-story-share-instapaper] {
    background: transparent url('/media/embed/reader/instapaper.png') no-repeat 0 0;
}

.NB-modal-preferences .NB-preference-story-share label[for=NB-preference-story-share-readwise] {
    background: transparent url('/media/embed/reader/readwise.png') no-repeat 0 0;
}

.NB-modal-preferences .NB-preference .NB-preference-story-sideoption label {
    margin-left: 2px;
    padding-left: 24px;
}

.NB-modal-preferences label[for=NB-preference-story-sideoption-email] {
    background: transparent url("/media/embed/icons/nouns/email.svg") no-repeat center left;
    background-size: 18px;
    filter: hue-rotate(134deg) saturate(16);
}

.NB-modal-preferences label[for=NB-preference-story-sideoption-save] {
    background: transparent url("/media/embed/icons/nouns/saved-stories.svg") no-repeat center left;
    background-size: 18px;
    filter: hue-rotate(134deg) saturate(16);
}

.NB-modal-preferences label[for=NB-preference-story-sideoption-train] {
    background: transparent url("/media/embed/icons/nouns/train.svg") no-repeat center left;
    background-size: 18px;
    filter: hue-rotate(134deg) saturate(16);
}

.NB-modal-preferences label[for=NB-preference-story-sideoption-share] {
    background: transparent url("/media/embed/icons/nouns/share.svg") no-repeat center left;
    background-size: 18px;
    filter: hue-rotate(134deg) saturate(16);
}

.NB-modal-preferences label[for=NB-preference-story-sideoption-related] {
    background: transparent url("/media/embed/icons/nouns/direction.svg") no-repeat center left;
    background-size: 18px;
    filter: hue-rotate(134deg) saturate(16);
}

.NB-modal-preferences label[for=NB-preference-story-sideoption-ask_ai] {
    background: transparent url("/media/embed/icons/nouns/prompt.svg") no-repeat center left;
    background-size: 18px;
    filter: hue-rotate(134deg) saturate(16);
}

.NB-modal-preferences .NB-preference-keyboard-spacebar .NB-preference-keyboard-spacebaraction {
    margin-top: 12px;
}

.NB-modal-preferences .segmented-control {
    display: block;
    margin: 4px 0 12px 0;
    float: left;
    /*    height: 14px;*/
    width: auto;
    overflow: hidden;
    text-align: center;
    line-height: 18px;
}

.NB-modal-preferences .segmented-control:last-child {}

.NB-modal-preferences .segmented-control li {
    clear: none;
    padding: 1px 12px 0;
    font-size: 12px;
    width: 100px;
}

.NB-modal-preferences .NB-preference-autoopenfolder .NB-folders {
    max-width: 240px;
}

.NB-modal-preferences .NB-preference .NB-preference-options.NB-view-settings input[type=radio] {
    margin: 2px 6px 0 2px;
}


.NB-view-settings.NB-preference-options div {
    float: left;
    margin: 0 6px 0 0;
}

.NB-view-settings.NB-preference-options input[type=radio] {
    float: left;
    margin: 2px 6px 0 0px;
}

.NB-view-settings.NB-preference-options label {
    margin: 0 0 4px 0;
    float: left;
    cursor: pointer;
    font-size: 12px;
    color: #303030;
    display: block;
    padding: 4px 6px;
    border: 1px solid rgba(0, 0, 0, .2);
    border-radius: 3px;
}

.NB-preference-options.NB-view-settings img {
    float: left;
    width: 18px;
    height: 15px;
    padding: 1px 0 0 0;
    margin: 0 4px 0 0;
}

.NB-preference-options.NB-view-settings .NB-view-title {
    margin: 0;
    padding: 1px 0 0 0;
    float: left;
}

.NB-preference-options.NB-view-settings div {
    float: left;
    margin: 0 6px 0 0;
}


/* ================== */
/* = Account Dialog = */
/* ================== */

.NB-modal-account .NB-modal-title .NB-icon {
    background: transparent url('/media/embed/icons/nouns/dialog-account.svg') no-repeat 0 0;
    background-size: 28px;
    filter: hue-rotate(287deg) saturate(10.5);
}

.NB-modal-account .NB-preference-username input,
.NB-modal-account .NB-preference-email input {
    width: 306px;
    font-size: 14px;
    padding: 2px;
    margin: 0px 4px 2px;
    border: 1px solid #606060;
    -moz-box-shadow: 2px 2px 0 #D0D0D0;
    -webkit-box-shadow: 2px 2px 0 #D0D0D0;
    box-shadow: 2px 2px 0 #D0D0D0;
}

.NB-modal-preferences .NB-link-account-preferences {
    float: right;
    line-height: 30px;
    text-decoration: none;
}

.NB-modal-account .NB-block {
    margin: 8px 0;
    display: block;
    overflow: hidden;
}

.NB-account-payments {
    margin: 0;
    padding: 0;
    list-style: none;
}

.NB-account-payments .NB-account-payment {
    display: flex;
    align-items: center;
    list-style: none;
    margin: 0 0 12px;
    padding: 0 0 12px;
    border-bottom: 1px solid #E0E0E0;
}

.NB-account-payments li:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.NB-account-payments .NB-payments-loading {
    padding: 0 0 0 20px;
    background: transparent url('/media/embed/reader/ring_spinner.svg') no-repeat left 3px top 3px;
    background-size: 16px;
}

.NB-account-payments .NB-account-payment-date {
    width: 180px;
    font-weight: bold;
    flex-shrink: 0;
}

.NB-account-payments .NB-account-payment-amount {
    width: 80px;
    flex-shrink: 0;
}

.NB-account-payments .NB-account-payment-provider {
    width: 80px;
    flex-shrink: 0;
}

.NB-account-payments .NB-scheduled .NB-account-payment-provider {
    color: darkgrey;
}

.NB-account-payments .NB-scheduled.NB-canceled .NB-account-payment-provider,
.NB-account-payments .NB-refunded .NB-account-payment-amount {
    text-decoration: line-through;
    color: darkred;
}

.NB-account-payments .NB-account-payment-invoice {
    font-size: 11px;
    color: #707070;
    text-decoration: none;
    padding: 2px 8px;
    border-radius: 3px;
    background-color: #f0f0f0;
    margin-left: auto;
    display: flex;
    align-items: center;
}

.NB-account-payments .NB-account-payment-invoice:hover {
    background-color: #FAD961;
    color: #505050;
}

.NB-account-payments .NB-account-payment-invoice-icon {
    display: inline-block;
    width: 12px;
    height: 12px;
    background: transparent url('/media/img/icons/heroicons-solid/document-text.svg') no-repeat center center;
    background-size: 12px;
    opacity: 0.6;
    vertical-align: middle;
    margin-right: 4px;
}

.NB-account-payments .NB-account-payment-invoice:hover .NB-account-payment-invoice-icon {
    opacity: 1;
}

.NB-modal-account .NB-error {
    clear: both;
    margin-top: 12px;
}

.NB-modal-account .NB-account-premium-cancel {
    margin-top: 0;
}

.NB-modal-account .NB-preference-saved-stories-date,
.NB-modal-account .NB-preference-shared-stories-date {
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.NB-modal-account .NB-preference-saved-stories-date span,
.NB-modal-account .NB-preference-shared-stories-date span {
    font-weight: 500;
    color: #606060;
    white-space: nowrap;
}

.NB-modal-account .NB-preference-saved-stories-date select,
.NB-modal-account .NB-preference-shared-stories-date select {
    padding: 4px 8px;
    border: 1px solid #c0c0c0;
    border-radius: 4px;
    background: #fff;
    font-size: 13px;
    cursor: pointer;
}

.NB-modal-account .NB-preference-saved-stories-date select:hover,
.NB-modal-account .NB-preference-shared-stories-date select:hover {
    border-color: #909090;
}

.NB-modal-account .NB-preference-stories-count {
    padding: 8px 12px;
    margin-bottom: 12px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    background: #f0f7f0;
    color: #2a6a2a;
    border: 1px solid #c0e0c0;
}

.NB-modal-account .NB-preference-stories-count:empty {
    display: none;
}

.NB-modal-account .NB-preference-delete-saved .NB-preference-options,
.NB-modal-account .NB-preference-delete-shared .NB-preference-options {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

/* Classifier delete pills */
.NB-modal-account .NB-preference-delete-classifiers .NB-preference-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.NB-modal-account .NB-preference-classifier-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 4px;
}

/* Override .NB-modal-preferences .NB-preference .NB-preference-options label (line 18790) */
.NB-modal-preferences .NB-preference .NB-preference-options .NB-classifier-pill {
    float: none;
    margin: 0;
    padding: 6px 10px 6px 14px;
}

.NB-modal-account .NB-classifier-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 1px solid #c0c0c0;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    color: #505050;
    background: #fff;
    cursor: pointer;
    user-select: none;
    transition: all 0.15s ease;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.NB-modal-account .NB-classifier-pill:hover {
    border-color: #909090;
    background: #f6f6f6;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.NB-modal-account .NB-classifier-pill input[type="checkbox"] {
    display: none;
}

.NB-modal-account .NB-classifier-pill.NB-checked {
    background: #e8f5e9;
    border-color: #4caf50;
    color: #2e7d32;
    box-shadow: 0 1px 3px rgba(76, 175, 80, 0.15);
}

.NB-modal-account .NB-classifier-pill.NB-checked .NB-classifier-pill-count {
    background: #4caf50;
    color: #fff;
}

.NB-modal-account .NB-classifier-pill-all {
    font-weight: 600;
}

.NB-modal-account .NB-classifier-pill-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 600;
    line-height: 1;
    background: rgba(0, 0, 0, 0.08);
    color: #707070;
    transition: all 0.15s ease;
}

.NB-modal-account .NB-classifier-pill-count:empty {
    display: none;
}

.NB-modal-account .NB-preference-classifiers-count.NB-empty {
    background: #f5f5f5;
    color: #999;
    border-color: #e0e0e0;
}

/* ================ */
/* = Static Pages = */
/* ================ */

.NB-static {
    overflow: auto;
    padding: 78px 0 0;
    color: rgba(255, 255, 255, 0.85);
    background: linear-gradient(180deg, #5a7a7b 0%, #334848 30%, #243636 100%);
    min-height: 100vh;
}

.NB-static h3 {
    line-height: 1.4em;
    color: white;
}

.NB-static a {
    color: #FBDB9B;
    text-decoration: none;
    font-weight: bold;
}

.NB-static a:hover {
    color: #fff;
    cursor: pointer;
}

.NB-static .NB-splash-info {
    position: fixed;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    background-color: rgba(36, 54, 54, 0.85);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.NB-static .NB-splash-info.NB-splash-bottom {
    background: rgba(36, 54, 54, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    border-bottom: none;
}

.NB-static .NB-splash-info .NB-splash-links {
    text-shadow: none;
}

.NB-static .NB-splash-info .NB-splash-links .NB-splash-link a {
    color: rgba(255, 255, 255, 0.55);
}

.NB-static .NB-splash-info .NB-splash-links .NB-splash-link a:hover {
    color: #FBDB9B;
}

.NB-static .NB-splash-info .NB-splash-links .NB-splash-link.NB-active a:hover {
    color: #fff;
}

.NB-static .NB-splash-info .NB-splash-links .NB-splash-link.NB-active a {
    color: #FBDB9B;
    background: transparent url('/media/embed/favicon_32.png') no-repeat 0 10px;
    background-size: 16px;
}

.NB-static .NB-static-title {
    top: 0;
    left: 0;
    position: fixed;
    height: 55px;
    font-family: 'Gotham Narrow A', 'Gotham Narrow B', sans-serif;
    font-size: 20px;
    font-weight: 600;
    line-height: 58px;
    margin: 0;
    color: white;
    text-shadow: none;
    padding: 0 0 0 16px;
    z-index: 2;
}

.NB-static .NB-module {
    background: transparent;
}

.NB-static .NB-module .NB-module-title {
    margin: 44px 0 0 44px;
    padding: 24px 0 24px 64px;
    text-align: left;
    border-left: 3px solid rgba(217, 166, 33, 0.5);
    color: white;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
    background: rgba(255, 255, 255, 0.04);
    border-radius: 0 8px 8px 0;
}

.NB-static .NB-module .NB-module-content {
    width: 620px;
    margin: 24px 14px 24px 88px;
    color: rgba(255, 255, 255, 0.75);
    background: transparent;
}

.NB-static .NB-module .NB-module-content b,
.NB-static .NB-module .NB-module-content strong {
    color: rgba(255, 255, 255, 0.9);
}

.NB-static .NB-module .NB-module-content p {
    color: rgba(255, 255, 255, 0.75);
}

.NB-static ul {
    padding-left: 20px;
    margin-left: 0;
}

.NB-static li {
    margin-bottom: 6px;
    list-style: square;
    color: rgba(255, 255, 255, 0.75);
}

.NB-static pre,
.NB-static code {
    background-color: rgba(0, 0, 0, 0.3);
    padding: 0px 4px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.85);
    font: normal normal normal 13px/normal Menlo, Consolas, Monaco, Courier, monospace;
    white-space: pre;
}

.NB-static pre {
    width: 604px;
    overflow-x: auto;
    padding: 8px;
}

.NB-static pre>code {
    background-color: inherit;
    border: none;
}

.NB-static ul pre {
    width: 584px;
}

.NB-static .NB-module-title-prefix {
    color: #FBDB9B;
    padding: 0 2px 0 0;
}

.NB-static h3 {
    margin-top: 36px;
    font-size: 24px;
    color: white;
}

.NB-static h4 {
    font-size: 16px;
    margin: 24px 0 12px;
    color: rgba(255, 255, 255, 0.9);
}

/* ============== */
/* = Press Page = */
/* ============== */

.NB-static-press-reviews li {
    font-size: 12px;
    margin: 0 0 12px 0;
    line-height: 18px;
}

.NB-static-press-reviews a {
    display: block;
    font-size: 14px;
}

.NB-static-press-reviews .NB-press-publisher {
    font-style: italic;
}

.NB-static-press-reviews .NB-press-publisher img {
    vertical-align: text-bottom;
    width: 16px;
    height: 16px;
}

.NB-static-press-reviews .NB-press-author {
    font-weight: bold;
}

.NB-static-press-reviews .NB-press-date {
    color: rgba(255, 255, 255, 0.5);
}

.NB-static-press .NB-press-screenshots {
    overflow: hidden;
    list-style: none;
    margin: 0;
    padding: 0;
}

.NB-static-press .NB-press-screenshot {
    float: left;
    display: block;
    width: 296px;
    text-align: center;
    margin: 0 24px 24px 0;
    font-size: 16px;
    line-height: 20px;
}

.NB-static-press .NB-press-screenshot.NB-last {
    margin-right: 0;
}

.NB-static-press .NB-press-screenshot img {
    width: 274px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 4px;
    margin: 0 0 12px 0;
}

/* ============== */
/* = About page = */
/* ============== */

.NB-static-about .NB-module ul,
.NB-static-faq .NB-module ul {
    margin: 2px 12px 4px 0;
    font-size: 15px;
}

.NB-static-about .NB-module ul li,
.NB-static-faq .NB-module ul li {
    line-height: 22px;
    margin-bottom: 12px;
    list-style: none;
}

.NB-static-about .NB-module ul li.last,
.NB-static-static .NB-module ul li.last {
    margin-bottom: 0;
}

.NB-static-about ul.NB-about-what li {
    background: transparent url('/media/embed/icons/nouns/indicator-unread.svg') no-repeat 0 6px;
    background-size: 8px;
    padding-left: 24px;
}

.NB-static-about ul.NB-about-server li {
    background: transparent url('/media/embed/icons/nouns/indicator-focus.svg') no-repeat 0 6px;
    background-size: 8px;
    padding-left: 24px;
}

.NB-static-about ul.NB-about-client li {
    background: transparent url('/media/embed/icons/nouns/indicator-hidden.svg') no-repeat 0 6px;
    background-size: 8px;
    padding-left: 24px;
}

.NB-static-about .NB-about-why li {
    background: transparent url('/media/embed/icons/nouns/indicator-focus.svg') no-repeat 0 6px;
    background-size: 8px;
    padding-left: 24px;
}

.NB-static-about .NB-about-who {
    overflow: hidden;
}

.NB-static-about .NB-about-who li {
    float: left;
    margin: 0 24px 0 0;
    text-align: center;
    list-style: none;
    background: none;
}

.NB-static-about .NB-about-who-name {
    color: white;
    font-weight: 600;
}

.NB-static-about .NB-about-who img {
    border: 1px solid rgba(255, 255, 255, 0.15);
    margin: 12px 0;
    width: 170px;
    border-radius: 8px;
}

.NB-static-about .NB-about-tagline img {
    border: 1px solid rgba(255, 255, 255, 0.15);
    width: 500px;
    border-radius: 4px;
}

.NB-static-faq .NB-link-about-faq {
    float: right;
    line-height: 30px;
}

.NB-static-faq .NB-module ul li {
    background: transparent url('/media/embed/icons/nouns/indicator-unread.svg') no-repeat 0 6px;
    background-size: 8px;
    padding-left: 24px;
}

.NB-static-faq ul li.NB-faq-question {
    display: block;
    font-weight: bold;
    margin: 0 0 10px 0;
    color: white;
}

.NB-static-faq ul li.NB-faq-answer {
    color: rgba(255, 255, 255, 0.65);
    margin: 0 0 36px 0;
    background: none;
}

.NB-static-faq ul li .NB-faq-answer.last {
    margin-bottom: 0;
}

.NB-static-faq .NB-trainer-bullet {
    vertical-align: top;
    margin: 6px 4px;
    width: 8px;
    height: 8px;
}

.NB-static-faq .NB-faq-image {
    float: right;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 4px;
}

/* ======= */
/* = API = */
/* ======= */

.NB-static-api .NB-anchor {
    position: relative;
    top: -120px;
    display: block;
}

.NB-static-api h3 {
    /*  margin-top: 64px;*/
}

.NB-static-api h4 {
    margin-top: 12px;
}

.NB-static-api .NB-api-endpoint {
    /*  margin-left: 12px;*/
    /*  padding-left: 18px;*/
}

.NB-static-api .NB-api-endpoint:first-child {
    border-top: none;
}

.NB-static-api .NB-api-endpoint:last-child {
    border-bottom: none;
}

.NB-static-api .optional,
.NB-static-api .required {
    padding: 2px 6px;
    margin: 0 4px 0 0;
    background-color: rgba(152, 200, 146, 0.3);
    border: 1px solid rgba(152, 200, 146, 0.4);
    border-radius: 3px;
    font-size: 8px;
    color: rgba(255, 255, 255, 0.8);
    font-weight: bold;
    text-transform: uppercase;
}

.NB-static-api .required {
    background-color: rgba(217, 144, 15, 0.3);
    border-color: rgba(217, 144, 15, 0.5);
    color: #FBDB9B;
}

.NB-static-api p {
    margin: 12px 0;
}

.NB-static-api table {
    border-spacing: 0 0;
    margin: 24px 0 12px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.15);
    border-radius: 4px;
}

.NB-static-api table th,
.NB-static-api table td {
    text-align: left;
    vertical-align: top;
    padding: 7px 8px 7px 8px;
    margin: 0;
}

.NB-static-api table td {
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    white-space: nowrap;
    color: rgba(255, 255, 255, 0.75);
}

.NB-static-api table td:last-child {
    border-right: none;
}

.NB-static-api table th,
.NB-static-api .NB-api-toc-header {
    border-right: 1px solid rgba(255, 255, 255, 0.15);
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    padding: 2px 8px;
    color: rgba(255, 255, 255, 0.9);
    background: rgba(255, 255, 255, 0.05);
}

.NB-static-api .NB-api-toc-header {
    border-right: none;
}

.NB-static-api table th:last-child {
    border-right: none;
}

.NB-static-api table td:first-child {
    font-weight: bold;
}

.NB-static-api .NB-api-toc-header {
    font-weight: bold;
}

.NB-static-api .NB-api-toc-header {
    margin-top: 24px;
}

.NB-static-api .NB-api-toc {
    /*  margin-top: 8px;*/
}

.NB-static-api .NB-api-toc li {
    clear: both;
    margin-bottom: 12px;
}

.NB-static-api .NB-api-toc a {
    display: block;
    /*  float: left;*/
    width: 50%;
}

.NB-static-api .NB-api-toc .NB-api-link-desc {
    text-align: right;
    width: 50%;
    float: right;
    margin-bottom: 12px;
    padding-top: 4px;
    color: rgba(255, 255, 255, 0.55);
}

.NB-static-api .NB-api-endpoint-param-desc {
    width: 100%;
    white-space: normal;
}

/* =============== */
/* = iPhone Page = */
/* =============== */

.NB-static-iphone .NB-ios-mockup,
.NB-static-iphone .NB-ios-main {
    -webkit-transform: translate3d(0, 0, 0);
}

.NB-static-iphone .NB-splash-info {
    z-index: 2;
}

.NB-static-iphone .NB-ios-main {
    margin: 24px 36px 24px 0;
    text-align: center;
}

.NB-static-iphone .NB-ios-title {
    font-size: 20px;
    margin: 0 0 24px;
    text-align: center;
}

.NB-static-iphone .NB-ios-subtitle {
    font-size: 16px;
    text-align: center;
    margin: 8px 0 0;
    color: #6D7D88;
}

.NB-static-iphone .NB-ios-stripe-wrapper {
    border-top: 1px solid #505050;
    border-bottom: 1px solid #505050;
    margin-right: -36px;
}

.NB-static-iphone .NB-ios-stripe {
    border-top: 1px solid white;
    border-bottom: 1px solid white;
    padding: 12px 0;
    text-align: center;
    background: #F0F0F0 url('/media/embed/reader/stripe_background.png');
}

.NB-static-iphone .NB-ios-download button {
    padding: 4px 20px 4px 10px;
    letter-spacing: -0.03em;
    text-align: center;
    background-color: #3A8FCE;
    background-image: -webkit-gradient(linear,
            left bottom,
            left top,
            color-stop(0.06, #1E3C54),
            color-stop(0.94, #648295));
    background-image: -moz-linear-gradient(center bottom,
            #1E3C54 6%,
            #648295 94%);
    color: white;
    text-shadow: 0 -1px 0px #101C3B;
    border: 1px solid #2F6EA7;
    border-color: #508FCD #4483BF #2F6EA7 #3F7EB9;
    border-radius: 6px;
    font-size: 1.14em;
    line-height: 1.73em;
    margin: 0 auto;
    cursor: pointer;

}

.NB-static-iphone .NB-ios-download .NB-big {
    font-size: 1.45em;
    font-weight: bold;
}

.NB-static-iphone .NB-ios-download img {
    float: left;
    margin: 0 8px 0 0;
}

.NB-static-iphone .NB-ios-download button:hover {
    background-color: #3A8FCE;
    background-image: -webkit-gradient(linear,
            left bottom,
            left top,
            color-stop(0.06, #182A42),
            color-stop(0.94, #516A83));
    background-image: -moz-linear-gradient(center bottom,
            #182A42 6%,
            #516A83 94%);
    color: #C0D7E7;
}

.NB-static-iphone .NB-ios-download button:active {
    background-color: #3A8FCE;
    background-image: -webkit-gradient(linear,
            left bottom,
            left top,
            color-stop(0.06, #516A83),
            color-stop(0.94, #182A42));
    background-image: -moz-linear-gradient(center bottom,
            #516A83 6% #182A42 94%,
        );
}

.NB-static-iphone .NB-ios-features {
    list-style-image: none;
    list-style-position: outside;
    list-style-type: none;
    margin: 0 0 0 0;
    padding: 0;
    font-size: 16px;
    text-align: center;
    clear: left;
    overflow: hidden;
    display: inline-block;
}

.NB-static-iphone .NB-ios-features li {
    list-style-image: none;
    list-style-position: outside;
    list-style-type: none;
}

.NB-static-iphone .NB-ios-features .NB-ios-feature {
    float: left;
    position: relative;
    width: 158px;
}

.NB-static-iphone .NB-ios-features .NB-ios-feature img {
    border: 1px solid #202020;
    border-color: #909090 #808080 #505050 #606060;
    position: absolute;
}

.NB-static-iphone .NB-ios-features .NB-ios-feature img.NB-ios-iphone-screenshot {
    width: 60px;
    height: 110px;
    top: 64px;
    left: 6px;
}

.NB-static-iphone .NB-ios-features .NB-ios-feature img.NB-ios-ipad-screenshot {
    width: 122px;
    height: 160px;
    top: 6px;
    left: 30px;
}

.NB-static-iphone .NB-ios-features .NB-ios-feature .NB-ios-feature-title {
    font-weight: bold;
    margin: 184px 0 12px;
    width: 100%;
    text-align: center;
}

.NB-static-iphone .NB-ios-features .NB-ios-feature .NB-ios-feature-subtitle {
    margin: 8px 0 0;
}

.NB-static-iphone .NB-ios-main .NB-ios-feature {
    -webkit-transition: all .32s ease-out;
    -moz-transition: all .32s ease-out;
    -o-transition: all .32s ease-out;
    -ms-transition: all .32s ease-out;
    border-radius: 4px;
    border: 2px solid transparent;
}

.NB-static-iphone .NB-ios-feature.NB-active {
    border: 2px solid #39518B;
}

.NB-static-android .NB-ios-features .NB-ios-feature {
    width: 138px;
}

.NB-static-android .NB-ios-features .NB-ios-feature img.NB-ios-ipad-screenshot {
    width: 100px;
    height: 160px;
}

.NB-static-android .NB-ios-features .NB-ios-feature img.NB-ios-iphone-screenshot {
    width: 60px;
    height: 106px;
    top: 68px;
}

/* ========== */
/* = Mockup = */
/* ========== */

.NB-static-iphone .NB-ios-mockup {
    float: right;
    width: 554px;
    height: 630px;
    position: relative;
    z-index: 1;
}

.NB-static-iphone .NB-ios-mockup .NB-ios-iphone-skeleton {
    position: absolute;
    bottom: -24px;
    left: -34px;
    width: 267px;
    height: 483px;
    z-index: 3;
}

.NB-static-iphone .NB-ios-mockup .NB-ios-iphone-skeleton img {
    width: 100%;
    height: 100%;
}

.NB-static-iphone .NB-ios-mockup .NB-ios-ipad-skeleton {
    position: absolute;
    bottom: 0;
    left: 48px;
    width: 500px;
    height: 640px;
    z-index: 1;
}

.NB-static-iphone .NB-ios-mockup .NB-ios-ipad-skeleton img {
    width: 100%;
    height: 100%;
}

.NB-static-iphone .NB-ios-mockup .NB-ios-features-iphone {
    overflow: hidden;
    width: 192px;
    height: 338px;
    display: block;
    position: absolute;
    top: 241px;
    left: 4px;
    padding: 0;
    margin: 0;
    z-index: 2;
}

.NB-static-iphone .NB-ios-mockup .NB-ios-features-ipad {
    overflow: hidden;
    width: 390px;
    height: 515px;
    display: block;
    position: absolute;
    top: 54px;
    left: 103px;
    padding: 0;
    margin: 0;
    z-index: 0;
}

.NB-static-iphone .NB-ios-mockup .NB-ios-feature {
    position: absolute;
    top: 0;
    left: 0;
    border: none;
}

.NB-static-iphone .NB-ios-mockup .NB-ios-feature img.NB-ios-ipad-screenshot {
    width: 390px;
    height: 515px;
    top: 0;
    left: 0;
    border-left: none;
    border-top: none;
    border-bottom: none;
    border-right: 1px solid #505050;
}

.NB-static-iphone .NB-ios-mockup .NB-ios-feature img.NB-ios-iphone-screenshot {
    width: 192px;
    height: 338px;
    top: 0;
    left: 0;
    border-left: none;
    border-top: none;
    border-bottom: none;
    border-right: 1px solid #505050;
}

@media screen and (max-width: 1100px) {
    .NB-static-iphone .NB-ios-mockup {
        float: none;
        margin: 0 auto 48px;
    }

    .NB-static-iphone .NB-ios-mockup .NB-ios-ipad-skeleton {
        left: 115px;
    }

    .NB-static-iphone .NB-ios-mockup .NB-ios-iphone-skeleton {
        left: -34px;
    }

    .NB-static-iphone .NB-ios-mockup .NB-ios-features-ipad {
        left: 170px;
    }

    .NB-static-iphone .NB-ios-mockup .NB-ios-features-iphone {
        left: 4px;
    }

    .NB-static-iphone .NB-ios-features .NB-ios-feature {
        padding: 0px;
    }
}

.NB-static-android .NB-ios-mockup .NB-ios-ipad-skeleton {
    height: 729px;
}

.NB-static-android .NB-ios-mockup .NB-ios-iphone-skeleton {
    width: 270px;
    height: 469px;
}

.NB-static-android .NB-ios-mockup .NB-ios-features-ipad {
    top: 42px;
    left: 147px;
    width: 302px;
    height: 442px;
}

.NB-static-android .NB-ios-mockup .NB-ios-features-iphone {
    top: 279px;
    left: 16px;
    width: 172px;
    height: 268px;
}

.NB-static-android .NB-ios-mockup .NB-ios-feature img.NB-ios-ipad-screenshot {
    width: 302px;
    height: 484px;
    top: -13px;
    left: 0;
    border-left: none;
    border-top: none;
    border-bottom: none;
    border-right: 1px solid #505050;
}

.NB-static-android .NB-ios-mockup .NB-ios-feature img.NB-ios-iphone-screenshot {
    width: 172px;
    height: 300px;
    top: -10px;
    left: 0;
    border-left: none;
    border-top: none;
    border-bottom: none;
    border-right: 1px solid #505050;
}

@media screen and (max-width: 1100px) {
    .NB-static-android .NB-ios-mockup .NB-ios-features-ipad {
        left: 214px;
    }
}

/* ================= */
/* = Friends Modal = */
/* ================= */

.NB-modal-friends .NB-modal-title .NB-icon {
    background: transparent url('/media/embed/icons/nouns/followers.svg') no-repeat 0 0;
    background-size: 28px;
    filter: hue-rotate(139deg) saturate(18.5);
}

.NB-modal-friends .NB-tab {
    min-height: 80px;
    padding: 12px 0;
}

.NB-modal-friends .NB-modal-tabs .NB-modal-loading {
    margin: 6px 8px 0 0;
    float: left;
}

.NB-modal-friends .NB-friends-services {
    overflow: hidden;
}

.NB-modal-friends .NB-friends-service {
    text-align: center;
    font-weight: bold;
    margin: 0;
    padding: 12px 12px 0 0;
    overflow: hidden;
}

.NB-modal-friends .NB-friends-service-title {
    float: left;
    padding: 0 8px 0 8px;
    width: 100px;
}

.NB-modal-friends .NB-friends-service-connect,
.NB-modal-friends .NB-friends-service-disconnect {
    float: left;
    width: auto;
    margin-top: -2px;
}

.NB-modal-friends .NB-modal-submit-button img {
    vertical-align: top;
    margin: 1px 12px 0 0;
    width: 12px;
    height: 12px;
}

.NB-modal-friends .NB-friends-autofollow {
    width: auto;
    float: right;
    font-size: 12px;
    position: relative;
    margin-top: 12px;
    padding-top: 0;
}

.NB-modal-friends .NB-friends-autofollow-checkbox {
    margin-right: 4px;
    position: absolute;
    top: 2px;
    left: 0;
}

.NB-modal-friends .NB-friends-autofollow-label {
    margin-left: 20px;
    display: block;
    text-align: left;
    cursor: pointer;
}

.NB-modal-friends .NB-tab .NB-ghost {
    margin: 0 auto;
    padding: 6px 0 0;
    color: #A0A0A0;
    font-size: 14px;
    text-align: center;
    font-weight: bold;
}

.NB-modal-friends .NB-friends-services .NB-error {
    display: block;
    margin: 12px 0 0 12px;
    padding: 0;
    float: left;
    clear: both;
}

.NB-friends-service.NB-friends-service-syncing .NB-friends-service-title {
    padding-right: 28px;
    background: transparent url('/media/embed/reader/ring_spinner.svg') no-repeat right 3px top 3px;
    background-size: 16px;
    margin-right: 8px;
}

.NB-modal-friends .NB-friends-findfriends-profile {
    text-align: left;
}

.NB-modal-friends .NB-tab-findfriends .NB-friends-profile-link {
    margin: 8px 12px 12px;
    display: inline-block;
}

.NB-modal-friends .NB-tab-findfriends .NB-friends-profile-link img {
    vertical-align: text-bottom;
    /*    float: left;*/
    margin: 0 4px;
}

.NB-modal-friends .NB-friends-profile label,
.NB-modal-friends .NB-friends-search label {
    clear: both;
    float: left;
    width: 100px;
    padding: 12px 8px 0 12px;
}

.NB-modal.NB-modal-friends .NB-friends-search {
    overflow: hidden;
}

.NB-modal-friends #NB-friends-search-input {
    float: left;
    margin: 10px 4px 0;
}

.NB-modal-friends .NB-friends-search .NB-loading {
    float: left;
    margin: 10px 12px;
}

.NB-modal-friends .NB-friends-search-badges {
    clear: both;
    float: left;
    margin: 12px 12px 0;
    width: 100%;
}

.NB-modal-friends .NB-friends-search-badges-empty .NB-raquo {
    float: left;
    margin-right: 6px;
}

.NB-modal-friends .NB-friends-search-badges-empty {
    color: #999;
    font-size: 13px;
}

.NB-modal-friends .NB-tab-findfriends label {
    width: auto;
}

.NB-modal-friends .NB-profile-section-heading {
    margin: 18px 0 0px;
}


/* ======================== */
/* = Profile Editor Modal = */
/* ======================== */

.NB-modal-profile-editor .NB-modal-title .NB-icon {
    background: transparent url('/media/embed/icons/nouns/subscribers.svg') no-repeat 0 0;
    background-size: 28px;
    filter: hue-rotate(87deg) saturate(10.5);
}

.NB-modal-profile-editor .NB-tab {
    min-height: 80px;
    padding: 12px 0;
}

.NB-modal-profile-editor .NB-modal-tabs .NB-modal-loading {
    margin: 6px 8px 0 0;
    float: left;
}

.NB-modal-profile-editor .NB-tab-profile .NB-modal-submit-button {
    float: left;
    margin: 12px 0 12px 12px;
    text-align: center;
}

.NB-modal-profile-editor .NB-modal-section.NB-friends-profile {
    overflow: hidden;
}

.NB-modal-profile-editor .NB-modal-section.NB-friends-profilephoto {
    overflow: hidden;
}

.NB-modal-profile-editor .NB-friends-profile-photo-group {
    float: left;
    margin: 12px 0 0 12px;
    position: relative;
    width: 120px;
    font-size: 14px;
}

.NB-modal-profile-editor .NB-friends-photo-title input {
    margin-right: 8px;
}

.NB-modal-profile-editor .NB-friends-photo-title label {
    margin: 2px 0 0 0;
}

.NB-modal-profile-editor .NB-friends-profile-photo-group img {
    width: 48px;
    height: 48px;
}

.NB-modal-profile-editor .NB-friends-profile-photo-group.is_disabled {
    opacity: .4;
}

.NB-modal-profile-editor .NB-friends-photo-image {
    position: relative;
    margin: 8px 0 0 22px;
}

.NB-modal-profile-editor .NB-friends-profile-photo-group .NB-photo-loader {
    display: none;
}

.NB-modal-profile-editor .NB-friends-profile-photo-group.NB-loading .NB-photo-loader {
    display: block;
    width: 32px;
    height: 32px;
    position: absolute;
    top: 9px;
    left: 9px;
    z-index: 1;
}

.NB-modal-profile-editor .NB-friends-profile-photo-group.is_loading .photo-upload-placeholder {
    opacity: .25;
}

.NB-modal-profile-editor .NB-photo-link {
    position: relative;
    left: 0px;
    bottom: -6px;
    width: 120px;
    height: 20px;
    overflow: hidden;
}

.NB-modal-profile-editor .NB-photo-link input[type=file] {
    position: absolute;
    top: 0;
    right: 0;
    margin: 0;
    border: 300px solid transparent;
    opacity: 0;
    filter: alpha(opacity=0);
    -o-transform: translate(-300px, -300px) scale(10);
    -moz-transform: translate(-800px, 0) scale(10);
    cursor: pointer;
}

.NB-modal-profile-editor .NB-gravatar-link {
    position: relative;
    left: 10px;
    bottom: -6px;
    height: 20px;
}

.NB-modal-profile-editor .NB-friends-link {
    position: relative;
    left: 19px;
    bottom: -6px;
    height: 20px;
    cursor: pointer;
}

.NB-modal-profile-editor .NB-friends-profile .NB-profile-username,
.NB-modal-profile-editor input[type=text],
.NB-modal-profile-editor .NB-profile-privacy-option input[type=radio] {
    float: left;
    width: 200px;
    margin: 12px 8px 0 0;
}

.NB-modal-profile-editor .NB-profile-privacy-option input[type=radio] {
    width: auto;
    margin: 18px 0 0;
}

.NB-modal-profile-editor .NB-profile-privacy-options {
    float: left;
}

.NB-modal-profile-editor .NB-profile-privacy-option {
    float: left;
    clear: left;
}

.NB-modal-profile-editor .NB-profile-privacy-option b {
    padding: 0 6px 0 0;
}

.NB-modal-profile-editor .NB-profile-privacy-option img {
    width: 16px;
    height: 16px;
}

.NB-modal-profile-editor .NB-friends-profile .NB-count {
    float: left;
    color: #404040;
    font-size: 10px;
    font-weight: bold;
    margin: 16px 0 0 4px;
}

.NB-modal-profile-editor .NB-friends-profile .NB-count.NB-red {
    color: #7F0000;
}

.NB-modal-profile-editor .NB-friends-profile .NB-profile-username {
    width: auto;
}

.NB-modal-profile-editor .NB-friends-profile label {
    clear: both;
    float: left;
    width: 140px;
    padding: 12px 8px 0 12px;
    cursor: pointer;
}

.NB-modal-profile-editor .NB-friends-profile .NB-profile-privacy-notpremium {
    font-size: 10px;
    margin: 12px 0;
    color: #808080;
}

.NB-modal-profile-editor .NB-friends-profile label img {
    padding-right: 6px;
    vertical-align: bottom;
}

.NB-modal-profile-editor .NB-friends-profile .NB-profile-protected-label {
    clear: none;
    width: auto;
    font-size: 13px;
    padding: 16px 0 0 8px;
}

.NB-modal-profile-editor .NB-account-link {
    margin-left: 12px;
    font-size: 10px;
}

.NB-modal-profile-editor .NB-tab-blurblog label {
    clear: both;
    float: left;
    width: 200px;
    padding: 0 8px 0 12px;
}

.NB-modal-profile-editor .NB-tab-blurblog .NB-profile-blurblog-title {
    width: 480px;
}

.NB-modal-profile-editor .NB-profile-blurblog-colors {
    width: 516px;
    float: left;
    margin: 0 -6px 12px;
}

.NB-modal-profile-editor .NB-profile-blurblog-colorline {
    clear: both;
}

.NB-modal-profile-editor .NB-profile-blurblog-color {
    float: left;
    width: 29px;
    height: 33px;
    border: 1px solid #606060;
    margin: 5px 6px;
    box-shadow: 1px 1px 0 #CFCFCF;
}

.NB-modal-profile-editor .NB-profile-blurblog-color:hover {
    box-shadow: none;
    border: 4px solid #D95300;
    margin: 2px 3px;
    cursor: pointer;
}

.NB-modal-profile-editor .NB-profile-blurblog-color.NB-active {
    border: 4px solid #8F1F00;
    margin: 2px 3px;
}

.NB-modal-profile-editor .NB-profile-blurblog-css,
.NB-modal-account .NB-account-custom-css,
.NB-modal-account .NB-account-custom-javascript {
    width: 100%;
    font-family: Courier, monospace;
    font-size: 13px;
    padding: 6px;
    height: 94px;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}

.NB-modal-profile-editor .NB-tab-blurblog input[type=text] {
    margin: 0 0 12px;
}

.NB-modal-profile-editor .NB-profile-blurblog-address {
    float: left;
    margin: 0 0 12px;
}

.NB-modal-profile-editor .NB-blurblog-save-button {
    margin: 18px 12px 12px;
    float: left;
    clear: both;
}

.NB-modal-profile-editor .NB-tab.NB-tab-profile,
.NB-modal-profile-editor .NB-tab.NB-tab-blurblog {
    height: 500px;
}

.NB-modal-profile-editor .NB-preference {
    margin: 12px 0;
    overflow: hidden;
}

.NB-modal-profile-editor .NB-preference .NB-preference-options {
    float: left;
    width: 420px;
    overflow: hidden;
    padding: 2px 0;
}

.NB-modal-profile-editor .NB-preference .NB-preference-label {
    float: left;
    width: 200px;
    position: relative;
}

.NB-modal-profile-editor .NB-preference .NB-preference-sublabel {
    font-size: 11px;
    color: #808080;
    margin: 4px 30px 0px 0px;
}

.NB-modal-profile-editor .NB-preference .NB-preference-options input {
    clear: both;
    float: left;
}

.NB-modal-profile-editor .NB-preference .NB-preference-options input[type=radio] {
    margin-top: 4px;
}

.NB-modal-profile-editor .NB-preference .NB-preference-options input[type=checkbox] {
    margin-top: 5px;
}

.NB-modal-profile-editor .NB-preference .NB-preference-options label {
    padding-left: 4px;
    margin: 0 0 4px 0;
    float: left;
    width: auto;
    clear: none;
    cursor: pointer;
}

/* ============================ */
/* = Folder Icon Editor Modal = */
/* ============================ */

/* Folder settings modal header - title and tabs on same line */
.NB-modal-exception.NB-modal-folder-settings .NB-modal-subtitle {
    display: inline-flex;
    align-items: center;
    background: transparent !important;
    padding: 8px 0;
    margin: 8px 0 0;
    float: left;
}

.NB-modal-exception.NB-modal-folder-settings .NB-modal-tabs {
    float: right;
    margin: 12px 0 0;
    position: relative;
    bottom: -1px;
}

.NB-modal-exception.NB-modal-folder-settings .NB-modal-feed-heading {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: 8px;
}

/* Clear floats before tab content */
.NB-modal-exception.NB-modal-folder-settings .NB-tab {
    clear: both;
    min-height: 550px;
}

.NB-modal-exception.NB-modal-folder-settings .NB-tab-settings {
    padding: 12px 8px 0 0;
}

/* Feed settings modal - match folder layout */
.NB-modal-exception.NB-modal-feed-settings .NB-modal-subtitle {
    display: inline-flex;
    align-items: center;
    background: transparent !important;
    padding: 8px 0;
    margin: 8px 0 0;
    float: left;
}

.NB-modal-exception.NB-modal-feed-settings .NB-modal-tabs {
    float: right;
    margin: 12px 0 0;
    position: relative;
    bottom: -1px;
}

.NB-modal-exception.NB-modal-feed-settings .NB-modal-feed-heading {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: 8px;
}

/* Clear floats before tab content */
.NB-modal-exception.NB-modal-feed-settings .NB-tab {
    clear: both;
    min-height: 550px;
}

.NB-modal-exception.NB-modal-feed-settings .NB-tab-settings {
    padding: 12px 8px 0 0;
}

/* Icon editor tab overflow - allow x overflow for hover effects, no inner scroll */
.NB-tab-folder-icon,
.NB-tab-feed-icon {
    overflow-x: visible !important;
    overflow-y: hidden;
}

/* Feed icon reset banner */
.NB-feed-icon-reset-banner {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    margin: 12px 0 12px;
    background: #f0f4f8;
    border: 1px solid #d8dde3;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease;
}

.NB-feed-icon-reset-banner:hover {
    background: #e4eaf0;
    border-color: #c0c8d0;
}

.NB-feed-icon-reset-favicon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.NB-feed-icon-reset-text {
    flex: 1;
    font-size: 12px;
    color: #606060;
}

.NB-feed-icon-reset-action {
    font-size: 11px;
    font-weight: 600;
    color: #6060c0;
    padding: 3px 10px;
    border: 1px solid #c0c0e0;
    border-radius: 4px;
    transition: background 0.15s ease, color 0.15s ease;
}

.NB-feed-icon-reset-banner:hover .NB-feed-icon-reset-action {
    background: #6060c0;
    color: white;
}

/* Icon editor container min-height for better screenshots */
.NB-folder-icon-editor {
    min-height: 500px;
}

/* Upload section margin */
.NB-folder-icon-editor .NB-folder-icon-upload-section {
    margin-top: 8px;
}

/* Clear icon link */
.NB-folder-icon-editor .NB-folder-icon-clear {
    font-size: 12px;
    color: #999;
    text-decoration: none;
}

.NB-folder-icon-editor .NB-folder-icon-clear:hover {
    color: #c00;
    text-decoration: underline;
}

/* Header Clear Link */
.NB-modal .NB-folder-icon-clear-header {
    float: right;
    font-size: 11px;
    color: #999;
    text-decoration: none;
    margin-left: 12px;
    white-space: nowrap;
}

.NB-modal .NB-folder-icon-clear-header:hover {
    color: #c00;
    text-decoration: underline;
}

/* Sections */
.NB-folder-icon-editor .NB-folder-icon-section {
    margin-bottom: 16px;
}

.NB-folder-icon-editor .NB-folder-icon-section-label {
    font-size: 11px;
    font-weight: bold;
    color: #808080;
    text-transform: uppercase;
    margin: 0 0 6px 0;
    letter-spacing: 0.5px;
}

/* Icon Grid - No sub-scrollbars */
.NB-folder-icon-editor .NB-folder-icon-presets-grid,
.NB-folder-icon-editor .NB-folder-icon-emojis-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 2px;
}

.NB-folder-icon-editor .NB-folder-icon-preset,
.NB-folder-icon-editor .NB-folder-icon-emoji-option {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.1s ease;
}

.NB-folder-icon-editor .NB-folder-icon-preset:hover,
.NB-folder-icon-editor .NB-folder-icon-emoji-option:hover {
    background: #E8E8E8;
}

.NB-folder-icon-editor .NB-folder-icon-preset.NB-active,
.NB-folder-icon-editor .NB-folder-icon-emoji-option.NB-active {
    background: #D4EDFF;
    border-color: #2A7FD8;
}

.NB-folder-icon-editor .NB-folder-icon-preset img {
    width: 20px;
    height: 20px;
}

.NB-folder-icon-editor .NB-folder-icon-colored-preview {
    width: 20px;
    height: 20px;
    transition: background-color 0.2s ease;
}

.NB-folder-icon-editor .NB-folder-icon-emoji-option {
    font-size: 18px;
}

.NB-folder-icon-editor .NB-folder-icon-emoji {
    font-size: 24px;
}

/* Row-based icon/emoji containers with category labels */
.NB-folder-icon-editor .NB-folder-icon-presets-container,
.NB-folder-icon-editor .NB-folder-icon-filled-container,
.NB-folder-icon-editor .NB-folder-icon-emojis-container {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.NB-folder-icon-editor .NB-folder-icon-preset-row,
.NB-folder-icon-editor .NB-folder-icon-filled-row,
.NB-folder-icon-editor .NB-folder-icon-emoji-row {
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.NB-folder-icon-editor .NB-folder-icon-preset-label,
.NB-folder-icon-editor .NB-folder-icon-filled-label,
.NB-folder-icon-editor .NB-folder-icon-emoji-label {
    width: 60px;
    min-width: 60px;
    font-size: 10px;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-align: right;
    flex-shrink: 0;
    padding-top: 8px;
}

.NB-folder-icon-editor .NB-folder-icon-preset-items,
.NB-folder-icon-editor .NB-folder-icon-filled-items,
.NB-folder-icon-editor .NB-folder-icon-emoji-items {
    display: flex;
    flex-wrap: wrap;
    gap: 2px;
}

/* Color Picker */
.NB-folder-icon-editor .NB-folder-icon-colors-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 6px 12px;
    padding: 6px 8px;
}

.NB-folder-icon-editor .NB-folder-icon-color {
    width: 100%;
    height: 18px;
    border-radius: 3px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.1s ease;
}

.NB-folder-icon-editor .NB-folder-icon-color:hover {
    transform: scale(1.15);
}

.NB-folder-icon-editor .NB-folder-icon-color.NB-active {
    border-color: #333;
    transform: scale(1.2);
    box-shadow: 0 0 0 1px #fff;
}

/* Upload section */
.NB-folder-icon-editor .NB-folder-icon-upload-section {
    padding-bottom: 16px;
    margin-bottom: 16px;
    border-bottom: 1px solid #E0E0E0;
}

.NB-folder-icon-editor .NB-folder-icon-upload-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.NB-folder-icon-editor .NB-folder-icon-file-input {
    display: none;
}

.NB-folder-icon-editor .NB-folder-icon-upload-button {
    position: relative;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    background: #FAFBFC;
    border: 2px dashed #D0D5DA;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.NB-folder-icon-editor .NB-folder-icon-upload-button::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(74, 144, 217, 0.04) 0%, rgba(74, 144, 217, 0) 60%);
    opacity: 0;
    transition: opacity 0.2s ease;
}

.NB-folder-icon-editor .NB-folder-icon-upload-button:hover {
    background: #FFF;
    border-color: #4A90D9;
    border-style: dashed;
    box-shadow: 0 2px 8px rgba(74, 144, 217, 0.12);
    transform: translateY(-1px);
}

.NB-folder-icon-editor .NB-folder-icon-upload-button:hover::before {
    opacity: 1;
}

.NB-folder-icon-editor .NB-folder-icon-upload-button:active {
    transform: translateY(0);
    box-shadow: 0 1px 4px rgba(74, 144, 217, 0.1);
}

.NB-folder-icon-editor .NB-folder-icon-upload-button.NB-uploading {
    background: #F0F7FF;
    border-color: #4A90D9;
    border-style: solid;
    pointer-events: none;
}

.NB-folder-icon-editor .NB-folder-icon-upload-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #4A90D9 0%, #3A7BC8 100%);
    border-radius: 10px;
    position: relative;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.NB-folder-icon-editor .NB-folder-icon-upload-icon::after {
    content: '';
    position: absolute;
    inset: 8px;
    background-color: #FFF;
    -webkit-mask: url('/media/img/icons/heroicons-solid/arrow-up-tray.svg') no-repeat center center;
    mask: url('/media/img/icons/heroicons-solid/arrow-up-tray.svg') no-repeat center center;
    -webkit-mask-size: contain;
    mask-size: contain;
}

.NB-folder-icon-editor .NB-folder-icon-upload-button:hover .NB-folder-icon-upload-icon {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(74, 144, 217, 0.3);
}

.NB-folder-icon-editor .NB-folder-icon-upload-text {
    display: flex;
    flex-direction: column;
    gap: 3px;
    flex: 1;
}

.NB-folder-icon-editor .NB-folder-icon-upload-label {
    font-size: 13px;
    font-weight: 600;
    color: #333;
    letter-spacing: -0.01em;
}

.NB-folder-icon-editor .NB-folder-icon-upload-hint {
    font-size: 11px;
    color: #808890;
    letter-spacing: 0.01em;
}

.NB-folder-icon-editor .NB-folder-icon-upload-button .NB-loading {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    float: none;
    margin: 0;
}

.NB-folder-icon-editor .NB-folder-icon-upload-button .NB-loading.NB-active {
    background-size: 20px;
}

.NB-folder-icon-editor .NB-folder-icon-upload-preview {
    display: none;
    padding: 12px 16px;
    background: linear-gradient(135deg, #E8F5E9 0%, #F1F8F2 100%);
    border: 1px solid #C8E6C9;
    border-radius: 10px;
    animation: slideIn 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.NB-folder-icon-editor .NB-folder-icon-upload-preview.NB-active {
    display: flex;
    align-items: center;
    gap: 12px;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.NB-folder-icon-editor .NB-folder-icon-upload-preview img {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    object-fit: cover;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    border: 2px solid #FFF;
}

.NB-folder-icon-editor .NB-folder-icon-upload-preview span {
    font-size: 13px;
    font-weight: 600;
    color: #2E7D32;
    display: flex;
    align-items: center;
    gap: 6px;
}

.NB-folder-icon-editor .NB-folder-icon-upload-preview span::before {
    content: '';
    width: 18px;
    height: 18px;
    background-color: #4CAF50;
    -webkit-mask: url('/media/img/icons/heroicons-solid/check-circle.svg') no-repeat center center;
    mask: url('/media/img/icons/heroicons-solid/check-circle.svg') no-repeat center center;
    -webkit-mask-size: contain;
    mask-size: contain;
    flex-shrink: 0;
}

.NB-folder-icon-editor .NB-folder-icon-upload-error {
    display: none;
    padding: 12px 16px;
    background: linear-gradient(135deg, #FFEBEE 0%, #FFF5F5 100%);
    border: 1px solid #FFCDD2;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 500;
    color: #C62828;
    animation: shake 0.4s cubic-bezier(0.36, 0.07, 0.19, 0.97);
}

@keyframes shake {
    0%, 100% {
        transform: translateX(0);
    }

    20% {
        transform: translateX(-4px);
    }

    40% {
        transform: translateX(4px);
    }

    60% {
        transform: translateX(-4px);
    }

    80% {
        transform: translateX(4px);
    }
}

.NB-folder-icon-editor .NB-modal-submit-save {
    background: #2A7FD8;
    color: #FFF;
    border: none;
    padding: 10px 24px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease;
}

.NB-folder-icon-editor .NB-modal-submit-save:hover {
    background: #1A6FC8;
}

.NB-folder-icon-editor .NB-modal-submit-remove {
    background: transparent;
    color: #C55;
    border: 1px solid #C55;
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.NB-folder-icon-editor .NB-modal-submit-remove:hover {
    background: #C55;
    color: #FFF;
}

/* Inline folder emoji display */
.NB-folder-emoji {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    font-size: 14px;
    line-height: 1;
    vertical-align: middle;
}

.NB-folder-icon-colored {
    width: 16px;
    height: 16px;
    display: inline-block;
    vertical-align: middle;
    -webkit-mask-size: contain;
    mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
}

.NB-feedbar .NB-folder-icon .NB-folder-emoji {
    width: 16px;
    height: 16px;
    font-size: 16px;
    position: absolute;
    left: 0;
    top: 0;
}

/* Colored folder icon using mask-image for feedbar */
.NB-feedbar .NB-folder-icon .NB-folder-icon-colored {
    width: 16px;
    height: 16px;
    display: block;
    position: absolute;
    left: 0;
    top: 0;
    -webkit-mask-size: contain;
    mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
}

/* Colored folder icon in modal header */
.NB-modal-subtitle .NB-folder-icon-colored {
    width: 16px;
    height: 16px;
    display: inline-block;
    vertical-align: middle;
    margin-right: 8px;
    -webkit-mask-size: contain;
    mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
}

/* Feed Options Popover - Folder Icon Section */
.NB-popover-section-folder-icon {
    padding: 8px 12px;
    border-bottom: 1px solid #E0E0E0;
}

.NB-popover-section-folder-icon .NB-popover-section-title {
    font-size: 10px;
    font-weight: bold;
    color: #808080;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.NB-popover-section-folder-icon .NB-folder-icon-current {
    display: flex;
    align-items: center;
    gap: 12px;
}

.NB-popover-section-folder-icon .NB-folder-icon-current-preview {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #F0F0F0;
    border-radius: 4px;
    border: 1px solid #DDD;
}

.NB-popover-section-folder-icon .NB-folder-icon-current-preview img {
    width: 24px;
    height: 24px;
}

.NB-popover-section-folder-icon .NB-folder-icon-current-preview .NB-folder-emoji {
    font-size: 24px;
    width: 24px;
    height: 24px;
}

.NB-popover-section-folder-icon .NB-filter-popover-folder-icon-button {
    padding: 6px 12px;
    background: #F0F0F0;
    border: 1px solid #CCC;
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.15s ease;
}

.NB-popover-section-folder-icon .NB-filter-popover-folder-icon-button:hover {
    background: #E0E0E0;
    border-color: #AAA;
}

/* ========================== */
/* = Custom Feed Icons = */
/* ========================== */

/* Feed emoji icon in feed list */
.NB-feed-emoji {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    font-size: 14px;
    line-height: 1;
    vertical-align: middle;
}

.NB-feedlist .feed .NB-feed-emoji {
    font-size: 13px;
    line-height: 16px;
    position: absolute;
    top: 4px;
    left: 6px;
}

.NB-feedlist .feed .NB-feed-icon-colored {
    position: absolute;
    top: 4px;
    left: 6px;
}

.NB-density-compact .NB-feedlist .feed .NB-feed-emoji,
.NB-density-compact .NB-feedlist .feed .NB-feed-icon-colored {
    top: 1px;
}

.NB-theme-feed-size-m .NB-feedlist .feed .NB-feed-emoji,
.NB-theme-feed-size-m .NB-feedlist .feed .NB-feed-icon-colored {
    top: 6px;
}

.NB-density-compact.NB-theme-feed-size-m .NB-feedlist .feed .NB-feed-emoji,
.NB-density-compact.NB-theme-feed-size-m .NB-feedlist .feed .NB-feed-icon-colored {
    top: 4px;
}

/* Colored feed icon using mask-image */
.NB-feed-icon-colored {
    width: 16px;
    height: 16px;
    display: inline-block;
    vertical-align: middle;
    -webkit-mask-size: contain;
    mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
}

/* Feed emoji/icon in feedbar */
.NB-feedbar .NB-feed-emoji {
    font-size: 16px;
    width: 16px;
    height: 16px;
}

.NB-feedbar .NB-feed-icon-colored {
    width: 16px;
    height: 16px;
}

/* Feed icon in modal header */
.NB-modal-subtitle .NB-feed-emoji {
    font-size: 16px;
    vertical-align: middle;
    margin-right: 8px;
}

.NB-modal-subtitle .NB-feed-icon-colored {
    width: 16px;
    height: 16px;
    display: inline-block;
    vertical-align: middle;
    margin-right: 8px;
    -webkit-mask-size: contain;
    mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
}

/* ================= */
/* = Profile Badge = */
/* ================= */

.NB-profile-badge {
    border-bottom: 1px solid #F0F0F0;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.NB-profile-badge:last-child {
    border-bottom: none;
}

.NB-profile-badge table {
    clear: both;
    padding: 12px;
    position: relative;
    font-size: 13px;
    line-height: 17px;
    background-color: white;
    min-height: 50px;
    width: 100%;
}

.NB-profile-badge td {
    vertical-align: top;
}

.NB-profile-badge td.NB-profile-badge-info {
    width: 100%;
}

.NB-profile-badge.NB-profile-badge-embiggen {
    padding: 0;
}

.NB-profile-badge .NB-profile-badge-photo {
    padding: 0 8px 0 0;
    line-height: 0;
}

.NB-profile-badge .NB-profile-badge-photo img {
    max-width: 48px;
    max-height: 48px;
    border-radius: 3px;
}

.NB-profile-badge.NB-profile-badge-embiggen .NB-profile-badge-photo-wrapper {
    width: 108px;
    /*    height: 108px;*/
    vertical-align: top;
}

.NB-profile-badge.NB-profile-badge-embiggen .NB-profile-badge-photo img {
    max-width: 108px;
    max-height: 108px;
}

.NB-profile-badge .NB-profile-badge-username {
    font-weight: bold;
    float: left;
    cursor: pointer;
}

.NB-profile-badge.NB-profile-badge-embiggen .NB-profile-badge-username {
    font-size: 22px;
    text-shadow: 1px 1px 0 #E0E0E0;
}

.NB-profile-badge .NB-profile-badge-location {
    font-weight: bold;
    color: #909090;
    font-size: 11px;
    float: left;
    padding-left: 12px;
}

.NB-profile-badge.NB-profile-badge-embiggen .NB-profile-badge-location {
    font-size: 12px;
    padding: 4px 0 0 12px;
}

.NB-profile-badge .NB-profile-badge-website {
    display: none;
    float: left;
    padding-left: 12px;
    font-size: 11px;
}

.NB-profile-badge.NB-profile-badge-embiggen .NB-profile-badge-website {
    padding: 4px 0 0 12px;
    display: block;
}

.NB-profile-badge .NB-profile-badge-bio {
    clear: left;
    padding: 2px 0;
    font-size: 11px;
    color: #878787;
    line-height: 17px;
}

.NB-profile-badge.NB-profile-badge-embiggen .NB-profile-badge-bio {
    font-size: 13px;
    padding: 6px 0 0;
}

.NB-profile-badge .NB-profile-badge-stats {
    clear: left;
    color: #AE5D15;
    font-size: 11px;
    text-transform: uppercase;
}

.NB-profile-badge.NB-profile-badge-embiggen .NB-profile-badge-stats {
    padding: 2px 0 0;
}

.NB-profile-badge .NB-profile-badge-stats .NB-count {
    padding-right: 3px;
    font-weight: bold;
}

.NB-profile-badge .NB-profile-badge-blurblog-link {
    text-transform: none;
}

.NB-profile-badge .NB-profile-badge-following-you {
    padding: 2px 8px;
    background-color: #FFFFF6;
    border-radius: 4px;
    display: inline;
    border: 1px solid #EFEFE6;
}

.NB-profile-badge-actions {
    float: right;
}

.NB-profile-badge-actions .NB-profile-badge-action-self {
    color: #C0C0C0;
    font-weight: bold;
    background: none;
    box-shadow: none;
    cursor: default;
    border-color: #C0C0C0;
}

.NB-profile-badge-actions .NB-profile-badge-action-self,
.NB-profile-badge-actions .NB-modal-submit-button,
.NB-badge-actions .NB-modal-submit-button {
    width: 90px;
    text-align: center;
    margin: 0 0 4px;
    clear: right;
    float: right;
}

.NB-profile-badge-actions .NB-profile-badge-action-preview,
.NB-badge-actions .NB-badge-action-add,
.NB-profile-badge-actions .NB-profile-badge-action-mute,
.NB-profile-badge-actions .NB-profile-badge-action-ignore {
    color: #404040;
    line-height: 1;
    font-size: 11px;
}

.NB-profile-badge-actions .NB-profile-badge-action-preview.NB-disabled {
    cursor: default;
    background: white;
    box-shadow: none;
    -moz-box-shadow: none;
    opacity: .25;
}

.NB-profile-badge-actions .NB-profile-badge-action-preview.NB-disabled:hover {
    background: white;
}

.NB-profile-badge-actions .NB-profile-badge-action-protected-follow img {
    vertical-align: top;
    margin-right: 6px;
}

.NB-profile-badge-actions .NB-profile-badge-action-edit {
    color: #404040;
    line-height: 1;
    font-size: 11px;
}

.NB-profile-badge-actions .NB-profile-badge-action-buttons {
    float: right;
}

.NB-profile-badge-actions .NB-profile-badge-action-buttons img {
    width: 16px;
    height: 16px;
}

.NB-profile-badge-action-admin {
    display: inline-block;
    cursor: pointer;
    vertical-align: bottom;
    width: 16px;
    height: 16px;
    background: transparent url('/media/embed/icons/circular/g_icn_hands.png');
    background-size: 16px;
}

.NB-profile-badge-info .NB-profile-badge-actions .NB-loading {
    margin: 6px 12px 0 0;
    float: left;
}

/* ======================== */
/* = Social Profile Modal = */
/* ======================== */

.NB-modal-profile {
    min-height: 300px;
}

.NB-modal.NB-modal-profile .NB-modal-loading {
    position: absolute;
    top: 12px;
    right: 22px;
    float: none;
    z-index: 1;
}

.NB-modal.NB-modal-profile .NB-modal-section {
    padding: 12px 0 2px;
}

.NB-modal-profile .NB-profile-actions {
    float: right;
    margin-top: 10px;
}

.NB-modal-profile .NB-profile-links {
    overflow: hidden;
}

.NB-modal-profile .NB-profile-links .NB-profile-link {
    float: left;
    font-size: 0;
    vertical-align: middle;
    margin: 0 6px 6px 0;
    cursor: pointer;
}

.NB-modal-profile .NB-profile-links .NB-profile-link img {
    width: 42px;
    height: 42px;
    border-radius: 3px;
}

.NB-modal-profile .NB-profile-followers {
    width: 100%;
    padding: 0;
    background-color: #F7F7F5;
    margin: 16px 0 0 0;
    border-radius: 6px;
    text-shadow: 0 1px 0 white;
}

.NB-modal-profile .NB-profile-followers td {
    width: 100%;
    padding-right: 12px;
}

.NB-modal-profile .NB-profile-followers td.NB-profile-follow-count {
    width: 116px;
    text-align: center;
    padding-right: 0;
}

.NB-modal-profile .NB-profile-followers td.NB-profile-follow-count div {
    width: 116px;
    font-size: 28px;
}

.NB-modal-profile .NB-profile-followers td.NB-profile-follow-count h3 {
    font-size: 14px;
    margin: 4px 0 0;
    color: #909090;
    text-transform: uppercase;
}

.NB-modal-profile .NB-interactions {
    margin: 12px 0 36px;
}

/* ======================= */
/* = Interactions Module = */
/* ======================= */

.NB-interactions-popover-container .popover-content {
    padding: 0;
}

.NB-interactions-popover .NB-loading {
    margin: 12px auto;
    background: transparent url('/media/img/reader/worm_spinner.svg') no-repeat 0 0;
    background-size: 16px;
    width: 16px;
    height: 16px;
}

.NB-interactions-popover .NB-interactions-header {
    font-size: 10px;
    text-align: center;
    overflow: hidden;
}

.NB-interactions-popover .NB-tab {
    width: 50%;
    color: #A0A0A0;
    cursor: pointer;
    padding: 8px 0;
    background-color: rgba(0, 0, 0, .05);
}

.NB-interactions-popover .NB-tab span {
    display: block;
    padding: 2px 0;
}

.NB-interactions-popover .NB-tab-interactions {
    float: left;
}

.NB-interactions-popover .NB-tab-interactions span {
    border-right: 1px solid rgba(0, 0, 0, .2);
}

.NB-interactions-popover .NB-tab-activities {
    float: right;
}

.NB-interactions-popover.NB-active-interactions .NB-tab-interactions,
.NB-interactions-popover.NB-active-activities .NB-tab-activities {
    color: #505050;
    font-weight: bold;
}

.NB-interactions-container,
.NB-activities-container {
    max-height: 460px;
    overflow: auto;
}

.NB-interactions {
    list-style: none;
    padding: 0;
    margin: 0;
}

.NB-interaction {
    list-style: none;
    position: relative;
    margin: 0 0 0 0;
    padding: 6px 12px 6px 62px;
    border-top: 1px solid transparent;
    border-left: 1px solid transparent;
    border-right: 1px solid transparent;
    border-bottom: 1px solid #F2F2EE;
    overflow: hidden;
    cursor: pointer;
    min-height: 44px;
}

.NB-activities-container .NB-interaction {
    padding-left: 40px;
    min-height: none;
}

.NB-interaction.NB-disabled {
    cursor: default;
}

.NB-interaction.NB-highlighted {
    background-color: #FFFFF6;
    border-bottom: 1px solid #F0F0E6;
}

.NB-interaction .NB-splash-link:hover {
    color: #405BA8;
}

.NB-interaction-content {
    font-size: 11px;
    padding-top: 4px;
    line-height: 16px;
    color: #9d9d9d;
}

.NB-interaction-content a {
    color: #A6A9B0;
}

.NB-interaction:active:not(.NB-disabled) .NB-interaction-content .NB-splash-link {
    color: #405BA8;
    text-decoration: none;
}

.NB-interaction-photo {
    position: absolute;
    width: 36px;
    height: 36px;
    border-radius: 3px;
    left: 12px;
    top: 10px;
    cursor: pointer;
}

.NB-activities-container .NB-interaction-photo {
    width: 16px;
    height: 16px;
}

.NB-interaction-date {
    color: #5e828b;
    font-size: 10px;
    padding: 5px 0 0;
}

.NB-interaction:hover:not(.NB-disabled) .NB-interaction-date {
    color: #929697;
}

.NB-interaction-title {
    font-size: 12px;
    line-height: 18px;
    color: #404040;
    padding: 2px 0 0 0;
    opacity: .9;
}

.NB-interaction-username {
    cursor: pointer;
}

.NB-interaction-starred-story-title {
    cursor: pointer;
}

.NB-interaction-reply-content {
    cursor: pointer;
}

.NB-interaction-feed-title {
    cursor: pointer;
}

.NB-interaction-sharedstory-title {
    cursor: pointer;
}

.NB-interaction-sharedstory-content {
    cursor: pointer;
}

/* ============= */
/* = Auth Lost = */
/* ============= */

.NB-modal-authlost .NB-authlost-group {
    width: 35%;
    margin: 48px auto;
    text-align: center;
}

/* ============= */
/* = Organizer = */
/* ============= */

.NB-modal-organizer .NB-modal-title .NB-icon {
    background: transparent url("/media/embed/icons/nouns/dialog-organize.svg") no-repeat center center;
    background-size: 28px;
    filter: hue-rotate(311deg) saturate(16);
}

.NB-modal-organizer .NB-feedlist {
    width: 70%;
    max-height: 500px;
    border: 1px solid rgba(0, 0, 0, .2);
    margin: 4px 24px 0 0;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.NB-modal-organizer .NB-feedlist .feed_title {
    padding-right: 186px;
}

.NB-modal-organizer .NB-feedlist .feed {
    display: block;
}

.NB-modal-organizer .NB-feedlist .folder .folder_title .NB-feedlist-collapse-icon,
.NB-modal-organizer .NB-feedlist .folder .folder_title .feed_counts_floater {
    display: none;
}

.NB-modal-organizer .NB-feedlist .feed.NB-feed-exception .feed_counts {
    display: block;
}

.NB-modal-organizer .feed.NB-highlighted .NB-feed-exception-icon {
    display: none;
}

.NB-modal-organizer .feed.selected {
    background: none;
    border-top: 1px solid transparent;
    border-bottom: 1px solid transparent;
}

.NB-modal-organizer .feed {
    font-weight: normal;
}

.NB-modal-organizer .NB-highlighted {
    font-weight: bold;
}

.NB-modal-organizer .unread_count.unread_count_positive.unread_count_full {
    display: none;
}

.NB-modal-organizer .NB-highlighted .unread_count.unread_count_positive {
    display: block;
    width: 24px;
    height: 13px;
    text-indent: -9999px;
    background-image: url('/media/embed/icons/circular/checkmark_white.png');
    background-size: 16px;
    background-position: center center;
    background-repeat: no-repeat;
}

.NB-modal-organizer .NB-feed-organizer-sort {
    display: none;
    position: absolute;
    right: 42px;
    width: 124px;
    top: 4px;
}

.NB-modal-organizer .NB-sort-alphabetical .NB-feed-organizer-opens {
    display: block;
}

.NB-modal-organizer .NB-sort-subscribers .NB-feed-organizer-subscribers {
    display: block;
}

.NB-modal-organizer .NB-sort-recency .NB-feed-organizer-laststory {
    display: block;
}

.NB-modal-organizer .NB-sort-frequency .NB-feed-organizer-monthlycount {
    display: block;
}

.NB-modal-organizer .NB-sort-mostused .NB-feed-organizer-opens {
    display: block;
}

.NB-modal-organizer .NB-feed-organizer-sort.NB-active {
    display: block;
}

.NB-modal-organizer .NB-organizer-actionbar {
    font-size: 12px;
    line-height: 18px;
    margin: 12px 0 0 0;
    width: 70%;
    overflow: hidden;
}

.NB-modal-organizer .NB-organizer-sorts {
    float: right;
}

.NB-modal-organizer .NB-organizer-selects {
    float: left;
}

.NB-modal-organizer .NB-organizer-action-title {
    float: left;
    font-size: 11px;
    font-weight: bold;
}

.NB-modal-organizer .NB-organizer-action {
    float: left;
    margin-left: 6px;
    cursor: pointer;
    color: #405BA8;
}

.NB-modal-organizer .NB-organizer-action:hover {
    color: #A85B40;
}

.NB-modal-organizer .NB-organizer-action.NB-active,
.NB-modal-organizer .NB-organizer-action.NB-active:hover {
    color: #000;
    padding-right: 12px;
    background: transparent url('/media/embed/icons/nouns/down.svg') no-repeat right 3px;
    background-size: 8px;
}

.NB-modal-organizer .NB-sort-inverse .NB-organizer-action.NB-active {
    background: transparent url('/media/embed/icons/nouns/up.svg') no-repeat right 4px;
    background-size: 8px;
}

.NB-modal-organizer .NB-organizer-selects .NB-organizer-action {
    float: left;
    margin-left: 0;
    margin-right: 6px;
}

.NB-modal-organizer .NB-organizer-selects .NB-organizer-action-title {
    margin-left: 0;
    margin-right: 6px;
}

.NB-modal-organizer .NB-organizer-sidebar {
    float: right;
    width: 27%;
    margin: 12px 0 0;
}

.NB-modal-organizer .NB-organizer-sidebar-title {
    font-size: 11px;
    line-height: 18px;
    font-weight: bold;
    margin-top: 12px;
}

.NB-modal-organizer .NB-organizer-sidebar-hierarchy .NB-organizer-sidebar-title {
    margin-top: 0;
}

.NB-modal-organizer .NB-organizer-sidebar-container {
    margin: 4px 0 0;
    border: 1px solid rgba(0, 0, 0, .2);
    background-color: #F7F8F5;
    padding: 6px;
}

.NB-modal-organizer .segmented-control {
    margin: 0;
    line-height: 18px;
    overflow: hidden;
}

.NB-modal-organizer .segmented-control li {
    padding: 2px 12px 0;
    font-size: 11px;
    width: 49%;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}

.NB-modal-organizer .NB-modal-submit-button {
    text-align: center;
    margin: 6px 0 0;
}

.NB-modal-organizer .NB-action-delete {
    margin-top: 0;
}

.NB-modal-organizer .NB-folders {
    width: 164px;
}

.NB-modal-organizer .NB-icon-add {
    background: transparent url('/media/embed/icons/circular/g_icn_folder_add.png') no-repeat 0 0;
    float: right;
    width: 16px;
    height: 16px;
    margin: 4px 4px 0;
    cursor: pointer;
    background-size: 16px;
}

.NB-modal-organizer .NB-icon-add:hover {
    background: transparent url('/media/embed/icons/circular/g_icn_folder_add_dark.png') no-repeat 0 0;
    background-size: 16px;
}

.NB-modal-organizer .NB-icon-subfolder {
    background: transparent url('/media/embed/icons/nouns/right.svg') no-repeat 0 0;
    float: left;
    width: 8px;
    height: 8px;
    margin: 12px 6px 0 4px;
    background-size: 8px;
}

.NB-modal-organizer .NB-add-folder-input {
    font-size: 11px;
    width: 140px;
    margin: 6px 0 2px;
}

/* ================= */
/* = Feed Selector = */
/* ================= */

.NB-feeds-selector {
    display: none;
    background-color: #434343;
    border-bottom: 1px solid #E9E9E9;
    padding-bottom: 3px;
    overflow: hidden;
}

/* ========== */
/* = Search = */
/* ========== */

.NB-search-input {
    box-sizing: border-box;
    border-radius: 16px;
    border: 1px solid rgba(0, 0, 0, .1);
    font-weight: bold;
    background: transparent;
    width: 94%;
    padding: 4px 14px;
    margin: 4px 3% 2px;
    display: block;
    font-size: 14px;
    outline: none;
}

.NB-search-input:focus,
.NB-selector-active .NB-feeds-selector .NB-search-input,
.NB-searching .NB-search-input {
    border: 1px solid #5F5F5F;
    box-shadow: 0 1px 0 #B1B1B1;
    background-color: white;
}

.NB-search-icon {
    position: absolute;
    left: 6px;
    top: 4px;
    background: transparent url('/media/embed/reader/search_light.png') no-repeat 0 0;
    background-size: 10px;
    width: 12px;
    height: 12px;
}

.NB-search-close {
    display: none;
    position: absolute;
    right: 2px;
    top: 4px;
    z-index: 1;
    width: 12px;
    height: 12px;
    background: transparent url('/media/embed/reader/close.png') no-repeat 0 0;
    background-size: 10px;
    cursor: pointer;
    opacity: .7;
    -webkit-transition: all .22s ease-in-out;
    -moz-transition: all .22s ease-in-out;
    -o-transition: all .22s ease-in-out;
    -ms-transition: all .22s ease-in-out;
}


.NB-search-close:hover {
    opacity: 1;
}

.NB-searching .NB-search-close,
.NB-searching .NB-search-save {
    display: block;
}

.NB-search-container {
    position: relative;
}

.NB-story-title-search {
    float: right;
    margin: 3px 0 0 12px;
    position: relative;
}

.NB-story-title-search-input {
    transition: all .22s ease-in-out;

    width: 24px;
    margin: 0;
    font-size: 12px;
    padding: 1px 20px;
    font-weight: normal;
}

.NB-searching .NB-story-title-search-input {
    width: 154px;
}

.NB-search-header {
    overflow: hidden;
    padding: 8px 8px 8px 36px;
    border-bottom: 1px solid #dbdbda;
    background-color: #F3F3EE;
    background-image: linear-gradient(180deg, #F3F3EE, #f0f3ed);
    position: sticky;
    top: 0;
    z-index: 100;
}

.NB-search-header .NB-search-header-save {
    float: right;
    font-size: 9px;
    text-transform: uppercase;
    cursor: pointer;
    padding: 1px 8px;
    font-weight: bold;
    line-height: 14px;
    border: 1px solid rgba(0, 0, 0, .1);
    border-radius: 16px;
    z-index: 1;
    margin: 0 0 0 8px;
    color: rgba(0, 0, 0, .5);

    background-color: #F0F1EC;
}

.NB-search-header .NB-search-header-save:hover,
.NB-search-header .NB-search-header-save.NB-active {
    background-color: rgba(0, 0, 0, .1);
}

.NB-search-header .NB-search-header-save.NB-search-header-clear {
    background: transparent url('/media/embed/reader/close.png') no-repeat center center;
    background-size: 10px;
    width: 12px;
    height: 12px;
    padding: 0;
    text-transform: none;
    border: none;
    border-radius: 0;
    opacity: .7;
}

.NB-search-header .NB-search-header-save.NB-search-header-clear:hover {
    opacity: 1;
    background-color: transparent;
}

.NB-search-header .NB-search-header-icon {
    background: transparent url('/media/embed/reader/search_light.png') no-repeat 0 0;
    background-size: 16px;
    vertical-align: bottom;
    width: 16px;
    height: 16px;
    position: absolute;
    top: 8px;
    left: 12px;
}

.NB-search-header .NB-search-header-title {
    font-size: 12px;
}

/* ================== */
/* = Delete Account = */
/* ================== */

.NB-delete-form h2 {
    margin: 24px auto;
    line-height: 28px;
    text-align: center;
    text-shadow: none;
    color: white;
}

.NB-static-form.NB-delete-form {
    width: 420px;
    margin-bottom: 24px;
}

.NB-static-form.NB-delete-form label {
    width: 200px;
}

.NB-static-form.NB-delete-form input[type=submit] {
    width: 206px;
    margin: 12px 0 4px 200px;
    box-shadow: none;
    white-space: normal;
    font-size: 13px;
}

.NB-fields {
    clear: both;
}

.NB-static-form .NB-errors {
    margin-left: 200px;
}

/* =============== */
/* = OAuth Forms = */
/* =============== */

.NB-static-oauth {
    padding-bottom: 0;
}

.NB-static-oauth h3 {
    margin-top: 0;
    text-align: center;
    color: white;
}

/* Hide old form elements on card-based pages */
.NB-static-login .NB-static-title {
    display: none;
}

/* ============================== */
/* = Signup/Login Frosted Card  = */
/* ============================== */

.NB-static-card-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 78px);
    padding: 48px 24px;
    box-sizing: border-box;
}

.NB-static-card {
    width: 100%;
    max-width: 380px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    background: rgba(255, 255, 255, 0.12);
    border: 0.5px solid rgba(255, 255, 255, 0.18);
    border-radius: 20px;
    padding: 36px 32px;
    text-align: center;
}

@supports not (backdrop-filter: blur(20px)) {
    .NB-static-card {
        background: rgba(50, 70, 70, 0.85);
    }
}

.NB-static-card-logo {
    display: inline-block;
}

.NB-static-card-logo img {
    width: 72px;
    height: 72px;
    filter: drop-shadow(0 2px 12px rgba(217, 166, 33, 0.35));
    opacity: 0.9;
    transition: opacity 0.15s ease;
}

.NB-static-card-logo:hover img {
    opacity: 1;
}

.NB-static-card-title {
    font-family: 'Gotham Narrow A', 'Gotham Narrow B', sans-serif;
    font-size: 26px;
    font-weight: 700;
    color: white;
    margin: 12px 0 8px;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.15);
}

.NB-static-card-tagline {
    font-family: 'Chronicle Display A', 'Chronicle Display B', Georgia, serif;
    font-style: italic;
    font-size: 14px;
    color: #FBDB9B;
    margin: 0 0 28px;
    line-height: 1.5;
}

.NB-static-card-error {
    font-size: 13px;
    color: #F5A87A;
    font-weight: 600;
    text-align: center;
    margin: 0 0 16px;
    line-height: 1.4;
}

.NB-static-card-field {
    margin: 0 0 12px;
}

.NB-static-card-field input[type=text],
.NB-static-card-field input[type=password],
.NB-static-card-field input[type=email] {
    width: 100%;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 14px 16px;
    font-family: 'Whitney SSm A', 'Whitney SSm B', sans-serif;
    font-size: 15px;
    color: white;
    outline: none;
    box-sizing: border-box;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.NB-static-card-field input::placeholder {
    color: rgba(255, 255, 255, 0.35);
}

.NB-static-card-field input:focus {
    border-color: rgba(217, 166, 33, 0.5);
    background: rgba(255, 255, 255, 0.13);
}

.NB-static-card .g-recaptcha {
    margin: 16px 0;
    display: flex;
    justify-content: center;
}

.NB-static-card-submit {
    width: 100%;
    background: #D9A621;
    border: none;
    border-radius: 12px;
    padding: 14px;
    font-family: 'Gotham Narrow A', 'Gotham Narrow B', sans-serif;
    font-size: 17px;
    font-weight: 600;
    color: white;
    cursor: pointer;
    transition: background 0.2s ease;
    box-sizing: border-box;
    margin: 4px 0 0;
}

.NB-static-card-submit:hover {
    background: #C4941B;
}

.NB-static-card-submit:active {
    background: #B08518;
}

.NB-static-card-altlink {
    display: block;
    text-align: center;
    margin: 18px 0 0;
    color: #FBDB9B;
    font-size: 13px;
    text-decoration: none;
    font-weight: normal;
    transition: color 0.2s ease;
}

.NB-static-card-altlink:hover {
    color: #fff;
}

/* Legacy form styles (delete account, etc.) */
.NB-static-oauth .NB-static-form {
    width: 500px;
    margin: 24px auto;
    padding: 0 24px;
}

.NB-static-oauth .NB-static-form-label label {
    width: 108px;
    text-transform: none;
    font-size: 18px;
    padding: 8px 0 0 0;
    color: rgba(255, 255, 255, 0.6);
    display: block;
}

.NB-static-oauth .NB-static-form-input input {
    margin-left: 12px;
    margin-right: 0;
    height: 34px;
    font-size: 22px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: white;
}

.NB-static-oauth .NB-static-form-username-label label {
    padding-top: 0;
}

.NB-static-oauth input[type=submit].NB-static-form-submit {
    margin: 24px 0 0 0;
    font-size: 18px;
    padding: 8px 12px;
}

.NB-static-oauth .NB-error {
    font-size: 12px;
    text-align: center;
    color: #F5A87A;
    padding: 4px 0 0;
    line-height: 14px;
    font-weight: bold;
    clear: both;
}

.NB-static-form-alttext {
    margin: 24px 0 0 120px;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.NB-static-form-alttext a {
    color: #FBDB9B;
    font-weight: normal;
}

@media screen and (max-width: 580px) {
    .NB-static-oauth {
        padding: 12px 0 0;
    }

    .NB-static .NB-splash-info,
    .NB-static .NB-static-title {
        position: absolute;
    }

    .NB-splash-info.NB-splash-bottom {
        position: relative;
    }

    .NB-splash-info {
        height: 36px;
    }

    .NB-splash-info.NB-splash-top .NB-splash-title {
        width: auto;
        height: 36px;
    }

    .NB-static .NB-static-title {
        font-size: 18px;
        line-height: 36px;
    }

    .NB-static-oauth .NB-static-form {
        width: auto;
    }

    .NB-static-card-wrapper {
        padding: 24px 16px;
        min-height: calc(100vh - 36px);
    }

    .NB-static-card {
        padding: 28px 24px;
    }
}

/* ======================== */
/* = Feed Options Popover = */
/* ======================== */

.NB-filter-popover-container.popover {
    width: 354px;
}

.NB-filter-popover-container.popover.bottom-left .arrow {
    left: 20%;
}

.NB-filter-popover-container .popover-content {
    padding: 0;
}

.NB-style-popover .segmented-control {
    margin-top: 4px;
}

.NB-filter-popover .segmented-control,
.NB-style-popover .segmented-control {
    line-height: 18px;
    float: none;
    flex-grow: 1;
}

.NB-filter-popover .segmented-control li {
    padding: 2px 12px 2px;
    font-size: 11px;
}

.NB-filter-popover .NB-popover-icon-control {
    margin: 4px 0 0;
    display: flex;
    gap: 8px;
    align-items: center;
}


.NB-filter-popover .NB-date-range-label {
    font-size: 11px;

}

.NB-filter-popover .NB-popover-icon-control>.NB-icon {
    width: 24px;
    height: 16px;
}

.NB-filter-popover .NB-popover-icon-control-dashboardcount>.NB-icon {
    background: transparent url('/media/embed/icons/nouns/count.svg') no-repeat 0 0;
    background-size: 16px;
    filter: hue-rotate(206deg) saturate(10.5);
}

.NB-filter-popover .NB-popover-icon-control-readfilter>.NB-icon {
    background: transparent url('/media/embed/icons/nouns/venn.svg') no-repeat 0 0;
    background-size: 16px;
    filter: hue-rotate(106deg) saturate(10.5);
}

.NB-filter-popover .NB-popover-icon-control-order>.NB-icon {
    background: transparent url('/media/embed/icons/nouns/order.svg') no-repeat 0 0;
    background-size: 16px;
    filter: hue-rotate(312deg) saturate(10.5);
}

.NB-filter-popover .NB-popover-icon-control-date-filter-start>.NB-icon,
.NB-filter-popover .NB-popover-icon-control-date-filter-end>.NB-icon {
    background: transparent url('/media/embed/icons/nouns/past.svg') no-repeat 0 0;
    background-size: 16px;
    filter: hue-rotate(280deg) saturate(1.0);
}

.NB-filter-popover .NB-date-filter-container {
    margin: 4px 0 2px;
    padding: 8px 12px;
    background: rgba(0, 0, 0, 0.03);
    border-radius: 4px;
    display: flex;
    gap: 36px;
    position: relative;
}

.NB-filter-popover .NB-date-filter-container::before {
    content: '—';
    position: absolute;
    left: 50%;
    top: 32px;
    transform: translateX(-50%);
    font-size: 14px;
    color: #999;
    pointer-events: none;
    line-height: 1;
}

.NB-filter-popover .NB-date-filter-column {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.NB-filter-popover .NB-date-filter-label {
    font-size: 11px;
    color: #666;
    font-weight: 600;
    white-space: nowrap;
    margin: 0;
}

.NB-filter-popover .NB-date-input {
    padding: 4px 8px;
    border: 1px solid #ccc;
    border-radius: 3px;
    font-size: 12px;
    width: 100%;
    box-sizing: border-box;
}

.NB-filter-popover .NB-date-input:focus {
    outline: none;
    border-color: #4A90E2;
    box-shadow: 0 0 0 2px rgba(74, 144, 226, 0.1);
}

.NB-filter-popover .NB-date-filter-column .segmented-control {
    width: 100%;
}

.NB-filter-popover .NB-date-filter-column .segmented-control li {
    font-size: 10px;
    padding: 4px 6px;
    flex: 1;
}

.NB-filter-popover .NB-clear-date-button {
    display: none;
    width: 12px;
    height: 12px;
    background: transparent url('/media/embed/reader/close.png') no-repeat 0 0;
    background-size: 10px;
    cursor: pointer;
    opacity: .7;
    position: absolute;
    top: 8px;
    right: 8px;
}

.NB-filter-popover .NB-date-filter-container.NB-has-dates .NB-clear-date-button {
    display: block;
}

.NB-filter-popover .NB-clear-date-button:hover {
    opacity: 1;
}

.NB-filter-popover .NB-popover-icon-control-infrequent>.NB-icon {
    background: transparent url('/media/embed/icons/nouns/frequency.svg') no-repeat 0 0;
    background-size: 16px;
    filter: hue-rotate(256deg) saturate(10.5);
}

.NB-filter-popover .NB-popover-icon-control-markscroll>.NB-icon {
    background: transparent url('/media/embed/icons/nouns/scroll.svg') no-repeat 0 0;
    background-size: 16px;
    filter: hue-rotate(56deg) saturate(10.5);
}

.NB-filter-popover .NB-popover-icon-control-density>.NB-icon {
    background: transparent url('/media/embed/icons/nouns/square-space.svg') no-repeat 0 0;
    background-size: 16px;
    filter: hue-rotate(126deg) saturate(10.5);
}

.NB-filter-popover .NB-popover-icon-control-contentpreview>.NB-icon {
    background: transparent url('/media/embed/icons/nouns/content-preview.svg') no-repeat 0 0;
    background-size: 16px;
    filter: hue-rotate(186deg) saturate(10.5);
}

.NB-filter-popover .NB-popover-icon-control-imagepreview>.NB-icon {
    background: transparent url('/media/embed/icons/nouns/image.svg') no-repeat 0 0;
    background-size: 16px;
    filter: hue-rotate(231deg) saturate(10.5);
}

.NB-filter-popover .NB-popover-icon-control-feed-font>.NB-icon {
    background: transparent url('/media/embed/icons/nouns/font.svg') no-repeat 0 0;
    background-size: 16px;
    filter: hue-rotate(226deg) saturate(10.5);
}

.NB-filter-popover .NB-popover-icon-control-feed-size>.NB-icon {
    background: transparent url('/media/embed/icons/nouns/font-size.svg') no-repeat 0 0;
    background-size: 16px;
    filter: hue-rotate(40deg) saturate(10.5);
}

.NB-filter-popover .segmented-control.NB-feed-notification-types li {
    flex-grow: 1;
}

.NB-filter-popover .segmented-control.NB-menu-manage-view-setting-dashboardcount li {
    flex-grow: 1;
}

.NB-filter-popover .segmented-control.NB-menu-manage-view-setting-dashboardcount li.NB-active {
    flex-grow: 3;
}

.NB-filter-popover .segmented-control.NB-menu-manage-view-setting-infrequent li {
    width: auto;
    padding-left: 10px;
    padding-right: 10px;
}

.NB-filter-popover .segmented-control.NB-menu-manage-view-setting-contentpreview li,
.NB-style-popover .segmented-control.NB-menu-manage-view-setting-contentpreview li {
    padding: 2px 6px 2px;
    font-size: 11px;
    height: 20px;
}

.NB-filter-popover .segmented-control.NB-menu-manage-view-setting-contentpreview li.NB-view-setting-contentpreview-title,
.NB-style-popover .segmented-control.NB-menu-manage-view-setting-contentpreview li.NB-view-setting-contentpreview-title {
    flex-grow: 2;
}

.NB-filter-popover .segmented-control.NB-menu-manage-view-setting-imagepreview li.NB-view-setting-imagepreview-none,
.NB-style-popover .segmented-control.NB-menu-manage-view-setting-imagepreview li.NB-view-setting-imagepreview-none {
    flex-grow: 3;
    padding: 5px 12px;
}

.NB-filter-popover .segmented-control.NB-menu-manage-view-setting-imagepreview li,
.NB-style-popover .segmented-control.NB-menu-manage-view-setting-imagepreview li {
    padding: 6px 8px 2px;
    font-size: 11px;
}

.NB-menu-manage-view-setting-imagepreview .NB-icon {
    width: 16px;
    height: 16px;
}

.NB-filter-popover .segmented-control .NB-unread-icon,
.NB-filter-popover .segmented-control .NB-focus-icon {
    height: 17px;
}

.NB-filter-popover .NB-modal-feed-chooser {
    width: 100%;
    margin: 0 0 6px;
}

.NB-filter-popover .NB-filter-popover-manage-dashboard-modules {
    display: flex;
    gap: 6px;
}

.NB-filter-popover .NB-filter-popover-manage-button {
    flex: 1 2 0;
    border-radius: 4px;
    font-size: 12px;
    margin: 2px 0;
    padding: 4px 6px;
    display: flex;
    gap: 6px;
}

.NB-filter-popover .NB-filter-popover-manage-button:hover {
    cursor: pointer;
    background-color: #d5d6d2;
}

.NB-filter-popover .NB-filter-popover-manage-button .NB-icon {
    /* flex: 1 1 0; */
    width: 16px;
    height: 16px;
}

.NB-filter-popover .NB-filter-popover-manage-button .NB-text {
    flex: 2 1 0;
}

.NB-filter-popover .NB-filter-popover-dashboard-add-module-left .NB-icon {
    background: transparent url('/media/embed/icons/nouns/add-list.svg') no-repeat 0 0;
    background-size: 16px;
}

.NB-filter-popover .NB-filter-popover-dashboard-add-module-right .NB-icon {
    background: transparent url('/media/embed/icons/nouns/add-list-right.svg') no-repeat 0 0;
    background-size: 16px;
    order: 2;
}

.NB-filter-popover .NB-filter-popover-dashboard-remove-module .NB-icon {
    background: transparent url('/media/embed/icons/nouns/remove-list.svg') no-repeat 0 0;
    background-size: 16px;
}

.NB-filter-popover .NB-filter-popover-dashboard-add-module-right .NB-text {
    text-align: right;
}

.NB-feedbar-options-stat {
    position: relative;
    padding-left: 30px;
    margin-bottom: 6px;
}

.NB-feedbar-options-stat:last-child {
    margin-bottom: 0;
}

.NB-feedbar-options-stat .NB-icon {
    clear: both;
    left: 0;
    top: 0;
    background: transparent url('/media/embed/reader/search_light.png') no-repeat 0 0;
    background-size: 16px;
    vertical-align: bottom;
    width: 16px;
    height: 16px;
    position: absolute;
}

.NB-stat-subscribers .NB-icon {
    background: transparent url('/media/embed/icons/nouns/subscribers.svg') no-repeat 0 0;
    background-size: 16px;
    filter: hue-rotate(87deg) saturate(10.5);
}

.NB-stat-updated .NB-icon {
    background: transparent url('/media/embed/icons/nouns/boomerang.svg') no-repeat 0 0;
    background-size: 16px;
    filter: hue-rotate(320deg) saturate(16.5);
}

.NB-stat-average .NB-icon {
    background: transparent url('/media/embed/icons/nouns/monthly.svg') no-repeat 0 0;
    background-size: 16px;
    filter: hue-rotate(287deg) saturate(10.5);
}

.NB-stat-archive-count .NB-icon {
    background: transparent url('/media/embed/icons/nouns/cabinet.svg') no-repeat 0 0;
    background-size: 16px;
    filter: hue-rotate(143deg) saturate(14.5);
}

.NB-stat-decay .NB-icon {
    background: transparent url('/media/embed/icons/nouns/refresh.svg') no-repeat 0 0;
    background-size: 16px;
    filter: hue-rotate(7deg) saturate(10.5);
}

.NB-stat-realtime .NB-icon {
    background: transparent url('/media/embed/icons/nouns/saved-stories.svg');
    background-size: 16px;
}

.NB-feedbar-options-stat .NB-stat {
    font-size: 11px;
    color: #6F716A;
}

.NB-filter-popover-stats-icon {
    background: transparent url('/media/embed/icons/nouns/dialog-statistics.svg') no-repeat 0 0;
    background-size: 32px;
    filter: hue-rotate(284deg) saturate(18);
}

.NB-filter-popover-filter-icon {
    background: transparent url('/media/embed/icons/nouns/settings.svg') no-repeat 0 0;
    background-size: 32px;
}

.NB-filter-popover-notifications-icon {
    background: transparent url("/media/embed/icons/nouns/dialog-notifications.svg") no-repeat center center;
    background-size: 32px;
    filter: hue-rotate(320deg) saturate(18);
}

.NB-feedbar-notifications-icon {
    background: transparent url("/media/embed/icons/nouns/dialog-notifications.svg") no-repeat center center;
    background-size: 12px;
    filter: hue-rotate(320deg) saturate(18);
    width: 12px;
    height: 12px;
    display: inline-block;
    margin: 0px 0 -2px 0;
}

.NB-feedbar-auto-mark-read-icon {
    background: transparent url("/media/embed/icons/nouns/calendar.svg") no-repeat center center;
    background-size: 12px;
    filter: hue-rotate(180deg) saturate(2);
    width: 12px;
    height: 12px;
    display: inline-block;
    margin: 0px 0 -2px 0;
}

.NB-exception-option-auto-mark-read.NB-highlighted {
    background-color: rgba(255, 200, 0, 0.3);
    transition: background-color 0.3s ease;
}

/* Auto Mark as Read Popover Section */
.NB-filter-popover .NB-auto-mark-read-title-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

.NB-filter-popover .NB-auto-mark-read-title-row .NB-popover-section-title {
    margin: 0;
    margin-right: auto;
}

.NB-filter-popover .NB-auto-mark-read-title-row .NB-filter-popover-auto-mark-read-icon {
    width: 18px;
    height: 18px;
    background: transparent url("/media/embed/icons/nouns/calendar.svg") no-repeat center center;
    background-size: 14px;
    filter: hue-rotate(180deg) saturate(2);
    cursor: pointer;
    opacity: 0.5;
    transition: opacity 0.15s ease;
}

.NB-filter-popover .NB-auto-mark-read-title-row .NB-filter-popover-auto-mark-read-icon:hover {
    opacity: 1;
}

.NB-filter-popover .segmented-control.NB-menu-manage-auto-mark-read {
    margin-left: 0;
}

.NB-filter-popover .segmented-control.NB-menu-manage-auto-mark-read li {
    flex-grow: 1;
}

.NB-filter-popover .NB-auto-mark-read-slider-container {
    margin: 4px 0 4px 0;
    padding: 10px 12px;
    background: rgba(0, 0, 0, 0.03);
    border-radius: 6px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.NB-filter-popover .NB-auto-mark-read-slider {
    width: 100%;
    height: 8px;
    -webkit-appearance: none;
    appearance: none;
    background: #ddd;
    border-radius: 4px;
    outline: none;
    cursor: pointer;
    margin: 4px 0;
}

.NB-filter-popover .NB-auto-mark-read-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    background: #4a90d9;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    transition: transform 0.1s ease, box-shadow 0.1s ease;
    margin-top: 0;
}

.NB-filter-popover .NB-auto-mark-read-slider::-webkit-slider-thumb:hover {
    transform: scale(1.1);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.NB-filter-popover .NB-auto-mark-read-slider::-moz-range-thumb {
    width: 18px;
    height: 18px;
    background: #4a90d9;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.NB-filter-popover .NB-auto-mark-read-slider::-moz-range-track {
    height: 8px;
    border-radius: 4px;
}

.NB-filter-popover .NB-auto-mark-read-slider-value {
    font-size: 12px;
    color: #555;
    text-align: center;
    line-height: 1.4;
}

.NB-filter-popover .NB-auto-mark-read-slider-value b {
    color: #4a90d9;
    font-weight: 600;
}

/* Upgrade notice for non-archive users */
.NB-filter-popover .NB-auto-mark-read-upgrade-notice {
    font-size: 11px;
    text-decoration: none;
    color: #707070;
    padding: 3px 8px;
    border-radius: 4px;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.NB-filter-popover .NB-auto-mark-read-upgrade-notice:hover {
    background-color: rgba(74, 144, 217, 0.1);
    color: #4a90d9;
}

.NB-filter-popover .NB-auto-mark-read-upgrade-notice .NB-archive-badge {
    display: inline-block;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: white;
    font-size: 9px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 2px 6px;
    border-radius: 3px;
}

.NB-filter-popover .NB-auto-mark-read-upgrade-notice.NB-flash {
    animation: flash-upgrade 0.6s ease;
    background-color: rgba(99, 102, 241, 0.15);
    color: #6366f1;
}

@keyframes flash-upgrade {
    0%, 100% {
        transform: scale(1);
    }

    25% {
        transform: scale(1.05);
    }

    50% {
        transform: scale(1);
    }

    75% {
        transform: scale(1.03);
    }
}

/* Date filter title row */
.NB-filter-popover .NB-date-filter-title-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
}

.NB-filter-popover .NB-date-filter-title-row .NB-popover-section-title {
    margin: 0;
    margin-right: auto;
}

/* Date filter upgrade notice */
.NB-filter-popover .NB-date-filter-upgrade-notice {
    font-size: 11px;
    text-decoration: none;
    color: #707070;
    padding: 3px 8px;
    border-radius: 4px;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.NB-filter-popover .NB-date-filter-upgrade-notice:hover {
    background-color: rgba(74, 144, 217, 0.1);
    color: #4a90d9;
}

.NB-filter-popover .NB-date-filter-upgrade-notice .NB-archive-badge {
    display: inline-block;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: white;
    font-size: 9px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 2px 6px;
    border-radius: 3px;
}

.NB-filter-popover .NB-date-filter-upgrade-notice.NB-flash {
    animation: flash-upgrade 0.6s ease;
    background-color: rgba(99, 102, 241, 0.15);
    color: #6366f1;
}

/* Story Clustering Popover Section */
.NB-filter-popover .NB-clustering-title-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.NB-filter-popover .NB-clustering-title-row .NB-popover-section-title {
    margin: 0;
    margin-right: auto;
}

.NB-filter-popover .segmented-control.NB-menu-manage-clustering-enabled {
    margin-left: 0;
}

.NB-filter-popover .NB-clustering-preview-section {
    margin-top: 8px;
}

.NB-filter-popover .NB-clustering-preview-section.NB-disabled {
    opacity: 0.35;
    pointer-events: none;
}

.NB-filter-popover .segmented-control.NB-menu-manage-clustering-preview {
    margin-left: 0;
}

.NB-filter-popover .NB-clustering-read-section {
    margin-top: 8px;
}

.NB-filter-popover .NB-clustering-read-label {
    font-size: 11px;
    color: #808080;
    margin-bottom: 4px;
}

.NB-filter-popover .segmented-control.NB-menu-manage-clustering-read {
    margin-left: 0;
}

.NB-filter-popover .NB-clustering-read-section.NB-disabled {
    opacity: 0.35;
    pointer-events: none;
}

/* Staff Only badge */
.NB-staff-only-badge {
    display: inline-block;
    background: #d64000;
    color: white;
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 2px 6px;
    border-radius: 3px;
    line-height: 1.2;
    vertical-align: middle;
}

.NB-story-cluster-sources .NB-staff-only-badge {
    margin-right: 6px;
    margin-bottom: 2px;
}

/* =========== */
/* = Popover = */
/* =========== */

.NB-popover {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 10;

    background-color: #FFF;
}

.NB-popover.NB-popover-scroll .popover-content {
    overflow-y: scroll;
}

.NB-popover-section-title {
    color: #585A55;
    margin: 12px 0 10px;
    font-size: 15px;
    font-weight: bold;
}

.NB-popover-section-title:first-child {
    margin-top: 0;
}

.NB-popover-section {
    padding: 22px 18px 22px;
    border-bottom: 1px solid #E8EAE4;
    overflow: visible;
}

.NB-popover-section:last-child {
    border-bottom: none;
    /* padding-bottom: 8px; */
}

/* Global settings wrapper */
.NB-popover-section-global {
    background: rgba(0, 0, 0, 0.04);
    margin: 12px 10px 10px;
    border-radius: 8px;
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.NB-popover-section-global .NB-popover-section {
    border-bottom-color: rgba(0, 0, 0, 0.06);
    padding: 16px 14px;
}

.NB-popover-section-global .NB-popover-section:last-child {
    border-bottom: none;
}

.NB-popover-section-global-label {
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #999;
    padding: 8px 14px 0;
}

.NB-section-icon {
    float: right;
    width: 18px;
    height: 18px;
    margin-top: 14px;
    cursor: pointer;
    background-size: 18px;
}

.popover {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1010;
    width: 236px;
    padding: 1px;
    text-align: left;
    background-color: #ffffff;
    background-clip: padding-box;
    border-radius: 4px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    white-space: normal;
}

.popover.top {
    margin-top: -10px;
}

.popover.right {
    margin-left: 10px;
}

.popover.bottom,
.popover.bottom-right,
.popover.bottom-left {
    margin-top: 10px;
}

.popover.left {
    margin-left: -10px;
}

.popover-title {
    margin: 0;
    padding: 8px 14px;
    font-size: 14px;
    font-weight: normal;
    line-height: 18px;
    background-color: #f7f7f7;
    border-bottom: 1px solid #ebebeb;
    border-radius: 5px 5px 0 0;
}

.popover-content {
    padding: 9px;
}

.popover .arrow,
.popover .arrow:after {
    position: absolute;
    display: block;
    width: 0;
    height: 0;
    border-color: transparent;
    border-style: solid;
}

.popover .arrow {
    border-width: 11px;
}

.popover .arrow:after {
    border-width: 10px;
    content: "";
}

.popover.top-left .arrow,
.popover.top-right .arrow,
.popover.top .arrow {
    left: 50%;
    margin-left: -11px;
    border-bottom-width: 0;
    border-top-color: #999;
    border-top-color: rgba(0, 0, 0, 0.25);
    bottom: -11px;
}

.popover.top-left .arrow {
    left: 14px;
}

.popover.top-right .arrow {
    left: 90%;
}

.popover.top-left .arrow:after,
.popover.top-right .arrow:after,
.popover.top .arrow:after {
    bottom: 1px;
    margin-left: -10px;
    border-bottom-width: 0;
    border-top-color: #ffffff;
}

.popover.right .arrow {
    top: 50%;
    left: -11px;
    margin-top: -11px;
    border-left-width: 0;
    border-right-color: #999;
    border-right-color: rgba(0, 0, 0, 0.25);
}

.popover.right .arrow:after {
    left: 1px;
    bottom: -10px;
    border-left-width: 0;
    border-right-color: #ffffff;
}

.popover.bottom .arrow,
.popover.bottom-left .arrow,
.popover.bottom-right .arrow {
    left: 50%;
    margin-left: -11px;
    border-top-width: 0;
    border-bottom-color: #999;
    border-bottom-color: rgba(0, 0, 0, 0.25);
    top: -11px;
}

.popover.bottom .arrow:after,
.popover.bottom-left .arrow:after,
.popover.bottom-right .arrow:after {
    top: 1px;
    margin-left: -10px;
    border-top-width: 0;
    border-bottom-color: #ffffff;
}

.popover.bottom-left .arrow {
    left: 14px;
}

.popover.bottom-right .arrow {
    left: 90%;
}

.popover.left .arrow {
    top: 50%;
    right: -11px;
    margin-top: -11px;
    border-right-width: 0;
    border-left-color: #999;
    border-left-color: rgba(0, 0, 0, 0.25);
}

.popover.left .arrow:after {
    right: 1px;
    border-right-width: 0;
    border-left-color: #ffffff;
    bottom: -10px;
}

.fade {
    opacity: 0;
    -webkit-transition: opacity 0.22s ease-in-out;
    -moz-transition: opacity 0.22s ease-in-out;
    -o-transition: opacity 0.22s ease-in-out;
    transition: opacity 0.22s ease-in-out;
}

.fade.in {
    opacity: 1;
}

.NB-overlay {
    background: rgba(16, 16, 48, 0);
    background: -webkit-linear-gradient(rgba(16, 16, 28, 0.3), rgba(16, 16, 28, 0.3) 60%, rgba(16, 16, 28, 0.01));
    background: -moz-linear-gradient(rgba(16, 16, 28, 0.3), rgba(16, 16, 28, 0.3) 60%, rgba(16, 16, 28, 0.01));
    background: -ms-linear-gradient(rgba(16, 16, 28, 0.3), rgba(16, 16, 28, 0.3) 60%, rgba(16, 16, 28, 0.01));
    background: -o-linear-gradient(rgba(16, 16, 28, 0.3), rgba(16, 16, 28, 0.3) 60%, rgba(16, 16, 28, 0.01));
    background: linear-gradient(rgba(16, 16, 28, 0.3), rgba(16, 16, 28, 0.3) 60%, rgba(16, 16, 28, 0.01));
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 100;
    opacity: 0.0;
    -webkit-transition: opacity 400ms ease, -webkit-transform 0s ease;
    -moz-transition: opacity 400ms ease, -moz-transform 0s ease;
    -o-transition: opacity 400ms ease, -o-transform 0s ease;
    transition: opacity 400ms ease, transform 0s ease;
}

.NB-overlay.NB-top {
    background: -webkit-linear-gradient(rgba(16, 16, 28, 0.01), rgba(16, 16, 28, 0.3) 40%, rgba(16, 16, 28, 0.3));
    background: -moz-linear-gradient(rgba(16, 16, 28, 0.01), rgba(16, 16, 28, 0.3) 40%, rgba(16, 16, 28, 0.3));
    background: -ms-linear-gradient(rgba(16, 16, 28, 0.01), rgba(16, 16, 28, 0.3) 40%, rgba(16, 16, 28, 0.3));
    background: -o-linear-gradient(rgba(16, 16, 28, 0.01), rgba(16, 16, 28, 0.3) 40%, rgba(16, 16, 28, 0.3));
    background: linear-gradient(rgba(16, 16, 28, 0.01), rgba(16, 16, 28, 0.3) 40%, rgba(16, 16, 28, 0.3));
}

/* ================= */
/* = Search Module = */
/* ================= */

.NB-module-search .NB-module-search-sites {
    float: left;
}

.NB-module-search .NB-module-search-people {
    float: right;
}

.NB-module-search .NB-module-search-container {
    padding: 0 12px;
}

.NB-module-search .NB-module-search-input {
    overflow: hidden;
    padding: 0 0 12px 12px;
    position: relative;
    width: 50%;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}

.NB-module-search .NB-module-search-input:first-child {
    padding-left: 0;
}

.NB-module-search .NB-module-search-input.NB-active .NB-search-close {
    display: block;
    top: 10px;
    right: 16px;
}

.NB-module-search .NB-module-search-input.NB-active .NB-search-close {}

.NB-module-search-input input {
    width: 85%;
    float: left;
    font-size: 13px;
    padding: 6px 20px 6px 6px;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    border: none;
}

.NB-module-search .NB-module-search-results {
    padding: 12px;
    clear: both;
}

.NB-module-search .NB-friends-search-badges-empty {
    clear: both;
    font-size: 14px;
    font-weight: 100;
}

.NB-module-search .NB-friends-search-badges-empty .NB-raquo {
    float: left;
    padding: 2px 6px;
}

.NB-module-search-input input.NB-active {
    background: transparent url('/media/embed/reader/ring_spinner.svg') no-repeat right 4px top 4px;
    background-size: 16px;
}

.NB-module-search-input label img {
    width: 16px;
    height: 16px;
    float: left;
    margin: 7px 6px 0 0;
}

.NB-modal-friends .NB-module-search-input label img {
    margin: 3px 0 0 0;
}

.NB-feed-badge {
    padding: 12px;
    font-size: 13px;
    background-color: white;
    clear: both;
    overflow: hidden;
    border-bottom: 1px solid #F0F0F0;
}

.NB-feed-badge:last-child {
    border-bottom: none;
}

.NB-feed-badge .NB-feed-badge-title {}

.NB-feed-badge .NB-feed-badge-title img {
    float: left;
    margin: 0 4px 0 0;
    width: 16px;
    height: 16px;
}

.NB-feed-badge .NB-feed-badge-title .NB-feed-emoji,
.NB-feed-badge .NB-feed-badge-title .NB-feed-icon-colored {
    float: left;
    margin: 0 4px 0 0;
    width: 16px;
    height: 16px;
}

.NB-feed-badge .NB-feed-badge-tagline {
    padding: 6px 0;
    font-size: 11px;
    color: #878787;
    line-height: 17px;
}

.NB-feed-badge .NB-feed-badge-stats {
    float: left;
    font-size: 11px;
}

.NB-feed-badge .NB-feed-badge-stats b {
    padding-right: 4px;
}

.NB-feed-badge .NB-feed-badge-stats .NB-icon {
    vertical-align: middle;
    display: inline;
}

.NB-feed-badge .NB-badge-folders {
    float: left;
}

.NB-feed-badge .NB-feed-badge-actions {
    width: 100%;
}

.NB-feed-badge .NB-icon-stats {
    margin: 2px 0 0 0;
    position: absolute;
    left: -26px;
    top: 3px;
    width: 16px;
    height: 16px;
    cursor: pointer;
    background: transparent url('/media/embed/icons/nouns/dialog-statistics.svg') no-repeat 0 0;
    background-size: 16px;
    filter: hue-rotate(284deg) saturate(18);
}

.NB-feed-badge .NB-feed-badge-stats {
    position: relative;
    float: right;
    font-size: 11px;
    color: #808080;
    margin: 0 0 0 0;
}

.NB-feed-badge .NB-modal-submit-button {
    float: left;
    margin-left: 0 !important;
    margin-right: 8px !important;
}

.NB-feed-badge .NB-added {
    padding: 6px 0 0 20px;
    background: transparent url('/media/embed/icons/circular/newuser_icn_setup.png') no-repeat 0 2px;
    background-size: 18px;
    font-size: 12px;
    font-weight: bold;
    color: #123B00;
    overflow: hidden;
}

.NB-subscribed {
    padding: 6px 0 0 20px;
    background: transparent url('/media/embed/icons/circular/newuser_icn_setup.png') no-repeat 0 2px;
    background-size: 18px;
    font-size: 12px;
    font-weight: bold;
    color: #123B00;
    overflow: hidden;
}

.NB-static-alert {
    margin: 24px 0 0 0;
    text-align: center;
    font-size: 16px;
    line-height: 24px;
    color: #294A28;
}

.NB-static-feedchooser .NB-feedchooser-premium-bullets li {
    background-color: rgba(255, 255, 255, .4);
    list-style: none;
}

/* Disable social features */
.NB-disable-social .NB-feeds-header-river-blurblogs-container,
.NB-disable-social .NB-feeds-header-river-global-container,
.NB-disable-social .NB-socialfeeds-folder,
.NB-disable-social .NB-feed-story-comments-container,
.NB-disable-social .NB-feed-story-shares-container,
.NB-disable-social .NB-feed-story-share,
.NB-disable-social .NB-story-share,
.NB-disable-social .NB-story-share-button,
.NB-disable-social .NB-story-comments,
.NB-disable-social .NB-story-comments-label,
.NB-disable-social .NB-story-comments-public-teaser,
.NB-disable-social .NB-story-comments-shares-teaser-wrapper,
.NB-disable-social .NB-storytitles-shares {
    display: none !important;
}

/* Social features and briefing preference cards */
.NB-preference-disablesocial .NB-preference-options,
.NB-preference-briefing-enabled .NB-preference-options {
    display: flex;
    gap: 12px;
    width: 100%;
    align-items: stretch;
}

.NB-social-card {
    flex: 1;
    position: relative;
    display: flex;
}

.NB-social-card input[type="radio"] {
    position: absolute;
    top: 18px;
    left: 18px;
    margin: 0;
    cursor: pointer;
}

.NB-social-card-content {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 16px 18px 16px 40px;
    border: 1px solid #d0d0d0;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.15s ease;
    background: #f8f8f8;
}

/* Override inherited label padding from .NB-modal-preferences .NB-preference .NB-preference-options label */
.NB-modal-preferences .NB-preference .NB-preference-options label.NB-social-card-content {
    padding: 16px 18px 16px 40px;
}

.NB-social-card input[type="radio"]:checked+.NB-social-card-content {
    border-color: #5c89b2;
    background: #f0f7fc;
}

.NB-social-card-content:hover {
    border-color: #b0c4d8;
    background: #f0f0f0;
}

.NB-social-card input[type="radio"]:checked+.NB-social-card-content:hover {
    background: #e8f2f8;
}

.NB-social-card-icon {
    display: none;
}

.NB-social-card-title {
    display: block;
    font-weight: 500;
    font-size: 13px;
    color: #303030;
    margin-bottom: 6px;
}

.NB-social-card-desc {
    display: block;
    font-size: 12px;
    color: #606060;
    line-height: 1.4;
}

.NB-social-features-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.NB-social-features-list li {
    font-size: 12px;
    color: #505050;
    padding: 3px 0;
    display: flex;
    align-items: flex-start;
    gap: 6px;
}

.NB-feature-check {
    color: #5a9e5a;
    font-weight: bold;
    font-size: 11px;
    margin-top: 1px;
}

/* Dark mode support */
.NB-dark .NB-social-card-content {
    border-color: #444;
    background: #2a2a2a;
}

.NB-dark .NB-social-card input[type="radio"]:checked+.NB-social-card-content {
    border-color: #5c89b2;
    background: #2d3a47;
}

.NB-dark .NB-social-card-content:hover {
    border-color: #555;
    background: #333;
}

.NB-dark .NB-social-card-title {
    color: #e0e0e0;
}

.NB-dark .NB-social-card-desc {
    color: #999;
}

.NB-dark .NB-social-features-list li {
    color: #bbb;
}

.NB-dark .NB-feature-check {
    color: #7ac47a;
}

/* Clustering preference upgrade notice */
.NB-clustering-pref-upgrade-notice {
    font-size: 12px;
    color: #707070;
    margin-top: 8px;
    padding: 8px 12px;
    background: #fafafa;
    border-radius: 4px;
    border: 1px solid #e8e8e8;
}

.NB-clustering-pref-upgrade-notice .NB-premium-link {
    color: #5c89c9;
    font-weight: 600;
    text-decoration: none;
}

.NB-clustering-pref-upgrade-notice .NB-premium-link:hover {
    text-decoration: underline;
}

.NB-dark .NB-clustering-pref-upgrade-notice {
    color: #909090;
    background: #2a2a2a;
    border-color: #444;
}

.NB-clustering-mark-read-option {
    margin-top: 10px;
    padding-top: 8px;
    border-top: 1px solid #e0e0e0;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #555;
}

.NB-clustering-mark-read-option label {
    cursor: pointer;
}

.NB-dark .NB-clustering-mark-read-option {
    border-top-color: #444;
    color: #999;
}

.NB-trending-feed-badges {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding-top: 16px;
}

.NB-trending-feed-badge {
    background: #fff;
    border: 1px solid #e8e8e6;
    border-radius: 10px;
    overflow: hidden;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.NB-trending-feed-badge:hover {
    border-color: #d0d0ce;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.NB-trending-feed-badge .NB-feed-badge {
    padding: 16px 20px 12px;
    border-bottom: none;
    background: linear-gradient(180deg, #FCFCFC 0%, #F8F8F6 100%);
    border-bottom: 1px solid #f0f0ee;
}

.NB-trending-feed-badge .NB-feed-badge-inner {
    display: flex;
    flex-direction: column;
}

.NB-trending-feed-badge .NB-feed-badge-header {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 8px;
}

.NB-trending-feed-badge .NB-feed-badge-icon {
    width: 40px !important;
    height: 40px !important;
    min-width: 40px;
    max-width: 40px;
    min-height: 40px;
    max-height: 40px;
    border-radius: 8px;
    flex-shrink: 0;
    background: #F0F0F0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.NB-trending-feed-badge .NB-feed-badge-icon img,
.NB-trending-feed-badge .NB-feed-badge-icon .NB-feed-emoji,
.NB-trending-feed-badge .NB-feed-badge-icon .NB-feed-icon-colored {
    width: 40px !important;
    height: 40px !important;
    max-width: 40px !important;
    max-height: 40px !important;
    border-radius: 8px;
    object-fit: cover;
    float: none !important;
    margin: 0 !important;
}

.NB-trending-feed-badge .NB-feed-badge-info {
    flex: 1;
    min-width: 0;
}

.NB-trending-feed-badge .NB-feed-badge-title {
    font-size: 15px;
    font-weight: 600;
    color: #333;
    margin-bottom: 2px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.NB-trending-feed-badge .NB-feed-badge-meta {
    font-size: 12px;
    color: #888;
}

.NB-trending-feed-badge .NB-feed-badge-tagline {
    font-size: 13px;
    color: #666;
    line-height: 1.4;
    margin-bottom: 8px;
}

.NB-trending-feed-badge .NB-feed-badge-tagline:empty {
    display: none;
}

.NB-trending-feed-badge .NB-feed-badge-subscribed-actions {
    justify-content: flex-start;
}

.NB-trending-feed-badge .NB-feed-badge-subscribed-actions .NB-badge-action-open {
    margin-left: 8px;
}

/* Subscribed two-row layout in add site list view */
.NB-feed-badge-subscribed-actions.NB-feed-badge-actions-add-site {
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
}

.NB-subscribed-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #e8f5e2;
    color: #3a7a1f;
    font-size: 13px;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 20px;
    line-height: 1;
    white-space: nowrap;
}

.NB-subscribed-badge .NB-subscribed-badge-check {
    font-size: 14px;
    font-weight: 700;
}

.NB-trending-feed-badge .NB-story-titles {
    margin: 0;
    border: none;
}

.NB-trending-feed-badge .NB-story-title {
    border-left: none;
    border-right: none;
}

.NB-trending-feed-badge .NB-story-title:first-child {
    border-top: none;
}

.NB-trending-feed-badge .NB-story-title:last-child {
    border-bottom: none;
}

.NB-trending-feed-badge .NB-badge-folders {
    display: inline-flex;
    align-items: center;
    height: 32px;
}

.NB-trending-feed-badge .NB-badge-folders .NB-folders {
    vertical-align: middle;
}

/* Density adjustments for trending view */
.NB-density-compact .NB-trending-feed-badge .NB-feed-badge {
    padding: 12px 16px 10px;
}

.NB-density-comfortable .NB-trending-feed-badge .NB-feed-badge {
    padding: 20px 24px 16px;
}

/* FeedBadge in Add Site list view */
.NB-feed-badge .NB-feed-badge-actions-add-site {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 6px;
    clear: both;
}

.NB-feed-badge .NB-feed-badge-actions-add-site .NB-add-site-folder-select {
    flex: 0 1 auto;
    width: auto;
    max-width: 200px;
}

.NB-feed-badge .NB-feed-badge-actions-add-site .NB-modal-submit-button {
    float: none;
    flex: 0 0 auto;
    margin: 0;
}

.NB-feed-badge .NB-badge-folder-add-group {
    display: flex;
    align-items: center;
    gap: 0;
    margin-left: auto;
    min-width: 0;
    flex: 0 1 auto;
    background: #F0F0F0;
    border-radius: 6px;
    padding: 3px;
    overflow: hidden;
}

.NB-feed-badge .NB-badge-folder-add-group .NB-add-site-folder-select {
    border: none;
    background: transparent;
    border-radius: 4px 0 0 4px;
    padding: 4px 6px;
    font-size: 11px;
    min-width: 0;
    max-width: 220px;
    flex: 1 1 60px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.NB-feed-badge .NB-badge-folder-add-group .NB-modal-submit-button {
    flex-shrink: 0;
    border-radius: 4px;
    padding: 4px 10px;
    font-size: 11px;
}

/* Trending Feed Grid (for Add Site view) */
.NB-trending-feed-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 16px;
    padding: 4px;
}

.NB-trending-feed-card {
    background: linear-gradient(180deg, #ffffff 0%, #fafafa 100%);
    border: 1px solid #e0e0de;
    border-left: 4px solid #a0c47a;
    border-radius: 12px;
    overflow: hidden;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
    display: flex;
    flex-direction: column;
    min-height: 200px;
}

.NB-trending-feed-card:hover {
    border-color: #c0c0be;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.NB-trending-feed-card .NB-feed-badge {
    padding: 18px 18px 14px;
    border: none;
    background: transparent;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.NB-trending-feed-card .NB-feed-badge-inner {
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* Grid-style header matching NB-add-site-card-header */
.NB-trending-feed-card .NB-feed-badge-header {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 12px;
}

.NB-trending-feed-card .NB-feed-badge-icon {
    width: 40px !important;
    height: 40px !important;
    min-width: 40px;
    max-width: 40px;
    min-height: 40px;
    max-height: 40px;
    border-radius: 8px;
    flex-shrink: 0;
    background: #F0F0F0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.NB-trending-feed-card .NB-feed-badge-icon img,
.NB-trending-feed-card .NB-feed-badge-icon .NB-feed-emoji,
.NB-trending-feed-card .NB-feed-badge-icon .NB-feed-icon-colored {
    width: 40px !important;
    height: 40px !important;
    max-width: 40px !important;
    max-height: 40px !important;
    border-radius: 8px;
    object-fit: cover;
    float: none;
    margin: 0;
}

.NB-trending-feed-card .NB-feed-badge-info {
    flex: 1;
    min-width: 0;
}

.NB-trending-feed-card .NB-feed-badge-title {
    font-size: 15px;
    font-weight: 600;
    color: #333;
    margin-bottom: 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.NB-trending-feed-card .NB-feed-badge-meta {
    font-size: 12px;
    color: #888;
}

.NB-trending-feed-card .NB-feed-badge-tagline {
    font-size: 13px;
    color: #666;
    line-height: 1.4;
    flex: 1;
}

.NB-trending-feed-card .NB-feed-badge-tagline:empty {
    display: none;
}

.NB-trending-feed-card .NB-feed-badge-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid #eaeae8;
}

.NB-trending-feed-card .NB-feed-badge-actions .NB-add-site-folder-select {
    flex: 1;
    min-width: 0;
    max-width: none;
}

.NB-trending-feed-card .NB-feed-badge-actions .NB-modal-submit-button {
    float: none;
    flex-shrink: 0;
    margin: 0 !important;
}

/* Subscribed actions row with indicator and stats button */
.NB-feed-badge-subscribed-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid #eaeae8;
}

.NB-subscribed-indicator {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 500;
    color: #2E7D32;
}

.NB-subscribed-indicator::before {
    content: "\2713";
    font-weight: bold;
    font-size: 14px;
}

.NB-badge-action-stats {
    display: flex;
    align-items: center;
    gap: 4px;
}

.NB-badge-stats-icon {
    width: 16px;
    height: 16px;
    opacity: 0.6;
}

.NB-badge-action-open {
    margin-left: auto;
    padding: 6px 16px;
    font-size: 12px;
}

/* Legacy subscribed style (fallback) */
.NB-trending-feed-card .NB-subscribed {
    margin-top: auto;
    padding: 10px 0 0;
    font-size: 13px;
    font-weight: 500;
    color: #4a4;
    display: flex;
    align-items: center;
    gap: 6px;
}

.NB-trending-feed-card .NB-subscribed::before {
    content: "\2713";
    font-weight: bold;
}

/* List view FeedBadge styling to match grid view */
.NB-add-site-trending-content .NB-feed-badge,
.NB-add-site-source-results .NB-feed-badge,
.NB-discover-feed-badges .NB-feed-badge {
    padding: 18px;
}

.NB-add-site-trending-content .NB-feed-badge .NB-feed-badge-inner,
.NB-add-site-source-results .NB-feed-badge .NB-feed-badge-inner,
.NB-discover-feed-badges .NB-feed-badge .NB-feed-badge-inner {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.NB-add-site-trending-content .NB-feed-badge .NB-feed-badge-header,
.NB-add-site-source-results .NB-feed-badge .NB-feed-badge-header,
.NB-discover-feed-badges .NB-feed-badge .NB-feed-badge-header {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 8px;
}

.NB-add-site-trending-content .NB-feed-badge .NB-feed-badge-info,
.NB-add-site-source-results .NB-feed-badge .NB-feed-badge-info,
.NB-discover-feed-badges .NB-feed-badge .NB-feed-badge-info {
    flex: 1 1 auto;
    min-width: 200px;
}

/* Actions inside header for list view - right justified, two rows */
.NB-add-site-trending-content .NB-feed-badge .NB-feed-badge-header .NB-feed-badge-actions-add-site,
.NB-add-site-source-results .NB-feed-badge .NB-feed-badge-header .NB-feed-badge-actions-add-site {
    margin-left: auto;
    flex: 0 1 auto;
    min-width: 0;
    max-width: 50%;
    padding-top: 0;
    border-top: none;
    margin-top: 0;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
}

.NB-add-site-trending-content .NB-feed-badge .NB-feed-badge-header .NB-feed-badge-subscribed-actions,
.NB-add-site-source-results .NB-feed-badge .NB-feed-badge-header .NB-feed-badge-subscribed-actions,
.NB-discover-feed-badges .NB-feed-badge .NB-feed-badge-header .NB-feed-badge-subscribed-actions {
    margin-left: auto;
    flex-shrink: 0;
    padding-top: 0;
    border-top: none;
    margin-top: 0;
}

/* Try + Stats row inside add-site list view actions */
.NB-feed-badge .NB-badge-actions-row {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* In list view column layout, folder-add-group right-aligned */
.NB-add-site-trending-content .NB-feed-badge .NB-feed-badge-actions-add-site .NB-badge-folder-add-group,
.NB-add-site-source-results .NB-feed-badge .NB-feed-badge-actions-add-site .NB-badge-folder-add-group {
    margin-left: 0;
    max-width: 260px;
}

.NB-add-site-trending-content .NB-feed-badge .NB-feed-badge-icon,
.NB-add-site-source-results .NB-feed-badge .NB-feed-badge-icon,
.NB-discover-feed-badges .NB-feed-badge .NB-feed-badge-icon {
    width: 40px !important;
    height: 40px !important;
    min-width: 40px;
    max-width: 40px;
    min-height: 40px;
    max-height: 40px;
    border-radius: 8px;
    flex-shrink: 0;
    background: #F0F0F0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.NB-add-site-trending-content .NB-feed-badge .NB-feed-badge-icon img,
.NB-add-site-trending-content .NB-feed-badge .NB-feed-badge-icon .NB-feed-emoji,
.NB-add-site-trending-content .NB-feed-badge .NB-feed-badge-icon .NB-feed-icon-colored,
.NB-add-site-source-results .NB-feed-badge .NB-feed-badge-icon img,
.NB-add-site-source-results .NB-feed-badge .NB-feed-badge-icon .NB-feed-emoji,
.NB-add-site-source-results .NB-feed-badge .NB-feed-badge-icon .NB-feed-icon-colored,
.NB-discover-feed-badges .NB-feed-badge .NB-feed-badge-icon img,
.NB-discover-feed-badges .NB-feed-badge .NB-feed-badge-icon .NB-feed-emoji,
.NB-discover-feed-badges .NB-feed-badge .NB-feed-badge-icon .NB-feed-icon-colored {
    width: 40px !important;
    height: 40px !important;
    max-width: 40px !important;
    max-height: 40px !important;
    border-radius: 8px;
    object-fit: cover;
    float: none !important;
    margin: 0 !important;
}

.NB-add-site-trending-content .NB-feed-badge .NB-feed-badge-title,
.NB-add-site-source-results .NB-feed-badge .NB-feed-badge-title,
.NB-discover-feed-badges .NB-feed-badge .NB-feed-badge-title {
    font-size: 14px;
    font-weight: 600;
    color: #303030;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.NB-add-site-trending-content .NB-feed-badge .NB-feed-badge-meta,
.NB-add-site-source-results .NB-feed-badge .NB-feed-badge-meta,
.NB-discover-feed-badges .NB-feed-badge .NB-feed-badge-meta {
    font-size: 12px;
    color: #808080;
}

.NB-add-site-trending-content .NB-feed-badge .NB-feed-badge-tagline,
.NB-add-site-source-results .NB-feed-badge .NB-feed-badge-tagline,
.NB-discover-feed-badges .NB-feed-badge .NB-feed-badge-tagline {
    font-size: 13px;
    color: #606060;
    line-height: 1.4;
    margin-bottom: 12px;
}

/* List view subscribed actions - right align Stats and Open */
.NB-add-site-trending-content .NB-feed-badge .NB-feed-badge-subscribed-actions .NB-badge-action-open,
.NB-add-site-source-results .NB-feed-badge .NB-feed-badge-subscribed-actions .NB-badge-action-open {
    margin-left: 8px;
}

/* Add Site Trending Section */
.NB-add-site-trending-section .NB-trending-feed-badges {
    padding-top: 0;
}

.NB-add-site-trending-content {
    min-height: 100px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

/* ====================
   Add Site View Styles
   ==================== */

.NB-add-site-view {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 100;
    background: #F6F6F6;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.NB-add-site-container {
    display: flex;
    flex-direction: column;
    height: 100%;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
    box-sizing: border-box;
}

.NB-pref-story-position-stretch .NB-add-site-container {
    max-width: none;
}

.NB-pref-story-position-left .NB-add-site-container {
    margin: 0;
}

.NB-pref-story-position-right .NB-add-site-container {
    margin: 0 0 0 auto;
}

/* Add Site Header */
.NB-add-site-header {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid #E0E0E0;
    flex-shrink: 0;
}

/* Tabs Row - tabs and view toggles on same line */
.NB-add-site-tabs-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

/* Tab Search Bar - inline search in tabs */
.NB-add-site-tab-search-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0;
    margin-bottom: 16px;
}

.NB-add-site-tab-search-bar > .NB-add-site-tab-search-btn {
    flex-shrink: 0;
}

.NB-add-site-tab-with-search {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.NB-add-site-tab-results {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 0 16px 48px 0;
}

/* Global Search */
.NB-add-site-search-container {
    display: flex;
    align-items: center;
    gap: 16px;
}

.NB-add-site-search-wrapper {
    flex: 1;
    display: flex;
    align-items: center;
    background: #FFF;
    border: 2px solid #D0D4D8;
    border-radius: 12px;
    padding: 0 16px;
    transition: all 0.15s ease;
}

.NB-add-site-search-wrapper:focus-within {
    border-color: #5C89C9;
    box-shadow: 0 0 0 3px rgba(92, 137, 201, 0.15);
}

.NB-add-site-search-icon {
    width: 20px;
    height: 20px;
    opacity: 0.5;
    flex-shrink: 0;
}

.NB-add-site-search-input {
    flex: 1;
    border: none;
    outline: none;
    padding: 14px 12px;
    font-size: 15px;
    background: transparent;
    color: #333;
}

.NB-add-site-search-input::placeholder {
    color: #999;
}

.NB-add-site-search-clear {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #999;
    font-size: 18px;
    border-radius: 50%;
    transition: all 0.15s ease;
}

.NB-add-site-search-clear:hover {
    background: #F0F0F0;
    color: #666;
}

.NB-add-site-search-clear.NB-hidden {
    display: none;
}

/* Search Spinner */
.NB-add-site-search-spinner {
    width: 18px;
    height: 18px;
    border: 2px solid #E0E0E0;
    border-top-color: #5C89C9;
    border-radius: 50%;
    animation: nb-search-spin 0.8s linear infinite;
    flex-shrink: 0;
    margin-right: 4px;
}

.NB-add-site-search-spinner.NB-hidden {
    display: none;
}

@keyframes nb-search-spin {
    to {
        transform: rotate(360deg);
    }
}

/* View Toggle */
.NB-add-site-view-toggles {
    display: flex;
    gap: 4px;
    background: #E8E8E8;
    padding: 4px;
    border-radius: 8px;
}

.NB-add-site-view-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 0 12px;
    height: 36px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.15s ease;
    user-select: none;
}

.NB-add-site-view-toggle img {
    width: 18px;
    height: 18px;
    opacity: 0.5;
}

.NB-add-site-view-toggle-label {
    font-size: 12px;
    font-weight: 500;
    color: rgba(0, 0, 0, 0.5);
    transition: color 0.15s ease;
}

.NB-add-site-view-toggle:hover {
    background: #D8D8D8;
}

.NB-add-site-view-toggle:hover img {
    opacity: 0.7;
}

.NB-add-site-view-toggle:hover .NB-add-site-view-toggle-label {
    color: rgba(0, 0, 0, 0.7);
}

.NB-add-site-view-toggle.NB-active {
    background: #FFF;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.NB-add-site-view-toggle.NB-active img {
    opacity: 0.9;
}

.NB-add-site-view-toggle.NB-active .NB-add-site-view-toggle-label {
    color: rgba(0, 0, 0, 0.8);
}

/* Controls Container */
.NB-add-site-controls {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

/* Style Button */
.NB-add-site-style-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 0 12px;
    height: 32px;
    background: #E8E8E8;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.15s ease;
    user-select: none;
}

.NB-add-site-style-button img {
    width: 16px;
    height: 16px;
    opacity: 0.5;
}

.NB-add-site-style-label {
    font-size: 12px;
    font-weight: 500;
    color: rgba(0, 0, 0, 0.5);
    transition: color 0.15s ease;
}

.NB-add-site-style-button:hover {
    background: #D8D8D8;
}

.NB-add-site-style-button:hover img {
    opacity: 0.7;
}

.NB-add-site-style-button:hover .NB-add-site-style-label {
    color: rgba(0, 0, 0, 0.7);
}

.NB-add-site-style-button.NB-active {
    background: #5C89C9;
}

.NB-add-site-style-button.NB-active img {
    opacity: 1;
    filter: brightness(0) invert(1);
}

.NB-add-site-style-button.NB-active .NB-add-site-style-label {
    color: #FFF;
}

/* Add Site Style Popover */
.NB-add-site-style-popover-container {
    z-index: 100;
}

.NB-add-site-style-popover-container.popover.bottom-right .arrow {
    left: auto;
    right: 24px;
}

.NB-add-site-style-popover .NB-style-popover-content {
    padding: 12px 16px;
}

.NB-add-site-style-popover .NB-style-row {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 8px 0;
}

.NB-add-site-style-popover > .NB-style-popover-content > .NB-style-row {
    padding-bottom: 4px;
}

.NB-add-site-style-popover .NB-style-label {
    font-size: 12px;
    font-weight: 500;
    color: #666;
    width: 90px;
    flex-shrink: 0;
}

.NB-add-site-style-popover .segmented-control {
    display: flex;
    gap: 0;
    background: #E8E8E8;
    border-radius: 6px;
    padding: 3px;
    list-style: none;
    margin: 0;
    flex: 1;
    min-width: 0;
}

.NB-add-site-style-popover .segmented-control li {
    flex: 1;
    padding: 6px 6px;
    text-align: center;
    font-size: 11px;
    font-weight: 500;
    color: rgba(0, 0, 0, 0.6);
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.15s ease;
    white-space: nowrap;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}

.NB-add-site-style-popover .segmented-control li:hover {
    color: rgba(0, 0, 0, 0.8);
    background: rgba(255, 255, 255, 0.5);
}

.NB-add-site-style-popover .segmented-control li.NB-active {
    background: #FFF;
    color: rgba(0, 0, 0, 0.9);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.NB-add-site-style-popover .NB-menu-manage-view-setting-contentpreview .NB-icon {
    width: 24px;
    height: 16px;
    display: inline-block;
    vertical-align: middle;
    background-repeat: no-repeat;
    background-position: center center;
}

.NB-add-site-style-popover .NB-view-setting-contentpreview-small .NB-icon {
    background-image: url("/media/embed/icons/nouns/content-preview-s.svg");
    background-size: 16px;
}

.NB-add-site-style-popover .NB-view-setting-contentpreview-medium .NB-icon {
    background-image: url("/media/embed/icons/nouns/content-preview-m.svg");
    background-size: 16px;
}

.NB-add-site-style-popover .NB-view-setting-contentpreview-large .NB-icon {
    background-image: url("/media/embed/icons/nouns/content-preview-l.svg");
    background-size: 16px;
}

.NB-add-site-style-popover .segmented-control.NB-menu-manage-view-setting-contentpreview li.NB-view-setting-contentpreview-title {
    flex: 1.5;
}

/* Style Popover Section Groups */
.NB-add-site-style-popover .NB-style-section {
    background: rgba(0, 0, 0, 0.03);
    border-radius: 8px;
    padding: 8px 12px;
    margin-top: 12px;
}

.NB-add-site-style-popover .NB-style-section .NB-style-row {
    border-bottom: none;
    padding: 6px 0;
}

.NB-add-site-style-popover .NB-style-section .NB-style-row:last-child {
    padding-bottom: 0;
}

.NB-add-site-style-popover .NB-style-section .NB-style-row:first-of-type {
    padding-top: 0;
}

.NB-add-site-style-popover .NB-style-section-header {
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #888;
    margin-bottom: 6px;
}

.NB-dark .NB-add-site-style-popover .NB-style-section {
    background: rgba(255, 255, 255, 0.05);
}

.NB-dark .NB-add-site-style-popover .NB-style-section-header {
    color: #777;
}

/* Tabs */
.NB-add-site-tabs-container {
    display: flex;
    align-items: center;
    flex: 1;
    min-width: 0;
    gap: 4px;
}

.NB-add-site-tabs {
    display: flex;
    gap: 4px;
    min-width: 0;
    overflow: hidden;
}

.NB-add-site-tab.NB-overflow-hidden {
    display: none;
}

.NB-add-site-tabs-overflow {
    position: relative;
    flex-shrink: 0;
}

.NB-add-site-tabs-overflow-button {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 8px 12px;
    height: 36px;
    box-sizing: border-box;
    background: #F0F0F0;
    border: 1px solid #D0D0D0;
    border-radius: 8px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    color: #666;
    transition: all 0.15s ease;
    white-space: nowrap;
}

.NB-add-site-tabs-overflow-button:hover {
    background: #E8E8E8;
    border-color: #BBB;
    color: #333;
}

.NB-add-site-tabs-overflow-arrow {
    font-size: 10px;
    margin-left: 2px;
}

.NB-add-site-tabs-overflow-menu {
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 4px;
    background: #FFF;
    border: 1px solid #D0D0D0;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    min-width: 160px;
    padding: 4px 0;
}

.NB-add-site-tabs-overflow-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    cursor: pointer;
    font-size: 13px;
    color: #333;
    transition: background 0.1s ease;
}

.NB-add-site-tabs-overflow-item:hover {
    background: #F0F0F0;
}

.NB-add-site-tabs-overflow-item-icon {
    width: 16px;
    height: 16px;
    opacity: 0.8;
}

.NB-add-site-tab {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    height: 36px;
    box-sizing: border-box;
    background: transparent;
    border: 1px solid #D0D0D0;
    border-radius: 8px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    color: #666;
    transition: all 0.15s ease;
    white-space: nowrap;
    flex-shrink: 0;
    user-select: none;
}

.NB-add-site-tab:hover {
    background: #FFF;
    border-color: #BBB;
    color: #333;
}

.NB-add-site-tab.NB-active {
    background: linear-gradient(135deg, #5C89C9 0%, #4A73B0 100%);
    border-color: #5C89C9;
    color: #FFF;
}

.NB-add-site-tab-icon {
    width: 16px;
    height: 16px;
    opacity: 0.7;
    flex-shrink: 0;
}

.NB-add-site-tab.NB-active .NB-add-site-tab-icon {
    opacity: 1;
}

.NB-add-site-tab.NB-active .NB-add-site-tab-icon.NB-mono {
    filter: brightness(0) invert(1);
}

.NB-add-site-tab-label {
    font-weight: 500;
}

/* Tab Content */
.NB-add-site-tab-content {
    flex: 1;
    overflow: hidden;
    position: relative;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.NB-add-site-tab-pane {
    display: none;
    height: 100%;
    overflow: hidden;
    padding: 20px 0;
    box-sizing: border-box;
}

.NB-add-site-tab-pane.NB-active {
    display: block;
}

/* Results Grid/List */
.NB-add-site-results {
    display: grid;
    gap: 16px;
    padding-bottom: 24px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.NB-add-site-results-grid {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}

.NB-add-site-results-list {
    grid-template-columns: 1fr;
}

/* List view: use CSS Grid to place actions next to header */
.NB-add-site-results-list .NB-add-site-card {
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-rows: auto auto;
}

.NB-add-site-results-list .NB-add-site-card-header {
    grid-column: 1;
    grid-row: 1;
    align-items: flex-start;
}

.NB-add-site-results-list .NB-add-site-card-actions {
    grid-column: 2;
    grid-row: 1;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
    margin-top: 0;
    padding-top: 0;
    border-top: none;
    align-self: start;
    margin-left: 12px;
}

.NB-add-site-results-list .NB-add-site-card-desc {
    grid-column: 1 / -1;
    grid-row: 2;
}

.NB-add-site-results-list .NB-add-site-card-stories {
    grid-column: 1 / -1;
}

.NB-add-site-results-list .NB-add-site-card-actions-row {
    display: flex;
    align-items: center;
    gap: 6px;
}

.NB-add-site-results-list .NB-add-site-card-actions .NB-add-site-card-add-group {
    margin-left: 0;
    max-width: 260px;
}

.NB-add-site-results-list .NB-add-site-card-actions-subscribed {
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
}

/* Grid Column Overrides - auto uses the base auto-fill rule above */
.NB-add-site-results.NB-add-site-results-grid.NB-add-site-columns-1 {
    grid-template-columns: 1fr;
}

.NB-add-site-results.NB-add-site-results-grid.NB-add-site-columns-2 {
    grid-template-columns: repeat(2, 1fr);
}

.NB-add-site-results.NB-add-site-results-grid.NB-add-site-columns-3 {
    grid-template-columns: repeat(3, 1fr);
}

.NB-add-site-results.NB-add-site-results-grid.NB-add-site-columns-4 {
    grid-template-columns: repeat(4, 1fr);
}

/* Feed Card */
.NB-add-site-card {
    background: #FFF;
    border: 1px solid #E0E0E0;
    border-radius: 12px;
    padding: 16px;
    transition: all 0.15s ease;
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
}

.NB-add-site-card:hover {
    border-color: #C0C0C0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.NB-add-site-card-header {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 12px;
}

.NB-add-site-card-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
    background: #F0F0F0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.NB-add-site-card-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

.NB-add-site-newsletter-card .NB-add-site-card-icon img {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.NB-add-site-card-info {
    flex: 1;
    min-width: 0;
}

.NB-add-site-card-title {
    font-size: 15px;
    font-weight: 600;
    color: #333;
    margin-bottom: 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.NB-add-site-card-meta {
    font-size: 12px;
    color: #888;
}

/* Freshness indicator */
.NB-add-site-card-freshness {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    margin-top: 4px;
}

.NB-freshness-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    flex-shrink: 0;
}

.NB-freshness-active .NB-freshness-dot {
    background: #4CAF50;
}
.NB-freshness-active .NB-freshness-label {
    color: #4CAF50;
}

.NB-freshness-stale .NB-freshness-dot {
    background: #F9A825;
}
.NB-freshness-stale .NB-freshness-label {
    color: #B8860B;
}

.NB-freshness-none .NB-freshness-dot {
    background: #90A4AE;
}
.NB-freshness-none .NB-freshness-label {
    color: #90A4AE;
}

.NB-add-site-card-desc {
    font-size: 13px;
    color: #666;
    line-height: 1.4;
    flex: 1;
    margin-bottom: 12px;
}

.NB-add-site-card-url {
    font-size: 12px;
    color: #888;
    word-break: break-all;
    margin-bottom: 12px;
    padding: 8px 12px;
    background: #F5F5F5;
    border-radius: 6px;
    font-family: monospace;
}

/* Story Previews in Card */
.NB-add-site-card-stories {
    background: #F8F8F8;
    border-radius: 8px;
    padding: 10px 12px;
    margin-bottom: 12px;
}

.NB-add-site-card-story {
    padding: 6px 0;
    border-bottom: 1px solid #E8E8E8;
}

.NB-add-site-card-story:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.NB-add-site-card-story:first-child {
    padding-top: 0;
}

.NB-add-site-card-story-title {
    font-size: 12px;
    color: #555;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.NB-add-site-card-story-image {
    width: 100%;
    height: auto;
    border-radius: 4px;
    margin-bottom: 6px;
    object-fit: cover;
}

.NB-add-site-card-story-image.NB-image-small {
    width: 48px;
    height: 48px;
    float: left;
    margin-right: 8px;
    margin-bottom: 0;
}

.NB-add-site-card-story-image.NB-image-large {
    max-height: 120px;
}

/* Story Content Preview */
.NB-add-site-card-story-preview {
    font-size: 11px;
    color: #888;
    line-height: 1.4;
    margin-top: 4px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
}

.NB-add-site-card-story-preview.NB-preview-lines-1 {
    -webkit-line-clamp: 1;
}

.NB-add-site-card-story-preview.NB-preview-lines-2 {
    -webkit-line-clamp: 2;
}

.NB-add-site-card-story-preview.NB-preview-lines-3 {
    -webkit-line-clamp: 3;
}

/* Card Actions */
.NB-add-site-card-actions-row {
    display: contents;
}

.NB-add-site-card-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid #F0F0F0;
}

.NB-add-site-folder-select {
    flex: 1;
    min-width: 0;
    padding: 8px 12px;
    border: 1px solid #D0D0D0;
    border-radius: 6px;
    font-size: 13px;
    color: #333;
    background: #FFF;
    cursor: pointer;
}

/* Grid card action buttons - uses NB-modal-submit-button base styling */
.NB-add-site-card-actions .NB-modal-submit-button {
    flex-shrink: 0;
    white-space: nowrap;
}

/* Group folder selector + Add button together */
.NB-add-site-card-add-group {
    display: flex;
    align-items: center;
    gap: 0;
    margin-left: auto;
    min-width: 0;
    flex: 0 1 auto;
    background: #F0F0F0;
    border-radius: 6px;
    padding: 3px;
    overflow: hidden;
}

.NB-add-site-card-add-group .NB-add-site-folder-select {
    border: none;
    background: transparent;
    border-radius: 4px 0 0 4px;
    padding: 4px 6px;
    font-size: 11px;
    min-width: 0;
    max-width: 220px;
    flex: 1 1 60px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.NB-add-site-card-add-group .NB-modal-submit-button {
    flex-shrink: 0;
    border-radius: 4px;
    padding: 4px 10px;
    font-size: 11px;
}

/* Subscribed Card Actions */
.NB-add-site-card-actions-subscribed {
    gap: 8px;
}

.NB-add-site-subscribed-indicator {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 500;
    color: #2E7D32;
    flex: 1;
}

.NB-add-site-subscribed-indicator::before {
    content: "\2713";
    font-weight: bold;
    font-size: 14px;
}

.NB-add-site-stats-btn {
    display: flex;
    align-items: center;
    gap: 4px;
}

.NB-add-site-stats-icon {
    width: 14px;
    height: 14px;
    opacity: 0.6;
}

.NB-add-site-stats-btn:hover .NB-add-site-stats-icon {
    opacity: 1;
}

/* Subscribed card subtle highlight */
.NB-add-site-card-subscribed {
    border-color: #C8E6C9;
}

/* Empty State */
.NB-add-site-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    text-align: center;
}

.NB-add-site-empty-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #5C89C9 0%, #4A73B0 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}

.NB-add-site-empty-icon img {
    width: 40px;
    height: 40px;
    filter: brightness(0) invert(1);
}

.NB-add-site-empty-title {
    font-size: 24px;
    font-weight: 600;
    color: #333;
    margin-bottom: 12px;
}

.NB-add-site-empty-desc {
    font-size: 15px;
    color: #666;
    max-width: 400px;
    line-height: 1.5;
    margin-bottom: 32px;
}

.NB-add-site-empty-tips {
    display: flex;
    flex-direction: column;
    gap: 12px;
    text-align: left;
}

.NB-add-site-tip {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    color: #555;
}

.NB-add-site-tip-icon {
    font-size: 20px;
}

/* Loading */
.NB-add-site-loading {
    display: flex;
    justify-content: center;
    padding: 40px;
}

/* Skeleton Loading Cards */
@keyframes nb-skeleton-pulse {
    0% { background-color: #E1EBFF; }
    38% { background-color: #C8D8F0; }
    100% { background-color: #E1EBFF; }
}

.NB-add-site-skeleton-card {
    background: #FFF;
    border: 1px solid #E0E0E0;
    border-radius: 12px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
}

.NB-add-site-skeleton-header {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 12px;
}

.NB-add-site-skeleton-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    flex-shrink: 0;
    animation: nb-skeleton-pulse 1.7s ease infinite;
}

.NB-add-site-skeleton-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.NB-add-site-skeleton-title {
    height: 14px;
    width: 70%;
    border-radius: 4px;
    animation: nb-skeleton-pulse 1.7s ease infinite;
    animation-delay: 0.1s;
}

.NB-add-site-skeleton-meta {
    height: 10px;
    width: 45%;
    border-radius: 4px;
    animation: nb-skeleton-pulse 1.7s ease infinite;
    animation-delay: 0.2s;
}

.NB-add-site-skeleton-desc {
    height: 10px;
    border-radius: 4px;
    margin-top: 4px;
    animation: nb-skeleton-pulse 1.7s ease infinite;
    animation-delay: 0.3s;
}

.NB-add-site-skeleton-desc:nth-child(2) {
    width: 85%;
}

.NB-add-site-skeleton-desc:nth-child(3) {
    width: 60%;
}

.NB-add-site-skeleton-actions {
    display: flex;
    gap: 8px;
    margin-top: auto;
    padding-top: 12px;
}

.NB-add-site-skeleton-btn {
    height: 28px;
    width: 56px;
    border-radius: 6px;
    animation: nb-skeleton-pulse 1.7s ease infinite;
    animation-delay: 0.4s;
}

.NB-add-site-skeleton-btn:nth-child(2) {
    animation-delay: 0.45s;
}

.NB-add-site-skeleton-btn:nth-child(3) {
    animation-delay: 0.5s;
}

.NB-add-site-skeleton-btn.NB-skeleton-wide {
    width: 72px;
}

/* Stagger animation across cards */
.NB-add-site-skeleton-card:nth-child(2) .NB-add-site-skeleton-icon,
.NB-add-site-skeleton-card:nth-child(2) .NB-add-site-skeleton-title,
.NB-add-site-skeleton-card:nth-child(2) .NB-add-site-skeleton-meta,
.NB-add-site-skeleton-card:nth-child(2) .NB-add-site-skeleton-desc,
.NB-add-site-skeleton-card:nth-child(2) .NB-add-site-skeleton-btn {
    animation-delay: 0.15s;
}

.NB-add-site-skeleton-card:nth-child(3) .NB-add-site-skeleton-icon,
.NB-add-site-skeleton-card:nth-child(3) .NB-add-site-skeleton-title,
.NB-add-site-skeleton-card:nth-child(3) .NB-add-site-skeleton-meta,
.NB-add-site-skeleton-card:nth-child(3) .NB-add-site-skeleton-desc,
.NB-add-site-skeleton-card:nth-child(3) .NB-add-site-skeleton-btn {
    animation-delay: 0.3s;
}

.NB-add-site-skeleton-card:nth-child(4) .NB-add-site-skeleton-icon,
.NB-add-site-skeleton-card:nth-child(4) .NB-add-site-skeleton-title,
.NB-add-site-skeleton-card:nth-child(4) .NB-add-site-skeleton-meta,
.NB-add-site-skeleton-card:nth-child(4) .NB-add-site-skeleton-desc,
.NB-add-site-skeleton-card:nth-child(4) .NB-add-site-skeleton-btn {
    animation-delay: 0.45s;
}

.NB-add-site-skeleton-card:nth-child(5) .NB-add-site-skeleton-icon,
.NB-add-site-skeleton-card:nth-child(5) .NB-add-site-skeleton-title,
.NB-add-site-skeleton-card:nth-child(5) .NB-add-site-skeleton-meta,
.NB-add-site-skeleton-card:nth-child(5) .NB-add-site-skeleton-desc,
.NB-add-site-skeleton-card:nth-child(5) .NB-add-site-skeleton-btn {
    animation-delay: 0.6s;
}

.NB-add-site-skeleton-card:nth-child(6) .NB-add-site-skeleton-icon,
.NB-add-site-skeleton-card:nth-child(6) .NB-add-site-skeleton-title,
.NB-add-site-skeleton-card:nth-child(6) .NB-add-site-skeleton-meta,
.NB-add-site-skeleton-card:nth-child(6) .NB-add-site-skeleton-desc,
.NB-add-site-skeleton-card:nth-child(6) .NB-add-site-skeleton-btn {
    animation-delay: 0.75s;
}

/* No Results */
.NB-add-site-no-results {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 60px 20px;
    text-align: center;
}

.NB-add-site-no-results-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.NB-add-site-no-results-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.NB-add-site-no-results-desc {
    font-size: 14px;
    color: #666;
}

/* Source Tab Header */
.NB-add-site-source-tab {
    max-width: 1200px;
    margin: 0 auto;
}

.NB-add-site-source-filter {
    flex-shrink: 0;
}

.NB-add-site-source-filter select {
    padding: 8px 16px;
    border: 1px solid #D0D0D0;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    background: #FFF;
}

.NB-add-site-source-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
    padding: 20px;
    background: #FFF;
    border-radius: 12px;
    border: 1px solid #E0E0E0;
}

.NB-add-site-source-icon {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.NB-add-site-source-icon.NB-popular {
    background: linear-gradient(135deg, #F97316 0%, #EA580C 100%);
}

.NB-add-site-source-icon.NB-youtube {
    background: linear-gradient(135deg, #FF0000 0%, #CC0000 100%);
}

.NB-add-site-source-icon.NB-reddit {
    background: linear-gradient(135deg, #FF4500 0%, #CC3700 100%);
}

.NB-add-site-source-icon.NB-newsletters {
    background: linear-gradient(135deg, #FF6B35 0%, #E55A2B 100%);
}

.NB-add-site-source-icon.NB-podcasts {
    background: linear-gradient(135deg, #8B5CF6 0%, #7C3AED 100%);
}

.NB-add-site-source-icon.NB-google-news {
    background: linear-gradient(135deg, #4285F4 0%, #3367D6 100%);
}

.NB-add-site-source-icon.NB-trending {
    background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
}

.NB-add-site-source-icon.NB-categories {
    background: linear-gradient(135deg, #10B981 0%, #059669 100%);
}

.NB-add-site-source-icon.NB-webfeed {
    background: linear-gradient(135deg, #6366F1 0%, #4F46E5 100%);
}

.NB-add-site-source-icon img {
    width: 28px;
    height: 28px;
    filter: brightness(0) invert(1);
}

.NB-add-site-source-info {
    flex: 1;
}

.NB-add-site-source-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 4px;
}

.NB-add-site-source-desc {
    font-size: 14px;
    color: #666;
}

.NB-add-site-source-search {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
}

.NB-add-site-tab-search-input {
    flex: 1;
    padding: 14px 16px;
    border: 2px solid #D0D4D8;
    border-radius: 12px;
    font-size: 15px;
    outline: none;
    transition: all 0.15s ease;
    background: #FFF;
    color: #333;
}

.NB-add-site-search-wrapper .NB-add-site-tab-search-input {
    border: none;
    border-radius: 0;
    background: transparent;
    padding: 14px 12px;
    box-shadow: none;
}

.NB-add-site-tab-search-input::placeholder {
    color: #999;
}

.NB-add-site-tab-search-input:focus {
    border-color: #5C89C9;
    box-shadow: 0 0 0 3px rgba(92, 137, 201, 0.15);
}

.NB-add-site-search-wrapper .NB-add-site-tab-search-input:focus {
    border: none;
    box-shadow: none;
}

.NB-add-site-tab-search-btn {
    padding: 14px 24px;
    background: linear-gradient(135deg, #5C89C9 0%, #4A73B0 100%);
    color: #FFF;
    border: none;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s ease;
}

.NB-add-site-tab-search-btn:hover {
    background: linear-gradient(135deg, #4A73B0 0%, #3D619A 100%);
}

/* Trending Tab */
.NB-add-site-trending-days {
    padding: 8px 16px;
    border: 1px solid #D0D0D0;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    background: #FFF;
}
.NB-add-site-trending-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 0 0 12px;
}
.NB-add-site-trending-pill {
    padding: 5px 10px;
    background: #FFF;
    border: 1px solid #D0D0D0;
    border-radius: 20px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 500;
    color: #666;
    white-space: nowrap;
    transition: all 0.15s ease;
}
.NB-add-site-trending-pill:hover {
    border-color: #5C89C9;
    background: #F0F5FF;
    color: #5C89C9;
}
.NB-add-site-trending-pill.NB-active {
    background: #5C89C9;
    color: #FFF;
    border-color: #5C89C9;
}
.NB-add-site-trending-pill.NB-active:hover {
    background: #4A78B5;
}
.NB-add-site-trending-description {
    font-size: 12px;
    color: #999;
    padding: 0 0 12px;
    margin-top: -6px;
}

/* Categories Tab */

.NB-add-site-categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
}

.NB-add-site-category-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    background: #FFF;
    border: 1px solid #E0E0E0;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.15s ease;
}

.NB-add-site-category-card:hover {
    border-color: #5C89C9;
    box-shadow: 0 4px 12px rgba(92, 137, 201, 0.15);
    transform: translateY(-2px);
}

.NB-add-site-category-icon {
    font-size: 32px;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #F0F4F8;
    border-radius: 10px;
}

.NB-add-site-category-info {
    flex: 1;
}

.NB-add-site-category-name {
    font-size: 15px;
    font-weight: 600;
    color: #333;
    margin-bottom: 4px;
}

.NB-add-site-category-count {
    font-size: 12px;
    color: #888;
}

/* Category Feeds View */
.NB-add-site-category-feeds-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}

.NB-add-site-category-back {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: #F0F0F0;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    color: #666;
    transition: all 0.15s ease;
}

.NB-add-site-category-back:hover {
    background: #E0E0E0;
    color: #333;
}

.NB-add-site-category-back img {
    width: 16px;
    height: 16px;
    opacity: 0.6;
}

.NB-add-site-category-feeds-title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 20px;
    font-weight: 600;
    color: #333;
}

.NB-add-site-category-feeds-icon {
    font-size: 24px;
}

/* Coming Soon */
.NB-add-site-coming-soon {
    text-align: center;
    padding: 60px 20px;
    color: #888;
    font-size: 15px;
}

/* Error */
.NB-add-site-error {
    text-align: center;
    padding: 40px 20px;
    color: #C0392B;
    font-size: 14px;
}

/* Sidebar Header Styling - Add + Discover Sites */
.NB-feeds-header-add-site-container {
    display: block;
}

/* Google News Tab */

.NB-add-site-google-news-unified {
    max-width: 100%;
}

.NB-add-site-google-news-controls {
    background: #F6F7F9;
    border: 1px solid #E2E5E9;
    border-radius: 12px;
    padding: 14px 16px;
    margin-bottom: 16px;
}
.NB-add-site-google-news-input-row {
    display: flex;
    align-items: flex-end;
    gap: 10px;
}
.NB-add-site-google-news-field {
    display: flex;
    flex-direction: column;
    gap: 5px;
}
.NB-add-site-google-news-field-search {
    flex: 1;
    min-width: 0;
}
.NB-add-site-google-news-label {
    font-size: 11px;
    font-weight: 600;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    padding-left: 2px;
}

.NB-add-site-google-news-search-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 12px;
    border: 2px solid #D0D4D8;
    border-radius: 8px;
    background: #FFF;
    box-sizing: border-box;
}

.NB-add-site-google-news-search-wrapper:focus-within {
    border-color: #5C89C9;
    box-shadow: 0 0 0 3px rgba(92, 137, 201, 0.15);
}

.NB-add-site-google-news-search-icon {
    width: 18px;
    height: 18px;
    opacity: 0.4;
    flex-shrink: 0;
}

.NB-add-site-google-news-search-wrapper .NB-add-site-tab-search-input {
    flex: 1;
    padding: 10px 4px;
    font-size: 14px;
    border: none;
    background: transparent;
    outline: none;
    box-sizing: border-box;
}

.NB-add-site-google-news-search-wrapper .NB-add-site-tab-search-input:focus {
    box-shadow: none;
    outline: none;
}

.NB-add-site-google-news-input-row .NB-add-site-folder-select {
    padding: 10px 12px;
    font-size: 14px;
    border: 2px solid #D0D4D8;
    border-radius: 8px;
    background: #FFF;
    cursor: pointer;
    min-width: 130px;
    max-width: 200px;
}

.NB-add-site-google-news-input-row .NB-add-site-folder-select:focus {
    border-color: #5C89C9;
    outline: none;
}

.NB-add-site-google-news-language {
    padding: 10px 12px;
    border: 2px solid #D0D4D8;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
    min-width: 110px;
    background: #FFF;
}

.NB-add-site-google-news-language:focus {
    border-color: #5C89C9;
    outline: none;
}

.NB-add-site-google-news-subscribe-btn {
    padding: 10px 24px;
    background: linear-gradient(to bottom, #6EA753 0%, #57A138 100%);
    color: #FFF;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s ease;
    white-space: nowrap;
    align-self: flex-end;
}

.NB-add-site-google-news-subscribe-btn:hover {
    background: linear-gradient(to bottom, #7DB762 0%, #6AAE4A 100%);
}

.NB-add-site-google-news-subscribe-btn.NB-loading {
    opacity: 0.7;
    pointer-events: none;
}

.NB-add-site-google-news-subscribe-btn.NB-loading::before {
    content: '';
    display: inline-block;
    width: 12px;
    height: 12px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: #FFF;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-right: 8px;
    vertical-align: middle;
}

.NB-add-site-google-news-subscribe-btn.NB-subscribed {
    background: linear-gradient(to bottom, #5C89C9 0%, #4A78B5 100%);
}

.NB-add-site-google-news-subscribe-btn.NB-subscribed:hover {
    background: linear-gradient(to bottom, #6B96D3 0%, #5985C2 100%);
}

.NB-add-site-google-news-subscribe-btn.NB-error {
    background: linear-gradient(to bottom, #D9534F 0%, #C9302C 100%);
}

/* Google News folder creation */
.NB-add-site-google-news-folder-row {
    display: flex;
    align-items: center;
    gap: 4px;
}
.NB-add-site-google-news-folder-row .NB-add-site-folder-select {
    min-width: 130px;
    max-width: 200px;
}
.NB-add-site-google-news-folder-add-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    border: 2px solid #D0D4D8;
    background: #FFF;
    color: #888;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    flex-shrink: 0;
    transition: all 0.15s ease;
    line-height: 1;
    box-sizing: border-box;
}
.NB-add-site-google-news-folder-add-icon:hover {
    border-color: #999;
    color: #555;
    background: #F5F5F5;
}
.NB-add-site-google-news-folder-add-icon.NB-active {
    border-color: #5C89C9;
    color: #5C89C9;
    background: #EEF3FA;
}
.NB-add-site-google-news-folder-input {
    margin-top: 10px;
}
.NB-add-site-google-news-folder-input-row {
    display: flex;
    align-items: stretch;
    gap: 0;
    border: 2px solid #D0D4D8;
    border-radius: 8px;
    overflow: hidden;
}
.NB-add-site-google-news-folder-input-row:focus-within {
    border-color: #5C89C9;
    box-shadow: 0 0 0 3px rgba(92, 137, 201, 0.15);
}
.NB-add-site-google-news-folder-name {
    flex: 1;
    min-width: 0;
    border: none;
    outline: none;
    padding: 10px 14px;
    font-size: 14px;
    background: #FFF;
}
.NB-add-site-google-news-folder-name::placeholder {
    color: #A0A0A0;
}
.NB-add-site-google-news-folder-submit {
    flex-shrink: 0;
    padding: 0 20px;
    background: #6EA66E;
    color: #FFF;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    border: none;
    white-space: nowrap;
}
.NB-add-site-google-news-folder-submit:hover {
    background: #5C8F5C;
}
.NB-add-site-google-news-folder-submit.NB-disabled {
    opacity: 0.6;
    cursor: default;
}
.NB-add-site-google-news-folder-input-row .NB-loading {
    width: 0;
    height: 16px;
    flex-shrink: 0;
    align-self: center;
    overflow: hidden;
    transition: width 0.2s, margin 0.2s;
}
.NB-add-site-google-news-folder-input-row .NB-loading.NB-active {
    width: 16px;
    margin-right: 8px;
}

/* Web Feed Tab */
.NB-add-site-webfeed-content {
    padding: 0 4px;
    flex: 1;
    overflow-y: auto;
}
.NB-add-site-webfeed-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 16px 32px;
    gap: 24px;
    min-height: 300px;
}
.NB-add-site-webfeed-explainer {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    max-width: 860px;
    width: 100%;
}
.NB-add-site-webfeed-explainer-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 28px 20px 24px;
    background: #FFFFFF;
    border: 1px solid #E0E0E0;
    border-radius: 12px;
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}
.NB-add-site-webfeed-explainer-card.NB-animate-in {
    opacity: 1;
    transform: translateY(0);
}
.NB-add-site-webfeed-explainer-illustration {
    width: 96px;
    height: 96px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}
.NB-add-site-webfeed-explainer-img {
    width: 96px;
    height: 96px;
    opacity: 0.55;
}
.NB-add-site-webfeed-explainer-title {
    font-size: 15px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}
.NB-add-site-webfeed-explainer-desc {
    font-size: 13px;
    color: #666;
    line-height: 1.5;
    max-width: 220px;
    margin-bottom: 8px;
}
.NB-add-site-webfeed-explainer-detail {
    font-size: 11px;
    color: #999;
    line-height: 1.4;
    max-width: 220px;
}
.NB-add-site-webfeed-empty-cta {
    font-size: 14px;
    color: #999;
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}
.NB-add-site-webfeed-empty-cta.NB-animate-in {
    opacity: 1;
    transform: translateY(0);
}
.NB-add-site-webfeed-analyzing {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 48px 16px;
    gap: 16px;
}
.NB-add-site-webfeed-analyzing-spinner {
    width: 32px;
    height: 32px;
    border: 3px solid #E0E0E0;
    border-top-color: #4A90D9;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}
.NB-add-site-webfeed-analyzing-text {
    font-size: 14px;
    color: #666;
}
.NB-add-site-webfeed-error {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    margin: 16px 0;
    background: #FFF3F3;
    border: 1px solid #F5C6CB;
    border-radius: 8px;
    color: #721C24;
}
.NB-add-site-webfeed-error-icon {
    font-size: 20px;
}
.NB-add-site-webfeed-error-text {
    font-size: 13px;
    line-height: 1.4;
}
/* Webfeed section headers */
.NB-add-site-webfeed-section-header {
    margin-bottom: 8px;
}
.NB-add-site-webfeed-section-title {
    font-size: 15px;
    font-weight: 600;
    color: #333;
}
.NB-add-site-webfeed-section-subtitle {
    font-size: 12px;
    color: #888;
    margin-top: 2px;
    line-height: 1.4;
}

/* Variants section */
.NB-add-site-webfeed-variants-section {
    margin-bottom: 20px;
}
.NB-add-site-webfeed-variant-cards {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.NB-add-site-webfeed-variant-card {
    padding: 12px 14px;
    border: 2px solid #E0E0E0;
    border-radius: 10px;
    cursor: pointer;
    transition: border-color 0.15s, box-shadow 0.15s, background 0.15s, opacity 0.5s ease, transform 0.5s ease;
    background: #FAFAFA;
    opacity: 0;
    transform: translateY(12px);
}
.NB-add-site-webfeed-variant-card.NB-animate-in {
    opacity: 1;
    transform: translateY(0);
}
.NB-add-site-webfeed-variant-card:hover {
    border-color: #B0C4DE;
    box-shadow: 0 1px 6px rgba(74, 144, 217, 0.1);
}
.NB-add-site-webfeed-variant-card.NB-active {
    border-color: #4A90D9;
    box-shadow: 0 2px 12px rgba(74, 144, 217, 0.15);
    background: #F0F6FC;
}
/* -- Hint card (first card, not selectable) -- */
.NB-add-site-webfeed-hint-card {
    border-style: dashed;
    border-color: #C8B8A8;
    background: #FBF7F3;
    cursor: default;
}
.NB-add-site-webfeed-hint-card:hover {
    border-color: #B0A090;
    box-shadow: none;
}
.NB-add-site-webfeed-hint-header {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 10px;
}
.NB-add-site-webfeed-hint-title {
    font-weight: 600;
    font-size: 13px;
    color: #555;
}
.NB-add-site-webfeed-hint-desc {
    font-size: 12px;
    color: #888;
    margin-top: 2px;
}
.NB-add-site-webfeed-hint-form {
    display: flex;
    gap: 8px;
    align-items: center;
}
.NB-add-site-webfeed-hint-input {
    flex: 1;
    padding: 6px 10px;
    border: 1px solid #D0D0D0;
    border-radius: 6px;
    font-size: 13px;
    font-family: inherit;
    outline: none;
}
.NB-add-site-webfeed-hint-input:focus {
    border-color: #B0A090;
    box-shadow: 0 0 0 2px rgba(200, 184, 168, 0.25);
}
.NB-add-site-webfeed-hint-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: #8B7355;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    transition: background 0.15s;
}
.NB-add-site-webfeed-hint-btn:hover {
    background: #6B5B45;
}
.NB-add-site-webfeed-hint-btn.NB-disabled {
    opacity: 0.7;
    cursor: default;
}
.NB-add-site-webfeed-hint-spinner {
    width: 14px;
    height: 14px;
}
/* Dim variant cards during refinement */
.NB-add-site-webfeed-variant-cards.NB-refining .NB-add-site-webfeed-variant-card:not(.NB-add-site-webfeed-hint-card) {
    opacity: 0.4;
    pointer-events: none;
}
.NB-add-site-webfeed-variant-card-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}
.NB-add-site-webfeed-variant-radio {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 2px solid #CCC;
    flex-shrink: 0;
    transition: border-color 0.15s, background 0.15s;
    position: relative;
}
.NB-add-site-webfeed-variant-card:hover .NB-add-site-webfeed-variant-radio {
    border-color: #AAA;
}
.NB-add-site-webfeed-variant-radio.NB-selected {
    border-color: #4A90D9;
    background: #4A90D9;
}
.NB-add-site-webfeed-variant-radio.NB-selected::after {
    content: '';
    position: absolute;
    top: 5px;
    left: 5px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #FFF;
}
.NB-add-site-webfeed-variant-card-info {
    flex: 1;
    min-width: 0;
}
.NB-add-site-webfeed-variant-label {
    font-size: 13px;
    font-weight: 600;
    color: #333;
    line-height: 1.3;
}
.NB-add-site-webfeed-variant-desc {
    font-size: 11px;
    color: #888;
    margin-top: 2px;
    line-height: 1.3;
}
.NB-add-site-webfeed-variant-count {
    font-size: 11px;
    color: #4A90D9;
    font-weight: 500;
    flex-shrink: 0;
    margin-top: 2px;
}
.NB-add-site-webfeed-preview-stories {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-left: 28px;
}
.NB-add-site-webfeed-preview-story {
    padding: 6px 8px;
    background: #FFF;
    border-radius: 4px;
    border: 1px solid #EEE;
}
.NB-add-site-webfeed-preview-story-title {
    font-size: 12px;
    font-weight: 500;
    color: #333;
    line-height: 1.3;
}
.NB-add-site-webfeed-preview-story-content {
    font-size: 11px;
    color: #888;
    margin-top: 2px;
    line-height: 1.3;
}
.NB-add-site-webfeed-preview-story.NB-has-image {
    display: flex;
    flex-direction: row;
    gap: 8px;
    align-items: flex-start;
}
.NB-add-site-webfeed-preview-story-image {
    width: 40px;
    height: 40px;
    object-fit: cover;
    border-radius: 4px;
    flex-shrink: 0;
    background: #F0F0F0;
}
.NB-add-site-webfeed-preview-story-text {
    flex: 1;
    min-width: 0;
}

/* Subscribe section */
.NB-add-site-webfeed-subscribe-section {
    border-top: 1px solid #E0E0E0;
    padding-top: 16px;
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}
.NB-add-site-webfeed-subscribe-section.NB-animate-in {
    opacity: 1;
    transform: translateY(0);
}
.NB-add-site-webfeed-feed-badge {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    background: #F5F8FC;
    border: 1px solid #D8E4F0;
    border-radius: 8px;
    margin-bottom: 12px;
}
.NB-add-site-webfeed-feed-badge-icon {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}
.NB-add-site-webfeed-feed-badge-favicon {
    width: 36px;
    height: 36px;
    border-radius: 6px;
    object-fit: contain;
}
.NB-add-site-webfeed-feed-badge-favicon.NB-default-icon {
    padding: 4px;
    background: #E8EDF2;
    border-radius: 6px;
}
.NB-add-site-webfeed-feed-badge-info {
    flex: 1;
    min-width: 0;
}
.NB-add-site-webfeed-feed-badge-title {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.NB-add-site-webfeed-feed-badge-url {
    font-size: 11px;
    color: #999;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.NB-add-site-webfeed-feed-badge-pattern {
    font-size: 11px;
    color: #4A90D9;
    margin-top: 2px;
}
.NB-add-site-webfeed-options {
    padding: 14px;
    border: 1px solid #E0E0E0;
    border-radius: 8px;
    background: #FAFAFA;
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 12px;
}
.NB-add-site-webfeed-option {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.NB-add-site-webfeed-option-label {
    font-size: 12px;
    font-weight: 600;
    color: #555;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}
.NB-add-site-webfeed-folder-row {
    display: flex;
    align-items: center;
    gap: 6px;
}
.NB-add-site-webfeed-folder-row .NB-add-site-folder-select {
    flex: 1;
    min-width: 0;
}
.NB-add-site-webfeed-folder-add-icon {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    border: 1px solid #D0D0D0;
    background: #FFF;
    color: #888;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    flex-shrink: 0;
    transition: all 0.15s ease;
    line-height: 1;
}
.NB-add-site-webfeed-folder-add-icon:hover {
    border-color: #999;
    color: #555;
    background: #F5F5F5;
}
.NB-add-site-webfeed-folder-add-icon.NB-active {
    border-color: #5C89C9;
    color: #5C89C9;
    background: #EEF3FA;
}
.NB-add-site-webfeed-folder-input-row {
    display: flex;
    align-items: stretch;
    gap: 0;
    margin-top: 6px;
    border: 1px solid #D0D0D0;
    border-radius: 6px;
    overflow: hidden;
}
.NB-add-site-webfeed-folder-input-row:focus-within {
    border-color: #5C89C9;
    box-shadow: 0 0 0 2px rgba(92, 137, 201, 0.15);
}
.NB-add-site-webfeed-folder-name {
    flex: 1;
    min-width: 0;
    border: none;
    outline: none;
    padding: 8px 12px;
    font-size: 13px;
    background: #FFF;
}
.NB-add-site-webfeed-folder-name::placeholder {
    color: #A0A0A0;
}
.NB-add-site-webfeed-folder-submit {
    flex-shrink: 0;
    padding: 0 16px;
    background: #6EA66E;
    color: #FFF;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    border: none;
}
.NB-add-site-webfeed-folder-submit:hover {
    background: #5C8F5C;
}
.NB-add-site-webfeed-folder-submit.NB-disabled {
    opacity: 0.6;
    cursor: default;
}
.NB-add-site-webfeed-folder-input-row .NB-loading {
    width: 0;
    height: 16px;
    flex-shrink: 0;
    align-self: center;
    overflow: hidden;
    transition: width 0.2s, margin 0.2s;
}
.NB-add-site-webfeed-folder-input-row .NB-loading.NB-active {
    width: 16px;
    margin-right: 8px;
}
.NB-add-site-webfeed-staleness-slider {
    width: 100%;
    max-width: 300px;
}
.NB-add-site-webfeed-radio-group {
    display: flex;
    gap: 0;
    border: 1px solid #DDD;
    border-radius: 6px;
    overflow: hidden;
    max-width: 320px;
}
.NB-add-site-webfeed-radio-option {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 12px;
    cursor: pointer;
    font-size: 12px;
    color: #666;
    background: #FFF;
    transition: background 0.15s, color 0.15s;
    border-right: 1px solid #DDD;
}
.NB-add-site-webfeed-radio-option:last-child {
    border-right: none;
}
.NB-add-site-webfeed-radio-option:hover {
    background: #F5F5F5;
}
.NB-add-site-webfeed-radio-option.NB-selected {
    background: #EBF2FB;
    color: #2A6BB5;
    font-weight: 600;
}
.NB-add-site-webfeed-radio-option input[type="radio"] {
    display: none;
}
.NB-add-site-webfeed-subscribe-btn {
    align-self: flex-start;
    margin-bottom: 32px;
}
.NB-add-site-webfeed-subscribe-btn.NB-disabled {
    opacity: 0.6;
    pointer-events: none;
}
.NB-add-site-webfeed-subscribed {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 24px;
    margin: 16px 0;
    background: #F0FAF0;
    border: 1px solid #C3E6CB;
    border-radius: 8px;
}
.NB-add-site-webfeed-subscribed-icon {
    font-size: 32px;
    color: #28A745;
}
.NB-add-site-webfeed-subscribed-title {
    font-size: 16px;
    font-weight: 600;
    color: #155724;
}
.NB-add-site-webfeed-subscribed-desc {
    font-size: 13px;
    color: #155724;
    margin-top: 4px;
}
.NB-add-site-webfeed-subscribe-progress {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
}
.NB-add-site-webfeed-subscribe-status {
    font-size: 12px;
    color: #6c757d;
}
.NB-add-site-webfeed-subscribe-status.NB-error {
    color: #dc3545;
    margin-top: 8px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Disabled button state with spinner */
.NB-add-site-subscribe-btn.NB-loading,
.NB-add-site-subscribe-btn.NB-disabled,
.NB-add-site-tab-search-btn.NB-loading,
.NB-add-site-tab-search-btn.NB-disabled {
    opacity: 0.6;
    pointer-events: none;
    cursor: not-allowed;
    position: relative;
}

.NB-add-site-subscribe-btn.NB-loading::before,
.NB-add-site-tab-search-btn.NB-loading::before {
    content: '';
    display: inline-block;
    width: 12px;
    height: 12px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: #FFF;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-right: 8px;
    vertical-align: middle;
}

/* Discovery Container */
.NB-add-site-discover-container {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

/* Section Styles */
.NB-add-site-section {
    display: flex;
    flex-direction: column;
}

.NB-add-site-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #E0E0E0;
}

.NB-add-site-section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.NB-add-site-section-title-sep {
    color: #999;
    font-weight: 400;
}

.NB-add-site-section-count {
    font-size: 12px;
    color: #888;
    background: #E8E8E8;
    padding: 2px 8px;
    border-radius: 10px;
    font-weight: 500;
}

.NB-add-site-section-icon {
    width: 20px;
    height: 20px;
    opacity: 0.6;
}

.NB-add-site-section-link {
    font-size: 13px;
    color: #5C89C9;
    cursor: pointer;
    font-weight: 500;
}

.NB-add-site-section-link:hover {
    text-decoration: underline;
}

.NB-add-site-section-content {
    display: flex;
    flex-direction: column;
}

/* Inline section search bar */
.NB-add-site-section-search {
    display: flex;
    align-items: center;
    gap: 6px;
    background: #F0F0F0;
    border: 1px solid #E0E0E0;
    border-radius: 8px;
    padding: 4px 10px;
}

.NB-add-site-section-search-icon {
    width: 14px;
    height: 14px;
    opacity: 0.4;
}

.NB-add-site-section-search-input {
    border: none;
    background: transparent;
    font-size: 13px;
    width: 160px;
    outline: none;
    padding: 2px 0;
    color: #333;
}

.NB-add-site-section-search-input::placeholder {
    color: #999;
}

.NB-add-site-section-search-clear {
    cursor: pointer;
    font-size: 16px;
    color: #999;
    line-height: 1;
}

.NB-add-site-section-search-clear:hover {
    color: #333;
}

.NB-add-site-section-filter-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 4px 0 18px;
    padding: 6px 14px;
    background: #EEF2FF;
    border: 1px solid #C7D2FE;
    border-radius: 20px;
    font-size: 13px;
    color: #4338CA;
    line-height: 1.3;
}

.NB-add-site-section-filter-badge-label {
    opacity: 0.6;
}

.NB-add-site-section-filter-badge-query {
    font-weight: 600;
}

.NB-add-site-section-filter-badge-close {
    cursor: pointer;
    font-size: 16px;
    opacity: 0.5;
    margin-left: 2px;
    display: flex;
    align-items: center;
}

.NB-add-site-section-filter-badge-close:hover {
    opacity: 1;
}

/* Source Pills */
.NB-add-site-source-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.NB-add-site-source-pill {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: #FFF;
    border: 1px solid #E0E0E0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.15s ease;
    font-size: 14px;
    font-weight: 500;
    color: #333;
}

.NB-add-site-source-pill:hover {
    border-color: #5C89C9;
    background: #F0F5FF;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(92, 137, 201, 0.15);
}

.NB-add-site-source-pill-icon {
    width: 20px;
    height: 20px;
}

/* Newsletter Filter Groups */
.NB-add-site-newsletter-filters {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

.NB-add-site-filter-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.NB-add-site-filter-label {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #999;
}

/* Category Pills */
.NB-add-site-category-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.NB-add-site-category-pill {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: #FFF;
    border: 1px solid #E0E0E0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.15s ease;
    font-size: 14px;
    font-weight: 500;
    color: #333;
}

.NB-add-site-category-pill:hover {
    border-color: #5C89C9;
    background: #F0F5FF;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(92, 137, 201, 0.15);
}

.NB-add-site-category-pill-icon {
    width: 20px;
    height: 20px;
    opacity: 0.7;
}

/* Filter Pills */
.NB-add-site-filter-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
    padding: 0 4px;
}

/* Two-level category pills container */
.NB-add-site-category-pills-container {
    margin-bottom: 16px;
    padding: 0 4px;
}

/* Top-level category pills row */
.NB-add-site-category-pills-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 0;
}

/* Category pill with icon and count */
.NB-add-site-cat-pill {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 5px 10px;
    background: #FFF;
    border: 1px solid #E0E0E0;
    border-radius: 16px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 500;
    color: #666;
    transition: all 0.15s ease;
}

.NB-add-site-cat-pill:hover {
    border-color: #5C89C9;
    background: #F0F5FF;
    color: #5C89C9;
}

.NB-add-site-cat-pill-icon {
    width: 13px;
    height: 13px;
    opacity: 0.45;
    flex-shrink: 0;
    filter: brightness(0) saturate(100%);
}

.NB-add-site-cat-pill:hover .NB-add-site-cat-pill-icon {
    opacity: 0.7;
}

.NB-add-site-cat-pill-counts {
    font-size: 10px;
    color: #999;
    font-weight: 400;
    white-space: nowrap;
}

.NB-add-site-cat-pill.NB-active {
    background: #5C89C9;
    color: #FFF;
    border-color: #5C89C9;
}

.NB-add-site-cat-pill.NB-active:hover {
    background: #4A78B5;
}

.NB-add-site-cat-pill.NB-active .NB-add-site-cat-pill-icon {
    opacity: 1;
    filter: brightness(0) invert(1);
}

.NB-add-site-cat-pill.NB-active .NB-add-site-cat-pill-counts {
    color: rgba(255,255,255,0.7);
}

/* Subcategory pills row (hidden by default, shown via JS) */
.NB-add-site-subcat-pills-row {
    display: none;
    flex-wrap: wrap;
    align-items: center;
    gap: 5px;
    margin-top: 10px;
    padding: 8px 10px;
    background: #E0E4ED;
    border-radius: 8px;
}

.NB-add-site-subcat-pills-row.NB-visible {
    display: flex;
}

/* Subcategory header label with icon */
.NB-add-site-subcat-header {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #888;
    margin-right: 4px;
    white-space: nowrap;
}

.NB-add-site-subcat-header-icon {
    width: 12px;
    height: 12px;
    opacity: 0.45;
}

/* Subcategory pills (smaller/secondary) */
.NB-add-site-subcat-pill {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    background: #FFF;
    border: 1px solid #DDD;
    border-radius: 12px;
    cursor: pointer;
    font-size: 11px;
    font-weight: 500;
    color: #555;
    transition: all 0.15s ease;
}

.NB-add-site-subcat-pill:hover {
    border-color: #5C89C9;
    background: #E8EFFE;
    color: #5C89C9;
}

.NB-add-site-subcat-pill.NB-active {
    background: #5C89C9;
    color: #FFF;
    border-color: #5C89C9;
}

.NB-add-site-subcat-pill.NB-active:hover {
    background: #4A78B5;
}

.NB-add-site-subcat-pill-count {
    font-size: 10px;
    color: #999;
    font-weight: 400;
}

.NB-add-site-subcat-pill.NB-active .NB-add-site-subcat-pill-count {
    color: rgba(255,255,255,0.7);
}

/* Dark mode: two-level pills */
.NB-dark .NB-add-site-cat-pill {
    background: #333;
    border-color: #444;
    color: #AAA;
}

.NB-dark .NB-add-site-cat-pill:hover {
    background: #3A4A5C;
    border-color: #5C89C9;
    color: #8AB4F0;
}

.NB-dark .NB-add-site-cat-pill.NB-active {
    background: #5C89C9;
    border-color: #5C89C9;
    color: #FFF;
}

.NB-dark .NB-add-site-cat-pill-icon {
    opacity: 0.5;
    filter: brightness(0) invert(0.7);
}

.NB-dark .NB-add-site-cat-pill:hover .NB-add-site-cat-pill-icon {
    opacity: 0.75;
    filter: brightness(0) invert(0.85);
}

.NB-dark .NB-add-site-cat-pill.NB-active .NB-add-site-cat-pill-icon {
    filter: brightness(0) invert(1);
    opacity: 1;
}

.NB-dark .NB-add-site-cat-pill-counts {
    color: #777;
}

.NB-dark .NB-add-site-cat-pill.NB-active .NB-add-site-cat-pill-counts {
    color: rgba(255,255,255,0.7);
}

.NB-dark .NB-add-site-subcat-pills-row {
    background: #282D38;
}

.NB-dark .NB-add-site-subcat-header {
    color: #777;
}

.NB-dark .NB-add-site-subcat-header-icon {
    opacity: 0.5;
    filter: brightness(0) invert(1);
}

.NB-dark .NB-add-site-subcat-pill {
    background: #3A3C3E;
    border-color: #4A4C4E;
    color: #AAA;
}

.NB-dark .NB-add-site-subcat-pill:hover {
    background: #3A4A5C;
    border-color: #5C89C9;
    color: #8AB4F0;
}

.NB-dark .NB-add-site-subcat-pill.NB-active {
    background: #5C89C9;
    border-color: #5C89C9;
    color: #FFF;
}

.NB-dark .NB-add-site-subcat-pill-count {
    color: #777;
}

.NB-dark .NB-add-site-subcat-pill.NB-active .NB-add-site-subcat-pill-count {
    color: rgba(255,255,255,0.7);
}

.NB-add-site-filter-pill {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: #FFF;
    border: 1px solid #E0E0E0;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.15s ease;
    font-size: 13px;
    font-weight: 500;
    color: #666;
}

.NB-add-site-filter-pill:hover {
    border-color: #5C89C9;
    background: #F0F5FF;
    color: #5C89C9;
}

.NB-add-site-filter-pill.NB-active {
    background: #5C89C9;
    color: #FFF;
    border-color: #5C89C9;
}

.NB-add-site-filter-pill.NB-active:hover {
    background: #4A78B5;
}

.NB-add-site-filter-pill-icon {
    width: 14px;
    height: 14px;
    opacity: 0.6;
    flex-shrink: 0;
}

.NB-add-site-filter-pill:hover .NB-add-site-filter-pill-icon {
    opacity: 0.85;
}

.NB-add-site-filter-pill.NB-active .NB-add-site-filter-pill-icon {
    opacity: 1;
    filter: brightness(0) invert(1);
}

.NB-add-site-filter-pill-favicon {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    border-radius: 2px;
}

.NB-add-site-filter-pill-count {
    font-size: 10px;
    color: #999;
    font-weight: 400;
    white-space: nowrap;
}

.NB-add-site-filter-pill.NB-active .NB-add-site-filter-pill-count {
    color: rgba(255,255,255,0.7);
}

/* Tips Grid */
.NB-add-site-tips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}

.NB-add-site-tip-card {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 16px;
    background: #F8F9FA;
    border-radius: 10px;
    border: 1px solid #E8E8E8;
}

.NB-add-site-tip-card-icon {
    width: 24px;
    height: 24px;
    opacity: 0.5;
    flex-shrink: 0;
    margin-top: 2px;
}

.NB-add-site-tip-card-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.NB-add-site-tip-card-title {
    font-size: 14px;
    font-weight: 600;
    color: #333;
}

.NB-add-site-tip-card-desc {
    font-size: 13px;
    color: #666;
    line-height: 1.4;
}

/* Category Icon Images */
.NB-add-site-category-icon-img {
    width: 32px;
    height: 32px;
    opacity: 0.7;
}

.NB-add-site-category-feeds-icon-img {
    width: 28px;
    height: 28px;
    opacity: 0.7;
}

/* Empty State */
.NB-add-site-empty-state {
    text-align: center;
    padding: 40px 20px;
    color: #888;
    font-size: 14px;
}

/* Newsletters Popular */
.NB-add-site-newsletters-popular {
    display: flex;
    flex-direction: column;
    gap: 32px;
    margin-top: 4px;
}

/* Section Tips - smaller padding */
.NB-add-site-section-tips {
    background: #F8F9FA;
    padding: 20px;
    border-radius: 12px;
    margin-top: 8px;
}

.NB-add-site-section-tips .NB-add-site-section-header {
    border-bottom: none;
    padding-bottom: 8px;
    margin-bottom: 12px;
}

/* Add Site Dark Mode */
.NB-dark .NB-add-site-source-header {
    background: #2A2D30;
    border-color: #404346;
}

.NB-dark .NB-add-site-source-title {
    color: #F0F0F0;
}

.NB-dark .NB-add-site-source-desc {
    color: #A0A4A8;
}

.NB-dark .NB-add-site-search-wrapper {
    background: #2A2A2A;
    border-color: #444;
}

.NB-dark .NB-add-site-search-wrapper:focus-within {
    border-color: #5C89C9;
    box-shadow: 0 0 0 3px rgba(92, 137, 201, 0.2);
}

.NB-dark .NB-add-site-search-input {
    color: #E0E0E0;
}

.NB-dark .NB-add-site-search-input::placeholder {
    color: #777;
}

.NB-dark .NB-add-site-search-icon {
    filter: brightness(0) invert(0.7);
}

.NB-dark .NB-add-site-search-clear {
    color: #777;
}

.NB-dark .NB-add-site-search-clear:hover {
    background: #444;
    color: #CCC;
}

.NB-dark .NB-add-site-tab-search-input {
    background-color: #2A2A2A !important;
    border: 2px solid #555 !important;
    color: #E0E0E0 !important;
}

.NB-dark .NB-add-site-search-wrapper .NB-add-site-tab-search-input {
    border: none !important;
    background-color: transparent !important;
    box-shadow: none !important;
}

.NB-dark .NB-add-site-tab-search-input::placeholder {
    color: #777 !important;
}

.NB-dark .NB-add-site-tab-search-input:focus {
    border-color: #5C89C9 !important;
    box-shadow: 0 0 0 3px rgba(92, 137, 201, 0.2) !important;
}

.NB-dark .NB-add-site-search-wrapper .NB-add-site-tab-search-input:focus {
    border: none !important;
    box-shadow: none !important;
}



.NB-dark .NB-add-site-skeleton-card {
    background: #2A2A2A;
    border-color: #3A3A3A;
}

@keyframes nb-skeleton-pulse-dark {
    0% { background-color: #2E3A4E; }
    38% { background-color: #3D5070; }
    100% { background-color: #2E3A4E; }
}

.NB-dark .NB-add-site-skeleton-icon,
.NB-dark .NB-add-site-skeleton-title,
.NB-dark .NB-add-site-skeleton-meta,
.NB-dark .NB-add-site-skeleton-desc,
.NB-dark .NB-add-site-skeleton-btn {
    animation-name: nb-skeleton-pulse-dark;
}

.NB-dark .NB-add-site-filter-pill {
    background: #333;
    border-color: #444;
    color: #AAA;
}

.NB-dark .NB-add-site-filter-pill:hover {
    background: #3A4A5C;
    border-color: #5C89C9;
    color: #8AB4F0;
}

.NB-dark .NB-add-site-filter-pill.NB-active {
    background: #5C89C9;
    border-color: #5C89C9;
    color: #FFF;
}

.NB-dark .NB-add-site-filter-pill-icon {
    opacity: 0.6;
    filter: brightness(0) invert(1);
}

.NB-dark .NB-add-site-filter-pill:hover .NB-add-site-filter-pill-icon {
    opacity: 0.85;
    filter: brightness(0) invert(1);
}

.NB-dark .NB-add-site-filter-pill.NB-active .NB-add-site-filter-pill-icon {
    filter: brightness(0) invert(1);
    opacity: 1;
}

.NB-dark .NB-add-site-filter-pill-count {
    color: #777;
}

.NB-dark .NB-add-site-filter-pill.NB-active .NB-add-site-filter-pill-count {
    color: rgba(255,255,255,0.7);
}

.NB-dark .NB-add-site-category-card {
    background: #333;
    border-color: #444;
}

.NB-dark .NB-add-site-category-card:hover {
    border-color: #5C89C9;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.NB-dark .NB-add-site-category-name {
    color: #E0E0E0;
}

.NB-dark .NB-add-site-category-count {
    color: #888;
}

.NB-dark .NB-add-site-category-icon-img {
    filter: brightness(0) invert(0.8);
}

.NB-dark .NB-add-site-google-news-controls {
    background: #1E1E1E;
    border-color: #3A3A3A;
}
.NB-dark .NB-add-site-google-news-label {
    color: #777;
}

.NB-dark .NB-add-site-google-news-search-wrapper {
    background: #2A2A2A;
    border-color: #444;
}

.NB-dark .NB-add-site-google-news-search-wrapper:focus-within {
    border-color: #5C89C9;
}

.NB-dark .NB-add-site-google-news-search-wrapper .NB-add-site-tab-search-input {
    color: #E0E0E0;
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
}

.NB-dark .NB-add-site-google-news-search-icon {
    filter: invert(1);
}

.NB-dark .NB-add-site-google-news-input-row .NB-add-site-folder-select {
    background-color: #2A2A2A !important;
    border-color: #444 !important;
    color: #CCC !important;
}
.NB-dark .NB-add-site-google-news-language {
    background-color: #2A2A2A;
    border-color: #444;
    color: #CCC;
}
.NB-dark .NB-add-site-google-news-folder-add-icon {
    border-color: #444;
    background: #2A2A2A;
    color: #999;
}
.NB-dark .NB-add-site-google-news-folder-add-icon:hover {
    border-color: #666;
    color: #CCC;
    background: #333;
}
.NB-dark .NB-add-site-google-news-folder-add-icon.NB-active {
    border-color: #5C89C9;
    color: #6AADEA;
    background: #1A2A3A;
}
.NB-dark .NB-add-site-google-news-folder-input-row {
    border-color: #444;
}
.NB-dark .NB-add-site-google-news-folder-input-row:focus-within {
    border-color: #5C89C9;
}
.NB-dark .NB-add-site-google-news-folder-name {
    background: #2A2A2A;
    color: #DDD;
}
.NB-dark .NB-add-site-google-news-folder-name::placeholder {
    color: #777;
}

.NB-dark .NB-add-site-section-tips {
    background: #2A2A2A;
}

.NB-dark .NB-add-site-tip-card {
    background: #333;
    border-color: #444;
}


.NB-dark .NB-add-site-card {
    background: #2A2A2A;
    border-color: #3A3A3A;
}

.NB-dark .NB-add-site-card:hover {
    border-color: #555;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.NB-dark .NB-add-site-card-icon {
    background: #3A3A3A;
}

.NB-dark .NB-add-site-card-title {
    color: #E0E0E0;
}

.NB-dark .NB-add-site-card-meta {
    color: #888;
}

.NB-dark .NB-add-site-card-desc {
    color: #AAA;
}

.NB-dark .NB-add-site-card-url {
    background: #333;
    color: #999;
}

.NB-dark .NB-add-site-card-stories {
    background: #333;
}

.NB-dark .NB-add-site-card-story {
    border-color: #444;
}

.NB-dark .NB-add-site-card-story-title {
    color: #CCC;
}

.NB-dark .NB-add-site-card-story-preview {
    color: #999;
}

.NB-dark .NB-add-site-card-actions {
    border-color: #3A3A3A;
}

.NB-dark .NB-add-site-card-add-group {
    background: #333;
}

.NB-dark .NB-add-site-folder-select {
    background-color: #2A2A2A !important;
    border-color: #444 !important;
    color: #CCC !important;
}

.NB-dark .NB-add-site-card-subscribed {
    border-color: #2E5930;
}

.NB-dark .NB-add-site-subscribed-indicator {
    color: #66BB6A;
}

.NB-dark .NB-add-site-section-header {
    border-color: #444;
}

.NB-dark .NB-add-site-section-title {
    color: #E0E0E0;
}

.NB-dark .NB-add-site-section-title-sep {
    color: #666;
}

.NB-dark .NB-add-site-section-count {
    background: #444;
    color: #AAA;
}

.NB-dark .NB-add-site-section-search {
    background: #292B2E;
    border-color: #404346;
}

.NB-dark .NB-add-site-section-search-icon {
    filter: invert(1);
    opacity: 0.5;
}

.NB-dark .NB-add-site-section-search input.NB-add-site-section-search-input {
    color: #E0E0E0;
    background: transparent;
    background-color: transparent;
    border: none;
}

.NB-dark .NB-add-site-section-search-input::placeholder {
    color: #777;
}

.NB-dark .NB-add-site-section-search-clear:hover {
    color: #E0E0E0;
}

.NB-dark .NB-add-site-section-filter-badge {
    background: #1E1B4B;
    border-color: #3730A3;
    color: #A5B4FC;
}

.NB-dark .NB-add-site-section-icon {
    filter: brightness(0) invert(0.8);
}

.NB-dark .NB-add-site-source-filter select {
    background-color: #2A2A2A !important;
    border-color: #444 !important;
    color: #CCC !important;
}

.NB-dark .NB-add-site-empty-title {
    color: #E0E0E0;
}

.NB-dark .NB-add-site-empty-desc {
    color: #999;
}

.NB-dark .NB-add-site-tip {
    color: #AAA;
}

.NB-dark .NB-add-site-no-results-title {
    color: #E0E0E0;
}

.NB-dark .NB-add-site-no-results-desc {
    color: #999;
}


/* Dark theme: Web Feed Tab */
.NB-dark .NB-add-site-webfeed-explainer-card {
    background: #2A2A2A;
    border-color: #444;
}
.NB-dark .NB-add-site-webfeed-explainer-img {
    filter: brightness(0) invert(0.7);
    opacity: 0.5;
}
.NB-dark .NB-add-site-webfeed-explainer-title {
    color: #E0E0E0;
}
.NB-dark .NB-add-site-webfeed-explainer-desc {
    color: #999;
}
.NB-dark .NB-add-site-webfeed-explainer-detail {
    color: #777;
}
.NB-dark .NB-add-site-webfeed-empty-cta {
    color: #777;
}
.NB-dark .NB-add-site-webfeed-analyzing-spinner {
    border-color: #444;
    border-top-color: #6AADEA;
}
.NB-dark .NB-add-site-webfeed-analyzing-text {
    color: #AAA;
}
.NB-dark .NB-add-site-webfeed-error {
    background: #3A1A1A;
    border-color: #5A2020;
    color: #F5A0A0;
}
.NB-dark .NB-add-site-webfeed-section-title {
    color: #E0E0E0;
}
.NB-dark .NB-add-site-webfeed-section-subtitle {
    color: #777;
}
.NB-dark .NB-add-site-webfeed-hint-card {
    border-color: #5A4A3A;
    background: #2A2520;
}
.NB-dark .NB-add-site-webfeed-hint-card:hover {
    border-color: #6A5A4A;
}
.NB-dark .NB-add-site-webfeed-hint-title {
    color: #C0B0A0;
}
.NB-dark .NB-add-site-webfeed-hint-desc {
    color: #888;
}
.NB-dark .NB-add-site-webfeed-hint-input {
    background: #1A1A1A;
    border-color: #555;
    color: #DDD;
}
.NB-dark .NB-add-site-webfeed-hint-input:focus {
    border-color: #6A5A4A;
    box-shadow: 0 0 0 2px rgba(90, 74, 58, 0.3);
}
.NB-dark .NB-add-site-webfeed-hint-btn {
    background: #6A5A4A;
}
.NB-dark .NB-add-site-webfeed-hint-btn:hover {
    background: #7A6A5A;
}
.NB-dark .NB-add-site-webfeed-variant-card {
    border-color: #444;
    background: #2A2A2A;
}
.NB-dark .NB-add-site-webfeed-variant-card:hover {
    border-color: #5A7A9A;
}
.NB-dark .NB-add-site-webfeed-variant-card.NB-active {
    border-color: #6AADEA;
    background: #1A2A3A;
}
.NB-dark .NB-add-site-webfeed-variant-radio {
    border-color: #555;
}
.NB-dark .NB-add-site-webfeed-variant-radio.NB-selected {
    border-color: #6AADEA;
    background: #6AADEA;
}
.NB-dark .NB-add-site-webfeed-variant-label {
    color: #E0E0E0;
}
.NB-dark .NB-add-site-webfeed-variant-desc {
    color: #999;
}
.NB-dark .NB-add-site-webfeed-variant-count {
    color: #6AADEA;
}
.NB-dark .NB-add-site-webfeed-preview-story {
    background: #333;
    border-color: #444;
}
.NB-dark .NB-add-site-webfeed-preview-story-title {
    color: #DDD;
}
.NB-dark .NB-add-site-webfeed-preview-story-content {
    color: #999;
}
.NB-dark .NB-add-site-webfeed-preview-story-image {
    background: #3A3A3A;
}
.NB-dark .NB-add-site-webfeed-subscribe-section {
    border-top-color: #444;
}
.NB-dark .NB-add-site-webfeed-feed-badge {
    background: #1E2A38;
    border-color: #2A3A4A;
}
.NB-dark .NB-add-site-webfeed-feed-badge-favicon.NB-default-icon {
    background: #2A3A4A;
}
.NB-dark .NB-add-site-webfeed-feed-badge-title {
    color: #E0E0E0;
}
.NB-dark .NB-add-site-webfeed-feed-badge-url {
    color: #777;
}
.NB-dark .NB-add-site-webfeed-feed-badge-pattern {
    color: #6AADEA;
}
.NB-dark .NB-add-site-webfeed-options {
    border-color: #444;
    background: #2A2A2A;
}
.NB-dark .NB-add-site-webfeed-option-label {
    color: #BBB;
}
.NB-dark .NB-add-site-webfeed-radio-group {
    border-color: #444;
}
.NB-dark .NB-add-site-webfeed-radio-option {
    background: #333;
    color: #AAA;
    border-right-color: #444;
}
.NB-dark .NB-add-site-webfeed-radio-option:hover {
    background: #3A3A3A;
}
.NB-dark .NB-add-site-webfeed-radio-option.NB-selected {
    background: #1A2A3A;
    color: #6AADEA;
}
.NB-dark .NB-add-site-webfeed-subscribed {
    background: #1A2A1A;
    border-color: #2A5A2A;
}
.NB-dark .NB-add-site-webfeed-subscribed-title,
.NB-dark .NB-add-site-webfeed-subscribed-desc {
    color: #80D080;
}
.NB-dark .NB-add-site-webfeed-folder-add-icon {
    border-color: #555;
    background: #333;
    color: #999;
}
.NB-dark .NB-add-site-webfeed-folder-add-icon:hover {
    border-color: #777;
    color: #CCC;
    background: #3A3A3A;
}
.NB-dark .NB-add-site-webfeed-folder-add-icon.NB-active {
    border-color: #5C89C9;
    color: #6AADEA;
    background: #1A2A3A;
}
.NB-dark .NB-add-site-webfeed-folder-input-row {
    border-color: #555;
}
.NB-dark .NB-add-site-webfeed-folder-input-row:focus-within {
    border-color: #5C89C9;
}
.NB-dark .NB-add-site-webfeed-folder-name {
    background: #333;
    color: #DDD;
}
.NB-dark .NB-add-site-webfeed-folder-name::placeholder {
    color: #777;
}

.NB-dark .NB-freshness-stale .NB-freshness-label {
    color: #F9A825;
}

/* ===================
   Archive View Styles
   =================== */


.NB-archive-view {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #F6F6F6;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.NB-archive-container {
    display: flex;
    flex-direction: column;
    height: 100%;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    box-sizing: border-box;
}

.NB-pref-story-position-stretch .NB-archive-container {
    max-width: none;
}

.NB-pref-story-position-left .NB-archive-container {
    margin: 0;
}

.NB-pref-story-position-right .NB-archive-container {
    margin: 0 0 0 auto;
}

/* Archive Header */
.NB-archive-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
    border-bottom: 1px solid #E0E0E0;
    flex-shrink: 0;
}

.NB-archive-tabs {
    display: flex;
    gap: 8px;
}

.NB-archive-tab {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: transparent;
    border: 1px solid #D0D0D0;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: #666;
    transition: all 0.15s ease;
}

.NB-archive-tab:hover {
    background: #FFF;
    border-color: #BBB;
    color: #333;
}

.NB-archive-tab.NB-active {
    background: #5C89C9;
    border-color: #5C89C9;
    color: #FFF;
}

.NB-archive-tab-icon {
    width: 18px;
    height: 18px;
    opacity: 0.7;
}

.NB-archive-tab.NB-active .NB-archive-tab-icon {
    filter: brightness(0) invert(1);
    opacity: 1;
}

.NB-archive-usage {
    font-size: 13px;
    color: #888;
}

.NB-archive-usage-count {
    font-weight: 600;
    color: #5C89C9;
}

/* Tab Content */
.NB-archive-tab-content {
    flex: 1;
    overflow: hidden;
    position: relative;
}

.NB-archive-assistant-tab,
.NB-archive-browser-tab {
    display: none;
    height: 100%;
}

.NB-archive-assistant-tab.NB-active {
    display: flex;
    flex-direction: row;
    height: 100%;
}

.NB-archive-browser-tab.NB-active {
    display: flex;
    flex-direction: row;
    width: 100%;
}

/* Settings Tab */
.NB-archive-settings-tab {
    display: none;
    height: 100%;
    overflow-y: auto;
}

.NB-archive-settings-tab.NB-active {
    display: block;
}

.NB-archive-settings-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 32px 48px;
}

.NB-archive-settings-loading,
.NB-archive-settings-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 300px;
    text-align: center;
    color: #666;
}

.NB-settings-empty-icon {
    width: 64px;
    height: 64px;
    opacity: 0.4;
    margin-bottom: 16px;
}

.NB-settings-empty-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #333;
}

.NB-settings-empty-subtitle {
    font-size: 14px;
    color: #888;
}

.NB-archive-settings-header {
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 1px solid #E0E0E0;
}

.NB-archive-settings-title {
    font-size: 24px;
    font-weight: 600;
    color: #333;
    margin: 0 0 8px 0;
}

.NB-archive-settings-desc {
    font-size: 14px;
    color: #666;
    margin: 0;
    line-height: 1.5;
}

.NB-archive-settings-section {
    margin-bottom: 32px;
    padding: 24px;
    background: #FAFAFA;
    border-radius: 12px;
    border: 1px solid #E8E8E8;
}

.NB-archive-settings-section-header {
    margin-bottom: 16px;
}

.NB-archive-settings-section-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin: 0 0 4px 0;
}

.NB-archive-settings-section-desc {
    font-size: 13px;
    color: #888;
    margin: 0;
    line-height: 1.4;
}

.NB-blocklist-items {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
    min-height: 40px;
}

.NB-blocklist-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 8px 6px 12px;
    background: #FFF;
    border: 1px solid #DDD;
    border-radius: 20px;
    font-size: 13px;
    color: #333;
    transition: all 0.15s ease;
}

.NB-blocklist-item:hover {
    border-color: #C33;
    background: #FFF5F5;
}

.NB-blocklist-item-text {
    max-width: 250px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.NB-blocklist-remove {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    padding: 0;
    border: none;
    background: transparent;
    border-radius: 50%;
    cursor: pointer;
    opacity: 0.5;
    transition: all 0.15s ease;
}

.NB-blocklist-remove:hover {
    opacity: 1;
    background: #FEE;
}

.NB-blocklist-remove-icon {
    width: 14px;
    height: 14px;
}

.NB-blocklist-empty {
    color: #AAA;
    font-size: 13px;
    font-style: italic;
    padding: 8px 0;
}

.NB-blocklist-add-row {
    display: flex;
    gap: 8px;
}

.NB-blocklist-input {
    flex: 1;
    padding: 10px 14px;
    border: 1px solid #DDD;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.15s ease;
}

.NB-blocklist-input:focus {
    outline: none;
    border-color: #5C89C9;
    box-shadow: 0 0 0 3px rgba(92, 137, 201, 0.15);
}

.NB-blocklist-input.NB-error {
    border-color: #C33;
    background: #FFF5F5;
    animation: shake 0.3s ease;
}

@keyframes shake {
    0%, 100% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-4px);
    }

    75% {
        transform: translateX(4px);
    }
}

.NB-blocklist-add-btn {
    padding: 10px 20px;
    background: #5C89C9;
    color: #FFF;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s ease;
}

.NB-blocklist-add-btn:hover {
    background: #4A77B7;
}

.NB-blocklist-add-btn:active {
    transform: scale(0.98);
}

/* Default blocklist section (read-only) */
.NB-default-blocklist-section {
    background: #F5F5F5;
    border-color: #E0E0E0;
}

.NB-default-blocklist-items {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.NB-default-blocklist-item {
    display: inline-block;
    padding: 4px 10px;
    background: #E8E8E8;
    border-radius: 12px;
    font-size: 12px;
    color: #666;
}

.NB-default-blocklist-count {
    font-size: 13px;
    font-weight: 400;
    color: #888;
}

/* Save button area */
.NB-archive-settings-actions {
    display: flex;
    justify-content: flex-end;
    padding-top: 24px;
    margin-top: 16px;
    border-top: 1px solid #E0E0E0;
}

.NB-blocklist-save {
    padding: 12px 32px;
    font-size: 15px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.15s ease;
}

.NB-blocklist-save.NB-disabled {
    background: #E0E0E0;
    color: #999;
    cursor: default;
}

.NB-blocklist-save.NB-success {
    background: #4CAF50;
    border-color: #4CAF50;
}

.NB-blocklist-save.NB-error {
    background: #E53935;
    border-color: #E53935;
}

/* Domain Browser Section */
.NB-domain-browser-section {
    margin-top: 24px;
}

.NB-domain-browser-list {
    display: flex;
    flex-direction: column;
    gap: 2px;
    max-height: 400px;
    overflow-y: auto;
    border: 1px solid #E0E0E0;
    border-radius: 8px;
}

.NB-domain-browser-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    cursor: pointer;
    transition: background 0.15s ease;
    border-bottom: 1px solid #F0F0F0;
}

.NB-domain-browser-item:last-child {
    border-bottom: none;
}

.NB-domain-browser-item:hover {
    background: #F5F5F5;
}

.NB-domain-browser-item.NB-blocked {
    opacity: 0.6;
    cursor: default;
}

.NB-domain-browser-item.NB-blocked:hover {
    background: transparent;
}

.NB-domain-browser-favicon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.NB-domain-browser-favicon img {
    width: 20px;
    height: 20px;
    border-radius: 4px;
}

.NB-domain-browser-name {
    flex: 1;
    font-size: 14px;
    font-weight: 500;
    color: #333;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.NB-domain-browser-count {
    font-size: 12px;
    color: #888;
    flex-shrink: 0;
}

.NB-domain-browser-action {
    font-size: 12px;
    color: #4A90D9;
    flex-shrink: 0;
    opacity: 0;
    transition: opacity 0.15s ease;
}

.NB-domain-browser-item:hover .NB-domain-browser-action {
    opacity: 1;
}

.NB-domain-browser-status.NB-blocked-status {
    font-size: 11px;
    color: #fff;
    background: #999;
    padding: 2px 8px;
    border-radius: 10px;
    flex-shrink: 0;
}

.NB-domain-browser-empty {
    padding: 24px;
    text-align: center;
    color: #888;
    font-style: italic;
}

.NB-domain-browser-count-total {
    font-size: 13px;
    font-weight: 400;
    color: #888;
}

/* Block Domain Dialog */
.NB-block-dialog-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.NB-block-dialog-overlay.NB-visible {
    opacity: 1;
}

.NB-block-dialog {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    width: 420px;
    max-width: 90vw;
    transform: scale(0.95);
    transition: transform 0.2s ease;
}

.NB-block-dialog-overlay.NB-visible .NB-block-dialog {
    transform: scale(1);
}

.NB-block-dialog-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px 24px;
    border-bottom: 1px solid #E0E0E0;
}

.NB-block-dialog-favicon {
    width: 32px;
    height: 32px;
    border-radius: 6px;
}

.NB-block-dialog-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin: 0;
}

.NB-block-dialog-body {
    padding: 20px 24px;
}

.NB-block-dialog-message {
    font-size: 14px;
    color: #666;
    line-height: 1.5;
    margin: 0 0 16px 0;
}

.NB-block-dialog-option {
    background: #F8F8F8;
    border-radius: 8px;
    padding: 12px 16px;
}

.NB-block-dialog-checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    font-size: 14px;
    color: #444;
}

.NB-block-dialog-checkbox-label input[type="checkbox"] {
    margin-top: 2px;
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.NB-block-dialog-checkbox-text {
    flex: 1;
}

.NB-block-dialog-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding: 16px 24px;
    border-top: 1px solid #E0E0E0;
}

.NB-block-dialog-cancel {
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 500;
    background: transparent;
    border: 1px solid #DDD;
    border-radius: 6px;
    color: #666;
    cursor: pointer;
    transition: all 0.15s ease;
}

.NB-block-dialog-cancel:hover {
    background: #F5F5F5;
    border-color: #CCC;
}

.NB-block-dialog-confirm {
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 600;
    background: #E53935;
    border: 1px solid #E53935;
    border-radius: 6px;
    color: #fff;
    cursor: pointer;
    transition: all 0.15s ease;
}

.NB-block-dialog-confirm:hover {
    background: #C62828;
    border-color: #C62828;
}

.NB-block-dialog-confirm:disabled {
    background: #999;
    border-color: #999;
    cursor: default;
}

/* ==================
   Conversation History Sidebar (Right Side)
   ================== */

.NB-archive-conversation-sidebar {
    width: 280px;
    min-width: 280px;
    border-left: 1px solid #E0E0E0;
    display: flex;
    flex-direction: column;
    background: transparent;
    transition: width 0.2s ease, min-width 0.2s ease, opacity 0.2s ease;
}

.NB-archive-conversation-sidebar.NB-collapsed {
    width: 0;
    min-width: 0;
    opacity: 0;
    overflow: hidden;
    border-left: none;
}

.NB-archive-sidebar-header {
    padding: 12px;
    display: flex;
    gap: 8px;
    align-items: center;
}

/* New Chat Button - matches app tab button style */
.NB-archive-new-conversation {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 16px;
    background: transparent;
    color: #666;
    border: 1px solid #D0D0D0;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s ease;
}

.NB-archive-new-conversation:hover {
    background: #FFF;
    border-color: #BBB;
    color: #333;
}

.NB-new-chat-icon {
    width: 16px;
    height: 16px;
    opacity: 0.6;
}

.NB-archive-new-conversation:hover .NB-new-chat-icon {
    opacity: 0.9;
}

/* Sidebar Toggle - small icon button */
.NB-archive-sidebar-toggle {
    width: 32px;
    height: 32px;
    min-width: 32px;
    background: transparent;
    border: 1px solid #D0D0D0;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s ease;
}

.NB-archive-sidebar-toggle:hover {
    background: #FFF;
    border-color: #BBB;
}

.NB-archive-sidebar-toggle::before {
    content: "";
    width: 14px;
    height: 14px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23888' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='3' width='18' height='18' rx='2'/%3E%3Cline x1='15' y1='3' x2='15' y2='21'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    opacity: 0.7;
}

.NB-archive-sidebar-toggle:hover::before {
    opacity: 1;
}

/* Floating toggle when sidebar is collapsed */
.NB-archive-sidebar-toggle.NB-collapsed {
    position: absolute;
    right: 4px;
    top: 12px;
    z-index: 10;
    background: #F5F5F5;
    border-color: #CCC;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.NB-archive-sidebar-toggle.NB-collapsed:hover {
    background: #FFF;
    border-color: #999;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.NB-archive-conversation-list {
    flex: 1;
    overflow-y: auto;
    padding: 8px 12px;
}

.NB-archive-conversation-item {
    padding: 10px 12px;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.15s ease;
    margin-bottom: 2px;
}

.NB-archive-conversation-item:hover {
    background: #EAEAEA;
}

.NB-archive-conversation-item.NB-active {
    background: #E3ECFA;
}

.NB-archive-conversation-item.NB-active:hover {
    background: #D6E3F8;
}

.NB-archive-conversation-title {
    font-size: 13px;
    font-weight: 500;
    color: #333;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 3px;
    line-height: 1.3;
}

.NB-archive-conversation-date {
    font-size: 11px;
    color: #999;
}

.NB-archive-conversations-empty {
    padding: 32px 16px;
    text-align: center;
    color: #999;
    font-size: 13px;
}

.NB-archive-conversations-loading {
    padding: 32px;
    display: flex;
    justify-content: center;
}

/* Main Chat Area */
.NB-archive-assistant-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
    position: relative;
    padding-right: 16px;
}

/* Archive Assistant Tab */
.NB-archive-assistant-chat {
    flex: 1;
    overflow-y: auto;
    padding: 24px 0;
}

.NB-archive-assistant-messages {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.NB-archive-assistant-welcome {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 48px 24px;
    color: #666;
}

.NB-archive-welcome-icon {
    width: 64px;
    height: 64px;
    opacity: 0.5;
    margin-bottom: 16px;
}

.NB-archive-welcome-title {
    font-size: 20px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.NB-archive-welcome-subtitle {
    font-size: 14px;
    max-width: 400px;
    line-height: 1.5;
}

.NB-archive-assistant-message {
    padding: 12px 16px;
    border-radius: 12px;
    max-width: 80%;
}

.NB-archive-assistant-message.NB-user {
    align-self: flex-end;
    background: #5C89C9;
    color: #FFF;
}

.NB-archive-assistant-message.NB-assistant {
    align-self: flex-start;
    background: #FFF;
    border: 1px solid #E0E0E0;
    color: #333;
}

/* Live tool status - lighter styling during streaming */
.NB-archive-assistant-message.NB-tool-status {
    background: transparent;
    border: none;
    border-left: 2px solid rgba(74, 144, 226, 0.3);
    border-radius: 0;
    padding: 6px 12px;
    max-width: 100%;
}

.NB-archive-message-tool {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: #999;
}

.NB-tool-icon {
    width: 12px;
    height: 12px;
    border: 2px solid rgba(74, 144, 226, 0.2);
    border-top-color: rgba(74, 144, 226, 0.6);
    border-radius: 50%;
    animation: tool-spin 0.8s linear infinite;
}

.NB-archive-message-content {
    font-size: 14px;
    line-height: 1.6;
}

.NB-archive-message-content p {
    margin: 0 0 12px;
}

.NB-archive-message-content p:last-child {
    margin-bottom: 0;
}

.NB-archive-message-content h3 {
    font-size: 14px;
    font-weight: 600;
    margin: 0 0 4px;
    color: #333;
}

.NB-archive-message-content h3:not(:first-child) {
    margin-top: 16px;
}

.NB-archive-message-content h4 {
    font-size: 14px;
    font-weight: 600;
    margin: 0 0 4px;
    color: #444;
}

.NB-archive-message-content h4:not(:first-child) {
    margin-top: 12px;
}

.NB-archive-message-content ol.NB-markdown-list,
.NB-archive-message-content ul.NB-markdown-list {
    margin: 0 0 12px;
    padding-left: 24px;
}

.NB-archive-message-content ol.NB-markdown-list {
    list-style: decimal;
}

.NB-archive-message-content ul.NB-markdown-list {
    list-style: disc;
}

.NB-archive-message-content .NB-markdown-list li {
    margin: 6px 0;
    padding-left: 4px;
}

.NB-archive-message-content a {
    color: #5C89C9;
    text-decoration: underline;
}

.NB-archive-assistant-message.NB-user .NB-archive-message-content a {
    color: #B8D1F0;
}

.NB-archive-message-content .NB-assistant-story-link {
    color: #5C89C9;
    text-decoration: none;
    border-bottom: 1px dashed #5C89C9;
    cursor: pointer;
}

.NB-archive-message-content .NB-assistant-story-link:hover {
    color: #3D6CAD;
    border-bottom-style: solid;
}

.NB-archive-message-thinking {
    display: flex;
    gap: 4px;
    padding: 4px 0;
}

.NB-thinking-dot {
    width: 8px;
    height: 8px;
    background: #AAA;
    border-radius: 50%;
    animation: thinking-pulse 1.4s ease-in-out infinite;
}

.NB-thinking-dot:nth-child(2) {
    animation-delay: 0.2s;
}

.NB-thinking-dot:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes thinking-pulse {
    0%, 80%, 100% {
        opacity: 0.3;
        transform: scale(0.8);
    }

    40% {
        opacity: 1;
        transform: scale(1);
    }
}

/* Tool Status Messages */
.NB-archive-tool-status {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    margin: 4px 0;
    background: transparent;
    border-left: 2px solid rgba(74, 144, 226, 0.25);
    border-radius: 0;
    font-size: 11px;
    color: #999;
    transition: all 0.3s ease;
}

.NB-tool-spinner {
    width: 10px;
    height: 10px;
    border: 1.5px solid rgba(74, 144, 226, 0.2);
    border-top-color: rgba(74, 144, 226, 0.6);
    border-radius: 50%;
    animation: tool-spin 0.8s linear infinite;
    flex-shrink: 0;
}

@keyframes tool-spin {
    to {
        transform: rotate(360deg);
    }
}

.NB-archive-tool-status.NB-complete .NB-tool-spinner {
    display: none;
}

.NB-archive-tool-status.NB-complete::before {
    content: "\2713";
    color: #4A4;
    font-weight: bold;
}

.NB-tool-message {
    flex: 1;
}

/* Tool Line - individual tool call line (streaming and completed) */
.NB-archive-tool-line {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 0;
    font-size: 13px;
    color: #888;
}

.NB-archive-tool-line .NB-tool-icon {
    width: 14px;
    height: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.NB-archive-tool-line .NB-tool-check {
    border: none;
    animation: none;
    border-radius: 0;
}

.NB-archive-tool-line .NB-tool-check::before {
    content: "\2713";
    color: rgba(80, 160, 80, 0.8);
    font-size: 12px;
    font-weight: 600;
}

.NB-archive-tool-line .NB-tool-spinner {
    width: 12px;
    height: 12px;
    border: 1.5px solid rgba(74, 144, 226, 0.2);
    border-top-color: rgba(74, 144, 226, 0.6);
    border-radius: 50%;
    animation: tool-spin 0.8s linear infinite;
}

.NB-archive-tool-line .NB-tool-message {
    flex: 1;
}

/* Preview items - indented under tool call with fade effect */
.NB-archive-tool-preview {
    padding: 0 0 0 30px;
    margin: 0;
    font-size: 11px;
    line-height: 1.25;
    color: #777;
    white-space: nowrap;
    overflow: hidden;
    max-width: 100%;
    -webkit-mask-image: linear-gradient(to right, black 80%, transparent 100%);
    mask-image: linear-gradient(to right, black 80%, transparent 100%);
}

.NB-archive-tool-preview:first-of-type {
    margin-top: -3px;
}

/* Process Log Container - groups completed tool calls in history */
.NB-archive-process-log {
    margin: 4px 0 8px 0;
    padding: 0;
}

.NB-archive-process-log .NB-archive-tool-status {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 3px 0;
    font-size: 11px;
    color: #999;
}

.NB-archive-process-log .NB-archive-tool-status.NB-complete::before {
    content: "\2713";
    color: rgba(80, 160, 80, 0.7);
    font-size: 10px;
    font-weight: 600;
}

/* Upgrade Prompt */
.NB-archive-upgrade-prompt {
    padding: 12px 16px;
    margin: 8px 0;
    background: linear-gradient(135deg, #FFF9E6 0%, #FFE4B8 100%);
    border: 1px solid #F0C060;
    border-radius: 8px;
    font-size: 13px;
    color: #8B6914;
    text-align: center;
}

/* Suggestions */
.NB-archive-suggestions {
    padding: 24px 0;
    border-top: 1px solid #E8E8E8;
}

.NB-archive-suggestions-title {
    font-size: 13px;
    font-weight: 500;
    color: #888;
    margin-bottom: 12px;
}

.NB-archive-suggestions-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.NB-archive-suggestion {
    padding: 10px 14px;
    background: #FFF;
    border: 1px solid #D8D8D8;
    border-radius: 8px;
    font-size: 13px;
    color: #555;
    cursor: pointer;
    transition: all 0.15s ease;
}

.NB-archive-suggestion:hover {
    background: #5C89C9;
    border-color: #5C89C9;
    color: #FFF;
}

/* Input Area */
.NB-archive-assistant-input-wrapper {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 4px 6px 4px 6px;
    margin: 16px 0 24px;
    background: #FFF;
    border: 1px solid #D0D0D0;
    border-radius: 24px;
    flex-shrink: 0;
    transition: border-color 0.15s ease;
}

.NB-archive-assistant-input-wrapper:focus-within {
    border-color: #5C89C9;
}

.NB-archive-assistant-voice-button {
    min-width: 32px;
    height: 32px;
    padding: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: transparent;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.05s ease-out;
    flex-shrink: 0;
    user-select: none;
    -webkit-user-select: none;
}

.NB-archive-assistant-voice-button:hover {
    background-color: #F4F6F3;
}

.NB-archive-assistant-voice-button.NB-recording {
    background-color: #FF6B6B;
    /* Audio level provides live feedback via transform scale */
}

.NB-archive-assistant-voice-button.NB-transcribing {
    background-color: #4ECDC4;
}

.NB-archive-assistant-voice-icon {
    width: 18px;
    height: 18px;
    display: block;
    opacity: 0.5;
}

.NB-archive-assistant-voice-button:hover .NB-archive-assistant-voice-icon {
    opacity: 0.8;
}

.NB-archive-assistant-voice-button.NB-recording .NB-archive-assistant-voice-icon,
.NB-archive-assistant-voice-button.NB-transcribing .NB-archive-assistant-voice-icon {
    filter: brightness(0) invert(1);
    opacity: 1;
}

.NB-archive-assistant-input {
    flex: 1;
    padding: 10px 0;
    border: none;
    background: transparent;
    font-family: "Lucida Grande", Verdana, "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 14px;
    outline: none;
}

.NB-archive-assistant-input::placeholder {
    color: #999;
    font-style: normal;
}

.NB-archive-assistant-send {
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 50%;
    background: transparent;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s ease;
    flex-shrink: 0;
}

.NB-archive-assistant-send::before {
    content: "";
    display: block;
    width: 16px;
    height: 16px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23888' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 2L11 13'/%3E%3Cpath d='M22 2L15 22L11 13L2 9L22 2Z'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    opacity: 0.6;
    transition: opacity 0.15s ease;
}

.NB-archive-assistant-send:hover {
    background: #F0F0F0;
}

.NB-archive-assistant-send:hover::before {
    opacity: 1;
}

.NB-archive-assistant-input-wrapper:focus-within .NB-archive-assistant-send::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235C89C9' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 2L11 13'/%3E%3Cpath d='M22 2L15 22L11 13L2 9L22 2Z'/%3E%3C/svg%3E");
    opacity: 1;
}

/* Archive Assistant Premium Truncation */
.NB-archive-assistant-message.NB-archive-assistant-premium-only {
    position: relative;
}

.NB-archive-assistant-message.NB-archive-assistant-premium-only .NB-archive-message-content {
    max-height: 150px;
    overflow: hidden;
    position: relative;
}

.NB-archive-assistant-premium-fade {
    position: absolute;
    bottom: 60px;
    left: 0;
    width: 100%;
    height: 50px;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 1) 100%);
    pointer-events: none;
}

.NB-archive-assistant-premium-notice {
    text-align: center;
    padding: 12px 16px;
    font-size: 13px;
    color: #707070;
    border-top: 1px solid #e0e0e0;
    margin-top: 8px;
    background: #fafafa;
    border-radius: 0 0 8px 8px;
}

.NB-archive-assistant-premium-notice .NB-premium-link {
    color: #5c89c9;
    font-weight: 600;
    text-decoration: none;
}

.NB-archive-assistant-premium-notice .NB-premium-link:hover {
    text-decoration: underline;
}

/* Archive Browser Tab */
.NB-archive-browser-tab {
    overflow-x: hidden;
}

.NB-archive-filters {
    width: 220px;
    flex-shrink: 0;
    padding: 24px 24px 24px 0;
    border-right: 1px solid #E0E0E0;
    overflow-y: auto;
}

.NB-archive-filter-section {
    margin-bottom: 24px;
}

.NB-archive-filter-title {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    color: #888;
    margin-bottom: 12px;
    letter-spacing: 0.5px;
}

.NB-archive-filter-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.NB-archive-category-filter,
.NB-archive-domain-filter,
.NB-archive-date-filter {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.15s ease;
}

.NB-archive-category-filter:hover,
.NB-archive-domain-filter:hover,
.NB-archive-date-filter:hover {
    background: #E8E8E8;
}

.NB-archive-category-filter.NB-active,
.NB-archive-domain-filter.NB-active,
.NB-archive-date-filter.NB-active,
.NB-archive-category-filter.NB-active:hover,
.NB-archive-domain-filter.NB-active:hover,
.NB-archive-date-filter.NB-active:hover {
    background: #5C89C9;
    color: #FFF;
}

.NB-archive-category-filter.NB-disabled,
.NB-archive-domain-filter.NB-disabled,
.NB-archive-date-filter.NB-disabled {
    opacity: 0.4;
    pointer-events: none;
}

.NB-archive-filter-name {
    font-size: 13px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.NB-archive-filter-count {
    font-size: 12px;
    color: #888;
    background: #E0E0E0;
    padding: 2px 8px;
    border-radius: 10px;
    flex-shrink: 0;
}

.NB-archive-category-filter.NB-active .NB-archive-filter-count,
.NB-archive-domain-filter.NB-active .NB-archive-filter-count {
    background: rgba(255, 255, 255, 0.2);
    color: #FFF;
}

/* Date Picker Toggle */
.NB-archive-date-picker-toggle {
    cursor: pointer;
    opacity: 0.5;
    transition: opacity 0.15s ease;
    padding: 4px;
}

.NB-archive-date-picker-toggle:hover {
    opacity: 1;
}

.NB-date-picker-icon {
    width: 16px;
    height: 16px;
    filter: brightness(0) saturate(100%) invert(51%) sepia(9%) saturate(8%) hue-rotate(8deg) brightness(96%) contrast(88%);
}

.NB-archive-date-picker-toggle:hover .NB-date-picker-icon {
    filter: brightness(0) saturate(100%) invert(44%) sepia(52%) saturate(485%) hue-rotate(175deg) brightness(90%) contrast(92%);
}

/* Date Picker Popover */
.NB-date-picker-popover {
    display: none;
    position: absolute;
    top: 28px;
    left: 0;
    right: 0;
    z-index: 100;
    background: #FFF;
    border: 1px solid #DDD;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    padding: 16px;
}

.NB-date-picker-popover.NB-active {
    display: block;
}

.NB-date-picker-relative-dates {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-bottom: 12px;
}

.NB-date-picker-relative-dates .NB-archive-date-filter {
    padding: 6px 10px;
    border-radius: 4px;
}

.NB-date-picker-divider {
    height: 1px;
    background: #E0E0E0;
    margin: 8px 0 12px;
}

.NB-date-picker-custom-label {
    font-size: 11px;
    font-weight: 600;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
}

.NB-archive-filter-section {
    position: relative;
}

/* Custom date filter in list */
.NB-archive-date-custom {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.NB-archive-date-custom-clear {
    font-size: 14px;
    color: #888;
    cursor: pointer;
    padding: 0 4px;
    line-height: 1;
}

.NB-archive-date-custom-clear:hover {
    color: #c00;
}

.NB-archive-date-custom.NB-active .NB-archive-date-custom-clear {
    color: rgba(255, 255, 255, 0.6);
}

.NB-archive-date-custom.NB-active .NB-archive-date-custom-clear:hover {
    color: #FFF;
}

/* Date picker popover title */
.NB-date-picker-title {
    font-size: 13px;
    font-weight: 600;
    color: #333;
    margin-bottom: 14px;
}

.NB-date-picker-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.NB-date-picker-label {
    font-size: 12px;
    color: #666;
    width: 40px;
    flex-shrink: 0;
}

.NB-date-picker-input {
    flex: 1;
    padding: 8px 10px;
    border: 1px solid #DDD;
    border-radius: 6px;
    font-size: 13px;
    color: #333;
}

.NB-date-picker-input:focus {
    outline: none;
    border-color: #5C89C9;
}

.NB-date-picker-actions {
    display: flex;
    gap: 8px;
    margin-top: 16px;
    padding-top: 12px;
    border-top: 1px solid #EEE;
}

.NB-date-picker-clear,
.NB-date-picker-apply {
    flex: 1;
    padding: 8px 12px;
    border: none;
    border-radius: 6px;
    font-size: 13px;
    cursor: pointer;
    transition: background 0.15s ease;
}

.NB-date-picker-clear {
    background: #F0F0F0;
    color: #666;
}

.NB-date-picker-clear:hover {
    background: #E0E0E0;
}

.NB-date-picker-apply {
    background: #5C89C9;
    color: #FFF;
}

.NB-date-picker-apply:hover {
    background: #4A77B7;
}

/* Custom Date Display */
.NB-custom-date-display {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    margin-bottom: 8px;
    background: #5C89C9;
    color: #FFF;
    border-radius: 6px;
}

.NB-custom-date-range {
    font-size: 13px;
}

.NB-custom-date-clear {
    cursor: pointer;
    font-size: 18px;
    line-height: 1;
    opacity: 0.7;
    transition: opacity 0.15s ease;
}

.NB-custom-date-clear:hover {
    opacity: 1;
}

/* No Results State */
.NB-archive-no-results {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 40px;
    text-align: center;
}

.NB-no-results-icon {
    margin-bottom: 20px;
}

.NB-no-results-img {
    width: 64px;
    height: 64px;
    opacity: 0.4;
}

.NB-no-results-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.NB-no-results-subtitle {
    font-size: 14px;
    color: #888;
    margin-bottom: 24px;
}

.NB-filter-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin-bottom: 20px;
}

.NB-filter-chip {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    background: #F0F0F0;
    border-radius: 16px;
    font-size: 13px;
    color: #555;
}

.NB-filter-chip-remove {
    cursor: pointer;
    font-size: 16px;
    line-height: 1;
    color: #888;
    transition: color 0.15s ease;
}

.NB-filter-chip-remove:hover {
    color: #C00;
}

.NB-clear-all-filters {
    padding: 10px 20px;
    background: #5C89C9;
    color: #FFF;
    border-radius: 6px;
    font-size: 13px;
    cursor: pointer;
    transition: background 0.15s ease;
}

.NB-clear-all-filters:hover {
    background: #4A77B7;
}

/* Archive Browser Content */
.NB-archive-browser-content {
    flex: 1;
    padding: 24px;
    overflow-y: auto;
}

.NB-archive-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.NB-archive-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
    background: #FFF;
    border: 1px solid #E0E0E0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.15s ease;
}

.NB-archive-item:hover {
    border-color: #5C89C9;
    box-shadow: 0 2px 8px rgba(92, 137, 201, 0.1);
}

.NB-archive-item-favicon {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
}

.NB-archive-item-favicon-img {
    width: 100%;
    height: 100%;
    border-radius: 4px;
    object-fit: contain;
}

.NB-archive-item-favicon-placeholder {
    width: 100%;
    height: 100%;
    background: #E0E0E0;
    border-radius: 4px;
}

.NB-archive-item-content {
    flex: 1;
    min-width: 0;
}

.NB-archive-item-title {
    font-size: 14px;
    font-weight: 500;
    color: #333;
    margin-bottom: 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.NB-archive-item-meta {
    display: flex;
    gap: 12px;
    font-size: 12px;
    color: #888;
    margin-bottom: 8px;
}

.NB-archive-item-domain {
    color: #5C89C9;
}

.NB-archive-item-stats {
    display: flex;
    gap: 12px;
    font-size: 11px;
    color: #888;
    margin-top: 4px;
    margin-bottom: 8px;
}

.NB-archive-item-stat {
    display: inline-flex;
    align-items: center;
    gap: 2px;
}

.NB-archive-stat-value {
    font-weight: 500;
    color: #666;
}

.NB-archive-item-stat.NB-no-content {
    color: #999;
    font-style: italic;
}

.NB-archive-item-categories {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.NB-archive-item-category {
    font-size: 11px;
    padding: 2px 8px;
    background: #F0F4F8;
    color: #5C89C9;
    border-radius: 4px;
}

.NB-archive-item-newsblur-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    background: rgba(217, 92, 51, 0.08);
    border: 1px solid rgba(217, 92, 51, 0.25);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.15s ease;
    align-self: flex-start;
}

.NB-archive-item-newsblur-link:hover {
    background: rgba(217, 92, 51, 0.15);
    border-color: rgba(217, 92, 51, 0.4);
}

.NB-archive-newsblur-text {
    font-size: 11px;
    font-weight: 500;
    color: #D95C33;
}

.NB-archive-newsblur-icon {
    width: 14px;
    height: 14px;
}

/* Archive Item Animation - height-based expansion for smooth push-down effect */
.NB-archive-item-entering {
    animation: archive-expand-in 0.5s ease-in forwards;
    overflow: hidden;
}

@keyframes archive-expand-in {
    0% {
        opacity: 0;
        max-height: 0;
        padding-top: 0;
        padding-bottom: 0;
        border-width: 0;
    }

    40% {
        opacity: 0.3;
        border-width: 1px;
    }

    100% {
        opacity: 1;
        max-height: 200px;
        padding-top: 16px;
        padding-bottom: 16px;
        border-width: 1px;
    }
}

/* Category animation - fade and slide in when tags are added */
.NB-archive-item-category.NB-category-entering {
    animation: category-slide-in 0.4s ease-out forwards;
}

@keyframes category-slide-in {
    0% {
        opacity: 0;
        transform: translateY(-8px) scale(0.9);
    }

    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Re-categorize button */
.NB-archive-item-recategorize {
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.2s ease;
    padding: 2px 6px;
    color: #888;
    font-size: 12px;
    flex-shrink: 0;
    line-height: 1;
}

.NB-archive-item:hover .NB-archive-item-recategorize {
    opacity: 1;
}

.NB-archive-item-recategorize:hover {
    color: #5C89C9;
}

.NB-archive-item-category.NB-pending {
    background: #F0F0F0;
    color: #888;
    font-style: italic;
}

.NB-archive-item.NB-recategorizing {
    opacity: 0.7;
}

/* Author styling */
.NB-archive-item-author {
    color: #666;
}

.NB-archive-item-author:before {
    content: "by ";
    color: #999;
}

/* Archive Search Bar */
.NB-archive-search-container {
    padding: 0 0 12px 0;
    margin-bottom: 8px;
    border-bottom: 1px solid #E0E0E0;
}

.NB-archive-search-wrapper {
    display: flex;
    align-items: center;
    background: #F5F5F5;
    border: 1px solid #E0E0E0;
    border-radius: 6px;
    padding: 6px 10px;
    transition: all 0.15s ease;
}

.NB-archive-search-wrapper:focus-within {
    background: #FFF;
    border-color: #5C89C9;
    box-shadow: 0 0 0 2px rgba(92, 137, 201, 0.15);
}

.NB-archive-search-icon {
    width: 18px;
    height: 18px;
    margin-right: 10px;
    background: url('/media/img/icons/nouns/search.svg') no-repeat center;
    background-size: contain;
    opacity: 0.5;
    flex-shrink: 0;
}

.NB-archive-search-wrapper:focus-within .NB-archive-search-icon {
    opacity: 0.8;
}

.NB-archive-search-input {
    flex: 1;
    border: none;
    background: transparent;
    font-size: 14px;
    color: #333;
    outline: none;
}

.NB-archive-search-input::placeholder {
    color: #999;
}

.NB-archive-search-clear {
    width: 18px;
    height: 18px;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.15s ease;
    background: url('/media/img/icons/nouns/close.svg') no-repeat center;
    background-size: 12px;
    flex-shrink: 0;
}

.NB-archive-search-wrapper.NB-has-query .NB-archive-search-clear {
    opacity: 0.5;
}

.NB-archive-search-wrapper.NB-has-query .NB-archive-search-clear:hover {
    opacity: 1;
}

/* Content Preview Styles */
.NB-archive-item-content-preview {
    font-size: 12px;
    color: #666;
    line-height: 1.5;
    margin-top: 8px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.NB-archive-item-content-preview.NB-highlighted {
    color: #444;
}

/* Search Highlight Marks */
.NB-archive-item-content-preview mark,
.NB-archive-item-title mark {
    background: #FFF3CD;
    color: #333;
    padding: 1px 2px;
    border-radius: 2px;
    font-weight: 500;
}

/* Empty State */
.NB-archive-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 48px 24px;
    text-align: center;
}

.NB-archive-empty-icon {
    width: 64px;
    height: 64px;
    opacity: 0.4;
    margin-bottom: 16px;
}

.NB-archive-empty-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.NB-archive-empty-subtitle {
    font-size: 15px;
    color: #666;
    max-width: 420px;
    line-height: 1.6;
}

/* Empty State - Hero Section */
.NB-archive-empty-hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 32px;
}

/* Empty State - Extension Buttons */
.NB-archive-empty-extensions {
    margin-bottom: 32px;
}

.NB-archive-empty-extensions-title {
    font-size: 13px;
    font-weight: 600;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 16px;
}

.NB-archive-empty-extension-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.NB-archive-empty-extension-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 24px;
    background: linear-gradient(to bottom, #FAFAFA, #F0F0F0);
    border: 1px solid #D0D0D0;
    border-radius: 12px;
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease;
    min-width: 180px;
}

.NB-archive-empty-extension-btn:hover {
    background: linear-gradient(to bottom, #FFFFFF, #F5F5F5);
    border-color: #5C89C9;
    box-shadow: 0 4px 12px rgba(92, 137, 201, 0.15);
    transform: translateY(-2px);
}

.NB-empty-ext-icon {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
}

.NB-empty-ext-info {
    text-align: left;
}

.NB-empty-ext-name {
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.NB-empty-ext-desc {
    font-size: 12px;
    color: #888;
    margin-top: 2px;
}

/* Empty State - Features */
.NB-archive-empty-features {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 420px;
    padding: 20px 24px;
    background: #F8F9FA;
    border-radius: 12px;
}

.NB-archive-empty-feature {
    display: flex;
    align-items: center;
    gap: 12px;
}

.NB-archive-feature-icon {
    font-size: 20px;
    width: 28px;
    text-align: center;
    flex-shrink: 0;
}

.NB-archive-feature-text {
    font-size: 13px;
    color: #555;
    line-height: 1.4;
}

/* Header - Extensions Button & Popover */
.NB-archive-extensions-container {
    position: relative;
}

.NB-archive-extensions-button {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    background: transparent;
    border: 1px solid #D0D0D0;
    border-radius: 8px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    color: #666;
    transition: all 0.15s ease;
}

.NB-archive-extensions-button:hover {
    background: #FFF;
    border-color: #BBB;
    color: #333;
}

.NB-archive-extensions-icon {
    width: 16px;
    height: 16px;
    opacity: 0.7;
}

.NB-archive-extensions-popover {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 8px;
    background: #FFF;
    border: 1px solid #D0D0D0;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    padding: 8px;
    min-width: 240px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all 0.2s ease;
    z-index: 1000;
}

.NB-archive-extensions-container.NB-popover-open .NB-archive-extensions-popover {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.NB-archive-extension-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 8px;
    text-decoration: none;
    color: inherit;
    transition: background 0.15s ease;
}

.NB-archive-extension-link:hover {
    background: #F5F7FA;
}

.NB-archive-extension-browser-icon {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
}

.NB-archive-extension-info {
    display: flex;
    flex-direction: column;
}

.NB-archive-extension-name {
    font-size: 14px;
    font-weight: 600;
    color: #333;
}

.NB-archive-extension-desc {
    font-size: 12px;
    color: #888;
    margin-top: 1px;
}

/* Assistant Tab - Browser Extensions Section */
.NB-archive-assistant-extensions {
    margin-top: 32px;
    padding: 20px 24px;
    background: linear-gradient(135deg, #F8F9FA 0%, #EEF1F5 100%);
    border: 1px solid #E0E4E8;
    border-radius: 12px;
    text-align: center;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.NB-archive-assistant-extensions-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 15px;
    font-weight: 600;
    color: #333;
    margin-bottom: 6px;
    position: relative;
}

.NB-archive-assistant-extensions-close {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    cursor: pointer;
    opacity: 0.5;
    transition: opacity 0.15s ease;
    background-image: url('/media/img/icons/nouns/close-circle.svg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.NB-archive-assistant-extensions-close:hover {
    opacity: 0.8;
}

.NB-assistant-ext-header-icon {
    width: 20px;
    height: 20px;
    opacity: 0.7;
}

.NB-archive-assistant-extensions-desc {
    font-size: 13px;
    color: #666;
    margin-bottom: 16px;
    line-height: 1.4;
}

.NB-archive-assistant-extension-links {
    display: flex;
    justify-content: center;
    gap: 12px;
}

.NB-archive-assistant-ext-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: #FFF;
    border: 1px solid #D0D4D8;
    border-radius: 8px;
    text-decoration: none;
    color: #333;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.15s ease;
}

.NB-archive-assistant-ext-link:hover {
    border-color: #5C89C9;
    box-shadow: 0 2px 8px rgba(92, 137, 201, 0.15);
    transform: translateY(-1px);
}

.NB-assistant-ext-icon {
    width: 20px;
    height: 20px;
}

/* Archive End Line (loading and end state) */
.NB-archive-browser-content .NB-end-line {
    margin-top: 16px;
    border-radius: 8px;
    border: none;
}

.NB-archive-browser-content .NB-end-line.NB-load-line.NB-short {
    height: 8px;
    min-height: 8px;
    border-radius: 4px;
}

/* Archive Loading */
.NB-archive-loading {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 200px;
    padding: 48px 0;
}

.NB-archive-loading .NB-loading.NB-active {
    width: 32px;
    height: 32px;
    background-size: 32px;
    margin: 0 auto;
}

.NB-archive-error {
    text-align: center;
    padding: 32px 24px;
    font-size: 14px;
    color: #8B3A3A;
    background-color: #FDF6F6;
    border-radius: 8px;
    border: 1px solid #F0D6D6;
}

/* Category Filter Header */
.NB-archive-filter-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.NB-archive-filter-header .NB-archive-filter-title {
    margin-bottom: 0;
}

.NB-archive-manage-categories {
    cursor: pointer;
    opacity: 0.5;
    transition: opacity 0.15s ease;
    padding: 4px;
}

.NB-archive-manage-categories:hover {
    opacity: 1;
}

.NB-manage-icon {
    width: 16px;
    height: 16px;
    filter: brightness(0) saturate(100%) invert(51%) sepia(9%) saturate(8%) hue-rotate(8deg) brightness(96%) contrast(88%);
}

.NB-archive-manage-categories:hover .NB-manage-icon {
    filter: brightness(0) saturate(100%) invert(44%) sepia(52%) saturate(485%) hue-rotate(175deg) brightness(90%) contrast(92%);
}

/* Category Manager Modal */
.NB-category-manager-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 999;
}

.NB-category-manager-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 500px;
    max-width: 90vw;
    max-height: 80vh;
    background: #FFF;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.NB-category-manager-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 28px 16px;
    background: #FAFAFA;
}

.NB-category-manager-header h3 {
    margin: 0;
    font-size: 17px;
    font-weight: 600;
    color: #333;
}

.NB-category-manager-close {
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    color: #AAA;
    transition: color 0.15s ease;
    padding: 4px;
}

.NB-category-manager-close:hover {
    color: #666;
}

.NB-category-manager-actions {
    display: none;
}

.NB-category-manager-actions .NB-button {
    padding: 8px 18px;
    font-size: 13px;
    border-radius: 6px;
    border: none;
    background: #5C89C9;
    color: #FFF;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s ease;
}

.NB-category-manager-actions .NB-button:hover {
    background: #4A77B7;
}

.NB-category-manager-actions .NB-button.NB-disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Status message area - cleaner */
.NB-category-manager-status {
    padding: 10px 20px;
    font-size: 13px;
    border: none;
    margin: 0 20px;
    border-radius: 6px;
}

.NB-category-manager-status.NB-hidden {
    display: none;
}

.NB-category-manager-status.NB-success {
    background: #E8F5E9;
    color: #2E7D32;
}

.NB-category-manager-status.NB-error {
    background: #FFEBEE;
    color: #C62828;
}

.NB-category-manager-status.NB-info {
    background: #E3F2FD;
    color: #1565C0;
}

/* Inline action panel */
.NB-category-manager-inline-action {
    padding: 16px 20px;
    background: #FFF3E0;
    border-bottom: 1px solid #FFE0B2;
}

.NB-category-manager-inline-action.NB-hidden {
    display: none;
}

.NB-inline-action-content {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.NB-inline-action-content.NB-split-content {
    flex-direction: column;
    align-items: flex-start;
}

.NB-inline-action-label {
    font-size: 13px;
    color: #333;
    font-weight: 500;
}

.NB-inline-action-input {
    flex: 1;
    min-width: 200px;
    padding: 8px 12px;
    border: 1px solid #E0E0E0;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
}

.NB-inline-action-input:focus {
    border-color: #707070;
    box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.1);
}

.NB-inline-action-buttons {
    display: flex;
    gap: 8px;
}

.NB-inline-action-buttons .NB-button {
    padding: 8px 16px;
    font-size: 13px;
    border-radius: 6px;
}

.NB-inline-action-buttons .NB-button.NB-primary {
    background: #707070;
    color: white;
    border: none;
}

.NB-inline-action-buttons .NB-button.NB-primary:hover {
    background: #505050;
}

/* Split suggestions in inline panel */
.NB-split-suggestions {
    width: 100%;
    margin: 8px 0;
}

.NB-split-suggestion-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    background: #FFF;
    border: 1px solid #E0E0E0;
    border-radius: 4px;
    margin-bottom: 4px;
    font-size: 13px;
}

.NB-split-suggestion-num {
    color: #999;
    width: 20px;
}

.NB-split-suggestion-name {
    flex: 1;
    font-weight: 500;
    color: #333;
}

.NB-split-suggestion-count {
    color: #888;
    font-size: 12px;
}

.NB-category-manager-suggestions {
    padding: 16px 20px;
    border-bottom: 1px solid #E0E0E0;
    max-height: 200px;
    overflow-y: auto;
}

.NB-category-manager-section-title {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    color: #888;
    margin-bottom: 12px;
}

.NB-merge-suggestions-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.NB-merge-suggestions-empty {
    font-size: 13px;
    color: #999;
    font-style: italic;
}

.NB-merge-suggestion {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    background: #FFF8E1;
    border: 1px solid #FFE082;
    border-radius: 8px;
}

.NB-merge-suggestion-categories {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    flex: 1;
}

.NB-merge-suggestion-pill {
    padding: 4px 10px;
    background: #FFF;
    border: 1px solid #E0E0E0;
    border-radius: 12px;
    font-size: 12px;
    color: #666;
}

.NB-merge-suggestion-arrow {
    color: #888;
    font-size: 14px;
}

.NB-merge-suggestion-target {
    font-weight: 500;
    color: #333;
    font-size: 13px;
}

.NB-merge-suggestion-apply {
    padding: 6px 12px;
    font-size: 12px;
}

.NB-category-manager-list-wrapper {
    flex: 1;
    padding: 16px 20px;
    overflow-y: auto;
}

.NB-category-manager-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.NB-category-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    background: #FFF;
    border: 1px solid #E8E8E8;
    border-radius: 6px;
    transition: all 0.15s ease;
}

.NB-category-item:hover {
    background: #F8F8F8;
    border-color: #D0D0D0;
}

.NB-category-item.NB-selected {
    background: #E3F2FD;
    border-color: #5C89C9;
}

.NB-category-checkbox {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.NB-category-name {
    flex: 1;
    font-size: 14px;
    color: #333;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.NB-category-count {
    font-size: 12px;
    color: #888;
    background: #E8E8E8;
    padding: 2px 8px;
    border-radius: 10px;
}

.NB-category-actions {
    display: flex;
    gap: 4px;
}

.NB-category-actions button {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px 8px;
    opacity: 0.4;
    transition: opacity 0.15s ease;
    font-size: 14px;
}

.NB-category-actions button:hover {
    opacity: 1;
}

.NB-category-actions button:disabled {
    cursor: wait;
}

/* ====================================== */
/* Tabbed Category Manager - New Styles   */
/* ====================================== */

/* Increase modal width for drag-drop interface */
.NB-category-manager-modal {
    width: 720px;
    height: 600px;
    max-height: 85vh;
}

/* Tab bar - Clean, borderless design */
.NB-category-manager-tabs {
    display: flex;
    background: #FAFAFA;
    padding: 12px 28px 0;
    gap: 6px;
}

.NB-category-manager-tab {
    padding: 10px 18px;
    font-size: 13px;
    font-weight: 500;
    color: #888;
    cursor: pointer;
    background: transparent;
    border: none;
    transition: all 0.15s ease;
    border-radius: 6px 6px 0 0;
    position: relative;
}

.NB-category-manager-tab:hover {
    color: #555;
    background: rgba(0, 0, 0, 0.04);
}

.NB-category-manager-tab.NB-active {
    color: #333;
    background: #FFF;
    font-weight: 600;
    box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.04);
}

/* Tab content container */
.NB-category-manager-tab-content {
    flex: 1;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.NB-category-manager-merge-tab,
.NB-category-manager-split-tab,
.NB-category-manager-all-tab {
    display: none;
    flex: 1;
    overflow-y: auto;
    padding: 24px 32px;
    flex-direction: column;
    background: #FFF;
}

.NB-category-manager-merge-tab.NB-active,
.NB-category-manager-split-tab.NB-active,
.NB-category-manager-all-tab.NB-active {
    display: flex;
}

/* Section title (reused across tabs) - subtle, no border */
.NB-section-title {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: #999;
    margin-bottom: 16px;
}

/* ==================== */
/* Merge Tab Styles     */
/* ==================== */

.NB-merge-actions-bar {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 20px;
}

.NB-merge-groups-container {
    flex: 1;
    overflow-y: auto;
}

.NB-merge-empty {
    text-align: center;
    color: #888;
    font-size: 14px;
    padding: 40px 20px;
    font-style: italic;
}

.NB-merge-group {
    background: #F8F9FA;
    border: none;
    border-radius: 12px;
    margin-bottom: 20px;
    transition: all 0.15s ease;
}

.NB-merge-group.NB-drag-over {
    background: #EDF4FC;
    box-shadow: inset 0 0 0 2px #5C89C9;
}

.NB-merge-group-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px 12px;
}

.NB-merge-group-label {
    font-size: 11px;
    color: #888;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.NB-merge-group-target-input {
    flex: 1;
    padding: 8px 12px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    background: #FFF;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.NB-merge-group-target-input:focus {
    outline: none;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08), 0 0 0 2px rgba(92, 137, 201, 0.3);
}

.NB-merge-group-actions {
    display: flex;
    gap: 8px;
}

.NB-merge-group-delete {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 18px;
    color: #999;
    padding: 4px 8px;
    line-height: 1;
    transition: color 0.15s ease;
}

.NB-merge-group-delete:hover {
    color: #C62828;
}

.NB-merge-group-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 8px 20px 16px;
    min-height: 48px;
    transition: background 0.15s ease;
}

.NB-merge-group-categories.NB-drop-target {
    background: transparent;
}

.NB-merge-group-categories.NB-drag-over {
    background: rgba(92, 137, 201, 0.06);
    border-radius: 0 0 12px 12px;
}

/* Draggable category pills - clean, subtle shadow only */
.NB-merge-category-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 12px;
    background: #FFF;
    border: none;
    border-radius: 6px;
    cursor: grab;
    transition: all 0.15s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.NB-merge-category-pill:hover {
    background: #FFF;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    transform: translateY(-1px);
}

.NB-merge-category-pill.NB-dragging {
    opacity: 0.5;
    cursor: grabbing;
}

.NB-pill-name {
    font-size: 13px;
    color: #444;
    font-weight: 500;
}

.NB-pill-count {
    font-size: 11px;
    color: #777;
    background: transparent;
    padding: 0;
}

.NB-pill-exclude {
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: #999;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.15s ease;
    margin-left: 2px;
}

.NB-merge-category-pill:hover .NB-pill-exclude {
    opacity: 1;
}

.NB-pill-exclude:hover {
    color: #C62828;
}

/* Unassigned area - subtle, clean */
.NB-merge-unassigned-area {
    margin-top: 20px;
    padding-top: 16px;
}

.NB-merge-unassigned-title {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: #999;
    margin-bottom: 12px;
}

.NB-merge-unassigned-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    min-height: 48px;
    padding: 16px;
    background: #F5F6F7;
    border: none;
    border-radius: 10px;
    transition: all 0.15s ease;
}

.NB-merge-unassigned-list.NB-drop-target {
    background: #F0F1F2;
}

.NB-merge-unassigned-list.NB-drag-over {
    background: #E8F5E9;
}

.NB-unassigned-hint {
    color: #AAA;
    font-size: 13px;
    font-style: italic;
}

/* Merge tab buttons - clean solid style */
.NB-merge-tab-actions {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 16px;
}

.NB-apply-all-merges {
    padding: 8px 18px;
    font-size: 13px;
    font-weight: 500;
    background: linear-gradient(135deg, #5C89C9 0%, #4A77B7 100%);
    color: #FFF;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 6px rgba(92, 137, 201, 0.3);
}

.NB-apply-all-merges:hover {
    background: linear-gradient(135deg, #4A77B7 0%, #3A67A7 100%);
    box-shadow: 0 3px 10px rgba(92, 137, 201, 0.4);
    transform: translateY(-1px);
}

button.NB-merge-group-apply,
button.NB-merge-group-apply.NB-button {
    padding: 6px 14px !important;
    font-size: 12px !important;
    font-weight: 500 !important;
    background: #F0F4F8 !important;
    color: #5C89C9 !important;
    border: none !important;
    border-radius: 5px !important;
    cursor: pointer !important;
    transition: all 0.15s ease !important;
    box-shadow: none !important;
    text-transform: none !important;
    margin: 0 !important;
}

button.NB-merge-group-apply:hover,
button.NB-merge-group-apply.NB-button:hover {
    background: #E3EBF3 !important;
}

/* ==================== */
/* Split Tab Styles     */
/* ==================== */

.NB-split-empty {
    text-align: center;
    color: #888;
    font-size: 14px;
    padding: 40px 20px;
    font-style: italic;
}

.NB-split-candidates-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.NB-split-candidate {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: #F8F9FA;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.15s ease;
}

.NB-split-candidate:hover {
    background: #EEF0F2;
}

.NB-split-candidate.NB-selected {
    background: #E3F2FD;
}

.NB-split-candidate-name {
    font-size: 14px;
    color: #333;
    font-weight: 500;
    flex: 1;
}

.NB-split-candidate-count {
    font-size: 12px;
    color: #777;
    margin-right: 12px;
}

.NB-split-candidate-action {
    font-size: 12px;
    color: #5C89C9;
    font-weight: 500;
    opacity: 0;
    transition: opacity 0.15s ease;
}

.NB-split-candidate:hover .NB-split-candidate-action {
    opacity: 1;
}

/* Split suggestions panel */
.NB-split-suggestions-panel {
    margin-top: 20px;
    padding: 16px;
    background: #FFF8E1;
    border: 1px solid #FFE082;
    border-radius: 8px;
}

.NB-split-panel-header {
    font-size: 14px;
    font-weight: 500;
    color: #333;
    margin-bottom: 12px;
}

.NB-split-loading {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px;
    justify-content: center;
    color: #666;
}

.NB-loading-spinner {
    font-size: 20px;
}

.NB-split-results {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.NB-split-result-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    background: #FFF;
    border: 1px solid #E0E0E0;
    border-radius: 6px;
}

.NB-split-result-checkbox {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.NB-split-result-name-input {
    flex: 1;
    padding: 6px 10px;
    border: 1px solid #D0D0D0;
    border-radius: 4px;
    font-size: 14px;
}

.NB-split-result-name-input:focus {
    border-color: #5C89C9;
    outline: none;
}

.NB-split-result-items {
    font-size: 12px;
    color: #888;
    white-space: nowrap;
}

.NB-split-actions {
    display: flex;
    gap: 12px;
    margin-top: 16px;
    justify-content: flex-end;
}

/* ========================== */
/* All Categories Tab Styles  */
/* ========================== */

.NB-all-categories-empty {
    text-align: center;
    color: #888;
    font-size: 14px;
    padding: 40px 20px;
    font-style: italic;
}

.NB-all-categories-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.NB-all-category-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: #F8F9FA;
    border: none;
    border-radius: 8px;
    transition: all 0.15s ease;
}

.NB-all-category-item:hover {
    background: #EEF0F2;
}

.NB-all-category-name {
    flex: 1;
    display: flex;
    align-items: center;
}

.NB-all-category-text {
    font-size: 14px;
    color: #333;
    font-weight: 500;
}

.NB-all-category-input {
    flex: 1;
    padding: 6px 10px;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    outline: none;
    background: #FFF;
    box-shadow: 0 0 0 2px rgba(92, 137, 201, 0.3);
}

.NB-all-category-input.NB-hidden {
    display: none;
}

.NB-all-category-text.NB-hidden {
    display: none;
}

.NB-all-category-count {
    font-size: 12px;
    color: #777;
    background: transparent;
    padding: 0;
}

.NB-all-category-actions {
    display: flex;
    gap: 4px;
}

.NB-all-category-actions button {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px 8px;
    opacity: 0.4;
    transition: opacity 0.15s ease;
    font-size: 14px;
}

.NB-all-category-actions button:hover {
    opacity: 1;
}

.NB-all-category-actions button.NB-hidden {
    display: none;
}

/* ================================ */
/* Category Manager Dark Mode */
/* ================================ */

.NB-dark .NB-category-manager-overlay {
    background: rgba(0, 0, 0, 0.7);
}

.NB-dark .NB-category-manager-modal {
    background: #1E1E1E;
    box-shadow: 0 16px 64px rgba(0, 0, 0, 0.6);
    border: none;
}

.NB-dark .NB-category-manager-header {
    background: #252525;
    border-bottom: 1px solid #333;
}

.NB-dark .NB-category-manager-header h3 {
    color: #E0E0E0;
}

.NB-dark .NB-category-manager-close {
    color: #666;
}

.NB-dark .NB-category-manager-close:hover {
    color: #AAA;
}

/* Dark mode tabs */
.NB-dark .NB-category-manager-tabs {
    background: #252525;
    border-bottom: 1px solid #333;
}

.NB-dark .NB-category-manager-tab {
    color: #888;
    background: transparent;
}

.NB-dark .NB-category-manager-tab:hover {
    color: #BBB;
    background: rgba(255, 255, 255, 0.05);
}

.NB-dark .NB-category-manager-tab.NB-active {
    color: #E0E0E0;
    background: #1E1E1E;
    box-shadow: none;
}

/* Dark mode tab content */
.NB-dark .NB-category-manager-tab-content {
    background: #1E1E1E;
}

.NB-dark .NB-category-manager-merge-tab,
.NB-dark .NB-category-manager-split-tab,
.NB-dark .NB-category-manager-all-tab {
    background: #1E1E1E;
}

/* Dark mode merge groups */
.NB-dark .NB-merge-group {
    background: #2A2A2A;
    border: 1px solid #3A3A3A;
}

.NB-dark .NB-merge-group:hover {
    border-color: #444;
}

.NB-dark .NB-merge-group-target-input {
    background: #1E1E1E;
    color: #E0E0E0;
    border: 1px solid #444;
    box-shadow: none;
}

.NB-dark .NB-merge-group-target-input:focus {
    border-color: #5C89C9;
    outline: none;
}

/* Dark mode category pills */
.NB-dark .NB-merge-category-pill {
    background: #333;
    color: #DDD;
    border: 1px solid #444;
    box-shadow: none;
}

.NB-dark .NB-merge-category-pill:hover {
    background: #3D3D3D;
    border-color: #555;
}

.NB-dark .NB-merge-category-pill.NB-dragging {
    background: #4A6A9E;
    border-color: #5C89C9;
}

.NB-dark .NB-pill-name {
    color: #DDD;
}

.NB-dark .NB-pill-count {
    color: #888;
}

.NB-dark .NB-pill-exclude {
    color: #666;
}

.NB-dark .NB-pill-exclude:hover {
    color: #E57373;
}

/* Dark mode merge group apply button */
.NB-dark button.NB-merge-group-apply,
.NB-dark button.NB-merge-group-apply.NB-button {
    background: #333 !important;
    color: #8AB4F8 !important;
    border: 1px solid #444 !important;
}

.NB-dark button.NB-merge-group-apply:hover,
.NB-dark button.NB-merge-group-apply.NB-button:hover {
    background: #3D3D3D !important;
    border-color: #5C89C9 !important;
}

/* Dark mode unassigned area */
.NB-dark .NB-unassigned-categories {
    background: #252525;
    border: 1px dashed #444;
}

.NB-dark .NB-unassigned-categories.NB-drop-active {
    background: #2A3A4A;
    border-color: #5C89C9;
}

.NB-dark .NB-unassigned-label {
    color: #666;
}

/* Dark mode Apply All Merges button */
.NB-dark .NB-apply-all-merges {
    background: linear-gradient(135deg, #4A6A9E 0%, #3D5A80 100%);
    color: #FFF;
    border: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.NB-dark .NB-apply-all-merges:hover {
    background: linear-gradient(135deg, #5A7AAE 0%, #4A6A9E 100%);
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.4);
}

/* Dark mode status messages */
.NB-dark .NB-category-manager-status {
    background: #252525;
    color: #AAA;
}

.NB-dark .NB-category-manager-status.NB-success {
    background: rgba(76, 175, 80, 0.15);
    color: #81C784;
}

.NB-dark .NB-category-manager-status.NB-error {
    background: rgba(244, 67, 54, 0.15);
    color: #E57373;
}

/* Dark mode split tab */
.NB-dark .NB-split-candidate {
    background: #2A2A2A;
    border: 1px solid #3A3A3A;
}

.NB-dark .NB-split-candidate:hover {
    background: #333;
    border-color: #444;
}

.NB-dark .NB-split-candidate.NB-selected {
    background: #2D3A4D;
    border-color: #5C89C9;
}

.NB-dark .NB-split-candidate-name {
    color: #DDD;
}

.NB-dark .NB-split-candidate-count {
    color: #888;
}

.NB-dark .NB-split-loading {
    color: #888;
}

.NB-dark .NB-split-suggestions-panel {
    background: #252525;
    border: 1px solid #3A3A3A;
}

.NB-dark .NB-split-suggestion {
    background: #2A2A2A;
    border: 1px solid #3A3A3A;
}

.NB-dark .NB-split-suggestion:hover {
    background: #333;
    border-color: #444;
}

.NB-dark .NB-split-suggestion-name {
    color: #DDD;
}

.NB-dark .NB-split-suggestion-name input {
    background: #1E1E1E;
    color: #E0E0E0;
    border: 1px solid #444;
}

/* Dark mode all categories tab */
.NB-dark .NB-all-category-item {
    background: #2A2A2A;
    border: 1px solid #3A3A3A;
}

.NB-dark .NB-all-category-item:hover {
    background: #333;
    border-color: #444;
}

.NB-dark .NB-all-category-name {
    color: #DDD;
}

.NB-dark .NB-all-category-name input {
    background: #1E1E1E;
    color: #E0E0E0;
    border: 1px solid #444;
}

.NB-dark .NB-all-category-count {
    color: #888;
}

.NB-dark .NB-all-category-actions button {
    color: #AAA;
}

.NB-dark .NB-all-category-actions button:hover {
    color: #E0E0E0;
}

/* Dark mode no suggestions message */
.NB-dark .NB-merge-no-suggestions,
.NB-dark .NB-split-no-candidates {
    color: #666;
}

/* Dark mode adjustments */
.NB-dark .NB-archive-view {
    background: #1a1a1a;
}

.NB-dark .NB-archive-header {
    border-color: #333;
}

.NB-dark .NB-archive-tab {
    border-color: #444;
    color: #999;
}

.NB-dark .NB-archive-tab:hover {
    background: #2a2a2a;
    border-color: #555;
    color: #CCC;
}

.NB-dark .NB-archive-tab.NB-active {
    background: #5C89C9;
    border-color: #5C89C9;
    color: #FFF;
}

/* Dark mode - Conversation Sidebar */
.NB-dark .NB-archive-conversation-sidebar {
    background: transparent;
    border-left-color: #333;
}

.NB-dark .NB-archive-new-conversation {
    background: transparent;
    border-color: #444;
    color: #999;
}

.NB-dark .NB-archive-new-conversation:hover {
    background: #2a2a2a;
    border-color: #555;
    color: #CCC;
}

.NB-dark .NB-new-chat-icon {
    filter: brightness(0) invert(0.6);
}

.NB-dark .NB-archive-new-conversation:hover .NB-new-chat-icon {
    filter: brightness(0) invert(0.8);
}

.NB-dark .NB-archive-conversation-item:hover {
    background: #2a2a2a;
}

.NB-dark .NB-archive-conversation-item.NB-active {
    background: #2d3a4d;
}

.NB-dark .NB-archive-conversation-item.NB-active:hover {
    background: #354559;
}

.NB-dark .NB-archive-conversation-title {
    color: #DDD;
}

.NB-dark .NB-archive-conversation-date {
    color: #777;
}

.NB-dark .NB-archive-conversations-empty {
    color: #666;
}

.NB-dark .NB-archive-sidebar-toggle {
    background: transparent;
    border-color: #444;
}

.NB-dark .NB-archive-sidebar-toggle:hover {
    background: #2a2a2a;
    border-color: #555;
}

.NB-dark .NB-archive-sidebar-toggle.NB-collapsed {
    background: #333;
    border-color: #555;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.NB-dark .NB-archive-sidebar-toggle.NB-collapsed:hover {
    background: #3a3a3a;
    border-color: #666;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}

.NB-dark .NB-archive-sidebar-toggle::before {
    filter: brightness(0) invert(0.7);
}

/* Dark mode - Extensions Button & Popover */
.NB-dark .NB-archive-extensions-button {
    border-color: #444;
    color: #999;
}

.NB-dark .NB-archive-extensions-button:hover {
    background: #2a2a2a;
    border-color: #555;
    color: #CCC;
}

.NB-dark .NB-archive-extensions-icon {
    filter: brightness(0) invert(0.7);
}

.NB-dark .NB-archive-extensions-popover {
    background: #1e1e1e;
    border-color: #444;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.NB-dark .NB-archive-extension-link:hover {
    background: #2a2a2a;
}

.NB-dark .NB-archive-extension-name {
    color: #DDD;
}

.NB-dark .NB-archive-extension-desc {
    color: #777;
}

/* Dark mode - Empty State */
.NB-dark .NB-archive-empty-icon {
    filter: brightness(0) invert(0.5);
}

.NB-dark .NB-archive-empty-title {
    color: #DDD;
}

.NB-dark .NB-archive-empty-subtitle {
    color: #999;
}

.NB-dark .NB-archive-empty-extensions-title {
    color: #777;
}

.NB-dark .NB-archive-empty-extension-btn {
    background: linear-gradient(to bottom, #2a2a2a, #222);
    border-color: #444;
}

.NB-dark .NB-archive-empty-extension-btn:hover {
    background: linear-gradient(to bottom, #333, #2a2a2a);
    border-color: #5C89C9;
    box-shadow: 0 4px 12px rgba(92, 137, 201, 0.2);
}

.NB-dark .NB-empty-ext-name {
    color: #DDD;
}

.NB-dark .NB-empty-ext-desc {
    color: #888;
}

.NB-dark .NB-archive-empty-features {
    background: #252525;
}

.NB-dark .NB-archive-feature-text {
    color: #AAA;
}

/* Dark mode - Assistant Tab Extensions */
.NB-dark .NB-archive-assistant-extensions {
    background: linear-gradient(135deg, #252525 0%, #1e1e1e 100%);
    border-color: #3a3a3a;
}

.NB-dark .NB-archive-assistant-extensions-header {
    color: #DDD;
}

.NB-dark .NB-assistant-ext-header-icon {
    filter: brightness(0) invert(0.7);
}

.NB-dark .NB-archive-assistant-extensions-close {
    filter: brightness(0) invert(0.7);
}

.NB-dark .NB-archive-assistant-extensions-desc {
    color: #999;
}

.NB-dark .NB-archive-assistant-ext-link {
    background: #2a2a2a;
    border-color: #444;
    color: #DDD;
}

.NB-dark .NB-archive-assistant-ext-link:hover {
    border-color: #5C89C9;
    box-shadow: 0 2px 8px rgba(92, 137, 201, 0.2);
}

.NB-dark .NB-archive-assistant-message.NB-assistant {
    background: #2a2a2a;
    border-color: #444;
    color: #DDD;
}

.NB-dark .NB-archive-assistant-message.NB-tool-status {
    background: transparent;
    border-color: rgba(92, 137, 201, 0.35);
}

.NB-dark .NB-archive-message-tool {
    color: #777;
}

.NB-dark .NB-tool-icon {
    border-color: rgba(92, 137, 201, 0.2);
    border-top-color: rgba(92, 137, 201, 0.6);
}

.NB-dark .NB-archive-message-content h3 {
    color: #EEE;
}

.NB-dark .NB-archive-message-content h4 {
    color: #DDD;
}

.NB-dark .NB-archive-message-content .NB-assistant-story-link {
    color: #7AA3D5;
    border-bottom-color: #7AA3D5;
}

.NB-dark .NB-archive-message-content .NB-assistant-story-link:hover {
    color: #9BC1EB;
    border-bottom-color: #9BC1EB;
}

.NB-dark .NB-archive-assistant-welcome {
    color: #999;
}

.NB-dark .NB-archive-welcome-title {
    color: #DDD;
}

.NB-dark .NB-archive-suggestion {
    background: #2a2a2a;
    border-color: #444;
    color: #AAA;
}

.NB-dark .NB-archive-suggestion:hover {
    background: #5C89C9;
    border-color: #5C89C9;
    color: #FFF;
}

.NB-dark .NB-archive-assistant-input-wrapper {
    background: #2a2a2a;
    border-color: #444;
}

.NB-dark .NB-archive-assistant-input {
    color: #DDD;
}

.NB-dark .NB-archive-tool-status {
    background: transparent;
    border-left-color: rgba(92, 137, 201, 0.3);
    color: #777;
}

.NB-dark .NB-tool-spinner {
    border-color: rgba(92, 137, 201, 0.2);
    border-top-color: rgba(92, 137, 201, 0.6);
}

.NB-dark .NB-archive-tool-line {
    color: #777;
}

.NB-dark .NB-archive-tool-line .NB-tool-check::before {
    color: rgba(100, 180, 100, 0.7);
}

.NB-dark .NB-archive-tool-line .NB-tool-spinner {
    border-color: rgba(92, 137, 201, 0.2);
    border-top-color: rgba(92, 137, 201, 0.6);
}

.NB-dark .NB-archive-tool-preview {
    color: #555;
}

.NB-dark .NB-archive-process-log .NB-archive-tool-status {
    color: #777;
}

.NB-dark .NB-archive-process-log .NB-archive-tool-status.NB-complete::before {
    color: rgba(100, 180, 100, 0.7);
}

.NB-dark .NB-archive-upgrade-prompt {
    background: linear-gradient(135deg, #3D3520 0%, #4D3A18 100%);
    border-color: #6B5020;
    color: #D4B86A;
}

.NB-dark .NB-archive-assistant-input::placeholder {
    color: #777;
}

.NB-dark .NB-archive-assistant-send::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23777' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 2L11 13'/%3E%3Cpath d='M22 2L15 22L11 13L2 9L22 2Z'/%3E%3C/svg%3E");
}

.NB-dark .NB-archive-assistant-send:hover {
    background: #3a3a3a;
}

.NB-dark .NB-archive-assistant-voice-button:hover {
    background-color: #3a3a3a;
}

.NB-dark .NB-archive-assistant-voice-icon {
    filter: brightness(0) invert(0.6);
}

.NB-dark .NB-archive-assistant-voice-button:hover .NB-archive-assistant-voice-icon {
    filter: brightness(0) invert(0.8);
}

.NB-dark .NB-archive-assistant-voice-button.NB-recording .NB-archive-assistant-voice-icon,
.NB-dark .NB-archive-assistant-voice-button.NB-transcribing .NB-archive-assistant-voice-icon {
    filter: brightness(0) invert(1);
}

.NB-dark .NB-archive-assistant-input-wrapper:focus-within .NB-archive-assistant-send::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235C89C9' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 2L11 13'/%3E%3Cpath d='M22 2L15 22L11 13L2 9L22 2Z'/%3E%3C/svg%3E");
}

.NB-dark .NB-archive-assistant-premium-fade {
    background: linear-gradient(to bottom, rgba(42, 42, 42, 0) 0%, rgba(42, 42, 42, 1) 100%);
}

.NB-dark .NB-archive-assistant-premium-notice {
    background: #222;
    border-color: #444;
    color: #999;
}

.NB-dark .NB-archive-assistant-premium-notice .NB-premium-link {
    color: #7aa3d4;
}

.NB-dark .NB-archive-suggestions {
    border-color: #333;
}

.NB-dark .NB-archive-filters {
    border-color: #333;
}

.NB-dark .NB-archive-category-filter:hover,
.NB-dark .NB-archive-domain-filter:hover,
.NB-dark .NB-archive-date-filter:hover {
    background: #333;
}

.NB-dark .NB-archive-category-filter.NB-active,
.NB-dark .NB-archive-domain-filter.NB-active,
.NB-dark .NB-archive-date-filter.NB-active,
.NB-dark .NB-archive-category-filter.NB-active:hover,
.NB-dark .NB-archive-domain-filter.NB-active:hover,
.NB-dark .NB-archive-date-filter.NB-active:hover {
    background: #5C89C9;
    color: #FFF;
}

.NB-dark .NB-archive-category-filter.NB-disabled,
.NB-dark .NB-archive-domain-filter.NB-disabled,
.NB-dark .NB-archive-date-filter.NB-disabled {
    opacity: 0.4;
    pointer-events: none;
}

.NB-dark .NB-archive-filter-count {
    background: #333;
    color: #AAA;
}

/* Dark mode: Custom date filter */
.NB-dark .NB-archive-date-custom-clear {
    color: #666;
}

.NB-dark .NB-archive-date-custom-clear:hover {
    color: #f66;
}

/* Dark mode: Date picker */
.NB-dark .NB-date-picker-popover {
    background: #2a2a2a;
    border-color: #444;
}

.NB-dark .NB-date-picker-title {
    color: #DDD;
}

.NB-dark .NB-date-picker-divider {
    background: #444;
}

.NB-dark .NB-date-picker-custom-label {
    color: #777;
}

.NB-dark .NB-date-picker-label {
    color: #999;
}

.NB-dark .NB-date-picker-input {
    background: #333;
    border-color: #444;
    color: #DDD;
}

.NB-dark .NB-date-picker-input:focus {
    border-color: #5C89C9;
}

.NB-dark .NB-date-picker-actions {
    border-color: #444;
}

.NB-dark .NB-date-picker-clear {
    background: #444;
    color: #AAA;
}

.NB-dark .NB-date-picker-clear:hover {
    background: #555;
}

/* Dark mode: No results state */
.NB-dark .NB-no-results-title {
    color: #DDD;
}

.NB-dark .NB-no-results-subtitle {
    color: #888;
}

.NB-dark .NB-no-results-img {
    filter: invert(1);
    opacity: 0.3;
}

.NB-dark .NB-filter-chip {
    background: #333;
    color: #AAA;
}

.NB-dark .NB-filter-chip-remove {
    color: #777;
}

.NB-dark .NB-filter-chip-remove:hover {
    color: #F88;
}

/* Dark mode: Icon filters for sidebar buttons */
.NB-dark .NB-manage-icon,
.NB-dark .NB-date-picker-icon {
    filter: brightness(0) invert(0.6);
}

.NB-dark .NB-archive-manage-categories:hover .NB-manage-icon,
.NB-dark .NB-archive-date-picker-toggle:hover .NB-date-picker-icon {
    filter: brightness(0) invert(0.8);
}

.NB-dark .NB-archive-item {
    background: #2a2a2a;
    border-color: #444;
}

.NB-dark .NB-archive-item-title {
    color: #DDD;
}

.NB-dark .NB-archive-item-favicon-placeholder {
    background: #444;
}

.NB-dark .NB-archive-item-category {
    background: #333;
}

.NB-dark .NB-archive-item-recategorize {
    color: #666;
}

.NB-dark .NB-archive-item-recategorize:hover {
    color: #7AA3D9;
}

.NB-dark .NB-archive-item-category.NB-pending {
    background: #2a2a2a;
    color: #666;
}

.NB-dark .NB-archive-item-stats {
    color: #888;
}

.NB-dark .NB-archive-stat-value {
    color: #AAA;
}

/* Dark Mode - Search Bar */
.NB-dark .NB-archive-search-container {
    border-color: #444;
    background: transparent;
}

.NB-dark .NB-archive-search-wrapper {
    background: #222;
    border-color: #444;
}

.NB-dark .NB-archive-search-wrapper:focus-within {
    background: #1a1a1a;
    border-color: #5C89C9;
}

.NB-dark .NB-archive-search-input {
    color: #DDD;
}

.NB-dark .NB-archive-search-input::placeholder {
    color: #666;
}

.NB-dark .NB-archive-search-icon {
    filter: invert(0.6);
}

.NB-dark .NB-archive-search-clear {
    filter: invert(0.6);
}

/* Dark Mode - Content Preview */
.NB-dark .NB-archive-item-content-preview {
    color: #999;
}

.NB-dark .NB-archive-item-content-preview.NB-highlighted {
    color: #BBB;
}

.NB-dark .NB-archive-item-content-preview mark,
.NB-dark .NB-archive-item-title mark {
    background: #5C4800;
    color: #FFE082;
}

/* Dark Mode - Settings Tab */
.NB-dark .NB-settings-empty-title {
    color: #CCC;
}

.NB-dark .NB-settings-empty-subtitle {
    color: #777;
}

.NB-dark .NB-settings-empty-icon {
    filter: invert(0.6);
}

.NB-dark .NB-archive-settings-header {
    border-color: #333;
}

.NB-dark .NB-archive-settings-title {
    color: #DDD;
}

.NB-dark .NB-archive-settings-desc {
    color: #999;
}

.NB-dark .NB-archive-settings-section {
    background: #252525;
    border-color: #333;
}

.NB-dark .NB-archive-settings-section-title {
    color: #CCC;
}

.NB-dark .NB-archive-settings-section-desc {
    color: #777;
}

.NB-dark .NB-blocklist-item {
    background: #2a2a2a;
    border-color: #444;
    color: #CCC;
}

.NB-dark .NB-blocklist-item:hover {
    border-color: #C44;
    background: #3a2525;
}

.NB-dark .NB-blocklist-remove:hover {
    background: #4a2a2a;
}

.NB-dark .NB-blocklist-remove-icon {
    filter: invert(0.6);
}

.NB-dark .NB-blocklist-empty {
    color: #666;
}

.NB-dark .NB-blocklist-input {
    background: #1a1a1a;
    border-color: #444;
    color: #DDD;
}

.NB-dark .NB-blocklist-input:focus {
    border-color: #5C89C9;
    box-shadow: 0 0 0 3px rgba(92, 137, 201, 0.25);
}

.NB-dark .NB-blocklist-input::placeholder {
    color: #666;
}

.NB-dark .NB-default-blocklist-section {
    background: #1e1e1e;
    border-color: #333;
}

.NB-dark .NB-default-blocklist-item {
    background: #333;
    color: #999;
}

.NB-dark .NB-default-blocklist-count {
    color: #666;
}

.NB-dark .NB-archive-settings-actions {
    border-color: #333;
}

.NB-dark .NB-blocklist-save.NB-disabled {
    background: #333;
    color: #666;
}

/* Dark mode: Domain Browser */
.NB-dark .NB-domain-browser-list {
    border-color: #333;
}

.NB-dark .NB-domain-browser-item {
    border-color: #333;
}

.NB-dark .NB-domain-browser-item:hover {
    background: #2a2a2a;
}

.NB-dark .NB-domain-browser-item.NB-blocked:hover {
    background: transparent;
}

.NB-dark .NB-domain-browser-name {
    color: #DDD;
}

.NB-dark .NB-domain-browser-count {
    color: #888;
}

.NB-dark .NB-domain-browser-action {
    color: #5C89C9;
}

.NB-dark .NB-domain-browser-status.NB-blocked-status {
    background: #555;
}

.NB-dark .NB-domain-browser-empty {
    color: #666;
}

.NB-dark .NB-domain-browser-count-total {
    color: #666;
}

/* Dark mode: Block Dialog */
.NB-dark .NB-block-dialog-overlay {
    background: rgba(0, 0, 0, 0.7);
}

.NB-dark .NB-block-dialog {
    background: #2a2a2a;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.NB-dark .NB-block-dialog-header {
    border-color: #444;
}

.NB-dark .NB-block-dialog-title {
    color: #DDD;
}

.NB-dark .NB-block-dialog-message {
    color: #999;
}

.NB-dark .NB-block-dialog-option {
    background: #333;
}

.NB-dark .NB-block-dialog-checkbox-label {
    color: #CCC;
}

.NB-dark .NB-block-dialog-actions {
    border-color: #444;
}

.NB-dark .NB-block-dialog-cancel {
    background: #333;
    border-color: #444;
    color: #AAA;
}

.NB-dark .NB-block-dialog-cancel:hover {
    background: #444;
    border-color: #555;
}

/* Mobile - Conversation Sidebar */
@media (max-width: 768px) {
    .NB-archive-conversation-sidebar {
        position: absolute;
        right: 0;
        top: 0;
        bottom: 0;
        z-index: 100;
        width: 280px;
        min-width: 280px;
        box-shadow: -2px 0 8px rgba(0, 0, 0, 0.1);
        background: #F8F9FA;
    }

    .NB-archive-conversation-sidebar.NB-collapsed {
        transform: translateX(100%);
        opacity: 1;
        width: 280px;
        min-width: 280px;
    }

    .NB-dark .NB-archive-conversation-sidebar {
        background: #1a1a1a;
    }

}

/* ========================================= */
/* Additional Tabbed Category Manager Styles */
/* ========================================= */

/* Merge tab action bar */
.NB-merge-tab-actions {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #E8E8E8;
}

/* Merge pills (alias for NB-merge-category-pill) */
.NB-merge-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: #F5F5F5;
    border: 1px solid #E0E0E0;
    border-radius: 16px;
    cursor: grab;
    transition: all 0.15s ease;
}

.NB-merge-pill:hover {
    background: #EBEBEB;
    border-color: #D0D0D0;
}

.NB-merge-pill.NB-dragging {
    opacity: 0.5;
    cursor: grabbing;
}

.NB-merge-pill-name {
    font-size: 13px;
    color: #333;
}

.NB-merge-pill-count {
    font-size: 11px;
    color: #888;
    background: #E0E0E0;
    padding: 2px 6px;
    border-radius: 10px;
}

.NB-merge-pill-exclude {
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: #999;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.15s ease;
    margin-left: 2px;
    background: none;
    border: none;
    padding: 0;
}

.NB-merge-pill:hover .NB-merge-pill-exclude {
    opacity: 1;
}

.NB-merge-pill-exclude:hover {
    color: #C62828;
}

/* Merge group pills container (drop zone) */
.NB-merge-group-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 12px 16px;
    min-height: 48px;
    transition: background 0.15s ease;
}

.NB-merge-group-pills.NB-drop-target {
    background: #F8F8F8;
}

.NB-merge-group-pills.NB-drag-over {
    background: #E3F2FD;
}

/* Merge target input */
.NB-merge-target-input {
    flex: 1;
    padding: 6px 10px;
    border: 1px solid #D0D0D0;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
}

.NB-merge-target-input:focus {
    border-color: #5C89C9;
    outline: none;
    box-shadow: 0 0 0 2px rgba(92, 137, 201, 0.2);
}

/* Unassigned drop zone */
.NB-unassigned-drop-zone {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    min-height: 48px;
    padding: 12px;
    background: #FAFAFA;
    border: 2px dashed #E0E0E0;
    border-radius: 8px;
    transition: all 0.15s ease;
}

.NB-unassigned-drop-zone.NB-drop-target {
    border-color: #D0D0D0;
}

.NB-unassigned-drop-zone.NB-drag-over {
    background: #E8F5E9;
    border-color: #81C784;
}

.NB-unassigned-placeholder {
    color: #AAA;
    font-size: 13px;
    font-style: italic;
}

/* Split tab styles */
.NB-split-tab {
    display: flex;
    flex-direction: column;
}

.NB-split-candidates-title,
.NB-all-categories-title {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    color: #888;
    margin-bottom: 12px;
}

.NB-split-suggestions-header {
    font-size: 14px;
    font-weight: 500;
    color: #333;
    margin-bottom: 12px;
}

.NB-split-suggestions-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.NB-split-suggestion-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    background: #FFF;
    border: 1px solid #E0E0E0;
    border-radius: 6px;
}

.NB-split-suggestion-checkbox {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.NB-split-suggestion-name-input {
    flex: 1;
    padding: 6px 10px;
    border: 1px solid #D0D0D0;
    border-radius: 4px;
    font-size: 14px;
}

.NB-split-suggestion-name-input:focus {
    border-color: #5C89C9;
    outline: none;
}

.NB-split-suggestion-count {
    font-size: 12px;
    color: #888;
    white-space: nowrap;
}

.NB-split-suggestions-panel.NB-loading {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px;
    justify-content: center;
    color: #666;
    background: #FFF8E1;
    border: 1px solid #FFE082;
    border-radius: 8px;
    margin-top: 16px;
}

.NB-split-loading-icon {
    font-size: 20px;
}

/* Inline rename for All Categories tab */
.NB-inline-rename-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
}

.NB-inline-rename-input {
    flex: 1;
    padding: 6px 10px;
    border: 1px solid #5C89C9;
    border-radius: 4px;
    font-size: 14px;
    outline: none;
}

.NB-inline-rename-save,
.NB-inline-rename-cancel {
    padding: 4px 8px;
    font-size: 14px;
    min-width: auto;
}

/* All category edit button */
.NB-all-category-edit {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px 8px;
    opacity: 0.4;
    transition: opacity 0.15s ease;
    font-size: 14px;
}

.NB-all-category-item:hover .NB-all-category-edit {
    opacity: 1;
}

/* Dark mode for new styles */
.NB-dark .NB-merge-pill {
    background: #333;
    border-color: #444;
}

.NB-dark .NB-merge-pill:hover {
    background: #3a3a3a;
    border-color: #555;
}

.NB-dark .NB-merge-pill-name {
    color: #DDD;
}

.NB-dark .NB-merge-pill-count {
    background: #444;
    color: #AAA;
}

.NB-dark .NB-merge-group-pills.NB-drag-over {
    background: rgba(92, 137, 201, 0.2);
}

.NB-dark .NB-unassigned-drop-zone {
    background: #222;
    border-color: #444;
}

.NB-dark .NB-unassigned-drop-zone.NB-drag-over {
    background: rgba(129, 199, 132, 0.15);
    border-color: #81C784;
}

.NB-dark .NB-split-suggestion-item {
    background: #2a2a2a;
    border-color: #444;
}

.NB-dark .NB-split-suggestions-panel.NB-loading {
    background: rgba(255, 248, 225, 0.1);
    border-color: rgba(255, 224, 130, 0.3);
    color: #AAA;
}

.NB-dark .NB-inline-rename-input {
    background: #222;
    border-color: #5C89C9;
    color: #DDD;
}

/* ============================================= */
/* = Category Manager Modal (Standard Pattern) = */
/* ============================================= */

/* Override SimpleModal container for this modal */
#simplemodal-container:has(.NB-modal-category-manager) {
    border-radius: 12px;
    overflow: hidden;
}

.NB-modal.NB-modal-category-manager {
    padding: 0;
    min-width: 700px;
    max-width: 800px;
}

/* Tab content panels - only override height/padding */
.NB-modal-category-manager .NB-tab {
    padding: 24px;
    height: auto;
    max-height: 500px;
}

/* Empty state message */
.NB-modal-category-manager .NB-category-empty {
    text-align: center;
    color: #888;
    font-size: 14px;
    padding: 40px 20px;
    font-style: italic;
}

/* ==================== */
/* = Merge Tab Styles = */
/* ==================== */

.NB-modal-category-manager .NB-merge-groups {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.NB-modal-category-manager .NB-merge-group {
    background: #F8F9FA;
    border-radius: 10px;
    overflow: hidden;
}

.NB-modal-category-manager .NB-merge-group-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
}

.NB-modal-category-manager .NB-merge-target-input {
    flex: 1;
    padding: 8px 12px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    background: #FFF;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.NB-modal-category-manager .NB-merge-target-input:focus {
    outline: none;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08), 0 0 0 2px rgba(92, 137, 201, 0.3);
}

.NB-modal-category-manager .NB-merge-group-remove {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: #999;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.15s ease;
}

.NB-modal-category-manager .NB-merge-group-remove:hover {
    color: #C62828;
    background: rgba(198, 40, 40, 0.1);
}

.NB-modal-category-manager .NB-merge-group-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 0 16px 14px;
    min-height: 40px;
}

.NB-modal-category-manager .NB-merge-group-pills.NB-drop-target {
    background: rgba(92, 137, 201, 0.08);
    border-radius: 0 0 10px 10px;
}

/* Category pills - clean, no borders */
.NB-modal-category-manager .NB-category-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: #FFF;
    border-radius: 6px;
    cursor: grab;
    transition: all 0.15s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.NB-modal-category-manager .NB-category-pill:hover {
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    transform: translateY(-1px);
}

.NB-modal-category-manager .NB-category-pill.NB-dragging {
    opacity: 0.5;
    cursor: grabbing;
}

.NB-modal-category-manager .NB-pill-name {
    font-size: 13px;
    color: #444;
    font-weight: 500;
}

.NB-modal-category-manager .NB-pill-count {
    font-size: 11px;
    color: #888;
    background: #F0F0F0;
    padding: 2px 6px;
    border-radius: 10px;
}

/* Unassigned zone */
.NB-modal-category-manager .NB-unassigned-zone {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid #EEE;
}

.NB-modal-category-manager .NB-unassigned-label {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #888;
    margin-bottom: 12px;
}

.NB-modal-category-manager .NB-unassigned-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    min-height: 48px;
    padding: 14px;
    background: #F5F6F7;
    border-radius: 8px;
}

.NB-modal-category-manager .NB-unassigned-pills.NB-drop-target {
    background: #E8F5E9;
}

.NB-modal-category-manager .NB-unassigned-hint {
    color: #AAA;
    font-size: 13px;
    font-style: italic;
}

/* Merge footer with summary and button */
.NB-modal-category-manager .NB-merge-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 24px;
    padding: 16px 20px;
    background: #F8F9FA;
    border-radius: 8px;
}

.NB-modal-category-manager .NB-merge-summary {
    font-size: 14px;
    color: #555;
}

.NB-modal-category-manager .NB-merge-actions {
    display: flex;
    gap: 12px;
}

/* ==================== */
/* = Split Tab Styles = */
/* ==================== */

.NB-modal-category-manager .NB-split-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.NB-modal-category-manager .NB-split-item {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    background: #F8F9FA;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.15s ease;
}

.NB-modal-category-manager .NB-split-item:hover {
    background: #EEF0F2;
}

.NB-modal-category-manager .NB-split-item.NB-selected {
    background: #E3F2FD;
}

.NB-modal-category-manager .NB-split-item-name {
    flex: 1;
    font-size: 14px;
    color: #333;
    font-weight: 500;
}

.NB-modal-category-manager .NB-split-item-count {
    font-size: 12px;
    color: #777;
    margin-right: 12px;
}

.NB-modal-category-manager .NB-split-item-action {
    font-size: 12px;
    color: #5C89C9;
    font-weight: 500;
    opacity: 0;
    transition: opacity 0.15s ease;
}

.NB-modal-category-manager .NB-split-item:hover .NB-split-item-action {
    opacity: 1;
}

/* Split panel */
.NB-modal-category-manager .NB-split-panel {
    margin-top: 20px;
    padding: 16px;
    background: #FFF8E1;
    border-radius: 8px;
}

.NB-modal-category-manager .NB-split-panel.NB-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 30px;
    color: #666;
}

.NB-modal-category-manager .NB-split-panel-header {
    font-size: 14px;
    font-weight: 500;
    color: #333;
    margin-bottom: 12px;
}

.NB-modal-category-manager .NB-split-suggestions {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.NB-modal-category-manager .NB-split-suggestion {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    background: #FFF;
    border-radius: 6px;
}

.NB-modal-category-manager .NB-split-checkbox {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.NB-modal-category-manager .NB-split-name-input {
    flex: 1;
    padding: 6px 10px;
    border: 1px solid #E0E0E0;
    border-radius: 4px;
    font-size: 14px;
}

.NB-modal-category-manager .NB-split-name-input:focus {
    border-color: #5C89C9;
    outline: none;
}

.NB-modal-category-manager .NB-split-count {
    font-size: 12px;
    color: #888;
}

.NB-modal-category-manager .NB-split-actions {
    display: flex;
    gap: 12px;
    margin-top: 16px;
    justify-content: flex-end;
}

/* ============================ */
/* = All Categories Tab Styles = */
/* ============================ */

.NB-modal-category-manager .NB-all-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.NB-modal-category-manager .NB-all-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    background: #F8F9FA;
    border-radius: 6px;
    transition: background 0.15s ease;
}

.NB-modal-category-manager .NB-all-item:hover {
    background: #EEF0F2;
}

.NB-modal-category-manager .NB-all-item-name {
    flex: 1;
    font-size: 14px;
    color: #333;
    font-weight: 500;
}

.NB-modal-category-manager .NB-all-item-count {
    font-size: 12px;
    color: #777;
}

.NB-modal-category-manager .NB-all-item-edit {
    font-size: 12px;
    color: #5C89C9;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.15s ease;
}

.NB-modal-category-manager .NB-all-item:hover .NB-all-item-edit {
    opacity: 1;
}

.NB-modal-category-manager .NB-all-rename-input {
    flex: 1;
    padding: 6px 10px;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    background: #FFF;
    box-shadow: 0 0 0 2px rgba(92, 137, 201, 0.3);
    outline: none;
}

/* ===================================== */
/* = Category Manager Modal Dark Mode = */
/* ===================================== */

.NB-dark .NB-modal-category-manager .NB-category-empty {
    color: #666;
}

/* Dark mode merge groups */
.NB-dark .NB-modal-category-manager .NB-merge-group {
    background: #2A2A2A;
}

.NB-dark .NB-modal-category-manager .NB-merge-target-input {
    background: #1E1E1E;
    color: #E0E0E0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.NB-dark .NB-modal-category-manager .NB-merge-group-remove {
    color: #666;
}

.NB-dark .NB-modal-category-manager .NB-merge-group-remove:hover {
    color: #E57373;
    background: rgba(229, 115, 115, 0.1);
}

.NB-dark .NB-modal-category-manager .NB-merge-group-pills.NB-drop-target {
    background: rgba(92, 137, 201, 0.15);
}

/* Dark mode pills */
.NB-dark .NB-modal-category-manager .NB-category-pill {
    background: #333;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.NB-dark .NB-modal-category-manager .NB-category-pill:hover {
    background: #3D3D3D;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}

.NB-dark .NB-modal-category-manager .NB-pill-name {
    color: #DDD;
}

.NB-dark .NB-modal-category-manager .NB-pill-count {
    background: #444;
    color: #AAA;
}

/* Dark mode unassigned */
.NB-dark .NB-modal-category-manager .NB-unassigned-zone {
    border-top-color: #333;
}

.NB-dark .NB-modal-category-manager .NB-unassigned-label {
    color: #666;
}

.NB-dark .NB-modal-category-manager .NB-unassigned-pills {
    background: #252525;
}

.NB-dark .NB-modal-category-manager .NB-unassigned-pills.NB-drop-target {
    background: rgba(129, 199, 132, 0.15);
}

.NB-dark .NB-modal-category-manager .NB-unassigned-hint {
    color: #555;
}

/* Dark mode footer */
.NB-dark .NB-modal-category-manager .NB-merge-footer {
    background: #252525;
}

.NB-dark .NB-modal-category-manager .NB-merge-summary {
    color: #AAA;
}

/* Dark mode split tab */
.NB-dark .NB-modal-category-manager .NB-split-item {
    background: #2A2A2A;
}

.NB-dark .NB-modal-category-manager .NB-split-item:hover {
    background: #333;
}

.NB-dark .NB-modal-category-manager .NB-split-item.NB-selected {
    background: #2D3A4D;
}

.NB-dark .NB-modal-category-manager .NB-split-item-name {
    color: #DDD;
}

.NB-dark .NB-modal-category-manager .NB-split-item-count {
    color: #777;
}

.NB-dark .NB-modal-category-manager .NB-split-panel {
    background: #2A2A2A;
}

.NB-dark .NB-modal-category-manager .NB-split-panel.NB-loading {
    color: #888;
}

.NB-dark .NB-modal-category-manager .NB-split-panel-header {
    color: #DDD;
}

.NB-dark .NB-modal-category-manager .NB-split-suggestion {
    background: #333;
}

.NB-dark .NB-modal-category-manager .NB-split-name-input {
    background: #1E1E1E;
    border-color: #444;
    color: #E0E0E0;
}

.NB-dark .NB-modal-category-manager .NB-split-count {
    color: #777;
}

/* Dark mode all categories tab */
.NB-dark .NB-modal-category-manager .NB-all-item {
    background: #2A2A2A;
}

.NB-dark .NB-modal-category-manager .NB-all-item:hover {
    background: #333;
}

.NB-dark .NB-modal-category-manager .NB-all-item-name {
    color: #DDD;
}

.NB-dark .NB-modal-category-manager .NB-all-item-count {
    color: #777;
}

.NB-dark .NB-modal-category-manager .NB-all-rename-input {
    background: #1E1E1E;
    color: #E0E0E0;
    box-shadow: 0 0 0 2px rgba(92, 137, 201, 0.4);
}

/* =============================== */
/* = Daily Briefing - Group View = */
/* =============================== */

/* reader.css: Briefing group container */
.NB-briefing-group {
    border-bottom: 1px solid #E0E0DC;
}

.NB-briefing-group:last-child {
    border-bottom: none;
}

/* reader.css: Briefing group header — styled like folder_title */
.NB-briefing-group-header {
    padding: 8px 10px 8px 12px;
    font-weight: bold;
    font-size: 11px;
    color: #68696B;
    letter-spacing: 0.5px;
    cursor: pointer;
    position: sticky;
    top: 0;
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 8px;
    background-color: #EAECE5;
    border-bottom: 1px solid #D8DBD2;
    user-select: none;
}

.NB-briefing-group-header:hover {
    background-color: #E1E6D7;
}

/* reader.css: Briefing collapse icon — reuses folder collapse pattern */
.NB-briefing-group-collapse-icon {
    width: 16px;
    height: 16px;
    background: transparent url('/media/embed/icons/circular/folder_collapse.png') no-repeat center center;
    background-size: 16px;
    opacity: 0.5;
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.NB-briefing-group-header:hover .NB-briefing-group-collapse-icon {
    opacity: 0.8;
}

.NB-briefing-group-header.NB-collapsed .NB-briefing-group-collapse-icon {
    background-image: url('/media/embed/icons/circular/folder_expand.png');
    background-size: 16px;
}

/* reader.css: Briefing date label */
.NB-briefing-group-date {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* reader.css: Briefing story count badge */
.NB-briefing-group-count {
    font-size: 10px;
    font-weight: normal;
    color: #8A8B8D;
    white-space: nowrap;
}

/* reader.css: Briefing summary toggle button (unused, kept for reference) */
.NB-briefing-summary-toggle {
    display: none;
    font-size: 10px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    color: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    padding: 1px 8px;
    cursor: pointer;
    white-space: nowrap;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.NB-briefing-summary-toggle:hover {
    background-color: rgba(0, 0, 0, 0.08);
    color: rgba(0, 0, 0, 0.6);
}

.NB-briefing-summary-toggle.NB-active {
    background-color: rgba(0, 0, 0, 0.1);
    color: rgba(0, 0, 0, 0.7);
}

/* reader.css: Briefing AI summary panel */
.NB-briefing-group-summary {
    padding: 12px 14px;
    font-size: 12px;
    line-height: 1.5;
    color: #404040;
    background-color: #F5F6F2;
    border-bottom: 1px solid #E0E0DC;
}

.NB-briefing-group-summary.NB-hidden {
    display: none;
}

.NB-briefing-group-summary p {
    margin: 0 0 8px;
}

.NB-briefing-group-summary p:last-child {
    margin-bottom: 0;
}

.NB-briefing-group-summary h3 {
    font-size: 13px;
    font-weight: bold;
    margin: 0 0 6px;
    color: #303030;
}

.NB-briefing-group-summary ul {
    margin: 4px 0;
    padding-left: 18px;
    list-style: disc;
}

.NB-briefing-group-summary li {
    margin-bottom: 4px;
}

/* reader.css: Links in AI summary that reference stories */
.NB-briefing-story-link {
    color: #405BA8;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    cursor: pointer;
    transition: border-color 0.15s ease;
}

.NB-briefing-story-link:hover {
    border-bottom-color: #405BA8;
}

/* reader.css: Favicons inline within briefing story links */
.NB-briefing-inline-favicon {
    display: inline-block;
    max-width: 16px;
    max-height: 16px;
    width: 16px;
    height: 16px;
    vertical-align: middle;
    margin-right: 2px;
    margin-top: -1px;
    background-size: 16px 16px;
    -webkit-mask-size: 16px 16px;
    mask-size: 16px 16px;
    border-radius: 2px;
    flex-shrink: 0;
}

img.NB-briefing-inline-favicon {
    max-width: 16px;
    max-height: 16px;
}

/* reader.css: Align favicon with first line of text in story detail (web only).
   The inline style has margin:0 for email; this override only applies in the web view. */
.NB-feed-story-content img.NB-briefing-inline-favicon {
    margin-top: 5px !important;
}

span.NB-briefing-inline-favicon {
    font-size: 14px;
    line-height: 16px;
}

/* reader.css: Section icons in briefing summary h3 headers (img embedded server-side) */
.NB-briefing-section-icon {
    display: inline-block;
    width: 1em;
    height: 1em;
    vertical-align: -0.1em;
    margin-right: 0.3em;
    filter: grayscale(1);
}

/* reader.css: Section icons in briefing settings/onboarding */
.NB-briefing-section-item-icon {
    width: 16px;
    height: 16px;
    margin-top: 1px;
    flex-shrink: 0;
    filter: grayscale(1);
}

/* reader.css: Briefing curated stories container */
.NB-briefing-group-stories {
    padding: 0;
}

/* reader.css: CSS transition for collapse/expand — avoids jQuery's overflow:hidden */
.NB-briefing-group-stories.NB-collapsing {
    transition: height 200ms ease;
}

/* reader.css: Individual story items in the briefing */
.NB-briefing-story-item {
    padding: 8px 12px;
    border-bottom: 1px solid #EBEBEB;
    cursor: default;
}

.NB-briefing-story-item:last-child {
    border-bottom: none;
}

.NB-briefing-story-item:hover {
    background-color: #F5F6F2;
}

/* reader.css: Story highlight animation when selected from summary link */
.NB-briefing-story-highlighted {
    background-color: #FFF8DC;
    transition: background-color 0.3s ease;
}

/* reader.css: Feed info row in briefing story item */
.NB-briefing-story-feed {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 3px;
}

.NB-briefing-story-favicon {
    width: 12px;
    height: 12px;
    border-radius: 2px;
    flex-shrink: 0;
    display: inline-block;
}

.NB-briefing-story-feed-title {
    font-size: 10px;
    color: #8A8B8D;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* reader.css: Story title link in briefing */
.NB-briefing-story-title {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: #303030;
    text-decoration: none;
    line-height: 1.3;
    margin-bottom: 2px;
}

.NB-briefing-story-title:hover {
    color: #405BA8;
}

/* reader.css: Story meta (author + date) */
.NB-briefing-story-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 10px;
    color: #8A8B8D;
}

.NB-briefing-story-author {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.NB-briefing-story-date {
    white-space: nowrap;
    flex-shrink: 0;
}

/* reader.css: Empty state for briefing */
.NB-briefing-empty {
    padding: 40px 20px;
    text-align: center;
    color: #8A8B8D;
    font-size: 13px;
    line-height: 1.5;
}

.NB-briefing-empty-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 12px;
    opacity: 0.3;
}

.NB-briefing-empty-title {
    font-size: 15px;
    font-weight: bold;
    color: #606060;
    margin-bottom: 6px;
}

/* reader.css: Briefing onboarding — full-pane setup screen for first-time users */
.NB-briefing-onboarding-view {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 100;
    overflow-y: auto;
    overflow-x: hidden;
    background-color: #F4F4F2;
    background: linear-gradient(180deg, #FAFAFA 0%, #F4F4F2 100%);
}

.NB-briefing-onboarding {
    padding: 0;
    max-width: 560px;
    margin: 24px auto;
}

.NB-briefing-onboarding-header {
    text-align: center;
    padding: 32px 20px 20px;
}

.NB-briefing-onboarding-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 12px;
    background: url('/media/img/icons/nouns/briefing.svg') no-repeat center;
    background-size: 48px;
    opacity: 0.6;
}

.NB-briefing-onboarding-title {
    font-size: 18px;
    font-weight: 700;
    color: #303030;
    margin-bottom: 6px;
}

.NB-briefing-onboarding-subtitle {
    font-size: 13px;
    color: #808080;
    line-height: 1.4;
    max-width: 360px;
    margin: 0 auto;
}

/* reader.css: Onboarding settings reuse popover styles via .NB-briefing-popover class */
.NB-briefing-onboarding-settings {
    border-top: 1px solid #E0E0DC;
    border-bottom: 1px solid #E0E0DC;
    margin: 0;
}

.NB-briefing-onboarding-footer {
    padding: 20px;
    text-align: center;
}

/* reader.css: Upsell banner for free users */
.NB-briefing-upsell {
    padding: 12px 14px;
    background-color: #F0EDE4;
    border-top: 1px solid #E0DDD4;
    text-align: center;
}

.NB-briefing-upsell-text {
    font-size: 12px;
    color: #606060;
    line-height: 1.4;
}

.NB-briefing-upsell-link {
    color: #405BA8;
    font-weight: 500;
    text-decoration: none;
}

.NB-briefing-upsell-link:hover {
    text-decoration: underline;
}

/* reader.css: Briefing summary story — the AI-generated overview at the top */
/* reader.css: Summary story — the AI editorial at the top of the briefing */
.NB-briefing-summary-story {
    position: sticky;
    top: 33px;
    z-index: 2;
}

.NB-briefing-summary-story .NB-story-title {
    background: linear-gradient(135deg, #E8EEF8 0%, #F0F4FA 40%, #EDF0F8 100%);
    border-left: 3px solid #5C89C4;
    padding-left: 9px;
    box-shadow: 0 1px 4px rgba(60, 100, 160, 0.1);
}

.NB-briefing-summary-story .NB-story-title:hover {
    background: linear-gradient(135deg, #DEE6F4 0%, #E8EEF8 40%, #E4EAF4 100%);
}

.NB-briefing-summary-story .NB-story-title.NB-selected {
    background: linear-gradient(135deg, #D4DEF0 0%, #DFE6F4 40%, #DAE2F0 100%);
}

/* reader.css: Hide image preview on briefing summary story — it shows a generic icon */
.NB-briefing-summary-story .NB-storytitles-story-image-container {
    display: none;
}

.NB-briefing-summary-story .NB-storytitles-title {
    font-weight: 700;
    color: #303840;
}

.NB-briefing-summary-story .NB-story-feed .feed_title {
    font-weight: 600;
    color: #5C89C4;
    text-transform: uppercase;
    font-size: 9px;
    letter-spacing: 0.5px;
}

.NB-briefing-summary-story .NB-storytitles-sentiment {
    border-left: none;
}

.NB-briefing-summary-story .NB-storytitles-content-preview {
    display: none;
}

/* reader.css: Briefing feedbar — flexbox layout so preferences button sits next to title */
.NB-feedbar .NB-briefing-folder {
    display: flex;
    align-items: center;
    padding-left: 35px;
    position: relative;
}

.NB-feedbar .NB-briefing-folder .folder_title_text {
    display: inline;
    overflow: visible;
    -webkit-line-clamp: unset;
    margin-left: 0;
    flex-shrink: 0;
}

.NB-feedbar .NB-briefing-folder .NB-folder-icon {
    top: 50%;
    transform: translateY(-50%);
}

.NB-feedbar .NB-briefing-folder .NB-feedbar-options-container {
    margin-left: auto;
    float: none;
}

.NB-feedbar .NB-briefing-folder .NB-feedbar-options {
    float: none;
    margin: 0;
    display: inline-block;
}

/* reader.css: Briefing settings pill button — matches NB-feedbar-options style */
.NB-feedbar .NB-briefing-preferences-icon {
    cursor: pointer;
    color: rgba(0, 0, 0, .5);
    border: 1px solid rgba(0, 0, 0, .1);
    border-radius: 16px;
    text-transform: uppercase;
    font-size: 10px;
    padding: 1px 4px 1px 8px;
    line-height: 14px;
    margin-left: 8px;
    white-space: nowrap;
    flex-shrink: 0;
}

.NB-feedbar .NB-briefing-preferences-icon:hover {
    background-color: rgba(0, 0, 0, .1);
}

.NB-feedbar .NB-briefing-preferences-icon .NB-icon {
    float: right;
    width: 16px;
    height: 12px;
    background: transparent url('/media/embed/icons/nouns/down.svg') no-repeat 3px 2px;
    background-size: 9px;
    margin: 0 0 0 4px;
}

/* reader.css: Briefing popover arrow position — centered under the button */
.NB-briefing-popover-container.popover.bottom-left .arrow {
    left: 60px;
}

/* reader.css: Briefing preferences popover */
.NB-briefing-popover .NB-popover-section {
    display: flex;
    gap: 24px;
    align-items: flex-start;
    padding: 14px 0;
    margin: 0 20px;
}

.NB-briefing-popover .NB-popover-section-label {
    width: 160px;
    flex-shrink: 0;
}

.NB-briefing-popover .NB-popover-section-controls {
    flex: 1;
    min-width: 0;
}

.NB-briefing-popover .NB-popover-section-title {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #909090;
    margin-bottom: 3px;
    line-height: 16px;
}

.NB-briefing-popover .NB-popover-section-description {
    font-size: 11px;
    color: #a0a0a0;
    margin-bottom: 0;
    line-height: 15px;
}

.NB-briefing-popover .NB-briefing-style-description {
    font-size: 11.5px;
    color: #7090B0;
    margin-top: 6px;
    line-height: 14px;
    font-style: italic;
    padding: 4px 0 0;
    border-top: 1px solid rgba(0, 0, 0, .04);
    min-height: 14px;
}

.NB-briefing-popover .segmented-control {
    margin-bottom: 8px;
}

.NB-briefing-popover .segmented-control:last-child {
    margin-bottom: 0;
}

.NB-briefing-popover .NB-briefing-schedule-controls {
    margin-top: 2px;
}

/* reader.css: Unread/focus icons in briefing popover segmented controls */
.NB-briefing-popover .segmented-control .NB-unread-icon,
.NB-briefing-popover .segmented-control .NB-focus-icon {
    width: 8px;
    height: 8px;
    display: inline-block;
    margin: 0 4px 0 0;
    vertical-align: middle;
    background: transparent url('/media/embed/icons/nouns/indicator-unread.svg') no-repeat 0 center;
    background-size: 8px;
}

.NB-briefing-popover .segmented-control .NB-focus-icon {
    background-image: url('/media/embed/icons/nouns/indicator-focus.svg');
}

/* reader.css: Briefing folder chooser always visible */
.NB-briefing-popover .NB-briefing-folder-chooser-container {
    margin-bottom: 6px;
}

.NB-briefing-popover .segmented-control li {
    padding: 3px 4px;
    font-size: 12px;
    line-height: 16px;
}

.NB-briefing-popover .NB-modal-feed-chooser {
    width: 100%;
    font-size: 12px;
    margin: 0;
}

/* reader.css: Writing style — radio-button rows with icons */
.NB-briefing-style-chooser {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.NB-briefing-style-option {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 6px 8px;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.15s;
}

.NB-briefing-style-option:hover {
    background: rgba(0, 0, 0, 0.04);
}

.NB-briefing-style-radio {
    width: 14px;
    height: 14px;
    border: 2px solid #b0b0b0;
    border-radius: 50%;
    flex-shrink: 0;
    margin-top: 2px;
    position: relative;
    transition: all 0.15s;
}

.NB-briefing-style-option.NB-active .NB-briefing-style-radio {
    border-color: #5C89C4;
}

.NB-briefing-style-option.NB-active .NB-briefing-style-radio::after {
    content: '';
    position: absolute;
    top: 4px;
    left: 4px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #5C89C4;
}

.NB-briefing-style-option-icon {
    width: 16px;
    height: 16px;
    margin-top: 1px;
    flex-shrink: 0;
    filter: brightness(0) saturate(100%) invert(44%) sepia(12%) saturate(640%) hue-rotate(175deg) brightness(94%) contrast(90%);
}

.NB-briefing-style-option-label {
    flex: 1;
    min-width: 0;
}

.NB-briefing-style-option-name {
    font-size: 12px;
    font-weight: 600;
    color: #333;
    line-height: 16px;
}

.NB-briefing-style-option-subtitle {
    font-size: 10.5px;
    color: #909090;
    line-height: 14px;
    margin-top: 1px;
}

/* reader.css: Dark mode for writing style radio rows */
.NB-dark .NB-briefing-style-option:hover {
    background: rgba(255, 255, 255, 0.05);
}

.NB-dark .NB-briefing-style-radio {
    border-color: #555;
}

.NB-dark .NB-briefing-style-option-name {
    color: #ccc;
}

.NB-dark .NB-briefing-style-option-subtitle {
    color: #777;
}

/* reader.css: Briefing AI model selector */
.NB-briefing-model-chooser {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.NB-briefing-model-chooser .NB-provider-pill {
    flex-shrink: 0;
    font-size: 10px;
    padding: 1px 5px;
}

.NB-briefing-model-chooser .NB-briefing-style-option-label {
    margin-left: 2px;
}


/* reader.css: Briefing sections — tappable checkbox rows */
.NB-briefing-sections {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.NB-briefing-section-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 6px 8px;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.15s;
    flex-wrap: wrap;
}

.NB-briefing-section-item:hover {
    background: rgba(0, 0, 0, 0.04);
}

.NB-briefing-section-checkbox {
    width: 14px;
    height: 14px;
    border: 2px solid #b0b0b0;
    border-radius: 3px;
    flex-shrink: 0;
    margin-top: 2px;
    position: relative;
    transition: all 0.15s;
}

.NB-briefing-section-item.NB-active .NB-briefing-section-checkbox {
    background: #5C89C4;
    border-color: #5C89C4;
}

.NB-briefing-section-item.NB-active .NB-briefing-section-checkbox::after {
    content: '';
    position: absolute;
    left: 4px;
    top: 1px;
    width: 4px;
    height: 8px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.NB-briefing-section-label {
    flex: 1;
    min-width: 0;
}

.NB-briefing-section-name {
    display: flex;
    align-items: center;
    font-size: 12px;
    font-weight: 500;
    color: #333;
    line-height: 16px;
}

.NB-briefing-section-subtitle {
    font-size: 10.5px;
    color: #909090;
    line-height: 14px;
    margin-top: 1px;
}

/* reader.css: Custom section prompt input */
.NB-briefing-section-custom-input {
    width: 100%;
    margin-top: 4px;
    padding-left: 24px;
    display: flex;
    gap: 6px;
    align-items: center;
}

.NB-briefing-section-custom-input input {
    flex: 1;
    font-size: 11px;
    padding: 4px 8px;
    border: 1px solid #d0d0d0;
    border-radius: 4px;
    outline: none;
    background: #fff;
    color: #333;
}

.NB-briefing-section-custom-input input:focus {
    border-color: #5C89C4;
    box-shadow: 0 0 0 2px rgba(92, 137, 196, 0.15);
}

.NB-briefing-section-hint-icon {
    font-size: 14px;
    opacity: 0.5;
    cursor: help;
    flex-shrink: 0;
    user-select: none;
}

.NB-briefing-section-hint-icon:hover {
    opacity: 1;
}

/* reader.css: Add keyword section button */
.NB-briefing-add-keyword-section {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 8px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    color: #5C89C4;
    transition: background 0.15s;
}

.NB-briefing-add-keyword-section:hover {
    background: rgba(92, 137, 196, 0.08);
}

.NB-briefing-add-custom-icon {
    font-size: 16px;
    font-weight: 300;
    line-height: 1;
    margin-top: -2px;
}

/* reader.css: Remove custom section button */
.NB-briefing-remove-custom-section {
    margin-left: 6px;
    width: 10px;
    height: 10px;
    cursor: pointer;
    vertical-align: middle;
    opacity: 0.3;
    transition: all 0.15s;
}

.NB-briefing-remove-custom-section:hover {
    opacity: 0.8;
}

/* reader.css: Custom section items always show input */
.NB-briefing-section-custom .NB-briefing-section-custom-input {
    display: flex;
}

/* reader.css: Hint popover for custom section — follows regex popover pattern */
.NB-briefing-section-hint-popover {
    display: none;
    position: absolute;
    z-index: 10000;
    background: linear-gradient(135deg, #f8f9fc 0%, #eef1f7 100%);
    border: 1px solid #d0d4e0;
    border-radius: 6px;
    padding: 12px 14px;
    font-size: 11px;
    line-height: 1.5;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    width: 300px;
}

.NB-briefing-section-hint-popover.NB-visible {
    display: block;
}

.NB-briefing-section-hint-title {
    font-weight: 600;
    font-size: 11px;
    color: #5C89C4;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}

.NB-briefing-section-hint-text {
    color: #555;
    margin-bottom: 8px;
}

.NB-briefing-section-hint-examples-title {
    font-weight: 600;
    font-size: 10px;
    color: #5C89C4;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
    padding-top: 6px;
    border-top: 1px solid rgba(92, 137, 196, 0.2);
}

.NB-briefing-section-hint-examples {
    margin: 0;
    padding-left: 16px;
    color: #666;
}

.NB-briefing-section-hint-examples li {
    margin-bottom: 2px;
}

/* reader.css: Notification hint for briefing settings */
.NB-briefing-notification-hint {
    font-size: 11px;
    color: #999;
    font-style: italic;
    margin-top: 4px;
}

.NB-dark .NB-briefing-notification-hint {
    color: #666;
}

/* reader.css: Dark mode overrides for briefing popover */
.NB-dark .NB-briefing-popover .NB-briefing-style-description {
    color: #6A8BA8;
    border-top-color: rgba(255, 255, 255, .04);
}

/* reader.css: Dark mode overrides for briefing onboarding */
.NB-dark .NB-briefing-onboarding-view {
    background-color: #191b1c;
    background: linear-gradient(180deg, #1e2022 0%, #191b1c 100%);
}

.NB-dark .NB-briefing-onboarding-title {
    color: #D0D0D0;
}

.NB-dark .NB-briefing-onboarding-subtitle {
    color: #808080;
}

.NB-dark .NB-briefing-onboarding-settings {
    border-color: rgba(255, 255, 255, .08);
}

/* reader.css: Dark mode overrides for briefing sections */
.NB-dark .NB-briefing-add-keyword-section {
    color: #7BA3D0;
}

.NB-dark .NB-briefing-add-keyword-section:hover {
    background: rgba(92, 137, 196, 0.12);
}

.NB-dark .NB-briefing-remove-custom-section {
    filter: invert(1);
}

.NB-dark .NB-briefing-section-item:hover {
    background: rgba(255, 255, 255, 0.05);
}

.NB-dark .NB-briefing-section-checkbox {
    border-color: #555;
}

.NB-dark .NB-briefing-section-name {
    color: #ccc;
}

.NB-dark .NB-briefing-section-subtitle {
    color: #777;
}

.NB-dark .NB-briefing-section-custom-input input {
    background: #2a2a2e;
    border-color: #444;
    color: #ccc;
}

.NB-dark .NB-briefing-section-custom-input input:focus {
    border-color: #5C89C4;
    box-shadow: 0 0 0 2px rgba(92, 137, 196, 0.25);
}

.NB-dark .NB-briefing-section-hint-popover {
    background: linear-gradient(135deg, #2a2a3a 0%, #252535 100%);
    border-color: #4a4a6a;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.NB-dark .NB-briefing-section-hint-title {
    color: #7BA3D0;
}

.NB-dark .NB-briefing-section-hint-text {
    color: #aaa;
}

.NB-dark .NB-briefing-section-hint-examples-title {
    color: #7BA3D0;
    border-top-color: rgba(92, 137, 196, 0.3);
}

.NB-dark .NB-briefing-section-hint-examples {
    color: #888;
}

/* reader.css: Generate briefing button — shared styles */
.NB-briefing-generate-btn {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    color: #fff;
    background-color: #5C89C4;
    border: none;
    border-radius: 4px;
    padding: 8px 16px;
    cursor: pointer;
    text-align: center;
    transition: background-color 0.15s ease;
    user-select: none;
}

.NB-briefing-generate-btn:hover {
    background-color: #4A73A8;
}

.NB-briefing-generate-btn:active {
    background-color: #3D6090;
}

/* reader.css: Large generate button for empty state */
.NB-briefing-generate-btn-large {
    margin-top: 16px;
    font-size: 14px;
    padding: 12px 24px;
}

/* reader.css: Regenerate button container at bottom of existing briefings */
.NB-briefing-regenerate {
    padding: 12px 14px;
    text-align: center;
    border-top: 1px solid #E0E0DC;
}

.NB-briefing-regenerate-btn {
    font-size: 12px;
    padding: 8px 16px;
}

/* reader.css: Progress indicator during generation */
.NB-briefing-progress {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 14px;
    border-bottom: 1px solid #E0E0DC;
    background-color: #F5F6F2;
}

.NB-briefing-progress-spinner {
    width: 16px;
    height: 16px;
    border: 2px solid #CCC;
    border-top-color: #5C89C4;
    border-radius: 50%;
    animation: nb-briefing-spin 0.8s linear infinite;
}

@keyframes nb-briefing-spin {
    to { transform: rotate(360deg); }
}

.NB-briefing-progress-message {
    font-size: 12px;
    color: #606060;
}

/* reader.css: Error state during generation */
.NB-briefing-error {
    padding: 12px 14px;
    border-bottom: 1px solid #E0E0DC;
    text-align: center;
}

.NB-briefing-error-message {
    font-size: 12px;
    color: #A04040;
    margin-bottom: 8px;
}
