/* ========== */
/* = 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;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    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-sidebar {
    --nb-sidebar-primary-sticky-top: 0px;
    --nb-sidebar-primary-sticky-height: 34px;
    --nb-sidebar-secondary-sticky-height: 34px;
    --nb-sidebar-secondary-sticky-top: calc(var(--nb-sidebar-primary-sticky-top) + var(--nb-sidebar-primary-sticky-height));
    --nb-sidebar-folder-sticky-top: calc(var(--nb-sidebar-secondary-sticky-top) + var(--nb-sidebar-secondary-sticky-height));
    --nb-sidebar-sticky-feedlist-background: #F7F8F5;
    --nb-sidebar-sticky-feedlist-selected-background: #FFFFD2;
}

.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 .folder_title.NB-sticky-sidebar-folder {
    position: sticky;
    top: var(--nb-sidebar-folder-sticky-top);
    z-index: 2;
    background-color: var(--nb-sidebar-sticky-feedlist-background);
}

.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;
}

/* Paused web feed banner in story titles header */
.NB-search-header.NB-webfeed-paused {
    padding-left: 8px;
}

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

.NB-webfeed-paused-header {
    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: 4px;
    padding: 12px 16px 12px 44px;
    margin: 8px 12px;
    display: block;
    position: relative;
}

.NB-webfeed-paused-icon {
    width: 20px;
    height: 20px;
    position: absolute;
    left: 16px;
    top: 12px;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    border-radius: 4px;
    -webkit-mask: url(/media/img/icons/nouns/web-feed.svg) no-repeat center;
    mask: url(/media/img/icons/nouns/web-feed.svg) no-repeat center;
    -webkit-mask-size: 16px;
    mask-size: 16px;
}

.NB-webfeed-paused-message {
    color: #4338ca;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.4;
    margin-bottom: 12px;
}

.NB-webfeed-paused-button {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: white;
    border: none;
    border-radius: 4px;
    padding: 8px 16px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    display: inline-block;
    transition: opacity 0.15s ease, transform 0.15s ease;
}

.NB-webfeed-paused-button:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.NB-webfeed-paused-button:active {
    transform: translateY(0) scale(0.96);
}

.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: opacity 0.36s ease-out, transform 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-sticky-sidebar-folder:hover,
.NB-feedlist .folder_title.NB-sticky-sidebar-folder.NB-no-hover {
    background-color: var(--nb-sidebar-sticky-feedlist-background);
}

.NB-feedlist .folder_title.NB-toplevel.NB-no-hover:not(.NB-sticky-sidebar-folder) {
    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 .folder.NB-selected > .folder_title.NB-sticky-sidebar-folder,
.NB-feedlist .folder.NB-selected > .folder_title.NB-sticky-sidebar-folder:hover,
.NB-feedlist .folder.NB-selected > .folder_title.NB-sticky-sidebar-folder.NB-no-hover {
    background-color: var(--nb-sidebar-sticky-feedlist-selected-background);
}

.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;
    font-variant-numeric: tabular-nums;
    transition: background-color 0.36s ease-out, opacity 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;
}

/* Mark read inline confirmation */

.NB-feedbar .NB-feedbar-mark-feed-read-confirm {
    display: none;
    align-items: center;
    float: right;
    font-size: 11px;
    line-height: 18px;
    white-space: nowrap;
    margin: 1px 0 0 0;
    gap: 5px;
}

.NB-feedbar .NB-feedbar-mark-feed-read-confirm .NB-confirm-text {
    color: #808080;
    font-weight: 500;
}

.NB-feedbar .NB-feedbar-mark-feed-read-confirm .NB-confirm-yes,
.NB-feedbar .NB-feedbar-mark-feed-read-confirm .NB-confirm-no {
    cursor: pointer;
    padding: 0 8px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: bold;
    line-height: 18px;
    border: 1px solid transparent;
}

.NB-feedbar .NB-feedbar-mark-feed-read-confirm .NB-confirm-yes {
    background-color: #8EC43C;
    color: white;
}

.NB-feedbar .NB-feedbar-mark-feed-read-confirm .NB-confirm-yes:hover {
    background-color: #7DB333;
}

.NB-feedbar .NB-feedbar-mark-feed-read-confirm .NB-confirm-no {
    background-color: #E8E8E8;
    color: #666;
    border-color: rgba(0, 0, 0, .08);
}

.NB-feedbar .NB-feedbar-mark-feed-read-confirm .NB-confirm-no:hover {
    background-color: #DCDCDC;
}

.NB-feedbar .NB-feedbar-mark-feed-read-confirm .NB-confirm-shortcut {
    margin-left: 3px;
    opacity: 0.5;
    font-weight: normal;
    font-size: 9px;
}

.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) scale(0.96);
}

.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: .50;
}

.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%;
    box-sizing: border-box;
    overflow-wrap: break-word;
    word-break: break-word;
    text-wrap: pretty;
    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;
}

/* reader.css: Per-sibling cluster tier badge.
   Small, quiet outlined pill that tells the reader whether a sibling landed
   in the cluster via a duplicate title match or a looser topical signal.
   Kept muted with a transparent background + thin border so it reads as
   metadata rather than a call-to-action. Tone scales with match strength:
   cleaner green for title matches, warmer olive for related topics. */
.NB-cluster-tier-badge {
    display: inline-block;
    font-size: 9px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 2px 7px;
    border-radius: 999px;
    border: 1px solid currentColor;
    background: transparent;
    white-space: nowrap;
    flex-shrink: 0;
    line-height: 1.3;
    vertical-align: middle;
    margin: 0 4px;
    /* Baseline color — overridden by tier-specific rules below */
    color: #9a9a9a;
}

.NB-cluster-tier-title .NB-cluster-tier-badge {
    /* Title / duplicate matches — muted sage green, high-confidence signal. */
    color: #5a8c6a;
}

.NB-cluster-tier-related .NB-cluster-tier-badge {
    /* Related / topical matches — warmer olive, looser-confidence signal. */
    color: #a88246;
}

/* Fade the tier badge on read siblings to match the rest of the row. */
.NB-story-cluster-source.read .NB-cluster-tier-badge,
.NB-story-title.NB-story-title-cluster.read .NB-cluster-tier-badge {
    opacity: 0.4;
}

/* 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;
}

/* Dark theme — per-sibling tier badge. Colors are slightly brighter so they
   read clearly against the darker surface without glowing. Still transparent
   background, still outlined in currentColor via the base rule. */
.NB-dark .NB-cluster-tier-badge {
    color: #8a8a8a;
}

.NB-dark .NB-cluster-tier-title .NB-cluster-tier-badge {
    color: #7dc99a;
}

.NB-dark .NB-cluster-tier-related .NB-cluster-tier-badge {
    color: #d2a76b;
}

.NB-dark .NB-story-cluster-source.read .NB-cluster-tier-badge,
.NB-dark .NB-story-title.NB-story-title-cluster.read .NB-cluster-tier-badge {
    opacity: 0.4;
}

/* 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;
}

/* reader.css: When image preview is left-aligned, keep the tier badge next
   to the title — otherwise the unset order would put the badge before the
   image (unset = 0) and break the flow. Title badge follows title, image
   and date come after. */
.NB-image-preview-small-left .NB-story-cluster-source .NB-cluster-tier-badge,
.NB-image-preview-large-left .NB-story-cluster-source .NB-cluster-tier-badge {
    order: 2;
}

/* ======== 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;
}

/* reader.css: Read cluster rows dim like regular story titles — the generic
   .NB-story-title.read rules (faded feed borders, gray title/date/preview,
   dimmed favicon) cascade here, matching the parent story and the
   single-line .NB-story-cluster-source.read fade. */

/* 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);
}

/* reader.css: Dark-mode read cluster rows also inherit the standard read
   dimming from darkmode.css (.NB-dark .read .NB-storytitles-title, author,
   date, content preview) — no cluster-specific overrides needed. */

/* 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;
}

/* Favicon in cluster detail story titles */
.NB-story-cluster-detail .NB-story-cluster-detail-item .NB-story-title {
    padding-left: 66px;
}

.NB-story-cluster-detail-item .NB-story-title .NB-story-feed {
    display: block;
    left: -47px;
    top: 14px;
    width: 16px;
    height: 16px;
}

.NB-story-cluster-detail-item .NB-story-title .NB-story-feed .feed_favicon {
    width: 16px;
    height: 16px;
}

.NB-story-cluster-detail-item .NB-story-title .NB-story-feed .feed_title {
    display: none;
}

.NB-story-cluster-detail-item .NB-story-title-list.NB-story-title .story_date {
    position: static;
    width: auto;
}

/* reader.css: Cluster detail row polish.
   1. Title and date should stack flush-left under the favicon gutter, with
      no stray indent on the metadata row.
   2. Reserve right-side space so the tier badge doesn't collide with long
      titles, even on narrow story panes.
   3. The tier badge lives as a child of .NB-story-title (appended by
      render_cluster_detail_badge) and is pinned top-right, vertically
      centered to the title line. */
.NB-story-cluster-detail-item {
    position: relative;
}

.NB-story-cluster-detail-item .NB-story-title-list.NB-story-title {
    /* Reserve right-side space for the tier badge (story image sits
       further right, beyond this padding, via its own negative right). */
    padding-right: 110px;
    /* Establish a positioning context so the absolutely positioned tier
       badge below anchors to the title row, not an ancestor further up. */
    position: relative;
}

.NB-story-cluster-detail-item .NB-story-title-list-bottom {
    /* Mirror the 4px left padding on a.story_title so the date is flush
       under the title text instead of sitting 4px to the left of it. */
    padding-left: 4px;
    margin-left: 0;
    margin-top: 2px;
}

.NB-story-cluster-detail-item .NB-story-title-list-bottom .story_date {
    display: inline-block;
    margin: 0;
    padding: 0;
    font-size: 11px;
    line-height: 1.4;
    color: #8a8a8a;
}

.NB-story-cluster-detail-item .NB-story-title-list.NB-story-title .NB-cluster-tier-badge {
    position: absolute;
    /* Default: pin the badge top-right, vertically aligned with the first
       title line (favicon center is at 22px; a 13px top aligns the badge's
       midpoint with it). */
    top: 13px;
    right: 14px;
    margin: 0;
    font-size: 9px;
    padding: 3px 8px;
    letter-spacing: 0.06em;
    line-height: 1.4;
    /* Sit above any incidental siblings so the outline pill reads cleanly. */
    z-index: 2;
}

/* reader.css: When the cluster-detail row has a story image, the image
   occupies the top-right slot the badge would otherwise sit in. Keep the
   image at its full default height (better-looking than a squished crop)
   and drop the badge to the bottom-right, below the image. */
.NB-story-cluster-detail-item .NB-story-title-list.NB-story-title.NB-has-image .NB-cluster-tier-badge {
    top: auto;
    bottom: 10px;
    right: 14px;
}

.NB-dark .NB-story-cluster-detail-item .NB-story-title-list-bottom .story_date {
    color: #8a8a8a;
}

/* Clustering upgrade pill in header (shown when only 1 cluster site) */
.NB-clustering-detail-upgrade-pill {
    display: inline-block;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: white;
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 3px 8px;
    border-radius: 4px;
    text-decoration: none;
    cursor: pointer;
    margin-left: 6px;
    transition: filter 0.15s;
}

.NB-clustering-detail-upgrade-pill:hover {
    filter: brightness(1.15);
    color: white;
}

/* Info icon + tooltip for clustering explanation */
.NB-clustering-detail-info {
    position: relative;
    display: inline-flex;
    align-items: center;
    margin-left: auto;
}

.NB-clustering-detail-info-icon {
    font-size: 13px;
    color: #b0b0b0;
    cursor: default;
    line-height: 1;
}

.NB-clustering-detail-info-tooltip {
    display: none;
    position: fixed;
    width: 260px;
    padding: 10px 12px;
    background: #333;
    color: #e0e0e0;
    font-size: 11.5px;
    line-height: 1.5;
    border-radius: 6px;
    white-space: normal;
    text-transform: none;
    letter-spacing: 0;
    font-weight: normal;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
    z-index: 10000;
    pointer-events: none;
}

.NB-clustering-detail-info-tooltip::after {
    content: '';
    position: absolute;
    bottom: -5px;
    right: 6px;
    width: 10px;
    height: 10px;
    background: #333;
    transform: rotate(45deg);
}

.NB-dark .NB-clustering-detail-info-icon {
    color: #666;
}

.NB-dark .NB-clustering-detail-info-tooltip {
    background: #1a1a1a;
    border: 1px solid #333;
}

.NB-dark .NB-clustering-detail-info-tooltip::after {
    background: #1a1a1a;
    border-right: 1px solid #333;
    border-bottom: 1px solid #333;
}

/* Cluster locked upsell row (non-archive tier) */
.NB-cluster-locked-upsell {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px 10px 66px;
    cursor: pointer;
    font-size: 12px;
    border-top: 1px solid #E8EDF0;
    transition: filter 0.15s ease;
}

.NB-cluster-locked-text {
    font-size: 12px;
    font-weight: 600;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.NB-cluster-locked-upsell:hover {
    filter: brightness(1.15);
}

.NB-dark .NB-cluster-locked-upsell {
    border-top-color: #3a3a3a;
}

.NB-dark .NB-cluster-locked-text {
    background: linear-gradient(135deg, #818cf8 0%, #a78bfa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.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;
    font-variant-numeric: tabular-nums;
}

.NB-story-title-list.NB-story-title .story_date {
    position: absolute;
    width: 140px;
    top: 12px;
    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.96);
    border-radius: 8px;
}

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

    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 {}

/* The desktop river list reserves fixed columns for the feed, date, and
   optional image. In an extra-narrow titles pane those reservations can leave
   the headline only a few characters wide, so reflow the metadata into rows. */
#story_titles.NB-layout-list.NB-extra-narrow-content .NB-story-title-list.NB-story-title {
    padding: 0 10px 0 40px;
}

#story_titles.NB-layout-list.NB-extra-narrow-content .NB-story-title-list.NB-story-title.NB-has-image {
    padding-right: 10px;
}

#story_titles.NB-layout-list.NB-extra-narrow-content .NB-story-title-list .NB-story-feed {
    position: static;
    display: flex;
    align-items: center;
    gap: 6px;
    width: auto;
    height: auto;
    margin: 0 0 4px;
}

#story_titles.NB-layout-list.NB-extra-narrow-content .NB-story-title-list .NB-story-feed .feed_favicon {
    position: static;
    flex: 0 0 16px;
}

#story_titles.NB-layout-list.NB-extra-narrow-content .NB-story-title-list .NB-story-feed .feed_title {
    position: static;
    display: block;
    min-width: 0;
    width: auto;
    height: auto;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

#story_titles.NB-layout-list.NB-extra-narrow-content .NB-story-title-list .NB-storytitles-title {
    display: block;
}

#story_titles.NB-layout-list.NB-extra-narrow-content .NB-story-title-list .NB-storytitles-story-image-container {
    display: none;
}

#story_titles.NB-layout-list.NB-extra-narrow-content .NB-story-title-list .story_date {
    position: static;
    display: block;
    width: auto;
    margin: 0 4px 8px;
}

/* ============================= */
/* = 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 {
    min-width: 0;
}

.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);
}

/* Feed manage icon on story feed bar */
.NB-feed-story-feed .NB-feedlist-manage-icon {
    opacity: 0;
    display: none;
    position: absolute;
    left: -22px;
    top: 2px;
    width: 20px;
    height: 20px;
    background: transparent url(/media/embed/icons/nouns/right.svg) no-repeat 4px 4px;
    background-size: 8px;
    cursor: pointer;
    filter: brightness(0) invert(1);
}

.NB-inverse .NB-feed-story-feed .NB-feedlist-manage-icon {
    filter: none;
}

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

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

.NB-feed-story-feed .NB-feedlist-manage-icon:hover {
    background-image: url(/media/embed/icons/nouns/down.svg);
}

.NB-feed-story.NB-hover-inverse .NB-feed-story-feed .NB-feedlist-manage-icon:hover {
    background-image: url(/media/embed/icons/nouns/up.svg);
}

/* =============================== */
/* = 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: 0;
}

.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:not(.NB-score-icon) {
    max-width: 100% !important;
    width: auto !important;
    height: auto;
    /* See http://www.newsblur.com/site/1031643/le-21me for width: auto, height: auto */
    outline: 1px solid rgba(0, 0, 0, 0.06);
    outline-offset: -1px;
}

.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: .50;
}

.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-wrap: balance;
}

.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,
.NB-feed-story a.NB-feed-story-title:hover .NB-score--2 {
    color: #1010A0;
}

.NB-feed-story .NB-feed-story-author-wrapper {
    float: left;
    display: flex;
    align-items: center;
    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 {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    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.NB-score--2 {
    color: #850101;
}

.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,
.NB-feed-story .NB-feed-story-author.NB-score--2: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-flex;
    align-items: center;
    gap: 2px;
    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.NB-score--2 {
    /* Dark crimson — super downvote */
    background-color: #8B2020;
    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,
.NB-feed-story .NB-feed-story-tag.NB-score--2: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);
}

/* Matching-story browse action embedded inside author, tag, and URL
   classifiers. The classifier text keeps its existing training action. */
.NB-pill-view-classifier {
    -webkit-appearance: none;
    appearance: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 18px;
    width: 18px;
    height: 18px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 3px;
    cursor: pointer;
    color: inherit;
    background: transparent;
    opacity: .6;
    vertical-align: middle;
    transition: background 120ms ease, color 120ms ease, opacity 120ms ease;
}

.NB-pill-view-classifier svg {
    display: block;
    flex-shrink: 0;
    width: 12px;
    height: 12px;
    fill: currentColor;
}

.NB-pill-view-classifier:hover,
.NB-pill-view-classifier:focus-visible {
    color: inherit;
    background: rgba(0, 0, 0, .12);
    opacity: 1;
    outline: none;
}

.NB-pill-view-classifier:focus-visible {
    box-shadow: 0 0 0 1px rgba(63, 118, 80, .35);
}

/* 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-flex;
    align-items: center;
    gap: 2px;
    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%;
}

.NB-feed-story .NB-feed-story-url-content {
    min-width: 0;
    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.NB-score--2 {
    /* Dark crimson — super downvote */
    background-color: rgba(139, 32, 32, 0.3);
    color: #5a1a1a;
}

.NB-feed-story .NB-feed-story-url.NB-score--2 .NB-feed-story-url-matched {
    color: #6B0001;
    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,
.NB-feed-story .NB-feed-story-url.NB-score--2: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,
.NB-feed-story .NB-feed-story-url.NB-score--2: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;
}

/* AI Classifier Pills */
.NB-feed-story .NB-feed-story-ai-classifiers {
    display: inline-flex;
    align-items: center;
    vertical-align: middle;
    margin: 6px 0 0 0;
    align-self: start;
}

.NB-feed-story .NB-feed-story-ai-classifiers .NB-middot {
    margin: 0 6px 0 2px;
    color: #B0B0A0;
}

.NB-feed-story .NB-feed-story-ai-classifier {
    display: inline-block;
    cursor: pointer;
    font-weight: normal;
    font-size: 12px;
    border-radius: 4px;
    padding: 1px 5px;
    margin: 0 4px 0 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);
    max-width: 300px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    vertical-align: middle;
}

.NB-feed-story .NB-feed-story-ai-classifier-label {
    font-weight: bold;
}

.NB-theme-size-xs .NB-feed-story .NB-feed-story-ai-classifier {
    font-size: 9px;
}

.NB-theme-size-s .NB-feed-story .NB-feed-story-ai-classifier {
    font-size: 10px;
}

.NB-theme-size-l .NB-feed-story .NB-feed-story-ai-classifier {
    font-size: 13px;
}

.NB-theme-size-xl .NB-feed-story .NB-feed-story-ai-classifier {
    font-size: 14px;
}

.NB-feed-story.read .NB-feed-story-ai-classifier {
    color: #949181;
}

.NB-feed-story .NB-feed-story-ai-classifier.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-ai-classifier.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-ai-classifier.NB-score--2 {
    /* Dark crimson — super downvote */
    background-color: #8B2020;
    color: white;
    text-shadow: 0 1px 0 rgba(0, 0, 0, .7);
}

.NB-feed-story .NB-feed-story-ai-classifier: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-ai-classifier.NB-score-1:hover {
    /* Green hover */
    background-color: #34912E;
    color: white;
    text-shadow: 0 1px 0 rgba(0, 0, 0, .3);
}

.NB-feed-story .NB-feed-story-ai-classifier.NB-score--1:hover,
.NB-feed-story .NB-feed-story-ai-classifier.NB-score--2:hover {
    /* Red hover */
    background-color: #A90103;
    color: white;
    text-shadow: 0 1px 0 rgba(0, 0, 0, .3);
}

.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-title .NB-score--2 {
    color: #850101;
}

/* Inline score icons next to classified text */
.NB-score-icon {
    width: 10px;
    height: 10px;
    vertical-align: middle;
    margin-left: 4px;
    margin-top: -2px;
    display: inline;
}

.NB-score-icon-like {
    filter: brightness(0) saturate(100%) invert(39%) sepia(96%) saturate(520%) hue-rotate(80deg) brightness(95%) contrast(87%);
}

.NB-score-icon-dislike {
    filter: brightness(0) saturate(100%) invert(12%) sepia(96%) saturate(5400%) hue-rotate(358deg) brightness(85%) contrast(120%);
}

.NB-score-icon-super-dislike {
    filter: brightness(0) saturate(100%) invert(8%) sepia(96%) saturate(5400%) hue-rotate(358deg) brightness(75%) contrast(120%);
}

.NB-score-icon-double {
    display: inline-block;
    position: relative;
    width: 16px;
    height: 12px;
    vertical-align: middle;
    margin-left: 4px;
}

.NB-score-icon-double .NB-score-icon {
    position: absolute;
    margin-left: 0;
}

.NB-score-icon-double .NB-score-icon-super-dislike-back {
    top: 0;
    left: 0;
    opacity: 0.5;
}

.NB-score-icon-double .NB-score-icon:last-child {
    top: 3px;
    left: 4px;
}

/* Icons in tags need white filter since tags have colored backgrounds */
.NB-feed-story-tag.NB-score-1 .NB-score-icon,
.NB-feed-story-tag.NB-score--1 .NB-score-icon,
.NB-feed-story-tag.NB-score--2 .NB-score-icon {
    filter: brightness(0) invert(1);
    opacity: 0.8;
}

.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;
    text-wrap: pretty;
}

.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-classifier-highlight-super-negative {
    background-color: #E8A0A0;
    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-quote-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 svg,
.NB-unhighlight-selection svg,
.NB-train-selection svg,
.NB-quote-selection svg,
.NB-search-site-selection svg,
.NB-search-folder-selection svg {
    vertical-align: -2px;
    margin-right: 2px;
}

.NB-highlight-selection:hover,
.NB-unhighlight-selection:hover,
.NB-train-selection:hover,
.NB-quote-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-quote-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-feed-story.NB-story-sideoptions-sticky .NB-story-content-container {
    overflow: visible;
}

.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;
    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-story-comment .NB-story-comment-content blockquote {
    margin: 0 0 8px 0;
    padding: 8px 10px;
    border-left: 3px solid #a0a0a0;
    border-radius: 0;
    background: #f0f0f0;
    font-style: italic;
    font-size: 13px;
    line-height: 1.4;
    color: #606060;
}

.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: 42px;
    margin: 0;
    width: 142px;
    line-height: 12px;
    z-index: 1;
}

.NB-feed-story-sideoptions {
    text-align: center;
    width: 142px;
    transition: width 0.36s ease-out;
}

.NB-pref-sticky-story-sideoptions:not(.NB-narrow-content) .NB-feed-story.NB-story-sideoptions-sticky .NB-feed-story-sideoptions-container {
    top: 0;
    bottom: 0;
    height: auto;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.NB-pref-sticky-story-sideoptions:not(.NB-narrow-content) .NB-feed-story.NB-story-sideoptions-sticky .NB-feed-story-sideoptions {
    position: sticky;
    bottom: 42px;
    margin: 24px 0 42px;
}

.NB-story-starred .NB-feed-story-sideoptions-container,
.NB-story-starred .NB-feed-story-sideoptions {
    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-narrow-content .NB-feed-story-sideoptions {
    width: auto;
}

.NB-narrow-content.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-narrow-content.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, transform 0.1s ease;
}

.NB-sideoption:active {
    transform: scale(0.96);
}

.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;
}

.NB-sideoption .NB-sideoption-thirdparty-wallabag {
    background: transparent url(/media/embed/reader/wallabag.svg) no-repeat center center;
    background-size: 16px;
}

/* ================================ */
/* = 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);
}

.NB-sideoption-sharing-wallabag .NB-sideoption-icon {
    background-image: url(/media/embed/reader/wallabag.svg);
}

/* ===================== */
/* = 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-quote {
    position: relative;
    margin: 0 0 8px;
    padding: 0;
}

.NB-sideoption-share .NB-sideoption-share-quote blockquote {
    margin: 0;
    padding: 8px 24px 8px 10px;
    border-left: 3px solid #a0a0a0;
    border-radius: 0;
    background: #f0f0f0;
    font-size: 12px;
    line-height: 1.4;
    color: #505050;
    white-space: pre-line;
    font-style: italic;
    text-align: left;
}

.NB-sideoption-share .NB-sideoption-share-quote-remove {
    position: absolute;
    top: 2px;
    right: 4px;
    cursor: pointer;
    font-size: 14px;
    color: #a0a0a0;
    line-height: 1;
    z-index: 1;
}

.NB-sideoption-share .NB-sideoption-share-quote-remove:hover {
    color: #404040;
}

.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;
    text-align: center;
}

.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: relative;
}

.NB-feeds-header-container.NB-sticky-sidebar-primary {
    position: sticky;
    top: var(--nb-sidebar-primary-sticky-top);
    z-index: 4;
}

.NB-feeds-header-container.NB-sticky-sidebar-section {
    position: sticky;
    top: var(--nb-sidebar-secondary-sticky-top);
    z-index: 3;
}

.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-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%;
}

/* =========================== */
/* = Classifier Filter Banner = */
/* =========================== */
/* media/css/reader/reader.css — compact filter toolbar shown above story
   titles by media/js/newsblur/views/classifier_filter_banner_view.js. */

.NB-classifier-filter-banner {
    --classifier-accent: #75628E;
    --classifier-tint: #F4F1F7;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px;
    border-bottom: 1px solid rgba(57, 51, 65, 0.16);
    box-shadow: inset 3px 0 0 var(--classifier-accent);
    position: sticky;
    top: 0;
    z-index: 5;
    background: var(--classifier-tint);
    cursor: default;
    container-type: inline-size;
    animation: NB-classifier-filter-banner-in 280ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

@keyframes NB-classifier-filter-banner-in {
    from { transform: translateY(-6px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.NB-classifier-filter-banner.NB-filter-tag {
    --classifier-accent: #3C8054;
    --classifier-tint: #EDF5EF;
}
.NB-classifier-filter-banner.NB-filter-author {
    --classifier-accent: #946D24;
    --classifier-tint: #F7F2E7;
}
.NB-classifier-filter-banner.NB-filter-title {
    --classifier-accent: #3977A8;
    --classifier-tint: #EDF3F7;
}
.NB-classifier-filter-banner.NB-filter-url {
    --classifier-accent: #A14E67;
    --classifier-tint: #F7EEF1;
}
.NB-classifier-filter-banner.NB-filter-text {
    --classifier-accent: #7255A3;
    --classifier-tint: #F2EFF8;
}

.NB-classifier-filter-banner-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    flex-shrink: 0;
    color: var(--classifier-accent);
    background: rgba(255, 255, 255, 0.58);
    border: 1px solid rgba(40, 38, 44, 0.1);
    border-radius: 7px;
    box-sizing: border-box;
}
.NB-classifier-filter-banner-icon svg {
    width: 17px;
    height: 17px;
}

.NB-classifier-filter-banner-content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.NB-classifier-filter-banner-heading {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 5px;
    color: #252329;
    font-size: 14px;
    line-height: 1.28;
    min-width: 0;
}

.NB-classifier-filter-banner-type {
    color: var(--classifier-accent);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.065em;
    text-transform: uppercase;
}
.NB-classifier-filter-banner-separator {
    color: rgba(37, 35, 41, 0.34);
}
.NB-classifier-filter-banner-value {
    min-width: 0;
    font-weight: 650;
    overflow-wrap: anywhere;
}

.NB-classifier-filter-narrow-hint {
    display: none;
    color: #636067;
    font-size: 10px;
    font-weight: 600;
    line-height: 1.3;
}
.NB-classifier-filter-narrow-hint-compact {
    display: none;
}

.NB-classifier-filter-banner-tools {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 7px;
    margin-top: 4px;
    opacity: 1;
}
.NB-classifier-filter-view-section,
.NB-classifier-filter-account-section {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    gap: 4px;
}
.NB-classifier-filter-account-section {
    box-sizing: border-box;
    gap: 5px;
    padding: 7px 8px;
    border: 1px solid rgba(48, 45, 52, 0.10);
    border-radius: 7px;
    background: rgba(48, 45, 52, 0.055);
}
.NB-classifier-filter-account-controls {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
}
.NB-classifier-filter-tool-group {
    display: inline-flex;
    align-items: center;
    max-width: 100%;
    gap: 5px;
}
.NB-classifier-filter-tool-label {
    flex: 0 0 64px;
    color: #706D73;
    font-size: 9px;
    font-weight: 650;
    letter-spacing: 0.055em;
    text-transform: uppercase;
}
.NB-classifier-filter-segmented {
    display: inline-flex;
    overflow: hidden;
    padding: 1px;
    border: 0;
    border-radius: 4px;
    background: transparent;
    transition: background-color 140ms ease-in-out;
}
.NB-classifier-filter-segmented:hover {
    background-color: #E5E6E2;
}
.NB-classifier-filter-scope-button,
.NB-classifier-filter-training-button,
.NB-classifier-filter-notification-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    min-width: 32px;
    height: 32px;
    margin: 0 2px 0 0;
    padding: 0 8px;
    border: 0;
    border-radius: 3px;
    color: #68656B;
    background: transparent;
    cursor: pointer;
    transition: color 120ms ease, background 120ms ease, box-shadow 120ms ease;
}
.NB-classifier-filter-segmented > button:last-child {
    margin-right: 0;
}
.NB-classifier-filter-scope-button svg,
.NB-classifier-filter-training-button > svg,
.NB-classifier-filter-notification-icon svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}
.NB-classifier-filter-button-label {
    font-size: 10px;
    font-weight: 600;
    line-height: 1;
    white-space: nowrap;
}
.NB-classifier-filter-scope-button:hover,
.NB-classifier-filter-training-button:hover,
.NB-classifier-filter-notification-button:hover,
.NB-classifier-filter-scope-button:focus-visible,
.NB-classifier-filter-training-button:focus-visible,
.NB-classifier-filter-notification-button:focus-visible {
    color: #252329;
    background: #D5D6D2;
    outline: 0;
}
.NB-classifier-filter-scope-button.NB-active,
.NB-classifier-filter-training-button.NB-active,
.NB-classifier-filter-notification-button.NB-active {
    color: var(--classifier-accent);
    background: #D5D6D2;
    box-shadow: inset 0 -2px 0 var(--classifier-accent);
}
.NB-classifier-filter-segmented:hover > button.NB-active {
    background: #C5C6C2;
}
.NB-classifier-filter-training-button.NB-active {
    box-shadow: inset 0 -2px 0 currentColor;
}
.NB-classifier-filter-training-button.NB-training-like.NB-active {
    color: #34912E;
}
.NB-classifier-filter-training-button.NB-training-dislike.NB-active {
    color: #A90103;
}
.NB-classifier-filter-training-button.NB-training-super_dislike.NB-active {
    color: #6B0001;
}
.NB-classifier-filter-training-button.NB-active .NB-classifier-filter-button-label {
    color: #252329;
}
.NB-classifier-filter-training-icon {
    display: inline-block;
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    background-color: currentColor;
    -webkit-mask-position: center;
    mask-position: center;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-size: contain;
    mask-size: contain;
}
.NB-classifier-filter-training-icon.NB-training-icon-like {
    -webkit-mask-image: url(/media/embed/icons/nouns/thumbs-up.svg);
    mask-image: url(/media/embed/icons/nouns/thumbs-up.svg);
}
.NB-classifier-filter-training-icon.NB-training-icon-dislike {
    -webkit-mask-image: url(/media/embed/icons/nouns/thumbs-down.svg);
    mask-image: url(/media/embed/icons/nouns/thumbs-down.svg);
}
.NB-classifier-filter-training-button.NB-training-like .NB-classifier-filter-training-icon {
    color: #34912E;
}
.NB-classifier-filter-training-button.NB-training-dislike .NB-classifier-filter-training-icon {
    color: #A90103;
}
.NB-classifier-filter-training-button.NB-training-super_dislike .NB-classifier-filter-training-icon {
    color: #6B0001;
}
.NB-classifier-filter-super-dislike-icon {
    position: relative;
    width: 19px;
    height: 18px;
    flex-shrink: 0;
}
.NB-classifier-filter-super-dislike-icon > span {
    position: absolute;
    display: inline-flex;
    width: 13px;
    height: 13px;
}
.NB-classifier-filter-super-dislike-icon .NB-super-dislike-icon-back {
    top: 0;
    left: 0;
    opacity: 0.48;
}
.NB-classifier-filter-super-dislike-icon .NB-super-dislike-icon-front {
    right: 0;
    bottom: 0;
}
.NB-classifier-filter-notification-icon {
    display: inline-flex;
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}
.NB-classifier-filter-notification-group {
    align-items: flex-start;
}
.NB-classifier-filter-notification-group > .NB-classifier-filter-tool-label {
    line-height: 32px;
}
.NB-classifier-filter-notification-content {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    min-width: 0;
    gap: 5px;
}
.NB-classifier-filter-notification-button:disabled {
    opacity: 0.42;
    cursor: default;
}
.NB-classifier-filter-notification-button:disabled:hover {
    color: #68656B;
    background: transparent;
}
.NB-classifier-filter-notification-upgrade {
    min-height: 24px;
    padding: 0 9px;
    border: 0;
    border-radius: 12px;
    color: var(--classifier-accent);
    background: rgba(255, 255, 255, 0.7);
    font-size: 9.5px;
    font-weight: 650;
    cursor: pointer;
    white-space: nowrap;
}
.NB-classifier-filter-notification-upgrade:hover,
.NB-classifier-filter-notification-upgrade:focus-visible {
    background: rgba(255, 255, 255, 0.95);
    outline: 0;
}

.NB-classifier-filter-banner-actions {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
}

.NB-classifier-filter-banner-back-trainer {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 32px;
    padding: 0 8px;
    border: 0;
    border-radius: 6px;
    font-size: 11px;
    color: #5C5960;
    background: transparent;
    cursor: pointer;
    transition: background 120ms ease, color 120ms ease;
}
.NB-classifier-filter-banner-clear {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    min-height: 32px;
    padding: 0;
    border: 0;
    border-radius: 6px;
    font-size: 11px;
    color: #4E4B51;
    background: transparent;
    cursor: pointer;
    transition: background 120ms ease, color 120ms ease;
}
.NB-classifier-filter-banner-clear-icon {
    font-size: 10px;
}
.NB-classifier-filter-banner-back-trainer:hover,
.NB-classifier-filter-banner-clear:hover,
.NB-classifier-filter-banner-back-trainer:focus-visible,
.NB-classifier-filter-banner-clear:focus-visible {
    color: #252329;
    background: rgba(255, 255, 255, 0.76);
    outline: 0;
}

.NB-dark .NB-classifier-filter-banner {
    --classifier-accent: #B39ACA;
    --classifier-tint: #27242B;
    border-bottom-color: rgba(255, 255, 255, 0.13);
}
.NB-dark .NB-classifier-filter-banner.NB-filter-tag {
    --classifier-accent: #79B98D;
    --classifier-tint: #202923;
}
.NB-dark .NB-classifier-filter-banner.NB-filter-author {
    --classifier-accent: #D1AD68;
    --classifier-tint: #2A271F;
}
.NB-dark .NB-classifier-filter-banner.NB-filter-title {
    --classifier-accent: #81B7DF;
    --classifier-tint: #202830;
}
.NB-dark .NB-classifier-filter-banner.NB-filter-url {
    --classifier-accent: #D68AA0;
    --classifier-tint: #2B2327;
}
.NB-dark .NB-classifier-filter-banner.NB-filter-text {
    --classifier-accent: #B69BDD;
    --classifier-tint: #27232E;
}
.NB-dark .NB-classifier-filter-banner-icon {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.12);
}
.NB-dark .NB-classifier-filter-banner-heading {
    color: #F1EFF2;
}
.NB-dark .NB-classifier-filter-banner-separator {
    color: rgba(241, 239, 242, 0.34);
}
.NB-dark .NB-classifier-filter-narrow-hint {
    color: #B7B3BA;
}
.NB-dark .NB-classifier-filter-account-section {
    border-color: rgba(255, 255, 255, 0.10);
    background: rgba(0, 0, 0, 0.16);
}
.NB-dark .NB-classifier-filter-tool-label {
    color: #AAA5AE;
}
.NB-dark .NB-classifier-filter-segmented {
    background: transparent;
}
.NB-dark .NB-classifier-filter-segmented:hover {
    background-color: #494D54;
}
.NB-dark .NB-classifier-filter-scope-button,
.NB-dark .NB-classifier-filter-training-button,
.NB-dark .NB-classifier-filter-notification-button {
    color: #B5B0B9;
}
.NB-dark .NB-classifier-filter-scope-button:hover,
.NB-dark .NB-classifier-filter-training-button:hover,
.NB-dark .NB-classifier-filter-notification-button:hover,
.NB-dark .NB-classifier-filter-scope-button:focus-visible,
.NB-dark .NB-classifier-filter-training-button:focus-visible,
.NB-dark .NB-classifier-filter-notification-button:focus-visible,
.NB-dark .NB-classifier-filter-scope-button.NB-active,
.NB-dark .NB-classifier-filter-training-button.NB-active,
.NB-dark .NB-classifier-filter-notification-button.NB-active {
    background: #6C6C74;
    color: #F4F1F5;
}
.NB-dark .NB-classifier-filter-segmented:hover > button.NB-active {
    background: #787881;
}
.NB-dark .NB-classifier-filter-segmented > button:hover:not(:disabled):not(.NB-active) {
    background: #585B63;
}
.NB-dark .NB-classifier-filter-training-button.NB-training-like.NB-active {
    color: #34912E;
}
.NB-dark .NB-classifier-filter-training-button.NB-training-dislike.NB-active {
    color: #A90103;
}
.NB-dark .NB-classifier-filter-training-button.NB-training-super_dislike.NB-active {
    color: #6B0001;
}
.NB-dark .NB-classifier-filter-training-button.NB-active .NB-classifier-filter-button-label {
    color: #F4F1F5;
}
.NB-dark .NB-classifier-filter-notification-button:disabled:hover {
    color: #B5B0B9;
    background: transparent;
}
.NB-dark .NB-classifier-filter-notification-upgrade {
    background: rgba(255, 255, 255, 0.08);
}
.NB-dark .NB-classifier-filter-notification-upgrade:hover,
.NB-dark .NB-classifier-filter-notification-upgrade:focus-visible {
    background: rgba(255, 255, 255, 0.14);
}
.NB-dark .NB-classifier-filter-banner-clear,
.NB-dark .NB-classifier-filter-banner-back-trainer {
    color: #C7C3C9;
}
.NB-dark .NB-classifier-filter-banner-clear:hover,
.NB-dark .NB-classifier-filter-banner-clear:focus-visible,
.NB-dark .NB-classifier-filter-banner-back-trainer:focus-visible,
.NB-dark .NB-classifier-filter-banner-back-trainer:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #FFFFFF;
}

@container (max-width: 430px) {
    .NB-classifier-filter-tool-group {
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
        gap: 3px;
    }
    .NB-classifier-filter-tool-label,
    .NB-classifier-filter-notification-group > .NB-classifier-filter-tool-label {
        flex: 0 0 auto;
        line-height: 1.2;
    }
    .NB-classifier-filter-notification-content {
        max-width: 100%;
    }
}

@container (max-width: 380px) {
    .NB-classifier-filter-banner-icon {
        display: none;
    }
    .NB-classifier-filter-account-section {
        padding-right: 6px;
        padding-left: 6px;
    }
    .NB-classifier-filter-notification-button {
        gap: 2px;
        padding-right: 6px;
        padding-left: 6px;
    }
}

@container (max-width: 340px) {
    .NB-classifier-filter-scope-button,
    .NB-classifier-filter-training-button,
    .NB-classifier-filter-notification-button {
        padding-right: 6px;
        padding-left: 6px;
    }
    .NB-classifier-filter-notification-button {
        padding-right: 5px;
        padding-left: 5px;
    }
}

@container (max-width: 300px) {
    .NB-classifier-filter-notification-icon {
        display: none;
    }
}

@container (max-width: 240px) {
    .NB-classifier-filter-account-section {
        padding-right: 6px;
        padding-left: 6px;
    }
    .NB-classifier-filter-scope-button,
    .NB-classifier-filter-training-button,
    .NB-classifier-filter-notification-button {
        padding-right: 4px;
        padding-left: 4px;
    }
    .NB-classifier-filter-scope-button > svg,
    .NB-classifier-filter-training-button > .NB-classifier-filter-training-icon,
    .NB-classifier-filter-super-dislike-icon {
        display: none;
    }
}

@container (max-width: 200px) {
    .NB-classifier-filter-banner-content {
        box-sizing: border-box;
        padding-right: 24px;
    }
    .NB-classifier-filter-banner-tools {
        display: none;
    }
    .NB-classifier-filter-narrow-hint {
        display: block;
    }
    .NB-classifier-filter-banner-actions {
        position: absolute;
        top: 6px;
        right: 4px;
    }
    .NB-classifier-filter-banner-clear {
        width: 26px;
        min-height: 26px;
    }
    .NB-classifier-filter-banner-back-trainer {
        display: none;
    }
}

@container (max-width: 120px) {
    .NB-classifier-filter-banner-separator,
    .NB-classifier-filter-banner-value,
    .NB-classifier-filter-narrow-hint-label {
        display: none;
    }
    .NB-classifier-filter-narrow-hint-compact {
        display: inline;
    }
}

.NB-classifier-filter-highlight {
    padding: 0 1px;
    border-radius: 2px;
    color: inherit;
    background: #FFE28A;
    box-shadow: inset 0 -1px 0 rgba(157, 112, 22, 0.25);
}
.NB-dark .NB-classifier-filter-highlight {
    color: #FFF3C2;
    background: #67551F;
    box-shadow: inset 0 -1px 0 rgba(255, 224, 128, 0.32);
}

.NB-storytitles-classifier-url {
    margin-top: 4px;
    overflow: hidden;
    color: #77737A;
    font-family: monospace;
    font-size: 10px;
    line-height: 1.25;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.NB-storytitles-classifier-url-label {
    margin-right: 5px;
    color: #8B878E;
    font-family: sans-serif;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.045em;
    text-transform: uppercase;
}
.NB-dark .NB-storytitles-classifier-url {
    color: #AAA5AD;
}

.NB-classifier-filter-empty {
    max-width: 330px;
    margin: 34px auto;
    padding: 24px 20px;
    border: 1px solid rgba(50, 47, 54, 0.12);
    border-radius: 10px;
    box-sizing: border-box;
    color: #343137;
    background: rgba(255, 255, 255, 0.52);
    text-align: center;
}
.NB-classifier-filter-empty-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    margin-bottom: 10px;
    border-radius: 50%;
    color: #7B7187;
    background: #EFEBF3;
}
.NB-classifier-filter-empty-icon svg {
    width: 21px;
    height: 21px;
}
.NB-classifier-filter-empty-title {
    font-size: 14px;
    font-weight: 650;
    line-height: 1.35;
    overflow-wrap: anywhere;
}
.NB-classifier-filter-empty-copy {
    margin-top: 4px;
    color: #747078;
    font-size: 11px;
    line-height: 1.45;
}
.NB-classifier-filter-empty-actions {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 15px;
}
.NB-classifier-filter-empty-actions button {
    min-height: 32px;
    padding: 0 11px;
    border: 1px solid rgba(55, 51, 59, 0.18);
    border-radius: 6px;
    color: #555159;
    background: #FFFFFF;
    cursor: pointer;
}
.NB-classifier-filter-empty-actions button:hover,
.NB-classifier-filter-empty-actions button:focus-visible {
    border-color: #81718F;
    color: #312C36;
    outline: 0;
}
.NB-classifier-filter-empty-widen {
    color: #FFFFFF !important;
    background: #75628E !important;
    border-color: #75628E !important;
}
.NB-dark .NB-classifier-filter-empty {
    border-color: rgba(255, 255, 255, 0.12);
    color: #F0EDF1;
    background: rgba(255, 255, 255, 0.045);
}
.NB-dark .NB-classifier-filter-empty-icon {
    color: #C1ADCF;
    background: rgba(182, 155, 221, 0.13);
}
.NB-dark .NB-classifier-filter-empty-copy {
    color: #AAA5AD;
}
.NB-dark .NB-classifier-filter-empty-actions button {
    border-color: rgba(255, 255, 255, 0.18);
    color: #D5D1D7;
    background: rgba(255, 255, 255, 0.07);
}

/* Trainer modal row "view matching stories" icon. Stays quiet until the
   row is hovered so the trainer remains scannable. See
   media/js/newsblur/reader/reader_classifier.js:make_manage_classifier_item */
.NB-classifier-filter-view-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    margin-left: 2px;
    padding: 0;
    border: 0;
    border-radius: 4px;
    box-sizing: border-box;
    cursor: pointer !important;
    opacity: 0.16;
    color: inherit;
    background: transparent;
    transition: opacity 140ms ease, background 140ms ease, color 140ms ease;
    vertical-align: middle;
}
.NB-manage-classifier-item .NB-classifier-filter-view-btn {
    position: static;
    margin-left: 2px;
}
.NB-classifier-filter-view-btn svg {
    width: 14px;
    height: 14px;
    fill: currentColor;
    pointer-events: none;
}
.NB-classifier-container:hover .NB-classifier-filter-view-btn,
.NB-manage-classifier-item:hover .NB-classifier-filter-view-btn,
.NB-classifier-filter-view-btn:focus-visible {
    opacity: 0.82;
}
.NB-classifier-filter-view-btn:hover {
    opacity: 1 !important;
    /* Rectangular highlight that reads like a text-selection background —
       matches the hover affordance used on the story-quote button. */
    background: rgba(99, 148, 220, 0.28);
    color: #1a1a1a;
}
.NB-dark .NB-classifier-filter-view-btn:hover {
    background: rgba(120, 170, 240, 0.28);
    color: #f4f4f5;
}

.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);
}

.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;
    transition: background 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: 1000px;
}

.NB-modal.NB-modal-classifiers {
    position: relative;
    overflow: hidden;
    height: 100%;
    max-height: 1000px;
    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-flex;
    align-items: center;
    margin: 2px 6px 6px 0;
}

.NB-modal-classifiers .NB-classifier-container .NB-classifier {
    margin: 0;
}

.NB-modal-classifiers .NB-classifier-container .NB-classifier-filter-view-btn {
    position: static;
    margin: 0 0 0 2px;
}

.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;
    position: relative;
    padding-right: 28px;
}

.NB-modal-classifiers .NB-modal-title .NB-classifier-title-like::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 24px;
    height: 24px;
    background: url(/media/embed/icons/nouns/thumbs-up.svg) no-repeat center;
    background-size: 24px;
    filter: brightness(0) saturate(100%) invert(39%) sepia(96%) saturate(520%) hue-rotate(80deg) brightness(95%) contrast(87%);
}

.NB-modal-classifiers .NB-modal-title .NB-classifier-title-dislike {
    color: #932C15;
    position: relative;
    padding-right: 28px;
}

.NB-modal-classifiers .NB-modal-title .NB-classifier-title-dislike::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 24px;
    height: 24px;
    background: url(/media/embed/icons/nouns/thumbs-down.svg) no-repeat center;
    background-size: 24px;
    filter: brightness(0) saturate(100%) invert(12%) sepia(96%) saturate(5400%) hue-rotate(358deg) brightness(85%) contrast(120%);
}

.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-flex;
    align-items: center;
}

.NB-manage-classifier-item .NB-classifier {
    font-size: 12px;
    margin-right: 0;
}

/* 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_dark.png) no-repeat 0 0;
    background-size: 20px;
    cursor: pointer;
    flex-shrink: 0;
    opacity: 0.7;
    transition: opacity 0.15s ease;
}

.NB-add-folder-row .NB-add-folder-icon:hover {
    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: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease, box-shadow 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: background 0.15s ease, border-color 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 54px 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: inline-flex;
    align-items: stretch;
    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 {
    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: 4px;
    opacity: .6;
}

.NB-classifiers .NB-classifier .NB-classifier-icon-dislike {
    width: 27px;
    height: 22px;
    position: absolute;
    top: -1px;
    right: 23px;
    background: transparent url(/media/embed/icons/nouns/thumbs-down.svg) no-repeat 6px 5px;
    background-size: 14px;
    opacity: .6;
}

.NB-classifiers .NB-classifier .NB-classifier-icon-dislike-inner {
    margin: 4px 4px 0 0;
    width: 18px;
    height: 13px;
}

/* Publisher (feed) has no super-dislike, so shift dislike icon to the right edge */
.NB-classifiers .NB-classifier.NB-classifier-feed .NB-classifier-icon-dislike {
    right: 1px;
    border-radius: 0 14px 14px 0;
}

.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-like .NB-classifier-icon-super-dislike,
.NB-classifiers .NB-classifier.NB-classifier-hover-like .NB-classifier-icon-super-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-icon-super-dislike,
.NB-classifiers .NB-classifier.NB-classifier-hover-dislike .NB-classifier-icon-super-dislike {
    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);
}

/* ================================ */
/* = Super Downvote                = */
/* ================================ */

/* Double thumbs-down icon: two stacked thumbs-down SVGs */
.NB-classifiers .NB-classifier .NB-classifier-icon-super-dislike {
    width: 24px;
    position: absolute;
    top: 0;
    bottom: 0;
    right: 1px;
    border-radius: 0 14px 14px 0;
    opacity: .6;
    cursor: pointer;
    z-index: 1;
    border-left: 1px solid #EBEBE1;
}

.NB-classifiers .NB-classifier .NB-classifier-icon-super-dislike::before {
    content: '';
    display: block;
    position: absolute;
    top: 2px;
    left: 3px;
    width: 14px;
    height: 14px;
    background: transparent url(/media/embed/icons/nouns/thumbs-down.svg) no-repeat 0 0;
    background-size: 12px;
    opacity: 0.7;
}

.NB-classifiers .NB-classifier .NB-classifier-icon-super-dislike::after {
    content: '';
    display: block;
    position: absolute;
    top: 6px;
    left: 7px;
    width: 14px;
    height: 14px;
    background: transparent url(/media/embed/icons/nouns/thumbs-down.svg) no-repeat 0 0;
    background-size: 12px;
}

/* Active super-dislike state */
.NB-classifiers .NB-classifier.NB-classifier-super-dislike {
    background-color: #6B0001;
    border: 1px solid #000;
    -webkit-box-shadow: 1px 1px 1px #BDC0D7;
    -moz-box-shadow: 1px 1px 1px #BDC0D7;
    box-shadow: 1px 1px 1px #BDC0D7;
}

/* Hover state for super-dislike icon — must override hover-like green */
.NB-classifiers .NB-classifier.NB-classifier-hover-super-dislike,
.NB-classifiers .NB-classifier.NB-classifier-hover-like.NB-classifier-hover-super-dislike {
    background-color: #8B0001;
}

.NB-classifiers .NB-classifier.NB-classifier-like.NB-classifier-hover-super-dislike {
    border: 1px solid transparent;
    background-color: #8B0001;
}

.NB-classifiers .NB-classifier.NB-classifier-dislike.NB-classifier-hover-super-dislike {
    border: 1px solid transparent;
    background-color: #8B0001;
}

/* Icon opacity when super-dislike is active or hovered */
.NB-classifiers .NB-classifier.NB-classifier-super-dislike .NB-classifier-icon-super-dislike,
.NB-classifiers .NB-classifier.NB-classifier-hover-super-dislike .NB-classifier-icon-super-dislike {
    opacity: 1;
}

.NB-classifiers .NB-classifier.NB-classifier-super-dislike .NB-classifier-icon-like,
.NB-classifiers .NB-classifier.NB-classifier-hover-super-dislike .NB-classifier-icon-like {
    opacity: .1;
}

.NB-classifiers .NB-classifier.NB-classifier-super-dislike .NB-classifier-icon-dislike,
.NB-classifiers .NB-classifier.NB-classifier-hover-super-dislike .NB-classifier-icon-dislike {
    opacity: .1;
}

/* When hovering like on a super-dislike pill, show the like icon */
.NB-classifiers .NB-classifier.NB-classifier-super-dislike.NB-classifier-hover-like .NB-classifier-icon-like {
    opacity: 1;
}

.NB-classifiers .NB-classifier.NB-classifier-super-dislike.NB-classifier-hover-like .NB-classifier-icon-super-dislike {
    opacity: .1;
}

/* When hovering super-dislike, suppress like/dislike icons */
.NB-classifiers .NB-classifier.NB-classifier-hover-like.NB-classifier-hover-super-dislike .NB-classifier-icon-super-dislike {
    opacity: 1;
}

.NB-classifiers .NB-classifier.NB-classifier-hover-like.NB-classifier-hover-super-dislike .NB-classifier-icon-like {
    opacity: .1;
}

/* Super-dislike label text styles */
.NB-classifiers .NB-classifier.NB-classifier-super-dislike label b,
.NB-classifiers .NB-classifier.NB-classifier-hover-super-dislike label b,
.NB-classifiers .NB-classifier.NB-classifier-hover-like.NB-classifier-hover-super-dislike label b {
    color: white;
}

.NB-classifiers .NB-classifier.NB-classifier-super-dislike label span,
.NB-classifiers .NB-classifier.NB-classifier-hover-super-dislike label span,
.NB-classifiers .NB-classifier.NB-classifier-hover-like.NB-classifier-hover-super-dislike label span {
    color: white;
    text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.5);
}

.NB-classifiers .NB-classifier.NB-classifier-super-dislike .NB-classifier-icon-dislike-inner,
.NB-classifiers .NB-classifier.NB-classifier-hover-super-dislike .NB-classifier-icon-dislike-inner {
    border-left-color: #8B3333;
}

.NB-classifiers .NB-classifier.NB-classifier-like .NB-classifier-icon-super-dislike,
.NB-classifiers .NB-classifier.NB-classifier-hover-like .NB-classifier-icon-super-dislike {
    border-left-color: #2A7A24;
}

.NB-classifiers .NB-classifier.NB-classifier-dislike .NB-classifier-icon-super-dislike,
.NB-classifiers .NB-classifier.NB-classifier-hover-dislike .NB-classifier-icon-super-dislike {
    border-left-color: #C17C52;
}

.NB-classifiers .NB-classifier.NB-classifier-super-dislike .NB-classifier-icon-super-dislike,
.NB-classifiers .NB-classifier.NB-classifier-hover-super-dislike .NB-classifier-icon-super-dislike {
    border-left-color: #8B3333;
}

/* Explainer banner */
.NB-classifier-explainer {
    margin: -4px 0 8px;
    font-size: 12px;
    color: #666;
    text-align: center;
}

.NB-explainer-hierarchy {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #f5f5ee;
    border-radius: 8px;
    padding: 6px 12px;
}

.NB-explainer-level {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 12px;
    white-space: nowrap;
}

.NB-explainer-level-super {
    background: rgba(107, 0, 1, 0.06);
}

.NB-explainer-level-like {
    background: rgba(52, 145, 46, 0.06);
}

.NB-explainer-level-dislike {
    background: rgba(169, 1, 3, 0.06);
}

.NB-classifier-explainer .NB-classifier-title-like {
    color: #34912E;
}

.NB-classifier-explainer .NB-classifier-title-dislike {
    color: #A90103;
}

.NB-classifier-explainer .NB-classifier-title-super-dislike {
    color: #6B0001;
}

.NB-explainer-separator {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 0 6px;
}

.NB-explainer-separator-line {
    display: block;
    width: 12px;
    height: 1px;
    background: #ccc;
}

.NB-explainer-separator-label {
    font-size: 10px;
    color: #aaa;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
    white-space: nowrap;
}

.NB-classifier-explainer .NB-explainer-icon {
    width: 14px;
    height: 14px;
    vertical-align: -1px;
}

.NB-classifier-explainer .NB-explainer-icon-like {
    filter: brightness(0) saturate(100%) invert(39%) sepia(96%) saturate(520%) hue-rotate(80deg) brightness(95%) contrast(87%);
}

.NB-classifier-explainer .NB-explainer-icon-dislike {
    filter: brightness(0) saturate(100%) invert(12%) sepia(96%) saturate(5400%) hue-rotate(358deg) brightness(85%) contrast(120%);
}

.NB-classifier-explainer .NB-explainer-icon-super-dislike {
    filter: brightness(0) saturate(100%) invert(6%) sepia(96%) saturate(5400%) hue-rotate(358deg) brightness(65%) contrast(120%);
}

.NB-classifier-explainer .NB-explainer-icon-double-dislike {
    display: inline-block;
    position: relative;
    width: 20px;
    height: 16px;
    vertical-align: -3px;
}

.NB-classifier-explainer .NB-explainer-icon-double-dislike .NB-explainer-icon {
    position: absolute;
}

.NB-classifier-explainer .NB-explainer-icon-double-dislike .NB-explainer-icon:first-child {
    top: 0;
    left: 0;
    opacity: 0.6;
}

.NB-classifier-explainer .NB-explainer-icon-double-dislike .NB-explainer-icon-super-dislike-shadow {
    top: 3px;
    left: 5px;
}

/* Scoring info icon in explainer banner */
.NB-explainer-scoring-info {
    margin-left: 10px;
    cursor: help;
    font-size: 13px;
    opacity: 0.5;
    transition: opacity 0.15s;
}

.NB-explainer-scoring-info:hover {
    opacity: 1;
}

/* Scoring popover */
.NB-scoring-popover {
    display: none;
    position: absolute;
    z-index: 10000;
    background: linear-gradient(135deg, #fafaf6 0%, #f3f2ec 100%);
    border: 1px solid #ddd9cc;
    border-radius: 8px;
    padding: 16px 18px;
    font-size: 12px;
    line-height: 1.5;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    width: 360px;
}

.NB-scoring-popover.NB-visible {
    display: block;
}

.NB-scoring-example {
    padding: 0;
}

.NB-scoring-example-header {
    font-weight: 600;
    color: #555;
    font-size: 11px;
    margin-bottom: 8px;
}

.NB-scoring-example-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-bottom: 10px;
}

.NB-scoring-example-pill {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 500;
}

.NB-scoring-pill-like {
    background: linear-gradient(to bottom, #4E8F3E, #366B2A);
    color: #fff;
}

.NB-scoring-pill-dislike {
    background: linear-gradient(to bottom, #B33D3D, #8B2020);
    color: #fff;
}

.NB-scoring-pill-super-dislike {
    background: linear-gradient(to bottom, #6B0001, #4A0001);
    color: #fff;
}

.NB-scoring-pill-icon {
    width: 10px;
    height: 10px;
    filter: brightness(0) invert(1);
}

.NB-scoring-pill-double-icon {
    display: inline-block;
    position: relative;
    width: 14px;
    height: 10px;
}

.NB-scoring-pill-double-icon .NB-scoring-pill-icon {
    position: absolute;
    top: 0;
}

.NB-scoring-pill-double-icon .NB-scoring-pill-icon:first-child {
    left: 0;
    top: -2px;
    opacity: 0.5;
}

.NB-scoring-pill-double-icon .NB-scoring-pill-icon-shadow {
    left: 4px;
    top: 2px;
}

.NB-scoring-example-result {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border-radius: 5px;
    font-size: 11px;
    font-weight: 600;
}

.NB-scoring-result-focus {
    background: rgba(110, 167, 74, 0.1);
    color: #3d7a2a;
}

.NB-scoring-result-hidden {
    background: rgba(204, 42, 46, 0.1);
    color: #9a1c1f;
}

.NB-scoring-result-indicator {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

.NB-scoring-divider {
    border: none;
    border-top: 1px solid #ddd9cc;
    margin: 12px 0;
}

/* ================================ */
/* = 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-flex;
    align-items: center;
    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: 2px 5px;
    border-radius: 3px;
    margin-right: 4px;
    vertical-align: middle;
    line-height: 1;
}

.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;
}

/* ============================================== */
/* = Classifier Notification Bell               = */
/* ============================================== */

.NB-classifier-notification-bell {
    gap: 2px;
    cursor: pointer;
    padding: 0 3px;
    background: rgba(128, 128, 128, 0.1);
    transition: background 0.15s;
}

.NB-classifier-notification-bell:hover {
    background: rgba(128, 128, 128, 0.25);
}

.NB-classifier-notification-bell .NB-bell-icon {
    display: inline-flex;
    width: 12px;
    height: 12px;
    opacity: 0.35;
    transition: opacity 0.15s;
    color: #777;
    flex-shrink: 0;
}

.NB-classifier-notification-bell .NB-bell-icon svg {
    width: 100%;
    height: 100%;
}

.NB-classifier-notification-bell:hover .NB-bell-icon {
    opacity: 0.5;
}

.NB-classifier-notification-bell.NB-active .NB-bell-icon {
    opacity: 1;
    color: #4a90d9;
}

/* Channel indicator icons next to the bell */
.NB-classifier-notif-indicators {
    display: inline-flex;
    align-items: center;
    gap: 1px;
}

.NB-channel-indicator {
    display: inline-flex;
    width: 8px;
    height: 8px;
    opacity: 0.6;
    color: #4a90d9;
    flex-shrink: 0;
}

.NB-channel-indicator svg {
    width: 100%;
    height: 100%;
}

/* Natural Language classifier pills notify on focus (liked) prompts only —
   a notification for a story matching a hide prompt is contradictory.
   The story/publisher trainer uses .NB-classifier-prompt for both content
   and image prompts; the manage tab uses .NB-classifier-image_prompt. */
.NB-classifier-prompt .NB-classifier-notification-bell,
.NB-classifier-image_prompt .NB-classifier-notification-bell {
    display: none;
}

.NB-classifier-prompt.NB-classifier-like .NB-classifier-notification-bell,
.NB-classifier-image_prompt.NB-classifier-like .NB-classifier-notification-bell {
    display: inline-flex;
}

/* Bell styles inside liked/disliked classifier pills */
.NB-classifier-like .NB-classifier-notification-bell {
    background: rgba(255, 255, 255, 0.15);
}

.NB-classifier-like .NB-classifier-notification-bell:hover {
    background: rgba(255, 255, 255, 0.3);
}

.NB-classifier-like .NB-classifier-notification-bell .NB-bell-icon {
    opacity: 0.6;
    color: rgba(255, 255, 255, 0.85);
}

.NB-classifier-like .NB-classifier-notification-bell:hover .NB-bell-icon {
    opacity: 0.85;
    color: white;
}

.NB-classifier-like .NB-classifier-notification-bell.NB-active .NB-bell-icon {
    opacity: 1;
    color: white;
}

.NB-classifier-like .NB-channel-indicator {
    color: white;
    opacity: 0.9;
}

.NB-classifier-dislike .NB-classifier-notification-bell {
    background: rgba(255, 255, 255, 0.15);
}

.NB-classifier-dislike .NB-classifier-notification-bell:hover {
    background: rgba(255, 255, 255, 0.3);
}

.NB-classifier-dislike .NB-classifier-notification-bell .NB-bell-icon {
    opacity: 0.6;
    color: rgba(255, 255, 255, 0.85);
}

.NB-classifier-dislike .NB-classifier-notification-bell:hover .NB-bell-icon {
    opacity: 0.85;
    color: white;
}

.NB-classifier-dislike .NB-classifier-notification-bell.NB-active .NB-bell-icon {
    opacity: 1;
    color: white;
}

.NB-classifier-dislike .NB-channel-indicator {
    color: white;
    opacity: 0.9;
}

/* ============================================== */
/* = Classifier Notification Popover            = */
/* ============================================== */

.NB-classifier-notification-popover {
    position: fixed;
    z-index: 100000;
    background: rgba(0, 0, 0, 0.85);
    color: #fff;
    border-radius: 6px;
    padding: 8px 8px 6px;
    pointer-events: auto;
}

.NB-classifier-notification-popover .NB-classifier-notif-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 5px;
}

.NB-classifier-notification-popover .NB-classifier-notif-label {
    font-size: 10px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.NB-classifier-notification-popover .NB-classifier-notif-premium {
    font-size: 9px;
    font-weight: 600;
    color: #d97706;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    opacity: 0.8;
    transition: opacity 0.15s;
}

.NB-classifier-notification-popover .NB-classifier-notif-premium.NB-flash {
    animation: notif-premium-flash 0.6s ease-out;
}

@keyframes notif-premium-flash {
    0% {
        opacity: 1;
        color: #fbbf24;
    }

    100% {
        opacity: 0.8;
        color: #d97706;
    }
}

/* Inactive state: classifier is not liked, show explanatory message */
.NB-classifier-notif-inactive-msg {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.5);
    font-style: italic;
    padding: 2px 0;
}

/* Gated state: dim the toggles to signal they're not clickable */
.NB-notif-gated .NB-classifier-notif-option {
    opacity: 0.4;
    cursor: default;
}

.NB-classifier-notification-popover .NB-classifier-notif-types,
.NB-classifier-notification-popover .NB-feed-notification-types,
.NB-classifier-notification-popover .NB-feed-notification-filter {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 1px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.08);
}

/* Override segmented-control base styles inside the dark popover */
.NB-classifier-notification-popover .segmented-control {
    background-color: rgba(255, 255, 255, 0.08);
}

.NB-classifier-notification-popover .segmented-control:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.NB-classifier-notification-popover .segmented-control li {
    color: rgba(255, 255, 255, 0.55);
    text-shadow: none;
}

.NB-classifier-notification-popover .segmented-control li:hover:not(.NB-disabled):not(.NB-active) {
    background-color: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.85);
}

.NB-classifier-notification-popover .segmented-control li.NB-active {
    background-color: rgba(255, 255, 255, 0.2);
    color: #fff;
}

.NB-classifier-notification-popover .segmented-control:hover li.NB-active {
    background-color: rgba(255, 255, 255, 0.25);
}

.NB-classifier-notification-popover .NB-classifier-notif-option,
.NB-classifier-notification-popover .NB-feed-notification-option,
.NB-classifier-notification-popover .NB-feed-notification-filter-unread,
.NB-classifier-notification-popover .NB-feed-notification-filter-focus {
    padding: 3px 10px;
    font-size: 11px;
    font-weight: 500;
    cursor: pointer;
    border: none;
    border-radius: 3px;
    margin: 0 2px 0 0;
    white-space: nowrap;
    user-select: none;
    color: rgba(255, 255, 255, 0.55);
    text-shadow: none;
    background: none;
    transition: background-color 0.14s, color 0.14s;
}

.NB-classifier-notification-popover .NB-classifier-notif-option:last-child,
.NB-classifier-notification-popover .NB-feed-notification-option:last-child,
.NB-classifier-notification-popover .NB-feed-notification-filter-focus {
    margin-right: 0;
}

.NB-classifier-notification-popover .NB-classifier-notif-option:hover,
.NB-classifier-notification-popover .NB-feed-notification-option:hover,
.NB-classifier-notification-popover .NB-feed-notification-filter-unread:hover,
.NB-classifier-notification-popover .NB-feed-notification-filter-focus:hover {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.85);
}

.NB-classifier-notification-popover .NB-classifier-notif-option.NB-active,
.NB-classifier-notification-popover .NB-feed-notification-option.NB-active,
.NB-classifier-notification-popover .NB-feed-notification-filter-unread.NB-active,
.NB-classifier-notification-popover .NB-feed-notification-filter-focus.NB-active {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
}

/* Shared channel treatment for notification popovers and the notifications dialog. */
.NB-notification-channel-option {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    border: 0;
    background-image: none;
}
.NB-notification-channel-option.NB-active {
    box-shadow: inset 0 -2px 0 #4A90D9;
}
.NB-notification-channel-icon {
    display: inline-flex;
    width: 13px;
    height: 13px;
    flex: 0 0 13px;
}
.NB-notification-channel-icon svg {
    width: 13px;
    height: 13px;
}

/* Feed notification popover: stack filter and types vertically */
.NB-classifier-notification-popover-feed .NB-feed-notification-controls {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

/* Shared style for all three classifier pill containers */
.NB-classifier-scope-badge,
.NB-classifier-type-badge,
.NB-classifier-notification-bell {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 3px;
    margin-right: 4px;
    vertical-align: middle;
    background: rgba(128, 128, 128, 0.15);
    line-height: 1;
}

/* Scope badge: just the scope toggle icons */
.NB-classifier-scope-badge {
    gap: 1px;
    padding: 2px 3px;
}

.NB-classifier-scope-badge.NB-classifier-type-feed {
    cursor: default;
    padding: 2px 3px;
}

/* Single scope icon used in the manage tab */
.NB-classifier-scope-icon {
    display: inline-flex;
    width: 11px;
    height: 11px;
    flex-shrink: 0;
    opacity: 0.5;
    color: inherit;
}

.NB-classifier-scope-icon svg {
    width: 100%;
    height: 100%;
}

.NB-classifier-scope-icon.NB-scope-folder {
    color: #60A5FA;
    opacity: 0.7;
}

.NB-classifier-scope-icon.NB-scope-global {
    color: #A78BFA;
    opacity: 0.7;
}

.NB-classifier-like .NB-classifier-scope-icon {
    color: rgba(255, 255, 255, 0.7);
    opacity: 0.7;
}

.NB-classifier-dislike .NB-classifier-scope-icon {
    color: rgba(255, 255, 255, 0.7);
    opacity: 0.7;
}

/* Type label badge: just the classifier type name */
.NB-classifier-type-badge {
    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;
    color: #777;
}

/* 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,
.NB-classifier-like .NB-classifier-scope-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,
.NB-classifier-dislike .NB-classifier-scope-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,
.NB-classifier-feed-items:first-child::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,
.NB-classifier-folder-items:first-child::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,
.NB-classifier-global-items:first-child::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: background 0.15s ease, color 0.15s ease, box-shadow 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;
}

/* Subtitle explainer inside section */
.NB-classifier-section-explainer {
    font-size: 11px;
    line-height: 1.3;
    color: #999;
    font-style: italic;
    margin: -12px 0 10px 0;
}

.NB-dark .NB-classifier-section-explainer {
    color: #777;
}

/* 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,
.NB-classifier-notif-notice {
    color: #807060;
    white-space: nowrap;
}

.NB-classifier-archive-notice a,
.NB-classifier-pro-notice a,
.NB-classifier-scope-notice a,
.NB-classifier-notif-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,
.NB-classifier-notif-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-archive 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;
}

/* Notification notice - hidden by default, animated in when non-archive clicks bell */
.NB-classifier-notif-notice {
    display: none;
    opacity: 0;
    transform: translateX(10px);
}

.NB-classifier-notif-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 or notification is denied */
.NB-classifier-type-badge.NB-shake,
.NB-classifier-scope-badge.NB-shake,
.NB-classifier-notification-bell.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;
}

/* ============================ */
/* = AI Content Filter (text) = */
/* ============================ */

.NB-content-filter-header {
    display: flex;
    align-items: center;
    gap: 6px;
}

.NB-content-filter-header-icon {
    display: flex;
    align-items: center;
    color: #4A90D9;
}

.NB-content-filter-header-icon svg {
    display: block;
}

.NB-classifier-staff-badge {
    color: #8B7355;
    font-size: 9px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    pointer-events: none;
}

.NB-classifier-content-prompt-input {
    flex: 1;
    height: 28px;
    padding: 0 10px;
    font-size: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
    transition: border-color 0.15s;
}

.NB-classifier-content-prompt-input:focus {
    border-color: #4A90D9;
    outline: none;
    box-shadow: 0 0 0 2px rgba(74, 144, 217, 0.15);
}

.NB-classifier-content-prompt-input:disabled {
    background: #f5f5f5;
    cursor: not-allowed;
    color: #aaa;
}

.NB-classifier-content-prompt-placeholder {
    font-style: italic;
}

.NB-classifier-content-filter-section .NB-classifier-input-row {
    display: flex;
    gap: 6px;
    align-items: center;
}

.NB-content-filter-test-button {
    font-size: 11px;
    padding: 4px 12px;
    white-space: nowrap;
    flex-shrink: 0;
}

.NB-content-filter-test-status {
    min-height: 0;
    margin-bottom: 2px;
}

.NB-content-filter-saved-list .NB-classifier-container {
    position: relative;
}

/* ======================================= */
/* = AI Classifier Cost Estimate          = */
/* ======================================= */

.NB-ai-cost-estimate {
    padding: 8px 12px;
    background: #f5f7f9;
    border: 1px solid #e2e5e9;
    border-radius: 6px;
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.NB-ai-cost-amounts {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 2px;
}

.NB-ai-cost-monthly {
    font-size: 15px;
    font-weight: 600;
    color: #333;
}

.NB-ai-cost-monthly small {
    font-size: 11px;
    font-weight: 400;
    color: #888;
    margin-left: 1px;
}

.NB-ai-cost-separator {
    color: #ccc;
    font-size: 12px;
}

.NB-ai-cost-daily {
    font-size: 12px;
    color: #666;
}

.NB-ai-cost-daily small {
    font-size: 10px;
    color: #999;
    margin-left: 1px;
}

.NB-ai-cost-breakdown {
    font-size: 10px;
    color: #999;
}

.NB-ai-cost-preview {
    font-size: 11px;
    color: #888;
}

.NB-ai-cost-preview b {
    color: #555;
}

.NB-ai-billing-action {
    font-size: 11px;
    padding: 4px 10px;
    border-radius: 12px;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    font-weight: 600;
    margin-top: 2px;
}

.NB-ai-billing-setup {
    background: #fff3cd;
    border: 1px solid #ffc107;
    color: #6d5a00;
}

.NB-ai-billing-manage {
    background: #e8f5e9;
    border: 1px solid #81c784;
    color: #2e7d32;
}

/* ================================= */
/* = Spending Limit (Account Dialog) = */
/* ================================= */

.NB-usage-billing-limit-section {
    clear: both;
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px solid #e0e0e0;
}

.NB-usage-billing-limit-label {
    font-weight: 600;
    font-size: 12px;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    margin-bottom: 6px;
}

.NB-usage-billing-limit-input-row {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 4px;
}

.NB-usage-billing-limit-dollar {
    font-weight: 600;
    font-size: 14px;
    color: #333;
}

.NB-usage-billing-limit-input {
    width: 80px;
    padding: 4px 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 13px;
}

.NB-usage-billing-limit-per-month {
    color: #666;
    font-size: 12px;
}

.NB-usage-billing-limit-help {
    font-size: 11px;
    color: #888;
    margin-top: 4px;
}

/* Progress bar */
.NB-usage-billing-limit-bar {
    position: relative;
    height: 22px;
    background: #e9ecef;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 6px;
}

.NB-usage-billing-limit-bar-fill {
    height: 100%;
    background: #81c784;
    transition: width 0.3s;
}

.NB-usage-billing-limit-bar.NB-limit-warning .NB-usage-billing-limit-bar-fill {
    background: #ffc107;
}

.NB-usage-billing-limit-bar.NB-limit-reached .NB-usage-billing-limit-bar-fill {
    background: #e57373;
}

.NB-usage-billing-limit-bar-text {
    position: absolute;
    top: 50%;
    left: 8px;
    transform: translateY(-50%);
    font-size: 11px;
    font-weight: 600;
    color: #333;
}

.NB-usage-billing-limit-nolimit {
    font-size: 12px;
    color: #666;
    margin-bottom: 4px;
}

/* Current spend hero section */
.NB-usage-billing-current-spend-section {
    margin: 8px 0 12px;
    padding: 12px 16px;
    background: #f8f9fa;
    border-radius: 6px;
    border: 1px solid #e0e0e0;
}

.NB-usage-billing-spend-hero {
    font-size: 28px;
    font-weight: 700;
    color: #333;
    line-height: 1.2;
}

.NB-usage-billing-spend-period {
    font-size: 12px;
    color: #888;
    margin-top: 2px;
    margin-bottom: 4px;
}

.NB-usage-billing-current-spend-section .NB-usage-billing-limit-bar {
    margin-top: 8px;
}

.NB-usage-billing-limit-reached-note {
    font-size: 11px;
    color: #c62828;
    font-weight: 600;
    margin-top: 4px;
}

.NB-usage-billing-upcoming-charge {
    font-size: 12px;
    color: #666;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px dashed #e0e0e0;
}

.NB-usage-billing-upcoming-amount {
    font-weight: 700;
    color: #333;
}

/* Invoice line items */
.NB-account-payment-line-items {
    width: 100%;
    margin-top: 6px;
    padding-top: 6px;
    border-top: 1px dashed #e0e0e0;
}

.NB-account-payment-line-item {
    display: flex;
    align-items: center;
    font-size: 11px;
    color: #666;
    padding: 2px 0;
}

.NB-account-payment-line-item-desc {
    flex: 1;
}

.NB-account-payment-line-item-qty {
    width: 50px;
    text-align: right;
    color: #999;
    margin-right: 8px;
}

.NB-account-payment-line-item-amount {
    width: 60px;
    text-align: right;
    font-weight: 600;
}

.NB-account-usage-payments .NB-account-payment {
    flex-wrap: wrap;
}

/* Dark theme overrides */
.NB-dark .NB-usage-billing-current-spend-section {
    background: #2a2a2a;
    border-color: #444;
}

.NB-dark .NB-usage-billing-spend-hero {
    color: #e0e0e0;
}

.NB-dark .NB-usage-billing-upcoming-amount {
    color: #e0e0e0;
}

.NB-dark .NB-usage-billing-upcoming-charge {
    border-top-color: #444;
}

.NB-dark .NB-account-payment-line-items {
    border-top-color: #444;
}

.NB-dark .NB-usage-billing-limit-bar {
    background: #333;
}

.NB-dark .NB-account-usage-payments .NB-account-payment {
    border-bottom-color: #444;
}

.NB-dark .NB-account-payment-line-item {
    color: #aaa;
}

.NB-dark .NB-account-payment-line-item-qty {
    color: #888;
}

.NB-dark .NB-account-usage-payments .NB-account-payment-invoice,
.NB-dark .NB-account-payments .NB-account-payment-invoice {
    background-color: #3a3a3a;
    color: #ccc;
}

.NB-dark .NB-account-usage-payments .NB-account-payment-invoice:hover,
.NB-dark .NB-account-payments .NB-account-payment-invoice:hover {
    background-color: #FAD961;
    color: #505050;
}

/* Limit reached banner in classifier dialog */
.NB-ai-filter-limit-reached-banner-inner {
    background: linear-gradient(135deg, #ffebee 0%, #ffcdd2 100%);
    border: 1px solid #ef9a9a;
    border-radius: 6px;
    padding: 8px 12px;
    font-size: 12px;
    margin-bottom: 10px;
}

.NB-ai-filter-limit-reached-banner-inner a {
    color: #c62828;
    font-weight: 700;
}

/* ======================== */
/* = AI Image Filter (VLM) = */
/* ======================== */

.NB-image-filter-header {
    display: flex;
    align-items: center;
    gap: 6px;
}

.NB-image-filter-header-icon {
    display: flex;
    align-items: center;
    color: #4A90D9;
}

.NB-image-filter-header-icon svg {
    display: block;
}

/* Image thumbnail grid */
.NB-image-filter-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 8px;
}

.NB-image-filter-thumb {
    width: 64px;
    display: flex;
    flex-direction: column;
    border-radius: 4px;
    overflow: hidden;
    background: #f0f0f0;
    flex-shrink: 0;
    border: 2px solid transparent;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.NB-image-filter-thumb img {
    width: 100%;
    height: 64px;
    object-fit: cover;
    display: block;
}

.NB-image-filter-thumb-label {
    text-align: center;
    font-size: 9px;
    font-weight: 600;
    padding: 2px 0;
    background: #e0e0e0;
    color: #757575;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.NB-image-filter-thumb-label-match {
    background: #4caf50;
    color: #fff;
}

.NB-image-filter-thumb-testing {
    border-color: #999;
    animation: image-filter-pulse 1.2s ease-in-out infinite;
}

@keyframes image-filter-pulse {
    0%, 100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

.NB-image-filter-thumb-match {
    border-color: #4caf50;
    box-shadow: 0 0 0 1px #4caf50, 0 0 6px rgba(76, 175, 80, 0.4);
}

.NB-image-filter-thumb-neutral {
    border-color: #ccc;
}

/* Input row with test button */
.NB-classifier-image-filter-section .NB-classifier-input-row {
    display: flex;
    gap: 6px;
    align-items: center;
}

.NB-classifier-prompt-input {
    flex: 1;
    height: 28px;
    padding: 0 10px;
    font-size: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
    transition: border-color 0.15s;
}

.NB-classifier-prompt-input:focus {
    border-color: #4A90D9;
    outline: none;
    box-shadow: 0 0 0 2px rgba(74, 144, 217, 0.15);
}

.NB-classifier-prompt-input:disabled {
    background: #f5f5f5;
    cursor: not-allowed;
    color: #aaa;
}

.NB-image-filter-test-button {
    font-size: 11px;
    padding: 4px 12px;
    white-space: nowrap;
    flex-shrink: 0;
}

/* Test result status */
.NB-image-filter-test-status {
    min-height: 0;
    margin-bottom: 2px;
}

.NB-image-filter-status-badge {
    display: block;
    font-size: 12px;
    font-weight: 600;
    padding: 7px 12px;
    border-radius: 4px;
    margin-top: 6px;
    text-align: center;
    letter-spacing: 0.2px;
}

.NB-image-filter-status-match {
    background: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #a5d6a7;
}

.NB-image-filter-status-neutral {
    background: #fce4ec;
    color: #b71c1c;
    border: 1px solid #ef9a9a;
}

.NB-image-filter-status-error {
    background: #fff3e0;
    color: #e65100;
    border: 1px solid #ffcc80;
}

.NB-classifier-prompt-placeholder {
    font-style: italic;
}

.NB-image-filter-saved-list .NB-classifier-container {
    position: relative;
}

.NB-image-filter-item-delete {
    cursor: pointer;
    color: #ccc;
    font-size: 18px;
    padding: 0 4px;
    line-height: 1;
    transition: color 0.15s;
    float: left;
    margin: 2px 0 0 4px;
}

.NB-image-filter-item-delete:hover {
    color: #c45555;
}

/* AI filter upgrade banner */
.NB-ai-filter-upgrade-banner {
    display: none;
}

.NB-ai-filter-upgrade-banner-inner {
    background: linear-gradient(135deg, #fff8e1 0%, #fff3cd 100%);
    border: 1px solid #ffc107;
    border-radius: 6px;
    padding: 10px 14px;
    margin-top: 8px;
    font-size: 12px;
    line-height: 1.5;
    color: #6d5a00;
    text-align: center;
}

.NB-ai-filter-upgrade-banner-inner a {
    color: #d68400;
    font-weight: 700;
    text-decoration: underline;
}

.NB-ai-filter-upgrade-banner-inner a:hover {
    color: #b36d00;
}

/* =================== */
/* = 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: color 0.15s ease, background 0.15s ease, border-color 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-variant-numeric: tabular-nums;
    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-features .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-faq .NB-menu-manage-image {
    background: transparent url(/media/embed/icons/nouns/dialog-faq.svg) no-repeat center center;
    background-size: 18px;
    filter: hue-rotate(228deg) saturate(12);
}

.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-referrals .NB-menu-manage-image {
    background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18' fill='none'%3E%3Crect x='2' y='8' width='14' height='9' rx='1.5' fill='%237B4FAF'/%3E%3Crect x='1' y='6' width='16' height='3' rx='1' fill='%238E63BF'/%3E%3Crect x='8' y='6' width='2' height='11' fill='%23EDE7F6' opacity='0.4'/%3E%3Cellipse cx='7' cy='5.5' rx='3' ry='2.5' fill='%23A77FD4' opacity='0.8' transform='rotate(-10 7 5.5)'/%3E%3Cellipse cx='11' cy='5.5' rx='3' ry='2.5' fill='%23A77FD4' opacity='0.8' transform='rotate(10 11 5.5)'/%3E%3Ccircle cx='9' cy='6' r='1.5' fill='%23FFD54F'/%3E%3C/svg%3E") no-repeat center center;
    background-size: 18px;
}

.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-thirdparty-wallabag {
    background-image: url(/media/embed/reader/wallabag.svg);
}

.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,
.NB-menu-manage .NB-menu-manage-story-thirdparty.NB-menu-manage-highlight-wallabag .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-wallabag .NB-menu-manage-thirdparty-wallabag {
    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;
}

/* Feed flyout submenu in story manage menu */
.NB-menu-manage-story-feed-submenu-wrapper {
    padding: 0 !important;
    margin: 0;
    height: 0;
    overflow: visible;
    border: none !important;
}

.NB-menu-manage-story-feed-submenu-wrapper:hover {
    background: none !important;
}

.NB-menu-manage-story-feed .NB-menu-manage-image {
    background: none;
}

.NB-menu-manage-story-feed .NB-menu-manage-image img,
.NB-menu-manage-story-feed .NB-menu-manage-image .feed_favicon {
    width: 16px;
    height: 16px;
}

.NB-menu-manage-story-feed:after {
    content: '';
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    background: transparent url(/media/embed/icons/nouns/right.svg) no-repeat center center;
    background-size: 8px;
    opacity: 0.4;
}

.NB-menu-manage li.NB-menu-item.NB-menu-manage-story-feed.NB-active {
    background-color: #ECEEEA;
}

.NB-menu-manage-story-feed-submenu {
    display: none;
    position: fixed;
    width: 260px;
    background-color: #EAECE6;
    border: 1px solid #90928B;
    box-shadow: 2px 2px 5px #5E6267;
    border-radius: 8px;
    padding: 0;
    margin: 0;
    list-style: none;
    z-index: 11;
}

.NB-menu-manage-story-feed-submenu li.NB-menu-item {
    background-color: white;
}

.NB-menu-manage-story-feed-submenu li.NB-menu-item:first-child {
    border-radius: 8px 8px 0 0;
}

.NB-menu-manage-story-feed-submenu li.NB-menu-item:last-child {
    border-radius: 0 0 8px 8px;
}

.NB-menu-manage-story-feed-submenu li.NB-menu-item:hover:not(.NB-disabled) {
    background-color: #DADCD4;
}

.NB-menu-manage-story-feed-submenu li.NB-menu-separator {
    border-bottom: 1px solid rgba(0, 0, 0, .08);
    margin: 0;
    padding: 0;
}

.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: background-color 0.25s ease, border-color 0.25s ease, transform 0.25s ease, box-shadow 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: background-color 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: background-color 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: opacity 0.15s ease, visibility 0.15s ease, transform 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: background-color 0.2s ease, border-color 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: background-color 0.15s ease, color 0.15s ease, box-shadow 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: background-color 0.15s ease, border-color 0.15s ease, color 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: background-color 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: background-color 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: background-color 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: background-color 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: opacity 0.15s ease, visibility 0.15s ease, transform 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-color: #F0DDD3;
    color: #8A4A32;
}

.NB-provider-pill.NB-provider-openai {
    background-color: #D9EAE4;
    color: #2F6457;
}

.NB-provider-pill.NB-provider-google {
    background-color: #DEE9FB;
    color: #2F5A94;
}

.NB-provider-pill.NB-provider-xai {
    background-color: #E2E2E2;
    color: #303030;
}

.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: background-color 0.2s ease, border-color 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;
}

/* reader.css: The usage/limit message renders the shared .NB-archive-callout
   strip (see reader_utils.js make_archive_callout), so this wrapper stays
   unstyled and only positions it. */
.NB-story-ask-ai-usage-message {
    margin-top: 16px;
}

.NB-story-ask-ai-inline .NB-story-ask-ai-usage-message {
    margin: 0 16px 16px;
}

/* When the limit message arrives without an answer above it, keep it off the header. */
.NB-story-ask-ai-inline .NB-story-ask-ai-answer[style*="display: none"]~.NB-story-ask-ai-usage-message {
    margin-top: 16px;
}

/* 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-color: #F0DDD3;
    color: #8A4A32;
}

.NB-story-ask-ai-model-pill.NB-provider-openai {
    background-color: #D9EAE4;
    color: #2F6457;
}

.NB-story-ask-ai-model-pill.NB-provider-google {
    background-color: #DEE9FB;
    color: #2F5A94;
}

.NB-story-ask-ai-model-pill.NB-provider-xai {
    background-color: #E2E2E2;
    color: #303030;
}

.NB-story-ask-ai-model-pill.NB-provider-unknown {
    background-color: #E8E8E6;
    color: #555555;
}

/* 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: 0;
    background-color: #FAFBF8;
    border: 1px solid #DCDED6;
    border-radius: 6px;
    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;
    /* No overflow: hidden here — the Re-ask/Send model dropdown opens upward and
       must escape the container when the module is short. Clipping only applies
       while collapsing (see .NB-closing below). */
}

/* 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);
        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);
        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;
    overflow: hidden;
}

@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: background-color 0.15s ease, transform 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: 0;
    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: 12px 16px;
    background-color: transparent;
    border: none;
    border-bottom: 1px solid #E4E6DE;
    border-radius: 0;
    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: #E4E6DE;
    }

    38% {
        border-color: #A0A499;
    }

    100% {
        border-color: #E4E6DE;
    }
}

@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: 13px;
    line-height: 1.5;
    color: #59604E;
    font-weight: 500;
    font-style: italic;
    padding-right: 36px;
}

/* 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: 16px;
    display: flex;
    gap: 8px;
}

.NB-story-ask-ai-inline .NB-story-ask-ai-custom-input {
    flex: 1;
    padding: 10px 14px;
    border: 1px solid #D0D2CC;
    border-radius: 4px;
    font-size: 13px;
    background-color: #FFFFFF;
}

.NB-story-ask-ai-inline .NB-story-ask-ai-custom-input:focus {
    outline: none;
    border-color: #90928B;
}

.NB-story-ask-ai-inline .NB-story-ask-ai-submit {
    padding: 10px 20px;
    font-size: 13px;
    background-color: #4A90A4;
    border: none;
    color: white;
    border-radius: 4px;
    cursor: pointer;
    transition: transform 0.2s ease, background-color 0.15s ease;
}

.NB-story-ask-ai-inline .NB-story-ask-ai-submit:hover {
    transform: translateY(-1px);
    background-color: #3A7A8A;
}

.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: transparent;
    border: none;
    border-radius: 0;
    line-height: 1.7;
    color: #404040;
}

.NB-story-ask-ai-inline .NB-story-ask-ai-followup-wrapper {
    margin-top: 0;
    padding: 12px 16px;
    border-top: 1px solid #E4E6DE;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.NB-story-ask-ai-inline .NB-story-ask-ai-error {
    margin: 16px;
    padding: 12px 14px;
    background-color: rgba(196, 90, 71, 0.05);
    border: 1px solid #E0CFC0;
    border-radius: 4px;
    font-size: 13px;
    line-height: 1.6;
    color: #8B5A3C;
    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;
}

/* Staggered entrance: title, story card, then each form section rises in turn. */
@keyframes NB-email-modal-enter {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.NB-modal-email .NB-modal-title,
.NB-modal-email .NB-modal-email-story,
.NB-modal-email>.NB-modal-email-field,
.NB-modal-email .NB-modal-email-from-container,
.NB-modal-email .NB-modal-email-cc-wrapper,
.NB-modal-email .NB-recommend-form {
    animation: NB-email-modal-enter 0.3s cubic-bezier(0.2, 0, 0, 1) backwards;
}

.NB-modal-email .NB-modal-email-story {
    animation-delay: 0.05s;
}

.NB-modal-email .NB-modal-email-to-container {
    animation-delay: 0.1s;
}

.NB-modal-email .NB-modal-email-comments-container {
    animation-delay: 0.15s;
}

.NB-modal-email .NB-modal-email-from-container {
    animation-delay: 0.2s;
}

.NB-modal-email .NB-modal-email-cc-wrapper {
    animation-delay: 0.25s;
}

.NB-modal-email .NB-recommend-form {
    animation-delay: 0.3s;
}

/* Story preview card */
.NB-modal-email .NB-modal-email-story {
    margin: 14px 0 0;
    padding: 12px 14px;
    background-color: #F8F8F6;
    border-radius: 8px;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05), 0 1px 2px rgba(0, 0, 0, 0.03);
}

.NB-modal-email .NB-modal-email-feed {
    display: flex;
    align-items: center;
    margin: 0 0 6px;
    font-size: 11px;
    font-weight: bold;
    color: #606060;
}

.NB-modal-email .NB-modal-email-feed .NB-modal-feed-image {
    width: 14px;
    height: 14px;
    margin: 0 6px 0 0;
    border-radius: 3px;
    float: none;
    flex-shrink: 0;
}

.NB-modal-email .NB-modal-email-feed .NB-modal-feed-title {
    margin: 0;
    float: none;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.NB-modal-email .NB-modal-email-story-title {
    font-size: 15px;
    font-weight: bold;
    line-height: 1.35;
    color: #303030;
    text-wrap: balance;
}

.NB-modal-email .NB-modal-email-story-permalink {
    display: block;
    margin: 4px 0 0;
    color: #909090;
    font-size: 11px;
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.NB-modal-email .NB-modal-email-story-permalink:hover {
    color: #607D9C;
    text-decoration: underline;
}

/* Form fields: label above input, full-width */
.NB-modal-email .NB-modal-email-field {
    margin: 14px 0 0;
}

.NB-modal-email .NB-modal-email-field label {
    display: block;
    margin: 0 0 4px 2px;
    font-size: 11px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    color: #808080;
}

.NB-modal-email .NB-modal-email-label-hint {
    margin-left: 6px;
    font-weight: normal;
    text-transform: none;
    letter-spacing: 0;
    color: #A8A8A8;
}

.NB-modal-email .NB-input {
    display: block;
    width: 100%;
    box-sizing: border-box;
    margin: 0;
}

.NB-modal-email .NB-modal-email-comments {
    display: block;
    width: 100%;
    box-sizing: border-box;
    height: 80px;
    margin: 0;
    padding: 8px;
    font-family: inherit;
    font-size: 14px;
    line-height: 20px;
    color: #404040;
    border: 1px solid rgba(0, 0, 0, .15);
    border-radius: 6px;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.06);
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
    resize: vertical;
}

.NB-modal-email .NB-modal-email-comments:focus {
    border-color: rgba(0, 0, 0, .3);
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.06), 0 0 0 3px rgba(66, 133, 244, 0.15);
    outline: none;
}

/* From name and email sit side-by-side */
.NB-modal-email .NB-modal-email-from-container {
    display: flex;
    gap: 12px;
    margin: 14px 0 0;
}

.NB-modal-email .NB-modal-email-from-container .NB-modal-email-field {
    flex: 1;
    min-width: 0;
    margin: 0;
}

/* CC me: the whole label row is clickable for a generous hit area */
.NB-modal-email .NB-modal-email-cc-wrapper {
    margin: 8px 0 0;
}

.NB-modal-email .NB-modal-email-cc-label {
    display: inline-flex;
    align-items: center;
    padding: 6px 8px 6px 2px;
    font-size: 13px;
    color: #505050;
    cursor: pointer;
}

.NB-modal-email .NB-modal-email-cc {
    margin: 0 8px 0 0;
    cursor: pointer;
}

/* Footer: send button and keyboard hint on the left, email client escape hatch on the right */
.NB-modal-email .NB-recommend-form {
    margin: 12px 0 0;
}

.NB-modal-email .NB-modal-submit {
    display: flex;
    align-items: center;
    margin: 0;
    padding: 14px 0 0;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.NB-modal-email .NB-modal-submit .NB-modal-submit-button {
    margin: 0;
    padding: 9px 16px;
    font-size: 13px;
}

.NB-modal-email .NB-modal-email-shortcut-hint {
    margin: 0 0 0 10px;
    font-size: 11px;
    color: #B0B0B0;
}

.NB-modal-email .NB-modal-emailclient {
    margin-left: auto;
    padding: 8px 2px;
    font-size: 12px;
    color: #607D9C;
    text-decoration: none;
}

.NB-modal-email .NB-modal-emailclient:hover {
    text-decoration: underline;
}

.NB-modal-email .NB-modal-emailclient::after {
    content: ' ↗';
    font-size: 11px;
}

/* Sent confirmation: keep the button green through its disabled state and give it a soft pop */
@keyframes NB-email-sent-pop {
    0% {
        transform: scale(1);
    }

    40% {
        transform: scale(1.04);
    }

    100% {
        transform: scale(1);
    }
}

.NB-modal-email .NB-modal-submit-button.NB-modal-email-sent,
.NB-modal-email .NB-modal-submit-button.NB-modal-email-sent.NB-disabled,
.NB-modal-email .NB-modal-submit-button.NB-modal-email-sent.NB-disabled:hover {
    background-color: #217412;
    background-image: linear-gradient(to top, #216200, #217412);
    color: #FCFCFC;
    text-shadow: none;
    animation: NB-email-sent-pop 0.3s cubic-bezier(0.2, 0, 0, 1);
}

.NB-modal.NB-modal-email .NB-error {
    font-size: 12px;
    margin-top: 8px;
}

/* ========================== */
/* = Features & Tips Modal  = */
/* ========================== */

/* Prevent double scrollbars - the detail pane scrolls internally */
#simplemodal-container:has(.NB-modal-features) .simplemodal-wrap {
    overflow: visible !important;
}

.NB-modal-features {
    padding: 0;
    background: linear-gradient(180deg, #fafafa 0%, #f5f5f4 100%);
}

.NB-modal-features .NB-features-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 20px 28px 16px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.NB-modal-features .NB-modal-title {
    margin-bottom: 0;
    font-size: 22px;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: #1a1a1a;
}

.NB-modal-features .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-features-header-subtitle {
    font-size: 13px;
    color: #6b7280;
}

.NB-features-body {
    display: flex;
    height: min(80vh, 780px);
}

/* Left rail: the nine features */
.NB-features-rail {
    flex: 0 0 250px;
    box-sizing: border-box;
    padding: 14px 10px;
    overflow-y: auto;
    border-right: 1px solid rgba(0, 0, 0, 0.06);
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.NB-features-rail-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 8px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: background 0.15s ease;
}

.NB-features-rail-item:hover {
    background: rgba(0, 0, 0, 0.04);
}

.NB-features-rail-item.NB-active {
    background: #ffffff;
    border-color: rgba(0, 0, 0, 0.08);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.NB-features-rail-name {
    font-size: 13px;
    font-weight: 500;
    color: #374151;
}

.NB-features-rail-item.NB-active .NB-features-rail-name {
    color: #111827;
    font-weight: 600;
}

/* Divider between the nine flagship features and the secondary list */
.NB-features-rail-divider {
    margin: 12px 10px 6px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #9ca3af;
}

/* Secondary rail items are more compact */
.NB-features-rail-item-secondary {
    padding: 5px 10px;
}

.NB-features-rail-item-secondary .NB-features-icon-chip {
    width: 24px;
    height: 24px;
    border-radius: 6px;
}

.NB-features-rail-item-secondary .NB-features-icon {
    width: 14px;
    height: 14px;
}

.NB-features-rail-item-secondary .NB-features-rail-name {
    font-size: 12.5px;
}

/* Each feature owns a color: the active item's border picks it up */
.NB-features-rail-item-training.NB-active { border-color: #0a7aff; }
.NB-features-rail-item-ask-ai.NB-active { border-color: #ff6247; }
.NB-features-rail-item-web-feeds.NB-active { border-color: #9d4de0; }
.NB-features-rail-item-newsletters.NB-active { border-color: #ec4899; }
.NB-features-rail-item-search.NB-active { border-color: #14b8a6; }
.NB-features-rail-item-archive.NB-active { border-color: #f08c00; }
.NB-features-rail-item-saved.NB-active { border-color: #34a853; }
.NB-features-rail-item-native-apps.NB-active { border-color: #d9a514; }
.NB-features-rail-item-clustering.NB-active { border-color: #5a55d2; }
.NB-features-rail-item-river.NB-active { border-color: #0a7aff; }
.NB-features-rail-item-notifications.NB-active { border-color: #ff6247; }
.NB-features-rail-item-text-view.NB-active { border-color: #9d4de0; }
.NB-features-rail-item-changes.NB-active { border-color: #34a853; }
.NB-features-rail-item-themes.NB-active { border-color: #d9a514; }
.NB-features-rail-item-shortcuts.NB-active { border-color: #f08c00; }
.NB-features-rail-item-integrations.NB-active { border-color: #14b8a6; }
.NB-features-rail-item-blurblog.NB-active { border-color: #ec4899; }
.NB-features-rail-item-mcp.NB-active { border-color: #5a55d2; }
.NB-features-rail-item-cli.NB-active { border-color: #0891b2; }

/* Icon chips: soft tinted squares holding the feature icon */
.NB-features-icon-chip {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    border-radius: 7px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.NB-features-icon-chip-large {
    width: 44px;
    height: 44px;
    border-radius: 10px;
}

.NB-features-icon {
    width: 16px;
    height: 16px;
}

.NB-features-icon-chip-large .NB-features-icon {
    width: 24px;
    height: 24px;
}

.NB-features-chip-blue { background: rgba(10, 122, 255, 0.12); }
.NB-features-chip-coral { background: rgba(255, 98, 71, 0.12); }
.NB-features-chip-purple { background: rgba(157, 77, 224, 0.12); }
.NB-features-chip-pink { background: rgba(236, 72, 153, 0.12); }
.NB-features-chip-teal { background: rgba(20, 184, 166, 0.12); }
.NB-features-chip-orange { background: rgba(240, 140, 0, 0.12); }
.NB-features-chip-green { background: rgba(52, 168, 83, 0.12); }
.NB-features-chip-gold { background: rgba(217, 165, 20, 0.14); }
.NB-features-chip-indigo { background: rgba(90, 85, 210, 0.12); }
.NB-features-chip-cyan { background: rgba(8, 145, 178, 0.12); }

/* Icon tints match the splash nav Features dropdown (static_pages.css) */
.NB-features-icon-blue { filter: invert(37%) sepia(93%) saturate(2000%) hue-rotate(200deg) brightness(1.1); }
.NB-features-icon-coral { filter: invert(50%) sepia(80%) saturate(1200%) hue-rotate(340deg) brightness(1.1); }
.NB-features-icon-purple { filter: invert(30%) sepia(90%) saturate(2500%) hue-rotate(260deg) brightness(1.1); }
.NB-features-icon-pink { filter: invert(45%) sepia(90%) saturate(1500%) hue-rotate(310deg) brightness(1.1); }
.NB-features-icon-teal { filter: invert(55%) sepia(75%) saturate(1500%) hue-rotate(140deg) brightness(1.1); }
.NB-features-icon-orange { filter: invert(57%) sepia(98%) saturate(1000%) hue-rotate(360deg) brightness(1.1); }
.NB-features-icon-green { filter: invert(55%) sepia(75%) saturate(1500%) hue-rotate(90deg) brightness(1.1); }
.NB-features-icon-gold { filter: invert(60%) sepia(90%) saturate(1200%) hue-rotate(20deg) brightness(1.1); }
.NB-features-icon-indigo { filter: invert(25%) sepia(90%) saturate(2500%) hue-rotate(235deg) brightness(0.9); }
.NB-features-icon-cyan { filter: invert(55%) sepia(85%) saturate(1800%) hue-rotate(160deg) brightness(1.1); }

/* Detail pane */
.NB-features-detail {
    flex: 1;
    overflow-y: auto;
    padding: 24px 28px 20px;
    box-sizing: border-box;
}

.NB-features-detail-inner {
    max-width: 700px;
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.18s ease, transform 0.18s ease;
}

.NB-features-detail-inner.NB-features-detail-entering {
    opacity: 0;
    transform: translateY(8px);
}

@media (prefers-reduced-motion: reduce) {
    .NB-features-detail-inner {
        transition: none;
    }
}

.NB-features-detail-header {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 18px;
}

.NB-features-detail-name-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.NB-features-detail-name {
    margin: 0;
    font-size: 20px;
    font-weight: 650;
    letter-spacing: -0.01em;
    color: #111827;
}

/* The tier badge reuses the features page badge classes (static_pages.css) */
.NB-features-detail-name-row .NB-feature-section-badge {
    margin: 0;
}

.NB-features-detail-subtitle {
    margin-top: 4px;
    font-size: 13.5px;
    line-height: 1.5;
    color: #6b7280;
}

/* Screenshots */
.NB-features-shots {
    display: grid;
    gap: 14px;
    margin-bottom: 20px;
}

.NB-features-shots-2 {
    grid-template-columns: 1fr 1fr;
}

.NB-features-shot img {
    display: block;
    width: 100%;
    border-radius: 6px;
    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);
    box-sizing: border-box;
}

.NB-features-shot-caption {
    margin-top: 6px;
    font-size: 11.5px;
    color: #9ca3af;
    text-align: center;
}

/* Sections: How it works, Tips, Questions */
.NB-features-section {
    margin-bottom: 20px;
}

.NB-features-section-title {
    margin: 0 0 10px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #9ca3af;
}

.NB-features-steps {
    margin: 0;
    padding: 0;
    list-style: none;
}

.NB-features-step {
    display: flex;
    align-items: baseline;
    gap: 10px;
    padding: 4px 0;
}

.NB-features-step-number {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    transform: translateY(4px);
}

.NB-features-step-text {
    font-size: 13px;
    line-height: 1.55;
    color: #374151;
}

/* Step numerals carry the feature's color */
.NB-features-accent-blue { color: #0a7aff; background: rgba(10, 122, 255, 0.12); }
.NB-features-accent-coral { color: #ff6247; background: rgba(255, 98, 71, 0.12); }
.NB-features-accent-purple { color: #9d4de0; background: rgba(157, 77, 224, 0.12); }
.NB-features-accent-pink { color: #ec4899; background: rgba(236, 72, 153, 0.12); }
.NB-features-accent-teal { color: #0d9488; background: rgba(20, 184, 166, 0.12); }
.NB-features-accent-orange { color: #f08c00; background: rgba(240, 140, 0, 0.12); }
.NB-features-accent-green { color: #34a853; background: rgba(52, 168, 83, 0.12); }
.NB-features-accent-gold { color: #b8860b; background: rgba(217, 165, 20, 0.14); }
.NB-features-accent-indigo { color: #5a55d2; background: rgba(90, 85, 210, 0.12); }
.NB-features-accent-cyan { color: #0891b2; background: rgba(8, 145, 178, 0.12); }

.NB-features-tips {
    margin: 0;
    padding: 0;
    list-style: none;
}

.NB-features-tip {
    display: flex;
    align-items: baseline;
    gap: 10px;
    padding: 4px 0;
}

.NB-features-tip-marker {
    flex-shrink: 0;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    transform: translateY(-2px);
}

.NB-features-accent-bg-blue { background: #0a7aff; }
.NB-features-accent-bg-coral { background: #ff6247; }
.NB-features-accent-bg-purple { background: #9d4de0; }
.NB-features-accent-bg-pink { background: #ec4899; }
.NB-features-accent-bg-teal { background: #14b8a6; }
.NB-features-accent-bg-orange { background: #f08c00; }
.NB-features-accent-bg-green { background: #34a853; }
.NB-features-accent-bg-gold { background: #d9a514; }
.NB-features-accent-bg-indigo { background: #5a55d2; }
.NB-features-accent-bg-cyan { background: #0891b2; }

.NB-features-tip-text {
    font-size: 13px;
    line-height: 1.55;
    color: #374151;
}

/* Questions */
.NB-features-faq {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.NB-features-faq-item {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 8px;
    padding: 10px 14px;
}

.NB-features-faq-q {
    font-size: 13px;
    font-weight: 600;
    color: #111827;
    margin-bottom: 3px;
}

.NB-features-faq-a {
    font-size: 12.5px;
    line-height: 1.5;
    color: #6b7280;
}

/* Try it */
.NB-features-try {
    padding: 4px 0 8px;
}

.NB-features-try .NB-features-try-button {
    display: inline-block;
    cursor: pointer;
}

/* Narrow windows: rail collapses to a horizontal strip of chips */
@media (max-width: 900px) {
    .NB-features-body {
        flex-direction: column;
        height: min(78vh, 700px);
    }

    .NB-features-rail {
        flex: 0 0 auto;
        flex-direction: row;
        overflow-x: auto;
        overflow-y: hidden;
        border-right: none;
        border-bottom: 1px solid rgba(0, 0, 0, 0.06);
        padding: 10px 14px;
    }

    .NB-features-rail-item {
        flex-shrink: 0;
    }

    .NB-features-rail-name {
        white-space: nowrap;
    }
}

/* =============== */
/* = Intro 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;
    transition: left 0.6s ease-in-out;
}

.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 {
    width: 232px;
}

.NB-feed-notification .NB-feed-notification-types,
.NB-classifier-notification .NB-classifier-notification-types {
    width: 248px;
}

.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,
.NB-classifier-notification .segmented-control li {
    padding: 2px 6px;
    font-size: 10px;
    min-width: 36px;
}

.NB-feed-notification .segmented-control li:not(.NB-active),
.NB-classifier-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;
}

/* Feed notification group (feed + classifier notifications) */
.NB-feed-notification-group {
    border-bottom: 1px solid #F0F0F0;
}

.NB-feed-notification-group:last-child {
    border-bottom: none;
}

.NB-feed-notification-group > .NB-feed-notification {
    border-bottom: none;
}

/* Scope sections for global/folder classifier notifications */
.NB-notification-scope-section {
    padding: 10px 0;
    border-bottom: 1px solid #F0F0F0;
}

.NB-notification-scope-section:last-child {
    border-bottom: none;
}

.NB-notification-scope-label {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #808080;
    padding: 0 0 6px;
}

/* Classifier notification rows */
.NB-classifier-notification {
    overflow: hidden;
    position: relative;
    padding: 5px 0 5px 24px;
}

.NB-classifier-notification .NB-classifier-notification-controls {
    position: relative;
}

.NB-classifier-notification .NB-classifier-notification-types {
    float: right;
}

.NB-classifier-notification .segmented-control {
    margin: 0;
}

.NB-classifier-notification-pill {
    font-size: 12px;
    padding: 2px 0 0;
    display: flex;
    align-items: center;
    gap: 4px;
}

.NB-classifier-notification-pill .NB-classifier-type-badge {
    margin-right: 0;
}

.NB-classifier-notification-pill .NB-classifier-regex-badge {
    color: #9B59B6;
    background: rgba(155, 89, 182, 0.12);
}

.NB-classifier-notification-value {
    font-size: 11px;
    color: #505050;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ===================== */
/* = 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: background 0.15s ease, border-color 0.15s ease, color 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: background 0.15s ease, border-color 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;

    transition: color .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;

    transition: opacity .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: background 0.2s ease, border-color 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: border-color 0.25s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.25s cubic-bezier(0.4, 0, 0.2, 1), transform 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;
}

/* reader.css: Highlight the feature that prompted the upgrade modal (e.g. opening
   it from a briefing callout highlights the Daily Briefing line). The box-shadow
   spread acts as horizontal padding so the pill doesn't shift the text or icon. */
.NB-premium-tier-features li.NB-premium-feature-highlighted {
    background: rgba(139, 92, 246, 0.16);
    border-radius: 6px;
    box-shadow: 0 0 0 6px rgba(139, 92, 246, 0.16);
    animation: NB-premium-feature-pulse 1.6s ease-in-out 2;
}

@keyframes NB-premium-feature-pulse {
    0%, 100% {
        background: rgba(139, 92, 246, 0.16);
        box-shadow: 0 0 0 6px rgba(139, 92, 246, 0.16);
    }
    50% {
        background: rgba(139, 92, 246, 0.32);
        box-shadow: 0 0 0 6px rgba(139, 92, 246, 0.32);
    }
}

/* 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/nouns/writing.svg);
    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-11 .NB-premium-bullet-image {
    background-image: url(/media/embed/icons/nouns/mcp-agent.svg);
    filter: invert(25%) sepia(70%) saturate(2500%) hue-rotate(230deg) brightness(90%) contrast(105%);
    /* indigo */
}

/* 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/nouns/web-feed.svg);
    filter: invert(35%) sepia(80%) saturate(2000%) hue-rotate(220deg) brightness(90%) contrast(100%);
    /* indigo-purple */
}

.NB-premium-tier-features-archive li.NB-3 .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-archive li.NB-4 .NB-premium-bullet-image {
    background-image: url(/media/img/icons/nouns/briefing.svg);
    filter: invert(25%) sepia(85%) saturate(2500%) hue-rotate(280deg) brightness(85%) contrast(105%);
    /* violet */
}

.NB-premium-tier-features-archive li.NB-5 .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-6 .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-7 .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-8 .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-9 .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-10 .NB-premium-bullet-image {
    background-image: url(/media/img/icons/phosphor-fill/bell-ringing-fill.svg);
    filter: invert(60%) sepia(85%) saturate(2000%) hue-rotate(20deg) brightness(100%) contrast(100%);
    /* amber */
}

.NB-premium-tier-features-archive li.NB-11 .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-12 .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-13 .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-14 .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-15 .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-16 .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-17 .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 */
}

.NB-premium-tier-features-archive li.NB-18 .NB-premium-bullet-image {
    background-image: url(/media/embed/icons/nouns/mcp-agent.svg);
    filter: invert(25%) sepia(70%) saturate(2500%) hue-rotate(230deg) brightness(90%) contrast(105%);
    /* indigo */
}

/* 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: background 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, color 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 .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);
}

/* Doubled class beats modals.css's later .NB-modal .NB-modal-title text-wrap: balance */
.NB-modal.NB-modal-goodies .NB-modal-title {
    white-space: nowrap;
    text-wrap: nowrap;
}

.NB-modal-goodies .NB-modal-tab {
    padding: 8px 12px 10px;
}

.NB-modal.NB-modal-goodies .NB-tab {
    height: 800px;
    max-height: calc(100vh - 220px);
    padding: 14px 6px 20px;
}

/* Official app hero card */
.NB-modal-goodies .NB-goodies-hero {
    background-color: #F7F7F5;
    border: 1px solid #E4E4E0;
    border-radius: 8px;
    padding: 14px;
    margin: 2px 0 8px;
}

.NB-modal-goodies .NB-goodies-hero-header {
    display: flex;
    align-items: center;
}

.NB-modal-goodies .NB-goodies-hero-icon {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    margin: 0 12px 0 0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .15);
}

.NB-modal-goodies .NB-goodies-hero-info {
    flex: 1;
    min-width: 0;
}

.NB-modal-goodies .NB-goodies-hero-name {
    font-size: 15px;
    font-weight: bold;
    color: #404030;
}

.NB-modal-goodies .NB-goodies-hero-meta {
    font-size: 12px;
    color: #808070;
    margin-top: 4px;
}

/* Screenshots share the strip equally and keep their aspect ratio */
.NB-modal-goodies .NB-goodies-hero-shots {
    display: flex;
    gap: 10px;
    margin-top: 14px;
}

.NB-modal-goodies .NB-goodies-hero-shots img {
    flex: 1 1 0;
    min-width: 0;
    width: 100%;
    height: auto;
    align-self: flex-start;
    border-radius: 6px;
    border: 1px solid #D8D8D2;
}

/* Section headings between app groups */
.NB-modal-goodies .NB-goodies-section-title {
    font-size: 11px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: #A0A090;
    margin: 20px 4px 4px;
}

/* Third-party app cards, two per row */
.NB-modal-goodies .NB-goodies-apps {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin: 8px 0 4px;
}

.NB-modal-goodies .NB-goodies-apps-full {
    grid-template-columns: 1fr;
}

.NB-modal-goodies .NB-goodies-app {
    border: 1px solid #E4E4E0;
    border-radius: 8px;
    padding: 12px;
    background-color: #FCFCFA;
}

.NB-modal-goodies .NB-goodies-app-header {
    display: flex;
    align-items: center;
}

.NB-modal-goodies .NB-goodies-app-icon {
    width: 40px;
    height: 40px;
    border-radius: 9px;
    margin: 0 12px 0 0;
    box-shadow: 0 1px 2px rgba(0, 0, 0, .12);
    flex-shrink: 0;
}

.NB-modal-goodies .NB-goodies-app-info {
    flex: 1;
    min-width: 0;
    padding-right: 12px;
}

.NB-modal-goodies .NB-goodies-app-name {
    font-size: 13px;
    font-weight: bold;
    color: #404030;
}

.NB-modal-goodies .NB-goodies-app-meta {
    font-size: 11px;
    color: #808070;
    margin-top: 2px;
    line-height: 15px;
}

.NB-modal-goodies .NB-goodies-app-thumbs {
    display: flex;
    gap: 8px;
    margin: 12px 0 0;
}

.NB-modal-goodies .NB-goodies-app-thumbs img {
    flex: 1 1 0;
    min-width: 0;
    width: 100%;
    height: auto;
    align-self: flex-start;
    border-radius: 4px;
    border: 1px solid #D8D8D2;
}

.NB-modal-goodies .NB-goodies-app-button {
    white-space: nowrap;
    flex-shrink: 0;
}

/* Firefox about:config tip: a card with no store button */
.NB-modal-goodies .NB-goodies-tip {
    border: 1px solid #E4E4E0;
    border-radius: 8px;
    padding: 12px;
    background-color: #FCFCFA;
}

/* Bookmarklet button, shared with the intro modal */
.NB-modal-goodies .NB-goodies-bookmarklet-button,
.NB-modal-intro .NB-goodies-bookmarklet-button {
    display: inline-block;
    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;
    text-decoration: none;
    outline: none;
    margin: 8px 8px;
}

.NB-modal-intro .NB-goodies-bookmarklet-button {
    float: right;
}

.NB-modal-goodies .NB-goodies-custom-input {
    width: 380px;
    border: 1px solid #909090;
    border-radius: 4px;
    padding: 4px;
    flex-shrink: 0;
}

/* ========================== */
/* = Refer & Gift Modal     = */
/* ========================== */

.NB-modal-referrals fieldset {
    margin: 24px 0 16px;
}

.NB-modal-referrals .NB-modal-title .NB-icon {
    background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18' fill='none'%3E%3Crect x='2' y='8' width='14' height='9' rx='1.5' fill='%237B4FAF'/%3E%3Crect x='1' y='6' width='16' height='3' rx='1' fill='%238E63BF'/%3E%3Crect x='8' y='6' width='2' height='11' fill='%23EDE7F6' opacity='0.4'/%3E%3Cellipse cx='7' cy='5.5' rx='3' ry='2.5' fill='%23A77FD4' opacity='0.8' transform='rotate(-10 7 5.5)'/%3E%3Cellipse cx='11' cy='5.5' rx='3' ry='2.5' fill='%23A77FD4' opacity='0.8' transform='rotate(10 11 5.5)'/%3E%3Ccircle cx='9' cy='6' r='1.5' fill='%23FFD54F'/%3E%3C/svg%3E") no-repeat center center;
    background-size: 28px;
}

/* Referral modal */
.NB-modal.NB-modal-referrals .NB-tab {
    height: auto;
    overflow: visible;
}

/* Hero banner */
.NB-referral-hero {
    display: flex;
    align-items: center;
    gap: 24px;
    background: linear-gradient(135deg, #E8F5E0 0%, #D4EDBE 40%, #F0F4E8 100%);
    border-radius: 10px;
    padding: 24px 28px;
    margin: 12px 0 16px;
    position: relative;
    overflow: hidden;
}

.NB-referral-hero::before {
    content: '';
    position: absolute;
    top: -30px;
    right: -20px;
    width: 180px;
    height: 180px;
    background: radial-gradient(circle, rgba(80, 124, 48, 0.08) 0%, transparent 70%);
    border-radius: 50%;
}

.NB-referral-hero::after {
    content: '';
    position: absolute;
    bottom: -40px;
    left: 60px;
    width: 120px;
    height: 120px;
    background: radial-gradient(circle, rgba(80, 124, 48, 0.05) 0%, transparent 70%);
    border-radius: 50%;
}

.NB-referral-hero-illustration {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 80 80' fill='none'%3E%3Ccircle cx='28' cy='26' r='10' fill='%23507C30'/%3E%3Cpath d='M10 58c0-10 8-18 18-18s18 8 18 18' fill='%23507C30' opacity='0.3'/%3E%3Ccircle cx='52' cy='26' r='10' fill='%236AAE40'/%3E%3Cpath d='M34 58c0-10 8-18 18-18s18 8 18 18' fill='%236AAE40' opacity='0.3'/%3E%3Cpath d='M36 38l8-6 8 6' stroke='%23FFD54F' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round' fill='none'/%3E%3Cpath d='M44 32v-8' stroke='%23FFD54F' stroke-width='2.5' stroke-linecap='round'/%3E%3Cpath d='M68 14l1.5 4.5 4.5 1.5-4.5 1.5-1.5 4.5-1.5-4.5-4.5-1.5 4.5-1.5z' fill='%23FFD54F' opacity='0.8'/%3E%3Cpath d='M14 12l1 3 3 1-3 1-1 3-1-3-3-1 3-1z' fill='%23FFD54F' opacity='0.6'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    position: relative;
    z-index: 1;
}

.NB-referral-hero-text {
    position: relative;
    z-index: 1;
}

.NB-referral-hero-headline {
    font-size: 22px;
    font-weight: 800;
    color: #3A5F22;
    letter-spacing: -0.3px;
    margin-bottom: 6px;
}

.NB-referral-hero-subtext {
    font-size: 14px;
    color: #4A6B34;
    line-height: 1.55;
    max-width: 420px;
}

/* Gift redeemed banner (account modal) */
.NB-gift-redeemed-banner {
    display: flex;
    align-items: center;
    gap: 16px;
    background: linear-gradient(135deg, #FFF8E1 0%, #FFECB3 40%, #FFF3E0 100%);
    border: 1px solid #FFD54F;
    border-radius: 10px;
    padding: 16px 20px;
    margin: 12px 0 4px;
    position: relative;
    overflow: hidden;
}

.NB-gift-redeemed-banner::before {
    content: '';
    position: absolute;
    top: -20px;
    right: -20px;
    width: 80px;
    height: 80px;
    background: radial-gradient(circle, rgba(255, 193, 7, 0.15) 0%, transparent 70%);
    border-radius: 50%;
}

.NB-gift-redeemed-banner-icon {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Crect x='3' y='8' width='18' height='13' rx='2' fill='%23F9A825' stroke='%23F57F17' stroke-width='1.5'/%3E%3Crect x='1' y='5' width='22' height='5' rx='1.5' fill='%23FDD835' stroke='%23F9A825' stroke-width='1.5'/%3E%3Crect x='10.5' y='5' width='3' height='16' fill='%23E65100' opacity='0.7'/%3E%3Cpath d='M12 5C12 5 9 2 7 2C5.5 2 4.5 3 5 4.5C5.5 5.5 8 5 12 5Z' fill='%23E65100' opacity='0.8'/%3E%3Cpath d='M12 5C12 5 15 2 17 2C18.5 2 19.5 3 19 4.5C18.5 5.5 16 5 12 5Z' fill='%23E65100' opacity='0.8'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    position: relative;
    z-index: 1;
}

.NB-gift-redeemed-banner-text {
    position: relative;
    z-index: 1;
}

.NB-gift-redeemed-banner-headline {
    font-size: 17px;
    font-weight: 800;
    color: #E65100;
    letter-spacing: -0.2px;
    margin-bottom: 4px;
}

.NB-gift-redeemed-banner-subtext {
    font-size: 13px;
    color: #BF360C;
    line-height: 1.45;
}

/* Gift hero banner */
.NB-gift-hero {
    background: linear-gradient(135deg, #EDE7F6 0%, #E1D5F0 40%, #F3EFF8 100%);
    border-radius: 10px;
    padding: 20px 24px;
    margin: 12px 0 16px;
}

.NB-gift-hero-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}

.NB-gift-hero-illustration {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 36 36' fill='none'%3E%3Crect x='4' y='16' width='28' height='17' rx='2' fill='%237B4FAF'/%3E%3Crect x='2' y='12' width='32' height='6' rx='2' fill='%238E63BF'/%3E%3Crect x='16' y='12' width='4' height='21' fill='%23EDE7F6' opacity='0.4'/%3E%3Crect x='2' y='14' width='32' height='3' fill='%23EDE7F6' opacity='0.25'/%3E%3Cellipse cx='14' cy='10' rx='6' ry='5' fill='%23A77FD4' opacity='0.8' transform='rotate(-10 14 10)'/%3E%3Cellipse cx='22' cy='10' rx='6' ry='5' fill='%23A77FD4' opacity='0.8' transform='rotate(10 22 10)'/%3E%3Ccircle cx='18' cy='11' r='3' fill='%23FFD54F'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.NB-gift-hero-headline {
    font-size: 18px;
    font-weight: 800;
    color: #4A2D7A;
    letter-spacing: -0.2px;
}

.NB-gift-hero-steps {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.NB-gift-hero-step {
    display: flex;
    align-items: baseline;
    gap: 12px;
}

.NB-gift-hero-step-number {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    line-height: 24px;
    text-align: center;
    background: #7B4FAF;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    border-radius: 50%;
}

.NB-gift-hero-step-refund .NB-gift-hero-step-number {
    background: #9E9E9E;
    font-size: 14px;
    line-height: 26px;
}

.NB-gift-hero-step-text {
    font-size: 13px;
    color: #4A3560;
    line-height: 1.45;
}

.NB-gift-hero-step-text b {
    color: #3A2060;
}

.NB-referral-url-container {
    display: flex;
    gap: 8px;
    align-items: center;
    margin: 8px 0;
}

.NB-referral-url-input {
    flex: 1;
    border: 1px solid #909090;
    padding: 8px 12px;
    font-size: 14px;
    border-radius: 4px;
    background: #F7F7F5;
    color: #303030;
    cursor: text;
}

.NB-referral-copy-button {
    white-space: nowrap;
    min-width: 60px;
    text-align: center;
}

.NB-referral-url-description {
    font-size: 12px;
    color: #808080;
    margin: 4px 0 12px;
    line-height: 1.5;
}

.NB-referral-stats {
    display: flex;
    gap: 16px;
    margin: 12px 0;
}

.NB-referral-stat {
    flex: 1;
    text-align: center;
    background: #F7F7F5;
    border-radius: 6px;
    padding: 16px 8px;
}

.NB-referral-stat-value {
    font-size: 28px;
    font-weight: bold;
    color: #303030;
}

.NB-referral-stat-label {
    font-size: 11px;
    text-transform: uppercase;
    color: #808080;
    margin-top: 4px;
    letter-spacing: 0.5px;
}

.NB-referral-table,
.NB-gift-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.NB-referral-table th,
.NB-gift-table th {
    text-align: left;
    font-size: 11px;
    text-transform: uppercase;
    color: #808080;
    border-bottom: 2px solid #E0E0E0;
    padding: 6px 8px;
    letter-spacing: 0.5px;
}

.NB-referral-table td,
.NB-gift-table td {
    padding: 8px;
    border-bottom: 1px solid #F0F0F0;
    color: #404040;
}

.NB-referral-status,
.NB-gift-status {
    display: inline-block;
    font-size: 11px;
    font-weight: bold;
    text-transform: uppercase;
    padding: 2px 8px;
    border-radius: 3px;
}

.NB-referral-status-pending,
.NB-gift-status-pending {
    background: #FFF3CD;
    color: #856404;
}

.NB-referral-status-converted,
.NB-gift-status-redeemed {
    background: #D4EDDA;
    color: #155724;
}

.NB-gift-status-refunded {
    background: #F8D7DA;
    color: #721C24;
}

.NB-referral-empty,
.NB-gift-empty {
    text-align: center;
    color: #A0A0A0;
    font-size: 13px;
    padding: 24px 0;
}

.NB-gift-tier-selector {
    display: flex;
    gap: 8px;
    margin: 12px 0;
}

.NB-gift-tier {
    flex: 1;
    text-align: center;
    padding: 16px 8px;
    border: 2px solid #E0E0E0;
    border-radius: 8px;
    cursor: pointer;
    transition: border-color 0.15s, background-color 0.15s;
}

.NB-gift-tier:hover {
    border-color: #B0B0B0;
    background: #FAFAFA;
}

.NB-gift-tier.NB-active {
    border-color: #507C30;
    background: #F0F8E8;
}

.NB-gift-tier-name {
    font-size: 15px;
    font-weight: bold;
    color: #303030;
}

.NB-gift-tier-price {
    font-size: 13px;
    color: #707070;
    margin-top: 4px;
}

.NB-gift-pro-duration {
    margin: 8px 0 16px 0;
    display: flex;
    gap: 8px;
    justify-content: center;
}

.NB-gift-duration {
    text-align: center;
    padding: 10px 24px;
    border: 2px solid #E0E0E0;
    border-radius: 8px;
    cursor: pointer;
    transition: border-color 0.15s, background-color 0.15s;
}

.NB-gift-duration:hover {
    border-color: #B0B0B0;
    background: #FAFAFA;
}

.NB-gift-duration.NB-active {
    border-color: #507C30;
    background: #F0F8E8;
}

.NB-gift-duration-label {
    font-size: 13px;
    font-weight: bold;
    color: #303030;
}

.NB-gift-duration-price {
    font-size: 12px;
    color: #707070;
    margin-top: 2px;
}

.NB-gift-staff-option {
    margin: 12px 0;
    padding: 8px 12px;
    background: #FFF8E1;
    border-radius: 4px;
    font-size: 13px;
}

.NB-gift-staff-option label {
    cursor: pointer;
    color: #6D4C00;
}

.NB-gift-send-container {
    margin: 16px 0;
    text-align: center;
}

.NB-gift-send-button {
    display: inline-block;
    cursor: pointer;
}

.NB-gift-result {
    margin: 12px 0;
    padding: 12px;
    background: #D4EDDA;
    border-radius: 6px;
}

.NB-gift-result-label {
    font-size: 12px;
    color: #155724;
    margin-bottom: 6px;
    font-weight: bold;
}

.NB-gift-result-url {
    width: 100%;
    border: 1px solid #A3D9A5;
    padding: 8px;
    font-size: 13px;
    border-radius: 4px;
    background: #fff;
    margin-bottom: 8px;
    box-sizing: border-box;
}

.NB-gift-result-copy {
    display: inline-block;
    cursor: pointer;
}

.NB-gift-error {
    margin: 8px 0;
    padding: 8px 12px;
    background: #F8D7DA;
    color: #721C24;
    border-radius: 4px;
    font-size: 13px;
}

.NB-gift-link {
    color: #507C30;
    text-decoration: none;
}

.NB-gift-link:hover {
    text-decoration: underline;
}

/* ============================ */
/* = 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-preferences-unsubscribed {
    padding: 6px 12px;
    background-color: #F8E3DC;
    text-align: center;
    margin: 12px 0;
    border-radius: 3px;
    border-bottom: 1px solid rgba(0, 0, 0, .1);
}

/* Long email radio labels wrap beside the radio instead of dropping below it */
.NB-modal-preferences .NB-preference-emails .NB-preference-options label {
    float: none;
    display: block;
    overflow: hidden;
}

.NB-modal-preferences .NB-preference-email-settings .NB-preference-email-status {
    color: #83210A;
    font-size: 11px;
    margin-top: 4px;
    font-weight: bold;
}

.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;
}

/* Premium Archive upgrade notice (shared style for preferences) */
.NB-modal-preferences .NB-premium-archive-upgrade-notice {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    text-decoration: none;
    color: #808080;
    padding: 4px 10px 4px 4px;
    border-radius: 6px;
    border: 1px solid #e0e0e0;
    background: #fafafa;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
    margin-top: 4px;
    cursor: pointer;
}

.NB-modal-preferences .NB-premium-archive-upgrade-notice:hover {
    background: rgba(99, 102, 241, 0.06);
    border-color: #c4b5fd;
    color: #6366f1;
}

.NB-modal-preferences .NB-premium-archive-upgrade-notice .NB-archive-badge {
    display: inline-block;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: white;
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 3px 8px;
    border-radius: 4px;
    white-space: nowrap;
}

.NB-modal-preferences .NB-premium-archive-upgrade-notice.NB-flash {
    animation: flash-upgrade 0.6s ease;
    background: rgba(99, 102, 241, 0.15);
    border-color: #8b5cf6;
    color: #6366f1;
}

.NB-dark .NB-modal-preferences .NB-premium-archive-upgrade-notice {
    color: #888;
    background: #2a2a2a;
    border-color: #444;
}

.NB-dark .NB-modal-preferences .NB-premium-archive-upgrade-notice:hover {
    background: rgba(99, 102, 241, 0.1);
    border-color: #6366f1;
    color: #a78bfa;
}

.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-story-share label[for=NB-preference-story-share-wallabag] {
    background: transparent url(/media/embed/reader/wallabag.svg) no-repeat 0 0;
    background-size: 16px;
}

.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 = */
/* ================== */

#simplemodal-container.NB-account-container .simplemodal-wrap {
    max-height: calc(100vh - 80px);
    overflow-y: auto !important;
}

.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,
.NB-account-usage-payments {
    margin: 0;
    padding: 0;
    list-style: none;
}

.NB-account-payments .NB-account-payment,
.NB-account-usage-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,
.NB-account-usage-payments li:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.NB-account-payments .NB-payments-loading,
.NB-account-usage-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,
.NB-account-usage-payments .NB-account-payment-date {
    width: 180px;
    font-weight: bold;
    flex-shrink: 0;
}

.NB-account-payments .NB-account-payment-amount,
.NB-account-usage-payments .NB-account-payment-amount {
    width: 80px;
    flex-shrink: 0;
}

.NB-account-payments .NB-account-payment-provider,
.NB-account-usage-payments .NB-account-payment-provider {
    width: 80px;
    flex-shrink: 0;
}

.NB-account-payments .NB-scheduled .NB-account-payment-provider,
.NB-account-usage-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,
.NB-account-usage-payments .NB-scheduled.NB-canceled .NB-account-payment-provider,
.NB-account-usage-payments .NB-refunded .NB-account-payment-amount {
    text-decoration: line-through;
    color: darkred;
}

.NB-account-payments .NB-account-payment-invoice,
.NB-account-usage-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,
.NB-account-usage-payments .NB-account-payment-invoice:hover {
    background-color: #FAD961;
    color: #505050;
}

.NB-account-payments .NB-account-payment-invoice-icon,
.NB-account-usage-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,
.NB-account-usage-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-renewal-notify-container {
    clear: both;
    margin-top: 16px;
    padding: 8px 10px;
    display: flex;
    align-items: center;
    gap: 8px;
    background: #f5f5f0;
    border-radius: 4px;
    border: 1px solid #e0e0d8;
}

.NB-modal-account .NB-renewal-notify-container input[type=checkbox] {
    margin: 0;
    flex-shrink: 0;
    float: none;
    align-self: center;
}

.NB-modal-account .NB-renewal-notify-container label {
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    align-self: center;
    line-height: 1;
}

.NB-modal-account .NB-renewal-notify-label {
    font-size: 12px;
    color: #606060;
    cursor: pointer;
}

.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: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, box-shadow 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: background 0.15s ease, color 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: 94px 0 0;
    color: #3a3122;
    background: linear-gradient(180deg, #f5eedd 0%, #f0e7cf 20%, #ebe0c2 40%, #e5d9b6 60%, #e0d2ab 80%, #dbcca2 100%);
    min-height: 100vh;
}

.NB-static h3 {
    line-height: 1.4em;
    color: #2d261a;
}

.NB-static a {
    color: #8a6d1b;
    text-decoration: none;
    font-weight: bold;
}

.NB-static a:hover {
    color: #5a4710;
    cursor: pointer;
}

.NB-static .NB-splash-info {
    position: fixed;
    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);
    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(138, 109, 27, 0.4);
    color: #2d261a;
    text-shadow: none;
    background: rgba(255, 255, 255, 0.25);
    border-radius: 0 8px 8px 0;
}

.NB-static .NB-module .NB-module-content {
    width: 620px;
    margin: 24px 14px 24px 88px;
    color: rgba(45, 38, 26, 0.7);
    background: transparent;
}

.NB-static .NB-module .NB-module-content b,
.NB-static .NB-module .NB-module-content strong {
    color: rgba(45, 38, 26, 0.9);
}

.NB-static .NB-module .NB-module-content p {
    color: rgba(45, 38, 26, 0.7);
}

.NB-static ul {
    padding-left: 20px;
    margin-left: 0;
}

.NB-static li {
    margin-bottom: 6px;
    list-style: square;
    color: rgba(45, 38, 26, 0.7);
}

.NB-static pre,
.NB-static code {
    background-color: rgba(0, 0, 0, 0.06);
    padding: 0px 4px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    color: rgba(45, 38, 26, 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: #8a6d1b;
    padding: 0 2px 0 0;
}

.NB-static h3 {
    margin-top: 36px;
    font-size: 24px;
    color: #2d261a;
}

.NB-static h4 {
    font-size: 16px;
    margin: 24px 0 12px;
    color: rgba(45, 38, 26, 0.85);
}

/* ============== */
/* = 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(45, 38, 26, 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: #2d261a;
    font-weight: 600;
}

.NB-static-about .NB-about-who img {
    border: 1px solid rgba(0, 0, 0, 0.1);
    margin: 12px 0;
    width: 170px;
    border-radius: 8px;
}

.NB-static-about .NB-about-tagline img {
    border: 1px solid rgba(0, 0, 0, 0.1);
    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: #2d261a;
}

.NB-static-faq ul li.NB-faq-answer {
    color: rgba(45, 38, 26, 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(0, 0, 0, 0.1);
    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.2);
    border: 1px solid rgba(152, 200, 146, 0.35);
    border-radius: 3px;
    font-size: 8px;
    color: #3a7a34;
    font-weight: bold;
    text-transform: uppercase;
}

.NB-static-api .required {
    background-color: rgba(217, 144, 15, 0.15);
    border-color: rgba(217, 144, 15, 0.35);
    color: #996b0a;
}

.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(0, 0, 0, 0.08);
    background: rgba(255, 255, 255, 0.3);
    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(0, 0, 0, 0.06);
    white-space: nowrap;
    color: rgba(45, 38, 26, 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(0, 0, 0, 0.08);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    padding: 2px 8px;
    color: rgba(45, 38, 26, 0.9);
    background: rgba(255, 255, 255, 0.3);
}

.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(45, 38, 26, 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 {
    transition: border-color .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;
}

/* Section header with inline search */
.NB-folder-icon-editor .NB-folder-icon-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 4px 0 6px 0;
}

.NB-folder-icon-editor .NB-folder-icon-section-header .NB-folder-icon-section-label {
    margin: 0;
}

/* Icon search filter - inline rounded rect input */
.NB-folder-icon-editor .NB-folder-icon-search {
    display: flex;
    align-items: center;
    gap: 5px;
    background: #FFF;
    border: 1px solid #D0D4D8;
    border-radius: 4px;
    padding: 3px 8px;
    width: 150px;
    transition: border-color 0.15s ease;
}

.NB-folder-icon-editor .NB-folder-icon-search:focus-within {
    border-color: #5C89C9;
}

.NB-folder-icon-editor .NB-folder-icon-search-icon {
    width: 13px;
    height: 13px;
    opacity: 0.35;
    flex-shrink: 0;
}

.NB-folder-icon-editor .NB-folder-icon-search-input,
.NB-modal-exception .NB-folder-icon-editor input[type=text].NB-folder-icon-search-input {
    border: none;
    background: transparent;
    font-size: 12px;
    padding: 1px 0;
    outline: none;
    flex: 1;
    min-width: 0;
    width: auto;
    margin: 0;
}

.NB-folder-icon-editor .NB-folder-icon-search-input {
    color: #333;
}

.NB-folder-icon-editor .NB-folder-icon-search-input::placeholder {
    color: #AAA;
}

.NB-folder-icon-editor .NB-folder-icon-search-clear {
    cursor: pointer;
    font-size: 14px;
    color: #999;
    line-height: 1;
    flex-shrink: 0;
}

.NB-folder-icon-editor .NB-folder-icon-search-clear:hover {
    color: #333;
}

.NB-folder-icon-editor .NB-folder-icon-search-clear.NB-hidden {
    display: none;
}

.NB-folder-icon-editor .NB-folder-icon-no-results {
    text-align: center;
    padding: 24px 0;
    color: #999;
    font-size: 13px;
}

/* Dark mode: icon search filter */
.NB-dark .NB-folder-icon-editor .NB-folder-icon-search {
    background: #2A2D30;
    border-color: #404346;
}

.NB-dark .NB-folder-icon-editor .NB-folder-icon-search:focus-within {
    border-color: #5C89C9;
}

.NB-dark .NB-folder-icon-editor .NB-folder-icon-search-icon {
    filter: invert(1);
    opacity: 0.5;
}

.NB-dark .NB-folder-icon-editor .NB-folder-icon-search-input {
    color: #E0E0E0;
}

.NB-dark .NB-folder-icon-editor .NB-folder-icon-search-input::placeholder {
    color: #666;
}

.NB-dark .NB-folder-icon-editor .NB-folder-icon-search-clear {
    color: #777;
}

.NB-dark .NB-folder-icon-editor .NB-folder-icon-search-clear:hover {
    color: #E0E0E0;
}

.NB-dark .NB-folder-icon-editor .NB-folder-icon-no-results {
    color: #777;
}

/* 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: background 0.1s ease, border-color 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: transform 0.1s ease, border-color 0.1s ease, box-shadow 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: background 0.2s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.2s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.2s cubic-bezier(0.4, 0, 0.2, 1), transform 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: transform 0.2s ease, box-shadow 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: background 0.2s ease, color 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: background 0.15s ease, border-color 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;
    transition: opacity .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: width .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: #2d261a;
}

.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: #2d261a;
}

/* 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);
    background: rgba(255, 255, 255, 0.5);
    border: 0.5px solid rgba(0, 0, 0, 0.1);
    border-radius: 20px;
    padding: 36px 32px;
    text-align: center;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
}

@supports not (backdrop-filter: blur(20px)) {
    .NB-static-card {
        background: rgba(255, 255, 255, 0.7);
    }
}

.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: #2d261a;
    margin: 12px 0 8px;
    text-shadow: none;
}

.NB-static-card-tagline {
    font-family: 'Chronicle Display A', 'Chronicle Display B', Georgia, serif;
    font-style: italic;
    font-size: 14px;
    color: #8a6d1b;
    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.5);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    padding: 14px 16px;
    font-family: 'Whitney SSm A', 'Whitney SSm B', sans-serif;
    font-size: 15px;
    color: #2d261a;
    outline: none;
    box-sizing: border-box;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.NB-static-card-field input::placeholder {
    color: rgba(45, 38, 26, 0.35);
}

.NB-static-card-field input:focus {
    border-color: rgba(138, 109, 27, 0.5);
    background: rgba(255, 255, 255, 0.6);
}

.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: #8a6d1b;
    font-size: 13px;
    text-decoration: none;
    font-weight: normal;
    transition: color 0.2s ease;
}

.NB-static-card-altlink:hover {
    color: #5a4710;
}

/* 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(45, 38, 26, 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.5);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    color: #2d261a;
}

.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(0, 0, 0, 0.08);
}

.NB-static-form-alttext a {
    color: #8a6d1b;
    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-mode-section {
    margin-top: 8px;
}

.NB-filter-popover .NB-clustering-mode-section.NB-disabled {
    opacity: 0.35;
    pointer-events: none;
}

.NB-filter-popover .segmented-control.NB-menu-manage-clustering-mode {
    margin-left: 0;
}

/* reader.css: Inline pills inside the cluster-mode segmented control.
   Each option mixes readable text with the same Match/Related badges
   the reader sees on clustered story rows, so the choice visually
   previews what the tag will look like. */
.NB-menu-manage-clustering-mode .NB-clustering-option {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.NB-menu-manage-clustering-mode .NB-clustering-mode-label {
    font-weight: inherit;
}

.NB-menu-manage-clustering-mode .NB-clustering-mode-pill {
    display: inline-flex;
    align-items: center;
    line-height: 1;
}

.NB-menu-manage-clustering-mode .NB-clustering-mode-pill .NB-cluster-tier-badge {
    margin: 0;
    font-size: 9px;
    padding: 2px 6px;
    letter-spacing: 0.06em;
}

.NB-menu-manage-clustering-mode .NB-clustering-mode-plus {
    color: #808080;
    font-weight: 600;
    font-size: 11px;
    line-height: 1;
}

.NB-dark .NB-menu-manage-clustering-mode .NB-clustering-mode-plus {
    color: #909090;
}

.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 {
    display: flex;
    align-items: center;
    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;
}

/* Clustering upgrade notice in feed options popover */
.NB-filter-popover .NB-clustering-upgrade-notice {
    margin-left: auto;
    text-decoration: none;
    cursor: pointer;
}

.NB-filter-popover .NB-clustering-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;
    transition: filter 0.3s;
}

.NB-filter-popover .NB-clustering-upgrade-notice.NB-flash .NB-archive-badge {
    filter: brightness(1.3);
}

.NB-dark .NB-filter-popover .NB-clustering-upgrade-notice .NB-archive-badge {
    filter: brightness(0.85);
}

.NB-dark .NB-filter-popover .NB-clustering-upgrade-notice.NB-flash .NB-archive-badge {
    filter: brightness(1.2);
}

/* 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;
}

/* =========== */
/* = 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: 8px;
    box-shadow:
        0 0 0 1px rgba(0, 0, 0, 0.04),
        0 2px 4px rgba(0, 0, 0, 0.04),
        0 8px 16px rgba(0, 0, 0, 0.08),
        0 16px 32px rgba(0, 0, 0, 0.06);
    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;
    transition: opacity 0.22s ease-in-out;
}

.fade.in {
    opacity: 1;
}

.NB-overlay {
    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;
    transition: opacity 400ms ease, transform 0s ease;
}

.NB-overlay.NB-top {
    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: border-color 0.15s ease, background-color 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-modal-preferences .NB-preference .NB-preference-options .NB-clustering-mark-read-option label {
    cursor: pointer;
    margin: 0;
}

.NB-clustering-mark-read-option.NB-disabled label {
    cursor: default;
    opacity: 0.4;
}

.NB-clustering-mark-read-option.NB-disabled input[type=checkbox] {
    opacity: 0.4;
}

.NB-clustering-mark-read-option .NB-premium-archive-upgrade-notice {
    margin-left: auto;
    margin-top: 0;
    padding: 2px 8px 2px 3px;
    font-size: 10px;
}

.NB-clustering-mark-read-option .NB-premium-archive-upgrade-notice .NB-archive-badge {
    font-size: 8px;
    padding: 2px 6px;
}

.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%;
    min-height: 0;
    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;
    min-height: 100%;
}

.NB-add-site-tab-results {
    flex: 0 0 auto;
    overflow: visible;
    padding: 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: border-color 0.15s ease, box-shadow 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: background-color 0.15s ease, color 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: background-color 0.15s ease, box-shadow 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: background-color 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: color 0.15s ease, background-color 0.15s ease, box-shadow 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: background-color 0.15s ease, border-color 0.15s ease, color 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: background-color 0.15s ease, border-color 0.15s ease, color 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%;
    min-height: 0;
    box-sizing: border-box;
}

.NB-add-site-tab-pane {
    display: none;
    height: 100%;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 20px 16px 48px 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: border-color 0.15s ease, box-shadow 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;
}

/* Reddit API results section */
.NB-add-site-reddit-api-section {
    margin-top: 16px;
}

.NB-add-site-reddit-api-header {
    font-size: 13px;
    font-weight: 600;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 0 4px 8px;
}

/* Reddit direct-add card */
.NB-add-site-reddit-direct-card {
    border-style: dashed;
    border-color: #CCC;
    background: #FAFAFA;
    margin-bottom: 12px;
}

/* 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: border-color 0.15s ease, box-shadow 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: background 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: border-color 0.15s ease, background-color 0.15s ease, color 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: border-color 0.15s ease, box-shadow 0.15s ease, transform 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: background-color 0.15s ease, color 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: background 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: border-color 0.15s ease, color 0.15s ease, background-color 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: visible;
}

.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: border-color 0.15s ease, color 0.15s ease, background-color 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;
}

/* Web Feed archive upgrade banner */
.NB-add-site-webfeed-archive-banner {
    margin: 0 0 12px;
    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-add-site-webfeed-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-add-site-webfeed-archive-banner-content {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.NB-add-site-webfeed-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-add-site-webfeed-archive-banner-text {
    flex: 1;
    min-width: 0;
}

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

.NB-add-site-webfeed-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-add-site-webfeed-archive-banner-body {
    font-size: 12px;
    line-height: 1.5;
    color: #707070;
}

.NB-add-site-webfeed-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-add-site-webfeed-archive-banner-cta:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.NB-add-site-webfeed-archive-banner-cta:active {
    transform: translateY(0);
}

@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: border-color 0.15s ease, background-color 0.15s ease, transform 0.15s ease, box-shadow 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: border-color 0.15s ease, background-color 0.15s ease, transform 0.15s ease, box-shadow 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: border-color 0.15s ease, background-color 0.15s ease, color 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: border-color 0.15s ease, background-color 0.15s ease, color 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: border-color 0.15s ease, background-color 0.15s ease, color 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;
}

/* Hint shown under the empty state when the Style popover filters hide all feeds */
.NB-add-site-empty-hint {
    margin-top: 8px;
    font-size: 12px;
    color: #aaa;
}

.NB-dark .NB-add-site-empty-hint {
    color: #777;
}

/* 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-reddit-api-header {
    color: #777;
}

.NB-dark .NB-add-site-reddit-direct-card {
    border-color: #555;
    background: #1E1E1E;
}

.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: background-color 0.15s ease, border-color 0.15s ease, color 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: background-color 0.15s ease, border-color 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: opacity 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: border-color 0.15s ease, box-shadow 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: background-color 0.15s ease, transform 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: background-color 0.15s ease, color 0.15s ease, border-color 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: background-color 0.15s ease, border-color 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: background-color 0.15s ease, border-color 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: background-color 0.15s ease, border-color 0.15s ease, color 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: background-color 0.15s ease, border-color 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: background-color 0.3s ease, border-color 0.3s ease, color 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: background-color 0.15s ease, border-color 0.15s ease, color 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: border-color 0.15s ease, box-shadow 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: background-color 0.15s ease, border-color 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: background-color 0.15s ease, border-color 0.15s ease, box-shadow 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: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 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: background-color 0.15s ease, border-color 0.15s ease, color 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: opacity 0.2s ease, visibility 0.2s ease, transform 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: border-color 0.15s ease, box-shadow 0.15s ease, transform 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: background-color 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: background-color 0.15s ease, border-color 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: color 0.15s ease, background-color 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: background-color 0.15s ease, box-shadow 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: box-shadow 0.15s ease, transform 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: background-color 0.15s ease, border-color 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: background 0.2s ease, box-shadow 0.2s ease, transform 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: background-color 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: background-color 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: background-color 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: background-color 0.15s ease, border-color 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: background-color 0.15s ease, border-color 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: color 0.15s ease, background-color 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: box-shadow 0.15s ease, transform 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: background-color 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;
}

.NB-briefing-direct-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    margin-left: 4px;
    vertical-align: -3px;
    border-bottom: none;
    opacity: 0.55;
    transition: opacity 0.15s ease, transform 0.15s ease;
}

.NB-briefing-direct-link:hover {
    border-bottom: none;
    opacity: 0.9;
    transform: translateY(-1px);
}

.NB-briefing-direct-link:active {
    transform: scale(0.96);
}

.NB-briefing-direct-link-icon,
img.NB-briefing-direct-link-icon {
    display: block;
    width: 14px;
    height: 14px;
    max-width: 14px;
    max-height: 14px;
    margin: 0;
    border: 0;
}

/* 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 Admin — staff-only view for auditing all users' briefings */
.NB-feeds-header-river-briefing-admin-container {
    display: none;
}

/* reader.css: Trending story feeds are revealed by feed_list_view.js */
.NB-feeds-header-river-well-read-container,
.NB-feeds-header-river-long-reads-container,
.NB-feeds-header-river-good-reads-container {
    display: none;
}
.NB-briefing-admin-meta {
    font-size: 11px;
    color: #999;
    margin-top: 4px;
}

.NB-briefing-admin-badge {
    padding: 12px 16px;
    border-bottom: 1px solid #E0E0E0;
    background: #F8F8F6;
}

/* 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: Premium Archive callout for non-archive users — used by the briefing
   views and the related stories upsell. The badge sits on the first line of
   left-aligned text so the strip stays light and wraps cleanly instead of
   centering into ragged lines. */
.NB-archive-callout {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin: 8px 14px;
    padding: 8px 12px;
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 6px;
    background: rgba(99, 102, 241, 0.04);
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease;
}

.NB-archive-callout:hover {
    background: rgba(99, 102, 241, 0.1);
    border-color: #8b5cf6;
}

.NB-archive-callout .NB-archive-badge {
    display: inline-block;
    flex-shrink: 0;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: white;
    font-size: 8px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 2px 7px;
    border-radius: 4px;
    white-space: nowrap;
}

.NB-archive-callout-text {
    font-size: 11px;
    line-height: 1.45;
    color: #606060;
    text-align: left;
}

/* 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;
    border-radius: 6px;
    transition: box-shadow 0.4s ease, background-color 0.4s ease;
}

/* reader.css: Pulse highlight for sections deep-linked from email (e.g. ?next=briefing-notifications) */
.NB-briefing-popover .NB-popover-section.NB-popover-section-pulse {
    animation: NB-popover-section-pulse 2s ease-out;
}

@keyframes NB-popover-section-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(82, 130, 191, 0.55);
        background-color: rgba(82, 130, 191, 0.10);
    }
    40% {
        box-shadow: 0 0 0 6px rgba(82, 130, 191, 0.18);
        background-color: rgba(82, 130, 191, 0.10);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(82, 130, 191, 0);
        background-color: transparent;
    }
}

.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: border-color 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: transform 0.15s ease, background 0.15s;
    flex-wrap: wrap;
}

.NB-briefing-section-item:hover {
    background: rgba(0, 0, 0, 0.04);
}

/* reader.css: Briefing section drag handle */
.NB-briefing-drag-handle {
    width: 18px;
    height: 24px;
    flex-shrink: 0;
    cursor: grab;
    opacity: 0.4;
    display: flex;
    align-items: center;
    justify-content: center;
}

.NB-briefing-drag-handle:hover {
    opacity: 0.6;
}

.NB-briefing-drag-handle:active {
    cursor: grabbing;
}

.NB-briefing-drag-handle svg {
    width: 14px;
    height: 14px;
    fill: #888;
}

.NB-briefing-section-item.NB-briefing-section-dragging {
    background: #e8eae6;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    z-index: 10;
    opacity: 0.9;
    position: relative;
}

.NB-briefing-section-checkbox {
    width: 14px;
    height: 14px;
    border: 2px solid #b0b0b0;
    border-radius: 3px;
    flex-shrink: 0;
    margin-top: 2px;
    position: relative;
    transition: background-color 0.15s, border-color 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: opacity 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-drag-handle svg {
    fill: #999;
}

.NB-dark .NB-briefing-section-item.NB-briefing-section-dragging {
    background: #3a3a3e;
}

.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: Loading indicator for infinite scroll pagination */
.NB-briefing-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 14px;
    border-bottom: 1px solid #E0E0DC;
    background-color: #F5F6F2;
}

/* 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;
}

/* ================================= */
/* = Curated River Explainer Banner = */
/* ================================= */

/* reader.css: Non-sticky note above the first story title on the four curated rivers
   (Global Shared, Widely Read, Long Reads, Good Reads) explaining how each is assembled. */
.NB-story-titles-explainer {
    margin: 8px 8px 4px;
    padding: 8px 12px 10px;
    border: 1px solid #E8E8DF;
    border-radius: 5px;
    background: linear-gradient(180deg, #F8F8F3 0%, #F3F3EC 100%);
    box-sizing: border-box;
}

.NB-layout-grid .NB-story-titles-explainer {
    margin: 0;
    grid-column-start: 1;
    grid-column-end: -1;
}

.NB-story-titles-explainer-header {
    display: flex;
    align-items: center;
    gap: 6px;
}

.NB-story-titles-explainer-icon {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    opacity: 0.9;
}

.NB-story-titles-explainer-label {
    flex-shrink: 0;
    font-family: 'Gotham Narrow A', 'Gotham Narrow B', "Helvetica Neue", Helvetica, sans-serif;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #8F9089;
}

/* reader.css: Hairline that runs from the label to the right edge, like a masthead rule. */
.NB-story-titles-explainer-rule {
    flex: 1;
    height: 1px;
    min-width: 12px;
    background-color: #E3E3D9;
}

.NB-story-titles-explainer-body {
    margin-top: 5px;
    font-family: 'Whitney SSm A', 'Whitney SSm B', "Lucida Grande", Verdana, "Helvetica Neue", Helvetica, sans-serif;
    font-size: 12px;
    line-height: 16px;
    color: #6E7068;
}

/**
 * Growth Prompts CSS
 * Premium upgrade conversion prompts with animations
 */

.NB-growth-prompt {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 380px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25), 0 0 0 1px rgba(0, 0, 0, 0.05);
    z-index: 10000;
    overflow: hidden;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.NB-dark .NB-growth-prompt {
    background: #1a1a1a;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.1);
}

/* Full-bleed animated header */
.NB-growth-prompt-header {
    background: linear-gradient(135deg, #5cb85c 0%, #3d8b3d 50%, #2d682d 100%);
    padding: 32px 24px 40px;
    position: relative;
    overflow: hidden;
}

/* Animated background shapes */
.NB-growth-prompt-header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 60%);
    animation: shimmer 8s ease-in-out infinite;
}

.NB-growth-prompt-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 40px;
    background: linear-gradient(to top, rgba(0,0,0,0.1), transparent);
}

@keyframes shimmer {
    0%, 100% { transform: translate(-30%, -30%) rotate(0deg); }
    50% { transform: translate(-20%, -40%) rotate(10deg); }
}

/* Floating particles */
.NB-growth-prompt-particles {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    overflow: hidden;
    pointer-events: none;
}

.NB-growth-prompt-particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    animation: float-up 4s ease-in-out infinite;
}

.NB-growth-prompt-particle:nth-child(1) { left: 10%; animation-delay: 0s; }
.NB-growth-prompt-particle:nth-child(2) { left: 30%; animation-delay: 1s; }
.NB-growth-prompt-particle:nth-child(3) { left: 50%; animation-delay: 2s; }
.NB-growth-prompt-particle:nth-child(4) { left: 70%; animation-delay: 0.5s; }
.NB-growth-prompt-particle:nth-child(5) { left: 90%; animation-delay: 1.5s; }

@keyframes float-up {
    0% {
        transform: translateY(100px) scale(0);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-20px) scale(1);
        opacity: 0;
    }
}

/* Icon container with glow */
.NB-growth-prompt-icon {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.NB-growth-prompt-icon-wrapper {
    width: 72px;
    height: 72px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: icon-pulse 3s ease-in-out infinite;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

@keyframes icon-pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
    }
}

.NB-growth-prompt-icon img {
    width: 40px;
    height: 40px;
    filter: brightness(0) invert(1);
    animation: rocket-float 2s ease-in-out infinite;
}

@keyframes rocket-float {
    0%, 100% { transform: translateY(0) rotate(-5deg); }
    50% { transform: translateY(-4px) rotate(5deg); }
}

/* Close button */
.NB-growth-prompt-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 28px;
    height: 28px;
    line-height: 26px;
    text-align: center;
    font-size: 18px;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    border-radius: 50%;
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
    z-index: 10;
    background: rgba(255, 255, 255, 0.1);
}

.NB-growth-prompt-close:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    transform: scale(1.1);
}

/* Content area */
.NB-growth-prompt-content {
    padding: 24px;
}

.NB-growth-prompt-title {
    font-size: 22px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 8px;
    letter-spacing: -0.3px;
    text-wrap: balance;
}

.NB-dark .NB-growth-prompt-title {
    color: #fff;
}

.NB-growth-prompt-body {
    font-size: 15px;
    line-height: 1.6;
    color: #666;
    margin-bottom: 20px;
}

.NB-dark .NB-growth-prompt-body {
    color: #999;
}

/* Feature list */
.NB-growth-prompt-features {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

.NB-growth-prompt-feature {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: #444;
}

.NB-dark .NB-growth-prompt-feature {
    color: #bbb;
}

.NB-growth-prompt-feature-icon {
    width: 20px;
    height: 20px;
    background: linear-gradient(135deg, #5cb85c, #3d8b3d);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.NB-growth-prompt-feature-icon::after {
    content: '✓';
    color: white;
    font-size: 11px;
    font-weight: bold;
}

/* Actions */
.NB-growth-prompt-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.NB-growth-prompt-cta {
    flex: 1;
    padding: 14px 24px;
    font-size: 15px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    border-radius: 12px;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #5cb85c 0%, #449d44 100%);
    color: #fff;
    border: none;
    box-shadow: 0 4px 14px rgba(92, 184, 92, 0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.NB-growth-prompt-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.NB-growth-prompt-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(92, 184, 92, 0.5);
}

.NB-growth-prompt-cta:hover::before {
    left: 100%;
}

.NB-growth-prompt-cta:active {
    transform: translateY(0) scale(0.96);
}

.NB-growth-prompt-dismiss {
    font-size: 14px;
    color: #999;
    cursor: pointer;
    padding: 8px 12px;
    transition: color 0.2s ease, background-color 0.2s ease;
    border-radius: 8px;
}

.NB-growth-prompt-dismiss:hover {
    color: #666;
    background: rgba(0, 0, 0, 0.05);
}

.NB-dark .NB-growth-prompt-dismiss {
    color: #666;
}

.NB-dark .NB-growth-prompt-dismiss:hover {
    color: #999;
    background: rgba(255, 255, 255, 0.05);
}

/* Milestone prompt - different color scheme */
.NB-growth-prompt-milestone .NB-growth-prompt-header {
    background: linear-gradient(135deg, #f0ad4e 0%, #ec971f 50%, #d58512 100%);
}

.NB-growth-prompt-milestone .NB-growth-prompt-cta {
    background: linear-gradient(135deg, #f0ad4e 0%, #ec971f 100%);
    box-shadow: 0 4px 14px rgba(240, 173, 78, 0.4);
}

.NB-growth-prompt-milestone .NB-growth-prompt-cta:hover {
    box-shadow: 0 8px 20px rgba(240, 173, 78, 0.5);
}

.NB-growth-prompt-milestone .NB-growth-prompt-feature-icon {
    background: linear-gradient(135deg, #f0ad4e, #ec971f);
}

/* Feature gate - compact version */
.NB-growth-prompt-feature-gate {
    width: 340px;
}

.NB-growth-prompt-feature-gate .NB-growth-prompt-header {
    padding: 24px 20px 32px;
    background: linear-gradient(135deg, #5bc0de 0%, #31b0d5 50%, #269abc 100%);
}

.NB-growth-prompt-feature-gate .NB-growth-prompt-icon-wrapper {
    width: 56px;
    height: 56px;
    border-radius: 16px;
}

.NB-growth-prompt-feature-gate .NB-growth-prompt-icon img {
    width: 28px;
    height: 28px;
}

.NB-growth-prompt-feature-gate .NB-growth-prompt-content {
    padding: 20px;
}

.NB-growth-prompt-feature-gate .NB-growth-prompt-title {
    font-size: 18px;
}

.NB-growth-prompt-feature-gate .NB-growth-prompt-cta {
    background: linear-gradient(135deg, #5bc0de 0%, #31b0d5 100%);
    box-shadow: 0 4px 14px rgba(91, 192, 222, 0.4);
}

/* Mobile responsive */
@media (max-width: 480px) {
    .NB-growth-prompt {
        width: calc(100% - 24px);
        left: 12px;
        right: 12px;
        bottom: 12px;
        border-radius: 12px;
    }

    .NB-growth-prompt-header {
        padding: 24px 20px 32px;
    }

    .NB-growth-prompt-icon-wrapper {
        width: 56px;
        height: 56px;
    }

    .NB-growth-prompt-content {
        padding: 20px;
    }

    .NB-growth-prompt-title {
        font-size: 20px;
    }
}

/* Entrance animation */
@keyframes prompt-slide-in {
    0% {
        opacity: 0;
        transform: translateY(40px) scale(0.95);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.NB-growth-prompt-entering {
    animation: prompt-slide-in 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

/* Exit animation */
@keyframes prompt-slide-out {
    0% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
    100% {
        opacity: 0;
        transform: translateY(20px) scale(0.95);
    }
}

.NB-growth-prompt-exiting {
    animation: prompt-slide-out 0.25s ease-in forwards;
}

/* @group Base */
.chzn-container {
  font-size: 13px;
  position: relative;
  display: inline-block;
  vertical-align: middle;
  zoom: 1;
}

.chzn-container .chzn-drop {
  background: #fff;
  border: 1px solid #aaa;
  border-top: 0;
  position: absolute;
  top: 100%;
  left: -9999px;
  -webkit-box-shadow: 0 4px 5px rgba(0, 0, 0, .15);
  -moz-box-shadow: 0 4px 5px rgba(0, 0, 0, .15);
  box-shadow: 0 4px 5px rgba(0, 0, 0, .15);
  z-index: 1010;
  width: 100%;
  -moz-box-sizing: border-box;
  -ms-box-sizing: border-box;
  -webkit-box-sizing: border-box;
  -khtml-box-sizing: border-box;
  box-sizing: border-box;
}

.chzn-container.chzn-with-drop .chzn-drop {
  left: 0;
}

/* @end */

/* @group Single Chosen */
.chzn-container-single .chzn-single {
  background-color: #ffffff;
  background-image: -webkit-gradient(linear, 0 0, 0 100%, color-stop(20%, #ffffff), color-stop(50%, #f6f6f6), color-stop(52%, #eeeeee), color-stop(100%, #f4f4f4));
  background-image: -webkit-linear-gradient(top, #ffffff 20%, #f6f6f6 50%, #eeeeee 52%, #f4f4f4 100%);
  background-image: -moz-linear-gradient(top, #ffffff 20%, #f6f6f6 50%, #eeeeee 52%, #f4f4f4 100%);
  background-image: -o-linear-gradient(top, #ffffff 20%, #f6f6f6 50%, #eeeeee 52%, #f4f4f4 100%);
  background-image: linear-gradient(#ffffff 20%, #f6f6f6 50%, #eeeeee 52%, #f4f4f4 100%);
  -webkit-border-radius: 5px;
  -moz-border-radius: 5px;
  border-radius: 5px;
  -moz-background-clip: padding;
  -webkit-background-clip: padding-box;
  background-clip: padding-box;
  border: 1px solid #aaaaaa;
  -webkit-box-shadow: 0 0 3px #ffffff inset, 0 1px 1px rgba(0, 0, 0, 0.1);
  -moz-box-shadow: 0 0 3px #ffffff inset, 0 1px 1px rgba(0, 0, 0, 0.1);
  box-shadow: 0 0 3px #ffffff inset, 0 1px 1px rgba(0, 0, 0, 0.1);
  display: block;
  overflow: hidden;
  white-space: nowrap;
  position: relative;
  height: 23px;
  line-height: 24px;
  padding: 0 0 0 8px;
  color: #444444;
  text-decoration: none;
}

.chzn-container-single .chzn-default {
  color: #999;
}

.chzn-container-single .chzn-single span {
  margin-right: 26px;
  display: block;
  overflow: hidden;
  white-space: nowrap;
  -o-text-overflow: ellipsis;
  -ms-text-overflow: ellipsis;
  text-overflow: ellipsis;
}

.chzn-container-single .chzn-single-with-deselect span {
  margin-right: 38px;
}

.chzn-container-single .chzn-single abbr {
  display: block;
  position: absolute;
  right: 26px;
  top: 6px;
  width: 12px;
  height: 12px;
  font-size: 1px;
  background: url(/media/embed/reader/chosen-sprite.png) -42px 1px no-repeat;
}

.chzn-container-single .chzn-single abbr:hover {
  background-position: -42px -10px;
}

.chzn-container-single.chzn-disabled .chzn-single abbr:hover {
  background-position: -42px -10px;
}

.chzn-container-single .chzn-single div {
  position: absolute;
  right: 0;
  top: 0;
  display: block;
  height: 100%;
  width: 18px;
}

.chzn-container-single .chzn-single div b {
  background: url(/media/embed/reader/chosen-sprite.png) no-repeat 0px 2px;
  display: block;
  width: 100%;
  height: 100%;
}

.chzn-container-single .chzn-search {
  padding: 3px 4px;
  position: relative;
  margin: 0;
  white-space: nowrap;
  z-index: 1010;
}

.chzn-container-single .chzn-search input {
  background: #fff url(/media/embed/reader/chosen-sprite.png) no-repeat 100% -20px;
  background: url(/media/embed/reader/chosen-sprite.png) no-repeat 100% -20px, -webkit-gradient(linear, 0 0, 0 100%, color-stop(1%, #eeeeee), color-stop(15%, #ffffff));
  background: url(/media/embed/reader/chosen-sprite.png) no-repeat 100% -20px, -webkit-linear-gradient(top, #eeeeee 1%, #ffffff 15%);
  background: url(/media/embed/reader/chosen-sprite.png) no-repeat 100% -20px, -moz-linear-gradient(top, #eeeeee 1%, #ffffff 15%);
  background: url(/media/embed/reader/chosen-sprite.png) no-repeat 100% -20px, -o-linear-gradient(top, #eeeeee 1%, #ffffff 15%);
  background: url(/media/embed/reader/chosen-sprite.png) no-repeat 100% -20px, linear-gradient(#eeeeee 1%, #ffffff 15%);
  margin: 1px 0;
  padding: 4px 20px 4px 5px;
  outline: 0;
  border: 1px solid #aaa;
  font-family: sans-serif;
  font-size: 1em;
  width: 100%;
  -moz-box-sizing: border-box;
  -ms-box-sizing: border-box;
  -webkit-box-sizing: border-box;
  -khtml-box-sizing: border-box;
  box-sizing: border-box;
}

.chzn-container-single .chzn-drop {
  margin-top: -1px;
  -webkit-border-radius: 0 0 4px 4px;
  -moz-border-radius: 0 0 4px 4px;
  border-radius: 0 0 4px 4px;
  -moz-background-clip: padding;
  -webkit-background-clip: padding-box;
  background-clip: padding-box;
}

.chzn-container-single-nosearch .chzn-search {
  position: absolute;
  left: -9999px;
}

/* @end */

/* @group Multi Chosen */
.chzn-container-multi .chzn-choices {
  background-color: #fff;
  background-image: -webkit-gradient(linear, 0 0, 0 100%, color-stop(1%, #eeeeee), color-stop(15%, #ffffff));
  background-image: -webkit-linear-gradient(top, #eeeeee 1%, #ffffff 15%);
  background-image: -moz-linear-gradient(top, #eeeeee 1%, #ffffff 15%);
  background-image: -o-linear-gradient(top, #eeeeee 1%, #ffffff 15%);
  background-image: linear-gradient(#eeeeee 1%, #ffffff 15%);
  border: 1px solid #aaa;
  margin: 0;
  padding: 0;
  cursor: text;
  overflow: hidden;
  height: auto !important;
  height: 1%;
  position: relative;
  width: 100%;
  -moz-box-sizing: border-box;
  -ms-box-sizing: border-box;
  -webkit-box-sizing: border-box;
  -khtml-box-sizing: border-box;
  box-sizing: border-box;
}

.chzn-container-multi .chzn-choices li {
  float: left;
  list-style: none;
}

.chzn-container-multi .chzn-choices .search-field {
  white-space: nowrap;
  margin: 0;
  padding: 0;
}

.chzn-container-multi .chzn-choices .search-field input {
  color: #666;
  background: transparent !important;
  border: 0 !important;
  font-family: sans-serif;
  font-size: 100%;
  height: 15px;
  padding: 5px;
  margin: 1px 0;
  outline: 0;
  -webkit-box-shadow: none;
  -moz-box-shadow: none;
  box-shadow: none;
}

.chzn-container-multi .chzn-choices .search-field .default {
  color: #999;
}

.chzn-container-multi .chzn-choices .search-choice {
  -webkit-border-radius: 3px;
  -moz-border-radius: 3px;
  border-radius: 3px;
  -moz-background-clip: padding;
  -webkit-background-clip: padding-box;
  background-clip: padding-box;
  background-color: #e4e4e4;
  background-image: -webkit-gradient(linear, 0 0, 0 100%, color-stop(20%, #f4f4f4), color-stop(50%, #f0f0f0), color-stop(52%, #e8e8e8), color-stop(100%, #eeeeee));
  background-image: -webkit-linear-gradient(top, #f4f4f4 20%, #f0f0f0 50%, #e8e8e8 52%, #eeeeee 100%);
  background-image: -moz-linear-gradient(top, #f4f4f4 20%, #f0f0f0 50%, #e8e8e8 52%, #eeeeee 100%);
  background-image: -o-linear-gradient(top, #f4f4f4 20%, #f0f0f0 50%, #e8e8e8 52%, #eeeeee 100%);
  background-image: linear-gradient(#f4f4f4 20%, #f0f0f0 50%, #e8e8e8 52%, #eeeeee 100%);
  -webkit-box-shadow: 0 0 2px #ffffff inset, 0 1px 0 rgba(0, 0, 0, 0.05);
  -moz-box-shadow: 0 0 2px #ffffff inset, 0 1px 0 rgba(0, 0, 0, 0.05);
  box-shadow: 0 0 2px #ffffff inset, 0 1px 0 rgba(0, 0, 0, 0.05);
  color: #333;
  border: 1px solid #aaaaaa;
  line-height: 13px;
  padding: 3px 20px 3px 5px;
  margin: 3px 0 3px 5px;
  position: relative;
  cursor: default;
}

.chzn-container-multi .chzn-choices .search-choice.search-choice-disabled {
  background-color: #e4e4e4;
  background-image: -webkit-gradient(linear, 0% 0%, 0% 100%, color-stop(20%, #f4f4f4), color-stop(50%, #f0f0f0), color-stop(52%, #e8e8e8), color-stop(100%, #eeeeee));
  background-image: -webkit-linear-gradient(top, #f4f4f4 20%, #f0f0f0 50%, #e8e8e8 52%, #eeeeee 100%);
  background-image: -moz-linear-gradient(top, #f4f4f4 20%, #f0f0f0 50%, #e8e8e8 52%, #eeeeee 100%);
  background-image: -o-linear-gradient(top, #f4f4f4 20%, #f0f0f0 50%, #e8e8e8 52%, #eeeeee 100%);
  background-image: -ms-linear-gradient(top, #f4f4f4 20%, #f0f0f0 50%, #e8e8e8 52%, #eeeeee 100%);
  background-image: linear-gradient(top, #f4f4f4 20%, #f0f0f0 50%, #e8e8e8 52%, #eeeeee 100%);
  color: #666;
  border: 1px solid #cccccc;
  padding-right: 5px;
}

.chzn-container-multi .chzn-choices .search-choice-focus {
  background: #d4d4d4;
}

.chzn-container-multi .chzn-choices .search-choice .search-choice-close {
  display: block;
  position: absolute;
  right: 3px;
  top: 4px;
  width: 12px;
  height: 12px;
  font-size: 1px;
  background: url(/media/embed/reader/chosen-sprite.png) -42px 1px no-repeat;
}

.chzn-container-multi .chzn-choices .search-choice .search-choice-close:hover {
  background-position: -42px -10px;
}

.chzn-container-multi .chzn-choices .search-choice-focus .search-choice-close {
  background-position: -42px -10px;
}

/* @end */

/* @group Results */
.chzn-container .chzn-results {
  margin: 0 4px 4px 0;
  max-height: 240px;
  padding: 0 0 0 4px;
  position: relative;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.chzn-container-multi .chzn-results {
  margin: 0;
  padding: 0;
}

.chzn-container .chzn-results li {
  display: none;
  line-height: 15px;
  padding: 5px 6px;
  margin: 0;
  list-style: none;
}

.chzn-container .chzn-results .active-result {
  cursor: pointer;
  display: list-item;
}

.chzn-container .chzn-results .disabled-result {
  color: #ccc;
  cursor: default;
  display: list-item;
}

.chzn-container .chzn-results .disabled-result em {
  background: transparent;
}

.chzn-container .chzn-results .highlighted {
  background-color: #3875d7;
  background-image: -webkit-gradient(linear, 0 0, 0 100%, color-stop(20%, #3875d7), color-stop(90%, #2a62bc));
  background-image: -webkit-linear-gradient(top, #3875d7 20%, #2a62bc 90%);
  background-image: -moz-linear-gradient(top, #3875d7 20%, #2a62bc 90%);
  background-image: -o-linear-gradient(top, #3875d7 20%, #2a62bc 90%);
  background-image: linear-gradient(#3875d7 20%, #2a62bc 90%);
  color: #fff;
}

.chzn-container .chzn-results li em {
  background: #feffde;
  font-style: normal;
}

.chzn-container .chzn-results .highlighted em {
  background: transparent;
}

.chzn-container .chzn-results .no-results {
  background: #f4f4f4;
  display: list-item;
}

.chzn-container .chzn-results .group-result {
  cursor: default;
  color: #999;
  font-weight: bold;
}

.chzn-container .chzn-results .group-option {
  padding-left: 15px;
}

.chzn-container-multi .chzn-drop .result-selected {
  color: #ccc;
  cursor: default;
  display: list-item;
}

.chzn-container-multi .chzn-drop .result-selected em {
  background: transparent;
}

.chzn-container .chzn-results-scroll {
  background: white;
  margin: 0 4px;
  position: absolute;
  text-align: center;
  width: 321px;
  /* This should by dynamic with js */
  z-index: 1;
}

.chzn-container .chzn-results-scroll span {
  display: inline-block;
  height: 17px;
  text-indent: -5000px;
  width: 9px;
}

.chzn-container .chzn-results-scroll-down {
  bottom: 0;
}

.chzn-container .chzn-results-scroll-down span {
  background: url(/media/embed/reader/chosen-sprite.png) no-repeat -4px -3px;
}

.chzn-container .chzn-results-scroll-up span {
  background: url(/media/embed/reader/chosen-sprite.png) no-repeat -22px -3px;
}

/* @end */

/* @group Active  */
.chzn-container-active .chzn-single {
  -webkit-box-shadow: 0 0 5px rgba(0, 0, 0, .3);
  -moz-box-shadow: 0 0 5px rgba(0, 0, 0, .3);
  box-shadow: 0 0 5px rgba(0, 0, 0, .3);
  border: 1px solid #5897fb;
}

.chzn-container-active.chzn-with-drop .chzn-single {
  border: 1px solid #aaa;
  -webkit-box-shadow: 0 1px 0 #fff inset;
  -moz-box-shadow: 0 1px 0 #fff inset;
  box-shadow: 0 1px 0 #fff inset;
  background-color: #eee;
  background-image: -webkit-gradient(linear, 0 0, 0 100%, color-stop(20%, #eeeeee), color-stop(80%, #ffffff));
  background-image: -webkit-linear-gradient(top, #eeeeee 20%, #ffffff 80%);
  background-image: -moz-linear-gradient(top, #eeeeee 20%, #ffffff 80%);
  background-image: -o-linear-gradient(top, #eeeeee 20%, #ffffff 80%);
  background-image: linear-gradient(#eeeeee 20%, #ffffff 80%);
  -webkit-border-bottom-left-radius: 0;
  -webkit-border-bottom-right-radius: 0;
  -moz-border-radius-bottomleft: 0;
  -moz-border-radius-bottomright: 0;
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}

.chzn-container-active.chzn-with-drop .chzn-single div {
  background: transparent;
  border-left: none;
}

.chzn-container-active.chzn-with-drop .chzn-single div b {
  background-position: -18px 2px;
}

.chzn-container-active .chzn-choices {
  -webkit-box-shadow: 0 0 5px rgba(0, 0, 0, .3);
  -moz-box-shadow: 0 0 5px rgba(0, 0, 0, .3);
  box-shadow: 0 0 5px rgba(0, 0, 0, .3);
  border: 1px solid #5897fb;
}

.chzn-container-active .chzn-choices .search-field input {
  color: #111 !important;
}

/* @end */

/* @group Disabled Support */
.chzn-disabled {
  cursor: default;
  opacity: 0.5 !important;
}

.chzn-disabled .chzn-single {
  cursor: default;
}

.chzn-disabled .chzn-choices .search-choice .search-choice-close {
  cursor: default;
}

/* @group Right to Left */
.chzn-rtl {
  text-align: right;
}

.chzn-rtl .chzn-single {
  padding: 0 8px 0 0;
  overflow: visible;
}

.chzn-rtl .chzn-single span {
  margin-left: 26px;
  margin-right: 0;
  direction: rtl;
}

.chzn-rtl .chzn-single-with-deselect span {
  margin-left: 38px;
}

.chzn-rtl .chzn-single div {
  left: 3px;
  right: auto;
}

.chzn-rtl .chzn-single abbr {
  left: 26px;
  right: auto;
}

.chzn-rtl .chzn-choices .search-field input {
  direction: rtl;
}

.chzn-rtl .chzn-choices li {
  float: right;
}

.chzn-rtl .chzn-choices .search-choice {
  padding: 3px 5px 3px 19px;
  margin: 3px 5px 3px 0;
}

.chzn-rtl .chzn-choices .search-choice .search-choice-close {
  left: 4px;
  right: auto;
}

.chzn-rtl .chzn-container-single-nosearch .chzn-search {
  left: 9999px;
}

.chzn-rtl .chzn-drop {
  left: 9999px;
}

.chzn-rtl.chzn-container-single .chzn-results {
  margin: 0 0 4px 4px;
  padding: 0 4px 0 0;
}

.chzn-rtl .chzn-results .group-option {
  padding-left: 0;
  padding-right: 15px;
}

.chzn-rtl.chzn-container-active.chzn-with-drop .chzn-single div {
  border-right: none;
}

.chzn-rtl .chzn-search input {
  background: #fff url(/media/embed/reader/chosen-sprite.png) no-repeat -30px -20px;
  background: url(/media/embed/reader/chosen-sprite.png) no-repeat -30px -20px, -webkit-gradient(linear, 0 0, 0 100%, color-stop(1%, #eeeeee), color-stop(15%, #ffffff));
  background: url(/media/embed/reader/chosen-sprite.png) no-repeat -30px -20px, -webkit-linear-gradient(top, #eeeeee 1%, #ffffff 15%);
  background: url(/media/embed/reader/chosen-sprite.png) no-repeat -30px -20px, -moz-linear-gradient(top, #eeeeee 1%, #ffffff 15%);
  background: url(/media/embed/reader/chosen-sprite.png) no-repeat -30px -20px, -o-linear-gradient(top, #eeeeee 1%, #ffffff 15%);
  background: url(/media/embed/reader/chosen-sprite.png) no-repeat -30px -20px, linear-gradient(#eeeeee 1%, #ffffff 15%);
  padding: 4px 5px 4px 20px;
  direction: rtl;
}

.chzn-container-single.chzn-rtl .chzn-single div b {
  background-position: 6px 2px;
}

.chzn-container-single.chzn-rtl.chzn-with-drop .chzn-single div b {
  background-position: -12px 2px;
}

/* @end */

/* @group Retina compatibility */
@media only screen and (-webkit-min-device-pixel-ratio: 2), only screen and (min-resolution: 144dpi) {
  .chzn-rtl .chzn-search input, .chzn-container-single .chzn-single abbr, .chzn-container-single .chzn-single div b, .chzn-container-single .chzn-search input, .chzn-container-multi .chzn-choices .search-choice .search-choice-close, .chzn-container .chzn-results-scroll-down span, .chzn-container .chzn-results-scroll-up span {
    background-image: url(/media/embed/reader/chosen-sprite@2x.png) !important;
    background-repeat: no-repeat !important;
    background-size: 52px 37px !important;
  }
}

/* @end */

ul.segmented-control {
    list-style-type: none;
    width: auto;
    padding: 1px;
    margin: 0 auto;
    clear: none;
    color: white;
    text-align: center;
    border-radius: 4px;
    transition: background-color 0.14s ease-in-out;
    display: flex;
    align-items: center;
}

.segmented-control ::-moz-selection {
    background: transparent;
}

.segmented-control ::selection {
    background: transparent;
}

.segmented-control:hover {
    background-color: #e5e6e2;
}

.segmented-control li {
    background: none;
    margin: 0 2px 0 0;
    cursor: pointer;
    padding: 0;
    text-align: center;
    border-radius: 3px;
    color: #61635e;
    text-shadow: 0 1px 0 rgba(255, 255, 255, .4);
    transition: background-color 0.14s ease-in-out, color 0.14s ease-in-out;
    flex: 1 1 auto;
    white-space: nowrap;
}

.segmented-control li:last-child {
    margin-right: 0;
}

.segmented-control li:active:not(.NB-disabled),
.segmented-control-active li:active {
    color: #303030;
    text-shadow: 0 1px 0 rgba(255, 255, 255, .3);

}

.segmented-control li.NB-active,
.segmented-control-active li {
    color: #131313;
    background-color: #d5d6d2;
}

.segmented-control:hover li.NB-active {
    background-color: #c5c6c2;
}

.segmented-control li:hover:not(.NB-disabled):not(.NB-active) {
    background-color: #d5d6d2;
}

.segmented-control li.NB-disabled {
    opacity: .9;
    color: rgba(0, 0, 0, .1);
    text-shadow: 0 1px 0 rgba(255, 255, 255, .3);
    cursor: default;
}

.segmented-control li.NB-disabled .NB-task-image {
    opacity: .3;
}


.segmented-control li:first-child,
.segmented-control li.NB-first {
    margin-left: 0;
    border-top-left-radius: 3px;
    border-bottom-left-radius: 3px;
}

.segmented-control li:last-child,
.segmented-control li.NB-last {
    border-top-right-radius: 3px;
    border-bottom-right-radius: 3px;
    border-right: none;
}

/* ============================== */
/* = Vertical segmented control = */
/* ============================== */

ul.segmented-control-vertical {
    list-style-type: none;
    width: auto;
    padding: 1px;
    margin: 0 auto;
    clear: none;
    display: block;
    text-align: center;
}

.segmented-control-vertical li {
    cursor: pointer;
    margin-bottom: 2px;
    width: 100%;
    padding: 0;
    clear: none;
    text-align: center;

    color: #61635e;
    text-shadow: 0 1px 0 rgba(255, 255, 255, .4);

}

.segmented-control-vertical li:last-child {
    margin-bottom: 0;
}

.segmented-control-vertical li:active:not(.NB-disabled),
.segmented-control-vertical-active li:active {
    color: #303030;
    text-shadow: 0 1px 0 rgba(255, 255, 255, .3);

}

.segmented-control-vertical li.NB-active,
.segmented-control-vertical li.NB-active:active,
.segmented-control-vertical-active li {
    color: #303030;

}

.segmented-control-vertical li.NB-disabled {
    opacity: .9;
    color: rgba(0, 0, 0, .1);
    text-shadow: 0 1px 0 rgba(255, 255, 255, .3);
    cursor: default;

}

.segmented-control-vertical li.NB-disabled .NB-task-image {
    opacity: .3;
}


.segmented-control-vertical li:first-child,
.segmented-control-vertical li.NB-first {
    margin-left: 0;

    -webkit-border-top-left-radius: 3px;
    -webkit-border-top-right-radius: 3px;
    -moz-border-radius-topleft: 3px;
    -moz-border-radius-topright: 3px;
    border-top-left-radius: 3px;
    border-top-right-radius: 3px;
}

.segmented-control-vertical li:last-child,
.segmented-control-vertical li.NB-last {
    border-bottom: none;

    -webkit-border-bottom-left-radius: 3px;
    -webkit-border-bottom-right-radius: 3px;
    -moz-border-radius-bottomleft: 3px;
    -moz-border-radius-bottomright: 3px;
    border-bottom-left-radius: 3px;
    border-bottom-right-radius: 3px;
}

.tipsy { padding: 5px; font-size: 10px; position: absolute; z-index: 200000; }
  .tipsy-inner { padding: 5px 8px 4px 8px; background-color: black; color: white; max-width: 200px; text-align: center; }
  .tipsy-inner { border-radius: 4px; }
  .tipsy-arrow { position: absolute; background: url(/media/img/reader/tipsy.gif) no-repeat top left; width: 9px; height: 5px; }
  .tipsy-n .tipsy-arrow { top: 0; left: 50%; margin-left: -4px; }
    .tipsy-nw .tipsy-arrow { top: 0; left: 10px; }
    .tipsy-ne .tipsy-arrow { top: 0; right: 10px; }
  .tipsy-s .tipsy-arrow { bottom: 0; left: 50%; margin-left: -4px; background-position: bottom left; }
    .tipsy-sw .tipsy-arrow { bottom: 0; left: 10px; background-position: bottom left; }
    .tipsy-se .tipsy-arrow { bottom: 0; right: 10px; background-position: bottom left; }
  .tipsy-e .tipsy-arrow { top: 50%; margin-top: -4px; right: 0; width: 5px; height: 9px; background-position: top right; }
  .tipsy-w .tipsy-arrow { top: 50%; margin-top: -4px; left: 0; width: 5px; height: 9px; }

/* =============== */
/* = FAQ Modal    = */
/* =============== */
/* Companion to templates/static/faq.xhtml and media/js/newsblur/reader/reader_faq.js */

#simplemodal-container.NB-full-container.NB-faq-modal-container {
    padding: 0;
    max-height: none;
}

#simplemodal-container.NB-full-container.NB-faq-modal-container .simplemodal-wrap {
    overflow: hidden !important;
}

.NB-modal.NB-modal-faq {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 0;
    box-sizing: border-box;
    background: #fbf9f4;
    color: rgba(45, 38, 26, 0.9);
    overflow: hidden;
    font-family: 'Gotham Narrow A', 'Gotham Narrow B', 'Helvetica Neue', sans-serif;
}

.NB-modal.NB-modal-faq .NB-modal-titlebar {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 18px 24px 16px;
    border-bottom: 1px solid rgba(45, 38, 26, 0.08);
    background: linear-gradient(180deg, rgba(255, 253, 247, 0.8) 0%, rgba(251, 249, 244, 1) 100%);
}

.NB-modal.NB-modal-faq .NB-modal-title {
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Chronicle Display A', 'Chronicle Display B', Georgia, serif;
    font-size: 22px;
    font-weight: 400;
    font-style: italic;
    color: rgba(45, 38, 26, 0.88);
    letter-spacing: -0.2px;
}

.NB-modal.NB-modal-faq .NB-modal-title .NB-icon {
    display: inline-block;
    float: none;
    margin: 0;
    width: 22px;
    height: 22px;
    background: transparent url(/media/embed/icons/nouns/dialog-faq.svg) no-repeat center center;
    background-size: 22px;
    filter: hue-rotate(228deg) saturate(12);
    opacity: 0.85;
}

/* ---- Titlebar controls (search + expand/collapse toggle) ---- */

.NB-modal.NB-modal-faq .NB-faq-controls {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 0 0 auto;
}

.NB-modal.NB-modal-faq .NB-faq-expand-toggle {
    list-style: none;
    display: inline-flex;
    margin: 0;
    padding: 2px;
    border-radius: 8px;
    background: rgba(45, 38, 26, 0.06);
    border: 1px solid rgba(45, 38, 26, 0.1);
    box-shadow: none;
}

.NB-modal.NB-modal-faq .NB-faq-expand-toggle li.NB-faq-expand-option {
    display: inline-flex;
    align-items: center;
    padding: 5px 10px;
    margin: 0;
    background: transparent;
    border: 0;
    border-radius: 6px;
    font-family: inherit;
    font-size: 12px;
    font-weight: 600;
    color: rgba(45, 38, 26, 0.55);
    cursor: pointer;
    transition: color 0.15s ease, background 0.15s ease;
}

.NB-modal.NB-modal-faq .NB-faq-expand-toggle li.NB-faq-expand-option:hover {
    color: rgba(45, 38, 26, 0.85);
    background: rgba(255, 255, 255, 0.55);
}

.NB-modal.NB-modal-faq .NB-faq-expand-toggle li.NB-faq-expand-option.NB-active {
    color: rgba(45, 38, 26, 0.95);
    background: #fff;
    box-shadow: 0 1px 2px rgba(45, 38, 26, 0.08), 0 0 0 1px rgba(45, 38, 26, 0.05);
}

.NB-modal.NB-modal-faq .NB-faq-expand-toggle li.NB-faq-expand-option .NB-task-title {
    display: inline-block;
    line-height: 1;
}

/* ---- Search ---- */

.NB-modal.NB-modal-faq .NB-faq-search {
    position: relative;
    flex: 0 0 auto;
    width: 260px;
}

.NB-modal.NB-modal-faq .NB-faq-search-input {
    width: 100%;
    box-sizing: border-box;
    padding: 9px 32px 9px 34px;
    border: 1px solid rgba(45, 38, 26, 0.15);
    border-radius: 8px;
    background: #fff;
    font-family: inherit;
    font-size: 14px;
    color: rgba(45, 38, 26, 0.85);
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
    outline: none;
}

.NB-modal.NB-modal-faq .NB-faq-search-input::placeholder {
    color: rgba(45, 38, 26, 0.35);
}

.NB-modal.NB-modal-faq .NB-faq-search-input:focus {
    border-color: rgba(138, 109, 27, 0.55);
    box-shadow: 0 0 0 3px rgba(138, 109, 27, 0.15);
}

.NB-modal.NB-modal-faq .NB-faq-search::before {
    content: "";
    position: absolute;
    left: 11px;
    top: 50%;
    transform: translateY(-50%);
    width: 14px;
    height: 14px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%238a7b55' stroke-width='1.8' stroke-linecap='round'%3E%3Ccircle cx='7' cy='7' r='5'/%3E%3Cpath d='m14 14-3.5-3.5'/%3E%3C/svg%3E") no-repeat center;
    background-size: contain;
    opacity: 0.7;
    pointer-events: none;
}

.NB-modal.NB-modal-faq .NB-faq-search-clear {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    border-radius: 50%;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.15s ease, background-color 0.15s ease;
    background: rgba(45, 38, 26, 0.12) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10' fill='none' stroke='%23443a28' stroke-width='1.6' stroke-linecap='round'%3E%3Cpath d='M2 2l6 6M8 2l-6 6'/%3E%3C/svg%3E") no-repeat center;
    background-size: 8px;
}

.NB-modal.NB-modal-faq .NB-faq-search-active .NB-faq-search-clear {
    opacity: 1;
}

.NB-modal.NB-modal-faq .NB-faq-search-clear:hover {
    background-color: rgba(45, 38, 26, 0.25);
}

/* ---- Body ---- */

.NB-modal.NB-modal-faq .NB-faq-modal-body {
    flex: 1 1 auto;
    overflow-y: auto;
    padding: 20px 28px 28px;
    -webkit-overflow-scrolling: touch;
}

.NB-modal.NB-modal-faq .NB-faq-loading {
    text-align: center;
    padding: 80px 20px;
    color: rgba(45, 38, 26, 0.4);
    font-size: 14px;
    font-style: italic;
}

.NB-modal.NB-modal-faq .NB-faq-error {
    text-align: center;
    padding: 80px 20px;
    color: rgba(160, 50, 50, 0.75);
    font-size: 14px;
}

/* ---- Tier grid inline inside a Q&A answer ---- */

.NB-modal.NB-modal-faq .NB-faq-tiers-block {
    margin: 0 0 20px;
    padding: 0;
    border: 0;
    background: transparent;
}

.NB-modal.NB-modal-faq .NB-faq-tiers-label {
    display: none;
}

.NB-modal.NB-modal-faq .NB-faq-tier-summary-modal {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin: 0;
}

.NB-modal.NB-modal-faq .NB-faq-tier-summary-modal a.NB-faq-tier {
    padding: 14px 16px;
    border-radius: 10px;
    border: 0;
    text-decoration: none;
    color: inherit;
    transition: background 0.18s ease, transform 0.15s ease;
    display: block;
    background: rgba(75, 85, 99, 0.07);
}

.NB-modal.NB-modal-faq .NB-faq-tier-summary-modal a.NB-faq-tier:hover {
    transform: translateY(-1px);
}

/* Tier-specific tints (light mode) */
.NB-modal.NB-modal-faq .NB-faq-tier-summary-modal a.NB-faq-tier-free {
    background: rgba(75, 85, 99, 0.07);
}

.NB-modal.NB-modal-faq .NB-faq-tier-summary-modal a.NB-faq-tier-free:hover {
    background: rgba(75, 85, 99, 0.13);
}

.NB-modal.NB-modal-faq .NB-faq-tier-summary-modal a.NB-faq-tier-premium {
    background: rgba(22, 163, 74, 0.08);
}

.NB-modal.NB-modal-faq .NB-faq-tier-summary-modal a.NB-faq-tier-premium:hover {
    background: rgba(22, 163, 74, 0.15);
}

.NB-modal.NB-modal-faq .NB-faq-tier-summary-modal a.NB-faq-tier-archive {
    background: rgba(13, 148, 136, 0.09);
}

.NB-modal.NB-modal-faq .NB-faq-tier-summary-modal a.NB-faq-tier-archive:hover {
    background: rgba(13, 148, 136, 0.16);
}

.NB-modal.NB-modal-faq .NB-faq-tier-summary-modal a.NB-faq-tier-pro {
    background: rgba(234, 88, 12, 0.08);
}

.NB-modal.NB-modal-faq .NB-faq-tier-summary-modal a.NB-faq-tier-pro:hover {
    background: rgba(234, 88, 12, 0.16);
}

.NB-modal.NB-modal-faq .NB-faq-tier-summary-modal .NB-faq-tier-name {
    font-family: inherit;
    font-size: 13px;
    font-weight: 700;
    margin: 0 0 4px;
    letter-spacing: -0.1px;
}

.NB-modal.NB-modal-faq .NB-faq-tier-summary-modal .NB-faq-tier-desc {
    font-size: 12px;
    color: rgba(45, 38, 26, 0.65);
    line-height: 1.5;
    margin: 0;
}

.NB-modal.NB-modal-faq .NB-faq-tier-summary-inline {
    margin-top: 14px;
}

/* ---- Sections ---- */

.NB-modal.NB-modal-faq .NB-faq-section {
    margin: 0 0 22px;
}

.NB-modal.NB-modal-faq .NB-faq-section-hidden {
    display: none;
}

.NB-modal.NB-modal-faq .NB-faq-section-title {
    margin: 0 0 8px;
    padding: 0 6px;
    font-family: 'Chronicle Display A', 'Chronicle Display B', Georgia, serif;
    font-size: 17px;
    font-weight: 500;
    font-style: italic;
    color: rgba(45, 38, 26, 0.65);
    letter-spacing: -0.1px;
}

.NB-modal.NB-modal-faq .NB-faq-items {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

/* ---- Accordion item ---- */

.NB-modal.NB-modal-faq .NB-faq-item {
    background: #fff;
    border: 1px solid rgba(45, 38, 26, 0.07);
    border-radius: 10px;
    overflow: hidden;
    transition: border-color 0.15s ease, box-shadow 0.2s ease;
}

.NB-modal.NB-modal-faq .NB-faq-item:hover {
    border-color: rgba(45, 38, 26, 0.14);
}

.NB-modal.NB-modal-faq .NB-faq-item-open {
    border-color: rgba(138, 109, 27, 0.25);
    box-shadow: 0 1px 0 rgba(45, 38, 26, 0.02), 0 6px 14px -10px rgba(45, 38, 26, 0.25);
}

.NB-modal.NB-modal-faq .NB-faq-searching .NB-faq-item:not(.NB-faq-item-match) {
    display: none;
}

.NB-modal.NB-modal-faq .NB-faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    padding: 12px 16px;
    margin: 0;
    background: transparent;
    border: 0;
    cursor: pointer;
    font-family: inherit;
    font-size: 15px;
    font-weight: 600;
    color: rgba(45, 38, 26, 0.88);
    text-align: left;
    line-height: 1.4;
    transition: color 0.15s ease;
}

.NB-modal.NB-modal-faq .NB-faq-question:hover {
    color: rgba(45, 38, 26, 1);
}

.NB-modal.NB-modal-faq .NB-faq-question:focus {
    outline: none;
}

.NB-modal.NB-modal-faq .NB-faq-question:focus-visible {
    outline: 2px solid rgba(138, 109, 27, 0.55);
    outline-offset: -2px;
    border-radius: 10px;
}

.NB-modal.NB-modal-faq .NB-faq-question-text {
    flex: 1 1 auto;
}

.NB-modal.NB-modal-faq .NB-faq-question-chevron {
    flex: 0 0 auto;
    width: 10px;
    height: 10px;
    border-right: 1.6px solid rgba(45, 38, 26, 0.45);
    border-bottom: 1.6px solid rgba(45, 38, 26, 0.45);
    transform: rotate(45deg);
    margin: -4px 6px 0 0;
    transition: transform 0.2s ease, border-color 0.15s ease;
}

.NB-modal.NB-modal-faq .NB-faq-item-open .NB-faq-question-chevron {
    transform: rotate(-135deg);
    margin-top: 2px;
    border-color: rgba(138, 109, 27, 0.8);
}

/* Collapse via grid rows — transitions smoothly without measuring heights. */
.NB-modal.NB-modal-faq .NB-faq-answer-wrapper {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.22s ease;
}

.NB-modal.NB-modal-faq .NB-faq-item-open .NB-faq-answer-wrapper {
    grid-template-rows: 1fr;
}

.NB-modal.NB-modal-faq .NB-faq-answer {
    min-height: 0;
    overflow: hidden;
    padding: 0 20px;
    font-size: 14px;
    line-height: 1.65;
    color: rgba(45, 38, 26, 0.72);
}

.NB-modal.NB-modal-faq .NB-faq-item-open .NB-faq-answer {
    padding: 2px 20px 18px;
}

.NB-modal.NB-modal-faq .NB-faq-answer p {
    margin: 0 0 10px;
}

.NB-modal.NB-modal-faq .NB-faq-answer p:last-child {
    margin-bottom: 0;
}

.NB-modal.NB-modal-faq .NB-faq-answer a {
    color: #8a6d1b;
    text-decoration: none;
    border-bottom: 1px solid rgba(138, 109, 27, 0.3);
}

.NB-modal.NB-modal-faq .NB-faq-answer a:hover {
    color: #5a4710;
    border-bottom-color: rgba(90, 71, 16, 0.6);
}

.NB-modal.NB-modal-faq .NB-faq-answer code {
    background: rgba(0, 0, 0, 0.05);
    padding: 1px 6px;
    border-radius: 3px;
    font-size: 12px;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, monospace;
    color: rgba(45, 38, 26, 0.85);
}

.NB-modal.NB-modal-faq .NB-faq-answer ul.NB-faq-bullet-list {
    list-style: none;
    padding: 0;
    margin: 6px 0;
}

.NB-modal.NB-modal-faq .NB-faq-answer ul.NB-faq-bullet-list li {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 2px 0;
}

.NB-modal.NB-modal-faq .NB-faq-answer ul.NB-faq-bullet-list li img {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

/* ---- Inline feature screenshot (e.g. River of News, Layouts) ---- */

.NB-modal.NB-modal-faq .NB-faq-answer .NB-faq-feature-image {
    margin: 14px 0 4px;
    padding: 0;
    text-align: center;
}

.NB-modal.NB-modal-faq .NB-faq-answer .NB-faq-feature-image img {
    display: inline-block;
    /* Retina (2x) screenshots are marked with srcset="... 2x" so the browser
       computes their intrinsic size as natural / 2. 1x images render at their
       natural size. max-width caps at the container so nothing overflows. */
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    border: 1px solid rgba(45, 38, 26, 0.1);
    box-shadow: 0 4px 12px -6px rgba(45, 38, 26, 0.2);
}

/* ---- Buttons: primary (See X) + secondary (Read more) ---- */

.NB-modal.NB-modal-faq .NB-faq-answer .NB-faq-item-links {
    margin: 14px 0 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.NB-modal.NB-modal-faq .NB-faq-answer a.NB-faq-button {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 12px;
    border-radius: 7px;
    font-size: 12px;
    font-weight: 600;
    line-height: 1;
    border: 1px solid transparent;
    text-decoration: none;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.1s ease;
}

.NB-modal.NB-modal-faq .NB-faq-answer a.NB-faq-button:active {
    transform: translateY(1px);
}

.NB-modal.NB-modal-faq .NB-faq-answer a.NB-faq-button-primary {
    background: #f5e8c2;
    border-color: rgba(138, 109, 27, 0.25);
    color: #6b5110;
}

.NB-modal.NB-modal-faq .NB-faq-answer a.NB-faq-button-primary:hover {
    background: #ecd896;
    border-color: rgba(138, 109, 27, 0.5);
    color: #4a3a0a;
}

.NB-modal.NB-modal-faq .NB-faq-answer a.NB-faq-button-secondary {
    background: rgba(0, 0, 0, 0.03);
    border-color: rgba(45, 38, 26, 0.12);
    color: rgba(45, 38, 26, 0.7);
}

.NB-modal.NB-modal-faq .NB-faq-answer a.NB-faq-button-secondary:hover {
    background: rgba(0, 0, 0, 0.05);
    border-color: rgba(45, 38, 26, 0.2);
    color: rgba(45, 38, 26, 0.95);
}

.NB-modal.NB-modal-faq .NB-faq-answer .NB-faq-blog-icon {
    display: inline-block;
    width: 12px;
    height: 12px;
    background: url(/media/img/favicon.png) no-repeat center center;
    background-size: contain;
    flex-shrink: 0;
}

/* ---- Search highlight ---- */

.NB-modal.NB-modal-faq mark.NB-faq-highlight {
    background: rgba(255, 224, 130, 0.7);
    color: rgba(45, 38, 26, 1);
    border-radius: 2px;
    padding: 0 1px;
}

/* ---- Empty search result ---- */

.NB-modal.NB-modal-faq .NB-faq-empty-state {
    display: none;
    text-align: center;
    padding: 40px 20px;
    color: rgba(45, 38, 26, 0.55);
}

.NB-modal.NB-modal-faq .NB-faq-empty-state-visible {
    display: block;
}

.NB-modal.NB-modal-faq .NB-faq-empty-state-title {
    font-family: 'Chronicle Display A', 'Chronicle Display B', Georgia, serif;
    font-style: italic;
    font-size: 18px;
    margin: 0 0 6px;
}

.NB-modal.NB-modal-faq .NB-faq-empty-state-subtitle {
    font-size: 13px;
    color: rgba(45, 38, 26, 0.45);
}

/* When actively searching, hide the tier block (noise) and section headers with no matches. */
.NB-modal.NB-modal-faq .NB-faq-searching .NB-faq-tiers-block {
    display: none;
}

/* ---- Footer ---- */

.NB-modal.NB-modal-faq .NB-faq-modal-footer {
    flex: 0 0 auto;
    padding: 12px 24px;
    border-top: 1px solid rgba(45, 38, 26, 0.08);
    background: rgba(255, 255, 255, 0.5);
    font-size: 12px;
    color: rgba(45, 38, 26, 0.55);
}

.NB-modal.NB-modal-faq .NB-faq-footer-text {
    text-align: center;
}

.NB-modal.NB-modal-faq .NB-faq-footer-text a {
    color: rgba(45, 38, 26, 0.75);
    text-decoration: none;
    border-bottom: 1px dashed rgba(45, 38, 26, 0.3);
}

.NB-modal.NB-modal-faq .NB-faq-footer-text a:hover {
    color: rgba(45, 38, 26, 1);
    border-bottom-color: rgba(45, 38, 26, 0.6);
}

/* ======================= */
/* = Dark mode overrides = */
/* ======================= */

body.NB-dark .NB-modal.NB-modal-faq,
body.NB-dark .NB-modal.NB-modal-faq {
    background: #1e1f22;
    color: rgba(240, 236, 226, 0.88);
}

body.NB-dark .NB-modal.NB-modal-faq .NB-modal-titlebar,
body.NB-dark .NB-modal.NB-modal-faq .NB-modal-titlebar {
    background: linear-gradient(180deg, #26272b 0%, #1e1f22 100%);
    border-bottom-color: rgba(255, 255, 255, 0.08);
}

body.NB-dark .NB-modal.NB-modal-faq .NB-modal-title,
body.NB-dark .NB-modal.NB-modal-faq .NB-modal-title {
    color: rgba(240, 236, 226, 0.92);
}

body.NB-dark .NB-modal.NB-modal-faq .NB-modal-title .NB-icon,
body.NB-dark .NB-modal.NB-modal-faq .NB-modal-title .NB-icon {
    filter: hue-rotate(228deg) saturate(6) brightness(1.3);
}

body.NB-dark .NB-modal.NB-modal-faq .NB-faq-expand-toggle {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.08);
}

body.NB-dark .NB-modal.NB-modal-faq .NB-faq-expand-toggle li.NB-faq-expand-option {
    color: rgba(240, 236, 226, 0.55);
}

body.NB-dark .NB-modal.NB-modal-faq .NB-faq-expand-toggle li.NB-faq-expand-option:hover {
    color: rgba(240, 236, 226, 0.9);
    background: rgba(255, 255, 255, 0.06);
}

body.NB-dark .NB-modal.NB-modal-faq .NB-faq-expand-toggle li.NB-faq-expand-option.NB-active {
    color: rgba(240, 236, 226, 1);
    background: #35363b;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.05);
}

body.NB-dark .NB-modal.NB-modal-faq .NB-faq-search-input,
body.NB-dark .NB-modal.NB-modal-faq .NB-faq-search-input {
    background: #2a2b2f;
    border-color: rgba(255, 255, 255, 0.1);
    color: rgba(240, 236, 226, 0.9);
}

body.NB-dark .NB-modal.NB-modal-faq .NB-faq-search-input::placeholder,
body.NB-dark .NB-modal.NB-modal-faq .NB-faq-search-input::placeholder {
    color: rgba(240, 236, 226, 0.35);
}

body.NB-dark .NB-modal.NB-modal-faq .NB-faq-search-input:focus,
body.NB-dark .NB-modal.NB-modal-faq .NB-faq-search-input:focus {
    border-color: rgba(214, 180, 90, 0.7);
    box-shadow: 0 0 0 3px rgba(214, 180, 90, 0.15);
}

body.NB-dark .NB-modal.NB-modal-faq .NB-faq-section-title,
body.NB-dark .NB-modal.NB-modal-faq .NB-faq-section-title {
    color: rgba(240, 236, 226, 0.55);
}

body.NB-dark .NB-modal.NB-modal-faq .NB-faq-tiers-block {
    background: transparent;
    border-color: transparent;
}

body.NB-dark .NB-modal.NB-modal-faq .NB-faq-tier-summary-modal a.NB-faq-tier-free {
    background: rgba(200, 210, 220, 0.07);
}

body.NB-dark .NB-modal.NB-modal-faq .NB-faq-tier-summary-modal a.NB-faq-tier-free:hover {
    background: rgba(200, 210, 220, 0.14);
}

body.NB-dark .NB-modal.NB-modal-faq .NB-faq-tier-summary-modal a.NB-faq-tier-premium {
    background: rgba(86, 211, 127, 0.1);
}

body.NB-dark .NB-modal.NB-modal-faq .NB-faq-tier-summary-modal a.NB-faq-tier-premium:hover {
    background: rgba(86, 211, 127, 0.18);
}

body.NB-dark .NB-modal.NB-modal-faq .NB-faq-tier-summary-modal a.NB-faq-tier-archive {
    background: rgba(64, 210, 195, 0.1);
}

body.NB-dark .NB-modal.NB-modal-faq .NB-faq-tier-summary-modal a.NB-faq-tier-archive:hover {
    background: rgba(64, 210, 195, 0.18);
}

body.NB-dark .NB-modal.NB-modal-faq .NB-faq-tier-summary-modal a.NB-faq-tier-pro {
    background: rgba(255, 145, 75, 0.1);
}

body.NB-dark .NB-modal.NB-modal-faq .NB-faq-tier-summary-modal a.NB-faq-tier-pro:hover {
    background: rgba(255, 145, 75, 0.18);
}

body.NB-dark .NB-modal.NB-modal-faq .NB-faq-tier-summary-modal .NB-faq-tier-desc {
    color: rgba(240, 236, 226, 0.65);
}

/* Tier name colors in dark mode - brighter variants */
body.NB-dark .NB-modal.NB-modal-faq .NB-faq-tier-free .NB-faq-tier-name,
body.NB-dark .NB-modal.NB-modal-faq .NB-faq-tier-free .NB-faq-tier-name {
    color: rgba(180, 190, 200, 0.95);
}
body.NB-dark .NB-modal.NB-modal-faq .NB-faq-tier-premium .NB-faq-tier-name,
body.NB-dark .NB-modal.NB-modal-faq .NB-faq-tier-premium .NB-faq-tier-name {
    color: rgba(86, 211, 127, 1);
}
body.NB-dark .NB-modal.NB-modal-faq .NB-faq-tier-archive .NB-faq-tier-name,
body.NB-dark .NB-modal.NB-modal-faq .NB-faq-tier-archive .NB-faq-tier-name {
    color: rgba(64, 210, 195, 1);
}
body.NB-dark .NB-modal.NB-modal-faq .NB-faq-tier-pro .NB-faq-tier-name,
body.NB-dark .NB-modal.NB-modal-faq .NB-faq-tier-pro .NB-faq-tier-name {
    color: rgba(255, 145, 75, 1);
}

body.NB-dark .NB-modal.NB-modal-faq .NB-faq-item,
body.NB-dark .NB-modal.NB-modal-faq .NB-faq-item {
    background: #26272b;
    border-color: rgba(255, 255, 255, 0.06);
}

body.NB-dark .NB-modal.NB-modal-faq .NB-faq-item:hover,
body.NB-dark .NB-modal.NB-modal-faq .NB-faq-item:hover {
    border-color: rgba(255, 255, 255, 0.14);
}

body.NB-dark .NB-modal.NB-modal-faq .NB-faq-item-open,
body.NB-dark .NB-modal.NB-modal-faq .NB-faq-item-open {
    border-color: rgba(214, 180, 90, 0.4);
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.3), 0 6px 14px -10px rgba(0, 0, 0, 0.6);
}

body.NB-dark .NB-modal.NB-modal-faq .NB-faq-question,
body.NB-dark .NB-modal.NB-modal-faq .NB-faq-question {
    color: rgba(240, 236, 226, 0.9);
}

body.NB-dark .NB-modal.NB-modal-faq .NB-faq-question:hover,
body.NB-dark .NB-modal.NB-modal-faq .NB-faq-question:hover {
    color: rgba(240, 236, 226, 1);
}

body.NB-dark .NB-modal.NB-modal-faq .NB-faq-question-chevron,
body.NB-dark .NB-modal.NB-modal-faq .NB-faq-question-chevron {
    border-color: rgba(240, 236, 226, 0.45);
}

body.NB-dark .NB-modal.NB-modal-faq .NB-faq-item-open .NB-faq-question-chevron,
body.NB-dark .NB-modal.NB-modal-faq .NB-faq-item-open .NB-faq-question-chevron {
    border-color: rgba(214, 180, 90, 0.95);
}

body.NB-dark .NB-modal.NB-modal-faq .NB-faq-answer,
body.NB-dark .NB-modal.NB-modal-faq .NB-faq-answer {
    color: rgba(240, 236, 226, 0.7);
}

body.NB-dark .NB-modal.NB-modal-faq .NB-faq-answer a,
body.NB-dark .NB-modal.NB-modal-faq .NB-faq-answer a {
    color: #d6b45a;
    border-bottom-color: rgba(214, 180, 90, 0.35);
}

body.NB-dark .NB-modal.NB-modal-faq .NB-faq-answer a:hover,
body.NB-dark .NB-modal.NB-modal-faq .NB-faq-answer a:hover {
    color: #f1cd74;
}

body.NB-dark .NB-modal.NB-modal-faq .NB-faq-answer a.NB-faq-button-primary {
    background: rgba(214, 180, 90, 0.18);
    border-color: rgba(214, 180, 90, 0.4);
    color: #f0d88a;
}

body.NB-dark .NB-modal.NB-modal-faq .NB-faq-answer a.NB-faq-button-primary:hover {
    background: rgba(214, 180, 90, 0.3);
    border-color: rgba(214, 180, 90, 0.65);
    color: #fce9a6;
}

body.NB-dark .NB-modal.NB-modal-faq .NB-faq-answer a.NB-faq-button-secondary {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.12);
    color: rgba(240, 236, 226, 0.75);
}

body.NB-dark .NB-modal.NB-modal-faq .NB-faq-answer a.NB-faq-button-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.22);
    color: rgba(240, 236, 226, 1);
}

body.NB-dark .NB-modal.NB-modal-faq .NB-faq-answer .NB-faq-feature-image img {
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 12px -6px rgba(0, 0, 0, 0.5);
}

body.NB-dark .NB-modal.NB-modal-faq .NB-faq-answer code,
body.NB-dark .NB-modal.NB-modal-faq .NB-faq-answer code {
    background: rgba(255, 255, 255, 0.08);
    color: rgba(240, 236, 226, 0.9);
}

body.NB-dark .NB-modal.NB-modal-faq mark.NB-faq-highlight,
body.NB-dark .NB-modal.NB-modal-faq mark.NB-faq-highlight {
    background: rgba(214, 180, 90, 0.45);
    color: rgba(255, 245, 220, 1);
}

body.NB-dark .NB-modal.NB-modal-faq .NB-faq-modal-footer,
body.NB-dark .NB-modal.NB-modal-faq .NB-faq-modal-footer {
    background: rgba(255, 255, 255, 0.03);
    border-top-color: rgba(255, 255, 255, 0.08);
    color: rgba(240, 236, 226, 0.55);
}

body.NB-dark .NB-modal.NB-modal-faq .NB-faq-modal-footer a,
body.NB-dark .NB-modal.NB-modal-faq .NB-faq-modal-footer a {
    color: rgba(240, 236, 226, 0.8);
    border-bottom-color: rgba(240, 236, 226, 0.3);
}

body.NB-dark .NB-modal.NB-modal-faq .NB-faq-modal-footer a:hover,
body.NB-dark .NB-modal.NB-modal-faq .NB-faq-modal-footer a:hover {
    color: rgba(240, 236, 226, 1);
    border-bottom-color: rgba(240, 236, 226, 0.6);
}

body.NB-dark .NB-modal.NB-modal-faq .NB-faq-search-clear,
body.NB-dark .NB-modal.NB-modal-faq .NB-faq-search-clear {
    background-color: rgba(255, 255, 255, 0.14);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10' fill='none' stroke='%23f0ecea' stroke-width='1.6' stroke-linecap='round'%3E%3Cpath d='M2 2l6 6M8 2l-6 6'/%3E%3C/svg%3E");
}

body.NB-dark .NB-modal.NB-modal-faq .NB-faq-search-clear:hover,
body.NB-dark .NB-modal.NB-modal-faq .NB-faq-search-clear:hover {
    background-color: rgba(255, 255, 255, 0.25);
}

body.NB-dark .NB-modal.NB-modal-faq .NB-faq-empty-state-title,
body.NB-dark .NB-modal.NB-modal-faq .NB-faq-empty-state-title {
    color: rgba(240, 236, 226, 0.7);
}

body.NB-dark .NB-modal.NB-modal-faq .NB-faq-empty-state-subtitle,
body.NB-dark .NB-modal.NB-modal-faq .NB-faq-empty-state-subtitle {
    color: rgba(240, 236, 226, 0.4);
}

/* Narrow viewports: stack title + controls, single-column tier grid */
@media (max-width: 820px) {
    .NB-modal.NB-modal-faq .NB-faq-tier-summary-modal {
        grid-template-columns: 1fr;
    }

    .NB-modal.NB-modal-faq .NB-modal-titlebar {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    .NB-modal.NB-modal-faq .NB-faq-controls {
        flex-wrap: wrap;
        justify-content: space-between;
    }

    .NB-modal.NB-modal-faq .NB-faq-search {
        flex: 1 1 200px;
        width: auto;
    }
}

/* ========== */
/* = Paypal = */
/* ========== */

.NB-paypal-return {
    margin: 176px 0 0;
    background-color: #D3E7BA;
    border-top: 1px solid #A0A0A0;
    border-bottom: 1px solid #A0A0A0;
    padding: 24px 0;
    background-image: linear-gradient(to top, rgb(188, 214, 167) 0%, rgb(223, 247, 212) 100%);
    text-align: center;
}

.NB-paypal-return .NB-paypal-return-title {
    font-size: 36px;
    margin: 0 0 12px;
    color: #303030;
    text-shadow: 1px 1px 0 rgba(255, 255, 255, .5);
}

.NB-paypal-return .NB-paypal-return-subtitle {
    font-size: 24px;
    color: #324A15;
    text-shadow: 1px 1px 0 rgba(255, 255, 255, .5);
}

.NB-paypal-return .NB-paypal-return-loading {
    margin: 18px auto 0;
    height: 16px;
    width: 300px;
}

/* ========== */
/* = Stripe = */
/* ========== */

.NB-static-form-wrapper {
    margin: 48px 0 18px;
    background: rgba(255, 255, 255, 0.06);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 24px 0;
}

.NB-static-form {
    margin: 0 auto;
    width: 360px;
}

.NB-stripe-form {
    overflow: hidden;
}

.NB-static-form input,
.NB-static-form select {
    font-size: 14px;
    padding: 4px 6px;
    margin: 6px 4px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 6px;
    box-shadow: none;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;

    width: 200px;
    box-sizing: border-box;
}

.NB-static-oauth .NB-static-form .controls input,
.NB-stripe-form.NB-static-form .controls input {
    width: 180px;
}

.NB-static-form .NB-label-right {
    margin: 0 0 24px 206px;
    width: 200px;
    box-sizing: border-box;
}

.NB-static-form input.error,
.NB-static-form select.error {
    border-color: #830C0C;
}

.NB-static-form button {
    width: 200px;
    margin: 12px 0 4px 150px;
    box-shadow: none;
}

.NB-static-form .helptext {
    display: none;
}

.NB-static-form #id_card_cvv {
    width: 42px;
}

.NB-static-form .NB-stripe-username {
    margin: 6px 0 12px;
}

.NB-static-form label {
    width: 150px;
    display: block;
    float: left;
    clear: both;
    margin: 6px 0 0;
    padding: 2px 0 0;
    text-shadow: none;
    text-transform: uppercase;
    font-size: 12px;
    font-weight: bold;
    color: rgba(255, 255, 255, 0.7);
}

.NB-static-form .NB-creditcards {
    margin: 8px 0 0 150px;
    overflow: hidden;
}

.NB-static-form .NB-creditcards img {
    float: left;
    margin-right: 4px;
    width: 32px;
    height: 20px;
}

.NB-static-form input[type=submit] {
    margin-left: 150px;
    width: 200px;
}

.NB-static-form label.error {
    width: 100%;
    margin-left: 150px;
    text-transform: none;
    color: darkred;
}

.NB-static-form #payment-form>div {
    clear: both;
}

.NB-static-form p {
    overflow: hidden;
}

.NB-static-form #id_plan {
    margin: 0;
}

.NB-static-form #id_plan label {
    margin-top: 0;
}

.NB-static-form .NB-stripe-plan-choice {
    float: left;
    width: 200px;
    margin-top: 0px;
    padding: 0 2px;
    font-weight: bold;
}

.NB-static-form .NB-stripe-plan-choice label {
    width: auto;
    float: left;
    margin-top: 0;
    padding-top: 0;
}

.NB-static-form .NB-stripe-plan-choice input {
    width: auto;
    margin-right: 4px;
}

.NB-static-form .NB-small {
    font-size: 10px;
    margin-left: 4px;
    color: #575857;
}

.NB-static-form .payment-errors {
    margin: 8px 0 0 150px;
    color: #600000;
    display: block;
    font-weight: bold;
}

.NB-static-form .payment-notice {
    margin: 8px 0 0 150px;
    color: #606060;
    display: block;
    font-weight: 300;
    font-size: 11px;
}

.NB-static-form .payextra-label {
    clear: none;
    width: 200px;
    text-transform: none;
}

.NB-static-form .payextra-label input {
    width: auto;
    margin: 0 4px 0 0;
}

.NB-static-form input[name=plan] {
    display: none;
}

.NB-static-form .g-recaptcha {
    padding-left: 120px;
}

/* ==========================================================================
 * static_pages.css - Styles for /pricing, /features, /compare, /about pages
 * ========================================================================== */

/* Shared static page layout */
.NB-static-pricing .NB-body-inner,
.NB-static-features .NB-body-inner,
.NB-static-compare .NB-body-inner,
.NB-static-about .NB-body-inner,
.NB-static-contact .NB-body-inner,
.NB-static-faq .NB-body-inner,
.NB-static-api .NB-body-inner,
.NB-static-forgot-password .NB-body-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 96px 32px 48px;
}

/* ---- Top header bar ---- */

/* Full-width background bar */
.NB-static .NB-splash-info.NB-splash-top {
    height: 70px;
    left: 0;
}

/* Hidden by default on non-static, non-welcome pages */
.NB-splash-top-nav {
    display: none;
}

/* Inner container: matches content width below */
.NB-static .NB-splash-top-nav {
    display: flex;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 32px;
    height: 100%;
    width: 100%;
    box-sizing: border-box;
}

/* Left zone: page title */
.NB-static .NB-splash-top-title {
    flex: 1;
    font-family: 'Gotham Narrow A', 'Gotham Narrow B', sans-serif;
    font-size: 24px;
    font-weight: 700;
    color: #2d261a;
    white-space: nowrap;
    text-align: left;
    min-width: 0;
}

body.NB-dark.NB-static .NB-splash-top-title {
    color: white;
}

/* When title is empty, still takes up flex space to keep links centered */
.NB-splash-top-title:empty {
    flex: 1;
}

/* Center zone: nav links */
.NB-splash-top-links {
    display: none;
}

.NB-static .NB-splash-top-links {
    display: flex;
    list-style: none;
    list-style-type: none;
    margin: 0;
    padding: 0;
    -webkit-padding-start: 0;
    gap: 4px;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* Right zone: logo */
.NB-splash-top-logo {
    display: none;
}

.NB-static .NB-splash-top-logo {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 16px;
}

.NB-static .NB-splash-top-logo .NB-splash-blurred-logo {
    height: 28px;
    width: 146px;
    margin: 0;
}

/* Hide fallback logo on static and welcome pages */
.NB-static .NB-splash-top-logo-fallback,
.NB-welcome .NB-splash-top-logo-fallback {
    display: none;
}

/* Mobile-only logo link: hidden by default, shown in mobile media query */
.NB-mobile-logo-link {
    display: none;
}

/* Kill squares: force no list markers */
.NB-splash-top-link {
    list-style: none;
    list-style-type: none;
    padding: 0;
    display: block;
}

.NB-static .NB-splash-top-link,
.NB-welcome .NB-splash-top-link {
    margin: 0;
}

.NB-splash-top-link::marker {
    content: none;
}

.NB-static .NB-splash-top-link a {
    font-family: 'Gotham Narrow A', 'Gotham Narrow B', sans-serif;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.3px;
    color: rgba(45, 38, 26, 0.6);
    text-decoration: none;
    padding: 6px 14px;
    border-radius: 6px;
    border: 1px solid transparent;
    transition: color 0.15s ease, background 0.15s ease, border-color 0.15s ease;
    background: none;
    display: block;
    line-height: 1;
}

.NB-static .NB-splash-top-link a:hover {
    color: #2d261a;
    background: rgba(0, 0, 0, 0.06);
}

/* Active page: dark text + rounded border (direct child only, not dropdown links) */
.NB-static-features .NB-splash-top-link-features > a,
.NB-static-pricing .NB-splash-top-link-pricing > a,
.NB-static-about .NB-splash-top-link-about > a,
.NB-static-faq .NB-splash-top-link-faq > a,
.NB-static-compare .NB-splash-top-link-features > a {
    color: #2d261a;
    border-color: rgba(45, 38, 26, 0.2);
}

/* Hide old .NB-static-title - title is now in the header nav */
.NB-static .NB-static-title {
    display: none;
}

/* Hide old NB-module styling on API page (replaced by NB-api-section) */
.NB-static-api .NB-module {
    display: none;
}

/* Logo: light variant for frosted glass, dark variant for dark mode */
.NB-static .NB-splash-blurred-logo {
    background-image: url(/media/embed/logo_newsblur_blur.png);
}

body.NB-dark.NB-static .NB-splash-blurred-logo {
    background-image: url(/media/embed/logo_newsblur_blur_dark.png);
}

/* ---- Welcome page header ---- */

.NB-welcome .NB-splash-top-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    position: relative;
    max-width: 960px;
    margin: 0 auto;
    padding: 0 48px;
    box-sizing: border-box;
    height: 70px;
}

.NB-welcome .NB-splash-top-links {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    -webkit-padding-start: 0;
    gap: 4px;
    align-items: center;
}

.NB-welcome .NB-splash-top-link a {
    font-family: 'Gotham Narrow A', 'Gotham Narrow B', sans-serif;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.3px;
    color: rgba(45, 38, 26, 0.6);
    text-decoration: none;
    padding: 6px 14px;
    border-radius: 6px;
    border: 1px solid transparent;
    background: none;
    display: block;
    transition: color 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.NB-welcome .NB-splash-top-link a:hover {
    color: #2d261a;
}

/* Welcome page: show toggle in top-right but hide logo and title */
.NB-welcome .NB-splash-top-logo {
    display: flex;
    align-items: center;
    position: absolute;
    right: 0;
    top: 0;
    height: 70px;
}

.NB-welcome .NB-splash-top-logo > a {
    display: none;
}

/* Welcome page: warm gold splash background (scoped so reader keeps #F6F8F0) */
.NB-welcome #NB-splash {
    background-color: #c4a870;
}

.NB-welcome .NB-splash-top-title {
    display: none;
}


/* ---- Navigation Dropdown Menus ---- */

.NB-splash-nav-has-dropdown {
    position: relative;
}

/* Dropdown arrow indicator next to trigger text */
.NB-splash-nav-has-dropdown > a::after {
    content: '';
    display: inline-block;
    width: 0;
    height: 0;
    border-left: 3.5px solid transparent;
    border-right: 3.5px solid transparent;
    border-top: 4px solid currentColor;
    margin-left: 5px;
    vertical-align: middle;
    position: relative;
    top: -0.5px;
    opacity: 0.6;
    transition: opacity 0.15s ease, transform 0.15s ease;
}

.NB-splash-nav-has-dropdown > a:hover::after,
.NB-splash-nav-dropdown-open > a::after {
    opacity: 1;
}

.NB-splash-nav-dropdown-open > a::after {
    transform: rotate(180deg);
}

/* Dropdown panel - lives in <body> (moved via JS) so backdrop-filter
   works without being blocked by the header's own backdrop-filter. */
.NB-splash-dropdown {
    position: fixed;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.2s ease, visibility 0.2s ease;
    padding-top: 8px;
    top: 0;
    left: 0;
}

/* Constrain dropdown widths */
.NB-splash-dropdown-features {
    width: 652px;
}

.NB-splash-dropdown:not(.NB-splash-dropdown-features) {
    width: 312px;
}

/* Open state - applied directly to the dropdown element */
.NB-splash-dropdown.NB-splash-nav-dropdown-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* Grace area - invisible bridge between trigger and panel */
.NB-splash-dropdown::before {
    content: '';
    position: absolute;
    top: -12px;
    left: 0;
    right: 0;
    height: 20px;
}

/* Inner container - the visible panel (light mode: frosted glass) */
.NB-splash-dropdown-inner {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(40px) saturate(1.4);
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: 12px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1), 0 0 0 1px rgba(0, 0, 0, 0.03);
    padding: 12px;
    min-width: 280px;
}

/* Features dropdown: two columns */
.NB-splash-dropdown-features .NB-splash-dropdown-inner {
    display: flex;
    gap: 0;
    min-width: 620px;
    padding: 16px;
}

/* Left column: hero features */
.NB-splash-dropdown-col-hero {
    flex: 0 0 290px;
    padding-right: 16px;
    border-right: 1px solid rgba(0, 0, 0, 0.08);
}

/* Right column: more features + compare + alternatives */
.NB-splash-dropdown-col-more {
    flex: 1;
    padding-left: 16px;
    min-width: 240px;
}

/* Section headings */
.NB-splash-dropdown-heading {
    font-family: 'Gotham Narrow A', 'Gotham Narrow B', sans-serif;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: rgba(26, 21, 8, 0.5);
    padding: 4px 10px 8px;
    margin: 0;
}

a.NB-splash-dropdown-heading-link,
a.NB-splash-dropdown-heading-link:link,
a.NB-splash-dropdown-heading-link:visited,
.NB-splash-dropdown-heading-link {
    color: #1a1508;
    text-decoration: none;
    font-family: 'Gotham Narrow A', 'Gotham Narrow B', sans-serif;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: color 0.15s ease;
}

a.NB-splash-dropdown-heading-link:hover,
.NB-splash-dropdown-heading-link:hover {
    color: #000;
}

/* Hero dropdown items (name + description) */
.NB-splash-dropdown-item {
    display: block;
    padding: 8px 10px;
    border-radius: 8px;
    text-decoration: none;
    transition: background 0.15s ease;
    cursor: pointer;
}

/* Dropdown icons - inline with title text */
.NB-splash-dropdown-icon {
    width: 16px;
    height: 16px;
    vertical-align: -2px;
    margin-right: 6px;
}

/* iOS-inspired icon colors via CSS filters */
.NB-splash-dropdown-icon-blue {
    filter: invert(37%) sepia(93%) saturate(2000%) hue-rotate(200deg) brightness(1.1);
}

.NB-splash-dropdown-icon-coral {
    filter: invert(50%) sepia(80%) saturate(1200%) hue-rotate(340deg) brightness(1.1);
}

.NB-splash-dropdown-icon-purple {
    filter: invert(30%) sepia(90%) saturate(2500%) hue-rotate(260deg) brightness(1.1);
}

.NB-splash-dropdown-icon-pink {
    filter: invert(45%) sepia(90%) saturate(1500%) hue-rotate(310deg) brightness(1.1);
}

.NB-splash-dropdown-icon-teal {
    filter: invert(55%) sepia(75%) saturate(1500%) hue-rotate(140deg) brightness(1.1);
}

.NB-splash-dropdown-icon-orange {
    filter: invert(57%) sepia(98%) saturate(1000%) hue-rotate(360deg) brightness(1.1);
}

.NB-splash-dropdown-icon-green {
    filter: invert(55%) sepia(75%) saturate(1500%) hue-rotate(90deg) brightness(1.1);
}

.NB-splash-dropdown-icon-gold {
    filter: invert(60%) sepia(90%) saturate(1200%) hue-rotate(20deg) brightness(1.1);
}

.NB-splash-dropdown-icon-indigo {
    filter: invert(25%) sepia(90%) saturate(2500%) hue-rotate(235deg) brightness(0.9);
}

.NB-splash-dropdown-icon-cyan {
    filter: invert(55%) sepia(85%) saturate(1800%) hue-rotate(160deg) brightness(1.1);
}

a.NB-splash-dropdown-item,
a.NB-splash-dropdown-item:link,
a.NB-splash-dropdown-item:visited,
.NB-splash-dropdown-item {
    color: #2d261a;
    text-decoration: none;
}

a.NB-splash-dropdown-item:hover,
.NB-splash-dropdown-item:hover {
    background: rgba(0, 0, 0, 0.04);
    color: #1a1508;
}

.NB-splash-dropdown-item-name {
    font-family: 'Gotham Narrow A', 'Gotham Narrow B', sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: #2d261a;
    line-height: 1.2;
    margin-bottom: 2px;
}

.NB-splash-dropdown-item:hover .NB-splash-dropdown-item-name {
    color: #1a1508;
}

.NB-splash-dropdown-item-desc {
    font-family: 'Gotham Narrow A', 'Gotham Narrow B', sans-serif;
    font-size: 11px;
    font-weight: 400;
    color: rgba(45, 38, 26, 0.65);
    line-height: 1.3;
}

/* Price badge in pricing dropdown */
.NB-splash-dropdown-price {
    font-size: 11px;
    font-weight: 600;
    color: #5a4510;
    margin-left: 4px;
}

/* Tier accent bars - rounded pill on the left */
.NB-splash-dropdown-tier {
    position: relative;
    padding-left: 18px;
}

.NB-splash-dropdown-tier::before {
    content: '';
    position: absolute;
    left: 4px;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 60%;
    border-radius: 3px;
    background: transparent;
    transition: background 0.15s ease;
}

.NB-splash-dropdown-tier-premium:hover::before {
    background: rgba(34, 197, 94, 0.6);
}

.NB-splash-dropdown-tier-archive:hover::before {
    background: rgba(20, 184, 166, 0.6);
}

.NB-splash-dropdown-tier-pro:hover::before {
    background: rgba(249, 115, 22, 0.6);
}

/* Divider line */
.NB-splash-dropdown-divider {
    height: 1px;
    background: rgba(0, 0, 0, 0.08);
    margin: 6px 10px;
}

/* Compact grid items (more features, compare, alternatives) */
.NB-splash-dropdown-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
}

a.NB-splash-dropdown-grid-item,
a.NB-splash-dropdown-grid-item:link,
a.NB-splash-dropdown-grid-item:visited,
.NB-splash-dropdown-grid-item {
    display: block;
    font-family: 'Gotham Narrow A', 'Gotham Narrow B', sans-serif;
    font-size: 12px;
    font-weight: 600;
    color: #1a1508;
    text-decoration: none;
    padding: 4px 10px;
    border-radius: 6px;
    transition: color 0.15s ease, background 0.15s ease;
    flex: 0 0 50%;
    box-sizing: border-box;
}

a.NB-splash-dropdown-grid-item:hover,
.NB-splash-dropdown-grid-item:hover {
    color: #000;
    background: rgba(0, 0, 0, 0.06);
}

/* Current page highlight in dropdown - dim background */
/* Feature hero items - active page highlight */
.NB-static-feature-training .NB-splash-dropdown-item-training,
.NB-static-feature-ask-ai .NB-splash-dropdown-item-ask-ai,
.NB-static-feature-web-feeds .NB-splash-dropdown-item-web-feeds,
.NB-static-feature-newsletters .NB-splash-dropdown-item-newsletters,
.NB-static-feature-search .NB-splash-dropdown-item-search,
.NB-static-feature-archive .NB-splash-dropdown-item-archive,
.NB-static-feature-saved .NB-splash-dropdown-item-saved,
.NB-static-feature-native-apps .NB-splash-dropdown-item-native-apps {
    background: rgba(0, 0, 0, 0.05);
}

.NB-static-feature-training .NB-splash-dropdown-item-training .NB-splash-dropdown-item-name,
.NB-static-feature-ask-ai .NB-splash-dropdown-item-ask-ai .NB-splash-dropdown-item-name,
.NB-static-feature-web-feeds .NB-splash-dropdown-item-web-feeds .NB-splash-dropdown-item-name,
.NB-static-feature-newsletters .NB-splash-dropdown-item-newsletters .NB-splash-dropdown-item-name,
.NB-static-feature-search .NB-splash-dropdown-item-search .NB-splash-dropdown-item-name,
.NB-static-feature-archive .NB-splash-dropdown-item-archive .NB-splash-dropdown-item-name,
.NB-static-feature-saved .NB-splash-dropdown-item-saved .NB-splash-dropdown-item-name,
.NB-static-feature-native-apps .NB-splash-dropdown-item-native-apps .NB-splash-dropdown-item-name {
    color: #1a1508;
}

/* Compare & alternative grid items - active page highlight */
body.NB-static-compare-feedly .NB-splash-dropdown-grid-item-compare-feedly,
body.NB-static-compare-inoreader .NB-splash-dropdown-grid-item-compare-inoreader,
body.NB-static-compare-readwise .NB-splash-dropdown-grid-item-compare-readwise,
body.NB-static-compare-old-reader .NB-splash-dropdown-grid-item-compare-old-reader,
body.NB-static-compare-feedbin .NB-splash-dropdown-grid-item-compare-feedbin,
body.NB-static-alt-feedly .NB-splash-dropdown-grid-item-alt-feedly,
body.NB-static-alt-google-reader .NB-splash-dropdown-grid-item-alt-google-reader,
body.NB-static-alt-open-source .NB-splash-dropdown-grid-item-alt-open-source,
body.NB-static-alt-inoreader .NB-splash-dropdown-grid-item-alt-inoreader,
body.NB-static-alt-self-hosted .NB-splash-dropdown-grid-item-alt-self-hosted {
    color: #000 !important;
    background: rgba(0, 0, 0, 0.06);
}

/* Welcome page adjustments */
.NB-welcome .NB-splash-dropdown {
    padding-top: 6px;
}

/* Prevent Features dropdown from overflowing viewport */
.NB-splash-dropdown {
    max-width: calc(100vw - 32px);
}

/* Responsive: hide dropdowns on mobile */
@media (max-width: 900px) {
    .NB-splash-dropdown {
        display: none !important;
    }
}


/* ---- Feature Detail Pages ---- */

.NB-feature-detail-container {
    max-width: 900px;
    margin: 0 auto;
}

.NB-feature-detail-hero {
    text-align: center;
    margin: 0 0 48px;
}

.NB-feature-detail-title {
    font-size: 42px;
    font-weight: 700;
    color: #2d261a;
    margin: 12px 0 16px;
    line-height: 1.1;
}

.NB-feature-detail-subtitle {
    font-size: 18px;
    color: rgba(45, 38, 26, 0.6);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.5;
}

/* Screenshot gallery */
.NB-feature-detail-screenshots {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin: 0 0 48px;
}

/* Ask AI: two-column layout with stacked left, tall right */
.NB-feature-detail-screenshots-askai {
    display: flex;
    gap: 24px;
    grid-template-columns: none;
}

.NB-feature-detail-screenshots-askai .NB-feature-detail-screenshots-left {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.NB-feature-detail-screenshots-askai .NB-feature-detail-screenshot-tall {
    flex: 1;
}

.NB-feature-detail-screenshots-askai .NB-feature-detail-screenshot-tall img {
    height: 100%;
    object-fit: cover;
    object-position: top;
}

.NB-feature-detail-screenshots.NB-feature-detail-screenshots-single {
    grid-template-columns: 1fr;
    max-width: 700px;
    margin: 0 auto 48px;
}

.NB-feature-detail-screenshot {
    text-align: center;
}

.NB-feature-detail-screenshot img {
    width: 100%;
    border-radius: 8px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.NB-feature-detail-caption {
    font-size: 13px;
    color: rgba(45, 38, 26, 0.5);
    margin: 10px 0 0;
    line-height: 1.4;
}

/* How it works section */
.NB-feature-detail-how {
    margin: 0 0 48px;
}

.NB-feature-detail-how h2,
.NB-feature-detail-faq h2 {
    font-size: 24px;
    font-weight: 700;
    color: #2d261a;
    margin: 0 0 20px;
}

.NB-feature-detail-steps {
    list-style: none;
    padding: 0;
    margin: 0;
    counter-reset: step-counter;
}

.NB-static .NB-feature-detail-step {
    counter-increment: step-counter;
    padding: 16px 0 16px 48px;
    position: relative;
    list-style: none;
    color: rgba(45, 38, 26, 0.75);
    font-size: 18px;
    line-height: 1.5;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.NB-feature-detail-step:last-child {
    border-bottom: none;
}

.NB-feature-detail-step::before {
    content: counter(step-counter);
    position: absolute;
    left: 0;
    top: 16px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(138, 109, 27, 0.15);
    color: #8a6d1b;
    font-size: 14px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* FAQ section */
.NB-feature-detail-faq {
    margin: 0 0 48px;
}

.NB-feature-detail-faq-item {
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    padding: 16px 0;
}

.NB-feature-detail-faq-item:last-child {
    border-bottom: none;
}

.NB-feature-detail-faq-q {
    font-size: 18px;
    font-weight: 600;
    color: rgba(45, 38, 26, 0.85);
    margin: 0 0 8px;
}

.NB-feature-detail-faq-a {
    font-size: 16px;
    color: rgba(45, 38, 26, 0.55);
    line-height: 1.6;
    margin: 0;
}

/* Bottom CTA */
.NB-feature-detail-cta {
    text-align: center;
    padding: 40px 0;
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.NB-feature-detail-cta a {
    display: inline-block;
    padding: 14px 36px;
    border-radius: 10px;
    font-family: 'Gotham Narrow A', 'Gotham Narrow B', sans-serif;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.NB-feature-detail-cta a:hover {
    transform: translateY(-1px);
}

.NB-static .NB-feature-detail-cta-primary {
    background: linear-gradient(135deg, #FBDB9B 0%, #f0c96e 100%);
    color: #2a2a1e;
    box-shadow: 0 2px 8px rgba(251, 219, 155, 0.3);
}

.NB-static .NB-feature-detail-cta-primary:hover {
    background: linear-gradient(135deg, #fce5b5 0%, #f5d580 100%);
    color: #2a2a1e;
    box-shadow: 0 4px 16px rgba(251, 219, 155, 0.4);
}

.NB-static .NB-feature-detail-cta-secondary {
    background: rgba(255, 255, 255, 0.4);
    color: #3a3122;
}

.NB-static .NB-feature-detail-cta-secondary:hover {
    background: rgba(255, 255, 255, 0.6);
    color: #2d261a;
}

/* Cross-links to other feature pages */
.NB-feature-detail-crosslinks {
    margin: 0 0 32px;
}

.NB-feature-detail-crosslinks h2 {
    font-size: 28px;
    font-weight: 700;
    color: #2d261a;
    margin: 0 0 20px;
}

.NB-feature-detail-crosslinks-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 8px;
}

.NB-feature-detail-crosslink {
    display: block;
    padding: 14px 16px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.25);
    text-decoration: none;
    transition: background 0.15s ease;
}

.NB-feature-detail-crosslink:hover {
    background: rgba(255, 255, 255, 0.45);
}

.NB-feature-detail-crosslink-name {
    font-family: 'Gotham Narrow A', 'Gotham Narrow B', sans-serif;
    font-size: 15px;
    font-weight: 600;
    color: rgba(45, 38, 26, 0.85);
    margin: 0 0 4px;
}

.NB-feature-detail-crosslink-desc {
    font-size: 13px;
    color: rgba(45, 38, 26, 0.5);
    line-height: 1.4;
}

/* Current page in crosslinks - highlighted */
.NB-static-feature-training .NB-feature-detail-crosslink-training,
.NB-static-feature-ask-ai .NB-feature-detail-crosslink-ask-ai,
.NB-static-feature-web-feeds .NB-feature-detail-crosslink-web-feeds,
.NB-static-feature-newsletters .NB-feature-detail-crosslink-newsletters,
.NB-static-feature-search .NB-feature-detail-crosslink-search,
.NB-static-feature-archive .NB-feature-detail-crosslink-archive,
.NB-static-feature-saved .NB-feature-detail-crosslink-saved,
.NB-static-feature-native-apps .NB-feature-detail-crosslink-native-apps,
.NB-static-feature-mcp .NB-feature-detail-crosslink-mcp,
.NB-static-feature-cli .NB-feature-detail-crosslink-cli {
    background: rgba(255, 255, 255, 0.5);
}

.NB-static-feature-training .NB-feature-detail-crosslink-training .NB-feature-detail-crosslink-name,
.NB-static-feature-ask-ai .NB-feature-detail-crosslink-ask-ai .NB-feature-detail-crosslink-name,
.NB-static-feature-web-feeds .NB-feature-detail-crosslink-web-feeds .NB-feature-detail-crosslink-name,
.NB-static-feature-newsletters .NB-feature-detail-crosslink-newsletters .NB-feature-detail-crosslink-name,
.NB-static-feature-search .NB-feature-detail-crosslink-search .NB-feature-detail-crosslink-name,
.NB-static-feature-archive .NB-feature-detail-crosslink-archive .NB-feature-detail-crosslink-name,
.NB-static-feature-saved .NB-feature-detail-crosslink-saved .NB-feature-detail-crosslink-name,
.NB-static-feature-native-apps .NB-feature-detail-crosslink-native-apps .NB-feature-detail-crosslink-name,
.NB-static-feature-mcp .NB-feature-detail-crosslink-mcp .NB-feature-detail-crosslink-name,
.NB-static-feature-cli .NB-feature-detail-crosslink-cli .NB-feature-detail-crosslink-name {
    color: #8a6d1b;
}

/* Feature crosslinks on comparison pages - add spacing */
.NB-static-compare .NB-feature-detail-crosslinks {
    margin-top: 48px;
}

/* Responsive feature detail */
@media (max-width: 900px) {
    .NB-feature-detail-title {
        font-size: 28px;
    }
    .NB-feature-detail-screenshots {
        grid-template-columns: 1fr;
    }
    .NB-feature-detail-screenshots-askai {
        flex-direction: column;
    }
    .NB-feature-detail-crosslinks-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 600px) {
    .NB-feature-detail-crosslinks-grid {
        grid-template-columns: 1fr;
    }
    .NB-mcp-tools-grid {
        grid-template-columns: 1fr;
    }
}


/* ---- MCP Feature Detail Page ---- */

/* Code blocks - terminal/code style */
pre.NB-feature-detail-code {
    background: #1a1a2e;
    color: #e0e0e0;
    font-family: 'SF Mono', Monaco, Consolas, monospace;
    padding: 16px 20px;
    border-radius: 8px;
    font-size: 14px;
    overflow-x: auto;
    white-space: pre-wrap;
    margin: 8px 0 16px;
    line-height: 1.5;
}

/* Tools grid - two columns */
.NB-mcp-tools-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 36px;
}

.NB-mcp-tools-column-heading {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 6px 12px;
    border-radius: 4px;
    margin: 0 0 8px;
    display: inline-block;
}

.NB-mcp-tools-column-heading-intelligence {
    margin-top: 20px;
}

.NB-mcp-tools-column-heading[data-category="reading"] {
    background: rgba(58, 118, 166, 0.1);
    color: rgba(40, 90, 130, 0.85);
}

.NB-mcp-tools-column-heading[data-category="actions"] {
    background: rgba(138, 109, 27, 0.1);
    color: rgba(120, 95, 20, 0.85);
}

.NB-mcp-tools-column-heading[data-category="intelligence"] {
    background: rgba(76, 141, 72, 0.1);
    color: rgba(50, 110, 48, 0.85);
}

.NB-mcp-tools-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.NB-mcp-tool {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 8px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.NB-mcp-tool:last-child {
    border-bottom: none;
}

.NB-mcp-tool code {
    font-family: 'SF Mono', Monaco, Consolas, monospace;
    font-size: 13px;
    font-weight: 500;
    color: rgba(45, 38, 26, 0.85);
    white-space: nowrap;
}

.NB-mcp-tool-desc {
    font-size: 13px;
    color: rgba(45, 38, 26, 0.45);
    line-height: 1.4;
}

/* MCP conversation examples */
.NB-feature-detail-examples-intro {
    font-size: 15px;
    color: rgba(45, 38, 26, 0.6);
    margin-bottom: 24px;
    line-height: 1.5;
}

.NB-mcp-example {
    margin-bottom: 28px;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.NB-mcp-example:last-child {
    margin-bottom: 0;
}

.NB-mcp-example-prompt {
    background: #1a1a2e;
    color: #e8e8e8;
    font-size: 15px;
    font-weight: 600;
    padding: 14px 20px;
    font-style: italic;
}

.NB-mcp-example-prompt::before {
    content: "> ";
    color: rgba(130, 180, 255, 0.7);
    font-style: normal;
    font-family: 'SF Mono', Monaco, Consolas, monospace;
}

.NB-mcp-example-tool {
    background: #14142a;
    color: rgba(130, 180, 255, 0.85);
    font-family: 'SF Mono', Monaco, Consolas, monospace;
    font-size: 12px;
    padding: 6px 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.NB-mcp-example-tool::before {
    content: "\25B6\00a0\00a0";
    font-size: 8px;
    vertical-align: 1px;
    opacity: 0.5;
}

.NB-mcp-example-tool-args {
    color: rgba(180, 160, 220, 0.7);
    margin-left: 4px;
}

.NB-mcp-example-response {
    background: #fafaf8;
    padding: 16px 20px;
    font-size: 14px;
    line-height: 1.55;
    color: rgba(45, 38, 26, 0.8);
}

.NB-mcp-example-response p {
    margin: 0 0 10px 0;
}

.NB-mcp-example-response p:last-child {
    margin-bottom: 0;
}

.NB-mcp-example-response strong {
    color: rgba(45, 38, 26, 0.95);
}

.NB-mcp-example-response em {
    font-style: normal;
    color: rgba(45, 38, 26, 0.65);
}

.NB-mcp-example-response code {
    font-family: 'SF Mono', Monaco, Consolas, monospace;
    font-size: 12px;
    background: rgba(0, 0, 0, 0.05);
    padding: 2px 6px;
    border-radius: 3px;
}

/* Setup section */
.NB-mcp-setup-options {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-bottom: 16px;
}

.NB-mcp-setup-option h3 {
    font-size: 16px;
    font-weight: 600;
    color: #2d261a;
    margin: 0 0 8px;
}

.NB-mcp-setup-option p {
    font-size: 14px;
    color: rgba(45, 38, 26, 0.6);
    margin: 0 0 6px;
}

.NB-mcp-setup-note {
    font-size: 14px;
    color: rgba(45, 38, 26, 0.5);
    font-style: italic;
}

/* Cross-banner linking between related feature pages */
.NB-feature-crossbanner {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 20px;
    margin-bottom: 32px;
    background: rgba(255, 255, 255, 0.35);
    border: 1px solid rgba(45, 38, 26, 0.1);
    border-radius: 8px;
    font-size: 15px;
    color: rgba(45, 38, 26, 0.7);
}

.NB-feature-crossbanner .NB-splash-dropdown-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.NB-feature-crossbanner a {
    color: #8a6d1b;
    font-weight: 600;
    text-decoration: none;
}

.NB-feature-crossbanner a:hover {
    text-decoration: underline;
}

/* CLI commands sections */
.NB-cli-commands-section .NB-feature-detail-subtitle {
    margin: 0 0 16px 0;
    max-width: none;
    text-align: left;
}

/* CLI Section */
.NB-cli-section {
    margin-top: 48px;
}

.NB-cli-steps {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-top: 24px;
}

.NB-cli-step h3 {
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #707070;
    margin-bottom: 8px;
}

.NB-cli-step-note {
    margin-top: 8px;
    font-size: 14px;
    color: #808080;
}

.NB-cli-step-note code {
    background: #f0f0f0;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 13px;
}


/* ---- Pricing Tier Detail Pages ---- */

.NB-pricing-tier-detail-container {
    max-width: 900px;
    margin: 0 auto;
}

.NB-pricing-tier-detail-hero {
    text-align: center;
    margin: 0 0 48px;
}

.NB-pricing-tier-detail-name {
    font-size: 42px;
    font-weight: 700;
    color: #2d261a;
    margin: 0 0 8px;
    line-height: 1.1;
}

.NB-pricing-tier-detail-price {
    font-size: 24px;
    color: #8a6d1b;
    margin: 0 0 16px;
}

.NB-pricing-tier-detail-subtitle {
    font-size: 18px;
    color: rgba(45, 38, 26, 0.6);
    max-width: 600px;
    margin: 0 auto 24px;
    line-height: 1.5;
}

.NB-pricing-tier-detail-cta-button {
    display: inline-block;
    padding: 14px 36px;
    border-radius: 8px;
    font-family: 'Gotham Narrow A', 'Gotham Narrow B', sans-serif;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.15s ease;
}

.NB-pricing-tier-detail-cta-premium {
    background: rgba(34, 160, 80, 0.15);
    color: #1a8a42;
    border: 1px solid rgba(34, 160, 80, 0.3);
}

.NB-pricing-tier-detail-cta-premium:hover {
    background: rgba(34, 160, 80, 0.25);
}

.NB-pricing-tier-detail-cta-archive {
    background: rgba(15, 145, 130, 0.15);
    color: #0d8a7c;
    border: 1px solid rgba(15, 145, 130, 0.3);
}

.NB-pricing-tier-detail-cta-archive:hover {
    background: rgba(15, 145, 130, 0.25);
}

.NB-pricing-tier-detail-cta-pro {
    background: rgba(210, 95, 15, 0.15);
    color: #c05a0e;
    border: 1px solid rgba(210, 95, 15, 0.3);
}

.NB-pricing-tier-detail-cta-pro:hover {
    background: rgba(210, 95, 15, 0.25);
}

/* Feature list on tier pages */
.NB-pricing-tier-detail-features {
    margin: 0 0 48px;
}

.NB-pricing-tier-detail-features h2 {
    font-size: 24px;
    font-weight: 700;
    color: #2d261a;
    margin: 0 0 24px;
}

.NB-pricing-tier-detail-feature {
    display: flex;
    gap: 24px;
    padding: 24px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    align-items: flex-start;
}

.NB-pricing-tier-detail-feature:last-child {
    border-bottom: none;
}

.NB-pricing-tier-detail-feature-text {
    flex: 1;
}

.NB-pricing-tier-detail-feature-name {
    font-size: 18px;
    font-weight: 600;
    color: rgba(45, 38, 26, 0.9);
    margin: 0 0 6px;
}

.NB-pricing-tier-detail-feature-desc {
    font-size: 16px;
    color: rgba(45, 38, 26, 0.55);
    line-height: 1.6;
    margin: 0;
}

.NB-pricing-tier-detail-feature-img {
    flex: 0 0 280px;
}

.NB-pricing-tier-detail-feature-img img {
    width: 100%;
    border-radius: 8px;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

/* Tier page FAQ */
.NB-pricing-tier-detail-faq {
    margin: 0 0 48px;
}

.NB-pricing-tier-detail-faq h2 {
    font-size: 24px;
    font-weight: 700;
    color: #2d261a;
    margin: 0 0 20px;
}

/* Reuse feature detail FAQ item styles */
.NB-pricing-tier-detail-faq .NB-feature-detail-faq-item,
.NB-pricing-tier-detail-faq .NB-feature-detail-faq-q,
.NB-pricing-tier-detail-faq .NB-feature-detail-faq-a {
    /* Inherits from feature detail FAQ styles above */
}

/* Other tiers callout */
.NB-pricing-tier-detail-others {
    text-align: center;
    padding: 24px 0 32px;
}

.NB-pricing-tier-detail-others-label {
    font-size: 13px;
    color: rgba(45, 38, 26, 0.45);
    margin: 0 0 12px;
}

.NB-pricing-tier-detail-others-links {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.NB-pricing-tier-detail-others-links a {
    font-family: 'Gotham Narrow A', 'Gotham Narrow B', sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: rgba(45, 38, 26, 0.55);
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 6px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    transition: color 0.15s ease, border-color 0.15s ease;
}

.NB-pricing-tier-detail-others-links a:hover {
    color: #8a6d1b;
    border-color: rgba(138, 109, 27, 0.3);
}

/* Pricing plan crosslinks - card grid at bottom of individual tier pages */
.NB-pricing-crosslinks {
    margin: 0 0 32px;
}

.NB-pricing-crosslinks h2 {
    font-size: 28px;
    font-weight: 700;
    color: #2d261a;
    margin: 0 0 20px;
}

.NB-pricing-crosslinks-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 12px;
}

.NB-pricing-crosslink {
    display: flex;
    flex-direction: column;
    padding: 20px;
    border-radius: 10px;
    border: none;
    background: rgba(255, 255, 255, 0.35);
    text-decoration: none;
    transition: background 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.NB-pricing-crosslink:hover {
    background: rgba(255, 255, 255, 0.55);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.NB-pricing-crosslink-header {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin: 0 0 8px;
}

.NB-pricing-crosslink-name {
    font-family: 'Gotham Narrow A', 'Gotham Narrow B', sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: #2d261a;
}

.NB-pricing-crosslink-price {
    font-size: 14px;
    font-weight: 600;
    color: #8a6d1b;
}

.NB-pricing-crosslink-desc {
    font-size: 14px;
    color: rgba(45, 38, 26, 0.6);
    line-height: 1.5;
    flex: 1;
}

.NB-pricing-crosslink-arrow {
    font-family: 'Gotham Narrow A', 'Gotham Narrow B', sans-serif;
    font-size: 13px;
    font-weight: 600;
    margin-top: 12px;
    transition: color 0.15s ease;
}

/* Tier-specific accent colors on crosslink cards */
.NB-pricing-crosslink-premium .NB-pricing-crosslink-arrow {
    color: #1a8a42;
}

.NB-pricing-crosslink-archive .NB-pricing-crosslink-arrow {
    color: #0d8a7c;
}

.NB-pricing-crosslink-pro .NB-pricing-crosslink-arrow {
    color: #c05a0e;
}

/* Arrow animation on pricing CTA buttons and crosslink cards */
.NB-pricing-cta-arrow {
    display: inline-block;
    transition: transform 0.15s ease;
    margin-left: 2px;
}

.NB-pricing-cta:hover .NB-pricing-cta-arrow {
    transform: translateX(3px);
}

.NB-pricing-crosslink:hover .NB-pricing-crosslink-arrow {
    letter-spacing: 0.3px;
}

/* Current plan state - shown when viewing that plan's detail page */
.NB-pricing-crosslink-current {
    opacity: 0.5;
    cursor: default;
    border: 2px dashed rgba(45, 38, 26, 0.2);
    background: rgba(255, 255, 255, 0.15);
}

.NB-pricing-crosslink-current:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: none;
    box-shadow: none;
}

.NB-pricing-crosslink-current-label {
    font-family: 'Gotham Narrow A', 'Gotham Narrow B', sans-serif;
    font-size: 13px;
    font-weight: 600;
    margin-top: 12px;
    color: rgba(45, 38, 26, 0.4);
    font-style: italic;
}

/* Center CTA buttons in pricing tier cards on static page */
.NB-static-pricing .NB-pricing-tier-actions {
    text-align: center;
}

/* Responsive pricing crosslinks */
@media (max-width: 900px) {
    .NB-pricing-crosslinks-grid {
        grid-template-columns: 1fr;
    }
}

/* Responsive tier detail */
@media (max-width: 900px) {
    .NB-pricing-tier-detail-name {
        font-size: 28px;
    }
    .NB-pricing-tier-detail-feature {
        flex-direction: column;
    }
    .NB-pricing-tier-detail-feature-img {
        flex: none;
        width: 100%;
    }
}


/* ---- Pricing Page ---- */

.NB-static-pricing-hero {
    text-align: center;
    margin: 0 0 40px;
}

.NB-static-pricing-title {
    font-size: 42px;
    font-weight: 700;
    color: #2d261a;
    letter-spacing: -0.5px;
    margin: 0 0 12px;
}

.NB-static-pricing-subtitle {
    font-size: 17px;
    color: rgba(45, 38, 26, 0.65);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* ---- Pricing tier card overrides for dark static page background ---- */

/* Card background: light translucent on beige page */
.NB-static-pricing .NB-pricing-tier {
    background: rgba(255, 255, 255, 0.45);
    border-color: rgba(0, 0, 0, 0.08);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.NB-static-pricing .NB-pricing-tier:hover {
    background: rgba(255, 255, 255, 0.6);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* Tier headers: slightly muted gradients so they don't pop so much */
.NB-static-pricing .NB-pricing-tier-premium .NB-pricing-tier-header {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.8) 0%, rgba(22, 163, 74, 0.8) 100%);
}

.NB-static-pricing .NB-pricing-tier-archive .NB-pricing-tier-header {
    background: linear-gradient(135deg, rgba(20, 184, 166, 0.8) 0%, rgba(13, 148, 136, 0.8) 100%);
}

.NB-static-pricing .NB-pricing-tier-pro .NB-pricing-tier-header {
    background: linear-gradient(135deg, rgba(249, 115, 22, 0.85) 0%, rgba(234, 88, 12, 0.85) 100%);
}

.NB-static-pricing .NB-pricing-tier-free .NB-pricing-tier-header {
    background: linear-gradient(135deg, rgba(107, 114, 128, 0.7) 0%, rgba(75, 85, 99, 0.7) 100%);
}

.NB-static-pricing .NB-pricing-tier-selfhosted .NB-pricing-tier-header {
    background: linear-gradient(135deg, rgba(71, 85, 105, 0.7) 0%, rgba(51, 65, 85, 0.7) 100%);
}

/* Feature list text: dark text on light cards */
.NB-static-pricing .NB-pricing-tier-features li {
    color: rgba(45, 38, 26, 0.75);
}

.NB-static-pricing .NB-pricing-tier-features li.NB-pricing-tier-includes {
    color: rgba(45, 38, 26, 0.5);
}

/* Feature list backgrounds: transparent on dark cards */
.NB-static-pricing .NB-pricing-tier-premium .NB-pricing-tier-features,
.NB-static-pricing .NB-pricing-tier-archive .NB-pricing-tier-features,
.NB-static-pricing .NB-pricing-tier-pro .NB-pricing-tier-features {
    background: transparent;
}

.NB-static-pricing .NB-pricing-tier-free .NB-pricing-tier-features,
.NB-static-pricing .NB-pricing-tier-selfhosted .NB-pricing-tier-features {
    background: transparent;
}

.NB-static-pricing .NB-pricing-tier-free .NB-pricing-tier-features li,
.NB-static-pricing .NB-pricing-tier-selfhosted .NB-pricing-tier-features li {
    color: rgba(45, 38, 26, 0.7);
}

.NB-static-pricing .NB-pricing-tier-free .NB-pricing-tier-features li span,
.NB-static-pricing .NB-pricing-tier-selfhosted .NB-pricing-tier-features li span {
    color: rgba(45, 38, 26, 0.7);
}

/* Bullet icons: lighten for dark background */
.NB-static-pricing .NB-pricing-tier-free .NB-pricing-bullet,
.NB-static-pricing .NB-pricing-tier-selfhosted .NB-pricing-bullet {
    filter: invert(48%) sepia(79%) saturate(2476%) hue-rotate(86deg) brightness(120%) contrast(90%);
}

/* Actions bar: light treatment */
.NB-static-pricing .NB-pricing-tier-actions {
    background: rgba(0, 0, 0, 0.03);
    border-top-color: rgba(0, 0, 0, 0.06);
}

/* "Coming soon" header on light cards */
.NB-static-pricing .NB-pricing-tier-features li.NB-pricing-tier-upcoming-header {
    color: rgba(45, 38, 26, 0.4);
}

.NB-static-pricing .NB-pricing-tier-features li.NB-upcoming {
    color: rgba(45, 38, 26, 0.4);
}

/* GitHub button on light card */
.NB-static-pricing .NB-pricing-github-button {
    background: rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.NB-static-pricing .NB-pricing-github-button:hover {
    background: rgba(0, 0, 0, 0.1);
}

/* CTA buttons */
.NB-pricing-cta {
    display: inline-block;
    padding: 10px 24px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    transition: background-color 0.15s ease, color 0.15s ease, transform 0.1s ease;
    margin-top: 12px;
}

.NB-pricing-cta:active {
    transform: scale(0.96);
}

.NB-pricing-cta-premium {
    background: rgba(34, 197, 94, 0.7);
    color: white;
}

.NB-pricing-cta-premium:hover {
    background: rgba(34, 197, 94, 0.9);
}

.NB-pricing-cta-archive {
    background: rgba(20, 184, 166, 0.7);
    color: white;
}

.NB-pricing-cta-archive:hover {
    background: rgba(20, 184, 166, 0.9);
}

.NB-pricing-cta-pro {
    background: rgba(249, 115, 22, 0.8);
    color: white;
}

.NB-pricing-cta-pro:hover {
    background: rgba(249, 115, 22, 1);
}

.NB-pricing-cta-free {
    background: rgba(255, 255, 255, 0.4);
    color: rgba(45, 38, 26, 0.8);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.NB-pricing-cta-free:hover {
    background: rgba(255, 255, 255, 0.6);
    color: #2d261a;
}

.NB-pricing-cta-features {
    background: rgba(255, 255, 255, 0.35);
    color: rgba(45, 38, 26, 0.8);
    border: 1px solid rgba(0, 0, 0, 0.1);
    padding: 12px 32px;
    font-size: 16px;
}

.NB-pricing-cta-features:hover {
    background: rgba(255, 255, 255, 0.55);
    color: #2d261a;
}

/* Trial callout: light-friendly version */
.NB-static-pricing .NB-pricing-trial-callout {
    margin: 28px auto;
    background: rgba(16, 135, 90, 0.08);
    border-color: rgba(16, 135, 90, 0.2);
    color: rgba(16, 110, 75, 0.8);
}

.NB-static-pricing .NB-pricing-trial-callout strong {
    color: #0d7a50;
}

/* Features link */
.NB-pricing-features-link {
    text-align: center;
    margin: 24px 0 0;
}

/* Compare links on pricing page */
.NB-pricing-compare-links {
    text-align: center;
    margin: 20px 0 0;
    font-size: 14px;
}

.NB-pricing-compare-label {
    color: rgba(45, 38, 26, 0.45);
    margin-right: 6px;
}

.NB-pricing-compare-links a {
    color: #8a6d1b;
    text-decoration: none;
}

.NB-pricing-compare-links a:hover {
    color: #5a4710;
}

.NB-pricing-compare-sep {
    color: rgba(45, 38, 26, 0.25);
    margin: 0 6px;
}

/* ---- FAQ Section ---- */

.NB-pricing-faq {
    max-width: 750px;
    margin: 40px auto 0;
}

.NB-pricing-faq-title {
    font-size: 24px;
    font-weight: 700;
    color: #2d261a;
    text-align: center;
    margin: 0 0 20px;
}

.NB-pricing-faq-item {
    margin: 0 0 8px;
    padding: 14px 20px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.NB-pricing-faq-question {
    font-size: 15px;
    font-weight: 600;
    color: rgba(45, 38, 26, 0.9);
    margin: 0 0 4px;
    padding: 0;
}

h3.NB-pricing-faq-question {
    margin-top: 0;
}

.NB-pricing-faq-answer {
    font-size: 14px;
    color: rgba(45, 38, 26, 0.6);
    line-height: 1.55;
    margin: 0;
}

.NB-pricing-faq-answer a {
    color: #8a6d1b;
}

.NB-pricing-faq-answer a:hover {
    color: #5a4710;
}

/* ---- Features Page ---- */

.NB-static-features-hero {
    text-align: center;
    margin: 0 0 56px;
}

.NB-static-features-title {
    font-size: 42px;
    font-weight: 700;
    color: #2d261a;
    letter-spacing: -0.5px;
    margin: 0 0 12px;
}

.NB-static-features-subtitle {
    font-size: 17px;
    color: rgba(45, 38, 26, 0.65);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Feature section - alternating left-right layout */
.NB-feature-section {
    display: flex;
    align-items: center;
    gap: 48px;
    margin: 0 0 64px;
    padding: 40px;
    background: rgba(255, 255, 255, 0.25);
    border-radius: 16px;
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.NB-feature-section:nth-child(even) {
    flex-direction: row-reverse;
}

.NB-feature-section-text {
    flex: 1;
    min-width: 0;
}

.NB-feature-section-screenshot {
    flex: 1;
    min-width: 0;
}

.NB-feature-section-screenshot img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.1);
}

.NB-feature-section-screenshot .NB-feature-screenshot-placeholder {
    width: 100%;
    aspect-ratio: 16 / 10;
    background: rgba(0, 0, 0, 0.04);
    border-radius: 8px;
    border: 2px dashed rgba(0, 0, 0, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(45, 38, 26, 0.3);
    font-size: 14px;
}

.NB-feature-section-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0 0 12px;
}

.NB-feature-badge-free {
    background: rgba(0, 0, 0, 0.08);
    color: rgba(45, 38, 26, 0.6);
}

.NB-feature-badge-premium {
    background: rgba(26, 138, 66, 0.12);
    color: #1a7a3a;
}

.NB-feature-badge-archive {
    background: rgba(13, 138, 124, 0.12);
    color: #0d7a6e;
}

.NB-feature-badge-pro {
    background: rgba(192, 90, 14, 0.12);
    color: #a85010;
    border: 1px solid rgba(192, 90, 14, 0.2);
}

.NB-feature-section-name {
    font-size: 26px;
    font-weight: 700;
    color: #2d261a;
    margin: 0 0 12px;
    letter-spacing: -0.3px;
}

.NB-feature-section-description {
    font-size: 16px;
    color: rgba(45, 38, 26, 0.7);
    line-height: 1.7;
    margin: 0;
}

.NB-feature-section-links {
    display: flex;
    align-items: stretch;
    gap: 8px;
    margin-top: 16px;
    flex-wrap: wrap;
}

.NB-feature-section-links .NB-feature-section-blog,
.NB-feature-section-links .NB-feature-section-cta {
    margin-top: 0;
}

.NB-feature-section-cta {
    display: inline-flex;
    align-items: center;
    margin-top: 16px;
    padding: 7px 14px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.4);
    color: rgba(45, 38, 26, 0.7);
    border: 1px solid rgba(0, 0, 0, 0.1);
    transition: background-color 0.15s ease, color 0.15s ease;
}

.NB-feature-section-cta:hover {
    background: rgba(255, 255, 255, 0.6);
    color: #2d261a;
}

/* Blog post link */
.NB-feature-section-blog {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 16px;
    padding: 7px 14px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    background: rgba(138, 109, 27, 0.08);
    color: #8a6d1b;
    border: 1px solid rgba(138, 109, 27, 0.18);
    transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.NB-feature-section-blog:hover {
    background: rgba(138, 109, 27, 0.14);
    color: #6b5515;
    border-color: rgba(138, 109, 27, 0.28);
}

.NB-feature-blog-favicon {
    width: 14px;
    height: 14px;
    border-radius: 2px;
    flex-shrink: 0;
}

/* Compare NewsBlur cross-link section */
.NB-features-compare {
    margin: 56px auto 0;
    max-width: 700px;
}

.NB-features-compare-inner {
    background: rgba(255, 255, 255, 0.3);
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 14px;
    padding: 32px 36px 28px;
    backdrop-filter: blur(8px);
}

.NB-features-compare-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 0 0 24px;
}

.NB-features-compare-rule {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0, 0, 0, 0.12), transparent);
}

.NB-features-compare-title {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: rgba(45, 38, 26, 0.5);
    white-space: nowrap;
    margin: 0;
}

.NB-features-compare-links {
    display: flex;
    gap: 32px;
}

.NB-features-compare-group {
    flex: 1;
}

.NB-features-compare-group-label {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: rgba(45, 38, 26, 0.45);
    margin: 0 0 10px;
    padding: 0 0 0 12px;
}

.NB-features-compare-group-items {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.NB-compare-link-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    border-radius: 6px;
    text-decoration: none;
    color: rgba(45, 38, 26, 0.7);
    font-size: 14px;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.NB-compare-link-item:hover {
    background: rgba(255, 255, 255, 0.35);
    color: #2d261a;
}

.NB-compare-link-arrow {
    opacity: 0;
    transform: translateX(-6px);
    transition: opacity 0.15s ease, transform 0.15s ease;
    font-size: 13px;
    color: rgba(192, 90, 14, 0.7);
}

.NB-compare-link-item:hover .NB-compare-link-arrow {
    opacity: 1;
    transform: translateX(0);
}

@media (max-width: 600px) {
    .NB-features-compare-inner {
        padding: 24px 20px 20px;
    }
    .NB-features-compare-links {
        flex-direction: column;
        gap: 20px;
    }
}

.NB-features-bottom-cta {
    text-align: center;
    margin: 24px 0 0;
    padding: 40px;
}

.NB-features-bottom-cta-text {
    font-size: 22px;
    font-weight: 600;
    color: #2d261a;
    margin: 0 0 16px;
}

.NB-features-bottom-cta .NB-pricing-cta {
    margin: 0 8px;
}

/* ---- Compare Pages ---- */

.NB-static-compare-hero {
    text-align: center;
    margin: 0 0 48px;
}

.NB-static-compare-title {
    font-size: 38px;
    font-weight: 700;
    color: #2d261a;
    letter-spacing: -0.5px;
    margin: 0 0 12px;
}

.NB-static-compare-subtitle {
    font-size: 17px;
    color: rgba(45, 38, 26, 0.65);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Comparison table */
.NB-compare-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin: 0 0 48px;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.NB-compare-table th,
.NB-compare-table td {
    padding: 14px 20px;
    text-align: left;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.NB-compare-table thead th {
    background: rgba(255, 255, 255, 0.4);
    color: #2d261a;
    font-size: 15px;
    font-weight: 700;
}

.NB-compare-table thead th:first-child {
    width: 40%;
}

.NB-compare-table tbody td {
    color: rgba(45, 38, 26, 0.75);
    font-size: 14px;
    background: rgba(255, 255, 255, 0.2);
}

.NB-compare-table tbody tr:hover td {
    background: rgba(255, 255, 255, 0.35);
}

.NB-compare-table tbody td:first-child {
    font-weight: 600;
    color: rgba(45, 38, 26, 0.9);
}

.NB-compare-check {
    color: #10b981;
    font-weight: 700;
}

.NB-compare-x {
    color: rgba(45, 38, 26, 0.2);
}

/* Compare narrative sections */
.NB-compare-section {
    margin: 0 0 40px;
    padding: 32px;
    background: rgba(255, 255, 255, 0.25);
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.NB-compare-section-title {
    font-size: 22px;
    font-weight: 700;
    color: #2d261a;
    margin: 0 0 12px;
}

.NB-compare-section-text {
    font-size: 15px;
    color: rgba(45, 38, 26, 0.7);
    line-height: 1.7;
    margin: 0;
}

.NB-compare-bottom-cta {
    text-align: center;
    margin: 48px 0 0;
}

/* ---- About Page ---- */

/* Override old .NB-module styles from reader.css */
.NB-static-about .NB-module {
    display: none;
}

/* Hero */
.NB-about-hero {
    text-align: center;
    margin: 0 0 56px;
    padding: 0 24px;
}

.NB-about-hero-title {
    font-family: 'Chronicle Display A', 'Chronicle Display B', Georgia, serif;
    font-size: 36px;
    font-weight: 400;
    font-style: italic;
    color: rgba(45, 38, 26, 0.88);
    line-height: 1.35;
    max-width: 680px;
    margin: 0 auto;
    letter-spacing: -0.3px;
}

/* Sections */
.NB-about-section {
    margin: 0 0 56px;
}

.NB-about-section-title {
    font-family: 'Gotham Narrow A', 'Gotham Narrow B', sans-serif;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #D9A621;
    margin: 0 0 24px;
}

/* Why cards - 2x2 grid */
.NB-about-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.NB-about-card {
    padding: 28px 28px 24px;
    background: rgba(255, 255, 255, 0.25);
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.NB-about-card-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 10px;
}

.NB-about-card-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    display: block;
    align-self: center;
}

/* Per-card icon colors via hue-rotate on the base #95968E grey */
.NB-about-card:nth-child(1) .NB-about-card-icon { filter: brightness(1.4) sepia(1) saturate(3) hue-rotate(75deg); }   /* green */
.NB-about-card:nth-child(2) .NB-about-card-icon { filter: brightness(1.4) sepia(1) saturate(3) hue-rotate(180deg); }  /* blue */
.NB-about-card:nth-child(3) .NB-about-card-icon { filter: brightness(1.4) sepia(1) saturate(3) hue-rotate(5deg); }    /* gold */
.NB-about-card:nth-child(4) .NB-about-card-icon { filter: brightness(1.4) sepia(1) saturate(3) hue-rotate(240deg); }  /* purple */
.NB-about-card:nth-child(5) .NB-about-card-icon { filter: brightness(1.4) sepia(1) saturate(3) hue-rotate(140deg); }  /* teal */
.NB-about-card:nth-child(6) .NB-about-card-icon { filter: brightness(1.4) sepia(1) saturate(3) hue-rotate(330deg); }  /* orange */
.NB-about-card:nth-child(7) .NB-about-card-icon { filter: brightness(1.4) sepia(1) saturate(3) hue-rotate(200deg); }  /* sky blue */
.NB-about-card:nth-child(8) .NB-about-card-icon { filter: brightness(1.4) sepia(1) saturate(3) hue-rotate(290deg); }  /* pink */

/* Inline SVG icons: override filter with direct color */
.NB-about-card:nth-child(2) .NB-about-card-icon-inline {
    filter: none;
    color: #5b9bd5;
}

h3.NB-about-card-title {
    font-family: 'Gotham Narrow A', 'Gotham Narrow B', sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: #2d261a;
    margin: 0;
    padding: 0;
    line-height: 1;
}

.NB-about-card-text {
    font-size: 15px;
    color: rgba(45, 38, 26, 0.65);
    line-height: 1.6;
    margin: 0;
}

/* Team */
.NB-about-team {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}

.NB-about-person {
    flex: 1;
    min-width: 180px;
    text-align: center;
}

.NB-about-person-photo {
    width: 140px;
    height: 140px;
    object-fit: cover;
    border-radius: 10px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    margin: 0 0 12px;
}

.NB-about-person-name {
    font-family: 'Gotham Narrow A', 'Gotham Narrow B', sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: #2d261a;
    margin: 0 0 2px;
}

.NB-about-person-role {
    font-size: 13px;
    color: rgba(45, 38, 26, 0.45);
    margin: 0 0 8px;
}

.NB-about-person-links {
    display: flex;
    flex-direction: column;
    gap: 2px;
    align-items: center;
}

.NB-about-person-links a {
    font-size: 13px;
    color: rgba(45, 38, 26, 0.5);
    text-decoration: none;
    transition: color 0.15s ease;
}

.NB-about-person-links a:hover {
    color: #8a6d1b;
}

/* Timeline */
.NB-about-timeline {
    position: relative;
    padding-left: 80px;
}

.NB-about-timeline::before {
    content: '';
    position: absolute;
    left: 52px;
    top: 8px;
    bottom: 8px;
    width: 1px;
    background: linear-gradient(180deg, #D9A621 0%, rgba(217, 166, 33, 0.15) 100%);
}

.NB-about-timeline-item {
    position: relative;
    margin: 0 0 32px;
}

.NB-about-timeline-item:last-child {
    margin-bottom: 0;
}

.NB-about-timeline-item::before {
    content: '';
    position: absolute;
    left: -32px;
    top: 8px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #D9A621;
    box-shadow: 0 0 0 3px rgba(217, 166, 33, 0.2);
}

.NB-about-timeline-year {
    font-family: 'Gotham Narrow A', 'Gotham Narrow B', sans-serif;
    position: absolute;
    left: -76px;
    top: 2px;
    font-size: 14px;
    font-weight: 700;
    color: rgba(45, 38, 26, 0.4);
    letter-spacing: 0.5px;
    text-align: right;
    width: 36px;
}

.NB-about-timeline-content p {
    font-size: 15px;
    color: rgba(45, 38, 26, 0.65);
    line-height: 1.65;
    margin: 0;
}

/* Tech stack */
.NB-about-tech {
    display: flex;
    gap: 40px;
    flex-wrap: wrap;
}

.NB-about-tech-group {
    flex: 1;
    min-width: 200px;
}

.NB-about-tech-group-title {
    font-family: 'Gotham Narrow A', 'Gotham Narrow B', sans-serif;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(45, 38, 26, 0.4);
    margin: 0 0 12px;
}

.NB-about-tech-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.NB-about-tech-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    color: rgba(45, 38, 26, 0.65);
    background: rgba(255, 255, 255, 0.3);
    border: 1px solid rgba(0, 0, 0, 0.06);
    text-decoration: none;
    transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.NB-about-tech-pill:hover {
    background: rgba(255, 255, 255, 0.5);
    color: #2d261a;
    border-color: rgba(0, 0, 0, 0.12);
}

.NB-about-tech-pill-github {
    background: rgba(138, 109, 27, 0.1);
    color: #8a6d1b;
    border-color: rgba(138, 109, 27, 0.2);
}

.NB-about-tech-pill-github:hover {
    background: rgba(138, 109, 27, 0.12);
    color: #6b5515;
    border-color: rgba(138, 109, 27, 0.25);
}

.NB-about-github-icon {
    width: 14px;
    height: 14px;
    opacity: 0.6;
}

/* Legal */
.NB-about-section-legal {
    text-align: center;
    margin: 0 0 48px;
}

.NB-about-legal-link {
    font-size: 14px;
    color: rgba(45, 38, 26, 0.5);
    text-decoration: none;
    transition: color 0.15s ease;
}

.NB-about-legal-link:hover {
    color: #8a6d1b;
}

.NB-about-legal-sep {
    color: rgba(45, 38, 26, 0.2);
    margin: 0 12px;
}

/* Tagline */
.NB-about-tagline {
    text-align: center;
    margin: 0 0 24px;
}

.NB-about-tagline-text {
    font-family: 'Chronicle Display A', 'Chronicle Display B', Georgia, serif;
    font-size: 20px;
    font-style: italic;
    color: rgba(45, 38, 26, 0.5);
    margin: 0 0 16px;
}

.NB-about-tagline-img {
    width: 400px;
    max-width: 100%;
    border-radius: 8px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    opacity: 0.85;
    transition: opacity 0.2s ease;
}

.NB-about-tagline-img:hover {
    opacity: 1;
}

/* ---- FAQ Page ---- */

/* Hide old .NB-module markup on the FAQ page */
.NB-static-faq .NB-module {
    display: none;
}

.NB-faq-container {
    max-width: 900px;
    margin: 0 auto;
}

.NB-faq-hero {
    text-align: center;
    margin: 0 0 56px;
    padding: 0 24px;
}

.NB-faq-hero-title {
    font-family: 'Chronicle Display A', 'Chronicle Display B', Georgia, serif;
    font-size: 36px;
    font-weight: 400;
    font-style: italic;
    color: rgba(45, 38, 26, 0.88);
    line-height: 1.35;
    max-width: 680px;
    margin: 0 auto 12px;
    letter-spacing: -0.3px;
}

.NB-faq-hero-subtitle {
    font-size: 17px;
    color: rgba(45, 38, 26, 0.55);
    max-width: 540px;
    margin: 0 auto;
    line-height: 1.6;
}

.NB-faq-section {
    margin: 0 0 48px;
}

.NB-faq-items {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.NB-faq-item {
    padding: 20px 24px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 10px;
    border: 1px solid rgba(0, 0, 0, 0.06);
}

h3.NB-faq-question {
    font-family: 'Gotham Narrow A', 'Gotham Narrow B', sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: rgba(45, 38, 26, 0.9);
    margin: 0 0 8px;
    line-height: 1.35;
}

.NB-faq-answer {
    font-size: 15px;
    color: rgba(45, 38, 26, 0.6);
    line-height: 1.65;
    margin: 0;
}

.NB-faq-answer + .NB-faq-answer {
    margin-top: 8px;
}

.NB-faq-answer a {
    color: #8a6d1b;
    text-decoration: none;
    transition: color 0.15s ease;
}

.NB-faq-answer a:hover {
    color: #5a4710;
}

.NB-faq-answer code {
    background: rgba(0, 0, 0, 0.06);
    padding: 1px 6px;
    border-radius: 3px;
    font-size: 13px;
    color: rgba(45, 38, 26, 0.75);
}

.NB-faq-answer ul {
    margin: 8px 0 0;
    padding: 0 0 0 20px;
}

.NB-faq-answer li {
    margin: 0 0 4px;
    color: rgba(45, 38, 26, 0.6);
}

.NB-faq-bullet-icons {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin: 4px 0 0;
}

.NB-faq-bullet-icon {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    color: rgba(45, 38, 26, 0.6);
}

.NB-faq-bullet-icon img {
    width: 14px;
    height: 14px;
}

.NB-faq-tier-summary {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin: 12px 0 0;
}

a.NB-faq-tier {
    display: block;
    padding: 14px 18px;
    border-radius: 10px;
    border: 0;
    text-decoration: none;
    color: inherit;
    transition: background 0.2s ease, transform 0.15s ease;
    background: rgba(75, 85, 99, 0.07);
}

a.NB-faq-tier:hover {
    transform: translateY(-1px);
}

a.NB-faq-tier-free {
    background: rgba(75, 85, 99, 0.07);
}

a.NB-faq-tier-free:hover {
    background: rgba(75, 85, 99, 0.13);
}

a.NB-faq-tier-premium {
    background: rgba(22, 163, 74, 0.08);
}

a.NB-faq-tier-premium:hover {
    background: rgba(22, 163, 74, 0.15);
}

a.NB-faq-tier-archive {
    background: rgba(13, 148, 136, 0.09);
}

a.NB-faq-tier-archive:hover {
    background: rgba(13, 148, 136, 0.16);
}

a.NB-faq-tier-pro {
    background: rgba(234, 88, 12, 0.08);
}

a.NB-faq-tier-pro:hover {
    background: rgba(234, 88, 12, 0.16);
}

.NB-faq-tier-name {
    font-family: 'Gotham Narrow A', 'Gotham Narrow B', sans-serif;
    font-size: 13px;
    font-weight: 700;
    margin: 0 0 4px;
    transition: color 0.2s;
}

/* Distinct tier title colors - light mode */
.NB-faq-tier-free .NB-faq-tier-name {
    color: rgba(75, 85, 99, 0.9);
}
.NB-faq-tier-premium .NB-faq-tier-name {
    color: rgba(22, 163, 74, 0.9);
}
.NB-faq-tier-archive .NB-faq-tier-name {
    color: rgba(13, 148, 136, 0.9);
}
.NB-faq-tier-pro .NB-faq-tier-name {
    color: rgba(234, 88, 12, 0.9);
}

/* Tier title hover colors - light mode */
a.NB-faq-tier-free:hover .NB-faq-tier-name {
    color: rgba(55, 65, 81, 1);
}
a.NB-faq-tier-premium:hover .NB-faq-tier-name {
    color: rgba(22, 163, 74, 1);
}
a.NB-faq-tier-archive:hover .NB-faq-tier-name {
    color: rgba(13, 148, 136, 1);
}
a.NB-faq-tier-pro:hover .NB-faq-tier-name {
    color: rgba(234, 88, 12, 1);
}

.NB-faq-tier-desc {
    font-size: 13px;
    color: rgba(45, 38, 26, 0.5);
    line-height: 1.5;
    margin: 0;
}

.NB-faq-feature-image {
    margin: 16px 0 0;
    padding: 0;
    text-align: center;
}

.NB-faq-feature-image img {
    display: inline-block;
    /* 2x retina screenshots are marked with srcset="... 2x" so the browser
       renders them at their intrinsic half size. 1x images render natively. */
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    border: 1px solid rgba(45, 38, 26, 0.1);
    box-shadow: 0 4px 12px -6px rgba(45, 38, 26, 0.2);
}

.NB-faq-item-links {
    margin: 16px 0 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    font-family: 'Gotham Narrow A', 'Gotham Narrow B', sans-serif;
}

a.NB-faq-button {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    line-height: 1;
    border: 1px solid transparent;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.1s ease;
}

a.NB-faq-button:active {
    transform: translateY(1px);
}

a.NB-faq-button-primary {
    background: #f5e8c2;
    border-color: rgba(138, 109, 27, 0.25);
    color: #6b5110;
}

a.NB-faq-button-primary:hover {
    background: #ecd896;
    border-color: rgba(138, 109, 27, 0.5);
    color: #4a3a0a;
}

a.NB-faq-button-secondary {
    background: rgba(255, 255, 255, 0.6);
    border-color: rgba(45, 38, 26, 0.12);
    color: rgba(45, 38, 26, 0.7);
}

a.NB-faq-button-secondary:hover {
    background: #fff;
    border-color: rgba(45, 38, 26, 0.2);
    color: rgba(45, 38, 26, 0.95);
}

.NB-faq-blog-icon {
    display: inline-block;
    width: 14px;
    height: 14px;
    background: url(/media/img/favicon.png) no-repeat center center;
    background-size: contain;
    flex-shrink: 0;
}

.NB-faq-bullet-list {
    list-style: none;
    padding: 0;
    margin: 4px 0 0;
}

.NB-faq-bullet-list li {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 2px 0;
    color: rgba(45, 38, 26, 0.6);
}

.NB-faq-bullet-list li img {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

.NB-faq-loading {
    text-align: center;
    padding: 60px 20px;
    color: rgba(45, 38, 26, 0.4);
    font-size: 15px;
}

.NB-faq-error {
    text-align: center;
    padding: 60px 20px;
    color: rgba(160, 50, 50, 0.7);
    font-size: 15px;
}

.NB-faq-bottom-cta {
    text-align: center;
    margin: 24px 0 0;
    padding: 40px;
}

.NB-faq-bottom-cta-text {
    font-size: 22px;
    font-weight: 600;
    color: #2d261a;
    margin: 0 0 8px;
}

.NB-faq-bottom-cta-subtext {
    font-size: 15px;
    color: rgba(45, 38, 26, 0.5);
    margin: 0 0 20px;
}

.NB-faq-bottom-cta .NB-pricing-cta {
    margin: 0 8px;
}

/* ---- API Page ---- */

.NB-api-container {
    max-width: 900px;
    margin: 0 auto;
}

.NB-api-hero {
    text-align: center;
    margin: 0 0 48px;
    padding: 0 24px;
}

.NB-api-hero-title {
    font-size: 42px;
    font-weight: 700;
    color: #2d261a;
    letter-spacing: -0.5px;
    margin: 0 0 12px;
}

.NB-api-hero-subtitle {
    font-size: 17px;
    color: rgba(45, 38, 26, 0.6);
    line-height: 1.6;
    margin: 0;
}

.NB-api-section {
    margin: 0 0 40px;
    padding: 32px;
    background: rgba(255, 255, 255, 0.25);
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.NB-api-section-title {
    font-family: 'Gotham Narrow A', 'Gotham Narrow B', sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: #2d261a;
    margin: 0 0 16px;
    padding: 0 0 12px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.NB-api-section-content p {
    font-size: 15px;
    color: rgba(45, 38, 26, 0.7);
    line-height: 1.7;
    margin: 0 0 12px;
}

.NB-api-section-content p:last-child {
    margin-bottom: 0;
}

.NB-api-section-content a {
    color: #8a6d1b;
    text-decoration: none;
    transition: color 0.15s ease;
}

.NB-api-section-content a:hover {
    color: #5a4710;
}

.NB-api-section-content code {
    font-size: 13px;
    padding: 2px 6px;
    background: rgba(0, 0, 0, 0.06);
    border-radius: 4px;
    color: rgba(45, 38, 26, 0.85);
}

.NB-api-section-content h3 {
    font-size: 16px;
    font-weight: 700;
    color: rgba(45, 38, 26, 0.9);
    margin: 32px 0 8px;
    padding: 16px 0 0;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.NB-api-section-content h3:first-child {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
}

.NB-api-section-content h3 tt {
    font-size: 15px;
}

.NB-api-section-content h4 {
    font-size: 14px;
    font-weight: 600;
    color: rgba(45, 38, 26, 0.7);
    margin: 16px 0 8px;
}

.NB-api-section-content ul {
    margin: 8px 0 12px 0;
    padding-left: 20px;
}

.NB-api-section-content li {
    font-size: 14px;
    color: rgba(45, 38, 26, 0.65);
    line-height: 1.6;
    margin: 0 0 6px;
}

/* TOC */
.NB-static-api .NB-api-toc-header {
    font-family: 'Gotham Narrow A', 'Gotham Narrow B', sans-serif;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #D9A621;
    margin: 20px 0 8px;
    padding: 0;
    border: none;
    background: none;
}

.NB-static-api .NB-api-toc-header:first-child {
    margin-top: 0;
}

.NB-static-api .NB-api-toc {
    list-style: none;
    margin: 0 0 0 0;
    padding: 0;
}

.NB-static-api .NB-api-toc li {
    display: flex;
    align-items: baseline;
    gap: 12px;
    margin: 0 0 6px;
    padding: 6px 8px;
    border-radius: 6px;
    transition: background 0.15s ease;
}

.NB-static-api .NB-api-toc li:hover {
    background: rgba(255, 255, 255, 0.3);
}

.NB-static-api .NB-api-toc a {
    font-size: 14px;
    color: rgba(45, 38, 26, 0.8);
    text-decoration: none;
    width: auto;
    flex-shrink: 0;
}

.NB-static-api .NB-api-toc a:hover {
    color: #8a6d1b;
}

.NB-static-api .NB-api-toc a code {
    font-size: 13px;
    padding: 1px 5px;
    background: rgba(0, 0, 0, 0.06);
    border-radius: 3px;
}

.NB-static-api .NB-api-toc .NB-api-link-desc {
    font-size: 13px;
    color: rgba(45, 38, 26, 0.4);
    text-align: right;
    flex: 1;
    float: none;
    width: auto;
    margin: 0;
    padding: 0;
}

/* Param tables */
.NB-static-api .NB-api-section-content table {
    width: 100%;
    border-spacing: 0;
    margin: 16px 0 12px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.08);
    background: rgba(255, 255, 255, 0.2);
}

.NB-static-api .NB-api-section-content table th {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: rgba(45, 38, 26, 0.6);
    background: rgba(255, 255, 255, 0.3);
    padding: 8px 12px;
    text-align: left;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    border-right: none;
}

.NB-static-api .NB-api-section-content table td {
    font-size: 14px;
    color: rgba(45, 38, 26, 0.7);
    padding: 8px 12px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
    border-right: none;
    white-space: normal;
    vertical-align: top;
}

.NB-static-api .NB-api-section-content table td:first-child {
    font-weight: 600;
    color: rgba(45, 38, 26, 0.85);
    white-space: nowrap;
}

.NB-static-api .NB-api-section-content table tr:last-child td {
    border-bottom: none;
}

/* Badges */
.NB-static-api .optional,
.NB-static-api .required {
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    padding: 2px 6px;
    border-radius: 3px;
    margin-right: 6px;
}

.NB-static-api .optional {
    background: rgba(152, 200, 146, 0.2);
    border: 1px solid rgba(152, 200, 146, 0.3);
    color: rgba(152, 200, 146, 0.9);
}

.NB-static-api .required {
    background: rgba(217, 144, 15, 0.15);
    border: 1px solid rgba(217, 144, 15, 0.35);
    color: #996b0a;
}

/* Anchor links */
.NB-static-api .NB-anchor {
    position: relative;
    top: -100px;
    display: block;
}

.NB-static-api .NB-api-endpoint-param-desc {
    width: 100%;
    white-space: normal;
}

/* ---- Forgot Password Page ---- */

.NB-forgot-password-container {
    max-width: 480px;
    margin: 0 auto;
}

.NB-forgot-password-hero {
    text-align: center;
    margin: 0 0 40px;
}

.NB-forgot-password-title {
    font-size: 36px;
    font-weight: 700;
    color: #2d261a;
    letter-spacing: -0.5px;
    margin: 0 0 12px;
}

.NB-forgot-password-subtitle {
    font-size: 16px;
    color: rgba(45, 38, 26, 0.6);
    line-height: 1.6;
    margin: 0;
}

.NB-forgot-password-card {
    background: rgba(255, 255, 255, 0.4);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 12px;
    padding: 36px 40px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.NB-forgot-password-field {
    margin: 0 0 24px;
}

.NB-forgot-password-field label {
    display: block;
    font-family: 'Gotham Narrow A', 'Gotham Narrow B', sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: rgba(45, 38, 26, 0.7);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0 0 8px;
}

.NB-forgot-password-field input[type="text"],
.NB-forgot-password-field input[type="email"],
.NB-forgot-password-field input[type="password"] {
    width: 100%;
    padding: 12px 16px;
    font-size: 16px;
    color: #2d261a;
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: 8px;
    outline: none;
    box-sizing: border-box;
    transition: border-color 0.15s ease, background 0.15s ease;
}

.NB-forgot-password-field input:focus {
    border-color: rgba(138, 109, 27, 0.5);
    background: rgba(255, 255, 255, 0.7);
}

.NB-forgot-password-field input::placeholder {
    color: rgba(45, 38, 26, 0.3);
}

.NB-forgot-password-errors {
    margin: 0 0 20px;
    padding: 12px 16px;
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(239, 68, 68, 0.25);
    border-radius: 8px;
    font-size: 14px;
    color: rgba(252, 165, 165, 0.9);
    line-height: 1.5;
}

.NB-forgot-password-errors ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.NB-forgot-password-submit {
    display: block;
    width: 100%;
    padding: 14px 24px;
    font-family: 'Gotham Narrow A', 'Gotham Narrow B', sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: white;
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.8) 0%, rgba(22, 163, 74, 0.8) 100%);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-image 0.15s ease, box-shadow 0.15s ease, transform 0.1s ease;
    letter-spacing: 0.2px;
}

.NB-forgot-password-submit:hover {
    background: linear-gradient(135deg, rgba(34, 197, 94, 1) 0%, rgba(22, 163, 74, 1) 100%);
    box-shadow: 0 4px 16px rgba(34, 197, 94, 0.3);
}

.NB-forgot-password-submit:active {
    transform: scale(0.96);
}

.NB-forgot-password-back {
    text-align: center;
    margin: 24px 0 0;
}

.NB-forgot-password-back a {
    font-size: 14px;
    color: rgba(45, 38, 26, 0.4);
    text-decoration: none;
    transition: color 0.15s ease;
}

.NB-forgot-password-back a:hover {
    color: #8a6d1b;
}

/* ---- Responsive ---- */

@media (max-width: 900px) {
    .NB-static-pricing .NB-body-inner,
    .NB-static-features .NB-body-inner,
    .NB-static-compare .NB-body-inner,
    .NB-static-about .NB-body-inner,
    .NB-static-contact .NB-body-inner,
    .NB-static-faq .NB-body-inner,
    .NB-static-api .NB-body-inner,
    .NB-static-forgot-password .NB-body-inner {
        padding: 70px 16px 32px;
    }

    .NB-api-hero-title {
        font-size: 30px;
    }

    .NB-api-section {
        padding: 20px;
    }

    .NB-static-pricing-title,
    .NB-static-features-title,
    .NB-static-compare-title {
        font-size: 30px;
    }

    .NB-about-hero-title,
    .NB-faq-hero-title {
        font-size: 26px;
    }

    .NB-static .NB-splash-info.NB-splash-top,
    .NB-welcome .NB-splash-info.NB-splash-top {
        height: auto;
        padding: 0;
    }

    /* Hide page title on mobile to save space */
    .NB-splash-top-title {
        display: none;
    }

    /* Nav: links left, toggle right */
    .NB-static .NB-splash-top-nav,
    .NB-welcome .NB-splash-top-nav {
        gap: 4px;
        padding: 6px 10px;
        height: auto;
        justify-content: flex-start;
    }

    .NB-static .NB-splash-top-links,
    .NB-welcome .NB-splash-top-links {
        gap: 2px;
    }

    .NB-static .NB-splash-top-link a,
    .NB-welcome .NB-splash-top-link a {
        font-size: 12px;
        padding: 4px 6px;
        letter-spacing: 0;
        line-height: 16px;
    }

    /* Hide dropdown arrows on mobile since dropdowns are hidden */
    .NB-splash-nav-has-dropdown > a::after {
        display: none;
    }

    /* Push toggle to the right */
    .NB-static .NB-splash-top-logo,
    .NB-welcome .NB-splash-top-logo {
        position: static;
        flex: 1;
        gap: 8px;
        height: auto;
        align-items: center;
    }

    .NB-static .NB-splash-top-links,
    .NB-welcome .NB-splash-top-links,
    .NB-static .NB-splash-top-logo,
    .NB-welcome .NB-splash-top-logo,
    .NB-theme-toggle {
        align-self: center;
    }

    /* Hide the NewsBlur text logo on mobile */
    .NB-static .NB-splash-top-logo .NB-splash-blurred-logo {
        display: none;
    }

    /* Shrink theme toggle */
    .NB-theme-toggle {
        gap: 4px;
        margin-top: -1px;
    }

    .NB-theme-toggle-sun,
    .NB-theme-toggle-moon {
        font-size: 11px;
    }

    .NB-theme-toggle-track {
        width: 28px;
        height: 16px;
    }

    .NB-theme-toggle-thumb {
        width: 11px;
        height: 11px;
        top: 1.5px;
        left: 1.5px;
    }

    body.NB-dark .NB-theme-toggle-thumb {
        transform: translateX(12px);
    }

    .NB-feature-section {
        flex-direction: column !important;
        gap: 24px;
        padding: 24px;
    }

    .NB-about-cards {
        grid-template-columns: 1fr;
    }

    .NB-about-team {
        flex-wrap: wrap;
        justify-content: center;
    }

    .NB-about-person {
        min-width: 140px;
        flex: 0 1 auto;
    }

    .NB-about-timeline {
        padding-left: 64px;
    }

    .NB-about-timeline::before {
        left: 40px;
    }

    .NB-about-timeline-year {
        left: -60px;
    }

    .NB-about-tech {
        flex-direction: column;
        gap: 24px;
    }

    .NB-compare-table {
        font-size: 13px;
    }

    .NB-compare-table th,
    .NB-compare-table td {
        padding: 10px 12px;
    }

    .NB-faq-item {
        padding: 16px 18px;
    }

    .NB-faq-tier-summary {
        grid-template-columns: 1fr;
    }

    .NB-forgot-password-title {
        font-size: 28px;
    }

    .NB-forgot-password-card {
        padding: 28px 24px;
    }

    /* NewsBlur branding above page title on mobile */
    .NB-static .NB-mobile-logo-link {
        display: block;
        text-align: center;
        margin: -48px auto 8px;
    }

    .NB-static .NB-mobile-logo {
        width: 146px;
        height: 28px;
        margin: 0 auto;
        background: url(/media/embed/logo_newsblur_blur.png) no-repeat center center;
        background-size: contain;
    }

    /* Hide tier badges on feature detail pages */
    .NB-feature-section-badge {
        display: none;
    }

    body.NB-dark.NB-static .NB-mobile-logo {
        background-image: url(/media/embed/logo_newsblur_blur_dark.png);
    }
}

/* ---- Theme Toggle ---- */

.NB-theme-toggle {
    display: none;
}

.NB-static .NB-theme-toggle,
.NB-welcome .NB-theme-toggle {
    display: flex;
    align-items: center;
    gap: 7px;
    flex-shrink: 0;
    cursor: pointer;
}

.NB-theme-toggle-sun,
.NB-theme-toggle-moon {
    color: rgba(0, 0, 0, 0.2);
    transition: color 0.3s ease;
    flex-shrink: 0;
    display: block;
}

/* Active sun icon in light mode */
body:not(.NB-dark) .NB-theme-toggle-sun {
    color: #b8960a;
}

/* Dark mode: dim icons use white */
body.NB-dark .NB-theme-toggle-sun,
body.NB-dark .NB-theme-toggle-moon {
    color: rgba(255, 255, 255, 0.25);
}

/* Active moon icon in dark mode */
body.NB-dark .NB-theme-toggle-moon {
    color: #8bb8d8;
}

.NB-theme-toggle-track {
    position: relative;
    width: 36px;
    height: 20px;
    border-radius: 10px;
    border: 1px solid rgba(0, 0, 0, 0.15);
    background: rgba(0, 0, 0, 0.08);
    cursor: pointer;
    padding: 0;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
    transition: background 0.2s ease, border-color 0.2s ease;
    flex-shrink: 0;
}

.NB-theme-toggle-track:hover {
    background: rgba(0, 0, 0, 0.12);
    border-color: rgba(0, 0, 0, 0.25);
}

/* Dark mode: revert toggle track to white-based */
body.NB-dark .NB-theme-toggle-track {
    border-color: rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.08);
}

body.NB-dark .NB-theme-toggle-track:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
}

.NB-theme-toggle-track:focus-visible {
    border-color: #FBDB9B;
    box-shadow: 0 0 0 2px rgba(251, 219, 155, 0.3);
}

.NB-theme-toggle-thumb {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #555;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                background-color 0.3s ease;
    display: block;
}

/* Dark mode: slide thumb right, shift color cool */
body.NB-dark .NB-theme-toggle-thumb {
    transform: translateX(16px);
    background: #8bb8d8;
}

/* ---- Dark mode overrides ---- */

/* Transitions on base selectors so they animate in BOTH directions.
   Gradients can't be transitioned, so we split into:
   - background-color: solid base color that transitions smoothly
   - background-image: subtle semi-transparent gradient overlay (snaps but unnoticeable) */
body.NB-static {
    background-color: #ebe0c2;
    background-image: linear-gradient(180deg,
        rgba(255,255,255,0.07) 0%,
        rgba(255,255,255,0.03) 20%,
        transparent 40%,
        rgba(0,0,0,0.02) 60%,
        rgba(0,0,0,0.04) 80%,
        rgba(0,0,0,0.06) 100%);
    transition: background-color 0.4s ease, color 0.4s ease;
}

body.NB-static h1,
body.NB-static h2,
body.NB-static h3,
body.NB-static h4 {
    transition: color 0.4s ease;
}

body.NB-static a {
    transition: color 0.3s ease;
}

/* Light mode: frosted glass header/footer */
body.NB-static:not(.NB-dark) .NB-splash-info {
    background-color: rgba(255, 255, 255, 0.35);
    backdrop-filter: blur(12px);
    border-bottom-color: rgba(0, 0, 0, 0.08);
}

body.NB-static:not(.NB-dark) .NB-splash-info.NB-splash-bottom {
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(12px);
    border-top-color: rgba(0, 0, 0, 0.08);
}

/* Light mode: dark footer link text on frosted glass */
body.NB-static:not(.NB-dark) .NB-splash-info .NB-splash-links .NB-splash-link a {
    color: rgba(45, 38, 26, 0.55);
}

body.NB-static:not(.NB-dark) .NB-splash-info .NB-splash-links .NB-splash-link a:hover {
    color: #2d261a;
}

body.NB-static:not(.NB-dark) .NB-splash-info .NB-splash-links .NB-splash-link.NB-active a {
    color: #2d261a;
}

body.NB-static:not(.NB-dark) .NB-splash-info .NB-splash-links .NB-splash-link.NB-active a:hover {
    color: #000;
}

/* Dark mode: teal header/footer */
body.NB-dark.NB-static .NB-splash-info {
    background-color: rgba(72, 132, 128, 0.88);
    border-bottom-color: rgba(255, 255, 255, 0.15);
}

/* Dark mode: restore light nav links on teal header */
body.NB-dark .NB-splash-top-link a {
    color: rgba(255, 255, 255, 0.5);
}

body.NB-dark .NB-splash-top-link a:hover {
    color: #FBDB9B;
    background: rgba(255, 255, 255, 0.06);
}

body.NB-dark.NB-static-features .NB-splash-top-link-features > a,
body.NB-dark.NB-static-pricing .NB-splash-top-link-pricing > a,
body.NB-dark.NB-static-about .NB-splash-top-link-about > a,
body.NB-dark.NB-static-faq .NB-splash-top-link-faq > a,
body.NB-dark.NB-static-compare .NB-splash-top-link-features > a {
    color: #FBDB9B;
    border-color: rgba(251, 219, 155, 0.3);
}

body.NB-dark.NB-static .NB-splash-info.NB-splash-bottom {
    background: rgba(72, 132, 128, 0.9);
    border-top-color: rgba(255, 255, 255, 0.15);
}

/* Dark mode: teal background for static and welcome pages */
body.NB-dark.NB-static,
body.NB-dark.NB-welcome,
body.NB-dark.NB-welcome #NB-splash {
    background-color: #2a524e;
    background-image: linear-gradient(180deg,
        rgba(255,255,255,0.04) 0%,
        rgba(255,255,255,0.02) 20%,
        transparent 40%,
        rgba(0,0,0,0.02) 60%,
        rgba(0,0,0,0.04) 80%,
        rgba(0,0,0,0.06) 100%);
    color: #c0c0c0;
}

body.NB-dark.NB-static h1,
body.NB-dark.NB-static h2,
body.NB-dark.NB-static h3,
body.NB-dark.NB-static h4 {
    color: #e0e0e0;
}

body.NB-dark.NB-static a {
    color: #FBDB9B;
}

body.NB-dark.NB-static a:hover {
    color: #fce8b8;
}

/* Dark mode: dark frosted glass dropdowns */
.NB-dark .NB-splash-dropdown-inner {
    background: rgba(16, 20, 28, 0.95);
    border-color: rgba(255, 255, 255, 0.12);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.05);
}

.NB-dark .NB-splash-dropdown-heading {
    color: rgba(255, 255, 255, 0.35);
}

.NB-dark .NB-splash-dropdown-heading-link {
    color: rgba(251, 219, 155, 0.6);
}

.NB-dark .NB-splash-dropdown-heading-link:hover {
    color: #FBDB9B;
}

.NB-dark .NB-splash-dropdown-item:hover {
    background: rgba(255, 255, 255, 0.06);
}

.NB-dark .NB-splash-dropdown-item-name {
    color: rgba(255, 255, 255, 0.9);
}

.NB-dark .NB-splash-dropdown-item:hover .NB-splash-dropdown-item-name {
    color: white;
}

.NB-dark .NB-splash-dropdown-item-desc {
    color: rgba(255, 255, 255, 0.4);
}

.NB-dark .NB-splash-dropdown-price {
    color: #FBDB9B;
}

.NB-dark .NB-splash-dropdown-divider {
    background: rgba(255, 255, 255, 0.08);
}

.NB-dark .NB-splash-dropdown-grid-item {
    color: rgba(255, 255, 255, 0.55);
}

.NB-dark .NB-splash-dropdown-grid-item:hover {
    color: #FBDB9B;
    background: rgba(255, 255, 255, 0.04);
}

body.NB-dark.NB-static-feature-training .NB-splash-dropdown-item-training,
body.NB-dark.NB-static-feature-ask-ai .NB-splash-dropdown-item-ask-ai,
body.NB-dark.NB-static-feature-web-feeds .NB-splash-dropdown-item-web-feeds,
body.NB-dark.NB-static-feature-newsletters .NB-splash-dropdown-item-newsletters,
body.NB-dark.NB-static-feature-search .NB-splash-dropdown-item-search,
body.NB-dark.NB-static-feature-archive .NB-splash-dropdown-item-archive,
body.NB-dark.NB-static-feature-saved .NB-splash-dropdown-item-saved,
body.NB-dark.NB-static-feature-native-apps .NB-splash-dropdown-item-native-apps {
    background: rgba(255, 255, 255, 0.06);
}

body.NB-dark.NB-static-feature-training .NB-splash-dropdown-item-training .NB-splash-dropdown-item-name,
body.NB-dark.NB-static-feature-ask-ai .NB-splash-dropdown-item-ask-ai .NB-splash-dropdown-item-name,
body.NB-dark.NB-static-feature-web-feeds .NB-splash-dropdown-item-web-feeds .NB-splash-dropdown-item-name,
body.NB-dark.NB-static-feature-newsletters .NB-splash-dropdown-item-newsletters .NB-splash-dropdown-item-name,
body.NB-dark.NB-static-feature-search .NB-splash-dropdown-item-search .NB-splash-dropdown-item-name,
body.NB-dark.NB-static-feature-archive .NB-splash-dropdown-item-archive .NB-splash-dropdown-item-name,
body.NB-dark.NB-static-feature-saved .NB-splash-dropdown-item-saved .NB-splash-dropdown-item-name,
body.NB-dark.NB-static-feature-native-apps .NB-splash-dropdown-item-native-apps .NB-splash-dropdown-item-name {
    color: #FBDB9B;
}

body.NB-dark.NB-static-compare-feedly .NB-splash-dropdown-grid-item-compare-feedly,
body.NB-dark.NB-static-compare-inoreader .NB-splash-dropdown-grid-item-compare-inoreader,
body.NB-dark.NB-static-compare-readwise .NB-splash-dropdown-grid-item-compare-readwise,
body.NB-dark.NB-static-compare-old-reader .NB-splash-dropdown-grid-item-compare-old-reader,
body.NB-dark.NB-static-compare-feedbin .NB-splash-dropdown-grid-item-compare-feedbin,
body.NB-dark.NB-static-alt-feedly .NB-splash-dropdown-grid-item-alt-feedly,
body.NB-dark.NB-static-alt-google-reader .NB-splash-dropdown-grid-item-alt-google-reader,
body.NB-dark.NB-static-alt-open-source .NB-splash-dropdown-grid-item-alt-open-source,
body.NB-dark.NB-static-alt-inoreader .NB-splash-dropdown-grid-item-alt-inoreader,
body.NB-dark.NB-static-alt-self-hosted .NB-splash-dropdown-grid-item-alt-self-hosted {
    color: #FBDB9B !important;
    background: rgba(251, 219, 155, 0.1);
}

.NB-dark .NB-feature-section {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.05);
}

.NB-dark .NB-static-features-title {
    color: rgba(255, 255, 255, 0.95);
}

.NB-dark .NB-static-features-subtitle {
    color: rgba(255, 255, 255, 0.55);
}

.NB-dark .NB-feature-section-name {
    color: rgba(255, 255, 255, 0.9);
}

.NB-dark .NB-feature-section-description {
    color: rgba(255, 255, 255, 0.6);
}

.NB-dark .NB-feature-section-blog {
    color: #FBDB9B;
    background: rgba(251, 219, 155, 0.08);
    border-color: rgba(251, 219, 155, 0.15);
}

.NB-dark .NB-feature-section-blog:hover {
    color: #fce8b8;
    background: rgba(251, 219, 155, 0.14);
    border-color: rgba(251, 219, 155, 0.25);
}

.NB-dark .NB-feature-badge-free {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
}

.NB-dark .NB-feature-badge-premium {
    background: rgba(64, 107, 108, 0.3);
    color: #7cc5c6;
}

.NB-dark .NB-feature-badge-archive {
    background: rgba(217, 119, 6, 0.2);
    color: #fbbf24;
}

.NB-dark .NB-feature-badge-pro {
    background: rgba(217, 119, 6, 0.35);
    color: #fcd34d;
    border-color: rgba(217, 119, 6, 0.4);
}

.NB-dark .NB-features-compare-inner {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.08);
}

.NB-dark .NB-features-compare-title {
    color: rgba(255, 255, 255, 0.5);
}

.NB-dark .NB-features-compare-rule {
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.12), transparent);
}

.NB-dark .NB-features-compare-group-label {
    color: rgba(255, 255, 255, 0.4);
}

/* Feature detail pages - dark mode */
.NB-dark .NB-feature-detail-title {
    color: rgba(255, 255, 255, 0.95);
}

.NB-dark .NB-feature-detail-subtitle {
    color: rgba(255, 255, 255, 0.55);
}

.NB-dark .NB-feature-detail-caption {
    color: rgba(255, 255, 255, 0.4);
}

.NB-dark .NB-feature-detail-how h2,
.NB-dark .NB-feature-detail-faq h2 {
    color: rgba(255, 255, 255, 0.9);
}

.NB-dark .NB-feature-detail-step {
    color: rgba(255, 255, 255, 0.7);
    border-bottom-color: rgba(255, 255, 255, 0.06);
}

.NB-dark .NB-feature-detail-step::before {
    background: rgba(251, 219, 155, 0.15);
    color: #FBDB9B;
}

.NB-dark .NB-feature-detail-faq-item {
    border-bottom-color: rgba(255, 255, 255, 0.06);
}

.NB-dark .NB-feature-detail-faq-q {
    color: rgba(255, 255, 255, 0.85);
}

.NB-dark .NB-feature-detail-faq-a {
    color: rgba(255, 255, 255, 0.5);
}

.NB-dark .NB-feature-detail-cta-primary {
    background: linear-gradient(135deg, #FBDB9B 0%, #f0c96e 100%);
    color: #2a2a1e !important;
}

.NB-dark .NB-feature-detail-cta-primary:hover {
    background: linear-gradient(135deg, #fce5b5 0%, #f5d580 100%);
    color: #2a2a1e !important;
}

.NB-dark .NB-feature-detail-cta-secondary {
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.8);
}

.NB-dark .NB-feature-detail-cta-secondary:hover {
    background: rgba(255, 255, 255, 0.14);
    color: rgba(255, 255, 255, 0.95);
}

/* Crosslinks - dark mode */
.NB-dark .NB-feature-detail-crosslinks h2 {
    color: rgba(255, 255, 255, 0.9);
}

.NB-dark .NB-feature-detail-crosslink {
    background: rgba(255, 255, 255, 0.06);
}

.NB-dark .NB-feature-detail-crosslink:hover {
    background: rgba(255, 255, 255, 0.1);
}

.NB-dark .NB-feature-detail-crosslink-name {
    color: rgba(255, 255, 255, 0.85);
}

.NB-dark .NB-feature-detail-crosslink-desc {
    color: rgba(255, 255, 255, 0.45);
}

/* Active crosslink in dark mode - classes are on body so use compound selector */
.NB-dark.NB-static-feature-training .NB-feature-detail-crosslink-training,
.NB-dark.NB-static-feature-ask-ai .NB-feature-detail-crosslink-ask-ai,
.NB-dark.NB-static-feature-web-feeds .NB-feature-detail-crosslink-web-feeds,
.NB-dark.NB-static-feature-newsletters .NB-feature-detail-crosslink-newsletters,
.NB-dark.NB-static-feature-search .NB-feature-detail-crosslink-search,
.NB-dark.NB-static-feature-archive .NB-feature-detail-crosslink-archive,
.NB-dark.NB-static-feature-saved .NB-feature-detail-crosslink-saved,
.NB-dark.NB-static-feature-native-apps .NB-feature-detail-crosslink-native-apps,
.NB-dark.NB-static-feature-mcp .NB-feature-detail-crosslink-mcp,
.NB-dark.NB-static-feature-cli .NB-feature-detail-crosslink-cli {
    background: rgba(251, 219, 155, 0.12);
}

.NB-dark.NB-static-feature-training .NB-feature-detail-crosslink-training .NB-feature-detail-crosslink-name,
.NB-dark.NB-static-feature-ask-ai .NB-feature-detail-crosslink-ask-ai .NB-feature-detail-crosslink-name,
.NB-dark.NB-static-feature-web-feeds .NB-feature-detail-crosslink-web-feeds .NB-feature-detail-crosslink-name,
.NB-dark.NB-static-feature-newsletters .NB-feature-detail-crosslink-newsletters .NB-feature-detail-crosslink-name,
.NB-dark.NB-static-feature-search .NB-feature-detail-crosslink-search .NB-feature-detail-crosslink-name,
.NB-dark.NB-static-feature-archive .NB-feature-detail-crosslink-archive .NB-feature-detail-crosslink-name,
.NB-dark.NB-static-feature-saved .NB-feature-detail-crosslink-saved .NB-feature-detail-crosslink-name,
.NB-dark.NB-static-feature-native-apps .NB-feature-detail-crosslink-native-apps .NB-feature-detail-crosslink-name,
.NB-dark.NB-static-feature-mcp .NB-feature-detail-crosslink-mcp .NB-feature-detail-crosslink-name,
.NB-dark.NB-static-feature-cli .NB-feature-detail-crosslink-cli .NB-feature-detail-crosslink-name {
    color: #FBDB9B;
}

/* Features bottom CTA - dark mode */
.NB-dark .NB-features-bottom-cta-text {
    color: rgba(255, 255, 255, 0.9);
}

/* Pricing CTA buttons - dark mode */
.NB-dark .NB-pricing-cta-free {
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.8);
    border-color: rgba(255, 255, 255, 0.1);
}

.NB-dark .NB-pricing-cta-free:hover {
    background: rgba(255, 255, 255, 0.14);
    color: rgba(255, 255, 255, 0.95);
}

/* Compare links - dark mode */
.NB-dark .NB-compare-link-item:hover {
    background: rgba(255, 255, 255, 0.08);
}

.NB-dark .NB-compare-link-arrow {
    color: #FBDB9B;
}

/* ======================================= */
/* = Dark mode overrides for all sections = */
/* ======================================= */

/* Compare / Alternative pages - dark mode */
.NB-dark .NB-static-compare-title {
    color: rgba(255, 255, 255, 0.95);
}

.NB-dark .NB-static-compare-subtitle {
    color: rgba(255, 255, 255, 0.55);
}

.NB-dark .NB-compare-table {
    border-color: rgba(255, 255, 255, 0.08);
}

.NB-dark .NB-compare-table th,
.NB-dark .NB-compare-table td {
    border-bottom-color: rgba(255, 255, 255, 0.06);
}

.NB-dark .NB-compare-table thead th {
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.9);
}

.NB-dark .NB-compare-table tbody td {
    color: rgba(255, 255, 255, 0.7);
    background: rgba(255, 255, 255, 0.03);
}

.NB-dark .NB-compare-table tbody tr:hover td {
    background: rgba(255, 255, 255, 0.08);
}

.NB-dark .NB-compare-table tbody td:first-child {
    color: rgba(255, 255, 255, 0.9);
}

.NB-dark .NB-compare-x {
    color: rgba(255, 255, 255, 0.15);
}

.NB-dark .NB-compare-section {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.06);
}

.NB-dark .NB-compare-section-title {
    color: rgba(255, 255, 255, 0.9);
}

.NB-dark .NB-compare-section-text {
    color: rgba(255, 255, 255, 0.6);
}

/* Compare links section - dark mode */
.NB-dark .NB-compare-links-section {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.06);
}

.NB-dark .NB-compare-links-title {
    color: rgba(255, 255, 255, 0.5);
}

.NB-dark .NB-compare-link-group-label {
    color: rgba(255, 255, 255, 0.4);
}

.NB-dark .NB-compare-link-item a {
    color: #FBDB9B;
}

.NB-dark .NB-compare-link-item a:hover {
    color: #fce8b8;
}

/* Pricing tier detail pages - dark mode */
.NB-dark .NB-pricing-tier-detail-name {
    color: rgba(255, 255, 255, 0.95);
}

.NB-dark .NB-pricing-tier-detail-price {
    color: rgba(255, 255, 255, 0.7);
}

.NB-dark .NB-pricing-tier-detail-subtitle {
    color: rgba(255, 255, 255, 0.55);
}

.NB-dark .NB-pricing-tier-detail-features h2 {
    color: rgba(255, 255, 255, 0.9);
}

.NB-dark .NB-pricing-tier-detail-feature {
    border-bottom-color: rgba(255, 255, 255, 0.06);
}

.NB-dark .NB-pricing-tier-detail-feature-name {
    color: rgba(255, 255, 255, 0.9);
}

.NB-dark .NB-pricing-tier-detail-feature-desc {
    color: rgba(255, 255, 255, 0.55);
}

.NB-dark .NB-pricing-tier-detail-faq h2 {
    color: rgba(255, 255, 255, 0.9);
}

/* Pricing crosslinks - dark mode */
.NB-dark .NB-pricing-crosslinks h2 {
    color: rgba(255, 255, 255, 0.9);
}

.NB-dark .NB-pricing-crosslink {
    background: rgba(255, 255, 255, 0.06);
}

.NB-dark .NB-pricing-crosslink:hover {
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.NB-dark .NB-pricing-crosslink-name {
    color: rgba(255, 255, 255, 0.9);
}

.NB-dark .NB-pricing-crosslink-price {
    color: rgba(255, 255, 255, 0.5);
}

.NB-dark .NB-pricing-crosslink-desc {
    color: rgba(255, 255, 255, 0.5);
}

.NB-dark .NB-pricing-crosslink-premium .NB-pricing-crosslink-arrow {
    color: #7cc5c6;
}

.NB-dark .NB-pricing-crosslink-archive .NB-pricing-crosslink-arrow {
    color: #fbbf24;
}

.NB-dark .NB-pricing-crosslink-pro .NB-pricing-crosslink-arrow {
    color: #fcd34d;
}

.NB-dark .NB-pricing-crosslink-current {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.1);
}

.NB-dark .NB-pricing-crosslink-current:hover {
    background: rgba(255, 255, 255, 0.03);
}

.NB-dark .NB-pricing-crosslink-current-label {
    color: rgba(255, 255, 255, 0.3);
}

/* Main pricing page - dark mode */
.NB-dark .NB-pricing-title,
.NB-dark .NB-static-pricing-title {
    color: rgba(255, 255, 255, 0.95);
}

.NB-dark .NB-pricing-subtitle,
.NB-dark .NB-static-pricing-subtitle {
    color: rgba(255, 255, 255, 0.55);
}

.NB-dark .NB-pricing-tier {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.08);
}

.NB-dark .NB-pricing-tier:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.12);
}

.NB-dark .NB-pricing-tier-name {
    color: rgba(255, 255, 255, 0.95);
}

.NB-dark .NB-pricing-tier-price {
    color: rgba(255, 255, 255, 0.8);
}

.NB-dark .NB-pricing-tier-period {
    color: rgba(255, 255, 255, 0.4);
}

.NB-dark .NB-pricing-tier-desc {
    color: rgba(255, 255, 255, 0.55);
}

.NB-dark .NB-pricing-tier-features li {
    color: rgba(255, 255, 255, 0.65);
    border-bottom-color: rgba(255, 255, 255, 0.04);
}

.NB-dark .NB-pricing-tier-features li::before {
    color: rgba(255, 255, 255, 0.3);
}

.NB-dark .NB-pricing-free-note {
    color: rgba(255, 255, 255, 0.45);
}

.NB-dark .NB-pricing-faq-title {
    color: rgba(255, 255, 255, 0.9);
}

.NB-dark .NB-pricing-faq-item {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.06);
}

.NB-dark .NB-pricing-faq-question {
    color: rgba(255, 255, 255, 0.85);
}

.NB-dark .NB-pricing-faq-answer {
    color: rgba(255, 255, 255, 0.55);
}

.NB-dark .NB-pricing-faq-answer a {
    color: #FBDB9B;
}

.NB-dark .NB-pricing-faq-answer a:hover {
    color: #fce8b8;
}

/* Pricing page cards in dark mode */
.NB-dark.NB-static-pricing .NB-pricing-tier {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow: none;
}

.NB-dark.NB-static-pricing .NB-pricing-tier:hover {
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.NB-dark.NB-static-pricing .NB-pricing-tier-features li {
    color: rgba(255, 255, 255, 0.7);
}

.NB-dark.NB-static-pricing .NB-pricing-tier-features li.NB-pricing-tier-includes {
    color: rgba(255, 255, 255, 0.45);
}

.NB-dark.NB-static-pricing .NB-pricing-tier-free .NB-pricing-tier-features li,
.NB-dark.NB-static-pricing .NB-pricing-tier-selfhosted .NB-pricing-tier-features li {
    color: rgba(255, 255, 255, 0.65);
}

.NB-dark.NB-static-pricing .NB-pricing-tier-free .NB-pricing-tier-features li span,
.NB-dark.NB-static-pricing .NB-pricing-tier-selfhosted .NB-pricing-tier-features li span {
    color: rgba(255, 255, 255, 0.65);
}

.NB-dark.NB-static-pricing .NB-pricing-tier-features li.NB-pricing-tier-upcoming-header {
    color: rgba(255, 255, 255, 0.35);
}

.NB-dark.NB-static-pricing .NB-pricing-tier-features li.NB-upcoming {
    color: rgba(255, 255, 255, 0.35);
}

.NB-dark.NB-static-pricing .NB-pricing-tier-actions {
    background: rgba(255, 255, 255, 0.03);
    border-top-color: rgba(255, 255, 255, 0.06);
}

.NB-dark.NB-static-pricing .NB-pricing-github-button {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.1);
}

.NB-dark.NB-static-pricing .NB-pricing-github-button:hover {
    background: rgba(255, 255, 255, 0.14);
}

/* About page - dark mode */
.NB-dark .NB-about-hero-title {
    color: rgba(255, 255, 255, 0.88);
}

.NB-dark .NB-about-section-title {
    color: #FBDB9B;
}

.NB-dark .NB-about-section-text {
    color: rgba(255, 255, 255, 0.65);
}

.NB-dark .NB-about-card {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.06);
}

.NB-dark .NB-about-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.1);
}

.NB-dark .NB-about-card-title {
    color: rgba(255, 255, 255, 0.9);
}

.NB-dark .NB-about-card-text {
    color: rgba(255, 255, 255, 0.55);
}

.NB-dark .NB-about-stat-value {
    color: rgba(255, 255, 255, 0.95);
}

.NB-dark .NB-about-stat-label {
    color: rgba(255, 255, 255, 0.45);
}

.NB-dark .NB-about-tech-pill {
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.65);
    border-color: rgba(255, 255, 255, 0.08);
}

.NB-dark .NB-about-tech-pill:hover {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.85);
    border-color: rgba(255, 255, 255, 0.15);
}

.NB-dark .NB-about-tech-pill-github {
    background: rgba(251, 219, 155, 0.08);
    color: #FBDB9B;
    border-color: rgba(251, 219, 155, 0.15);
}

.NB-dark .NB-about-tech-pill-github:hover {
    background: rgba(251, 219, 155, 0.14);
    color: #fce8b8;
    border-color: rgba(251, 219, 155, 0.25);
}

.NB-dark .NB-about-timeline-item {
    border-left-color: rgba(255, 255, 255, 0.08);
}

.NB-dark .NB-about-timeline-text,
.NB-dark .NB-about-timeline-content p {
    color: rgba(255, 255, 255, 0.6);
}

.NB-dark .NB-about-timeline-dot,
.NB-dark .NB-about-timeline-item::before {
    background: #FBDB9B;
}

.NB-dark .NB-about-timeline-year {
    color: #FBDB9B;
}

.NB-dark .NB-about-person-name {
    color: rgba(255, 255, 255, 0.9);
}

.NB-dark .NB-about-person-role {
    color: rgba(255, 255, 255, 0.45);
}

.NB-dark .NB-about-person-photo {
    border-color: rgba(255, 255, 255, 0.15);
}

.NB-dark .NB-about-person-links a {
    color: rgba(255, 255, 255, 0.5);
}

.NB-dark .NB-about-person-links a:hover {
    color: #FBDB9B;
}

.NB-dark .NB-about-cta-title {
    color: rgba(255, 255, 255, 0.9);
}

.NB-dark .NB-about-cta-text {
    color: rgba(255, 255, 255, 0.55);
}

/* About tech stack - dark mode */
.NB-dark .NB-about-tech-group-title {
    color: rgba(255, 255, 255, 0.4);
}

/* About tagline - dark mode */
.NB-dark .NB-about-tagline-text {
    color: rgba(255, 255, 255, 0.5);
}

.NB-dark .NB-about-tagline-img {
    border-color: rgba(255, 255, 255, 0.15);
}

/* FAQ page - dark mode */
.NB-dark .NB-faq-hero-title {
    color: rgba(255, 255, 255, 0.88);
}

.NB-dark .NB-faq-hero-subtitle {
    color: rgba(255, 255, 255, 0.5);
}

.NB-dark .NB-faq-item {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.06);
}

.NB-dark h3.NB-faq-question {
    color: rgba(255, 255, 255, 0.9);
}

.NB-dark .NB-faq-answer {
    color: rgba(255, 255, 255, 0.6);
}

.NB-dark .NB-faq-answer a {
    color: #FBDB9B;
}

.NB-dark .NB-faq-answer a:hover {
    color: #fce8b8;
}

.NB-dark .NB-faq-answer code {
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.75);
}

.NB-dark .NB-faq-answer li {
    color: rgba(255, 255, 255, 0.6);
}

.NB-dark .NB-faq-bullet-icon {
    color: rgba(255, 255, 255, 0.6);
}

/* FAQ tier cards - dark mode */
.NB-dark .NB-faq-tier-card {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.08);
}

.NB-dark a.NB-faq-tier {
    background: rgba(255, 255, 255, 0.06);
}

.NB-dark a.NB-faq-tier:hover {
    background: rgba(255, 255, 255, 0.12);
}

/* Distinct tier title colors - dark mode */
.NB-dark .NB-faq-tier-free .NB-faq-tier-name {
    color: rgba(255, 255, 255, 0.85);
}
.NB-dark .NB-faq-tier-premium .NB-faq-tier-name {
    color: #86efac;
}
.NB-dark .NB-faq-tier-archive .NB-faq-tier-name {
    color: #99f6e4;
}
.NB-dark .NB-faq-tier-pro .NB-faq-tier-name {
    color: #fdba74;
}

/* Tier title hover colors - dark mode */
.NB-dark a.NB-faq-tier-free:hover .NB-faq-tier-name {
    color: rgba(255, 255, 255, 0.9);
}
.NB-dark a.NB-faq-tier-premium:hover .NB-faq-tier-name {
    color: rgba(74, 222, 128, 1);
}
.NB-dark a.NB-faq-tier-archive:hover .NB-faq-tier-name {
    color: rgba(94, 234, 212, 1);
}
.NB-dark a.NB-faq-tier-pro:hover .NB-faq-tier-name {
    color: rgba(253, 186, 116, 1);
}

.NB-dark .NB-faq-tier-desc {
    color: rgba(255, 255, 255, 0.55);
}

/* FAQ bottom CTA - dark mode */
.NB-dark .NB-faq-bottom-cta-text {
    color: rgba(255, 255, 255, 0.9);
}

.NB-dark .NB-faq-bottom-cta-subtext {
    color: rgba(255, 255, 255, 0.55);
}

/* Forgot password - dark mode */
.NB-dark .NB-forgot-title {
    color: rgba(255, 255, 255, 0.95);
}

.NB-dark .NB-forgot-subtitle {
    color: rgba(255, 255, 255, 0.55);
}

.NB-dark .NB-forgot-card {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.08);
}

.NB-dark .NB-forgot-label {
    color: rgba(255, 255, 255, 0.7);
}

.NB-dark .NB-forgot-input {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.9);
}

.NB-dark .NB-forgot-input:focus {
    border-color: rgba(251, 219, 155, 0.4);
}

.NB-dark .NB-forgot-hint {
    color: rgba(255, 255, 255, 0.4);
}

.NB-dark .NB-forgot-hint a {
    color: #FBDB9B;
}

/* API page - dark mode */
.NB-dark .NB-static-api-title {
    color: rgba(255, 255, 255, 0.95);
}

.NB-dark .NB-static-api-subtitle {
    color: rgba(255, 255, 255, 0.6);
}

.NB-dark .NB-static-api-section-title {
    color: rgba(255, 255, 255, 0.9);
}

.NB-dark .NB-static-api-endpoint-title {
    color: rgba(255, 255, 255, 0.85);
}

.NB-dark .NB-static-api-endpoint-desc {
    color: rgba(255, 255, 255, 0.6);
}

.NB-dark .NB-static-api-method {
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.7);
}

.NB-dark .NB-static-api-path {
    color: #FBDB9B;
}

/* Testimonials - dark mode */
.NB-dark .NB-testimonial-card {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.06);
}

.NB-dark .NB-testimonial-text {
    color: rgba(255, 255, 255, 0.7);
}

.NB-dark .NB-testimonial-author {
    color: rgba(255, 255, 255, 0.5);
}

.NB-dark .NB-testimonial-author a {
    color: #FBDB9B;
}

/* MCP feature detail - dark mode */
.NB-dark pre.NB-feature-detail-code {
    background: #12121f;
    color: #d0d0d0;
}

.NB-dark .NB-feature-detail-connect h3 {
    color: rgba(255, 255, 255, 0.9);
}

.NB-dark .NB-mcp-tool {
    border-bottom-color: rgba(255, 255, 255, 0.06);
}

.NB-dark .NB-mcp-tools-column-heading[data-category="reading"] {
    background: rgba(100, 170, 220, 0.15);
    color: rgba(140, 195, 235, 0.9);
}

.NB-dark .NB-mcp-tools-column-heading[data-category="actions"] {
    background: rgba(251, 219, 155, 0.12);
    color: rgba(251, 219, 155, 0.85);
}

.NB-dark .NB-mcp-tools-column-heading[data-category="intelligence"] {
    background: rgba(120, 200, 120, 0.12);
    color: rgba(140, 210, 140, 0.85);
}

.NB-dark .NB-mcp-tool code {
    color: rgba(255, 255, 255, 0.85);
}

.NB-dark .NB-mcp-tool-desc {
    color: rgba(255, 255, 255, 0.4);
}

/* MCP examples - dark mode */
.NB-dark .NB-feature-detail-examples-intro {
    color: rgba(255, 255, 255, 0.5);
}

.NB-dark .NB-mcp-example {
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
}

.NB-dark .NB-mcp-example-prompt {
    background: #12121f;
}

.NB-dark .NB-mcp-example-tool {
    background: #0e0e1a;
}

.NB-dark .NB-mcp-example-response {
    background: rgba(255, 255, 255, 0.04);
    color: rgba(255, 255, 255, 0.75);
}

.NB-dark .NB-mcp-example-response strong {
    color: rgba(255, 255, 255, 0.9);
}

.NB-dark .NB-mcp-example-response em {
    color: rgba(255, 255, 255, 0.5);
}

.NB-dark .NB-mcp-example-response code {
    background: rgba(255, 255, 255, 0.08);
    color: rgba(251, 219, 155, 0.85);
}

/* MCP setup section - dark mode */
.NB-dark .NB-mcp-setup-option h3 {
    color: rgba(255, 255, 255, 0.9);
}

.NB-dark .NB-mcp-setup-option p {
    color: rgba(255, 255, 255, 0.5);
}

.NB-dark .NB-mcp-setup-note {
    color: rgba(255, 255, 255, 0.4);
}

.NB-dark .NB-cli-step h3 {
    color: #a0a0a0;
}

.NB-dark .NB-cli-step-note {
    color: #808080;
}

.NB-dark .NB-cli-step-note code {
    background: #2a2a2a;
    color: #c0c0c0;
}

/* Cross-banner - dark mode */
.NB-dark .NB-feature-crossbanner {
    background: rgba(251, 219, 155, 0.08);
    border-color: rgba(251, 219, 155, 0.15);
    color: rgba(255, 255, 255, 0.75);
}

.NB-dark .NB-feature-crossbanner a {
    color: #FBDB9B;
}

/* Feature detail screenshots - dark mode */
.NB-dark .NB-feature-detail-screenshot {
    border-color: rgba(255, 255, 255, 0.08);
}

.NB-dark .NB-feature-detail-screenshot img {
    border-color: rgba(255, 255, 255, 0.06);
}

/* Features bottom CTA - dark mode */
.NB-dark .NB-features-bottom-cta-text {
    color: rgba(255, 255, 255, 0.9);
}

/* Pricing CTA arrows - dark mode */
.NB-dark .NB-pricing-cta-premium {
    color: #7cc5c6;
}

.NB-dark .NB-pricing-cta-archive {
    color: #fbbf24;
}

.NB-dark .NB-pricing-cta-pro {
    color: #fcd34d;
}

/* reader.css overrides - dark mode */
body.NB-dark.NB-static .NB-module .NB-module-title {
    border-left-color: 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);
}

body.NB-dark.NB-static .NB-module .NB-module-content,
body.NB-dark.NB-static .NB-module .NB-module-content p {
    color: rgba(255, 255, 255, 0.75);
}

body.NB-dark.NB-static .NB-module .NB-module-content b,
body.NB-dark.NB-static .NB-module .NB-module-content strong {
    color: rgba(255, 255, 255, 0.9);
}

body.NB-dark.NB-static li {
    color: rgba(255, 255, 255, 0.75);
}

body.NB-dark.NB-static pre,
body.NB-dark.NB-static code {
    background-color: rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.85);
}

body.NB-dark.NB-static .NB-module-title-prefix {
    color: #FBDB9B;
}

.NB-dark .NB-static-press-reviews .NB-press-date {
    color: rgba(255, 255, 255, 0.5);
}

.NB-dark.NB-static-about .NB-about-who-name {
    color: white;
}

.NB-dark.NB-static-about .NB-about-who img {
    border-color: rgba(255, 255, 255, 0.15);
}

.NB-dark.NB-static-about .NB-about-tagline img {
    border-color: rgba(255, 255, 255, 0.15);
}

.NB-dark .NB-static-faq .NB-faq-image {
    border-color: rgba(255, 255, 255, 0.15);
}

.NB-dark .NB-static-faq ul li.NB-faq-question {
    color: white;
}

.NB-dark .NB-static-faq ul li.NB-faq-answer {
    color: rgba(255, 255, 255, 0.65);
}

/* API page - dark mode */
.NB-dark .NB-static-api .optional,
.NB-dark .NB-static-api .required {
    background-color: rgba(152, 200, 146, 0.3);
    border-color: rgba(152, 200, 146, 0.4);
    color: rgba(255, 255, 255, 0.8);
}

.NB-dark .NB-static-api .required {
    background-color: rgba(217, 144, 15, 0.3);
    border-color: rgba(217, 144, 15, 0.5);
    color: #FBDB9B;
}

.NB-dark .NB-static-api table {
    border-bottom-color: rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.15);
}

.NB-dark .NB-static-api table td {
    border-right-color: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.75);
}

.NB-dark .NB-static-api table th,
.NB-dark .NB-static-api .NB-api-toc-header {
    border-right-color: rgba(255, 255, 255, 0.15);
    border-bottom-color: rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.9);
    background: rgba(255, 255, 255, 0.05);
}

.NB-dark .NB-static-api .NB-api-toc .NB-api-link-desc {
    color: rgba(255, 255, 255, 0.55);
}

/* Login card - dark mode */
.NB-dark .NB-static-card {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.18);
    box-shadow: none;
}

@supports not (backdrop-filter: blur(20px)) {
    .NB-dark .NB-static-card {
        background: rgba(50, 70, 70, 0.85);
    }
}

.NB-dark .NB-static-card-title {
    color: white;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.15);
}

.NB-dark .NB-static-card-tagline {
    color: #FBDB9B;
}

.NB-dark .NB-static-card-field input[type=text],
.NB-dark .NB-static-card-field input[type=password],
.NB-dark .NB-static-card-field input[type=email] {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.1);
    color: white;
}

.NB-dark .NB-static-card-field input::placeholder {
    color: rgba(255, 255, 255, 0.35);
}

.NB-dark .NB-static-card-field input:focus {
    border-color: rgba(217, 166, 33, 0.5);
    background: rgba(255, 255, 255, 0.13);
}

.NB-dark .NB-static-card-altlink {
    color: #FBDB9B;
}

.NB-dark .NB-static-card-altlink:hover {
    color: #fff;
}

.NB-dark .NB-delete-form h2 {
    color: white;
}

.NB-dark .NB-static-oauth h3 {
    color: white;
}

.NB-dark .NB-static-oauth .NB-static-form-label label {
    color: rgba(255, 255, 255, 0.6);
}

.NB-dark .NB-static-oauth .NB-static-form-input input {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.1);
    color: white;
}

.NB-dark .NB-static-form-alttext {
    border-top-color: rgba(255, 255, 255, 0.1);
}

.NB-dark .NB-static-form-alttext a {
    color: #FBDB9B;
}

/* OAuth authorize buttons (templates/oauth2_provider/authorize.html).
   payments.css paints every `.NB-static-form input` translucent white with white text,
   which left the Authorize/Deny buttons nearly invisible on the cream background.
   These higher-specificity rules restore explicit high-contrast colors in both themes.
   Preview locally at /oauth/dev/authorize/ (DEBUG only). */
.NB-static-oauth .controls input[type=submit].NB-modal-submit-button {
    width: auto;
    min-width: 140px;
    padding: 10px 24px;
    font-weight: bold;
    border: none;
    border-radius: 8px;
    cursor: pointer;
}

.NB-static-oauth .controls input[type=submit].NB-modal-submit-green {
    background: #217412 linear-gradient(to top, #216200, #217412);
    color: #FFFFFF;
}

.NB-static-oauth .controls input[type=submit].NB-modal-submit-green:hover {
    background: #1E5000 linear-gradient(to top, #1E5000, #216200);
}

.NB-static-oauth .controls input[type=submit].NB-modal-submit-green:active {
    background: #1B3F00 linear-gradient(to top, #1B3F00, #1E5000);
}

.NB-static-oauth .controls input[type=submit].NB-modal-submit-grey {
    background: #d5d4dB linear-gradient(to top, #CBCAD3, #d5d4dB);
    color: #404040;
    border: 1px solid rgba(0, 0, 0, 0.15);
    text-shadow: none;
}

.NB-static-oauth .controls input[type=submit].NB-modal-submit-grey:hover {
    background: #CBCAD3 linear-gradient(to top, #BDBCC7, #CBCAD3);
}

.NB-static-oauth .controls input[type=submit].NB-modal-submit-grey:active {
    background: #BDBCC7 linear-gradient(to top, #ADACBB, #BDBCC7);
}

/* Dark mode: same buttons, inverted — dark surfaces with light text */
.NB-dark.NB-static-oauth .controls input[type=submit].NB-modal-submit-green {
    background: #2B8E1A;
    color: #FFFFFF;
}

.NB-dark.NB-static-oauth .controls input[type=submit].NB-modal-submit-green:hover {
    background: #35A322;
}

.NB-dark.NB-static-oauth .controls input[type=submit].NB-modal-submit-green:active {
    background: #217412;
}

.NB-dark.NB-static-oauth .controls input[type=submit].NB-modal-submit-grey {
    background: #404040;
    color: #d5d4db;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.NB-dark.NB-static-oauth .controls input[type=submit].NB-modal-submit-grey:hover {
    background: #4C4C4C;
}

.NB-dark.NB-static-oauth .controls input[type=submit].NB-modal-submit-grey:active {
    background: #383838;
}

.NB-welcome .NB-body-inner {
    overflow: auto;
    height: 100%;
    width: 100%;
    position: absolute;
}

.NB-welcome.NB-show-reader .NB-splash-info.NB-splash-top,
.NB-welcome-tryout-active .NB-splash-info.NB-splash-top {
    display: none;
}

.NB-welcome .NB-splash-info.NB-splash-top .NB-splash-title {
    display: none;
}

.NB-welcome .NB-splash-info.NB-splash-top {
    height: 70px;
    position: absolute;
    top: 0;
    border-top: none;
    border-bottom: none;
    background: none;
    background-color: rgba(255, 255, 255, 0.35);
    backdrop-filter: blur(12px);
    z-index: 10;
}

.NB-welcome .NB-splash-info.NB-splash-bottom {
    height: 6px;
    position: absolute;
    top: 0;
    border-top: none;
    border-bottom: none;
    background: none;
    background-color: rgba(0, 0, 0, .4);
}

.NB-welcome .NB-splash-info.NB-splash-bottom {
    position: relative;
    height: auto;
    float: left;
    overflow: hidden;
    border-top: 1px solid rgba(0, 0, 0, .4);
}

.NB-welcome .NB-splash-info .NB-splash-links {
    position: relative;
    left: 50%;
    width: auto;
    float: left;
}

.NB-welcome .NB-splash-info .NB-splash-links li {
    position: relative;
    right: 50%;
}

.NB-welcome .NB-splash-info .NB-splash-links a {
    color: rgba(255, 255, 255, .7);
    text-shadow: 0 1px 0 rgba(0, 0, 0, .2);
}

.NB-welcome .NB-splash-info .NB-splash-links a:hover {
    color: #F4DD43;
}

/* ========== */
/* = Common = */
/* ========== */

.NB-welcome .NB-inner {
    width: 100%;
    max-width: 960px;
    margin: 0 auto;
    position: relative;
    height: 100%;
    box-sizing: border-box;
}


.NB-button {
    border: 1px solid #07360F;
    font-size: 12px;
    padding: 4px 12px;
    margin: 2px 4px 2px;
    -moz-box-shadow: 2px 2px 0 rgba(35, 35, 35, 0.4);
    -webkit-box-shadow: 2px 2px 0 rgba(35, 35, 35, 0.4);
    box-shadow: 2px 2px 0 rgba(35, 35, 35, 0.4);
    border-radius: 4px;
    -moz-border-radius: 4px;
    cursor: pointer;
    text-decoration: none;
    color: #404040;
}

.NB-button:active {
    -moz-box-shadow: 1px 1px 0 rgba(35, 35, 35, 0.6);
    -webkit-box-shadow: 1px 1px 0 rgba(35, 35, 35, 0.6);
    box-shadow: 1px 1px 0 rgba(35, 35, 35, 0.6);
}

.NB-welcome-container.NB-welcome-tryout {
    overflow-x: hidden;
}

/* ========================== */
/* = Tryout Signup Banner   = */
/* ========================== */

/* Light mode (default) */
.NB-tryout-signup-banner {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: linear-gradient(135deg, #f5f0e6 0%, #ece5d5 100%);
    border-bottom: 1px solid rgba(217, 166, 33, 0.25);
    cursor: pointer;
    user-select: none;
    transition: background 0.2s ease;
    position: sticky;
    top: 0;
    z-index: 5;
}

.NB-tryout-signup-banner:hover {
    background: linear-gradient(135deg, #efe9d8 0%, #e6dece 100%);
}

.NB-tryout-signup-banner:hover .NB-tryout-signup-banner-button {
    background: #C4941B;
}

.NB-tryout-signup-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-tryout-signup-banner-content {
    flex: 1;
    min-width: 0;
}

.NB-tryout-signup-banner-text {
    font-family: 'Gotham Narrow A', 'Gotham Narrow B', sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: #3a3226;
    line-height: 1.2;
}

.NB-tryout-signup-banner-subtext {
    font-size: 11px;
    color: rgba(58, 50, 38, 0.55);
    margin-top: 2px;
    line-height: 1.3;
}

.NB-tryout-signup-banner-button {
    flex-shrink: 0;
    background: #D9A621;
    color: white;
    font-family: 'Gotham Narrow A', 'Gotham Narrow B', sans-serif;
    font-size: 12px;
    font-weight: 600;
    padding: 7px 16px;
    border-radius: 8px;
    transition: background 0.2s ease;
    letter-spacing: 0.3px;
}

/* Dark mode */
.NB-dark .NB-tryout-signup-banner {
    background: linear-gradient(135deg, #1a1f1f 0%, #242b2b 100%);
    border-bottom-color: rgba(217, 166, 33, 0.2);
}

.NB-dark .NB-tryout-signup-banner:hover {
    background: linear-gradient(135deg, #1f2626 0%, #2a3232 100%);
}

.NB-dark .NB-tryout-signup-banner-text {
    color: white;
}

.NB-dark .NB-tryout-signup-banner-subtext {
    color: rgba(255, 255, 255, 0.45);
}

/* ================================ */
/* = Back to Login Banner          = */
/* ================================ */

/* If both tryfeed and tryout signup banners exist, hide the duplicate */
.NB-tryfeed-signup-banner ~ .NB-tryout-signup-banner {
    display: none !important;
}

/* Hide the feed list login banner on desktop - signup link lives in story titles instead */
@media (min-width: 769px) {
    .NB-tryout-back-banner {
        display: none !important;
    }
}

/* Full-bleed images in tryout/anonymous story view.
   Must beat reader.css specificity (0,4,1) for .NB-table-image.NB-large-image
   and .NB-large-image.NB-large-image-widen rules, so target .NB-large-image
   to reach specificity (0,4,2). */
body.NB-is-anonymous .NB-feed-story .NB-feed-story-content img.NB-large-image {
    max-width: calc(100% + 56px) !important;
    width: calc(100% + 56px) !important;
    margin-left: -28px !important;
    margin-right: -28px !important;
    border-radius: 0 !important;
}

.NB-tryout-back-banner {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: linear-gradient(135deg, #3d5a52 0%, #2d4a42 100%);
    border-bottom: 1px solid rgba(217, 166, 33, 0.2);
    cursor: pointer;
    user-select: none;
    transition: background 0.2s ease;
}

.NB-tryout-back-banner:hover {
    background: linear-gradient(135deg, #4a6a60 0%, #3a5a50 100%);
}

.NB-tryout-back-banner:active {
    background: linear-gradient(135deg, #345048 0%, #264038 100%);
}

.NB-tryout-back-banner-arrow {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    position: relative;
}

.NB-tryout-back-banner-arrow::before {
    content: '';
    position: absolute;
    top: 4px;
    left: 3px;
    width: 8px;
    height: 8px;
    border-left: 2px solid rgba(255, 255, 255, 0.8);
    border-bottom: 2px solid rgba(255, 255, 255, 0.8);
    transform: rotate(45deg);
}

.NB-tryout-back-banner-content {
    flex: 1;
    min-width: 0;
}

.NB-tryout-back-banner-text {
    font-family: 'Gotham Narrow A', 'Gotham Narrow B', sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.3;
}

.NB-tryout-back-banner-cta {
    flex-shrink: 0;
    background: #D9A621;
    color: white;
    font-family: 'Gotham Narrow A', 'Gotham Narrow B', sans-serif;
    font-size: 12px;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 7px;
    transition: background 0.2s ease;
    letter-spacing: 0.2px;
}

.NB-tryout-back-banner:hover .NB-tryout-back-banner-cta {
    background: #C4941B;
}

/* Dark mode */
.NB-dark .NB-tryout-back-banner {
    background: linear-gradient(135deg, #1a2525 0%, #141e1e 100%);
    border-bottom-color: rgba(217, 166, 33, 0.15);
}

.NB-dark .NB-tryout-back-banner:hover {
    background: linear-gradient(135deg, #1f2e2e 0%, #192626 100%);
}

/* ============================================= */
/* = Mobile Single-Pane Layout (Reusable)       = */
/* = Applied via body.NB-mobile-single-pane      = */
/* = Used by: tryout (unauth), mobile (auth)     = */
/* ============================================= */

@media (max-width: 768px) {
    /* Feed list: full-width overlay */
    body.NB-mobile-single-pane .NB-layout .left-pane {
        position: absolute !important;
        width: 100% !important;
        z-index: 10;
        top: 0;
        left: 0;
        bottom: 0;
    }

    /* Story titles: full-width overlay on top of feed list */
    body.NB-mobile-single-pane.NB-show-reader .NB-layout .right-pane {
        position: absolute !important;
        width: 100% !important;
        z-index: 20 !important;
        top: 0 !important;
        left: 0 !important;
        bottom: 0 !important;
        right: 0 !important;
    }

    /* Story titles: full-width, always on top */
    body.NB-mobile-single-pane.NB-show-reader .right-pane #story_titles {
        display: block !important;
        width: 100% !important;
        right: 0 !important;
        height: auto !important;
        bottom: 0 !important;
    }

    /* Sticky toolbar and signup banner at top of story titles */
    body.NB-mobile-single-pane.NB-show-reader #story_titles > .NB-mobile-back-toolbar {
        position: sticky !important;
        top: 0 !important;
        z-index: 10 !important;
    }

    /* Re-show tryfeed signup banner on mobile (hidden on desktop above) */
    body.NB-mobile-single-pane.NB-show-reader #story_titles > .NB-tryfeed-signup-banner {
        display: flex !important;
        position: sticky !important;
        top: 38px !important;
        z-index: 9 !important;
    }

    /* Story detail pane: hidden by default, shown as third overlay when story is open */
    body.NB-mobile-single-pane.NB-show-reader .right-pane #story_pane {
        display: none !important;
    }

    body.NB-mobile-single-pane.NB-mobile-story-open .right-pane #story_pane {
        display: block !important;
        position: absolute !important;
        inset: 0 !important;
        width: 100% !important;
        height: 100% !important;
        z-index: 30 !important;
        background: #f4f4f4;
        overflow-y: auto !important;
        overflow-x: hidden !important;
        -webkit-overflow-scrolling: touch !important;
    }

    /* Sticky toolbar at top of scrolling story pane */
    body.NB-mobile-single-pane.NB-mobile-story-open #story_pane > .NB-mobile-back-toolbar {
        position: sticky !important;
        top: 0 !important;
        z-index: 40 !important;
    }

    /* Sticky signup banner below toolbar */
    body.NB-mobile-single-pane.NB-mobile-story-open #story_pane > .NB-tryout-signup-banner {
        display: flex !important;
        position: sticky !important;
        top: 38px !important;
        z-index: 39 !important;
    }

    /* Story pane container flows naturally (not absolute) */
    body.NB-mobile-single-pane.NB-mobile-story-open .NB-story-pane-container {
        position: relative !important;
        left: 0 !important;
        right: 0 !important;
        top: 0 !important;
        width: 100% !important;
        height: auto !important;
    }

    /* Hide iframe (page view) - mobile uses feed/text views only */
    body.NB-mobile-single-pane.NB-mobile-story-open .NB-feed-iframe {
        display: none !important;
    }

    /* Only show the feed story view, hide text/page views
       (needs #story_pane ID to beat reader.css specificity) */
    body.NB-mobile-single-pane.NB-mobile-story-open #story_pane .NB-feed-story-view {
        position: relative !important;
        left: 0 !important;
        top: 0 !important;
        width: 100% !important;
        height: auto !important;
        overflow: visible !important;
    }

    body.NB-mobile-single-pane.NB-mobile-story-open #story_pane .NB-text-view,
    body.NB-mobile-single-pane.NB-mobile-story-open #story_pane .NB-story-view {
        display: none !important;
    }

    /* Stories container flows naturally for scrolling */
    body.NB-mobile-single-pane.NB-mobile-story-open .NB-feed-stories-container {
        height: auto !important;
        overflow: visible !important;
    }

    /* Full-bleed story content on mobile */
    body.NB-mobile-single-pane.NB-mobile-story-open .NB-feed-story .NB-story-content-wrapper {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    body.NB-mobile-single-pane.NB-mobile-story-open .NB-feed-story .NB-story-content-positioning-wrapper {
        max-width: none !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    body.NB-mobile-single-pane.NB-mobile-story-open .NB-feed-story .NB-feed-story-content {
        margin-right: 0 !important;
        padding-left: 12px !important;
        padding-right: 12px !important;
    }

    body.NB-mobile-single-pane.NB-mobile-story-open .NB-feed-story .NB-feed-story-content img {
        max-width: calc(100% + 24px) !important;
        width: calc(100% + 24px) !important;
        margin-left: -12px !important;
        margin-right: -12px !important;
    }

    body.NB-dark.NB-mobile-single-pane.NB-mobile-story-open .right-pane #story_pane {
        background: #303030;
    }

    /* Hide layout divider borders that leak through on mobile */
    body.NB-mobile-single-pane .ui-layout-resizer,
    body.NB-mobile-single-pane .ui-layout-toggler {
        display: none !important;
    }

    /* Hide desktop feedbar nav and bottom taskbar */
    body.NB-mobile-single-pane.NB-show-reader .right-pane .content-north {
        display: none !important;
    }

    body.NB-mobile-single-pane.NB-show-reader .right-pane #story_taskbar {
        display: none !important;
    }

    /* Override layout plugin offsets so content-pane fills the right-pane */
    body.NB-mobile-single-pane.NB-show-reader .right-pane .content-pane {
        top: 0 !important;
        bottom: 0 !important;
        height: auto !important;
    }
}

/* ============================================= */
/* = Welcome Tryout Overrides (Unauth-only)     = */
/* ============================================= */

@media (max-width: 768px) {
    /* Keep splash/welcome hidden while tryout is active */
    body.NB-welcome-tryout-active .NB-splash,
    body.NB-welcome-tryout-active #NB-splash,
    body.NB-welcome-tryout-active #NB-splash-overlay,
    body.NB-welcome-tryout-active .NB-welcome-footer {
        display: none !important;
    }

    /* Hide the welcome.js signup banner when story view is showing (reader.js has its own) */
    body.NB-welcome-tryout-active.NB-show-reader .NB-tryout-signup-banner {
        display: none !important;
    }
}

/* ============================================= */
/* = Back to Feeds Toolbar (Mobile)             = */
/* ============================================= */

.NB-mobile-back-toolbar {
    display: none;
}

@media (max-width: 768px) {
    body.NB-mobile-single-pane.NB-show-reader .NB-mobile-back-toolbar {
        display: flex;
        align-items: center;
        flex-shrink: 0;
        gap: 10px;
        padding: 10px 14px;
        background: linear-gradient(135deg, #3d5a52 0%, #2d4a42 100%);
        border-bottom: 1px solid rgba(217, 166, 33, 0.2);
        cursor: pointer;
        user-select: none;
        transition: background 0.2s ease;
    }

    body.NB-mobile-single-pane.NB-show-reader .NB-mobile-back-toolbar:hover {
        background: linear-gradient(135deg, #4a6a60 0%, #3a5a50 100%);
    }

    body.NB-mobile-single-pane.NB-show-reader .NB-mobile-back-toolbar:active {
        background: linear-gradient(135deg, #345048 0%, #264038 100%);
    }
}

.NB-mobile-back-toolbar-arrow {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    position: relative;
}

.NB-mobile-back-toolbar-arrow::before {
    content: '';
    position: absolute;
    top: 3px;
    left: 2px;
    width: 7px;
    height: 7px;
    border-left: 2px solid rgba(255, 255, 255, 0.8);
    border-bottom: 2px solid rgba(255, 255, 255, 0.8);
    transform: rotate(45deg);
}

.NB-mobile-back-toolbar-text {
    font-family: 'Gotham Narrow A', 'Gotham Narrow B', sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    flex: 1;
}

.NB-mobile-back-toolbar-action {
    flex-shrink: 0;
    background: #D9A621;
    color: white;
    font-family: 'Gotham Narrow A', 'Gotham Narrow B', sans-serif;
    font-size: 11px;
    font-weight: 600;
    padding: 5px 12px;
    border-radius: 6px;
    transition: background 0.2s ease;
    letter-spacing: 0.2px;
}

.NB-mobile-back-toolbar:hover .NB-mobile-back-toolbar-action {
    background: #C4941B;
}

/* Dark mode */
@media (max-width: 768px) {
    body.NB-dark.NB-mobile-single-pane.NB-show-reader .NB-mobile-back-toolbar {
        background: linear-gradient(135deg, #1a2525 0%, #141e1e 100%);
        border-bottom-color: rgba(217, 166, 33, 0.15);
    }

    body.NB-dark.NB-mobile-single-pane.NB-show-reader .NB-mobile-back-toolbar:hover {
        background: linear-gradient(135deg, #1f2e2e 0%, #192626 100%);
    }
}

/* ========== */
/* = Header = */
/* ========== */

.NB-welcome-hero-wrap {
    position: relative;
    background: linear-gradient(180deg, #dcc8a0 0%, #c4a870 50%, #8a7048 100%);
    overflow: hidden;
}

.NB-welcome-header-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    background: transparent;
}

.NB-welcome-header {
    position: relative;
    z-index: 1;
    color: #2d261a;
}

/* Split hero: branding left, form right */
.NB-welcome-header-hero {
    position: relative;
    z-index: 1;
    max-width: 960px;
    margin: 0 auto;
    padding: 102px 48px 64px;
    display: flex;
    align-items: center;
    gap: 64px;
}

.NB-welcome-header-branding {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.NB-welcome-header .NB-welcome-header-logo {
    margin: 0 0 8px;
}

.NB-welcome-header .NB-welcome-header-logo img {
    height: 88px;
    width: 88px;
    filter: drop-shadow(0 2px 16px rgba(0, 0, 0, 0.15));
    transition: opacity .15s ease-in-out;
    opacity: .9;
}

.NB-welcome-header .NB-welcome-header-logo img:hover {
    opacity: 1;
}

.NB-welcome-header-title {
    font-family: 'Gotham Narrow A', 'Gotham Narrow B', sans-serif;
    font-size: 48px;
    font-weight: 700;
    color: #2d261a;
    text-shadow: 0 1px 8px rgba(255, 255, 255, 0.3);
    margin: 0 0 12px;
    line-height: 1.1;
}

.NB-welcome-header .NB-welcome-header-tagline {
    font-family: 'Chronicle Display A', 'Chronicle Display B', Georgia, serif;
    font-style: italic;
    font-size: 20px;
    color: rgba(45, 38, 26, 0.65);
    margin: 0 0 32px;
    line-height: 1.5;
    max-width: 400px;
}

/* ==================== */
/* = Frosted Formcard = */
/* ==================== */

.NB-welcome-header-formcard {
    width: 340px;
    flex-shrink: 0;
    backdrop-filter: blur(20px);
    background: rgba(255, 255, 255, 0.45);
    border: 0.5px solid rgba(255, 255, 255, 0.5);
    border-radius: 20px;
    padding: 24px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
}

@supports not (backdrop-filter: blur(20px)) {
    .NB-welcome-header-formcard {
        background: rgba(70, 55, 35, 0.85);
    }
}

/* Segmented control */
.NB-welcome-header-segment {
    display: flex;
    background: rgba(0, 0, 0, 0.06);
    border-radius: 10px;
    padding: 2px;
    margin: 0 0 20px;
    position: relative;
}

/* Sliding glass pill */
.NB-welcome-header-segment::before {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: calc(50% - 2px);
    height: calc(100% - 4px);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.8);
    box-shadow:
        0 1px 3px rgba(0, 0, 0, 0.1),
        0 0 0 0.5px rgba(0, 0, 0, 0.04);
    transform: translateX(0%);
    transition: transform 0.45s cubic-bezier(0.4, 0.0, 0.1, 1.0);
    z-index: 0;
}

.NB-welcome-header-segment.NB-segment-right::before {
    transform: translateX(100%);
}

.NB-segment-option {
    flex: 1;
    text-align: center;
    padding: 8px 0;
    font-family: 'Gotham Narrow A', 'Gotham Narrow B', sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: rgba(45, 38, 26, 0.45);
    border-radius: 8px;
    cursor: pointer;
    transition: color 0.3s ease;
    user-select: none;
    position: relative;
    z-index: 1;
}

.NB-segment-option:hover {
    color: rgba(45, 38, 26, 0.7);
}

.NB-segment-option.NB-active {
    color: #2d261a;
}

/* Form panels */
.NB-formcard-panel {
    display: none;
}

.NB-formcard-panel.NB-active {
    display: block;
}

/* Form field wrappers */
.NB-formcard-field {
    margin: 0 0 12px;
}

.NB-formcard-field label {
    display: none;
}

/* Form inputs */
.NB-welcome-header-formcard input[type=text],
.NB-welcome-header-formcard input[type=password],
.NB-welcome-header-formcard input[type=email] {
    width: 100%;
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 12px;
    padding: 14px 16px;
    font-family: 'Whitney SSm A', 'Whitney SSm B', sans-serif;
    font-size: 16px;
    color: #2d261a;
    outline: none;
    box-sizing: border-box;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.NB-welcome-header-formcard input[type=text]::placeholder,
.NB-welcome-header-formcard input[type=password]::placeholder,
.NB-welcome-header-formcard input[type=email]::placeholder {
    color: rgba(45, 38, 26, 0.35);
}

.NB-welcome-header-formcard input[type=text]:focus,
.NB-welcome-header-formcard input[type=password]:focus,
.NB-welcome-header-formcard input[type=email]:focus {
    border-color: rgba(217, 166, 33, 0.5);
    background: rgba(255, 255, 255, 0.75);
}

.NB-welcome-header-formcard input[type=hidden] {
    display: none;
}

/* Submit button */
.NB-welcome-submit-button {
    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: #2d261a;
    cursor: pointer;
    text-transform: capitalize;
    transition: background 0.2s ease;
    box-sizing: border-box;
    margin: 4px 0 0;
}

.NB-welcome-submit-button:hover {
    background: #C4941B;
}

.NB-welcome-submit-button:active {
    background: #B08518;
}

/* Forgot password */
.NB-welcome-forgot {
    display: block;
    text-align: center;
    margin: 14px 0 0;
    color: rgba(45, 38, 26, 0.5);
    font-size: 13px;
    text-decoration: none;
}

.NB-welcome-forgot:hover {
    color: #2d261a;
}

/* Error display */
.NB-formcard-errors {
    margin: 12px 0 0;
}

.NB-formcard-errors .errorlist {
    list-style: none;
    font-size: 13px;
    color: #F5A87A;
    font-weight: 600;
    padding: 0;
    margin: 0;
    text-align: center;
}

/* ================================ */
/* = Header Try-out / Actions     = */
/* ================================ */

.NB-welcome-header .NB-welcome-header-actions {
    margin: 0;
    float: none;
    background: none;
    border-radius: 0;
    overflow: visible;
}

.NB-welcome-header .NB-welcome-header-actions .NB-button-tryout {
    font-family: 'Gotham Narrow A', 'Gotham Narrow B', sans-serif;
    font-size: 15px;
    font-weight: 600;
    padding: 12px 24px;
    border: 1px solid rgba(45, 38, 26, 0.15);
    background: rgba(255, 255, 255, 0.25);
    color: rgba(45, 38, 26, 0.7);
    border-radius: 12px;
    text-shadow: none;
    box-shadow: none;
    float: none;
    margin: 0;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.1s ease;
}

.NB-welcome-header .NB-welcome-header-actions .NB-button-tryout:hover {
    background: rgba(255, 255, 255, 0.4);
    border-color: rgba(45, 38, 26, 0.25);
    color: #2d261a;
}

.NB-welcome-header .NB-welcome-header-actions .NB-button-tryout:active {
    background: rgba(255, 255, 255, 0.5);
    transform: scale(0.96);
}

.NB-welcome-header .NB-welcome-header-actions .NB-button-tryout img {
    filter: brightness(0);
    opacity: 0.5;
    transition: opacity 0.2s ease;
}

.NB-welcome-header .NB-welcome-header-actions .NB-button-tryout:hover img {
    opacity: 0.8;
}

/* Tryout chevron hint */
.NB-tryout-chevrons {
    display: flex;
    align-items: center;
    gap: 2px;
    padding: 3px 0;
    transition: width 0.35s cubic-bezier(0.4, 0, 0.2, 1),
                opacity 0.25s ease,
                margin 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.NB-tryout-chevron {
    display: block;
    width: 6px;
    height: 6px;
    flex-shrink: 0;
}

/* Left chevrons: point left, visible by default */
.NB-tryout-chevrons-left {
    width: 26px;
    opacity: 1;
    margin-right: -2px;
}

.NB-tryout-chevrons-left .NB-tryout-chevron {
    border-left: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: rotate(45deg);
    opacity: 0.15;
    animation: chevron-wave-left 2.4s ease-in-out infinite;
}

.NB-tryout-chevrons-left .NB-tryout-chevron:nth-child(1) { animation-delay: 0.3s; }
.NB-tryout-chevrons-left .NB-tryout-chevron:nth-child(2) { animation-delay: 0.15s; }
.NB-tryout-chevrons-left .NB-tryout-chevron:nth-child(3) { animation-delay: 0s; }

@keyframes chevron-wave-left {
    0%, 100% { opacity: 0.15; transform: rotate(45deg) translateX(0); }
    30% { opacity: 0.7; transform: rotate(45deg) translateX(-2px); }
    60% { opacity: 0.15; transform: rotate(45deg) translateX(0); }
}


/* Right chevrons: point right, collapsed by default */
.NB-tryout-chevrons-right {
    width: 0;
    opacity: 0;
    margin-left: 0;
}

.NB-tryout-chevrons-right .NB-tryout-chevron {
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: rotate(-45deg);
    opacity: 0.15;
}

/* Opening: left collapses first, then right expands */
.NB-welcome-tryout .NB-tryout-chevrons-left {
    width: 0;
    opacity: 0;
    margin-right: 0;
    transition-delay: 0s;
}

.NB-welcome-tryout .NB-tryout-chevrons-left .NB-tryout-chevron {
    animation: none;
}

.NB-welcome-tryout .NB-tryout-chevrons-right {
    width: 26px;
    opacity: 1;
    margin-left: -2px;
    transition-delay: 0.3s;
}

.NB-welcome-tryout .NB-tryout-chevrons-right .NB-tryout-chevron {
    animation: chevron-wave-right 2.4s ease-in-out infinite;
}

.NB-welcome-tryout .NB-tryout-chevrons-right .NB-tryout-chevron:nth-child(1) { animation-delay: 0.3s; }
.NB-welcome-tryout .NB-tryout-chevrons-right .NB-tryout-chevron:nth-child(2) { animation-delay: 0.15s; }
.NB-welcome-tryout .NB-tryout-chevrons-right .NB-tryout-chevron:nth-child(3) { animation-delay: 0s; }

@keyframes chevron-wave-right {
    0%, 100% { opacity: 0.15; transform: rotate(-45deg) translateX(0); }
    30% { opacity: 0.7; transform: rotate(-45deg) translateX(2px); }
    60% { opacity: 0.15; transform: rotate(-45deg) translateX(0); }
}


/* Closing: right collapses first, then left re-expands */
.NB-tryout-chevrons-left {
    transition-delay: 0.3s;
}

.NB-tryout-chevrons-right {
    transition-delay: 0s;
}

/* ======================== */
/* = Platform Showcase    = */
/* ======================== */

.NB-welcome-platforms {
    position: relative;
    z-index: 1;
    background: linear-gradient(180deg,
        rgba(255, 255, 255, 0) 0px,
        rgba(255, 255, 255, 0.2) 100px,
        rgba(255, 255, 255, 0.4) 300px,
        rgba(255, 255, 255, 0.6) 600px);
    padding: 80px 0 0;
    overflow: hidden;
}

/* Section header */
.NB-welcome-platforms-header {
    text-align: center;
    margin: 0 0 72px;
    padding: 24px 24px 0;
}

.NB-platforms-heading {
    font-family: 'Gotham Narrow A', 'Gotham Narrow B', sans-serif;
    font-size: 42px;
    font-weight: 700;
    color: #2d261a;
    margin: 0 0 16px;
    letter-spacing: -0.5px;
}

.NB-platforms-subheading {
    font-family: 'Chronicle Display A', 'Chronicle Display B', Georgia, serif;
    font-style: italic;
    font-size: 21px;
    color: rgba(45, 38, 26, 0.55);
    line-height: 1.5;
}

/* Each platform row */
.NB-welcome-platform {
    padding: 0 0 96px;
}

.NB-platform-inner {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 48px;
    display: flex;
    align-items: center;
    gap: 64px;
}

/* Reversed layout (screenshot on left) */
.NB-platform-reversed .NB-platform-inner {
    flex-direction: row-reverse;
}

/* Text column */
.NB-platform-text {
    flex: 0 0 320px;
}

.NB-platform-badge {
    font-family: 'Gotham Narrow A', 'Gotham Narrow B', sans-serif;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #8a6d20;
    margin: 0 0 16px;
    display: inline-block;
    padding: 4px 12px;
    border: 1px solid rgba(138, 109, 32, 0.3);
    border-radius: 4px;
    background: rgba(217, 166, 33, 0.12);
}

.NB-platform-title {
    font-family: 'Gotham Narrow A', 'Gotham Narrow B', sans-serif;
    font-size: 32px;
    font-weight: 700;
    color: #2d261a;
    line-height: 1.2;
    margin: 0 0 16px;
    letter-spacing: -0.3px;
}

.NB-platform-description {
    font-size: 16px;
    color: rgba(58, 46, 30, 0.75);
    line-height: 1.65;
}

/* Screenshot column */
.NB-platform-screenshot {
    flex: 1;
    min-width: 0;
}

.NB-platform-screenshot img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 8px;
}

/* Web platform: slightly larger screenshot area */
.NB-platform-web .NB-platform-screenshot {
    flex: 1.2;
}

/* Android image is nearly square, cap its height to match the others */
.NB-platform-android .NB-platform-screenshot img {
    max-height: 420px;
    width: auto;
    max-width: 100%;
}

/* ======================= */
/* = Responsive          = */
/* ======================= */

@media (max-width: 900px) {
    .NB-welcome .NB-splash-info.NB-splash-top {
        height: auto;
        padding: 0;
    }
    .NB-welcome-header-hero {
        flex-direction: column;
        padding: 78px 24px 48px;
        gap: 36px;
        align-items: stretch;
        text-align: center;
    }
    .NB-welcome-header .NB-welcome-header-tagline {
        max-width: none;
    }
    .NB-welcome-header-branding {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    .NB-welcome-header-formcard {
        width: 100%;
        max-width: 380px;
        align-self: center;
    }
    .NB-welcome-header .NB-welcome-header-actions {
        text-align: center;
    }
}

@media (max-width: 430px) {
    .NB-welcome-header-formcard {
        width: calc(100% - 24px);
    }
}

@media (max-width: 768px) {
    .NB-welcome-platforms {
        padding: 56px 0 0;
    }
    .NB-welcome-platforms-header {
        margin: 0 0 48px;
    }
    .NB-platforms-heading {
        font-size: 30px;
    }
    .NB-welcome-platform {
        padding: 0 0 56px;
    }
    .NB-platform-inner,
    .NB-platform-reversed .NB-platform-inner {
        flex-direction: column;
        padding: 0 24px;
        gap: 32px;
        text-align: center;
    }
    .NB-platform-text {
        flex: none;
        width: 100%;
    }
    .NB-platform-title {
        font-size: 26px;
    }
}



/* ============ */
/* = Features = */
/* ============ */

.NB-welcome-features-wrap {
    background: linear-gradient(180deg, #f5eedd 0%, #ebe0c2 100%);
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    padding-bottom: 0;
}

.NB-welcome-features-header {
    text-align: center;
    padding: 64px 24px 0;
}

.NB-features-heading {
    font-family: 'Gotham Narrow A', 'Gotham Narrow B', sans-serif;
    font-size: 40px;
    font-weight: 700;
    color: #3a2e1e;
    letter-spacing: -0.5px;
    margin: 0 0 12px;
}

.NB-features-subheading {
    font-family: 'Chronicle Display A', 'Chronicle Display B', Georgia, serif;
    font-style: italic;
    font-size: 18px;
    color: #8a7a5a;
    line-height: 1.5;
}

/* Feature groups — 2x2 mosaic */
.NB-welcome-feature-groups {
    margin: 48px 0 24px;
}

.NB-welcome-feature-groups > .NB-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 36px 48px;
}

/* Group headers styled like the reader's folder rows (templates/reader/welcome.xhtml) */
.NB-feature-group-folder {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 8px 12px;
    margin: 0 0 10px;
    border-radius: 7px;
    background: linear-gradient(180deg, #e8dcc0, #ddceac);
    border: 1px solid rgba(58, 46, 30, 0.14);
}

.NB-folder-caret {
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 6px solid #8a7a6a;
}

.NB-folder-icon {
    display: block;
    flex-shrink: 0;
}

.NB-feature-group-read  .NB-folder-icon { color: #c0a06a; }
.NB-feature-group-smart .NB-folder-icon { color: #7a9a5a; }
.NB-feature-group-share .NB-folder-icon { color: #8a6a9a; }
.NB-feature-group-everywhere .NB-folder-icon { color: #5a8aaa; }

.NB-folder-name {
    font-family: 'Gotham Narrow A', 'Gotham Narrow B', sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: #3a2e1e;
    flex: 1;
}

/* Count badge matching .unread_count_neutral in media/css/reader/reader.css */
.NB-folder-count {
    background-color: #B3B6AD;
    color: #FFF;
    font-size: 12px;
    font-weight: 700;
    line-height: 14px;
    padding: 2px 6px;
    border-radius: 4px;
    font-variant-numeric: tabular-nums;
}

.NB-feature-group-items {
    display: flex;
    flex-direction: column;
    gap: 0;
}

/* Individual feature item, styled like a story row in the reader */
a.NB-fgi {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 9px 12px;
    text-decoration: none;
    color: inherit;
    border-radius: 8px;
    transition: background-color 0.15s ease;
}

/* Hover matches the reader's selected-story gold highlight */
a.NB-fgi:hover {
    background-color: rgba(192, 160, 90, 0.16);
    text-decoration: none;
}

a.NB-fgi img {
    width: 96px;
    height: 96px;
    border-radius: 6px;
    object-fit: cover;
    object-position: left top;
    flex-shrink: 0;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
}

.NB-fgi-text {
    min-width: 0;
}

.NB-fgi-caption {
    font-family: 'Gotham Narrow A', 'Gotham Narrow B', sans-serif;
    font-weight: 700;
    font-size: 18px;
    color: #3a2e1e;
    line-height: 1.2;
}

.NB-fgi-desc {
    color: #8a7a6a;
    font-size: 15px;
    line-height: 1.45;
    margin-top: 3px;
}

/* =========== */
/* = Pricing = */
/* =========== */

.NB-welcome-pricing {
    overflow: hidden;
    clear: both;
    margin: 0;
    padding: 48px 0;
    background: linear-gradient(180deg, #f5eedd 0%, #ebe0c2 100%);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.NB-welcome-pricing h2 {
    text-align: center;
    font-family: 'Gotham Narrow A', 'Gotham Narrow B', sans-serif;
    font-size: 40px;
    font-weight: 700;
    margin: 0 0 12px;
    color: #3a2e1e;
    letter-spacing: -0.5px;
}

.NB-welcome-pricing>.NB-inner>p {
    text-align: center;
    line-height: 26px;
    font-size: 16px;
    color: rgba(58, 46, 30, 0.6);
    margin: 0 auto 24px;
    max-width: 750px;
}

.NB-pricing-trial-callout {
    background: rgba(16, 185, 129, 0.08);
    border: 1px solid rgba(16, 185, 129, 0.25);
    border-radius: 8px;
    padding: 14px 20px;
    margin: 0 auto 32px;
    text-align: center;
    font-size: 15px;
    color: #0d7c5a;
    max-width: 580px;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.05);
}

.NB-pricing-trial-callout strong {
    color: #0a6b4d;
    font-weight: 600;
}

/* Tier Card Layout */
.NB-pricing-tiers {
    display: flex;
    flex-direction: row;
    gap: 16px;
    align-items: stretch;
}

.NB-pricing-tier {
    flex: 1;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow:
        0 2px 4px rgba(0, 0, 0, 0.04),
        0 8px 24px rgba(0, 0, 0, 0.06);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.NB-pricing-tier:hover {
    transform: translateY(-4px);
    box-shadow:
        0 4px 8px rgba(0, 0, 0, 0.06),
        0 16px 40px rgba(0, 0, 0, 0.1);
}

/* Premium tier proportions: 34-38-28 */
.NB-pricing-tier-premium {
    flex: 34;
}

.NB-pricing-tier-archive {
    flex: 38;
}

.NB-pricing-tier-pro {
    flex: 28;
}

/* Bottom row: Free and Self-Hosted side by side */
.NB-pricing-tiers-bottom {
    display: flex;
    flex-direction: row;
    gap: 16px;
    margin-top: 16px;
}

.NB-pricing-tiers-bottom .NB-pricing-tier {
    flex: 1;
}

/* Tier Headers */
.NB-pricing-tier-header {
    padding: 20px 16px;
    text-align: center;
}

/* Free tier header */
.NB-pricing-tier-free .NB-pricing-tier-header {
    background: linear-gradient(135deg, #6b7280 0%, #4b5563 100%);
    padding: 16px;
}

.NB-pricing-tier-free .NB-pricing-tier-name {
    color: white;
    font-size: 18px;
    font-weight: 600;
    margin: 0;
}

.NB-pricing-tier-free .NB-pricing-tier-features {
    background: rgba(0, 0, 0, 0.02);
    padding: 16px 20px;
    flex: 1;
}

.NB-pricing-tier-free .NB-pricing-tier-features li {
    color: rgba(58, 46, 30, 0.7);
    padding: 8px 0;
    font-size: 14px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    line-height: 1.4;
}

.NB-pricing-tier-free .NB-pricing-tier-features li span {
    flex: 1;
}

.NB-pricing-tier-free .NB-pricing-bullet {
    width: 18px;
    height: 18px;
    background-image: url(/media/embed/icons/nouns/accept.svg);
    background-size: 18px;
    background-repeat: no-repeat;
    filter: invert(48%) sepia(79%) saturate(2476%) hue-rotate(86deg) brightness(95%) contrast(100%);
    flex-shrink: 0;
    margin-top: 1px;
}

/* Self-hosted tier */
.NB-pricing-tier-selfhosted .NB-pricing-tier-header {
    background: linear-gradient(135deg, #475569 0%, #334155 100%);
    padding: 14px 16px;
}

.NB-pricing-tier-selfhosted .NB-pricing-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-pricing-tier-selfhosted .NB-pricing-tier-name {
    color: white;
    font-size: 16px;
    font-weight: 600;
    margin: 0;
}

.NB-pricing-tier-selfhosted .NB-pricing-tier-features {
    background: rgba(0, 0, 0, 0.02);
    padding: 16px 20px;
    flex: 1;
}

.NB-pricing-tier-selfhosted .NB-pricing-tier-features li {
    color: rgba(58, 46, 30, 0.7);
    padding: 8px 0;
    font-size: 14px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    line-height: 1.4;
}

.NB-pricing-tier-selfhosted .NB-pricing-bullet {
    width: 18px;
    height: 18px;
    background-image: url(/media/embed/icons/nouns/accept.svg);
    background-size: 18px;
    background-repeat: no-repeat;
    filter: invert(48%) sepia(79%) saturate(2476%) hue-rotate(86deg) brightness(95%) contrast(100%);
    flex-shrink: 0;
    margin-top: 1px;
}

.NB-pricing-tier-actions {
    padding: 12px 16px;
    background: rgba(0, 0, 0, 0.02);
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.NB-pricing-github-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 8px 12px;
    background: #24292e;
    color: white;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    text-decoration: none;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.NB-pricing-github-button:hover {
    background: #000;
    color: white;
}

.NB-pricing-github-button .NB-github-icon {
    width: 16px;
    height: 16px;
    filter: invert(1);
}

/* Premium tier header - Green gradient */
.NB-pricing-tier-premium .NB-pricing-tier-header {
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
}

/* Archive tier header - Teal gradient */
.NB-pricing-tier-archive .NB-pricing-tier-header {
    background: linear-gradient(135deg, #14b8a6 0%, #0d9488 100%);
}

/* Pro tier header - Orange gradient */
.NB-pricing-tier-pro .NB-pricing-tier-header {
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
}

.NB-pricing-tier-name {
    font-size: 20px;
    font-weight: 700;
    color: white;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.NB-pricing-tier-price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 2px;
}

.NB-pricing-tier-price-amount {
    font-size: 42px;
    font-weight: 800;
    color: white;
    line-height: 1;
}

.NB-pricing-tier-price-period {
    font-size: 16px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.85);
}

/* Feature lists for paid tiers */
.NB-pricing-tier-features {
    padding: 16px 20px;
    list-style: none;
    margin: 0;
    flex: 1;
}

.NB-pricing-tier-premium .NB-pricing-tier-features,
.NB-pricing-tier-archive .NB-pricing-tier-features,
.NB-pricing-tier-pro .NB-pricing-tier-features {
    background: rgba(0, 0, 0, 0.02);
}

.NB-pricing-tier-features li {
    padding: 8px 0;
    font-size: 14px;
    color: rgba(58, 46, 30, 0.7);
    display: flex;
    align-items: flex-start;
    gap: 10px;
    line-height: 1.4;
}

.NB-pricing-tier-features li:last-child {
    padding-bottom: 0;
}

/* "Everything in X, plus:" header */
.NB-pricing-tier-features li.NB-pricing-tier-includes {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding-bottom: 12px;
    margin-bottom: 4px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    display: block;
}

.NB-pricing-tier-premium .NB-pricing-tier-features li.NB-pricing-tier-includes {
    color: #16a34a;
}

.NB-pricing-tier-archive .NB-pricing-tier-features li.NB-pricing-tier-includes {
    color: #0d9488;
}

.NB-pricing-tier-pro .NB-pricing-tier-features li.NB-pricing-tier-includes {
    color: #ea580c;
}

/* Bullet icons */
.NB-pricing-bullet {
    width: 18px;
    height: 18px;
    background-size: 18px;
    background-repeat: no-repeat;
    background-position: center;
    flex-shrink: 0;
    margin-top: 1px;
}

/* Premium tier bullets with vivid colors */
.NB-pricing-tier-premium .NB-pricing-tier-features li.NB-1 .NB-pricing-bullet {
    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-pricing-tier-premium .NB-pricing-tier-features li.NB-2 .NB-pricing-bullet {
    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-pricing-tier-premium .NB-pricing-tier-features li.NB-3 .NB-pricing-bullet {
    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-pricing-tier-premium .NB-pricing-tier-features li.NB-4 .NB-pricing-bullet {
    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-pricing-tier-premium .NB-pricing-tier-features li.NB-5 .NB-pricing-bullet {
    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-pricing-tier-premium .NB-pricing-tier-features li.NB-6 .NB-pricing-bullet {
    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-pricing-tier-premium .NB-pricing-tier-features li.NB-7 .NB-pricing-bullet {
    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-pricing-tier-premium .NB-pricing-tier-features li.NB-8 .NB-pricing-bullet {
    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-pricing-tier-premium .NB-pricing-tier-features li.NB-9 .NB-pricing-bullet {
    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-pricing-tier-premium .NB-pricing-tier-features li.NB-10 .NB-pricing-bullet {
    background-image: url(/media/embed/icons/nouns/writing.svg);
    filter: invert(37%) sepia(93%) saturate(2000%) hue-rotate(200deg) brightness(95%) contrast(100%);
    /* blue */
}

/* Archive tier bullets with vivid colors */
.NB-pricing-tier-archive .NB-pricing-tier-features li.NB-1 .NB-pricing-bullet {
    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-pricing-tier-archive .NB-pricing-tier-features li.NB-2 .NB-pricing-bullet {
    background-image: url(/media/embed/icons/nouns/web-feed.svg);
    filter: invert(35%) sepia(80%) saturate(2000%) hue-rotate(220deg) brightness(90%) contrast(100%);
    /* indigo-purple */
}

.NB-pricing-tier-archive .NB-pricing-tier-features li.NB-3 .NB-pricing-bullet {
    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-pricing-tier-archive .NB-pricing-tier-features li.NB-4 .NB-pricing-bullet {
    background-image: url(/media/img/icons/nouns/briefing.svg);
    filter: invert(25%) sepia(85%) saturate(2500%) hue-rotate(280deg) brightness(85%) contrast(105%);
    /* violet */
}

.NB-pricing-tier-archive .NB-pricing-tier-features li.NB-5 .NB-pricing-bullet {
    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-pricing-tier-archive .NB-pricing-tier-features li.NB-6 .NB-pricing-bullet {
    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-pricing-tier-archive .NB-pricing-tier-features li.NB-7 .NB-pricing-bullet {
    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-pricing-tier-archive .NB-pricing-tier-features li.NB-8 .NB-pricing-bullet {
    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-pricing-tier-archive .NB-pricing-tier-features li.NB-9 .NB-pricing-bullet {
    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-pricing-tier-archive .NB-pricing-tier-features li.NB-10 .NB-pricing-bullet {
    background-image: url(/media/img/icons/phosphor-fill/bell-ringing-fill.svg);
    filter: invert(60%) sepia(85%) saturate(2000%) hue-rotate(20deg) brightness(100%) contrast(100%);
    /* amber */
}

.NB-pricing-tier-archive .NB-pricing-tier-features li.NB-11 .NB-pricing-bullet {
    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-pricing-tier-archive .NB-pricing-tier-features li.NB-12 .NB-pricing-bullet {
    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-pricing-tier-archive .NB-pricing-tier-features li.NB-13 .NB-pricing-bullet {
    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-pricing-tier-archive .NB-pricing-tier-features li.NB-14 .NB-pricing-bullet {
    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-pricing-tier-archive .NB-pricing-tier-features li.NB-15 .NB-pricing-bullet {
    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-pricing-tier-archive .NB-pricing-tier-features li.NB-16 .NB-pricing-bullet {
    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-pricing-tier-archive .NB-pricing-tier-features li.NB-17 .NB-pricing-bullet {
    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 bullets with vivid colors */
.NB-pricing-tier-pro .NB-pricing-tier-features li.NB-1 .NB-pricing-bullet {
    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-pricing-tier-pro .NB-pricing-tier-features li.NB-2 .NB-pricing-bullet {
    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-pricing-tier-pro .NB-pricing-tier-features li.NB-3 .NB-pricing-bullet {
    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-pricing-tier-pro .NB-pricing-tier-features li.NB-4 .NB-pricing-bullet {
    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-pricing-tier-pro .NB-pricing-tier-features li.NB-5 .NB-pricing-bullet {
    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-pricing-tier-pro .NB-pricing-tier-features li.NB-6 .NB-pricing-bullet {
    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 */
}

/* Coming soon header */
.NB-pricing-tier-features li.NB-pricing-tier-upcoming-header {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #9ca3af;
    padding-top: 12px;
    margin-top: 8px;
    border-top: 1px dashed rgba(0, 0, 0, 0.1);
    display: block;
}

/* Upcoming features - muted */
.NB-pricing-tier-features li.NB-upcoming {
    opacity: 0.6;
}

.NB-pricing-tier-features li.NB-upcoming .NB-pricing-bullet {
    filter: grayscale(100%) opacity(50%);
}

/* Pricing compare link */
.NB-pricing-compare-link {
    text-align: center;
    margin: 24px 0 0;
    font-size: 15px;
}

.NB-pricing-compare-link a {
    color: #FBDB9B;
}

.NB-pricing-compare-link a:hover {
    color: white;
}

/* See all features link (legacy) */
.NB-features-seeall {
    font-size: 14px;
    font-weight: 600;
}

/* Banner buttons — shared */
.NB-welcome-banner-button-wrap {
    text-align: center;
    padding: 0 24px 48px;
}

.NB-welcome-banner-button {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-family: 'Gotham Narrow A', 'Gotham Narrow B', sans-serif;
    font-size: 16px;
    font-weight: 600;
    padding: 14px 28px;
    border-radius: 12px;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.1s ease;
}

.NB-welcome-banner-button:hover {
    text-decoration: none;
}

.NB-welcome-banner-button:active {
    transform: scale(0.96);
}

.NB-banner-arrow {
    transition: transform 0.2s ease;
}

.NB-welcome-banner-button:hover .NB-banner-arrow {
    transform: translateX(3px);
}

/* Features banner */
.NB-banner-features {
    color: #6b5a3a;
    background: rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.NB-banner-features:hover {
    color: #3a2e1e;
    background: rgba(0, 0, 0, 0.08);
    border-color: rgba(0, 0, 0, 0.18);
}

/* Pricing banner — on warm beige bg */
.NB-welcome-pricing .NB-welcome-banner-button-wrap {
    padding: 32px 24px 0;
}

.NB-banner-pricing {
    color: #6b5a3a;
    background: rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.NB-banner-pricing:hover {
    color: #3a2e1e;
    background: rgba(0, 0, 0, 0.08);
    border-color: rgba(0, 0, 0, 0.18);
}

/* Lyric section */
.NB-pricing-lyric {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-top: 32px;
    padding: 20px 24px;
    background: white;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.NB-pricing-lyric .NB-lyric-photo {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid rgba(0, 0, 0, 0.08);
    flex-shrink: 0;
}

.NB-pricing-lyric .NB-lyric-text {
    flex: 1;
}

.NB-pricing-lyric .NB-lyric-title {
    font-size: 16px;
    font-weight: 600;
    color: #3a2e1e;
    margin-bottom: 4px;
}

.NB-pricing-lyric .NB-lyric-description {
    font-size: 14px;
    color: rgba(58, 46, 30, 0.6);
    line-height: 1.5;
}

/* Responsive */
@media (max-width: 960px) {
    .NB-pricing-tiers {
        flex-direction: column;
    }

    .NB-pricing-tier {
        flex: none;
        width: 100%;
    }

    .NB-pricing-tiers-bottom {
        flex-direction: row;
    }

    .NB-pricing-tiers-bottom .NB-pricing-tier {
        flex: 1;
    }
}

@media (max-width: 600px) {
    .NB-pricing-tiers-bottom {
        flex-direction: column;
    }

    .NB-pricing-tiers-bottom .NB-pricing-tier {
        flex: none;
        width: 100%;
    }
}

/* ================== */
/* = Bottom Actions = */
/* ================== */

.NB-welcome-bottomactions {
    clear: both;
    margin: 0;
    padding: 64px 0;
    background: linear-gradient(180deg, #ebe0c2 0%, #f5eedd 100%);
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    text-align: center;
}

.NB-welcome-bottomactions-heading {
    font-family: 'Gotham Narrow A', 'Gotham Narrow B', sans-serif;
    font-size: 28px;
    font-weight: 700;
    color: #3a2e1e;
    margin: 0 0 28px;
    letter-spacing: -0.3px;
}

.NB-welcome-bottomactions-buttons {
    display: flex;
    justify-content: center;
    gap: 16px;
}

/* Shared button base */
.NB-welcome-bottomactions .NB-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: 'Gotham Narrow A', 'Gotham Narrow B', sans-serif;
    font-size: 16px;
    font-weight: 600;
    padding: 14px 28px;
    border-radius: 12px;
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.1s ease;
    text-shadow: none;
    box-shadow: none;
    float: none;
    margin: 0;
    text-decoration: none;
}

/* Ghost / outline style — try out */
.NB-welcome-bottomactions .NB-bottomaction-tryout {
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(0, 0, 0, 0.15);
    color: #3a2e1e;
}

.NB-welcome-bottomactions .NB-bottomaction-tryout:hover {
    background: rgba(255, 255, 255, 0.7);
    border-color: rgba(0, 0, 0, 0.25);
    color: #1a1408;
}

.NB-welcome-bottomactions .NB-bottomaction-tryout:active {
    background: rgba(255, 255, 255, 0.85);
}

.NB-welcome-bottomactions .NB-bottomaction-tryout img {
    opacity: 0.7;
    transition: opacity 0.2s ease;
}

.NB-welcome-bottomactions .NB-bottomaction-tryout:hover img {
    opacity: 1;
}

/* Gold primary — sign up */
.NB-welcome-bottomactions .NB-bottomaction-signup {
    background: #D9A621;
    border: 1px solid transparent;
    color: white;
}

.NB-welcome-bottomactions .NB-bottomaction-signup:hover {
    background: #C4941B;
}

.NB-welcome-bottomactions .NB-bottomaction-signup:active {
    background: #B08518;
}

@media (max-width: 500px) {
    .NB-welcome-bottomactions-buttons {
        flex-direction: column;
        align-items: center;
    }
    .NB-welcome-bottomactions-heading {
        font-size: 22px;
        padding: 0 24px;
    }
}

/* ============ */
/* = Welcome FAQ = */
/* =============== */

.NB-welcome-faq {
    overflow: hidden;
    clear: both;
    padding: 48px 0;
    background: linear-gradient(180deg, #f5eedd 0%, #ebe0c2 100%);
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.NB-welcome-faq h2 {
    text-align: center;
    font-family: 'Gotham Narrow A', 'Gotham Narrow B', sans-serif;
    font-size: 32px;
    font-weight: 700;
    margin: 0 0 28px;
    color: #3a2e1e;
    letter-spacing: -0.3px;
}

.NB-welcome-faq-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    max-width: 900px;
    margin: 0 auto;
}

.NB-welcome-faq-item {
    padding: 20px 24px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 10px;
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.NB-welcome-faq-item h3 {
    font-family: 'Gotham Narrow A', 'Gotham Narrow B', sans-serif;
    font-size: 15px;
    font-weight: 700;
    color: #3a2e1e;
    margin: 0 0 6px;
    line-height: 1.3;
}

.NB-welcome-faq-item p {
    font-size: 14px;
    color: rgba(58, 46, 30, 0.6);
    line-height: 1.55;
    margin: 0;
}

.NB-welcome-faq-item p a {
    color: #8a6d3b;
    text-decoration: none;
}

.NB-welcome-faq-item p a:hover {
    color: #3a2e1e;
}

.NB-welcome-faq-compare-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 10px;
    font-family: 'Gotham Narrow A', 'Gotham Narrow B', sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: #8a6d3b;
    text-decoration: none;
    padding: 5px 12px;
    border-radius: 6px;
    background: rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.08);
    transition: color 0.15s ease, background-color 0.15s ease, border-color 0.15s ease;
}

.NB-welcome-faq-compare-link:hover {
    color: #3a2e1e;
    background: rgba(0, 0, 0, 0.08);
    border-color: rgba(0, 0, 0, 0.15);
}

.NB-welcome-faq-compare-link .NB-banner-arrow {
    transition: transform 0.15s ease;
}

.NB-welcome-faq-compare-link:hover .NB-banner-arrow {
    transform: translateX(3px);
}

.NB-welcome-faq .NB-welcome-banner-button-wrap {
    margin: 20px 0 0;
    padding-bottom: 0;
}

.NB-banner-faq {
    color: #6b5a3a;
    background: rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.NB-banner-faq:hover {
    color: #3a2e1e;
    background: rgba(0, 0, 0, 0.08);
    border-color: rgba(0, 0, 0, 0.18);
}

/* ================= */
/* = Testimonials  = */
/* ================= */

.NB-welcome-testimonials {
    overflow: hidden;
    clear: both;
    padding: 56px 0 48px;
    position: relative;
    background: #f3ebd5;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.NB-testimonials-heading {
    position: relative;
    max-width: 960px;
    margin: 0 auto 32px;
    padding: 0 24px;
    box-sizing: border-box;
}

.NB-welcome-testimonials h2 {
    text-align: center;
    font-family: 'Gotham Narrow A', 'Gotham Narrow B', sans-serif;
    font-size: 32px;
    font-weight: 700;
    margin: 0;
    color: #3a2e1e;
    letter-spacing: -0.3px;
}

.NB-testimonials-nav {
    position: absolute;
    right: 24px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    gap: 6px;
}

.NB-testimonials-nav-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid rgba(0, 0, 0, 0.12);
    background: rgba(0, 0, 0, 0.04);
    color: rgba(58, 46, 30, 0.6);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
    padding: 0;
}

.NB-testimonials-nav-btn:hover {
    background: rgba(0, 0, 0, 0.08);
    border-color: rgba(0, 0, 0, 0.2);
    color: #3a2e1e;
}

.NB-testimonials-nav-btn:active {
    background: rgba(0, 0, 0, 0.12);
    transform: scale(0.96);
}

.NB-testimonials-nav-btn svg {
    display: block;
}

.NB-testimonials-viewport {
    position: relative;
}

.NB-testimonials-track {
    display: flex;
    gap: 16px;
    padding: 8px 0;
    width: max-content;
    will-change: transform;
}

.NB-testimonials-row-1 {
    animation: nb-scroll-left 560s linear infinite;
}

.NB-testimonials-row-2 {
    animation: nb-scroll-right 540s linear infinite;
}

.NB-testimonials-row-3 {
    animation: nb-scroll-left 540s linear infinite;
}

.NB-testimonials-row-4 {
    animation: nb-scroll-right 520s linear infinite;
}

@keyframes nb-scroll-left {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

@keyframes nb-scroll-right {
    0%   { transform: translateX(-50%); }
    100% { transform: translateX(0); }
}

.NB-testimonials-viewport:hover .NB-testimonials-track {
    animation-play-state: paused;
}

@media (prefers-reduced-motion: reduce) {
    .NB-testimonials-track {
        animation-play-state: paused !important;
    }
}

.NB-testimonial-card {
    flex-shrink: 0;
    width: 300px;
    padding: 20px 22px;
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04), 0 6px 16px rgba(0, 0, 0, 0.03);
    transition: box-shadow 0.2s ease, transform 0.2s ease;
    text-decoration: none;
    color: inherit;
    display: block;
    cursor: pointer;
}

.NB-testimonial-card:hover {
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06), 0 10px 28px rgba(0, 0, 0, 0.06);
    transform: translateY(-2px);
}

.NB-testimonial-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}

.NB-testimonial-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 1.5px solid rgba(0, 0, 0, 0.06);
    background: #ebe0c2;
}

.NB-testimonial-identity {
    min-width: 0;
}

.NB-testimonial-name {
    font-family: 'Gotham Narrow A', 'Gotham Narrow B', sans-serif;
    font-size: 14px;
    font-weight: 700;
    color: #3a2e1e;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.NB-testimonial-role {
    font-family: 'Gotham Narrow A', 'Gotham Narrow B', sans-serif;
    font-size: 12px;
    font-weight: 400;
    color: rgba(58, 46, 30, 0.5);
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.NB-testimonial-text {
    font-size: 14px;
    line-height: 1.55;
    color: rgba(58, 46, 30, 0.75);
}

/* Edge fade overlays */
.NB-testimonials-fade {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 100px;
    z-index: 2;
    pointer-events: none;
}

.NB-testimonials-fade-left {
    left: 0;
    background: linear-gradient(to right, #f3ebd5 0%, rgba(243, 235, 213, 0) 100%);
}

.NB-testimonials-fade-right {
    right: 0;
    background: linear-gradient(to left, #f3ebd5 0%, rgba(243, 235, 213, 0) 100%);
}

/* = Compare = */
/* =========== */

.NB-welcome-compare {
    padding: 36px 0 44px;
    text-align: center;
}

.NB-welcome-compare-header {
    display: flex;
    align-items: center;
    gap: 14px;
    max-width: 300px;
    margin: 48px auto 22px;
}

.NB-welcome-compare-rule {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(58, 46, 30, 0.15), transparent);
}

.NB-welcome-compare-label {
    font-family: 'Gotham Narrow A', 'Gotham Narrow B', sans-serif;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: rgba(58, 46, 30, 0.32);
    white-space: nowrap;
}

/* Versus row */
.NB-welcome-compare-versus {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 4px 24px;
    margin: 0 auto 14px;
    max-width: 800px;
}

.NB-compare-vs-link {
    display: inline-flex;
    align-items: baseline;
    gap: 5px;
    text-decoration: none;
    padding: 4px 0;
}

.NB-compare-vs-link:hover {
    text-decoration: none;
}

.NB-compare-vs-tag {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    color: rgba(58, 46, 30, 0.25);
    transition: color 0.15s ease;
}

.NB-compare-vs-name {
    font-family: 'Gotham Narrow A', 'Gotham Narrow B', sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: #3a2e1e;
    border-bottom: 1.5px solid transparent;
    padding-bottom: 1px;
    transition: color 0.15s ease, border-bottom-color 0.15s ease;
}

.NB-compare-vs-link:hover .NB-compare-vs-name {
    color: #b5590a;
    border-bottom-color: rgba(181, 89, 10, 0.3);
}

.NB-compare-vs-link:hover .NB-compare-vs-tag {
    color: rgba(181, 89, 10, 0.45);
}

/* Alternatives row */
.NB-welcome-compare-alts {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2px 0;
    max-width: 700px;
    margin: 0 auto;
}

.NB-welcome-compare-alts a {
    font-size: 13px;
    color: rgba(58, 46, 30, 0.45);
    text-decoration: none;
    padding: 2px 0;
    transition: color 0.15s ease;
}

.NB-welcome-compare-alts a:hover {
    color: #3a2e1e;
    text-decoration: none;
}

.NB-welcome-compare-alts a + a::before {
    content: '\00b7';
    margin: 0 10px;
    color: rgba(58, 46, 30, 0.18);
    pointer-events: none;
}

/* Dark mode */
.NB-dark .NB-welcome-compare-rule {
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.12), transparent);
}

.NB-dark .NB-welcome-compare-label {
    color: rgba(255, 255, 255, 0.3);
}

.NB-dark .NB-compare-vs-tag {
    color: rgba(255, 255, 255, 0.25);
}

.NB-dark .NB-compare-vs-name {
    color: rgba(255, 255, 255, 0.85);
}

.NB-dark .NB-compare-vs-link:hover .NB-compare-vs-name {
    color: #f0a050;
    border-bottom-color: rgba(240, 160, 80, 0.3);
}

.NB-dark .NB-compare-vs-link:hover .NB-compare-vs-tag {
    color: rgba(240, 160, 80, 0.45);
}

.NB-dark .NB-welcome-compare-alts a {
    color: rgba(255, 255, 255, 0.35);
}

.NB-dark .NB-welcome-compare-alts a:hover {
    color: rgba(255, 255, 255, 0.8);
}

.NB-dark .NB-welcome-compare-alts a + a::before {
    color: rgba(255, 255, 255, 0.12);
}

@media (max-width: 768px) {
    .NB-welcome-compare-versus {
        gap: 2px 16px;
    }
    .NB-compare-vs-name {
        font-size: 15px;
    }
    .NB-welcome-compare-alts a {
        font-size: 12px;
    }
    .NB-welcome-compare-alts a + a::before {
        margin: 0 7px;
    }
}

@media (max-width: 480px) {
    .NB-welcome-compare-versus {
        flex-direction: column;
        gap: 2px;
        align-items: center;
    }
    .NB-welcome-compare-alts {
        flex-direction: column;
        align-items: center;
    }
    .NB-welcome-compare-alts a + a::before {
        content: none;
    }
}

/* = Activity = */
/* ============ */

.NB-welcome-activity {
    overflow: hidden;
    clear: both;
    padding: 48px 0 56px;
    background: linear-gradient(180deg, #faf6ee 0%, #f2ead8 100%);
}

.NB-welcome-activity h2 {
    font-family: 'Gotham Narrow A', 'Gotham Narrow B', sans-serif;
    font-size: 32px;
    font-weight: 700;
    color: #3a2e1e;
    margin: 0 0 28px;
    text-align: center;
    letter-spacing: -0.3px;
}

.NB-welcome-activity .NB-module {
    width: 47%;
}

.NB-welcome-activity .NB-module-features {
    float: right;
}

.NB-welcome-activity .NB-module-stats {
    float: left;
    margin-right: 3%;
}

.NB-welcome-activity .NB-module .NB-module-header {
    display: none;
}

/* Section sub-headers (Past day, New Features, etc.) */
.NB-welcome-activity .NB-module-content-header {
    font-family: 'Gotham Narrow A', 'Gotham Narrow B', sans-serif;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: rgba(58, 46, 30, 0.4);
    margin: 0 0 12px;
    padding: 0;
}

/* Stat boxes */
.NB-welcome-activity .NB-module .NB-module-stats-counts {
    overflow: hidden;
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 10px;
}

.NB-welcome-activity .NB-module-stats .NB-module-content-header-hour {
    margin-top: 32px;
}

/* Stat numbers -- bigger and bolder */
.NB-welcome-activity .NB-module-stats-count-number {
    font-size: 28px;
    font-weight: 800;
    color: #3a2e1e;
    text-shadow: none;
    letter-spacing: -0.5px;
    line-height: 1.1;
}

.NB-welcome-activity .NB-module-stats-count-number small {
    font-size: 16px;
    font-weight: 600;
    color: rgba(58, 46, 30, 0.45);
}

/* Stat labels */
.NB-welcome-activity .NB-module-stats-count-description {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.8px;
    color: rgba(58, 46, 30, 0.4);
    margin: 6px 0 0;
}

.NB-welcome-activity .NB-module-stats-count {
    float: left;
    width: 33%;
    box-sizing: border-box;
    padding: 16px 8px;
    border-bottom: none;
}

/* Sparkline charts -- taller, warmer */
.NB-welcome-activity .NB-module-stats-count-graph {
    width: auto;
    margin: 0 auto 8px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    height: 40px;
}

.NB-welcome-activity .NB-graph-value {
    width: 5px;
    height: 40px;
    padding: 0 0.5px;
    margin: 0;
    position: relative;
}

.NB-welcome-activity .NB-graph-bar {
    width: 5px;
    border-radius: 2px 2px 0 0;
    background-color: darkblue;
    transition: background-color 0.15s ease;
}

.NB-welcome-activity .NB-graph-value:hover .NB-graph-bar {
    background-color: #0000d4;
}

/* Feature tables */
.NB-welcome-activity .NB-module-features table {
    margin: 0 0 24px;
}

.NB-welcome-activity .NB-module-features .NB-module-feature td {
    padding: 8px 0;
    vertical-align: top;
}

.NB-welcome-activity .NB-module-features .NB-module-feature .NB-module-feature-date {
    font-size: 11px;
    color: rgba(58, 46, 30, 0.4);
    line-height: 20px;
    padding: 8px 12px 8px 0;
    white-space: nowrap;
    width: 90px;
    min-width: 90px;
}

.NB-welcome-activity .NB-module-features .NB-module-feature .NB-module-feature-description {
    font-size: 13px;
    line-height: 20px;
    color: #3a2e1e;
    padding: 8px 0;
}

.NB-welcome-activity .NB-module-features .NB-module-feature .NB-module-feature-description a {
    color: #405BA8;
    transition: color 0.15s ease;
}

.NB-welcome-activity .NB-module-features .NB-module-feature .NB-module-feature-description a:hover {
    color: #A85B40;
}

/* Feedback tags -- pill-shaped, more readable */
.NB-welcome-activity .NB-module-features .NB-module-feature .NB-module-feature-tag {
    font-size: 9px;
    padding: 2px 7px;
    border-radius: 9px;
    font-weight: 700;
    letter-spacing: 0.3px;
    margin-right: 6px;
    vertical-align: middle;
}

.NB-welcome-activity .NB-module-features .NB-module-feature .NB-module-feature-tag.NB-tag-problem {
    background-color: #d4863a;
}

.NB-welcome-activity .NB-module-features .NB-module-feature .NB-module-feature-tag.NB-tag-praise {
    background-color: #c9a940;
}

.NB-welcome-activity .NB-module-features .NB-module-feature .NB-module-feature-tag.NB-tag-idea {
    background-color: #7aaa4a;
}

.NB-welcome-activity .NB-module-features .NB-module-feature .NB-module-feature-tag.NB-tag-question {
    background-color: #5a92b8;
}

.NB-welcome-activity .NB-module-features .NB-module-feature .NB-module-feature-tag.NB-tag-updates {
    background-color: #0f8a80;
}

.NB-welcome-activity .NB-module-features .NB-feedback-table {
    margin-bottom: 0;
}

/* ========== */
/* = Footer = */
/* ========== */

.NB-welcome-footer {
    overflow: hidden;
    clear: both;
    padding: 42px 0 0;
    color: #363C53;
    text-shadow: 0 1px 0 rgba(255, 255, 255, .7);
    line-height: 24px;
    background-color: #FAFAFA;
    background: #F1E0D0 url(/media/img/welcome/footer_background.jpg) repeat center top;
    background-size: 1438px 150px;

    border-top: 2px solid rgba(0, 0, 0, .1);
}

.NB-welcome-footer .NB-welcome-footer-content {
    margin-bottom: 46px;
}

.NB-welcome-footer .NB-footer-logo {
    vertical-align: text-bottom;
    position: relative;
    bottom: -4px;
}

.NB-welcome-footer .NB-splash-link {
    color: #363C53;
    font-weight: bold;
    text-shadow: 0 1px 0 rgba(245, 245, 245, 0.7);
}

.NB-welcome-footer .NB-splash-link:hover {
    color: #822216;
}

.NB-welcome-footer .NB-footer-icons {
    float: right;
}

.NB-welcome-footer .NB-footer-icons a {
    line-height: 0;
    margin: 0 12px 0 0;
    float: right;
}

.NB-welcome-footer .NB-footer-icons a img {
    vertical-align: middle;
    width: 32px;
    height: 32px;
    position: relative;
    bottom: -4px;
    opacity: .5;
    transition: opacity .25s ease-in-out;
}

.NB-welcome-footer .NB-footer-icons a img:hover {
    opacity: 1;
}

.NB-welcome-footer .NB-twitter-avatar {
    width: 24px;
    height: 24px;
    border: none;
    box-shadow: 0 0 1px #C0C0C0;
    vertical-align: bottom;
    position: relative;
    bottom: 0;
    margin: 0 2px 0 4px;
    border-radius: 2px;
}


/* ================================= */
/* = Responsive — all sections     = */
/* ================================= */

@media (max-width: 960px) {
    .NB-welcome .NB-inner {
        padding-left: 24px;
        padding-right: 24px;
    }
}

@media (max-width: 768px) {
    /* Feature groups: 2-col → 1-col */
    .NB-welcome-feature-groups > .NB-inner {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    /* Pricing: reduce heading and padding */
    .NB-welcome-pricing {
        padding: 36px 0;
    }
    .NB-welcome-pricing h2 {
        font-size: 26px;
    }
    .NB-welcome-pricing > .NB-inner > p {
        font-size: 15px;
        padding: 0 12px;
    }

    /* FAQ: single column on mobile */
    .NB-welcome-faq {
        padding: 36px 0;
    }
    .NB-welcome-faq h2 {
        font-size: 24px;
    }
    .NB-welcome-faq-grid {
        grid-template-columns: 1fr;
    }

    /* Testimonials: narrower cards on mobile */
    .NB-welcome-testimonials {
        padding: 40px 0 36px;
    }
    .NB-welcome-testimonials h2 {
        font-size: 24px;
    }
    .NB-testimonials-heading {
        margin-bottom: 24px;
    }
    .NB-testimonial-card {
        width: 260px;
        padding: 16px 18px;
    }
    .NB-testimonials-fade {
        width: 48px;
    }
    .NB-testimonials-nav {
        position: static;
        transform: none;
        justify-content: center;
        margin-top: 12px;
    }

    /* Bottom actions: reduce vertical padding */
    .NB-welcome-bottomactions {
        padding: 48px 0;
    }

    /* Activity/Stats: stack columns */
    .NB-welcome-activity .NB-module {
        width: 100%;
        float: none;
    }
    .NB-welcome-activity .NB-module-stats {
        float: none;
        margin-right: 0;
        margin-bottom: 32px;
    }
    .NB-welcome-activity .NB-module-features {
        float: none;
    }

    /* Footer: center content, stack icons above text */
    .NB-welcome-footer .NB-welcome-footer-content {
        text-align: center;
        line-height: 28px;
    }
    .NB-welcome-footer .NB-footer-icons {
        float: none;
        display: flex;
        justify-content: center;
        gap: 12px;
        margin-bottom: 16px;
    }
    .NB-welcome-footer .NB-footer-icons a {
        float: none;
        margin: 0;
    }

    /* Footer links bar */
    .NB-welcome .NB-splash-info.NB-splash-bottom {
        float: none;
    }
    .NB-welcome .NB-splash-info .NB-splash-links {
        float: none;
        left: auto;
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        padding: 8px 12px;
    }
    .NB-welcome .NB-splash-info .NB-splash-links li {
        right: auto;
        position: static;
    }
}

@media (max-width: 500px) {
    /* Feature groups: tighten on small screens */
    a.NB-fgi img {
        width: 72px;
        height: 72px;
    }

    /* Pricing: Lyric section stacks */
    .NB-pricing-lyric {
        flex-direction: column;
        text-align: center;
    }

    /* Footer: tighter padding, prevent background tiling */
    .NB-welcome-footer {
        padding: 32px 0 0;
        background-size: cover;
        background-repeat: no-repeat;
    }
    .NB-welcome-footer .NB-welcome-footer-content {
        margin-bottom: 24px;
    }
}

/* ================================= */
/* = Dark Mode Overrides           = */
/* ================================= */

/* Hero / Header — teal in dark mode */
.NB-dark .NB-welcome-hero-wrap {
    background: linear-gradient(180deg, #4a6866 0%, #2c4a48 50%, #243e3c 100%);
}

.NB-dark.NB-welcome .NB-splash-info.NB-splash-top {
    background-color: rgba(72, 132, 128, 0.88);
}

.NB-dark .NB-welcome-header {
    color: white;
}

.NB-dark .NB-welcome-header-title {
    color: white;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
}

.NB-dark .NB-welcome-header .NB-welcome-header-tagline {
    color: #FBDB9B;
}

.NB-dark .NB-welcome-header-formcard {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: none;
}

.NB-dark .NB-welcome-header-segment {
    background: rgba(255, 255, 255, 0.1);
}

.NB-dark .NB-welcome-header-segment::before {
    background:
        linear-gradient(
            170deg,
            rgba(255, 255, 255, 0.35) 0%,
            rgba(255, 255, 255, 0.12) 40%,
            rgba(255, 255, 255, 0.06) 60%,
            rgba(255, 255, 255, 0.15) 100%
        );
    box-shadow:
        0 0.5px 0 0 rgba(255, 255, 255, 0.25) inset,
        0 1px 3px rgba(0, 0, 0, 0.2),
        0 0 12px rgba(255, 255, 255, 0.04);
}

.NB-dark .NB-segment-option {
    color: rgba(255, 255, 255, 0.45);
}

.NB-dark .NB-segment-option:hover {
    color: rgba(255, 255, 255, 0.65);
}

.NB-dark .NB-segment-option.NB-active {
    color: white;
}

.NB-dark .NB-welcome-header-formcard input[type=text],
.NB-dark .NB-welcome-header-formcard input[type=password],
.NB-dark .NB-welcome-header-formcard input[type=email] {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.1);
    color: white;
}

.NB-dark .NB-welcome-header-formcard input[type=text]::placeholder,
.NB-dark .NB-welcome-header-formcard input[type=password]::placeholder,
.NB-dark .NB-welcome-header-formcard input[type=email]::placeholder {
    color: rgba(255, 255, 255, 0.35);
}

.NB-dark .NB-welcome-header-formcard input[type=text]:focus,
.NB-dark .NB-welcome-header-formcard input[type=password]:focus,
.NB-dark .NB-welcome-header-formcard input[type=email]:focus {
    border-color: rgba(217, 166, 33, 0.5);
    background: rgba(255, 255, 255, 0.13);
}

.NB-dark .NB-welcome-submit-button {
    color: white;
}

.NB-dark .NB-welcome-forgot {
    color: #FBDB9B;
}

.NB-dark .NB-welcome-forgot:hover {
    color: #fff;
}

.NB-dark .NB-welcome-header .NB-welcome-header-actions .NB-button-tryout {
    border-color: rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.8);
}

.NB-dark .NB-welcome-header .NB-welcome-header-actions .NB-button-tryout:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.3);
    color: white;
}

.NB-dark .NB-welcome-header .NB-welcome-header-actions .NB-button-tryout img {
    filter: brightness(0) invert(1);
    opacity: 0.7;
}

.NB-dark .NB-welcome-header .NB-welcome-header-actions .NB-button-tryout:hover img {
    opacity: 1;
}

/* Platforms */
.NB-dark .NB-welcome-platforms {
    background: linear-gradient(180deg,
        rgba(0, 0, 0, 0) 0px,
        rgba(0, 0, 0, 0.35) 60px,
        rgba(0, 0, 0, 0.5) 150px,
        rgba(0, 0, 0, 0.6) 400px);
}

.NB-dark .NB-platforms-heading {
    color: #FFF5E0;
    text-shadow:
        0 0 40px rgba(217, 166, 33, 0.25),
        0 2px 4px rgba(0, 0, 0, 0.12);
}

.NB-dark .NB-platforms-subheading {
    color: #FBDB9B;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}

.NB-dark .NB-platform-badge {
    color: #D9A621;
    border-color: rgba(217, 166, 33, 0.3);
    background: rgba(217, 166, 33, 0.15);
}

.NB-dark .NB-platform-title {
    color: #FFF5E0;
    text-shadow:
        0 1px 2px rgba(0, 0, 0, 0.3),
        0 0 30px rgba(50, 70, 70, 0.4);
}

.NB-dark .NB-welcome-features-wrap {
    background: linear-gradient(180deg, #2a524e 0%, #284442 100%);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.NB-dark .NB-features-heading {
    color: white;
}

.NB-dark .NB-features-subheading {
    color: rgba(255, 255, 255, 0.55);
}

/* Feature groups — dark mode */
.NB-dark .NB-fgi-caption {
    color: rgba(255, 255, 255, 0.9);
}

.NB-dark .NB-fgi-desc {
    color: rgba(255, 255, 255, 0.45);
}

/* Hover matches the reader's selected-story gold highlight, dark mode */
.NB-dark a.NB-fgi:hover {
    background-color: rgba(212, 184, 122, 0.14);
}

.NB-dark .NB-feature-group-folder {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.04));
    border-color: rgba(255, 255, 255, 0.1);
}

.NB-dark .NB-folder-caret {
    border-top-color: rgba(255, 255, 255, 0.4);
}

.NB-dark .NB-folder-name {
    color: rgba(255, 255, 255, 0.9);
}

/* Matches .NB-dark .unread_count_neutral in media/css/reader/darkmode.css */
.NB-dark .NB-folder-count {
    background-color: #7a7e77;
    color: #FDFEFE;
}

.NB-dark .NB-feature-group-read  .NB-folder-icon { color: #d4b87a; }
.NB-dark .NB-feature-group-smart .NB-folder-icon { color: #8ab06a; }
.NB-dark .NB-feature-group-share .NB-folder-icon { color: #a07ab0; }
.NB-dark .NB-feature-group-everywhere .NB-folder-icon { color: #6a9aba; }

.NB-dark .NB-welcome-activity {
    background: linear-gradient(180deg, #2a524e 0%, #284442 100%);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.NB-dark .NB-welcome-activity h2 {
    color: white;
}

.NB-dark .NB-welcome-activity .NB-module .NB-module-stats-counts {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.08);
}

.NB-dark .NB-welcome-activity .NB-module-stats-count-number {
    color: rgba(255, 255, 255, 0.9);
}

.NB-dark .NB-welcome-activity .NB-module-stats-count-number small {
    color: rgba(255, 255, 255, 0.4);
}

.NB-dark .NB-welcome-activity .NB-module-stats-count-description {
    color: rgba(255, 255, 255, 0.35);
}

.NB-dark .NB-welcome-activity .NB-module-content-header {
    color: rgba(255, 255, 255, 0.35);
}

.NB-dark .NB-welcome-activity .NB-graph-bar {
    background-color: #4a4aff;
}

.NB-dark .NB-welcome-activity .NB-graph-value:hover .NB-graph-bar {
    background-color: #7a7aff;
}

.NB-dark .NB-welcome-activity .NB-module-features .NB-module-feature .NB-module-feature-date {
    color: rgba(255, 255, 255, 0.25);
}

.NB-dark .NB-welcome-activity .NB-module-features .NB-module-feature .NB-module-feature-description {
    color: rgba(255, 255, 255, 0.8);
}

.NB-dark .NB-welcome-activity .NB-module-features .NB-module-feature .NB-module-feature-description a {
    color: #7a9ad4;
}

.NB-dark .NB-welcome-activity .NB-module-features .NB-module-feature .NB-module-feature-description a:hover {
    color: #a0bfe8;
}

.NB-dark .NB-welcome-activity .NB-module-features .NB-module-feature .NB-module-feature-tag.NB-tag-problem {
    background-color: #b87530;
}

.NB-dark .NB-welcome-activity .NB-module-features .NB-module-feature .NB-module-feature-tag.NB-tag-praise {
    background-color: #a89030;
}

.NB-dark .NB-welcome-activity .NB-module-features .NB-module-feature .NB-module-feature-tag.NB-tag-idea {
    background-color: #5a8a3a;
}

.NB-dark .NB-welcome-activity .NB-module-features .NB-module-feature .NB-module-feature-tag.NB-tag-question {
    background-color: #4a7a9a;
}

.NB-dark .NB-welcome-activity .NB-module-features .NB-module-feature .NB-module-feature-tag.NB-tag-updates {
    background-color: #0a706a;
}

.NB-dark .NB-platform-description {
    color: rgba(255, 255, 255, 0.55);
}

/* Pricing */
.NB-dark .NB-welcome-pricing {
    background: linear-gradient(180deg, #2a524e 0%, #284442 100%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.NB-dark .NB-welcome-pricing h2 {
    color: #ffffff;
}

.NB-dark .NB-welcome-pricing>.NB-inner>p {
    color: rgba(255, 255, 255, 0.55);
}

.NB-dark .NB-pricing-tier {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow:
        0 2px 4px rgba(0, 0, 0, 0.15),
        0 8px 24px rgba(0, 0, 0, 0.2);
}

.NB-dark .NB-pricing-tier:hover {
    box-shadow:
        0 4px 8px rgba(0, 0, 0, 0.2),
        0 16px 40px rgba(0, 0, 0, 0.3);
}

.NB-dark .NB-pricing-tier-free .NB-pricing-tier-features,
.NB-dark .NB-pricing-tier-selfhosted .NB-pricing-tier-features {
    background: rgba(255, 255, 255, 0.03);
}

.NB-dark .NB-pricing-tier-free .NB-pricing-tier-features li,
.NB-dark .NB-pricing-tier-selfhosted .NB-pricing-tier-features li {
    color: rgba(255, 255, 255, 0.7);
}

.NB-dark .NB-pricing-tier-premium .NB-pricing-tier-features,
.NB-dark .NB-pricing-tier-archive .NB-pricing-tier-features,
.NB-dark .NB-pricing-tier-pro .NB-pricing-tier-features {
    background: rgba(255, 255, 255, 0.03);
}

.NB-dark .NB-pricing-tier-features li {
    color: rgba(255, 255, 255, 0.7);
}

.NB-dark .NB-pricing-tier-features li.NB-pricing-tier-includes {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.NB-dark .NB-pricing-tier-features li.NB-pricing-tier-upcoming-header {
    border-top: 1px dashed rgba(255, 255, 255, 0.1);
}

.NB-dark .NB-pricing-tier-actions {
    background: rgba(255, 255, 255, 0.04);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* Lyric */
.NB-dark .NB-pricing-lyric {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.NB-dark .NB-pricing-lyric .NB-lyric-photo {
    border: 3px solid rgba(255, 255, 255, 0.15);
}

.NB-dark .NB-pricing-lyric .NB-lyric-title {
    color: rgba(255, 255, 255, 0.9);
}

.NB-dark .NB-pricing-lyric .NB-lyric-description {
    color: rgba(255, 255, 255, 0.55);
}

/* Banner buttons */
.NB-dark .NB-banner-features {
    color: rgba(255, 255, 255, 0.6);
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.1);
}

.NB-dark .NB-banner-features:hover {
    color: white;
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.18);
}

.NB-dark .NB-banner-pricing {
    color: rgba(255, 255, 255, 0.6);
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.1);
}

.NB-dark .NB-banner-pricing:hover {
    color: white;
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.18);
}

/* Welcome FAQ */
.NB-dark .NB-welcome-faq {
    background: linear-gradient(180deg, #2a524e 0%, #284442 100%);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.NB-dark .NB-welcome-faq h2 {
    color: #ffffff;
}

.NB-dark .NB-welcome-faq-item {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.08);
}

.NB-dark .NB-welcome-faq-item h3 {
    color: rgba(255, 255, 255, 0.9);
}

.NB-dark .NB-welcome-faq-item p {
    color: rgba(255, 255, 255, 0.55);
}

.NB-dark .NB-welcome-faq-item p a {
    color: #FBDB9B;
}

.NB-dark .NB-welcome-faq-item p a:hover {
    color: white;
}

.NB-dark .NB-welcome-faq-compare-link {
    color: #FBDB9B;
    background: rgba(251, 219, 155, 0.08);
    border-color: rgba(251, 219, 155, 0.15);
}

.NB-dark .NB-welcome-faq-compare-link:hover {
    color: #fde9b9;
    background: rgba(251, 219, 155, 0.15);
    border-color: rgba(251, 219, 155, 0.25);
}

.NB-dark .NB-banner-faq {
    color: rgba(255, 255, 255, 0.6);
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.1);
}

.NB-dark .NB-banner-faq:hover {
    color: white;
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.18);
}

/* Testimonials */
.NB-dark .NB-welcome-testimonials {
    background: #243e3c;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.NB-dark .NB-welcome-testimonials h2 {
    color: #ffffff;
}

.NB-dark .NB-testimonials-nav-btn {
    border-color: rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.5);
}

.NB-dark .NB-testimonials-nav-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.25);
    color: rgba(255, 255, 255, 0.9);
}

.NB-dark .NB-testimonials-nav-btn:active {
    background: rgba(255, 255, 255, 0.18);
}

.NB-dark .NB-testimonial-card {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 6px 16px rgba(0, 0, 0, 0.1);
}

.NB-dark .NB-testimonial-card:hover {
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.18), 0 10px 28px rgba(0, 0, 0, 0.15);
    background: rgba(255, 255, 255, 0.07);
}

.NB-dark .NB-testimonial-avatar {
    border-color: rgba(255, 255, 255, 0.12);
    background: #325856;
}

.NB-dark .NB-testimonial-name {
    color: rgba(255, 255, 255, 0.9);
}

.NB-dark .NB-testimonial-role {
    color: rgba(255, 255, 255, 0.4);
}

.NB-dark .NB-testimonial-text {
    color: rgba(255, 255, 255, 0.6);
}

.NB-dark .NB-testimonials-fade-left {
    background: linear-gradient(to right, #243e3c 0%, rgba(36, 62, 60, 0) 100%);
}

.NB-dark .NB-testimonials-fade-right {
    background: linear-gradient(to left, #243e3c 0%, rgba(36, 62, 60, 0) 100%);
}

/* Bottom Actions */
.NB-dark .NB-welcome-bottomactions {
    background: linear-gradient(180deg, #243e3c 0%, #2a524e 100%);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.NB-dark .NB-welcome-bottomactions-heading {
    color: white;
}

.NB-dark .NB-welcome-bottomactions .NB-bottomaction-tryout {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: rgba(255, 255, 255, 0.8);
}

.NB-dark .NB-welcome-bottomactions .NB-bottomaction-tryout:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.3);
    color: white;
}

.NB-dark .NB-welcome-bottomactions .NB-bottomaction-tryout:active {
    background: rgba(255, 255, 255, 0.18);
}

.NB-dark .NB-welcome-bottomactions .NB-bottomaction-tryout img {
    filter: brightness(0) invert(1);
}

/* Trial callout */
.NB-dark .NB-pricing-trial-callout {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(110, 231, 183, 0.3);
    color: #6ee7b7;
}

.NB-dark .NB-pricing-trial-callout strong {
    color: #a7f3d0;
}

/* Footer */
.NB-dark .NB-welcome-footer {
    background-color: #325856;
    background-blend-mode: overlay;
    color: rgba(255, 255, 255, 0.7);
    text-shadow: none;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.NB-dark .NB-welcome-footer .NB-splash-link {
    color: #FBDB9B;
    text-shadow: none;
}

.NB-dark .NB-welcome-footer .NB-splash-link:hover {
    color: #fff;
}

.NB-dark .NB-welcome-footer .NB-footer-icons a img {
    filter: invert(1);
    opacity: 0.7;
}

.NB-dark .NB-welcome-footer .NB-footer-icons a img:hover {
    opacity: 0.9;
}

.NB-dark .NB-welcome-footer .NB-twitter-avatar {
    box-shadow: 0 0 1px rgba(255, 255, 255, 0.3);
}

/* ================ */
/* = Modal Dialog = */
/* ================ */

#simplemodal-overlay {
    background-color: #101030;
}

#simplemodal-container {
    background-color: white;
    padding: 8px;
    border-radius: 12px;
    box-shadow:
        0 0 0 1px rgba(0, 0, 0, 0.04),
        0 2px 4px rgba(0, 0, 0, 0.04),
        0 8px 16px rgba(0, 0, 0, 0.08),
        0 24px 48px rgba(0, 0, 0, 0.12);
    min-height: 150px;
    overflow: auto;
}

/* =================== */
/* = Common Elements = */
/* =================== */

.NB-input {
    font-size: 14px;
    padding: 6px 8px;
    margin: 2px 4px 2px;
    border: 1px solid rgba(0, 0, 0, .15);
    border-radius: 6px;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.06);
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.NB-input:focus {
    border-color: rgba(0, 0, 0, .3);
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.06), 0 0 0 3px rgba(66, 133, 244, 0.15);
    outline: none;
}

/* ========== */
/* = Modals = */
/* ========== */

.NB-modal {
    padding: 12px;
    position: relative;
    box-sizing: border-box;
    border-radius: 4px;
}

#simplemodal-container.NB-full-container {
    padding: 0;
}

.NB-modal.NB-signed-out .NB-fieldset {
    opacity: .3;
}

.NB-modal.NB-signed-out .NB-fieldset.NB-anonymous-ok {
    opacity: 1;
}

fieldset {
    border: 0;
    border-top: 1px solid #E6E6E6;
    padding: 0 12px;
    margin: 12px 0 0;
}

fieldset legend {
    padding: 4px 16px;
    font-weight: bold;
    font-size: 12px;
    color: #151775;
    border: 1px solid #E6E6E6;
    border-radius: 4px;
    background-color: #F7F7F5;
}


.NB-modal .NB-modal-error {
    float: right;
    font-size: 11px;
    font-weight: bold;
    color: #7F080A;
    line-height: 14px;
    display: none;
    max-width: 50%;
}

.NB-modal .NB-modal-loading,
.NB-modal .NB-loading {
    width: 16px;
    height: 16px;
    float: right;
    background: none;
}

.NB-modal-tabs .NB-modal-loading,
.NB-modal-tabs .NB-loading {
    float: left;
    margin: 4px 8px 0 0;
}

.NB-modal .NB-modal-loading.NB-active {
    background: transparent url(/media/embed/reader/ring_spinner.svg) no-repeat center center;
    background-size: 16px;
}

.NB-loading.NB-active {
    background: transparent url(/media/img/reader/worm_spinner.svg) no-repeat 0 0;
    background-size: 16px;
}

.NB-modal h2,
.NB-modal .NB-modal-title {
    margin: 0;
    padding: 0;
    font-size: 22px;
    text-wrap: balance;
}

.NB-modal-title .NB-icon {
    width: 28px;
    height: 28px;
    float: left;
    margin: 0 12px 0 0;
}

.NB-modal .NB-icon-dropdown {
    display: inline-block;
    padding: 0 6px;
    width: 16px;
    height: 16px;
    background: transparent url(/media/img/icons/nouns/down.svg) no-repeat center center;
    background-size: 8px;
    cursor: pointer;
}

.NB-modal h5,
.NB-module h5,
.NB-module-header {
    margin: 0;
    padding: 14px 12px;
    display: flex;
    align-items: center;

    background-color: #EAECE5;
    border-radius: 3px;
    text-shadow: 0 1px 0 rgba(255, 255, 255, .5);
    color: #5c6157;
    font-size: 17px;
    font-family: "Lucida Sans", "Lucida Grande", Verdana, Arial, Helvetica, sans-serif, inherit;
    font-weight: bold;
    text-align: center;
    position: relative;
}

.NB-module h5,
.NB-splash-modules .NB-module-header {
    margin: 0 0 24px;
}

.NB-modal h5 {
    border: none;
    border-radius: 4px 4px 0 0;
}

.NB-modal .NB-modal-field {
    margin: 0;
    position: relative;
    clear: both;
}

.NB-modal .NB-modal-field h5 {}

.NB-modal-field input[type=text] {
    width: 446px;
    font-size: 14px;
    padding: 6px 8px;
    margin: 0px 4px 6px;
    border: 1px solid rgba(0, 0, 0, .2);
    border-radius: 6px;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.06);
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.NB-modal-field input[type=text]:focus {
    border-color: rgba(0, 0, 0, .3);
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.06), 0 0 0 3px rgba(66, 133, 244, 0.15);
    outline: none;
}

.NB-modal .NB-modal-field input[type=checkbox] {
    margin: 4px 0 0 0px;
    float: left;
}

.NB-modal .NB-error {
    display: none;
    font-weight: bold;
    font-size: 14px;
    color: #7E0418;
    padding: 0 0 12px 0;
}

.NB-modal .NB-modal-title {
    font-weight: bold;
    color: #303030;
    text-shadow: 1px 1px 0px rgba(255, 255, 255, .5);
}

.NB-modal .NB-modal-subtitle {
    margin: 12px 0 0;
    padding: 8px 12px;
    font-size: 14px;
    position: relative;
    background-color: #F8F8F6;
    overflow: hidden;
    clear: both;
}

.NB-modal .NB-modal-feed-title {
    margin: 0;
    float: left;
}

.NB-modal .NB-modal-feed-subscribers {
    font-size: 12px;
    background-color: #909090;
    color: #F0F0F0;
    margin: 2px 4px 2px 14px;
    font-size: 9px;
    line-height: 15px;
    font-weight: bold;
    padding: 0 4px;
    text-transform: uppercase;
    border-radius: 3px;
    text-shadow: none;
    float: left;
    white-space: nowrap;
}

.NB-modal .NB-modal-feed-heading {
    display: block;
    margin: 0 40px 0 23px;
    text-decoration: none;
    color: #272727;
    overflow: hidden;
    text-shadow: 0 1px 0 rgba(255, 255, 255, .5);
}

.NB-modal .NB-modal-feed-image {
    float: left;
}

.NB-modal .NB-modal-subtitle-right {
    float: right;
    clear: both;
    font-size: 11px;
    text-transform: uppercase;
    color: #d0d0d0;
    text-shadow: 0 1px 0 rgba(255, 255, 255, .5);
}

.NB-modal .NB-modal-subtitle-right-count {
    color: #A8A8A8;
    padding-right: 4px;
}

.NB-modal-submit-bottom {
    width: 100%;
    box-sizing: border-box;
    border-radius: 6px;
    border-bottom-left-radius: 6px;
    border-bottom-right-radius: 6px;
    border-top-left-radius: 0;
    border-top-right-radius: 0;
    padding: 12px 24px;
    background-color: #F7F8F5;
    border-top: 1px solid #DFE2DA;
    position: absolute;
    bottom: 0;
    right: 0;
}

.NB-modal-submit-button {
    font-size: 12px;
    padding: 8px 12px;
    margin: 2px 4px 2px;
    cursor: pointer;
    text-decoration: none;
    background: #DCDCDC;
    background: linear-gradient(to top, #DCDCDC, #D2D2D2);
    border-radius: 6px;
    border: none;
    transition: background-color 0.15s ease, background-image 0.15s ease, transform 0.1s ease, box-shadow 0.15s ease;
}

.NB-modal-submit-button:active:not(.NB-disabled) {
    transform: scale(0.96);
}

.NB-modal-submit-green {
    background-color: #217412;
    background-image: linear-gradient(to top, #216200, #217412);
    font-weight: bold;
    color: #FCFCFC;
}

.NB-modal-submit-green:hover {
    background-color: #216200;
    background-image: linear-gradient(to top, #1E5000, #216200);
}

.NB-modal-submit-green:active {
    background-color: #1E5000;
    background-image: linear-gradient(to top, #1B3F00, #1E5000);
}

.NB-modal-submit-red {
    background-color: #911C31;
    background-image: linear-gradient(to top, #7D0D25, #911C31);
    color: #E4E4E4;
    font-weight: bold;
}

.NB-modal-submit-red:hover {
    background-color: #7D0D25;
    background-image: linear-gradient(to top, #68001B, #68001B);
}

.NB-modal-submit-red:active {
    background-color: #68001B;
    background-image: linear-gradient(to top, #540015, #68001B);
}

.NB-modal-submit-back,
.NB-modal-submit-reset,
.NB-modal-submit-close,
.NB-modal-submit-grey {
    text-shadow: 0 -1px 0 rgba(255, 255, 255, .3);
    border-color: rgba(255, 255, 255, .3) rgba(0, 0, 0, .2) rgba(0, 0, 0, .3) rgba(255, 255, 255, .2);
    background-color: #d5d4dB;
    background-image: linear-gradient(to top, #CBCAD3, #d5d4dB);
    color: #505050;
}

.NB-modal-submit-back:hover,
.NB-modal-submit-reset:hover,
.NB-modal-submit-close:hover,
.NB-modal-submit-grey:hover {
    background-color: #CBCAD3;
    background-image: linear-gradient(to top, #BDBCC7, #CBCAD3);
}

.NB-modal-submit-back:active,
.NB-modal-submit-reset:active,
.NB-modal-submit-close:active,
.NB-modal-submit-grey:active {
    background-color: #BDBCC7;
    background-image: linear-gradient(to top, #ADACBB, #BDBCC7);
}

.NB-modal-submit-save.NB-disabled,
.NB-modal-submit-green.NB-disabled,
.NB-modal-submit-button.NB-disabled,
.NB-modal-submit-save.NB-disabled:hover,
.NB-modal-submit-green.NB-disabled:hover,
.NB-modal-submit-button.NB-disabled:hover,
.NB-modal-submit-save.NB-disabled:active,
.NB-modal-submit-green.NB-disabled:active,
.NB-modal-submit-button.NB-disabled:active {
    background-image: none;
    background-color: #d5d4dB;
    color: rgba(0, 0, 0, .2);
    text-shadow: none;
    border: 1px solid rgba(0, 0, 0, 0);
    cursor: default;
}

.NB-modal-submit-close {
    background-color: #525255;
    background-image: -webkit-gradient(linear,
            left bottom,
            left top,
            color-stop(0.16, #192716),
            color-stop(0.84, #2E432B));
    background-image: -moz-linear-gradient(center bottom,
            #192716 16%,
            #2E432B 84%);
    color: white;
}

.NB-modal-submit-close:hover {
    background-color: #CBCAD3;
    background-image: -webkit-gradient(linear,
            left bottom,
            left top,
            color-stop(0.16, #131D10),
            color-stop(0.84, #192716));
    background-image: -moz-linear-gradient(center bottom,
            #131D10 16%,
            #192716 84%);
}

.NB-modal-submit-close:active {
    background-color: #BDBCC7;
    background-image: -webkit-gradient(linear,
            left bottom,
            left top,
            color-stop(0.16, #0A0D09),
            color-stop(0.84, #131D10));
    background-image: -moz-linear-gradient(center bottom,
            #0A0D09 16%,
            #131D10 84%);
}

.NB-modal-submit-close,
.NB-modal-submit-grey {
    font-weight: bold;
}

.NB-modal .NB-modal-submit {
    font-size: 13px;
    overflow: hidden;
}

.NB-modal img.feed_favicon {
    margin: 0 6px 0 0;
    vertical-align: middle;
    width: 16px;
    height: 16px;
}

.NB-modal .NB-modal-feed-image.NB-feed-emoji,
.NB-modal .NB-modal-feed-image.NB-feed-icon-colored,
.NB-modal .NB-modal-feed-image.NB-folder-emoji,
.NB-modal .NB-modal-feed-image.NB-folder-icon-colored {
    margin: 0 6px 0 0;
    width: 16px;
    height: 16px;
}

.NB-modal .NB-fieldset {
    /* border-bottom: 1px solid rgba(0, 0, 0, .1); */
    margin: 24px 0 0;
    overflow: hidden;
}

.NB-modal .NB-fieldset:first-child {
    margin-top: 0;
}

.NB-modal .NB-fieldset-fields {
    background-color: #F7F7F5;
    padding: 20px 16px 14px;
    font-size: 14px;
    overflow: hidden;
}

.NB-modal .NB-modal-feed-chooser-container {
    float: right;
    margin: 3px 0 12px;
}

.NB-modal .NB-modal-feed-chooser-container .NB-modal-feed-chooser {
    width: 250px;
    margin: 0 0 12px;
}

.NB-modal .NB-modal-tabs {
    float: right;
    position: relative;
    bottom: -1px;
    margin-right: 16px;
}

.NB-modal .NB-modal-tab {
    float: left;
    padding: 8px 18px 10px;
    font-size: 12px;
    background-color: #F0F1EC;
    border-top: 1px solid #A0A0A0;
    border-left: 1px solid #A0A0A0;
    border-bottom: 1px solid #A0A0A0;
    cursor: pointer;
    text-shadow: 0 1px 0 rgba(255, 255, 255, .6);
    margin-top: -4px;
    -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-modal .NB-modal-tab:hover {
    background-color: #E4E5DF;
}

.NB-modal .NB-modal-tab:first-child {
    border-top-left-radius: 2px;
}

.NB-modal .NB-modal-tab:last-child {
    border-right: 1px solid #A0A0A0;
    border-top-right-radius: 2px;
}

.NB-modal .NB-modal-tab.NB-active {
    background-color: white;
    border-bottom: 1px solid white;
    cursor: default;
    -webkit-box-shadow: none;
    -moz-box-shadow: none;
    box-shadow: none;
}

.NB-modal .NB-tab {
    display: none;
    margin-top: 0;
    clear: both;
    border-top: 1px solid #A0A0A0;
    overflow: auto;
    height: 400px;
    width: 100%;
    font-size: 14px;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}

.NB-modal .NB-tab.NB-active {
    display: block;
}

.NB-modal .NB-modal-section {
    padding: 12px 0;
}

/* ================ */
/* = Tag Settings = */
/* ================ */

/* View settings rows */
.NB-modal-tag-settings .NB-tag-setting-row {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    gap: 16px;
}

.NB-modal-tag-settings .NB-tag-setting-row:last-child {
    margin-bottom: 0;
}

.NB-modal-tag-settings .NB-tag-setting-label {
    font-size: 13px;
    color: #606060;
    min-width: 90px;
    flex-shrink: 0;
}

/* Segmented controls for view/layout */
.NB-modal-tag-settings .segmented-control {
    flex: 1;
    background-color: #e8e9e5;
    border-radius: 6px;
    padding: 3px;
}

.NB-modal-tag-settings .segmented-control li {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 6px 8px;
    font-size: 11px;
    font-weight: 500;
    border-radius: 3px;
    transition: background-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.NB-modal-tag-settings .segmented-control li img {
    width: 16px;
    height: 16px;
    opacity: 0.6;
    transition: opacity 0.15s ease;
}

.NB-modal-tag-settings .segmented-control li span {
    display: inline;
}

.NB-modal-tag-settings .segmented-control li:hover img {
    opacity: 0.85;
}

.NB-modal-tag-settings .segmented-control li.NB-active {
    background-color: white;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
}

.NB-modal-tag-settings .segmented-control li.NB-active img {
    opacity: 1;
}

/* Saved status indicator */
.NB-modal-tag-settings .NB-exception-option-status {
    float: right;
    font-size: 11px;
    font-weight: 600;
    color: #5a7a3a;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.NB-modal-tag-settings .NB-exception-option-status.NB-visible {
    opacity: 1;
}

/* RSS URL section */
.NB-modal-tag-settings .NB-tag-rss-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
}

.NB-modal-tag-settings .NB-tag-rss-input {
    flex: 1;
    font-size: 11px;
    color: #707070;
    background-color: #f5f5f5;
    border: 1px solid #d0d0d0;
    padding: 8px 10px;
    border-radius: 4px;
    cursor: text;
}

.NB-modal-tag-settings .NB-tag-rss-copy {
    flex-shrink: 0;
    padding: 8px 14px;
    font-size: 12px;
}

.NB-modal-tag-settings .NB-premium-only {
    margin-top: 10px;
}

.NB-modal-tag-settings .NB-premium-only-text {
    font-size: 12px;
    color: #808080;
}

/* Rename tag section */
.NB-modal-tag-settings .NB-tag-rename-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
}

.NB-modal-tag-settings .NB-tag-rename-input {
    flex: 1;
    margin: 0;
}

/* Delete tag section */
.NB-modal-tag-settings .NB-tag-delete-info {
    font-size: 13px;
    color: #606060;
    margin-bottom: 12px;
    line-height: 1.5;
}

.NB-modal-tag-settings .NB-tag-delete-wrapper {
    display: flex;
    gap: 8px;
}

.NB-modal-tag-settings .NB-tag-delete-confirm {
    display: none;
}

.NB-modal-tag-settings .NB-tag-rename-error,
.NB-modal-tag-settings .NB-tag-delete-error {
    margin-top: 8px;
}

/* ================================ */
/* = Site/Folder Settings - View  = */
/* ================================ */

/* Saved status indicator */
.NB-modal-exception .NB-exception-option-status {
    float: right;
    font-size: 11px;
    font-weight: 600;
    color: #5a7a3a;
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* View settings rows */
.NB-modal-exception .NB-view-setting-row {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    gap: 16px;
}

.NB-modal-exception .NB-view-setting-row:last-child {
    margin-bottom: 0;
}

.NB-modal-exception .NB-view-setting-label {
    font-size: 13px;
    color: #606060;
    min-width: 90px;
    flex-shrink: 0;
}

/* Segmented controls for view/layout */
.NB-modal-exception .NB-exception-option-view .segmented-control {
    flex: 1;
    background-color: #e8e9e5;
    border-radius: 6px;
    padding: 3px;
}

.NB-modal-exception .NB-exception-option-view .segmented-control li {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 6px 10px;
    font-size: 11px;
    font-weight: 500;
    border-radius: 3px;
    transition: background-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.NB-modal-exception .NB-exception-option-view .segmented-control li img {
    width: 16px;
    height: 16px;
    opacity: 0.6;
    transition: opacity 0.15s ease;
}

.NB-modal-exception .NB-exception-option-view .segmented-control li span {
    display: inline;
}

.NB-modal-exception .NB-exception-option-view .segmented-control li:hover img {
    opacity: 0.85;
}

.NB-modal-exception .NB-exception-option-view .segmented-control li.NB-active {
    background-color: white;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
}

.NB-modal-exception .NB-exception-option-view .segmented-control li.NB-active img {
    opacity: 1;
}

/* Folder RSS Feed Address section */
.NB-modal-exception .NB-folder-rss-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}

.NB-modal-exception .NB-folder-rss-row:last-of-type {
    margin-bottom: 0;
}

.NB-modal-exception .NB-folder-rss-label {
    width: 100px;
    flex-shrink: 0;
    font-size: 13px;
    font-weight: 500;
    color: #505050;
}

.NB-modal-exception .NB-folder-rss-wrapper {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 8px;
}

.NB-modal-exception .NB-folder-rss-wrapper input[type="text"].NB-folder-rss-input {
    flex: 1;
    min-width: 0;
    width: auto;
    margin: 0;
    font-size: 11px;
    color: #707070;
    background-color: #f5f5f5;
    border: 1px solid #d0d0d0;
    padding: 8px 10px;
    border-radius: 4px;
    cursor: text;
}

.NB-modal-exception .NB-folder-rss-copy {
    flex-shrink: 0;
    padding: 8px 14px;
    font-size: 12px;
}

.NB-modal-exception .NB-premium-only {
    margin-top: 12px;
}

.NB-modal-exception .NB-premium-only-text {
    font-size: 12px;
    color: #808080;
}

.NB-body-status {
  overflow: auto;
}

.NB-status {
  margin: 48px;
}

.NB-status th {
  padding: 0 6px 0 0;
}

.NB-status .NB-favicon {
  width: 16px;
  height: 16px;
}

.NB-status .NB-status-update {
  line-height: 12px;
  font-size: 11px;
}

.NB-status td {
  border-top: 1px solid #F0F0F0;
  margin: 0;
  padding: 0 6px 0 0;
  max-width: 300px;
}

/* ========= */
/* = Index = */
/* ========= */

/* Global
* Scrollbars
* Splash Pane
* Pop-up Menus
* Task bars (top & bottom)
* Feed Pane
* Stories Pane
* Selected Story Pane
* NewsBlur Blog
* NewsBlur Forum
*/




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

.NB-theme-transitioning div,
.NB-theme-transitioning span,
.NB-theme-transitioning mark,
.NB-theme-transitioning h5,
.NB-theme-transitioning a,
.NB-theme-transitioning ul,
.NB-theme-transitioning li,
body.NB-theme-transitioning {
    transition: color 1s ease-out,
        background-color 1s ease-out,
        text-shadow 1s ease-out,
        border-color 1s ease-out;
}

body.NB-dark {
    background-color: #191b1c;
    color: #c0c0c0;
}

.NB-dark .NB-static-alert {
    color: #c0c0c0;
}

.NB-dark a:-webkit-any-link {
    color: #83b4e0;
}

.NB-dark .NB-overlay {
    background: rgba(16, 16, 28, 0.3);
}

.NB-dark hr {
    background-color: rgba(255, 255, 255, 0.4);
}

/* ============== */
/* = Scrollbars = */
/* ============== */

.NB-dark {
    scrollbar-color: #565859 #262829;
}

.NB-dark ::-webkit-scrollbar {
    width: 12px;
}

.NB-dark ::-webkit-scrollbar-thumb,
.NB-dark::-webkit-scrollbar-thumb {
    background-color: #565859;
}

.NB-dark ::-webkit-scrollbar-track,
.NB-dark::-webkit-scrollbar-track {
    background-color: #262829;
}

.NB-dark .ui-layout-resizer-west {
    background-color: rgb(52, 59, 61);
    border-left: 1px solid #303030;
}

.NB-dark .right-pane .ui-layout-resizer-south,
.NB-dark .right-pane .ui-layout-resizer-north {
    background-color: rgb(52, 59, 61);
    border-top: 1px solid #303030;
    border-bottom: 1px solid #303030;
}



/* =============== */
/* = Splash Pane = */
/* =============== */

/*
.NB-dark a.NB-splash-link:hover,
.NB-dark .NB-module-features .NB-module-feature .NB-module-feature-description a:hover {
color: #a85b40;
}
*/

/* Background color */
.NB-dark #NB-splash {
    background-color: #191b1c;
}

/* Text color for "Premium Account", "New Features", "Community Feedback", "Past day", "Past day by hour" & "Recommended Site" body*/
.NB-dark .NB-module-content-header,
.NB-dark .NB-module-recommended .NB-recommended-description,
.NB-dark .NB-module-features .NB-module-feature .NB-module-feature-description {
    color: #c0c0c0;
}

.NB-dark .NB-module-features .NB-module-feature.NB-module-feature-new td {
    background-color: #a28334;
}

.NB-dark .NB-module-features .NB-module-feature.NB-module-feature-new .NB-module-feature-description {
    color: #e1e1e1;
}

.NB-dark .NB-module-features .NB-module-feature.NB-module-feature-new .NB-module-feature-date {
    color: #d1d1d1;
}

.NB-dark .NB-module-recommended .NB-recommended-added {
    color: #69ac4b;
}

/* Divider color */
.NB-dark .NB-module.NB-module-features .NB-module-content-header,
.NB-dark .NB-module-recommended .NB-recommended-description,
.NB-dark .NB-module-recommended .NB-recommended-title {
    border-bottom: 1px solid #777;
}

/* "Recomended Site" title color */
.NB-dark .NB-recommended-title {
    color: #eee;
}


/* Link color */
.NB-dark a.NB-splash-link,
.NB-dark .NB-module-features .NB-module-feature .NB-module-feature-description a {
    color: #83b4e0;
}

/* Background color of "Upgrade" box (only visible for free users */
.NB-dark .NB-module-premium .NB-module-item-intro {
    background: linear-gradient(145deg, #2a3a30 0%, #253530 50%, #203028 100%);
    border: 1px solid rgba(106, 142, 66, 0.3);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* darkmode.css: "Reason to upgrade" icons are dark line art (e.g. direction_black.svg)
   that disappears on the dark card. Normalize to black, then invert to light gray —
   same treatment as the premium tier modal's bullet icons. !important overrides the
   per-icon filters in reader.css (e.g. the archive NB-5 train icon). */
.NB-dark .NB-module-premium-icon,
.NB-dark .NB-module-premium-archive-icon {
    filter: brightness(0) invert(0.85) brightness(1.2) !important;
}

.NB-dark .NB-modal-feedchooser .NB-premium-prorate-message {
    color: rgba(216, 216, 216, 0.5);
}

.NB-dark .NB-feed-badge {
    background-color: #303739;
}

/* Background color of
"Premium Account", "Manage", "Past Day" & "Past Day by Hour*/
.NB-dark .NB-module-stats-counts {
    background-color: #303739;
}

.NB-dark .NB-module-account-subscription .NB-module-stats-count-description {
    color: #c0c0c0;
}

/* "Logout", "Try" & "Add" button colors */
.NB-dark .NB-recommended-try,
.NB-dark .NB-recommended-add,
.NB-dark .NB-modal-submit-green .NB-modal-submit-button,
.NB-dark .NB-modal-submit-grey .NB-modal-submit-button,
.NB-dark .NB-menu-manage-logout {
    background-color: #505050;
    background-image: none;
    color: #d5d4db;
    text-shadow: none;
}

/* Red buttons */
.NB-dark .NB-modal-submit-button {
    border: none;
}

/* Disabled Buttons */
.NB-dark .NB-modal-submit-green.NB-disabled,
.NB-dark .NB-modal-submit-button.NB-disabled {
    color: #999;
    background-color: #505050;
}

/* Title colors of
"Premium Account", "Manage", "Past Day" & "Past Day by Hour* */
.NB-dark .NB-module-stats-count-number {
    color: #c0c0c0;
    text-shadow: 0 1px 0 rgba(0, 0, 0, 0.2);
}

/* Graph color */
.NB-dark .NB-graph-value .NB-graph-bar {
    background-color: #83b4e0;
}

/* Graph hover text color */
.NB-dark .NB-graph-value .NB-graph-label {
    font-weight: bold;
    text-shadow: none;
}

/* Search input field color */
.NB-dark .NB-module-search-input input {
    color: #c0c0c0;
    background-color: #505050;
    border: solid 1px #505050;
}

/* Bottom splash links color */
.NB-dark .NB-splash-info .NB-splash-links a {
    color: #83b4e0;
    text-shadow: none;
}

/* "All Site Stories" color of titles */
.NB-dark .NB-storytitles-title {
    color: #c0c0c0;
}

.NB-dark .read .NB-storytitles-title {
    color: #797b7c;
}

.NB-dark .NB-feeds-header-user-interactions img,
.NB-dark .NB-feeds-header-collapse-sidebar img {
    opacity: 0.9;
}

.NB-dark .NB-feeds-header-user-interactions:hover img,
.NB-dark .NB-feeds-header-collapse-sidebar:hover img {
    opacity: 1.0;
}


/* ================ */
/* = Pop-up Menus = */
/* ================ */

/* Manage menu on splash page & cogwheel pop-up */
.NB-dark .NB-menu-manage-container {
    background-color: #151613;
}

.NB-dark .NB-menu-manage li.NB-menu-item {
    background-color: #303739;
}

.NB-dark .NB-menu-manage-container,
.NB-dark .NB-menu-manage .NB-menu-manage-site-info,
/* Preferences title background */
.NB-dark .NB-menu-manage li.NB-menu-item,
/* Icon background */
.NB-dark .NB-menu-manage-title

/* Title text background */
    {
    box-shadow: none;
    text-shadow: 0 1px 0 rgba(0, 0, 0, 0.2);
    border-color: #10120b;
}

.NB-dark .NB-menu-manage li.NB-menu-item:hover:not(.NB-disabled):not(.NB-active),
.NB-dark .NB-menu-manage li.NB-menu-item.NB-hover:not(.NB-disabled):not(.NB-active) {
    text-shadow: 0 1px 0 rgba(0, 0, 0, 0.2);
    background-color: #3d4649;
}

.NB-dark .NB-menu-manage li.NB-menu-item:hover .NB-menu-manage-subtitle {
    color: rgba(255, 255, 255, .4);
}

.NB-dark .NB-menu-manage li.NB-menu-item:hover:not(.NB-disabled) .NB-menu-manage-title {
    text-shadow: 0 1px 0 rgba(0, 0, 0, 0.2);
}

/* Subtitle color for manage menu on cogwheel pop-up */
.NB-dark .NB-menu-manage-subtitle {
    color: gray;
}

/* Title colors and Folder titles when moving a feed to another folder */
.NB-dark .NB-popover-section-title,
.NB-dark .NB-folder-option-title {
    color: #c0c0c0;
}

/* Dividers */
.NB-dark .NB-popover-section,
.NB-dark .NB-menu-manage li.NB-menu-separator {
    border-bottom: 1px solid #252623;
}

/* Dividers: No bottom divider on last element */
.NB-dark .NB-popover-section:last-child,
.NB-dark .NB-menu-manage li.NB-menu-separator-inverse {
    border-bottom: none;
}

.NB-dark .NB-menu-manage .NB-menu-manage-feed-info,
.NB-dark .NB-menu-manage .NB-menu-manage-site-info {
    background-color: #252623;
}

.NB-dark .popover {
    box-shadow: none;
    background-color: #303739;
}

/* Arrow color, then clicking the options of a feed or story */
.NB-dark .NB-menu-manage-arrow {
    background-image: none;
    background-color: #303739;
    border-color: #10120b;
}

.NB-dark .popover.top-left .arrow,
.NB-dark .popover.top-right .arrow,
.NB-dark .popover.top .arrow {
    border-top-color: #999;
    border-top-color: #10120b;
}

.NB-dark .popover.top-left .arrow:after,
.NB-dark .popover.top-right .arrow:after,
.NB-dark .popover.top .arrow:after {
    border-top-color: #303739;
    border-bottom-width: 2px;
}

.NB-dark .popover.right .arrow {
    border-right-color: #999;
    border-right-color: #10120b;
}

.NB-dark .popover.right .arrow:after {
    border-right-color: #303739;
}

.NB-dark .popover.bottom .arrow,
.NB-dark .popover.bottom-left .arrow,
.NB-dark .popover.bottom-right .arrow {
    border-bottom-color: #10120b;
}

.NB-dark .popover.bottom .arrow:after,
.NB-dark .popover.bottom-left .arrow:after,
.NB-dark .popover.bottom-right .arrow:after {
    border-bottom-color: #303739;
    border-top-width: 2px;
}

.NB-dark .popover.left .arrow {
    border-left-color: #999;
    border-left-color: #10120b;
}

.NB-dark .popover.left .arrow:after {
    border-left-color: #303739;
}

/* Add new site border color */
.NB-dark .NB-popover {
    background-color: #303739;
    border: 3px solid #10120b;
    padding: 1px;
}

.NB-dark .NB-add-popover-container.popover {
    background: linear-gradient(160deg, #353A3D 0%, #2A2F32 100%);
}

/* Add new site color */
.NB-dark .NB-add-form {
    color: #c0c0c0;
}

/* Add new site input field and drop down menu */
.NB-dark .NB-input,
.NB-dark .NB-add input[type=text].ui-autocomplete-loading,
.NB-dark textarea,
.NB-dark textarea.NB-modal-email-comments,
.NB-dark .NB-add-form .NB-folders {
    color: #c0c0c0;
    background: none;
    background-color: #505050;
    border: solid 1px #505050;
}

.NB-dark .ui-menu.ui-autocomplete li {
    border-bottom: 1px solid #292931;
}

/* Input field suggestions window (1 of 6) */
.NB-dark .NB-add-form .ui-autocomplete.ui-widget-content {
    /*  position: static; */
    border-radius: 4px;
    border: 1px solid #90928b;
    background-color: #505050;
    background: none;
    color: #c0c0c0;
}

/* Autocomplete suggestions - dark mode */
.NB-dark .ui-menu.ui-autocomplete .ui-menu-item a {
    background: transparent;
    color: #c0c0c0;
}

.NB-dark .ui-menu.ui-autocomplete .ui-menu-item a:hover {
    background: #353A40;
    color: #c0c0c0;
}

/* Discover Section in Add Popover - Dark Mode */
.NB-dark .NB-add-discover-divider::before,
.NB-dark .NB-add-discover-divider::after {
    border-bottom-color: #404548;
}

.NB-dark .NB-add-discover-divider span {
    color: #909090;
}

.NB-dark .NB-add-discover-source {
    background: linear-gradient(135deg, #303438 0%, #282C30 100%);
    border-color: #404548;
}

.NB-dark .NB-add-discover-source:hover {
    background: linear-gradient(135deg, #383C40 0%, #303438 100%);
    border-color: #5C89C9;
}

.NB-dark .NB-add-discover-source img {
    filter: brightness(0.9);
}

.NB-dark .NB-add-discover-source img.NB-mono {
    filter: brightness(0.8);
}

.NB-dark .NB-add-discover-source span {
    color: #B0B0B0;
}

.NB-dark .NB-add-header {
    color: #D0D0D0;
}

.NB-dark .NB-add-header-icon {
    background: #5C89C9;
}



.NB-dark .NB-add-input-row {
    border-color: #505458;
    background: #282C30;
}

.NB-dark .NB-add-input-row:focus-within {
    border-color: #5C89C9;
    box-shadow: 0 0 0 2px rgba(92, 137, 201, 0.2);
}

.NB-dark .NB-add-input-row .NB-add-url {
    color: #D0D0D0;
}

.NB-dark .NB-add-input-row .NB-add-url::placeholder {
    color: #707070;
}

.NB-dark .NB-add-input-row .NB-add-url-submit {
    background: #4A73B0;
}

.NB-dark .NB-add-input-row .NB-add-url-submit:hover {
    background: #5C89C9;
}

.NB-dark .NB-add-folder-label {
    color: #707070;
}

.NB-dark .NB-add-folder-row .NB-folders {
    border-color: #505458;
    background: #282C30;
    color: #B0B0B0;
}

.NB-dark .NB-add-folder-input-row {
    border-color: #505458;
    background: #282C30;
}

.NB-dark .NB-add-folder-input-row:focus-within {
    border-color: #5C89C9;
    box-shadow: 0 0 0 2px rgba(92, 137, 201, 0.2);
}

.NB-dark .NB-add-folder-input-row .NB-add-folder-input {
    color: #D0D0D0;
}

.NB-dark .NB-add-folder-input-row .NB-add-folder-input::placeholder {
    color: #707070;
}

.NB-dark .NB-add-folder-input-row .NB-add-folder-submit {
    background: #4A8A4A;
}

.NB-dark .NB-add-discover-trending {
    border-color: #4A6A90;
    background: #2A3440;
}

.NB-dark .NB-add-discover-trending span {
    color: #8BB0D8;
}

.NB-dark .NB-add-discover-trending img {
    filter: brightness(0) saturate(100%) invert(70%) sepia(20%) saturate(400%) hue-rotate(180deg);
}

.NB-dark .NB-add-discover-trending:hover {
    background: #33404E;
    border-color: #5C89C9;
}

.NB-dark .NB-add-discover-popular {
    border-color: #8B6040;
    background: #3A3028;
}

.NB-dark .NB-add-discover-popular>span {
    color: #D8A070;
}

.NB-dark .NB-add-discover-popular>img {
    filter: brightness(0) saturate(100%) invert(70%) sepia(40%) saturate(400%) hue-rotate(350deg);
}

.NB-dark .NB-add-discover-popular-arrow {
    color: #D8A070;
}

.NB-dark .NB-add-discover-popular:hover {
    background: #453828;
    border-color: #D4742B;
}

.NB-dark .NB-add-discover-popular-flyout-inner {
    background: #303438;
    border-color: #404548;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3), 0 2px 8px rgba(0, 0, 0, 0.2);
}

.NB-dark .NB-add-discover-popular-category:hover {
    background: #383C40;
}

.NB-dark .NB-add-discover-popular-category-name {
    color: #E0E0E0;
}

.NB-dark .NB-add-discover-popular-category-count {
    color: #808080;
}

.NB-dark .NB-add-discover-popular-loading {
    color: #808080;
}

.NB-dark .NB-add-discover-popular-category.NB-category-all .NB-add-discover-popular-category-name {
    color: #8BB0D8;
}

.NB-dark .NB-add-discover-popular-separator {
    background: #404548;
}

/* Autocomplete dropdown dark mode */
.NB-dark .ui-menu.ui-autocomplete.ui-widget-content {
    background: #282C30;
    border-color: #404548;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3), 0 2px 8px rgba(0, 0, 0, 0.2);
}

.NB-dark .ui-menu.ui-autocomplete li a.ui-state-hover,
.NB-dark .ui-menu.ui-autocomplete li a.ui-state-active,
.NB-dark .ui-menu.ui-autocomplete li a.ui-state-focus {
    background: #353A40;
}

.NB-dark .ui-menu.ui-autocomplete .NB-add-autocomplete-title {
    color: #E0E0E0;
}

.NB-dark .ui-menu.ui-autocomplete .NB-add-autocomplete-subscribers {
    color: #707070;
}

.NB-dark .ui-menu.ui-autocomplete .NB-add-autocomplete-address {
    color: #707070;
}

.NB-dark .NB-autocomplete-freshness.NB-freshness-stale .NB-freshness-label {
    color: #F9A825;
}

.NB-dark .NB-autocomplete-freshness.NB-freshness-none .NB-freshness-dot {
    background: #505458;
}

.NB-dark .NB-autocomplete-freshness.NB-freshness-none .NB-freshness-label {
    color: #606060;
}

/* Unread/Oldest text color */
.NB-dark .NB-feedbar-options-stat .NB-stat,
.NB-dark .NB-dashboard-river-options-stat .NB-stat {
    color: #c0c0c0;
}

/* Style Font family active */
.NB-dark .segmented-control-vertical li.NB-active,
.NB-dark .segmented-control-vertical li.NB-active:active,
.NB-dark .segmented-control-vertical-active li {
    color: #c0c0c0;
    background-color: #6D6D74;
    background-image: none;
}

/* Style Font family non-active */
.NB-dark .segmented-control-vertical li {
    color: #c0c0c0;
    text-shadow: none;
    background-color: #303739;
    background-image: none;
}

/* Background color */
.NB-dark #simplemodal-container {
    background-color: #2f3840;
    border: none;
    box-shadow:
        0 0 0 1px rgba(0, 0, 0, 0.3),
        0 2px 4px rgba(0, 0, 0, 0.15),
        0 8px 16px rgba(0, 0, 0, 0.2),
        0 24px 48px rgba(0, 0, 0, 0.25);
}

/* Title color */
.NB-dark .NB-modal .NB-modal-title,
.NB-dark .NB-modal .NB-modal-subtitle,
.NB-dark .NB-modal .NB-feed-title,
.NB-dark .NB-modal .NB-modal-feed-heading,
.NB-dark .NB-modal-trainer .NB-trainer-points li b {
    color: #c0c0c0;
    text-shadow: none;
}

/* Header boxes */
.NB-dark fieldset legend {
    color: #c0c0c0;
    background-color: #303739;
    border: 1px solid #777;
}

/* Divider color */
.NB-dark .NB-profile-badge,
.NB-dark .NB-feed-notification,
.NB-dark .NB-feed-notification-group,
.NB-dark .NB-notification-scope-section,
.NB-dark fieldset {
    border-color: #777;
}

.NB-dark .NB-classifier-notification-value {
    color: #b0b0b0;
}

.NB-dark .NB-notification-scope-label {
    color: #999;
}

/* Selected tab */
.NB-dark .NB-modal .NB-modal-tab.NB-active {
    color: #c0c0c0;
    text-shadow: none;
    background-color: #252D30;
    border-bottom: 1px solid #252D30;
}

/* Non-selected tab */
.NB-dark .NB-modal .NB-modal-tab {
    color: #c0c0c0;
    text-shadow: none;
    background-color: #303739;
    border-bottom: 1px solid #777;
    border-top: 1px solid #777;
    border-left: 1px solid #777;
}

/* Last tab */
.NB-dark .NB-modal .NB-modal-tab:last-child {
    border-right: 1px solid #777;
}

/* Center window */
.NB-dark .NB-modal .NB-tab {
    color: #c0c0c0;
    border-top: 1px solid #777;
}

/* section "blobs" */
.NB-dark .NB-preference,
.NB-dark .NB-profile-badge table {
    background-color: #303739;
}

/* Text color for labels (Full, split, list, etc.) in preferences */
.NB-dark .NB-view-settings.NB-preference-options label,
.NB-dark .NB-modal-preferences .NB-preference-password label {
    color: #c0c0c0;
}

/* Drop down menus */
.NB-dark select {
    color: #c0c0c0;
    background-color: #505050;
    border: solid 1px #505050;
}

/* CSS input fields */
.NB-dark .NB-modal-profile-editor .NB-profile-blurblog-css,
.NB-dark .NB-modal-account .NB-account-custom-css,
.NB-dark .NB-modal-account .NB-account-custom-javascript {
    color: #c0c0c0;
    background-color: #505050;
    border: solid 1px #505050;
}

.NB-dark .NB-modal-account .NB-renewal-notify-container {
    background: #3a3a38;
    border-color: #4a4a46;
}

.NB-dark .NB-modal-account .NB-renewal-notify-label {
    color: #999;
}

.NB-dark .NB-modal-profile .NB-profile-followers {
    background-color: #464646;
    text-shadow: 0 1px 0 rgba(0, 0, 0, 0.3);
}

/*Account input fields */
.NB-dark .NB-modal-account .NB-preference-username input,
.NB-dark .NB-modal-account .NB-preference-email input,
.NB-dark .NB-modal-account .NB-preference-password input {
    color: #c0c0c0;
    background: none;
    background-color: #505050;
    border: solid 1px #505050;
    box-shadow: none;
}

/* Classifier delete pills */
.NB-dark .NB-modal-account .NB-classifier-pill {
    background: #3a3a3a;
    border-color: #555;
    color: #c0c0c0;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.NB-dark .NB-modal-account .NB-classifier-pill:hover {
    background: #454545;
    border-color: #707070;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.NB-dark .NB-modal-account .NB-classifier-pill.NB-checked {
    background: #1b3d1b;
    border-color: #3a8a3a;
    color: #a0d0a0;
    box-shadow: 0 1px 3px rgba(56, 142, 60, 0.2);
}

.NB-dark .NB-modal-account .NB-classifier-pill-count {
    background: rgba(255, 255, 255, 0.1);
    color: #999;
}

.NB-dark .NB-modal-account .NB-classifier-pill.NB-checked .NB-classifier-pill-count {
    background: #3a8a3a;
    color: #e8f5e9;
}

.NB-dark .NB-modal-account .NB-preference-classifiers-count.NB-empty {
    background: #333;
    color: #777;
    border-color: #444;
}

/* Goodies & Extras: official app hero card */
.NB-dark .NB-modal-goodies .NB-goodies-hero {
    background-color: #303739;
    border-color: #3E4649;
}

.NB-dark .NB-modal-goodies .NB-goodies-hero-name,
.NB-dark .NB-modal-goodies .NB-goodies-app-name {
    color: #c0c0c0;
    text-shadow: none;
}

.NB-dark .NB-modal-goodies .NB-goodies-hero-meta,
.NB-dark .NB-modal-goodies .NB-goodies-app-meta,
.NB-dark .NB-modal-goodies .NB-goodies-section-title {
    color: #8a9294;
}

/* Goodies & Extras: app cards and screenshot borders */
.NB-dark .NB-modal-goodies .NB-goodies-app,
.NB-dark .NB-modal-goodies .NB-goodies-tip {
    background-color: #2A3133;
    border-color: #3E4649;
}

.NB-dark .NB-modal-goodies .NB-goodies-hero-shots img,
.NB-dark .NB-modal-goodies .NB-goodies-app-thumbs img {
    border-color: #3E4649;
}

/* Goodies & Extras: Custom URLs input field */
.NB-dark .NB-modal-goodies .NB-goodies-custom-input {
    color: #c0c0c0;
    background-color: #505050;
    border: solid 1px #505050;
}

/* Refer & Gift modal dark mode overrides */
.NB-dark .NB-referral-hero {
    background: linear-gradient(135deg, #1E2E16 0%, #253520 40%, #2A2E24 100%);
}

.NB-dark .NB-referral-hero::before {
    background: radial-gradient(circle, rgba(106, 159, 62, 0.1) 0%, transparent 70%);
}

.NB-dark .NB-referral-hero-headline {
    color: #8BC34A;
}

.NB-dark .NB-referral-hero-subtext {
    color: #9AB88A;
}

.NB-dark .NB-referral-hero-illustration {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 80 80' fill='none'%3E%3Ccircle cx='28' cy='26' r='10' fill='%236AAE40'/%3E%3Cpath d='M10 58c0-10 8-18 18-18s18 8 18 18' fill='%236AAE40' opacity='0.3'/%3E%3Ccircle cx='52' cy='26' r='10' fill='%238BC34A'/%3E%3Cpath d='M34 58c0-10 8-18 18-18s18 8 18 18' fill='%238BC34A' opacity='0.3'/%3E%3Cpath d='M36 38l8-6 8 6' stroke='%23FFD54F' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round' fill='none'/%3E%3Cpath d='M44 32v-8' stroke='%23FFD54F' stroke-width='2.5' stroke-linecap='round'/%3E%3Cpath d='M68 14l1.5 4.5 4.5 1.5-4.5 1.5-1.5 4.5-1.5-4.5-4.5-1.5 4.5-1.5z' fill='%23FFD54F' opacity='0.7'/%3E%3Cpath d='M14 12l1 3 3 1-3 1-1 3-1-3-3-1 3-1z' fill='%23FFD54F' opacity='0.5'/%3E%3C/svg%3E");
}

.NB-dark .NB-gift-redeemed-banner {
    background: linear-gradient(135deg, #2E2810 0%, #3A3018 40%, #332C14 100%);
    border-color: #5C4E1E;
}

.NB-dark .NB-gift-redeemed-banner::before {
    background: radial-gradient(circle, rgba(255, 193, 7, 0.08) 0%, transparent 70%);
}

.NB-dark .NB-gift-redeemed-banner-headline {
    color: #FFB74D;
}

.NB-dark .NB-gift-redeemed-banner-subtext {
    color: #BCAA80;
}

.NB-dark .NB-gift-redeemed-banner-icon {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Crect x='3' y='8' width='18' height='13' rx='2' fill='%23C49000' stroke='%23A67C00' stroke-width='1.5'/%3E%3Crect x='1' y='5' width='22' height='5' rx='1.5' fill='%23DEAD30' stroke='%23C49000' stroke-width='1.5'/%3E%3Crect x='10.5' y='5' width='3' height='16' fill='%23BF6000' opacity='0.7'/%3E%3Cpath d='M12 5C12 5 9 2 7 2C5.5 2 4.5 3 5 4.5C5.5 5.5 8 5 12 5Z' fill='%23BF6000' opacity='0.8'/%3E%3Cpath d='M12 5C12 5 15 2 17 2C18.5 2 19.5 3 19 4.5C18.5 5.5 16 5 12 5Z' fill='%23BF6000' opacity='0.8'/%3E%3C/svg%3E");
}

.NB-dark .NB-gift-hero {
    background: linear-gradient(135deg, #1E1A2E 0%, #252030 40%, #2A2530 100%);
}

.NB-dark .NB-gift-hero-illustration {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 36 36' fill='none'%3E%3Crect x='4' y='16' width='28' height='17' rx='2' fill='%238E63BF'/%3E%3Crect x='2' y='12' width='32' height='6' rx='2' fill='%23A77FD4'/%3E%3Crect x='16' y='12' width='4' height='21' fill='%231E1A2E' opacity='0.4'/%3E%3Crect x='2' y='14' width='32' height='3' fill='%231E1A2E' opacity='0.25'/%3E%3Cellipse cx='14' cy='10' rx='6' ry='5' fill='%23B39DDB' opacity='0.7' transform='rotate(-10 14 10)'/%3E%3Cellipse cx='22' cy='10' rx='6' ry='5' fill='%23B39DDB' opacity='0.7' transform='rotate(10 22 10)'/%3E%3Ccircle cx='18' cy='11' r='3' fill='%23FFD54F'/%3E%3C/svg%3E");
}

.NB-dark .NB-gift-hero-headline {
    color: #B39DDB;
}

.NB-dark .NB-gift-hero-step-number {
    background: #6A4D9A;
}

.NB-dark .NB-gift-hero-step-refund .NB-gift-hero-step-number {
    background: #606060;
}

.NB-dark .NB-gift-hero-step-text {
    color: #B0A0C8;
}

.NB-dark .NB-gift-hero-step-text b {
    color: #C8B8E0;
}

.NB-dark .NB-referral-url-input {
    background: #404040;
    border-color: #606060;
    color: #d0d0d0;
}

.NB-dark .NB-referral-url-description {
    color: #909090;
}

.NB-dark .NB-referral-stat {
    background: #353535;
}

.NB-dark .NB-referral-stat-value {
    color: #d0d0d0;
}

.NB-dark .NB-referral-table th,
.NB-dark .NB-gift-table th {
    color: #909090;
    border-bottom-color: #505050;
}

.NB-dark .NB-referral-table td,
.NB-dark .NB-gift-table td {
    color: #c0c0c0;
    border-bottom-color: #404040;
}

.NB-dark .NB-referral-empty,
.NB-dark .NB-gift-empty {
    color: #707070;
}

.NB-dark .NB-gift-tier {
    border-color: #505050;
}

.NB-dark .NB-gift-tier:hover {
    border-color: #707070;
    background: #383838;
}

.NB-dark .NB-gift-tier.NB-active {
    border-color: #6A9F3E;
    background: #2A3A20;
}

.NB-dark .NB-gift-tier-name {
    color: #d0d0d0;
}

.NB-dark .NB-gift-tier-price {
    color: #909090;
}

.NB-dark .NB-gift-staff-option {
    background: #3A3520;
    color: #C0A040;
}

.NB-dark .NB-gift-staff-option label {
    color: #C0A040;
}

.NB-dark .NB-gift-result {
    background: #1A3A1A;
}

.NB-dark .NB-gift-result-label {
    color: #60C060;
}

.NB-dark .NB-gift-result-url {
    background: #303030;
    border-color: #506050;
    color: #c0c0c0;
}

.NB-dark .NB-gift-error {
    background: #3A1A1A;
    color: #F08080;
}

.NB-dark .NB-gift-link {
    color: #6A9F3E;
}

.NB-dark .NB-gift-duration {
    border-color: #505050;
}

.NB-dark .NB-gift-duration:hover {
    border-color: #707070;
    background: #383838;
}

.NB-dark .NB-gift-duration.NB-active {
    border-color: #6A9F3E;
    background: #2A3A20;
}

.NB-dark .NB-gift-duration-label {
    color: #d0d0d0;
}

.NB-dark .NB-gift-duration-price {
    color: #909090;
}

/* Features & Tips modal */
.NB-dark #simplemodal-container:has(.NB-modal-features) {
    background-color: #1a1f24;
    border-color: #374151;
}

.NB-dark #simplemodal-container:has(.NB-modal-features) .simplemodal-data {
    background-color: #1a1f24;
}

.NB-dark .NB-modal-features {
    background: linear-gradient(180deg, #1a1f24 0%, #151a1e 100%);
}

.NB-dark .NB-modal-features .NB-features-header {
    border-bottom-color: rgba(255, 255, 255, 0.08);
}

.NB-dark .NB-modal-features .NB-modal-title {
    color: #e5e7eb;
}

.NB-dark .NB-features-header-subtitle {
    color: #9ca3af;
}

.NB-dark .NB-features-rail {
    border-right-color: rgba(255, 255, 255, 0.08);
}

.NB-dark .NB-features-rail-item:hover {
    background: rgba(255, 255, 255, 0.05);
}

/* Border color comes from the feature's accent (reader.css), same in both themes */
.NB-dark .NB-features-rail-item.NB-active {
    background: #252d33;
}

.NB-dark .NB-features-rail-name {
    color: #c0c8d0;
}

.NB-dark .NB-features-rail-item.NB-active .NB-features-rail-name {
    color: #e5e7eb;
}

.NB-dark .NB-features-rail-divider {
    color: #6b7280;
}

.NB-dark .NB-features-detail-name {
    color: #e5e7eb;
}

.NB-dark .NB-features-detail-subtitle,
.NB-dark .NB-features-faq-a {
    color: #9ca3af;
}

.NB-dark .NB-features-step-text,
.NB-dark .NB-features-tip-text {
    color: #c0c8d0;
}

.NB-dark .NB-features-shot img {
    border-color: #374151;
}

.NB-dark .NB-features-shot-caption,
.NB-dark .NB-features-section-title {
    color: #6b7280;
}

.NB-dark .NB-features-faq-item {
    background: #252d33;
    border-color: #374151;
}

.NB-dark .NB-features-faq-q {
    color: #e5e7eb;
}

.NB-dark .NB-features-rail {
    scrollbar-color: #374151 transparent;
}

@media (max-width: 900px) {
    .NB-dark .NB-features-rail {
        border-bottom-color: rgba(255, 255, 255, 0.08);
    }
}

/* Import or upload sites: Text color */
.NB-dark .NB-modal-page-text,
.NB-dark .NB-modal-intro .NB-page-2 h4,
.NB-dark .NB-modal-intro .NB-page-3,
.NB-dark .NB-modal-intro .NB-page-4,
.NB-dark .NB-modal-intro .NB-intro-import-starred-message,
.NB-dark .NB-modal-intro .NB-intro-module,
.NB-dark .NB-modal-intro .NB-intro-uptodate-follow,
.NB-dark .NB-modal-intro .NB-intro-services-stats-count-number {
    color: #c0c0c0;
    text-shadow: none;
}

/* Import or upload sites: Container color */
.NB-dark .NB-modal-intro .NB-intro-module,
.NB-dark .NB-modal-intro .NB-intro-uptodate-follow {
    background-color: #303739;
    border: 1px solid #999;
}

/* Import or upload sites: "Choose categories" selection color */
.NB-dark .NB-modal-intro .NB-intro-module .NB-modal-submit-button {
    background-color: #505050;
    background-image: none;
    color: #d5d4db;
    text-shadow: none;
}

/* Email Newsletters: Email field */
.NB-dark .NB-modal-newsletters .NB-newsletters-email {
    color: #c0c0c0;
    background-color: #505050;
    border: solid 1px #505050;
}

/* Email Newsletters: Body text color */
.NB-dark .NB-newsletters-group {
    color: #c0c0c0;
}

/* Keyboard shortcuts: Section "blobs" */
.NB-dark .NB-keyboard-group,
.NB-dark .NB-keyboard-shortcut-explanation {
    color: #c0c0c0;
    text-shadow: none;
    background-color: #303739;
}


/* Organize sites: Text color */
.NB-dark .NB-organizer-action-title,
.NB-dark .NB-organizer-sidebar-title,
.NB-dark .NB-feed-organizer-subscribers,
.NB-dark .NB-feed-organizer-laststory,
.NB-dark .NB-feed-organizer-monthlycount,
.NB-dark .NB-feed-organizer-opens {
    color: #c0c0c0;
}

/* Organize sites: Sorting categories text color */
.NB-dark .NB-modal-organizer .NB-organizer-action,
.NB-dark .NB-modal-organizer .NB-organizer-action.NB-active,
.NB-dark .NB-modal-organizer .NB-organizer-action.NB-active:hover {
    color: #83b4e0;
}

/* Organize sites: Container color */
.NB-dark .NB-modal-organizer .NB-organizer-sidebar-container {
    background-color: #303739;
}

/* Mute sites: Text color */
.NB-dark .NB-feedchooser-info-counts {
    text-shadow: none;
    background: rgba(133, 189, 103, 0.15);
    color: #85bd67;
}

.NB-dark .NB-modal-feedchooser .NB-feedchooser-info-counts.NB-full {
    color: #7dd3fc;
    background: rgba(56, 189, 248, 0.15);
}

.NB-dark .NB-modal-feedchooser .NB-feedchooser-info-counts.NB-error {
    color: #f87171;
    background: rgba(248, 113, 113, 0.15);
}

.NB-dark .NB-modal-feedchooser .NB-feedchooser-info-sort {
    color: #707070;
}

.NB-dark .NB-modal-feedchooser .NB-modal-subtitle b {
    color: #85bd67;
}

.NB-dark .NB-modal-feedchooser .NB-feedchooser-premium-plan {
    background-color: #303739;
}

.NB-dark .NB-modal-feedchooser .NB-feedchooser-info-reset {
    text-shadow: 0 1px 0 #181818;
}

.NB-dark .NB-modal-feedchooser .NB-feedchooser-premium-bullets {
    color: #A0A0A0;
    text-shadow: 0 1px 0 rgba(0, 0, 0, 0.6);
}

.NB-dark .NB-modal-feedchooser .NB-feedchooser-premium-bullets li {
    border-top-color: rgba(0, 0, 0, .1);
}

.NB-dark .NB-modal-feedchooser .NB-feedchooser-premium-bullets li .NB-feedchooser-premium-bullet-image {
    filter: brightness(5);
}

.NB-dark .NB-modal-feedchooser .NB-feedchooser-dollar-value {
    text-shadow: 0 1px 0 #2b2a1e;
}

.NB-dark .NB-modal-feedchooser .NB-selected .NB-feedchooser-dollar-month {
    color: #8293b3;
}

.NB-dark .NB-modal-feedchooser .NB-selected .NB-feedchooser-dollar-year {
    color: #697192;
}

.NB-dark .NB-modal-feedchooser .NB-modal-submit.NB-modal-submit-paypal {
    background-color: #3b3725;
    background-image: -webkit-gradient(linear,
            left bottom,
            left top,
            color-stop(0.16, #3b3725),
            color-stop(0.84, #3b392e));
    box-shadow: 0 2px 0 #383215;
}

.NB-dark .NB-modal-feedchooser .NB-feedchooser-premium-already {
    background-color: rgb(48 88 83);
    color: #85bd67;
}

/* Feedchooser: Upgrade banner dark mode */
.NB-dark .NB-modal-feedchooser .NB-feedchooser-upgrade-banner {
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.18) 0%, rgba(14, 165, 233, 0.15) 100%);
    border-color: rgba(56, 189, 248, 0.35);
}

.NB-dark .NB-modal-feedchooser .NB-feedchooser-upgrade-banner:hover {
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.25) 0%, rgba(14, 165, 233, 0.22) 100%);
    border-color: rgba(56, 189, 248, 0.5);
}

.NB-dark .NB-modal-feedchooser .NB-feedchooser-upgrade-banner-text {
    color: #7dd3fc;
}

.NB-dark .NB-modal-feedchooser .NB-feedchooser-upgrade-banner-description {
    color: #bae6fd;
}

.NB-dark .NB-modal-feedchooser .NB-feedchooser-upgrade-banner-arrow {
    filter: brightness(0) saturate(100%) invert(80%) sepia(50%) saturate(500%) hue-rotate(160deg);
}

/* Feedchooser: Folder actions dark mode */
.NB-dark .NB-modal-feedchooser .NB-feedchooser-folder-actions .NB-splash-link {
    color: #909090;
}

.NB-dark .NB-modal-feedchooser .NB-feedchooser-folder-actions .NB-splash-link:hover {
    color: #c0c0c0;
}

.NB-dark .NB-modal-feedchooser .NB-feedchooser-folder-actions-separator {
    color: #505050;
}

/* Feedchooser: Auto-select button dark mode */
.NB-dark .NB-modal-feedchooser .NB-feedchooser-info-reset {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.12);
    color: #a0a0a0;
    text-shadow: none;
}

.NB-dark .NB-modal-feedchooser .NB-feedchooser-info-reset:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.18);
    color: #c0c0c0;
}

/* Feedchooser: Unified header dark mode */
.NB-dark .NB-modal-feedchooser .NB-feedchooser-tier-badge.NB-tier-free {
    background: #3f3f46;
    color: #a1a1aa;
}

.NB-dark .NB-modal-feedchooser .NB-feedchooser-tier-badge.NB-tier-premium {
    background: linear-gradient(135deg, #78350f, #92400e);
    color: #fde68a;
}

.NB-dark .NB-modal-feedchooser .NB-feedchooser-tier-badge.NB-tier-archive {
    background: linear-gradient(135deg, #1e3a5f, #1e40af);
    color: #93c5fd;
}

.NB-dark .NB-modal-feedchooser .NB-feedchooser-tier-badge.NB-tier-pro {
    background: linear-gradient(135deg, #064e3b, #065f46);
    color: #6ee7b7;
}

.NB-dark .NB-modal-feedchooser .NB-feedchooser-usage-text {
    color: #9ca3af;
}

.NB-dark .NB-modal-feedchooser .NB-feedchooser-usage-text.NB-state-ok {
    color: #4ade80;
}

.NB-dark .NB-modal-feedchooser .NB-feedchooser-usage-text.NB-state-error {
    color: #f87171;
}

.NB-dark .NB-modal-feedchooser .NB-feedchooser-progress-track {
    background: #3f3f46;
}

.NB-dark .NB-modal-feedchooser .NB-feedchooser-progress-label {
    color: #9ca3af;
}

.NB-dark .NB-modal-feedchooser .NB-feedchooser-progress-container.NB-state-ok .NB-feedchooser-progress-label {
    color: #4ade80;
}

.NB-dark .NB-modal-feedchooser .NB-feedchooser-progress-container.NB-state-error .NB-feedchooser-progress-label {
    color: #f87171;
}

.NB-dark .NB-modal-feedchooser .NB-feedchooser-upgrade-inline {
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.18), rgba(14, 165, 233, 0.15));
    border-color: rgba(56, 189, 248, 0.35);
}

.NB-dark .NB-modal-feedchooser .NB-feedchooser-upgrade-inline:hover {
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.25), rgba(14, 165, 233, 0.22));
    border-color: rgba(56, 189, 248, 0.5);
}

.NB-dark .NB-modal-feedchooser .NB-feedchooser-upgrade-text {
    color: #7dd3fc;
}

.NB-dark .NB-modal-feedchooser .NB-feedchooser-upgrade-limit {
    color: #bae6fd;
}

.NB-dark .NB-modal-feedchooser .NB-feedchooser-upgrade-arrow {
    filter: brightness(0) saturate(100%) invert(80%) sepia(50%) saturate(500%) hue-rotate(160deg);
}

/* Intelligence Trainer: Container color */
.NB-dark .NB-modal .NB-modal-subtitle,
.NB-dark .NB-modal-submit-bottom,
.NB-dark .NB-modal .NB-fieldset-fields {
    background-color: #252D30;
    border-top: none;
}

/* Intelligence Trainer: "Close" button color */
.NB-dark .NB-modal-trainer .NB-modal-submit .NB-modal-submit-grey {
    background-color: #505050;
    background-image: none;
    color: #d5d4db;
    text-shadow: none;
}

/* Site Settings: Text color */
.NB-dark .NB-preference-label,
.NB-dark .NB-modal-exception .NB-exception-label {
    color: #c0c0c0;
}

/* View Settings: Dark mode segmented controls */
.NB-dark .NB-modal-exception .NB-exception-option-view .segmented-control {
    background-color: #3a3c3e;
}

.NB-dark .NB-modal-exception .NB-exception-option-view .segmented-control li {
    color: #9A9B9C;
}

.NB-dark .NB-modal-exception .NB-exception-option-view .segmented-control li img {
    filter: invert(0.7);
}

.NB-dark .NB-modal-exception .NB-exception-option-view .segmented-control li.NB-active {
    background-color: #5a5c5e;
    color: #e0e0e0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.NB-dark .NB-modal-exception .NB-exception-option-view .segmented-control li.NB-active img {
    filter: invert(0.9);
}

.NB-dark .NB-modal-exception .NB-view-setting-label {
    color: #9A9B9C;
}

/* Auto-Mark Read Settings: Dark mode */
.NB-dark .NB-exception-option-auto-mark-read .NB-exception-option-status {
    color: #6EA74A;
}

.NB-dark .NB-exception-option-auto-mark-read .NB-auto-mark-read-upgrade-notice {
    color: #909090;
}

.NB-dark .NB-exception-option-auto-mark-read .NB-auto-mark-read-slider-container {
    background: rgba(255, 255, 255, 0.05);
}

.NB-dark .NB-exception-option-auto-mark-read .NB-auto-mark-read-slider {
    background: #404040;
}

.NB-dark .NB-exception-option-auto-mark-read .NB-auto-mark-read-slider::-webkit-slider-thumb {
    background: #7CA4D8;
}

.NB-dark .NB-exception-option-auto-mark-read .NB-auto-mark-read-slider::-moz-range-thumb {
    background: #7CA4D8;
}

.NB-dark .NB-exception-option-auto-mark-read .NB-auto-mark-read-slider-value {
    color: #a0a0a0;
}

.NB-dark .NB-exception-option-auto-mark-read .NB-auto-mark-read-slider-value b {
    color: #7CA4D8;
}

/* Mark unread slider dark mode */
.NB-dark .NB-mark-unread-slider-container {
    background: rgba(255, 255, 255, 0.05);
}

.NB-dark .NB-mark-unread-slider {
    background: #404040;
}

.NB-dark .NB-mark-unread-slider::-webkit-slider-thumb {
    background: #7CA4D8;
}

.NB-dark .NB-mark-unread-slider::-moz-range-thumb {
    background: #7CA4D8;
}

.NB-dark .NB-mark-unread-slider-value {
    color: #a0a0a0;
}

.NB-dark .NB-mark-unread-slider-value b {
    color: #7CA4D8;
}

/* Mute section dark mode */
.NB-dark .NB-exception-option-mute .NB-mute-slider-container {
    background: rgba(255, 255, 255, 0.05);
}

.NB-dark .NB-exception-option-mute .NB-mute-status {
    color: #6EA74A;
}

.NB-dark .NB-exception-option-mute .NB-mute-current-status {
    color: #a0a0a0;
}

.NB-dark .NB-exception-option-mute .NB-mute-settings-slider {
    background: #404040;
}

.NB-dark .NB-exception-option-mute .NB-mute-settings-slider::-webkit-slider-thumb {
    background: #7CA4D8;
}

.NB-dark .NB-exception-option-mute .NB-mute-settings-slider::-moz-range-thumb {
    background: #7CA4D8;
}

.NB-dark .NB-exception-option-mute .NB-mute-settings-slider-value {
    color: #7CA4D8;
}

.NB-dark .NB-mute-state-timed .NB-mute-current-status {
    color: #c9a860;
}

.NB-dark .NB-mute-state-permanent .NB-mute-current-status {
    color: #ca8f8f;
}

.NB-dark .NB-menu-manage .NB-mute-slider {
    background: #404040;
}

.NB-dark .NB-menu-manage .NB-mute-slider::-webkit-slider-thumb {
    background: #7CA4D8;
}

.NB-dark .NB-menu-manage .NB-mute-slider::-moz-range-thumb {
    background: #7CA4D8;
}

/* Feed flyout submenu in story manage menu - dark mode */
.NB-dark .NB-menu-manage li.NB-menu-item.NB-menu-manage-story-feed.NB-active {
    background-color: #3d4649;
}

.NB-dark .NB-menu-manage-story-feed-submenu {
    background-color: #303739;
    border-color: #10120b;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, .5);
}

.NB-dark .NB-menu-manage-story-feed-submenu li.NB-menu-item {
    background-color: #303739;
}

.NB-dark .NB-menu-manage-story-feed-submenu li.NB-menu-item:hover:not(.NB-disabled) {
    background-color: #3d4649;
}

.NB-dark .NB-menu-manage-story-feed-submenu li.NB-menu-separator {
    border-bottom-color: #252623;
}

/* Filter popover auto-mark-read slider dark mode */
.NB-dark .NB-filter-popover .NB-auto-mark-read-slider-container {
    background: rgba(255, 255, 255, 0.05);
}

.NB-dark .NB-filter-popover .NB-auto-mark-read-slider-value {
    color: #a0a0a0;
}

.NB-dark .NB-filter-popover .NB-auto-mark-read-slider-value b {
    color: #7CA4D8;
}

/* Preferences Days of Unread dark mode */
.NB-dark .NB-modal-preferences .NB-preference-daysofunread .NB-daysofunread-slider-container {
    background: rgba(255, 255, 255, 0.05);
}

.NB-dark .NB-modal-preferences .NB-preference-daysofunread .NB-daysofunread-slider {
    background: #404040;
}

.NB-dark .NB-modal-preferences .NB-preference-daysofunread .NB-daysofunread-slider::-webkit-slider-thumb {
    background: #7CA4D8;
}

.NB-dark .NB-modal-preferences .NB-preference-daysofunread .NB-daysofunread-slider::-moz-range-thumb {
    background: #7CA4D8;
}

.NB-dark .NB-modal-preferences .NB-preference-daysofunread .NB-daysofunread-slider-value {
    color: #a0a0a0;
}

.NB-dark .NB-modal-preferences .NB-preference-daysofunread .NB-daysofunread-slider-value b {
    color: #7CA4D8;
}

.NB-dark .NB-modal-preferences .NB-preference-daysofunread .NB-daysofunread-upgrade-notice {
    color: #909090;
}

/* Site Statistics: Text color */
.NB-dark .NB-modal-statistics .NB-statistics-stat .NB-statistics-label,
.NB-dark .NB-statistics-count,
.NB-dark .NB-modal-statistics .NB-statistics-classifiers {
    color: #c0c0c0;
    text-shadow: none;
}

/* Site Statistics: Dividers */
.NB-dark .NB-modal-statistics .NB-statistics-facet-title,
.NB-dark .NB-modal-statistics .NB-statistics-facet {
    border-bottom: none !important;
}

.NB-dark .NB-modal-statistics .NB-statistics-stat {
    border-color: #404040;
}

.NB-dark .NB-modal-statistics .NB-statistics-history-chart-hours-row {
    background-color: #252D30;
}

.NB-dark .NB-classifier {
    background-color: #59656D;
}

.NB-dark .NB-classifiers .NB-classifier.NB-classifier-like {
    box-shadow: 1px 1px 1px #1f1f21;
}

.NB-dark .NB-classifiers .NB-classifier.NB-classifier-dislike {
    box-shadow: 1px 1px 1px #1f1f21;
}

.NB-dark .NB-classifiers .NB-classifier label b {
    color: rgba(255, 255, 255, 0.4);
}

.NB-dark .NB-classifiers .NB-classifier label span {
    color: #c0c0c0;
    text-shadow: 0 1px 0 rgba(0, 0, 0, 0.2)
}

/* darkmode.css: Briefing classifier pills */
.NB-dark .NB-briefing-classifier {
    background-color: #2a5f28;
    border-color: #1a3f18;
    box-shadow: 1px 1px 1px #1f1f21;
}

.NB-dark .NB-briefing-classifier label b {
    color: rgba(214, 240, 213, 0.7);
}

.NB-dark .NB-briefing-classifier label span {
    color: #d6f0d5;
    text-shadow: 0 1px 0 rgba(0, 0, 0, 0.3);
}

.NB-dark .NB-briefing-classifier .NB-classifier-icon-like {
    filter: brightness(1.3);
}

/* Interactions / Activities text color and thickness */
.NB-dark .NB-interactions-popover.NB-active-interactions .NB-tab-interactions,
.NB-dark .NB-interactions-popover.NB-active-activities .NB-tab-activities {
    color: #c0c0c0;
    font-weight: bold;
}

/* Interactions / Activities bottom border color */
.NB-dark .NB-interactions-popover .NB-interactions-header {
    border-bottom: 1px solid rgba(204, 204, 204, 0.5);
}

/* Hover color */
.NB-dark .NB-interaction:hover:not(.NB-disabled) {
    background-color: #252D30;
    border-top: 1px solid transparent;
    border-bottom: 1px solid transparent;
}

/* Hover color of date "3 days ago" */
.NB-dark .NB-interaction:hover:not(.NB-disabled) .NB-interaction-date {
    color: #5e828b;
}

/* Click color (no color at all) */
.NB-dark .NB-interaction:active:not(.NB-disabled) {
    border-top: 1px solid transparent;
    border-bottom: 1px solid transparent;
    background-color: transparent;
    background: none;
}

/* New replies color */
.NB-dark .NB-interaction.NB-highlighted {
    background-color: #252D30;
    border-top: 1px solid transparent;
    border-bottom: 1px solid transparent;
}

/* Reply color */
.NB-dark .NB-interaction {
    background-color: #303739;
    border-bottom: 1px solid transparent;
}

/* Username color */
.NB-dark .NB-splash-info .NB-splash-links a,
.NB-dark .NB-static a,
.NB-dark .NB-splash-link {
    color: #FBDB9B;
}

/* "replied to your reply" text color */
.NB-dark .NB-interaction-title {
    color: #c0c0c0;
}

.NB-dark .NB-module-features .NB-module-feature .NB-module-feature-tag.NB-tag-problem {
    background-color: #c18025;
    color: rgb(217, 217, 217);
}

.NB-dark .NB-module-features .NB-module-feature .NB-module-feature-tag.NB-tag-praise {
    background-color: #D7B806;
    color: rgb(255, 255, 255);
}

.NB-dark .NB-module-features .NB-module-feature .NB-module-feature-tag.NB-tag-idea {
    background-color: #5C9A1E;
    color: rgb(224, 224, 244);
}

.NB-dark .NB-module-features .NB-module-feature .NB-module-feature-tag.NB-tag-question {
    background-color: #4981A9;
    color: rgb(224, 224, 244);
}



/* ============================ */
/* = Task bars (top & bottom) = */
/* ============================ */

.NB-dark .NB-feeds-header-user,
.NB-dark .NB-feedbar,
.NB-dark .NB-taskbar-container,
.NB-dark #story_titles .NB-feedbar,
.NB-dark .NB-splash-info.NB-splash-bottom,
.NB-dark .left-south {
    color: #ddd;
    text-shadow: 0 1px 0 rgba(0, 0, 0, .8);
    background: #393b3c;
    background-color: #393b3c;
    background-image: none;
    border-color: #303030
}

/* Media Player dark mode */
.NB-dark .NB-media-player {
    background-color: #2e3033;
    background-image: none;
    border-bottom-color: #404040;
}

.NB-dark .NB-media-player-title {
    color: #ddd;
}

.NB-dark .NB-media-player-type-badge {
    color: #777;
}

.NB-dark .NB-media-player-progress {
    background: #555;
}

.NB-dark .NB-media-player-progress::-webkit-slider-thumb {
    background: #bbb;
}

.NB-dark .NB-media-player-progress::-moz-range-thumb {
    background: #bbb;
}

.NB-dark .NB-media-player-time {
    color: #777;
}

.NB-dark .NB-media-player-volume-popover {
    background: #36393d;
    border-color: #4a4d52;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3), 0 1px 3px rgba(0, 0, 0, 0.2);
}

.NB-dark .NB-media-player-volume-container:hover .NB-media-player-volume-icon,
.NB-dark .NB-media-player-volume-icon:hover {
    background-color: rgba(255, 255, 255, 0.08);
}

.NB-dark .NB-media-player-volume::-webkit-slider-runnable-track {
    background: #505356;
}

.NB-dark .NB-media-player-volume::-webkit-slider-thumb {
    background: #a0a2a6;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.NB-dark .NB-media-player-volume::-moz-range-track {
    background: #505356;
}

.NB-dark .NB-media-player-volume::-moz-range-thumb {
    background: #a0a2a6;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.NB-dark .NB-media-player-speed {
    color: #aaa;
}

.NB-dark .NB-media-player-play-pause svg,
.NB-dark .NB-media-player-skip-back svg,
.NB-dark .NB-media-player-skip-forward svg {
    fill: #ccc;
}

.NB-dark .NB-media-player-settings svg,
.NB-dark .NB-media-player-close svg,
.NB-dark .NB-media-player-fullscreen svg {
    fill: #aaa;
}

.NB-dark .NB-media-player-volume-icon svg {
    fill: #aaa;
}

.NB-dark .NB-media-player-speed:hover,
.NB-dark .NB-media-player-play-pause:hover,
.NB-dark .NB-media-player-skip-back:hover,
.NB-dark .NB-media-player-skip-forward:hover,
.NB-dark .NB-media-player-settings:hover,
.NB-dark .NB-media-player-close:hover,
.NB-dark .NB-media-player-fullscreen:hover {
    background-color: rgba(255, 255, 255, 0.08);
}

.NB-dark .NB-media-settings-popover .NB-popover-section {
    border-bottom-color: rgba(255, 255, 255, 0.06);
}

.NB-dark .NB-media-settings-popover .NB-popover-section-title {
    color: #777;
}

.NB-dark .NB-media-settings-popover .NB-popover-section-description {
    color: #666;
}

.NB-dark .NB-media-player-queue-area {
    border-top-color: #404040;
}

.NB-dark .NB-media-player-queue li {
    color: #ccc;
}

.NB-dark .NB-media-player-queue li:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

.NB-dark .NB-media-player-queue-header {
    color: #777;
}

.NB-dark .NB-media-player-queue-empty {
    color: #666;
}

.NB-dark .NB-media-player-queue-remove svg {
    fill: #888;
}

.NB-dark .NB-media-player-queue-clear {
    color: #777;
}

.NB-dark .NB-media-player-queue-clear:hover {
    color: #aaa;
    background-color: rgba(255, 255, 255, 0.06);
}

.NB-dark .NB-queue-drag-handle svg {
    fill: #666;
}

.NB-dark .NB-queue-date {
    color: #666;
}

.NB-dark .NB-media-player-queue li.NB-queue-dragging {
    background: #3a3d40;
}

.NB-dark .NB-media-player-queue-header .segmented-control li {
    color: #777;
}

.NB-dark .NB-media-player-queue-header .segmented-control li.NB-active {
    color: #ddd;
}

.NB-dark .NB-media-player-queue-count,
.NB-dark .NB-media-player-history-count {
    color: #aaa;
    background-color: rgba(255, 255, 255, 0.1);
}

.NB-dark .NB-media-player-history-remove svg {
    fill: #888;
}

.NB-dark .NB-media-player-artwork {
    background: #444;
}

.NB-dark .NB-media-player-icon {
    background: linear-gradient(135deg, #4d8530, #3d6e27);
}

.NB-dark .NB-media-player-skip-back .NB-skip-label,
.NB-dark .NB-media-player-skip-forward .NB-skip-label {
    color: #aaa;
}

.NB-dark .NB-media-player-feed-title {
    color: #999;
}

.NB-dark .NB-media-play-now {
    background: #4d8530;
    border-color: #3d6e27;
}

.NB-dark .NB-media-play-now:hover {
    background: #5a9938;
}

.NB-dark .NB-media-play-next,
.NB-dark .NB-media-play-last {
    background: rgba(255, 255, 255, 0.08);
    color: #ccc;
    border-color: rgba(255, 255, 255, 0.1);
}

.NB-dark .NB-media-play-next:hover,
.NB-dark .NB-media-play-last:hover {
    background: rgba(255, 255, 255, 0.14);
}

.NB-dark .NB-media-play-next svg,
.NB-dark .NB-media-play-last svg {
    fill: #bbb;
}

/* Buttons on bottom & top bar */
.NB-dark .NB-modal h5,
.NB-dark .NB-module h5,
.NB-dark .NB-module-header,
.NB-dark .NB-module-recommended-date,
.NB-dark .NB-taskbar-options,
.NB-dark .NB-feedbar-options {
    background: none;
    background-color: #212225;
    color: #c0c0c0;
    text-shadow: 0 1px 0 rgba(0, 0, 0, .1);
    /*border: 1px solid #90928b;*/
}

/* Segmented Controls */


.NB-dark .segmented-control {
    background: none;
}

.NB-dark .segmented-control li {
    color: #9A9B9C;
    text-shadow: 0 1px 0 rgba(0, 0, 0, .1);
}

.NB-dark .segmented-control li.NB-active,
.NB-dark .segmented-control li.NB-active:not(.NB-disabled),
.NB-dark .segmented-control li:active:not(.NB-disabled),
.NB-dark .segmented-control-active li {
    background: none;
    background-color: #6c6c74;
    color: #FCFDFE;
    text-shadow: 0 1px 0 rgba(0, 0, 0, 0.1);
}

.NB-dark .segmented-control:hover {
    background-color: #494d54;
}

.NB-dark .segmented-control:hover li.NB-active {
    background-color: #787881;
}

.NB-dark .segmented-control li:hover:not(.NB-disabled):not(.NB-active) {
    background-color: #585b63;
}

.NB-dark .NB-dashboard-column-control li img {
    filter: invert(0.7);
}

.NB-dark .NB-dashboard-column-control li.NB-active img {
    filter: invert(0.9);
}

.NB-dark #story_taskbar {
    border-top: 1px solid #303030;
}

.NB-dark .NB-feedbar .NB-taskbar .NB-task-story-previous {
    border-right: 1px solid rgba(0, 0, 0, 0.1);
}

.NB-dark .NB-feedbar .NB-taskbar .NB-task-story-next {
    border-left: 1px solid rgba(0, 0, 0, 0.1);
}

/* Error text on bottom bar */
.NB-dark #story_taskbar .NB-river-progress .NB-river-progress-text,
.NB-dark #story_taskbar .NB-feed-error .NB-feed-error-text {
    color: #c0c0c0;
    text-shadow: 0 1px 0 rgba(0, 0, 0, .8);
}

/* "Unread/Oldest" & "Style" border color */
/* Story Titles Hidden Count */
.NB-dark .NB-feedbar .NB-feedbar-options,
.NB-dark .NB-dashboard-river .NB-dashboard-river-options,
.NB-dark #story_taskbar .NB-taskbar-options,
.NB-dark .NB-feedbar .NB-story-title-indicator,
.NB-dark .NB-feedbar .NB-feedbar-mark-feed-read,
.NB-dark .NB-feedbar .NB-feedbar-discover-container {
    color: #c0c0c0;
    border: 1px solid rgba(0, 0, 0, .3);
    background-color: #303739;
}

.NB-dark .NB-dashboard-river .NB-dashboard-river-options {
    background-color: #565759;
}

.NB-dark .NB-feedbar .NB-feedbar-options:hover,
.NB-dark .NB-dashboard-river .NB-dashboard-river-options:hover,
.NB-dark #story_taskbar .NB-taskbar-options:hover,
.NB-dark .NB-feedbar .NB-story-title-indicator:hover,
.NB-dark .NB-feedbar .NB-feedbar-mark-feed-read:hover,
.NB-dark .NB-feedbar .NB-feedbar-mark-feed-read-time:hover,
.NB-dark .NB-feedbar .NB-feedbar-mark-feed-read-expand:hover,
.NB-dark .NB-feedbar .NB-feedbar-discover-container:hover {
    background-color: #606466;
}

/* "Mark read" icon*/
.NB-dark .NB-feedbar .NB-feedbar-mark-feed-read .NB-icon {
    background: transparent url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACQAAAAkCAYAAADhAJiYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAAYdEVYdFNvZnR3YXJlAHBhaW50Lm5ldCA0LjAuOWwzfk4AAAFuSURBVFhHzZXBSsNAEIYjQg+CCAWfonjqqYTcAj15zFP4AoIP0Kt4KHrvWSnised6yMnH6EusM2VWdsc/3STVTAsfZP+d3fnSJUnmnDspYGgJDC2BoSUwtASGlsDQEhhaAkNLsrqu3RDoxk2cnhAKh4Rk74gbP/5VMCQkci//4M5LmR0ZZQ+qZi9lIkTjhZ4XPiLrIaCmTTKfZVlewUX/Af3OqOmTkvBsWWZfByYPEjZpi8gs9V7CZno7vfipBQUH8Qs9eZ5fVlV1rnMPz9G6F72PEMkw0eKuFEVxTZt+ESskJTIraa551zJMNOhCIOMbRFIJmfWkmozC/Ty9jmw2n43pOpTxvHIjhq7f1FxUE0qE9BJK3b2A5uDRhsCwDQkpRFKGgWFbRKrpCQp5biPDHP3YJ94xzJJr9Lom/uTFKFKPupazLjIMDPtCAuF3aoFqUsDwGESqlwwDQ0tgaAkMLYGhJTC0BIaWwNAOl30DsVBFw8rjuF0AAAAASUVORK5CYII=) no-repeat center center;
    background-size: 18px;
    width: 100%;
    height: 100%;
}

/* "Mark read" + expanded mode background color */
.NB-dark .NB-feedbar .NB-feedbar-mark-feed-read,
.NB-dark .NB-feedbar .NB-feedbar-mark-feed-read-expand,
.NB-dark .NB-feedbar .NB-feedbar-mark-feed-read-time {
    background: rgba(48, 55, 57, 1);
    border: 1px solid rgba(0, 0, 0, 0.3);
}

.NB-dark .NB-feedbar .NB-feedbar-mark-feed-read-expand {
    background: transparent url(/media/embed/icons/circular/nav_icn_plus.png) no-repeat 4px center;
    background-size: 6px;
}

/* Expanded "Mark read" text color (14D, 7D, 3D, 1D)*/
.NB-dark .NB-feedbar .NB-feedbar-mark-feed-read-time {
    color: #c0c0c0;
}

/* Mark read inline confirmation */
.NB-dark .NB-feedbar .NB-feedbar-mark-feed-read-confirm .NB-confirm-text {
    color: #999;
}

.NB-dark .NB-feedbar .NB-feedbar-mark-feed-read-confirm .NB-confirm-yes {
    background-color: #6C9E29;
}

.NB-dark .NB-feedbar .NB-feedbar-mark-feed-read-confirm .NB-confirm-yes:hover {
    background-color: #5D8C22;
}

.NB-dark .NB-feedbar .NB-feedbar-mark-feed-read-confirm .NB-confirm-no {
    background-color: #444;
    color: #999;
    border-color: rgba(255, 255, 255, .08);
}

.NB-dark .NB-feedbar .NB-feedbar-mark-feed-read-confirm .NB-confirm-no:hover {
    background-color: #555;
}

.NB-dark .NB-feedbar .NB-feedbar-mark-feed-read-confirm .NB-confirm-shortcut {
    opacity: 0.4;
}

/* Search input field */
.NB-dark input.NB-search-input[type="text"] {
    border: 1px solid rgba(0, 0, 0, 0.3);
    background: none;
    background-color: #303739;
    color: #c0c0c0;
    text-shadow: 0 1px 0 rgba(0, 0, 0, .8);
    box-shadow: none;
}

.NB-dark .NB-searching input.NB-search-input[type="text"] {
    background-color: #505050;
}

/*
.NB-dark .NB-callout {
color: #333;
text-shadow: none;
}
*/

/* Selected tabs on bottom task bar */

.NB-dark #story_taskbar .NB-taskbar .NB-taskbar-button {
    padding-left: 14px;
    padding-right: 14px;
}

.NB-dark .NB-splash-blurred-logo {
    background: transparent url(/media/embed/logo_newsblur_blur_dark.png) no-repeat center center;
    background-size: contain;
}

/* ============= */
/* = Feed Pane = */
/* ============= */

.NB-dark .NB-feeds-list-loader,
.NB-dark .NB-feeds-list-error {
    color: rgba(255, 255, 255, .4);
    text-shadow: 0 1px 0 rgba(0, 0, 0, .3);
    background: transparent url(/media/embed/reader/sun_loader_dark.svg) no-repeat 0 0;
    background-size: 52px;
}

.NB-dark .NB-feeds-list-empty {
    color: rgba(152, 152, 152, 1);
    text-shadow: 0 1px 0 rgba(32, 32, 32, 0.4);
}

.NB-dark .left-pane,
.NB-dark .NB-feedlist {
    background-color: #434543;
}

.NB-dark .NB-sidebar {
    --nb-sidebar-sticky-feedlist-background: #434543;
    --nb-sidebar-sticky-feedlist-selected-background: #4d6d95;
}

.NB-dark .NB-feedlist .feed {
    /* border-top: 1px solid #434543; */
    /* border-bottom: 1px solid #434543; */
    padding-right: 2px;
    background-color: #434543;
}

/* Selected Feed */
.NB-dark .NB-feedlist .feed.selected,
.NB-dark .NB-feedlist .feed.NB-selected,
.NB-dark .NB-feeds-header.NB-selected,
.NB-dark .NB-feedlist .folder.NB-selected>.folder_title {
    background: none;
    background-color: #4d6d95;
    /* border-top: 1px solid #2C305D; */
    /* border-bottom: 1px solid #2C305D; */
}

/* Shared Stories*/
.NB-dark .NB-feedlists .NB-socialfeeds {
    border-bottom: 0;
}

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

/* Feed title text */
.NB-dark .NB-feeds-header .NB-feeds-header-title,
.NB-dark .NB-feedlists .NB-socialfeeds .feed .feed_title,
.NB-dark .NB-feedlist .feed_title {
    color: #bdbdbd;
    text-shadow: 0 1px 0 rgba(0, 0, 0, .8);
}

/* Feed folder text */
.NB-dark .NB-feedlist .folder_title,
.NB-dark .NB-feedlist .folder.NB-selected>.folder_title {
    color: #bdbdbd;
    text-shadow: 0 1px 0 rgba(0, 0, 0, .8);
}

/* "All Site Stories" text*/
.NB-dark .NB-feeds-header {
    background: none;
    background-color: #646566;
    border-top-color: #797D7D;
    border-bottom-color: #4C4D4E;
}

.NB-dark .NB-feeds-header:hover:not(.NB-selected) {
    background: none;
    background-color: #5c5e60;
    border-top-color: #797D7D;
    border-bottom-color: #4C4D4E;
}

.NB-dark .NB-feeds-header-read.NB-feeds-header,
.NB-dark .NB-feeds-header-searches.NB-feeds-header,
.NB-dark .NB-feeds-header-starred.NB-feeds-header,
.NB-dark .NB-searches-folder {
    /* border-bottom: 1px solid #333536; */
}

.NB-dark .NB-feeds-header-container {
    background-color: #434543;
}

/* Unread feed count badge */
.NB-dark .unread_count_neutral {
    background-color: #7a7e77;
    color: #FDFEFE;
    /* text-shadow: 0 1px 0 rgba(0, 0, 0, .3); */
}




/* ================ */
/* = Stories Pane = */
/* ================ */

/* Stories background for grid view and other views */
.NB-dark .NB-layout-grid {
    background-color: #191b1c;
}

/* "All Site Stories" background color */
.NB-dark .NB-story-title {
    color: #c0c0c0;
    background-color: #292b2c;
    border-top: 1px solid #333536;
    border-bottom: 1px solid #232526;
}

.NB-dark .NB-story-title-grid.NB-story-title {
    border: none;
}

.NB-dark .NB-story-title-grid.NB-story-title .NB-storytitles-grid-bottom {
    background-color: #292b2c;
    border-top-color: #303030;
}

.NB-dark .NB-story-title:hover:not(.NB-selected),
.NB-dark .NB-story-title:hover:not(.NB-selected) .NB-storytitles-grid-bottom {
    background-color: #232526;
}

.NB-dark .NB-story-title.read:hover:not(.NB-selected),
.NB-dark .NB-story-title.read:hover:not(.NB-selected) .NB-storytitles-grid-bottom {
    background-color: #292b2c;
}

.NB-dark .NB-story-title.read .NB-storytitles-author {
    color: #696b6c;
}

.NB-dark .read .NB-storytitles-content-preview {
    color: #595b5c;
}

.NB-dark .NB-story-title.read .story_date {
    color: #696b6c;
}

/* Feed title text */
.NB-dark .NB-feedbar .feed .feed_title,
.NB-dark .NB-feedbar .folder_title_text {
    color: #c0c0c0;
    text-shadow: 0 1px 0 rgba(0, 0, 0, .8);
}

/* Stories title text */
.NB-dark #story_titles .NB-story-title.NB-selected a.story_title,
.NB-dark #story_titles .NB-story-title a.story_title {
    color: #ddd;
}

/* Date color */
.NB-dark .NB-hidden-fade {
    color: gray;
}

/* Selected stories highlight */
.NB-dark .NB-story-title.NB-selected {
    color: #eee;
    /* border-top: 1px solid #414545;
    border-bottom: 1px solid #202121; */
    background: none;
    background-color: #30393F;
}

/* Bottom banner (NB logo) */
.NB-dark .NB-end-line,
.NB-dark .NB-feed-story-endbar {
    background: -webkit-gradient(linear, 0% 0%, 0% 100%, from(#242529), to(#1e1f22));
    background-color: #1B2325;
    border-top-color: #303739;
    border-bottom: 1px solid #111111;
}


.NB-dark .NB-end-line {
    animation: dark-end-line-animation 1.7s ease infinite;
}

.NB-dark .NB-feed-fetching-indicator {
    color: #808080;
}

.NB-dark .NB-feed-fetching-spinner {
    border-color: #404040;
    border-top-color: #5C89C9;
}

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

    38% {
        background-color: #273a55
    }

    100% {
        background-color: #242529
    }
}

/* Search header */
.NB-dark .NB-search-header {
    color: #c0c0c0;
    background-color: #303739;
    border-bottom: none;
    background-image: none;
}

.NB-dark .NB-search-header .NB-search-header-save,
.NB-dark .NB-search-header .NB-search-header-save:hover,
.NB-dark .NB-search-header .NB-search-header-save.NB-active {
    color: #c0c0c0;
    background-color: rgb(43, 49, 51);
}

.NB-dark .NB-story-content-wrapper .NB-story-content-expander {
    background-color: #191b1c;
}

.NB-dark .NB-story-content-wrapper .NB-story-content-expander .NB-story-cutoff {
    background: transparent url(/media/embed/circular/module_cutoff_dark.png) repeat-x left bottom;
}

/*
.NB-dark .NB-feeds-header-river-container .NB-feeds-header {
border-bottom: 1px solid #222d31;
}
*/

/* Staff-Only Badge - Dark Mode */
.NB-dark .NB-staff-badge,
.NB-dark .NB-classifier-staff-badge {
    color: #a89880;
}

/*
.NB-dark .NB-feeds-header-starred.NB-feeds-header {
border-top: 1px solid #222d31;
}
*/

/*
.NB-dark .NB-feeds-header:hover:not(.NB-selected) {
background: none;
background-color: #5d8392;
}
*/




/* ======================= */
/* = Selected Story Pane = */
/* ======================= */

/* Background for grid view and other views */
.NB-dark .NB-feed-stories,
.NB-dark .NB-story-content-container {
    color: #c0c0c0;
    background-color: #191b1c;
}

.NB-dark .NB-newsletter p,
.NB-dark .NB-newsletter div,
.NB-dark .NB-newsletter span,
.NB-dark .NB-newsletter td {
    color: #c0c0c0 !important;
}

.NB-dark .NB-newsletter td {
    background-color: #191b1c;
}

.NB-dark .NB-newsletter h1,
.NB-dark .NB-newsletter h2,
.NB-dark .NB-newsletter h3,
.NB-dark .NB-newsletter h4,
.NB-dark .NB-newsletter h5,
.NB-dark .NB-newsletter h6 {
    color: #c0c0c0 !important;
}

/* Quote blocks found in stories */
.NB-dark .NB-feed-story blockquote {
    color: #c0c0c0;
    background: none;
    border-left: 2px solid #c0c0c0;
}

/* Quote blocks found in stories (font) */
.NB-dark .NB-feed-story blockquote font {
    color: #c0c0c0;
}

/* Special text box */
.NB-dark .hljs {
    color: #c0c0c0;
    background-color: #1b2325;
}

/* Strikethrough/removed text background color (red) */
.NB-dark .NB-feed-story-content del {
    background-color: #920000;
}

/* Inserted text background color (greed) */
.NB-dark .NB-feed-story-content ins {
    background-color: #069000;
}

.NB-dark .NB-feed-story-content .NB-starred-story-selection-highlight,
.NB-dark .NB-feed-story-content .NB-highlight {
    background-color: #4a6379;
    color: #f3f3f3;
}

.NB-dark .NB-feed-story-content .NB-classifier-highlight-positive {
    background-color: #2d5f2a;
    color: #f3f3f3;
    padding: 2px 5px;
    cursor: pointer;
}

.NB-dark .NB-feed-story-content .NB-classifier-highlight-negative {
    background-color: #6b2c2c;
    color: #f3f3f3;
    padding: 2px 5px;
    cursor: pointer;
}

.NB-dark .NB-feed-story-content .NB-search-highlight {
    background-color: #5E4A6E;
    color: #f3f3f3;
    padding: 2px 5px;
    cursor: pointer;
}

/* Link color */
.NB-dark .NB-feed-story a {
    color: #83b4e0;
}

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

/*
.NB-dark .NB-feed-story a.NB-feed-story-title:hover, 
.NB-dark .NB-feed-story a.NB-feed-story-title:hover .NB-score-1, 
.NB-dark .NB-feed-story a.NB-feed-story-title:hover .NB-score--1 {
color: #fff;
}
*/

/* Story title background */
.NB-dark .NB-feed-story .NB-feed-story-header-info {
    background-color: #303739;
}

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

.NB-dark .NB-feed-story .NB-feed-story-header .NB-feed-story-date,
.NB-dark .NB-feed-story .NB-feed-story-header .NB-feed-story-author-wrapper {
    color: #A2B3BF;
}

.NB-dark .NB-feed-story.read .NB-feed-story-header .NB-feed-story-date,
.NB-dark .NB-feed-story.read .NB-feed-story-header .NB-feed-story-author-wrapper {
    color: #636D74;
}

.NB-dark .NB-pill-view-classifier:hover,
.NB-dark .NB-pill-view-classifier:focus-visible {
    background: rgba(255, 255, 255, .16);
}

.NB-dark .NB-feed-story .NB-feed-story-tag {
    border-color: rgba(255, 255, 255, 0.05) transparent rgba(0, 0, 0, 0.4);
}

.NB-dark .NB-feed-story .NB-feed-story-tag.NB-score-1 {
    /* Green */
    background-color: #627c50;
}

.NB-dark .NB-feed-story .NB-feed-story-tag.NB-score-1:hover {
    /* Green, active -> Red */
    background-color: #905051;
}

.NB-dark .NB-feed-story .NB-feed-story-tag.NB-score--1 {
    /* Red */
    background-color: #905051;
}

.NB-dark .NB-feed-story .NB-feed-story-tag.NB-score--1:hover {
    /* Red, active -> [Light] Grey */
    background-color: rgba(0, 0, 0, .1);
    text-shadow: 0 1px 0 rgba(0, 0, 0, .3);
}

.NB-dark .NB-feed-story .NB-feed-story-tag.NB-score-now-0:hover {
    /* Grey, active */
    text-shadow: 0 1px 0 rgba(0, 0, 0, .3);
}

.NB-dark .NB-feed-story .NB-feed-story-tag.NB-score-now-1.NB-score-1:hover {
    /* Green, active */
    background-color: #627c50;
    color: white;
    text-shadow: 0 1px 0 rgba(0, 0, 0, .3);
}

.NB-dark .NB-feed-story .NB-feed-story-tag.NB-score-now--1.NB-score--1:hover {
    /* Red, active */
    background-color: #905051;
    color: white;
    text-shadow: 0 1px 0 rgba(0, 0, 0, .3);
}

/* URL Match Display - Dark Mode */
.NB-dark .NB-feed-story .NB-feed-story-url-match .NB-middot {
    color: #606060;
}

.NB-dark .NB-feed-story .NB-feed-story-url {
    background-color: rgba(255, 255, 255, .05);
    color: #909090;
}

.NB-dark .NB-feed-story .NB-feed-story-url .NB-feed-story-url-label {
    color: #a0a0a0;
}

.NB-dark .NB-feed-story .NB-feed-story-url.NB-score-1 {
    /* Green */
    background-color: rgba(98, 124, 80, 0.3);
    color: #8aaa70;
}

.NB-dark .NB-feed-story .NB-feed-story-url.NB-score-1 .NB-feed-story-url-matched {
    color: #a0ca80;
}

.NB-dark .NB-feed-story .NB-feed-story-url.NB-score--1 {
    /* Red */
    background-color: rgba(144, 80, 81, 0.3);
    color: #c08080;
}

.NB-dark .NB-feed-story .NB-feed-story-url.NB-score--1 .NB-feed-story-url-matched {
    color: #d58586;
}

.NB-dark .NB-feed-story .NB-feed-story-url:hover {
    /* Gray, active -> Green */
    background-color: rgba(98, 124, 80, 0.4);
    color: #8aaa70;
}

.NB-dark .NB-feed-story .NB-feed-story-url.NB-score-1:hover {
    /* Green, hover -> Darker Green */
    background-color: rgba(98, 124, 80, 0.5);
    color: #a0ca80;
}

.NB-dark .NB-feed-story .NB-feed-story-url.NB-score-1:hover .NB-feed-story-url-matched {
    color: #b8dc98;
}

.NB-dark .NB-feed-story .NB-feed-story-url.NB-score--1:hover {
    /* Red, hover -> Darker Red */
    background-color: rgba(144, 80, 81, 0.5);
    color: #d58586;
}

.NB-dark .NB-feed-story .NB-feed-story-url.NB-score--1:hover .NB-feed-story-url-matched {
    color: #e89a9b;
}

.NB-dark .NB-feed-story .NB-feed-story-url.NB-score-now-0:hover {
    /* Grey, active */
    background-color: rgba(255, 255, 255, .05);
    color: #909090;
}

.NB-dark .NB-feed-story .NB-feed-story-url.NB-score-now-1.NB-score-1:hover {
    /* Green, active */
    background-color: rgba(98, 124, 80, 0.5);
    color: #a0ca80;
}

.NB-dark .NB-feed-story .NB-feed-story-url.NB-score-now-1.NB-score-1:hover .NB-feed-story-url-matched {
    color: #a0ca80;
}

.NB-dark .NB-feed-story .NB-feed-story-url.NB-score-now--1.NB-score--1:hover {
    /* Red, active */
    background-color: rgba(144, 80, 81, 0.5);
    color: #d58586;
}

.NB-dark .NB-feed-story .NB-feed-story-url.NB-score-now--1.NB-score--1:hover .NB-feed-story-url-matched {
    color: #d58586;
}


/* Story title text color */
.NB-dark .NB-feed-story a.NB-feed-story-title {
    color: #d0d0d0;
}

.NB-dark .NB-feed-story.read a.NB-feed-story-title {
    color: #c0c0c0;
}

/* Story buttons (Train, Save, Share) */
.NB-dark .NB-sideoption {
    border: none;
    text-shadow: none;
    background-color: transparent;
}


/* Story button text color (Train, Save, Share) */
.NB-dark .NB-sideoption .NB-sideoption-title {
    color: #808080;
}

.NB-dark .NB-sideoption-save,
.NB-dark .NB-sideoption-share,
.NB-dark .NB-sideoption-discover {
    border: 1px solid #303739;
}

/* Save story and share window. Tag/Comment title */
.NB-dark .NB-sideoption-save .NB-sideoption-save-title,
.NB-dark .NB-sideoption-share .NB-sideoption-share-title {
    text-shadow: none;
    color: #c0c0c0;
}

.NB-dark .NB-sideoption-share-quote blockquote {
    background: #2a2d2e;
    border-left-color: #606060;
    color: #b0b0b0;
}

.NB-dark .NB-sideoption-share-quote-remove {
    color: #707070;
}

.NB-dark .NB-sideoption-share-quote-remove:hover {
    color: #c0c0c0;
}

.NB-dark .NB-sideoption-discover .segmented-control-item a {
    color: #c0c0c0;
}

.NB-dark ul.tagit {
    border-color: #303739;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}

/* Tag button and "Add 1 story tag" button */
.NB-dark ul.tagit li.tagit-choice,
.NB-dark .NB-sideoption-save .NB-sideoption-save-populate {
    color: #c0c0c0;
    background-color: #303739;
    border-color: rgba(255, 255, 255, .1) transparent rgba(0, 0, 0, .1);
}

.NB-dark ul.tagit li.tagit-new {
    flex: 1;
    min-width: 50px;
}

/* Tag window when saving story. Input box */
.NB-dark ul.tagit input[type="text"] {
    color: #c0c0c0;
    background: transparent;
    border: none;
    width: 100%;
}

/* Tag window when saving story. Input box suggestions (1 of 3) */
.NB-dark .NB-tagging-autocomplete.ui-widget-content {
    width: auto;
    border: 1px solid #90928b;
    border-radius: 4px;
    background-color: #303739;
    color: #c0c0c0;
}

/* Tag window when saving story. Input box suggestions (2 of 3) */
.NB-dark .NB-tagging-autocomplete.ui-widget-content a {
    border-radius: 0px;
    background-color: #303739;
    background: #303739;
    color: #c0c0c0;
}

/* Tag window when saving story. Input box suggestions - focused item */
.NB-dark .NB-tagging-autocomplete.ui-widget-content a.ui-state-focus,
.NB-dark .NB-tagging-autocomplete.ui-widget-content a.ui-state-active {
    background-color: #252D30;
    background: #252D30;
    color: #e0e0e0;
    border-color: #505050;
}

/* Tag window when saving story. Input box suggestions (3 of 3) */
.NB-dark .NB-tagging-autocomplete.ui-widget-content a:hover {
    border-radius: 0px;
    background-color: #252D30;
    background: #252D30;
    color: #e0e0e0;
}

.NB-dark .NB-sideoption-save .NB-sideoption-save-notes {
    color: #c0c0c0;
    background: none;
    background-color: #303739;
    border: solid 1px #303739;
}

.NB-dark .NB-sideoption-share-comments {
    color: #000;
    background: #777;
    border: 1px solid #90928b;
}


.NB-dark .NB-sideoption:hover,
.NB-dark .NB-sideoption.NB-active,
.NB-dark .NB-story-starred .NB-dark .NB-sideoption.NB-feed-story-save,
.NB-dark .NB-story-shared .NB-sideoption.NB-feed-story-share {
    background-color: #303739;
}

/* Story comment teaser (Top of story) */
.NB-dark .NB-story-comments-shares-teaser {
    background-color: #303739;
    color: #c0c0c0;
    border-color: #18191A;
    text-shadow: 0 1px 0 rgba(0, 0, 0, .8);
    box-shadow: inset 0px 1px 1px rgba(0, 0, 0, .3);
}

/* Story comments (bottom of story) */
.NB-dark .NB-feed-story-comments {
    border-color: #18191A;
    text-shadow: 0 1px 0 rgba(0, 0, 0, .8);
}

/* Story comment border color */
.NB-dark .NB-story-comment,
.NB-dark .NB-story-comment-reply {
    border-color: #191b1c;
}


/*
.NB-dark .NB-story-content-wrapper .NB-story-content-expander {
background: #191b1c;
}
*/

/* Story comment text color*/
.NB-dark .NB-story-comment-content,
.NB-dark .NB-story-comment-reply-content {
    color: #c0c0c0;
}

.NB-dark .NB-story-comment-content blockquote {
    background: #2a2d2e;
    border-left-color: #606060;
    color: #b0b0b0;
}


/* Story commenter username color */
.NB-dark .NB-story-comment .NB-story-comment-username {
    color: #83b4e0;
    text-shadow: 0 -1px 0 rgba(0, 0, 0, .5);
}

/* Comment reply input field color */
.NB-dark .NB-story-comment-reply-comments {
    border: solid 1px #505050;
    background-color: #505050;
}

/* Comment "Reply" & "Post" button color */
.NB-dark .NB-story-comment-reply-button-wrapper {
    background-color: #505050;
}

.NB-dark .NB-story-comment-reply-button-wrapper,
.NB-dark .NB-modal-submit-green {
    background-image: none;
    color: #d5d4db;
    text-shadow: none;
}

.NB-dark .NB-tryout-signup {
    background-color: #217412;
}

.NB-dark .NB-tryfeed-subscribe-banner,
.NB-dark .NB-tryfeed-follow-banner {
    background: linear-gradient(135deg, #1a2a1a 0%, #1f2f1f 100%);
    border-bottom-color: rgba(106, 168, 79, 0.2);
}

.NB-dark .NB-tryfeed-subscribe-banner:hover,
.NB-dark .NB-tryfeed-follow-banner:hover {
    background: linear-gradient(135deg, #1f2f1f 0%, #243524 100%);
}

.NB-dark .NB-tryfeed-signup-banner {
    background: linear-gradient(135deg, #1a1f1f 0%, #242b2b 100%);
    border-bottom-color: rgba(217, 166, 33, 0.2);
}

.NB-dark .NB-tryfeed-signup-banner:hover {
    background: linear-gradient(135deg, #1f2626 0%, #2a3232 100%);
}

.NB-dark .NB-tryfeed-banner-text {
    color: #e0e0e0;
}

.NB-dark .NB-tryfeed-banner-subtext {
    color: rgba(255, 255, 255, 0.45);
}

.NB-dark .NB-tryfeed-go-back {
    background: linear-gradient(135deg, #151f15 0%, #1a251a 100%);
    border-bottom-color: rgba(106, 168, 79, 0.2);
    color: rgba(255, 255, 255, 0.45);
}

.NB-dark .NB-tryfeed-go-back:hover {
    background: linear-gradient(135deg, #1a251a 0%, #1f2b1f 100%);
}

.NB-dark .NB-tryfeed-go-back-breadcrumb {
    color: #6aba4a;
}

.NB-dark .NB-tryfeed-go-back-separator {
    color: rgba(255, 255, 255, 0.3);
}

.NB-dark .NB-search-indexing-banner {
    background: linear-gradient(135deg, #1a2030 0%, #1f2840 100%);
    border-bottom-color: rgba(74, 144, 217, 0.2);
}

.NB-dark .NB-search-indexing-banner-icon {
    filter: invert(1);
    opacity: 0.5;
}

.NB-dark .NB-search-indexing-banner-text {
    color: #e0e0e0;
}

.NB-dark .NB-search-indexing-banner-subtext {
    color: rgba(255, 255, 255, 0.45);
}

.NB-dark .NB-search-indexing-progress {
    background: rgba(74, 144, 217, 0.2);
}

.NB-dark .NB-search-indexing-progress-fill {
    background: #5A9FE6;
}

.NB-dark .NB-story-list-empty {
    color: rgba(255, 255, 255, .6);
    text-shadow: 0 1px 0 rgba(0, 0, 0, .3);
}

/* ================= */
/* = NewsBlur Blog = */
/* ================= */

/* Background color and text color */
.NB-dark .TextPost {
    background-color: #191b1c;
    color: #c0c0c0;
    border-top: none;
}

/* Post title color */
.NB-dark .PostTitle,
.NB-dark .PostTitle a:link,
.NB-dark .PostTitle a:hover,
.NB-dark .PostTitle a:visited {
    color: #c0c0c0;
    border-bottom: none;
}

/* Divider line dividing article and footer */
.NB-dark .FooterLine {
    background-color: #c0c0c0;
}

/* Footer that contains article date, etc. */
.NB-dark .Footer,
.NB-dark .FooterBoarder {
    background-color: #191b1c;
    background: none;
}




/* ================== */
/* = NewsBlur Forum = */
/* ================== */

/* "Log In" & "Sign Up" window */
.NB-dark .modal-header,
.NB-dark .modal-footer,
.NB-dark .modal-inner-container,
.NB-dark .modal .modal-body label {
    color: #c0c0c0;
    background-color: #303739;
    border: none;
}

/* Header */
.NB-dark .d-header {
    background-color: #191b1c;
    box-shadow: none;
}

/* Category names */
.NB-dark .category-name {
    color: #83b4e0;
}

.NB-dark .selected-name .category-name {
    color: #FFFFFF;
}

/* Sorting titles ("Category", "Replies", "Activity") */
.NB-dark .topic-list .sortable:hover {
    color: #c0c0c0;
    background-color: #0088cc;
}

/* Thread excerpt */
.NB-dark .topic-excerpt {
    color: #c0c0c0;
}

/* Topic fade-in */
.NB-dark .topic-body {
    animation: none;
}

/* Topic bar at the bottom of OP */
.NB-dark .topic-map {
    border: none;
}

/* Topic bar at the bottom of OP */
.NB-dark .topic-map section {
    background-color: #191b1c;
    border-top: 1px solid #191b1c;
    border-bottom: 1px solid #191b1c;
    border-left: 1px solid #191b1c;
    border-right: 1px solid #191b1c;
}

/* Expand/Collapse button in Topic bar */
.NB-dark .topic-map .buttons .btn {
    background-color: #191b1c;
    border-left: 1px solid #191b1c;
    border-bottom: none;
}

/* Quote box */
aside.quote .title,
blockquote {
    border-left: 5px solid #c0c0c0;
    background-color: #191b1c;
}

/* Link box border */
aside.onebox {
    border-left: 5px solid #c0c0c0;
    border-right: none;
    border-top: none;
    border-bottom: none;
}

/* Mention box */
a.mention, a.mention-group {
    background: none;
}

/* Link counter badge and code block */
.NB-dark .badge-notification.clicks,
.NB-dark p>code,
.NB-dark li>code,
.NB-dark pre>code {
    color: #c0c0c0;
    background: #303739;
}

/* Thread progress bar */
.NB-dark #topic-progress {
    background-color: #343b3d;
    border: none;
}

/* Thread progress bar fill */
.NB-dark #topic-progress .bg {
    border: none;
}

/* "All categories" button */
.NB-dark .select-kit.combo-box.category-drop .category-drop-header {
    background: #0088cc;
    color: #fff;
}

/* "Latest" button */
.NB-dark .nav-pills>li.active>a,
.NB-dark .nav-pills>li>a.active {
    color: #fff;
}

/* "Latest", "Top, "Categories" button hover */
.NB-dark .nav-pills li a:hover {
    background: none;
    background-color: #e45735;
}

/* "All categories" dropdown menu */
.NB-dark .select-kit.combo-box.category-drop .select-kit-collection {
    background: #343b3d;
}

/* "All categories" dropdown menu - Category font */
.NB-dark .badge-wrapper.bullet span.badge-category {
    color: #c0c0c0;
    font-weight: bold;
}

/* "All categories" dropdown menu - Highlighted element background */
.NB-dark .select-kit .select-kit-row.is-highlighted,
.NB-dark .select-kit .select-kit-row.is-selected {
    background: #0088cc;
}

/* "All categories" dropdown menu - Highlighted element text */
.NB-dark .select-kit.combo-box.category-drop .select-kit-row .category-desc {
    color: #c0c0c0;
}

/* "Latest", "Top, "Categories", "Category", "Replies", "Activity" */
.NB-dark .nav-pills li a,
.NB-dark .category.sortable,
.NB-dark .posts.sortable.num,
.NB-dark .activity.sortable.num {
    color: #83b4e0;
}

/* "Latest", "Top, "Categories", "Category", "Replies", "Activity" button hover */
.NB-dark .nav-pills li a:hover,
.NB-dark .category.sortable:hover,
.NB-dark .posts.sortable.num:hover,
.NB-dark .activity.sortable.num:hover {
    color: #fff;
}


/* Hamburger menu and Search icon */
.NB-dark .d-header-icons .icon:hover,
.NB-dark .d-header-icons .icon:focus,
.NB-dark .d-header-icons .icon:active {
    background-color: #191b1c;
}

/* Seach input field */
.NB-dark input[type="text"],
.NB-dark input[type="password"],
.NB-dark input[type="datetime"],
.NB-dark input[type="datetime-local"],
.NB-dark input[type="date"],
.NB-dark input[type="month"],
.NB-dark input[type="time"],
.NB-dark input[type="week"],
.NB-dark input[type="number"],
.NB-dark input[type="email"],
.NB-dark input[type="url"],
.NB-dark input[type="search"],
.NB-dark input[type="tel"],
.NB-dark input[type="color"] {
    color: #c0c0c0;
    background: none;
    background-color: #505050;
    border: solid 1px #505050;
}

/* Search result text */
.NB-dark .search-link .blurb {
    color: #c0c0c0;
}

/* Search term in search result text */
.NB-dark .search-link .blurb .search-highlight {
    color: #fff;
}

/* Search result item on hover */
.NB-dark .search-menu a:hover {
    background-color: #0088cc;
}

/* Hamburger menu dropdown menu */
.NB-dark .menu-panel {
    background: #343b3d;
    border-top: 1px solid #90928b;
    border-left: 1px solid #90928b;
    border-right: 1px solid #90928b;
    border-bottom: 1px solid #90928b;
}

/* Hamburger menu dropdown menu dividers */
.NB-dark .menu-panel hr {
    border-top: 1px solid #90928b;
}

/* Hamburger menu dropdown menu selection hover */
.NB-dark .menu-panel ul.menu-links li a:hover,
.NB-dark .menu-panel ul.menu-links li a:focus,
.NB-dark .menu-panel ul li.heading a:hover,
.NB-dark .menu-panel ul li.heading a:focus {
    background-color: #0088cc;
}

/* Hamburger menu dropdown menu category titles */
.NB-dark .menu-panel ul.menu-links li a,
.NB-dark .menu-panel ul li.heading a {
    color: #c0c0c0;
}

/* Advanced search - Title box */
.NB-dark .search-container .search-advanced-sidebar .search-advanced-title {
    background: #191b1c;
    border-left: 1px solid #90928b;
    border-right: 1px solid #90928b;
    border-top: 1px solid #90928b;
}

/* Advanced search - Body box */
.NB-dark .search-container .search-advanced-sidebar .search-advanced-filters {
    background: #191b1c;
    border: 1px solid #90928b;
}

/* Advanced search - Dropdown menus */
.NB-dark .select-kit .select-kit-collection,
.NB-dark .select-kit.combo-box .select-kit-header {
    color: #c0c0c0;
    background-color: #505050;
    border: none;
}

/* Advanced search - "All categories" dropdown menu search field */
.NB-dark .select-kit.is-expanded .select-kit-body {
    background-color: #505050;
}

.NB-dark .NB-history-fetch.NB-ok {
    color: #499433;
}

.NB-dark .NB-history-fetch.NB-errorcode {
    color: #953524;
}

.NB-dark .NB-subscribed {
    color: #3c7922;
}

/* ======================== */
/* = Ask AI Menu (Dark)   = */
/* ======================== */

.NB-dark .NB-menu-ask-ai-container {
    background-color: rgba(42, 47, 58, 0.95);
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: 2px 2px 12px rgba(0, 0, 0, 0.6);
}

.NB-dark .NB-menu-ask-ai-container.NB-inverse {
    background-color: rgba(36, 41, 54, 0.95);
}

.NB-dark .NB-menu-ask-ai-option,
.NB-dark .NB-menu-ask-ai-group {
    background-color: rgba(30, 35, 48, 0.8);
    color: #E0E6ED;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.NB-dark .NB-menu-ask-ai-group-header {
    color: #B0B8C0;
}

/* Highlight Summarize header row when hovering over Brief/Medium/Detailed segments (dark mode) */
.NB-dark .NB-menu-ask-ai-group:has(.NB-menu-ask-ai-segment:hover) .NB-menu-ask-ai-group-header {
    background-color: rgba(45, 53, 68, 0.9);
    color: #E0E6ED;
}

.NB-dark .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.1);
}

.NB-dark .NB-menu-ask-ai-option:last-child {
    border-bottom: none;
}

.NB-dark .NB-menu-ask-ai-option:hover {
    background-color: rgba(45, 53, 68, 0.9);
}

.NB-dark .NB-menu-ask-ai-option:active {
    background-color: rgba(58, 69, 87, 0.9);
}

.NB-dark .NB-menu-ask-ai-segmented-control {
    background-color: rgba(20, 25, 35, 0.5);
}

.NB-dark .NB-menu-ask-ai-segment {
    background-color: rgba(30, 35, 48, 0.8);
    border-color: rgba(255, 255, 255, 0.1);
}

.NB-dark .NB-menu-ask-ai-segment:hover {
    background-color: rgba(45, 53, 68, 0.9);
    border-color: rgba(255, 255, 255, 0.2);
}

.NB-dark .NB-menu-ask-ai-segment:active {
    background-color: rgba(58, 69, 87, 0.9);
}

.NB-dark .NB-menu-ask-ai-segment-text {
    color: #E0E6ED;
}

.NB-dark .NB-menu-ask-ai-segment-detail {
    color: #90928B;
}

.NB-dark .NB-menu-ask-ai-icon {
    filter: grayscale(100%) brightness(0.8);
}

.NB-dark .NB-menu-ask-ai-option:hover .NB-menu-ask-ai-icon,
.NB-dark .NB-menu-ask-ai-segment:hover .NB-menu-ask-ai-segment-icon {
    filter: grayscale(0%) brightness(1.1);
}

.NB-dark .NB-menu-ask-ai-custom-input-wrapper {
    background-color: rgba(20, 25, 35, 0.5);
    border-top-color: rgba(255, 255, 255, 0.1);
}

.NB-dark .NB-menu-ask-ai-custom-input {
    background-color: rgba(30, 35, 48, 0.8);
    border-color: rgba(255, 255, 255, 0.1);
    color: #E0E6ED;
}

.NB-dark .NB-menu-ask-ai-custom-input:focus {
    border-color: rgba(255, 255, 255, 0.2);
}

.NB-dark .NB-menu-ask-ai-custom-input::placeholder {
    color: #70788B;
}

.NB-dark .NB-menu-ask-ai-voice-button {
    background-color: rgba(30, 35, 48, 0.8);
    border-color: rgba(255, 255, 255, 0.1);
}

.NB-dark .NB-menu-ask-ai-voice-button:hover {
    background-color: rgba(40, 45, 60, 0.9);
    border-color: rgba(255, 255, 255, 0.2);
}

.NB-dark .NB-menu-ask-ai-voice-button.NB-recording {
    background-color: #FF6B6B;
    border-color: #FF6B6B;
}

.NB-dark .NB-menu-ask-ai-voice-button.NB-transcribing {
    background-color: #4ECDC4;
    border-color: #4ECDC4;
}

.NB-dark .NB-menu-ask-ai-voice-icon {
    filter: grayscale(100%) brightness(0.8);
}

.NB-dark .NB-menu-ask-ai-voice-button:hover .NB-menu-ask-ai-voice-icon {
    filter: grayscale(0%) brightness(1.1);
}

/* Ask split button - dark mode */
.NB-dark .NB-menu-ask-ai-submit-menu .NB-menu-ask-ai-custom-submit {
    background-color: #5A9452;
}

.NB-dark .NB-menu-ask-ai-submit-menu .NB-menu-ask-ai-custom-submit:hover {
    background-color: #6BA562;
}

.NB-dark .NB-menu-ask-ai-submit-menu .NB-menu-ask-ai-submit-dropdown-trigger {
    background-color: #5A9452;
}

.NB-dark .NB-menu-ask-ai-submit-menu .NB-menu-ask-ai-submit-dropdown-trigger:hover {
    background-color: #6BA562;
}

.NB-dark .NB-menu-ask-ai-submit-menu.NB-disabled .NB-menu-ask-ai-custom-submit {
    background-color: #4A7A44;
    color: rgba(255, 255, 255, 0.5);
    cursor: default;
    pointer-events: none;
}


.NB-dark .NB-menu-ask-ai-submit-menu .NB-menu-ask-ai-model-dropdown {
    background-color: #2A2A2A;
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

/* ======================== */
/* = Ask AI Inline (Dark) = */
/* ======================== */

.NB-dark .NB-story-ask-ai-inline {
    background-color: #2B2B2B;
    border-color: rgba(255, 255, 255, 0.12);
}

.NB-dark .NB-story-ask-ai-inline .NB-story-ask-ai-question {
    background-color: transparent;
    border-color: rgba(255, 255, 255, 0.1);
}

.NB-dark .NB-story-ask-ai-inline.NB-thinking .NB-story-ask-ai-question {
    animation: borderPulseDark 1.7s ease infinite;
}

@keyframes borderPulseDark {
    0% {
        border-color: rgba(255, 255, 255, 0.1);
    }

    38% {
        border-color: rgba(255, 255, 255, 0.35);
    }

    100% {
        border-color: rgba(255, 255, 255, 0.1);
    }
}

.NB-dark .NB-story-ask-ai-inline .NB-story-ask-ai-question-text {
    color: #B8BCB0;
}

.NB-dark .NB-story-ask-ai-inline .NB-story-ask-ai-close {
    background-color: rgba(255, 255, 255, 0.08);
}

.NB-dark .NB-story-ask-ai-inline .NB-story-ask-ai-close::before {
    color: #A0ADB8;
}

.NB-dark .NB-story-ask-ai-inline .NB-story-ask-ai-close:hover {
    background-color: rgba(226, 74, 74, 0.25);
}

.NB-dark .NB-story-ask-ai-inline .NB-story-ask-ai-close:hover::before {
    color: #FF6B6B;
}

.NB-dark .NB-story-ask-ai-inline .NB-story-ask-ai-loading .NB-loading-text {
    color: #6BA3E0;
}

.NB-dark .NB-story-ask-ai-inline .NB-story-ask-ai-error {
    background-color: rgba(226, 144, 74, 0.1);
    border-color: rgba(226, 144, 74, 0.3);
    color: #E0A878;
}

.NB-dark .NB-story-ask-ai-inline .NB-story-ask-ai-error strong {
    color: #F0BC90;
}

/* Model Pills - Dark Mode */
.NB-dark .NB-story-ask-ai-model-pill.NB-provider-anthropic {
    background-color: rgba(217, 120, 87, 0.2);
    color: #E8A88E;
}

.NB-dark .NB-story-ask-ai-model-pill.NB-provider-openai {
    background-color: rgba(116, 170, 156, 0.18);
    color: #8ECDB8;
}

.NB-dark .NB-story-ask-ai-model-pill.NB-provider-google {
    background-color: rgba(138, 180, 248, 0.18);
    color: #9CBCF0;
}

.NB-dark .NB-story-ask-ai-model-pill.NB-provider-xai {
    background-color: rgba(255, 255, 255, 0.12);
    color: #E0E0E0;
}

.NB-dark .NB-story-ask-ai-model-pill.NB-provider-unknown {
    background-color: rgba(255, 255, 255, 0.1);
    color: #B0B0B0;
}

/* Error state for model pill - Dark Mode */
.NB-dark .NB-story-ask-ai-model-pill.NB-error {
    border-color: #EF5350 !important;
    box-shadow: 0 0 0 2px rgba(239, 83, 80, 0.3);
}

.NB-dark .NB-story-ask-ai-inline .NB-story-ask-ai-answer {
    background-color: transparent;
    border-color: transparent;
    color: #C8C8C4;
}

.NB-dark .NB-story-ask-ai-answer h1,
.NB-dark .NB-story-ask-ai-answer h2,
.NB-dark .NB-story-ask-ai-answer h3,
.NB-dark .NB-story-ask-ai-answer h4,
.NB-dark .NB-story-ask-ai-answer h5,
.NB-dark .NB-story-ask-ai-answer h6 {
    color: #E8EDF4;
}

.NB-dark .NB-story-ask-ai-answer h6 {
    color: #A0AEC0;
}

.NB-dark .NB-story-ask-ai-inline .NB-story-ask-ai-custom-input {
    background-color: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
    color: #E0E6ED;
}

.NB-dark .NB-story-ask-ai-inline .NB-story-ask-ai-custom-input:focus {
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: none;
}

.NB-dark .NB-story-ask-ai-inline .NB-story-ask-ai-custom-input::placeholder {
    color: #6B7A92;
}

.NB-dark .NB-story-ask-ai-voice-button {
    background-color: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
}

.NB-dark .NB-story-ask-ai-voice-button:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

.NB-dark .NB-story-ask-ai-voice-button.NB-recording {
    background-color: #FF6B6B;
    border-color: #FF6B6B;
}

.NB-dark .NB-story-ask-ai-voice-button.NB-transcribing {
    background-color: #4ECDC4;
    border-color: #4ECDC4;
}

.NB-dark .NB-story-ask-ai-voice-icon {
    filter: grayscale(100%) brightness(0.8);
}

.NB-dark .NB-story-ask-ai-inline .NB-story-ask-ai-followup-wrapper {
    border-top-color: rgba(255, 255, 255, 0.1);
}

/* Re-ask button - dark mode */
.NB-dark .NB-story-ask-ai-reask-button {
    background-color: transparent;
    border-color: rgba(255, 255, 255, 0.2);
    color: #A0A8B0;
}

.NB-dark .NB-story-ask-ai-reask-button:hover {
    background-color: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.3);
    color: #D0D8E0;
}

/* Send split button - dark mode */
.NB-dark .NB-story-ask-ai-send-menu .NB-story-ask-ai-send-button {
    background-color: #3A7A8A;
    color: white;
    border: none;
    box-shadow: none;
}

.NB-dark .NB-story-ask-ai-send-menu .NB-story-ask-ai-send-button:hover {
    background-color: #4A8A9A;
}

.NB-dark .NB-story-ask-ai-send-menu .NB-story-ask-ai-send-dropdown-trigger {
    background-color: #3A7A8A;
    border-left-color: rgba(255, 255, 255, 0.2);
    color: white;
}

.NB-dark .NB-story-ask-ai-send-menu .NB-story-ask-ai-send-dropdown-trigger:hover {
    background-color: #4A8A9A;
}

/* Finish recording split button - dark mode */
.NB-dark .NB-story-ask-ai-finish-recording-menu .NB-story-ask-ai-finish-recording-button {
    background-color: #A44A37;
    color: white;
    border: none;
    box-shadow: none;
}

.NB-dark .NB-story-ask-ai-finish-recording-menu .NB-story-ask-ai-finish-recording-button:hover {
    background-color: #B45A47;
}

.NB-dark .NB-story-ask-ai-finish-recording-menu .NB-story-ask-ai-finish-recording-dropdown-trigger {
    background-color: #A44A37;
    border-left-color: rgba(255, 255, 255, 0.2);
    color: white;
}

.NB-dark .NB-story-ask-ai-finish-recording-menu .NB-story-ask-ai-finish-recording-dropdown-trigger:hover {
    background-color: #B45A47;
}

.NB-dark .NB-story-ask-ai-model-dropdown {
    background-color: #2A2A2A;
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

.NB-dark .NB-model-option {
    color: #C0C8D0;
}

.NB-dark .NB-model-option:hover {
    background-color: rgba(255, 255, 255, 0.08);
}

.NB-dark .NB-model-option.NB-selected {
    background-color: rgba(74, 144, 226, 0.2);
    color: #8AB4F8;
}

.NB-dark .NB-model-option.NB-selected:hover {
    background-color: rgba(74, 144, 226, 0.3);
}

/* Fast/Thinking segmented control at the bottom of the model dropdown - dark mode */
.NB-dark .NB-thinking-toggle-wrapper {
    border-top-color: rgba(255, 255, 255, 0.1);
}

.NB-dark .NB-thinking-toggle-segmented {
    background-color: rgba(255, 255, 255, 0.08);
}

.NB-dark .NB-thinking-toggle-option {
    color: #909690;
}

.NB-dark .NB-thinking-toggle-option:hover {
    color: #C0C6C0;
    background-color: rgba(255, 255, 255, 0.06);
}

.NB-dark .NB-thinking-toggle-option.NB-selected {
    background-color: rgba(255, 255, 255, 0.16);
    color: #E8E8E4;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.NB-dark .NB-thinking-toggle-option.NB-selected .NB-thinking-toggle-icon {
    filter: brightness(1.4);
}

.NB-dark .NB-provider-pill.NB-provider-anthropic {
    background-color: rgba(217, 120, 87, 0.2);
    color: #E8A88E;
}

.NB-dark .NB-provider-pill.NB-provider-openai {
    background-color: rgba(116, 170, 156, 0.18);
    color: #8ECDB8;
}

.NB-dark .NB-provider-pill.NB-provider-google {
    background-color: rgba(138, 180, 248, 0.18);
    color: #9CBCF0;
}

.NB-dark .NB-provider-pill.NB-provider-xai {
    background-color: rgba(255, 255, 255, 0.12);
    color: #E0E0E0;
}

.NB-dark .NB-story-ask-ai-inline .NB-story-ask-ai-followup-input {
    background-color: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
    color: #E0E6ED;
}

.NB-dark .NB-story-ask-ai-inline .NB-story-ask-ai-followup-input:focus {
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: none;
}

.NB-dark .NB-story-ask-ai-inline .NB-story-ask-ai-followup-input::placeholder {
    color: #808680;
}

.NB-dark .NB-story-ask-ai-voice-button:hover .NB-story-ask-ai-voice-icon {
    filter: grayscale(0%) brightness(1.1);
}

/* =============================== */
/* = Regex Classifier Dark Mode  = */
/* =============================== */

.NB-dark .NB-classifier-regex-container {
    background-color: rgba(80, 100, 140, 0.15);
    border-color: rgba(100, 120, 160, 0.25);
}

.NB-dark .NB-classifier-regex-toggle {
    color: #b0b0b0;
}

.NB-dark .NB-classifier-regex-input {
    background-color: #2a2c2e;
    border-color: #4a4c4e;
    color: #e0e0e0;
}

.NB-dark .NB-classifier-regex-input:focus {
    border-color: #4A90D9;
    box-shadow: 0 0 3px rgba(74, 144, 217, 0.4);
}

.NB-dark .NB-classifier-regex-preview-container {
    background-color: rgba(40, 42, 44, 0.9);
    border-color: #4a4c4e;
}

.NB-dark .NB-classifier-regex-preview {
    color: #c0c0c0;
}

.NB-dark .NB-classifier-regex-preview .NB-regex-match {
    background-color: #6d5f00;
    color: #fff;
}

.NB-dark .NB-classifiers .NB-classifier.NB-classifier-regex {
    background-color: #3d4a5c;
    border-color: #5c6b80;
}

.NB-dark .NB-classifier-regex-badge {
    background: #9B88FE;
}

.NB-dark .NB-classifier-regex-pro-notice {
    background-color: #3d3a20;
    border-color: #5a5530;
    color: #b0a080;
}

.NB-dark .NB-classifier-regex-pro-notice a {
    color: #9B88FE;
}

/* Type badge dark mode */
.NB-dark .NB-classifier-type-badge,
.NB-dark .NB-classifier-scope-badge {
    background: rgba(255, 255, 255, 0.08);
    color: #999;
}

.NB-dark .NB-classifier-scope-icon.NB-scope-folder {
    color: #60A5FA;
}

.NB-dark .NB-classifier-scope-icon.NB-scope-global {
    color: #A78BFA;
}

.NB-dark .NB-scope-toggle-feed.NB-active {
    color: #aaa;
}

.NB-dark .NB-scope-toggle-folder.NB-active {
    color: #60A5FA;
}

.NB-dark .NB-scope-toggle-global.NB-active {
    color: #A78BFA;
}

.NB-dark .NB-scope-tooltip {
    background: rgba(30, 30, 30, 0.95);
    color: #eee;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.NB-dark .NB-classifier-scope-popover {
    background: #2d2d2d;
    border-color: #444;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.NB-dark .NB-scope-option {
    color: #ccc;
}

.NB-dark .NB-scope-option:hover {
    background: #383838;
}

.NB-dark .NB-scope-option.NB-active {
    background: #2d2a4a;
    color: #A78BFA;
}

.NB-dark .NB-scope-upgrade-nudge {
    border-top-color: #444;
    color: #888;
}

.NB-dark .NB-scope-upgrade-nudge a {
    color: #A78BFA;
}

/* Classifier notification bell dark mode */
.NB-dark .NB-classifier-notification-bell {
    background: rgba(255, 255, 255, 0.06);
}

.NB-dark .NB-classifier-notification-bell:hover {
    background: rgba(255, 255, 255, 0.15);
}

.NB-dark .NB-classifier-notification-bell .NB-bell-icon {
    color: #aaa;
    opacity: 0.45;
}

.NB-dark .NB-classifier-notification-bell.NB-active .NB-bell-icon {
    color: #60A5FA;
}

.NB-dark .NB-channel-indicator {
    color: #60A5FA;
}

/* Classifier notification popover dark mode — already dark bg, just adjust border */
.NB-dark .NB-classifier-notification-popover {
    background: rgba(20, 20, 20, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.NB-dark .NB-notification-channel-option.NB-active {
    box-shadow: inset 0 -2px 0 #60A5FA;
}

/* ================================== */
/* = Compact Classifier Dialog      = */
/* ================================== */

.NB-dark .NB-modal-classifiers h5 {
    color: #888;
}

.NB-dark .NB-modal-classifiers .NB-modal-feed-subscribers {
    background: #3a3c3e;
    color: #999;
}

.NB-dark .NB-classifier-content-inputs label {
    color: #777;
}

.NB-dark .NB-classifier-content-inputs input {
    background-color: #2a2c2e;
    border-color: #4a4c4e;
    color: #e0e0e0;
}

.NB-dark .NB-classifier-content-inputs input:focus {
    border-color: #4A90D9;
}

/* Feed items separator - dark mode */
.NB-dark .NB-classifier-this-story+.NB-classifier-feed-items {
    border-top-color: #444;
}

.NB-dark .NB-classifier-this-story+.NB-classifier-feed-items::before,
.NB-dark .NB-classifier-feed-items:first-child::before {
    color: #777;
}

/* Match type segmented control - dark mode */
.NB-dark .NB-classifier-match-type-control {
    background: #3a3c3e;
}

.NB-dark .NB-classifier-match-type-control .NB-match-type-option {
    color: #999;
}

.NB-dark .NB-classifier-match-type-control .NB-match-type-option:hover {
    color: #ccc;
}

.NB-dark .NB-classifier-match-type-control .NB-match-type-option.NB-active {
    background: #505254;
    color: #e0e0e0;
}

.NB-dark .NB-classifier-match-type-control .NB-match-type-option.NB-match-type-regex.NB-active {
    background: #5a4fcf;
    color: white;
}

/* Help icon - dark mode */
.NB-dark .NB-classifier-help-icon {
    color: #777;
}

.NB-dark .NB-classifier-help-icon:hover {
    color: #aaa;
}

/* Regex info icon - dark mode */
.NB-dark .NB-regex-info-icon {
    opacity: 0.7;
}

.NB-dark .NB-regex-info-icon:hover {
    opacity: 1;
}

/* Regex popover - dark mode */
.NB-dark .NB-classifier-regex-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-regex-tip-category {
    color: #9890e0;
    border-bottom-color: rgba(123, 104, 238, 0.3);
}

.NB-dark .NB-classifier-regex-popover-list li {
    color: #aaa;
}

.NB-dark .NB-classifier-regex-popover-list code {
    background: rgba(123, 104, 238, 0.25);
    color: #b0a8f0;
}

.NB-dark .NB-classifier-regex-popover-note {
    color: #888;
    border-top-color: rgba(123, 104, 238, 0.3);
}

.NB-dark .NB-scoring-popover {
    background: linear-gradient(135deg, #2a2a28 0%, #252520 100%);
    border-color: #4a4a3a;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

.NB-dark .NB-scoring-example-header {
    color: #bbb;
}

.NB-dark .NB-scoring-divider {
    border-top-color: #4a4a3a;
}

.NB-dark .NB-scoring-result-focus {
    background: rgba(110, 167, 74, 0.15);
    color: #7ec45a;
}

.NB-dark .NB-scoring-result-hidden {
    background: rgba(204, 42, 46, 0.15);
    color: #e06060;
}

/* Explainer hierarchy banner - dark mode */
.NB-dark .NB-explainer-hierarchy {
    background: #2a2a28;
}

.NB-dark .NB-explainer-level-super {
    background: rgba(107, 0, 1, 0.15);
}

.NB-dark .NB-explainer-level-like {
    background: rgba(52, 145, 46, 0.15);
}

.NB-dark .NB-explainer-level-dislike {
    background: rgba(169, 1, 3, 0.15);
}

.NB-dark .NB-classifier-explainer .NB-classifier-title-like {
    color: #7ec45a;
}

.NB-dark .NB-classifier-explainer .NB-classifier-title-dislike {
    color: #e06060;
}

.NB-dark .NB-classifier-explainer .NB-classifier-title-super-dislike {
    color: #c04040;
}

.NB-dark .NB-explainer-separator-line {
    background: #555;
}

.NB-dark .NB-explainer-separator-label {
    color: #888;
}

.NB-dark .NB-classifier-explainer .NB-explainer-icon-like {
    filter: brightness(0) saturate(100%) invert(65%) sepia(50%) saturate(400%) hue-rotate(80deg) brightness(95%) contrast(87%);
}

.NB-dark .NB-classifier-explainer .NB-explainer-icon-dislike {
    filter: brightness(0) saturate(100%) invert(45%) sepia(80%) saturate(2000%) hue-rotate(340deg) brightness(90%) contrast(100%);
}

.NB-dark .NB-classifier-explainer .NB-explainer-icon-super-dislike {
    filter: brightness(0) saturate(100%) invert(30%) sepia(80%) saturate(2000%) hue-rotate(340deg) brightness(80%) contrast(100%);
}

/* Unified text/title/url input - dark mode */
.NB-dark .NB-classifier-text-input,
.NB-dark .NB-classifier-title-input,
.NB-dark .NB-classifier-url-input {
    background: #2a2c2e;
    border-color: #4a4c4e;
    color: #e0e0e0;
}

.NB-dark .NB-classifier-text-input:focus,
.NB-dark .NB-classifier-title-input:focus,
.NB-dark .NB-classifier-url-input:focus {
    border-color: #4A90D9;
}

/* Regex mode styling - dark mode */
.NB-dark .NB-classifier-input-regex-mode {
    background: #2a2a3a;
    border-color: #5a5a8a;
}

.NB-dark .NB-classifier-input-regex-mode:focus {
    border-color: #7B68EE;
    box-shadow: 0 0 0 2px rgba(123, 104, 238, 0.3);
}

/* Regex validation badges - dark mode */
.NB-dark .NB-regex-badge-valid,
.NB-dark .NB-regex-badge-match {
    background: #1b3a1b;
    color: #6fcf6f;
    border-color: #2e5a2e;
}

.NB-dark .NB-regex-badge-no-match {
    background: #2a2a2a;
    color: #888;
    border-color: #404040;
}

.NB-dark .NB-regex-badge-error {
    background: #3a1b1b;
    color: #ef6f6f;
    border-color: #5a2e2e;
}

/* Full content match warning - dark mode */
.NB-dark .NB-regex-full-match-warning {
    background: linear-gradient(135deg, #3a3020 0%, #4a3a20 100%);
    border-color: #8b7b3b;
}

.NB-dark .NB-regex-warning-icon {
    color: #ffb74d;
}

.NB-dark .NB-regex-warning-text {
    color: #d7ccc8;
}

/* Archive notice - dark mode */
.NB-dark .NB-classifier-archive-notice {
    color: #a89070;
}

.NB-dark .NB-classifier-archive-notice a {
    color: #f59e0b;
}

/* Pro notice - dark mode */
.NB-dark .NB-classifier-pro-notice {
    color: #a89070;
}

.NB-dark .NB-classifier-pro-notice a {
    color: #f59e0b;
}

/* Scope notice - dark mode */
.NB-dark .NB-classifier-scope-notice {
    color: #a89070;
}

.NB-dark .NB-classifier-scope-notice a {
    color: #f59e0b;
}

/* Notification notice - dark mode */
.NB-dark .NB-classifier-notif-notice {
    color: #a89070;
}

.NB-dark .NB-classifier-notif-notice a {
    color: #f59e0b;
}

/* ========================================== */
/* = AI Content Filter (text) Dark Mode    = */
/* ========================================== */

.NB-dark .NB-content-filter-header-icon {
    color: #5b9fd9;
}

.NB-dark .NB-classifier-content-prompt-input {
    background: #2a2c2e;
    border-color: #4a4c4e;
    color: #e0e0e0;
}

.NB-dark .NB-classifier-content-prompt-input:focus {
    border-color: #4A90D9;
    box-shadow: 0 0 0 2px rgba(74, 144, 217, 0.2);
}

.NB-dark .NB-classifier-content-prompt-input:disabled {
    background: #1e2022;
    color: #555;
}

/* ======================================= */
/* = AI Classifier Cost Estimate Dark    = */
/* ======================================= */

.NB-dark .NB-ai-cost-estimate {
    background: #2a2c2e;
    border-color: #3a3c3e;
}

.NB-dark .NB-ai-cost-monthly {
    color: #e0e0e0;
}

.NB-dark .NB-ai-cost-monthly small {
    color: #777;
}

.NB-dark .NB-ai-cost-separator {
    color: #555;
}

.NB-dark .NB-ai-cost-daily {
    color: #aaa;
}

.NB-dark .NB-ai-cost-daily small {
    color: #777;
}

.NB-dark .NB-ai-cost-breakdown {
    color: #666;
}

.NB-dark .NB-ai-cost-preview {
    color: #666;
}

.NB-dark .NB-ai-cost-preview b {
    color: #999;
}

.NB-dark .NB-ai-billing-setup {
    background: #4a3f00;
    border-color: #7a6600;
    color: #ffd54f;
}

.NB-dark .NB-ai-billing-manage {
    background: #1b3a1b;
    border-color: #2e6b2e;
    color: #81c784;
}

/* ====================================== */
/* = AI Image Filter (VLM) Dark Mode   = */
/* ====================================== */

.NB-dark .NB-image-filter-header-icon {
    color: #5b9fd9;
}

.NB-dark .NB-image-filter-thumb {
    background: #2a2c2e;
}

.NB-dark .NB-image-filter-thumb-neutral {
    border-color: #555;
}

.NB-dark .NB-classifier-prompt-input {
    background: #2a2c2e;
    border-color: #4a4c4e;
    color: #e0e0e0;
}

.NB-dark .NB-classifier-prompt-input:focus {
    border-color: #4A90D9;
    box-shadow: 0 0 0 2px rgba(74, 144, 217, 0.2);
}

.NB-dark .NB-classifier-prompt-input:disabled {
    background: #1e2022;
    color: #555;
}

.NB-dark .NB-image-filter-thumb-label {
    background: #3a3c3e;
    color: #888;
}

.NB-dark .NB-image-filter-thumb-label-match {
    background: #2e7d32;
    color: #fff;
}

.NB-dark .NB-image-filter-status-match {
    background: #1a2e1a;
    color: #66bb6a;
    border-color: #2e7d32;
}

.NB-dark .NB-image-filter-status-neutral {
    background: #2e1a1a;
    color: #ef9a9a;
    border-color: #6d3a3a;
}

.NB-dark .NB-image-filter-status-error {
    background: #3a2a1a;
    color: #e6a040;
    border-color: #7a5a2a;
}

.NB-dark .NB-image-filter-item-delete {
    color: #555;
}

.NB-dark .NB-image-filter-item-delete:hover {
    color: #c45555;
}

.NB-dark .NB-ai-filter-upgrade-banner-inner {
    background: linear-gradient(135deg, #2a2510 0%, #332a0d 100%);
    border-color: #6d5a00;
    color: #e6c84a;
}

.NB-dark .NB-ai-filter-upgrade-banner-inner a {
    color: #ffc107;
}

.NB-dark .NB-ai-filter-upgrade-banner-inner a:hover {
    color: #ffe082;
}

/* ===================================== */
/* = Getting Started Module Dark Mode  = */
/* ===================================== */

.NB-dark .NB-module-gettingstarted .NB-module-item-intro {
    background: linear-gradient(145deg, #2a3a30 0%, #253530 50%, #203028 100%);
    border: 1px solid rgba(106, 142, 66, 0.3);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.NB-dark .NB-module-gettingstarted .NB-intro-avatar-bezel {
    background: linear-gradient(135deg, rgba(106, 142, 66, 0.25) 0%, rgba(106, 142, 66, 0.15) 100%);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.NB-dark .NB-module-gettingstarted .NB-intro-progress-goal:not(.NB-done) {
    background-color: #303739;
}

.NB-dark .NB-module-gettingstarted .NB-intro-goal {
    color: #c0c0c0;
}

.NB-dark .NB-module-gettingstarted .NB-intro-goal .NB-done {
    color: #8cd444;
}

/* ===================================== */
/* = Trial Premium Module Dark Mode    = */
/* ===================================== */

.NB-dark .NB-module-trial .NB-module-item-intro {
    background: linear-gradient(145deg, #2a3a30 0%, #253530 50%, #203028 100%);
    border: 1px solid rgba(106, 142, 66, 0.3);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.NB-dark .NB-module-trial .NB-module-trial-message {
    color: #c0c0c0;
}

.NB-dark .NB-module-trial .NB-module-trial-message .NB-trial-days {
    color: #8cd444;
}

.NB-dark .NB-module-trial .NB-module-trial-benefits {
    color: #8cd444;
    background: rgba(106, 142, 66, 0.2);
}

.NB-dark .NB-module-trial .NB-module-trial-features li {
    color: #c0c0c0;
    position: relative;
    background-image: none !important;
}

.NB-dark .NB-module-trial .NB-module-trial-features li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    background-repeat: no-repeat;
    background-position: center;
    background-size: 16px;
    filter: invert(0.85) brightness(1.2);
}

.NB-dark .NB-module-trial .NB-module-trial-features li.NB-sites::before {
    background-image: url(/media/embed/icons/icons8/icons8-sheets-100.png);
}

.NB-dark .NB-module-trial .NB-module-trial-features li.NB-folder::before {
    background-image: url(/media/embed/icons/icons8/icons8-comics-magazine-100.png);
}

.NB-dark .NB-module-trial .NB-module-trial-features li.NB-text::before {
    background-image: url(/media/embed/icons/icons8/icons8-activity-history-100.png);
}

.NB-dark .NB-module-trial .NB-module-trial-features li.NB-tags::before {
    background-image: url(/media/embed/icons/icons8/icons8-tags-100.png);
}

.NB-dark .NB-module-trial .NB-module-trial-features li.NB-search::before {
    background-image: url(/media/embed/icons/icons8/icons8-search-100.png);
}

.NB-dark .NB-module-trial .NB-module-trial-features li.NB-more::before {
    background-image: url(/media/embed/icons/icons8/icons8-bursts-100.png);
}

.NB-dark .NB-module-hide {
    color: #9ca3af;
    background: #374151;
    border-color: #4b5563;
}

.NB-dark .NB-module-hide:hover {
    color: #d1d5db;
    background: #4b5563;
    border-color: #6b7280;
}

/* ================================ */
/* = Premium Upgrade Modal - Dark = */
/* ================================ */

/* Target the simplemodal container when it has the premium upgrade modal */
.NB-dark #simplemodal-container:has(.NB-modal-premium-upgrade) {
    background-color: #1a1f24;
    border-color: #374151;
}

.NB-dark #simplemodal-container:has(.NB-modal-premium-upgrade) .simplemodal-data {
    background-color: #1a1f24;
}

.NB-dark .NB-modal-premium-upgrade {
    background: linear-gradient(180deg, #1a1f24 0%, #151a1e 100%);
}

.NB-dark .NB-modal-premium-upgrade .NB-modal-title {
    color: #e5e7eb;
}

.NB-dark .NB-premium-trial-badge {
    background: linear-gradient(135deg, #065f46 0%, #047857 100%);
    border-color: #059669;
    color: #d1fae5;
}

/* Tier cards */
.NB-dark .NB-premium-tier {
    background-color: #252d33;
    border-color: #374151;
}

.NB-dark .NB-premium-tier:hover {
    border-color: #4b5563;
}

/* Free tier dark mode */
.NB-dark .NB-premium-tier-free {
    background: linear-gradient(180deg, #1f272d 0%, #1a2027 100%);
    border-color: #374151;
}

.NB-dark .NB-premium-tier-free .NB-premium-tier-header {
    background: linear-gradient(135deg, #374151 0%, #4b5563 100%);
}

.NB-dark .NB-premium-tier-free .NB-premium-tier-features {
    background-color: #1a2027;
}

.NB-dark .NB-premium-tier-free .NB-premium-tier-features li {
    color: #9ca3af;
}

.NB-dark .NB-premium-tier-free .NB-premium-tier-actions {
    background: linear-gradient(180deg, #1f272d 0%, #1a2027 100%);
    border-top-color: #374151;
}

.NB-dark .NB-premium-tier-free-trial-notice {
    color: #9ca3af;
    background: rgba(255, 255, 255, 0.05);
}

.NB-dark .NB-premium-tier-free-current {
    color: #9ca3af;
}

/* Self-hosted tier dark mode */
.NB-dark .NB-premium-tier-selfhosted {
    background: linear-gradient(180deg, #1e252b 0%, #181e23 100%);
    border-color: #334155;
}

.NB-dark .NB-premium-tier-selfhosted .NB-premium-tier-header {
    background: linear-gradient(135deg, #334155 0%, #1e293b 100%);
}

.NB-dark .NB-premium-tier-selfhosted .NB-premium-tier-features {
    background-color: #181e23;
}

.NB-dark .NB-premium-tier-selfhosted .NB-premium-tier-features li {
    color: #94a3b8;
}

.NB-dark .NB-premium-tier-selfhosted .NB-premium-tier-actions {
    background: linear-gradient(180deg, #1e252b 0%, #181e23 100%);
    border-top-color: #334155;
}

.NB-dark .NB-premium-selfhosted-github {
    background: #374151;
    border-color: #4b5563;
    color: #e5e7eb;
}

.NB-dark .NB-premium-selfhosted-github:hover {
    background: #4b5563;
    border-color: #6b7280;
}

.NB-dark .NB-premium-selfhosted-github .NB-github-icon {
    filter: invert(1);
}

/* Tier headers - keep vibrant colors but darken slightly */
.NB-dark .NB-premium-tier-premium .NB-premium-tier-header {
    background: linear-gradient(135deg, #065f46 0%, #047857 100%);
}

.NB-dark .NB-premium-tier-archive .NB-premium-tier-header {
    background: linear-gradient(135deg, #1e3a5f 0%, #1e40af 100%);
}

.NB-dark .NB-premium-tier-pro .NB-premium-tier-header {
    background: linear-gradient(135deg, #78350f 0%, #92400e 100%);
}

/* Feature lists */
.NB-dark .NB-premium-tier-features {
    background-color: #1f272d;
}

.NB-dark .NB-premium-tier-features li {
    color: #d1d5db;
    border-bottom-color: #374151;
}

.NB-dark .NB-premium-tier-features li:last-child {
    border-bottom-color: transparent;
}

.NB-dark .NB-premium-tier-features li.NB-premium-tier-includes {
    color: #9ca3af;
}

.NB-dark .NB-premium-tier-premium .NB-premium-tier-features li.NB-premium-tier-includes {
    color: #86efac;
}

.NB-dark .NB-premium-tier-archive .NB-premium-tier-features li.NB-premium-tier-includes {
    color: #93c5fd;
}

.NB-dark .NB-premium-tier-pro .NB-premium-tier-features li.NB-premium-tier-includes {
    color: #fcd34d;
}

/* Upcoming features in dark mode */
.NB-dark .NB-premium-tier-features li.NB-premium-tier-upcoming-header {
    color: #6b7280;
    border-bottom-color: rgba(255, 255, 255, 0.08);
}

.NB-dark .NB-premium-tier-features li.NB-upcoming {
    color: #6b7280;
}

/* Invert icons for dark mode - brightness(0) normalizes all icons to black first */
.NB-dark .NB-premium-tier-features .NB-premium-bullet-image {
    filter: brightness(0) invert(0.85) brightness(1.2) !important;
}

/* Actions section */
.NB-dark .NB-premium-tier-actions {
    background: linear-gradient(180deg, #252d33 0%, #1f272d 100%);
    border-top-color: rgba(255, 255, 255, 0.05);
}

/* Credit cards */
.NB-dark .NB-premium-tier-buttons .NB-creditcards {
    filter: brightness(0.9);
}

/* Provider alternate text */
.NB-dark .NB-premium-tier-buttons .NB-provider-alternate {
    color: #9ca3af;
}

.NB-dark .NB-premium-tier-buttons .NB-provider-alternate .NB-modal-submit-button {
    background: #374151;
    border-color: #4b5563;
    color: #e5e7eb;
}

.NB-dark .NB-premium-tier-buttons .NB-provider-alternate .NB-modal-submit-button:hover {
    background: #4b5563;
    border-color: #6b7280;
}

/* Prorate message */
.NB-dark .NB-premium-tier-buttons .NB-premium-prorate-message {
    color: #6b7280;
}

/* Trial status badge */
.NB-dark .NB-premium-tier-trial-status {
    background: linear-gradient(135deg, #064e3b 0%, #065f46 100%);
    border-color: #059669;
    color: #d1fae5;
}

/* Active subscription status */
.NB-dark .NB-premium-tier-status-active {
    background: linear-gradient(135deg, #064e3b 0%, #065f46 100%);
    border-color: #059669;
}

.NB-dark .NB-premium-tier-archive .NB-premium-tier-status-active {
    background: linear-gradient(135deg, #1e3a5f 0%, #1e40af 100%);
    border-color: #3b82f6;
}

.NB-dark .NB-premium-tier-pro .NB-premium-tier-status-active {
    background: linear-gradient(135deg, #78350f 0%, #92400e 100%);
    border-color: #f59e0b;
}

.NB-dark .NB-premium-tier-status-active .NB-premium-tier-status-text {
    color: #d1fae5;
}

.NB-dark .NB-premium-tier-archive .NB-premium-tier-status-active .NB-premium-tier-status-text {
    color: #dbeafe;
}

.NB-dark .NB-premium-tier-pro .NB-premium-tier-status-active .NB-premium-tier-status-text {
    color: #fef3c7;
}

/* Included status (for higher tier users viewing lower tiers) */
.NB-dark .NB-premium-tier-status-included {
    background: linear-gradient(135deg, #1f272d 0%, #252d33 100%);
    border-color: #4b5563;
}

.NB-dark .NB-premium-tier-status-included .NB-premium-tier-status-text {
    color: #9ca3af;
}

/* Status icons - invert for dark mode */
.NB-dark .NB-premium-tier-status-active .NB-premium-tier-status-icon,
.NB-dark .NB-premium-tier-status-included .NB-premium-tier-status-icon {
    filter: brightness(1.5);
}

/* Switch/downgrade buttons */
.NB-dark .NB-premium-tier-status .NB-modal-submit-grey {
    background: #374151;
    border-color: #4b5563;
    color: #e5e7eb;
}

.NB-dark .NB-premium-tier-status .NB-modal-submit-grey:hover {
    background: #4b5563;
    border-color: #6b7280;
}

/* Change billing details button */
.NB-dark .NB-provider-button-change {
    background: #374151 !important;
    border-color: #4b5563 !important;
    color: #e5e7eb !important;
}

.NB-dark .NB-provider-button-change:hover {
    background: #4b5563 !important;
    border-color: #6b7280 !important;
}

.NB-dark .NB-trending-feed-badge {
    background: #252D30;
    border: 1px solid #3a4245;
}

.NB-dark .NB-trending-feed-badge:hover {
    border-color: #4a5255;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
}

.NB-dark .NB-trending-feed-badge .NB-feed-badge {
    background: linear-gradient(180deg, #303739 0%, #282d30 100%);
    border-bottom: 1px solid #3a4245;
}

.NB-dark .NB-trending-feed-badge .NB-feed-badge-icon {
    background: #3a4245;
}

.NB-dark .NB-trending-feed-badge .NB-feed-badge-title {
    color: #e0e0e0;
}

.NB-dark .NB-trending-feed-badge .NB-feed-badge-meta {
    color: #808080;
}

.NB-dark .NB-trending-feed-badge .NB-feed-badge-tagline {
    color: #909090;
}

.NB-dark .NB-trending-feed-badge .NB-feed-badge-subscribed-actions .NB-badge-action-stats {
    background: #3a4245;
    border-color: #4a5255;
    color: #a0a0a0;
}

.NB-dark .NB-trending-feed-badge .NB-feed-badge-subscribed-actions .NB-badge-action-stats:hover {
    background: #4a5255;
    border-color: #5a6265;
    color: #e0e0e0;
}

/* ========================== */
/* = Custom Folder Icons    = */
/* ========================== */

.NB-dark .NB-modal-folder-settings .NB-folder-icon-current-preview {
    background: #333;
    border-color: #444;
}

.NB-dark .NB-folder-icon-editor .NB-folder-icon-preset:hover,
.NB-dark .NB-folder-icon-editor .NB-folder-icon-emoji-option:hover {
    background: #404040;
}

.NB-dark .NB-folder-icon-editor .NB-folder-icon-preset.NB-active,
.NB-dark .NB-folder-icon-editor .NB-folder-icon-emoji-option.NB-active {
    background: #2A4A6A;
    border-color: #4A9FFF;
}

.NB-dark .NB-folder-icon-editor .NB-folder-icon-preset-label,
.NB-dark .NB-folder-icon-editor .NB-folder-icon-filled-label,
.NB-dark .NB-folder-icon-editor .NB-folder-icon-emoji-label {
    color: #777;
}

.NB-dark .NB-folder-icon-editor .NB-folder-icon-color.NB-active {
    border-color: #FFF;
    box-shadow: 0 0 0 1px #000;
}

.NB-dark .NB-folder-icon-editor .NB-folder-icon-upload-section {
    border-bottom-color: #444;
}

.NB-dark .NB-folder-icon-editor .NB-folder-icon-upload-button {
    background: #2A2A2A;
    border-color: #4A4A4A;
}

.NB-dark .NB-folder-icon-editor .NB-folder-icon-upload-button::before {
    background: linear-gradient(135deg, rgba(74, 144, 217, 0.08) 0%, rgba(74, 144, 217, 0) 60%);
}

.NB-dark .NB-folder-icon-editor .NB-folder-icon-upload-button:hover {
    background: #333;
    border-color: #5A9FE8;
    box-shadow: 0 2px 8px rgba(74, 144, 217, 0.2);
}

.NB-dark .NB-folder-icon-editor .NB-folder-icon-upload-button.NB-uploading {
    background: #1E3A50;
    border-color: #4A90D9;
}

.NB-dark .NB-folder-icon-editor .NB-folder-icon-upload-icon {
    background: linear-gradient(135deg, #5A9FE8 0%, #4A8FD8 100%);
}

.NB-dark .NB-folder-icon-editor .NB-folder-icon-upload-label {
    color: #E8E8E8;
}

.NB-dark .NB-folder-icon-editor .NB-folder-icon-upload-preview {
    background: linear-gradient(135deg, #1B3D1F 0%, #243D27 100%);
    border-color: #2E5233;
}

.NB-dark .NB-folder-icon-editor .NB-folder-icon-upload-preview img {
    border-color: #333;
}

.NB-dark .NB-folder-icon-editor .NB-folder-icon-upload-preview span {
    color: #81C784;
}

.NB-dark .NB-folder-icon-editor .NB-folder-icon-upload-preview span::before {
    background-color: #81C784;
}

.NB-dark .NB-folder-icon-editor .NB-folder-icon-upload-error {
    background: linear-gradient(135deg, #3D1B1B 0%, #4A2020 100%);
    border-color: #5D2A2A;
    color: #EF9A9A;
}

.NB-dark .NB-feed-icon-reset-banner {
    background: #2a2e33;
    border-color: #3a3f45;
}

.NB-dark .NB-feed-icon-reset-banner:hover {
    background: #333840;
    border-color: #4a5058;
}

.NB-dark .NB-feed-icon-reset-text {
    color: #a0a0a0;
}

.NB-dark .NB-feed-icon-reset-action {
    color: #8888cc;
    border-color: #4a4a6a;
}

.NB-dark .NB-feed-icon-reset-banner:hover .NB-feed-icon-reset-action {
    background: #5555aa;
    color: white;
}

.NB-dark .NB-popover-section-folder-icon {
    border-bottom-color: #444;
}

.NB-dark .NB-popover-section-folder-icon .NB-folder-icon-current-preview {
    background: #333;
    border-color: #444;
}

.NB-dark .NB-popover-section-folder-icon .NB-filter-popover-folder-icon-button {
    background: #333;
    border-color: #555;
    color: #DDD;
}

.NB-dark .NB-popover-section-folder-icon .NB-filter-popover-folder-icon-button:hover {
    background: #444;
    border-color: #666;
}

/* Add + Discover Sites Sidebar Header - Dark Mode */
/* Uses default folder styling - no special overrides needed */

/* ==================
   Add Site View Dark Mode
   ================== */

.NB-dark .NB-add-site-view {
    background: #1A1A1A;
}

.NB-dark .NB-add-site-container {
    background: #1A1A1A;
}

.NB-dark .NB-add-site-header {
    background: #1A1A1A;
    border-bottom-color: #333;
}

.NB-dark .NB-add-site-tab-search-bar {
    border-bottom-color: #333;
}

.NB-dark .NB-add-site-google-news-container {
    background: transparent;
}

.NB-dark .NB-add-site-search-wrapper {
    background: #2A2A2A;
    border-color: #444;
}

.NB-dark .NB-add-site-search-input,
.NB-dark .NB-add-site-search-input[type="text"] {
    background: transparent;
    background-color: transparent;
    color: #E8E8E8;
    border: none;
}

.NB-dark .NB-add-site-search-input::placeholder {
    color: #888;
}

.NB-dark .NB-add-site-search-icon {
    opacity: 0.7;
    filter: invert(1);
}

.NB-dark .NB-add-site-search-clear {
    color: #888;
}

.NB-dark .NB-add-site-search-spinner {
    border-color: #444;
    border-top-color: #6B9ED8;
}

.NB-dark .NB-add-site-view-toggle {
    background: #2A2A2A;
    border-color: #444;
}

.NB-dark .NB-add-site-view-toggle img {
    filter: invert(1);
    opacity: 0.7;
}

.NB-dark .NB-add-site-view-toggle.NB-active {
    background: #3A3A3A;
    border-color: #5C89C9;
}

.NB-dark .NB-add-site-view-toggle-label {
    color: rgba(255, 255, 255, 0.5);
}

.NB-dark .NB-add-site-view-toggle:hover .NB-add-site-view-toggle-label {
    color: rgba(255, 255, 255, 0.7);
}

.NB-dark .NB-add-site-view-toggle.NB-active .NB-add-site-view-toggle-label {
    color: rgba(255, 255, 255, 0.8);
}

/* Dark mode Style Button */
.NB-dark .NB-add-site-style-button {
    background: #2A2A2A;
}

.NB-dark .NB-add-site-style-button img {
    filter: invert(1);
    opacity: 0.6;
}

.NB-dark .NB-add-site-style-label {
    color: rgba(255, 255, 255, 0.5);
}

.NB-dark .NB-add-site-style-button:hover {
    background: #3A3A3A;
}

.NB-dark .NB-add-site-style-button:hover img {
    opacity: 0.8;
}

.NB-dark .NB-add-site-style-button:hover .NB-add-site-style-label {
    color: rgba(255, 255, 255, 0.7);
}

.NB-dark .NB-add-site-style-button.NB-active {
    background: #5C89C9;
}

.NB-dark .NB-add-site-style-button.NB-active img {
    filter: brightness(0) invert(1);
    opacity: 1;
}

.NB-dark .NB-add-site-style-button.NB-active .NB-add-site-style-label {
    color: #FFF;
}

/* Dark mode Add Site Style Popover */
.NB-dark .NB-add-site-style-popover .NB-style-row {
    border-bottom-color: #333;
}

.NB-dark .NB-add-site-style-popover .NB-style-label {
    color: #888;
}

.NB-dark .NB-add-site-style-popover .segmented-control {
    background: #2A2A2A;
}

.NB-dark .NB-add-site-style-popover .segmented-control li {
    color: rgba(255, 255, 255, 0.6);
}

.NB-dark .NB-add-site-style-popover .segmented-control li:hover {
    color: rgba(255, 255, 255, 0.8);
    background: rgba(255, 255, 255, 0.1);
}

.NB-dark .NB-add-site-style-popover .segmented-control li.NB-active {
    background: #3A3A3A;
    color: rgba(255, 255, 255, 0.9);
}

.NB-dark .NB-add-site-style-popover .NB-menu-manage-view-setting-contentpreview .NB-icon {
    filter: invert(1);
}

/* Grid/List toggle container - dark background */
.NB-dark .NB-add-site-view-toggles {
    background: #2A2D30;
}

.NB-dark .NB-add-site-view-toggle {
    background: transparent;
}

.NB-dark .NB-add-site-view-toggle:hover {
    background: rgba(255, 255, 255, 0.08);
}

.NB-dark .NB-add-site-view-toggle.NB-active {
    background: #404548;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.NB-dark .NB-add-site-view-toggle img {
    filter: invert(1);
    opacity: 0.6;
}

.NB-dark .NB-add-site-view-toggle:hover img {
    opacity: 0.8;
}

.NB-dark .NB-add-site-view-toggle.NB-active img {
    opacity: 1;
}

.NB-dark .NB-add-site-view-toggle-label {
    color: rgba(255, 255, 255, 0.5);
}

.NB-dark .NB-add-site-view-toggle:hover .NB-add-site-view-toggle-label {
    color: rgba(255, 255, 255, 0.7);
}

.NB-dark .NB-add-site-view-toggle.NB-active .NB-add-site-view-toggle-label {
    color: rgba(255, 255, 255, 0.9);
}

/* Search input wrapper - darker styling */
.NB-dark .NB-add-site-search-wrapper {
    background: #252729;
    border-color: #404346;
}

.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,
.NB-dark .NB-add-site-search-input[type="text"] {
    background: transparent;
    background-color: transparent;
    color: #E8E8E8;
    border: none;
}

.NB-dark .NB-add-site-search-input::placeholder {
    color: #707478;
}

/* Section header and title - trending feeds title */
.NB-dark .NB-add-site-section-header {
    border-bottom-color: #3A3D40;
}

.NB-dark .NB-add-site-section-title {
    color: #D8DBDE;
}

.NB-dark .NB-add-site-section-icon {
    filter: invert(1);
    opacity: 0.7;
}

.NB-dark .NB-add-site-tab {
    background: transparent;
    border-color: #444;
    color: #AAA;
}

.NB-dark .NB-add-site-tab .NB-add-site-tab-icon.NB-mono {
    filter: invert(1);
    opacity: 0.6;
}

.NB-dark .NB-add-site-tab:hover {
    background: #2A2A2A;
    border-color: #555;
    color: #DDD;
}

.NB-dark .NB-add-site-tab.NB-active {
    background: linear-gradient(135deg, #4A73B0 0%, #3D619A 100%);
    border-color: #5C89C9;
    color: #FFF;
}

.NB-dark .NB-add-site-tabs-overflow-button {
    background: #2A2A2A;
    border-color: #444;
    color: #AAA;
}

.NB-dark .NB-add-site-tabs-overflow-button:hover {
    background: #333;
    border-color: #555;
    color: #DDD;
}

.NB-dark .NB-add-site-tabs-overflow-menu {
    background: #2A2A2A;
    border-color: #444;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

.NB-dark .NB-add-site-tabs-overflow-item {
    color: #CCC;
}

.NB-dark .NB-add-site-tabs-overflow-item:hover {
    background: #333;
}

.NB-dark .NB-add-site-tab-content {
    background: #1A1A1A;
}

.NB-dark .NB-add-site-empty-state {
    color: #AAA;
}

.NB-dark .NB-add-site-empty-title {
    color: #E8E8E8;
}

.NB-dark .NB-add-site-empty-desc {
    color: #888;
}

.NB-dark .NB-add-site-tip {
    color: #AAA;
}

.NB-dark .NB-add-site-card {
    background: #2A2A2A;
    border-color: #444;
}

.NB-dark .NB-add-site-card:hover {
    border-color: #5C89C9;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.NB-dark .NB-add-site-card-title {
    color: #E8E8E8;
}

.NB-dark .NB-add-site-card-meta {
    color: #888;
}

.NB-dark .NB-freshness-active .NB-freshness-label {
    color: #66BB6A;
}

.NB-dark .NB-freshness-stale .NB-freshness-label {
    color: #FFB74D;
}

.NB-dark .NB-freshness-none .NB-freshness-label {
    color: #78909C;
}

.NB-dark .NB-add-site-card-desc {
    color: #AAA;
}

.NB-dark .NB-add-site-card-url {
    background: #222;
    color: #888;
}

.NB-dark .NB-add-site-folder-select {
    background: #333;
    border-color: #444;
    color: #DDD;
}


.NB-dark .NB-add-site-card-actions {
    border-top-color: #333;
}

.NB-dark .NB-add-site-card-add-group,
.NB-dark .NB-badge-folder-add-group {
    background: #333;
}

.NB-dark .NB-add-site-card-add-group .NB-add-site-folder-select,
.NB-dark .NB-badge-folder-add-group .NB-add-site-folder-select {
    color: #DDD;
}

.NB-dark .NB-add-site-card-story {
    border-bottom-color: #3a3a3a;
}

.NB-dark .NB-add-site-card-story-title {
    color: #CCC;
}

.NB-dark .NB-add-site-card-story-preview {
    color: #777;
}

.NB-dark .NB-trending-feed-card {
    background: linear-gradient(180deg, #2a2a2a 0%, #252525 100%);
    border-color: #3a3a3a;
}

.NB-dark .NB-trending-feed-card:hover {
    border-color: #4a4a4a;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.NB-dark .NB-trending-feed-card .NB-feed-badge {
    background: transparent;
}

.NB-dark .NB-trending-feed-card .NB-feed-badge-title {
    color: #e8e8e8;
}

.NB-dark .NB-trending-feed-card .NB-feed-badge-title img,
.NB-dark .NB-trending-feed-card .NB-feed-badge-title .NB-feed-emoji,
.NB-dark .NB-trending-feed-card .NB-feed-badge-title .NB-feed-icon-colored {
    background: #333;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.NB-dark .NB-trending-feed-card .NB-feed-badge-tagline {
    color: #999;
}

.NB-dark .NB-trending-feed-card .NB-feed-badge-stats {
    color: #888;
    border-top-color: #3a3a3a;
}

.NB-dark .NB-trending-feed-card .NB-feed-badge-stats b {
    color: #bbb;
}

.NB-dark .NB-trending-feed-card .NB-feed-badge-stats br+b::before {
    color: #555;
}

.NB-dark .NB-trending-feed-card .NB-feed-badge-actions {
    border-top-color: #3a3a3a;
}

.NB-dark .NB-trending-feed-card .NB-subscribed {
    color: #5a5;
}

.NB-dark .NB-subscribed-badge {
    background: #2a4a1e;
    color: #8fc87a;
}

.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-tab-search-input {
    background: #2A2A2A;
    border-color: #444;
    color: #E8E8E8;
}

.NB-dark .NB-add-site-no-results {
    color: #888;
}

.NB-dark .NB-add-site-error {
    color: #EF9A9A;
}

/* Google News Dark Mode */
.NB-dark .NB-add-site-google-news-section {
    border-top-color: #333;
}

.NB-dark .NB-add-site-google-news-title {
    color: #E8E8E8;
}

.NB-dark .NB-add-site-google-news-desc {
    color: #888;
}

.NB-dark .NB-add-site-google-news-topic {
    background: #2A2A2A;
    border-color: #444;
    color: #E8E8E8;
}

.NB-dark .NB-add-site-google-news-topic:hover {
    border-color: #5C89C9;
    background: #333;
}

.NB-dark .NB-add-site-google-news-topic.NB-selected {
    background: #5C89C9;
    border-color: #5C89C9;
    color: #FFF;
}

.NB-dark .NB-add-site-google-news-topic.NB-selected:hover {
    background: #4A7AB8;
}

.NB-dark .NB-add-site-google-news-result-card {
    background: #333;
    border-color: #444;
}

.NB-dark .NB-add-site-result-url {
    background: #222;
    color: #AAA;
}

.NB-dark .NB-add-site-result-actions .NB-add-site-folder-select {
    background: #2A2A2A;
    border-color: #444;
    color: #E8E8E8;
}

.NB-dark .NB-add-site-google-news-topic.NB-loading .NB-add-site-topic-spinner {
    border-color: #555;
    border-top-color: #5C89C9;
}

.NB-dark .NB-add-site-google-news-custom {
    background: #222;
    border-color: #333;
}

.NB-dark .NB-add-site-google-news-custom-title {
    color: #E8E8E8;
}

.NB-dark .NB-add-site-google-news-search-input {
    background: #2A2A2A;
    border-color: #444;
    color: #E8E8E8;
}

.NB-dark .NB-add-site-google-news-language {
    background: #2A2A2A;
    border-color: #444;
    color: #E8E8E8;
}

/* Categories Tab Dark Mode */
.NB-dark .NB-add-site-categories-title {
    color: #E8E8E8;
}

.NB-dark .NB-add-site-categories-desc {
    color: #888;
}

.NB-dark .NB-add-site-category-card {
    background: #2A2A2A;
    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-icon {
    background: #333;
}

.NB-dark .NB-add-site-category-name {
    color: #E8E8E8;
}

.NB-dark .NB-add-site-category-count {
    color: #888;
}

/* Trending Tab Dark Mode */
.NB-dark .NB-add-site-trending-title {
    color: #E8E8E8;
}

.NB-dark .NB-add-site-trending-days {
    background: #2A2A2A;
    border-color: #444;
    color: #DDD;
}

.NB-dark .NB-add-site-trending-pill {
    background: #2A2A2A;
    border-color: #444;
    color: #999;
}

.NB-dark .NB-add-site-trending-pill:hover {
    border-color: #5C89C9;
    background: #1E2A3A;
    color: #7AA3D5;
}

.NB-dark .NB-add-site-trending-pill.NB-active {
    background: #5C89C9;
    color: #FFF;
    border-color: #5C89C9;
}

.NB-dark .NB-add-site-trending-pill.NB-active:hover {
    background: #4A78B5;
}

.NB-dark .NB-add-site-trending-description {
    color: #666;
}

/* Newsletter Filter Labels Dark Mode */
.NB-dark .NB-add-site-filter-label {
    color: #777;
}

/* Date filter upgrade notice dark mode */
.NB-dark .NB-date-filter-upgrade-notice {
    color: #909090;
}

/* Story Clustering dark mode */
.NB-dark .NB-filter-popover .NB-clustering-read-label {
    color: #909090;
}

/* Discover archive upgrade banner dark mode */
.NB-dark .NB-discover-popover .NB-discover-archive-banner {
    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-dark .NB-discover-popover .NB-discover-archive-banner:hover {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.18) 0%, rgba(139, 92, 246, 0.18) 100%);
    border-color: rgba(99, 102, 241, 0.35);
}

.NB-dark .NB-discover-popover .NB-discover-archive-banner-title {
    color: #d0d0d0;
}

.NB-dark .NB-discover-popover .NB-discover-archive-banner-body {
    color: #909090;
}

.NB-dark .NB-discover-popover .NB-discover-archive-banner-progress-bar {
    background: rgba(99, 102, 241, 0.20);
}

.NB-dark .NB-discover-popover .NB-discover-archive-banner-progress-label {
    color: #707070;
}

/* Discover index banner dark mode (archive users) */
.NB-dark .NB-discover-popover .NB-discover-index-banner {
    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);
}

/* Web Feed archive upgrade banner dark mode */
.NB-dark .NB-add-site-webfeed-archive-banner {
    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-dark .NB-add-site-webfeed-archive-banner:hover {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.18) 0%, rgba(139, 92, 246, 0.18) 100%);
    border-color: rgba(99, 102, 241, 0.35);
}

.NB-dark .NB-add-site-webfeed-archive-banner-title {
    color: #d0d0d0;
}

.NB-dark .NB-add-site-webfeed-archive-banner-body {
    color: #909090;
}

/* Paused web feed banner dark mode */
.NB-dark .NB-webfeed-paused-header {
    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-dark .NB-webfeed-paused-message {
    color: #a5b4fc;
}

/* Discover feed badges dark mode */
.NB-dark .NB-discover-feed-badges .NB-feed-badge .NB-feed-badge-title {
    color: #e0e0e0;
}

.NB-dark .NB-discover-feed-badges .NB-feed-badge .NB-feed-badge-meta {
    color: #808080;
}

.NB-dark .NB-discover-feed-badges .NB-feed-badge .NB-feed-badge-tagline {
    color: #909090;
}

.NB-dark .NB-discover-feed-badges .NB-feed-badge .NB-feed-badge-actions,
.NB-dark .NB-discover-feed-badges .NB-feed-badge .NB-feed-badge-subscribed-actions {
    border-top-color: #3a4245;
}

.NB-dark .NB-staff-only-badge {
    background: #c03800;
}

/* Global settings wrapper dark mode */
.NB-dark .NB-popover-section-global {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.08);
}

.NB-dark .NB-popover-section-global .NB-popover-section {
    border-bottom-color: rgba(255, 255, 255, 0.06);
}

.NB-dark .NB-popover-section-global-label {
    color: #707070;
}

/* ============================== */
/* = Manage Training Tab Styles = */
/* ============================== */

.NB-dark .NB-manage-folder-title {
    background-color: #2a2a2a;
    color: #c0c0c0;
}

.NB-dark .NB-manage-feed {
    border-left-color: #404040;
}

.NB-dark .NB-manage-feed-title {
    color: #d0d0d0;
}

.NB-dark .NB-manage-training-empty-icon {
    filter: invert(1);
    opacity: 0.4;
}

.NB-dark .NB-manage-training-empty-message h3 {
    color: #c0c0c0;
}

.NB-dark .NB-manage-training-empty-message p {
    color: #909090;
}

.NB-dark .NB-manage-loading-text {
    color: #909090;
}

.NB-dark .NB-manage-training-error h3 {
    color: #c0c0c0;
}

.NB-dark .NB-manage-training-error p {
    color: #909090;
}

.NB-dark .NB-manage-saved-message {
    color: #6ab04c;
}

.NB-dark .NB-manage-training-error-icon {
    filter: invert(1);
}

.NB-dark .NB-manage-filter-bar {
    border-bottom-color: #404040;
}

.NB-dark .NB-manage-filter-label {
    color: #707070;
}

/* Bright green (like) and red (dislike) when inactive in dark mode */
.NB-dark .NB-manage-filter-icon.NB-icon-like {
    filter: brightness(0) saturate(100%) invert(42%) sepia(93%) saturate(436%) hue-rotate(87deg) brightness(92%) contrast(91%);
}

.NB-dark .NB-manage-filter-icon.NB-icon-dislike {
    filter: brightness(0) saturate(100%) invert(12%) sepia(100%) saturate(6000%) hue-rotate(0deg) brightness(90%) contrast(110%);
}

/* Yellowish-orange when active/selected in dark mode */
.NB-dark .NB-manage-sentiment-control li.NB-active .NB-icon-like,
.NB-dark .NB-manage-sentiment-control li.NB-active .NB-icon-dislike {
    filter: invert(67%) sepia(89%) saturate(497%) hue-rotate(2deg) brightness(103%) contrast(104%);
}

/* Count badges need light text for dark mode */
.NB-dark .NB-type-count {
    background: rgba(255, 255, 255, 0.1);
    color: #A0A0A0;
}

.NB-dark .NB-manage-types-control li.NB-active .NB-type-count,
.NB-dark .NB-manage-sentiment-control li.NB-active .NB-type-count,
.NB-dark .NB-manage-scope-control li.NB-active .NB-type-count {
    background: rgba(255, 255, 255, 0.2);
    color: #F0F0F0;
}

/* Scope filter icons in dark mode */
.NB-dark .NB-manage-scope-icon-feed {
    color: #aaa;
}

.NB-dark .NB-manage-scope-icon-folder {
    color: #60A5FA;
}

.NB-dark .NB-manage-scope-icon-global {
    color: #A78BFA;
}

.NB-dark .NB-manage-scope-control li.NB-active .NB-manage-scope-icon-feed {
    color: #ccc;
}

.NB-dark .NB-manage-scope-control li.NB-active .NB-manage-scope-icon-folder {
    color: #93C5FD;
}

.NB-dark .NB-manage-scope-control li.NB-active .NB-manage-scope-icon-global {
    color: #C4B5FD;
}

/* Pro banner in dark mode */
.NB-dark .NB-manage-scope-pro-banner {
    background: linear-gradient(135deg, #451A03 0%, #78350F 100%);
    border-color: #D97706;
    color: #FDE68A;
}

.NB-dark .NB-manage-scope-pro-banner a {
    color: #F59E0B;
}

.NB-dark .NB-manage-scope-pro-banner a:hover {
    color: #FBBF24;
}

/* Scoped section title in dark mode */
.NB-dark .NB-manage-scoped-title {
    background: linear-gradient(135deg, #2E1065, #1E1B4B) !important;
    color: #C4B5FD !important;
}

.NB-dark .NB-manage-scoped-count {
    background: rgba(167, 139, 250, 0.2);
    color: #C4B5FD;
}

/* Feed chooser dropdown in dark mode */
.NB-dark .NB-manage-feed-chooser {
    background: #303030;
    border-color: #505050;
    color: #E0E0E0;
}

.NB-dark .NB-manage-feed-chooser:focus {
    border-color: #50A050;
}

/* Search input in dark mode */
.NB-dark .NB-manage-search-input {
    background: #303030;
    border-color: #505050;
    color: #E0E0E0;
}

.NB-dark .NB-manage-search-input:focus {
    border-color: #50A050;
}

.NB-dark .NB-manage-search-input::placeholder {
    color: #707070;
}

/* ====================================== */
/* = Daily Briefing - Group View (Dark) = */
/* ====================================== */

/* darkmode.css: Briefing Admin */
.NB-dark .NB-briefing-admin-meta {
    color: #707070;
}

.NB-dark .NB-briefing-admin-badge {
    border-bottom-color: #303030;
    background: #1e1f21;
}

/* darkmode.css: Briefing group container */
.NB-dark .NB-briefing-group {
    border-bottom-color: #303030;
}

/* darkmode.css: Briefing group header */
.NB-dark .NB-briefing-group-header {
    color: #9A9B9C;
    background-color: #393b3c;
    border-bottom-color: #303030;
}

.NB-dark .NB-briefing-group-header:hover {
    background-color: #424547;
}

/* darkmode.css: Briefing collapse icon */
.NB-dark .NB-briefing-group-collapse-icon {
    filter: invert(0.8);
}

/* darkmode.css: Story count */
.NB-dark .NB-briefing-group-count {
    color: #707070;
}

/* darkmode.css: Summary toggle button */
.NB-dark .NB-briefing-summary-toggle {
    color: rgba(255, 255, 255, 0.4);
    border-color: rgba(255, 255, 255, 0.1);
}

.NB-dark .NB-briefing-summary-toggle:hover {
    background-color: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.6);
}

.NB-dark .NB-briefing-summary-toggle.NB-active {
    background-color: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
}

/* darkmode.css: AI summary panel */
.NB-dark .NB-briefing-group-summary {
    color: #C0C0C0;
    background-color: #2A2C2D;
    border-bottom-color: #303030;
}

.NB-dark .NB-briefing-group-summary h3 {
    color: #E0E0E0;
}

/* darkmode.css: Story links in summary */
.NB-dark .NB-briefing-story-link {
    color: #7B9FD4;
}

.NB-dark .NB-briefing-story-link:hover {
    border-bottom-color: #7B9FD4;
}

.NB-dark .NB-briefing-direct-link-icon {
    filter: brightness(1.25);
}

.NB-dark .NB-briefing-direct-link:hover .NB-briefing-direct-link-icon {
    filter: brightness(1.55);
}

/* darkmode.css: Story items */
.NB-dark .NB-briefing-story-item {
    border-bottom-color: #303030;
}

.NB-dark .NB-briefing-story-item:hover {
    background-color: #2A2C2D;
}

/* darkmode.css: Story highlight */
.NB-dark .NB-briefing-story-highlighted {
    background-color: #3A3520;
}

/* darkmode.css: Feed title in story item */
.NB-dark .NB-briefing-story-feed-title {
    color: #707070;
}

/* darkmode.css: Story title */
.NB-dark .NB-briefing-story-title {
    color: #D0D0D0;
}

.NB-dark .NB-briefing-story-title:hover {
    color: #7B9FD4;
}

/* darkmode.css: Story meta */
.NB-dark .NB-briefing-story-meta {
    color: #606060;
}

/* darkmode.css: Empty state */
.NB-dark .NB-briefing-empty {
    color: #606060;
}

.NB-dark .NB-briefing-empty-title {
    color: #909090;
}

/* darkmode.css: Briefing onboarding */
.NB-dark .NB-briefing-onboarding-view {
    background-color: #191b1c;
    background: linear-gradient(180deg, #1e2022 0%, #191b1c 100%);
}

.NB-dark .NB-briefing-onboarding-icon {
    filter: invert(0.8);
}

.NB-dark .NB-briefing-onboarding-title {
    color: #D0D0D0;
}

.NB-dark .NB-briefing-onboarding-subtitle {
    color: #808080;
}

.NB-dark .NB-briefing-onboarding-settings {
    border-color: #303030;
}

/* darkmode.css: Premium Archive callout for non-archive users */
.NB-dark .NB-archive-callout {
    border-color: rgba(99, 102, 241, 0.4);
    background: rgba(99, 102, 241, 0.08);
}

.NB-dark .NB-archive-callout:hover {
    background: rgba(99, 102, 241, 0.16);
    border-color: #6366f1;
}

.NB-dark .NB-archive-callout-text {
    color: #a0a0a0;
}

/* darkmode.css: Briefing summary story */
.NB-dark .NB-briefing-summary-story .NB-story-title {
    background: linear-gradient(135deg, #1C2233 0%, #212838 40%, #1E2535 100%);
    border-left-color: #4A73A8;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

.NB-dark .NB-briefing-summary-story .NB-story-title:hover {
    background: linear-gradient(135deg, #222840 0%, #283040 40%, #242A3E 100%);
}

.NB-dark .NB-briefing-summary-story .NB-story-title.NB-selected {
    background: linear-gradient(135deg, #283048 0%, #2E3648 40%, #2A3246 100%);
}

.NB-dark .NB-briefing-summary-story .NB-storytitles-title {
    color: #D8DEE8;
}

.NB-dark .NB-briefing-summary-story .NB-story-feed .feed_title {
    color: #7B9FD4;
}

/* darkmode.css: Briefing preferences pill — match feedbar-options dark style */
.NB-dark .NB-feedbar .NB-briefing-preferences-icon {
    color: #c0c0c0;
    border: 1px solid rgba(0, 0, 0, .3);
    background-color: #303739;
}

.NB-dark .NB-feedbar .NB-briefing-preferences-icon:hover {
    background-color: #606466;
}

/* darkmode.css: Regenerate button container */
.NB-dark .NB-briefing-regenerate {
    border-top-color: #303030;
}

/* darkmode.css: Generate briefing button */
.NB-dark .NB-briefing-generate-btn {
    background-color: #4A73A8;
}

.NB-dark .NB-briefing-generate-btn:hover {
    background-color: #5C89C4;
}

.NB-dark .NB-briefing-generate-btn:active {
    background-color: #3D6090;
}

/* darkmode.css: Progress indicator */
.NB-dark .NB-briefing-progress {
    background-color: #2A2C2D;
    border-bottom-color: #303030;
}

.NB-dark .NB-briefing-progress-spinner {
    border-color: #505050;
    border-top-color: #7B9FD4;
}

.NB-dark .NB-briefing-progress-message {
    color: #A0A0A0;
}

.NB-dark .NB-briefing-loading {
    background-color: #1A1A1A;
    border-bottom-color: #303030;
}

/* darkmode.css: Error state */
.NB-dark .NB-briefing-error {
    border-bottom-color: #303030;
}

.NB-dark .NB-briefing-error-message {
    color: #D08080;
}

/* darkmode.css: Briefing sections dark mode */
.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;
}

/* darkmode.css: Briefing summary in story detail — override inline styles from email formatting */
.NB-dark .NB-feed-story-content .NB-briefing-summary {
    color: #C8CDD0 !important;
}

.NB-dark .NB-feed-story-content h3[data-section] {
    color: #7B9FD4 !important;
    border-bottom-color: #404548 !important;
}

.NB-dark .NB-feed-story-content .NB-briefing-summary hr {
    background-color: #404548 !important;
    border-color: #404548 !important;
}

.NB-dark .NB-feed-story-content .NB-briefing-section-icon {
    filter: grayscale(1) invert(1);
}

/* ================================= */
/* = Curated River Explainer Banner = */
/* ================================= */

.NB-dark .NB-story-titles-explainer {
    border-color: #35383A;
    background: linear-gradient(180deg, #2E3133 0%, #292B2C 100%);
}

.NB-dark .NB-story-titles-explainer-label {
    color: #8A8C85;
}

.NB-dark .NB-story-titles-explainer-rule {
    background-color: #3A3D3F;
}

.NB-dark .NB-story-titles-explainer-body {
    color: #A0A29B;
}

/* =========================== */
/* = Send Story by Email Modal = */
/* =========================== */

.NB-dark .NB-modal-email .NB-modal-email-story {
    background-color: #252D30;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.NB-dark .NB-modal-email .NB-modal-email-feed {
    color: #909090;
}

.NB-dark .NB-modal-email .NB-modal-email-story-title {
    color: #d0d0d0;
}

.NB-dark .NB-modal-email .NB-modal-email-story-permalink {
    color: #808080;
}

.NB-dark .NB-modal-email .NB-modal-email-story-permalink:hover {
    color: #8DAAC6;
}

.NB-dark .NB-modal-email .NB-modal-email-field label {
    color: #909090;
}

.NB-dark .NB-modal-email .NB-modal-email-label-hint {
    color: #707070;
}

.NB-dark .NB-modal-email .NB-modal-email-cc-label {
    color: #b0b0b0;
}

.NB-dark .NB-modal-email .NB-modal-submit {
    border-top-color: rgba(255, 255, 255, 0.08);
}

.NB-dark .NB-modal-email .NB-modal-email-shortcut-hint {
    color: #707070;
}

.NB-dark .NB-modal-email .NB-modal-emailclient {
    color: #8DAAC6;
}

/*!
 * jQuery UI CSS Framework 1.13.1
 * http://jqueryui.com
 *
 * Copyright jQuery Foundation and other contributors
 * Released under the MIT license.
 * http://jquery.org/license
 *
 * http://api.jqueryui.com/category/theming/
 *
 * To view and modify this theme, visit http://jqueryui.com/themeroller/?scope=&folderName=base&cornerRadiusShadow=8px&offsetLeftShadow=0px&offsetTopShadow=0px&thicknessShadow=5px&opacityShadow=30&bgImgOpacityShadow=0&bgTextureShadow=flat&bgColorShadow=666666&opacityOverlay=30&bgImgOpacityOverlay=0&bgTextureOverlay=flat&bgColorOverlay=aaaaaa&iconColorError=cc0000&fcError=5f3f3f&borderColorError=f1a899&bgTextureError=flat&bgColorError=fddfdf&iconColorHighlight=777620&fcHighlight=777620&borderColorHighlight=dad55e&bgTextureHighlight=flat&bgColorHighlight=fffa90&iconColorActive=ffffff&fcActive=ffffff&borderColorActive=003eff&bgTextureActive=flat&bgColorActive=007fff&iconColorHover=555555&fcHover=2b2b2b&borderColorHover=cccccc&bgTextureHover=flat&bgColorHover=ededed&iconColorDefault=777777&fcDefault=454545&borderColorDefault=c5c5c5&bgTextureDefault=flat&bgColorDefault=f6f6f6&iconColorContent=444444&fcContent=333333&borderColorContent=dddddd&bgTextureContent=flat&bgColorContent=ffffff&iconColorHeader=444444&fcHeader=333333&borderColorHeader=dddddd&bgTextureHeader=flat&bgColorHeader=e9e9e9&cornerRadius=3px&fwDefault=normal&fsDefault=1em&ffDefault=Arial%2CHelvetica%2Csans-serif
 */


/* Component containers
----------------------------------*/
.ui-widget {
	font-family: Arial,Helvetica,sans-serif;
	font-size: 1em;
}
.ui-widget .ui-widget {
	font-size: 1em;
}
.ui-widget input,
.ui-widget select,
.ui-widget textarea,
.ui-widget button {
	font-family: Arial,Helvetica,sans-serif;
	font-size: 1em;
}
.ui-widget.ui-widget-content {
	border: 1px solid #c5c5c5;
}
.ui-widget-content {
	border: 1px solid #dddddd;
	background: #ffffff;
	color: #333333;
}
.ui-widget-content a {
	color: #333333;
}
.ui-widget-header {
	border: 1px solid #dddddd;
	background: #e9e9e9;
	color: #333333;
	font-weight: bold;
}
.ui-widget-header a {
	color: #333333;
}

/* Interaction states
----------------------------------*/
.ui-state-default,
.ui-widget-content .ui-state-default,
.ui-widget-header .ui-state-default,
.ui-button,

/* We use html here because we need a greater specificity to make sure disabled
works properly when clicked or hovered */
html .ui-button.ui-state-disabled:hover,
html .ui-button.ui-state-disabled:active {
	border: 1px solid #c5c5c5;
	background: #f6f6f6;
	font-weight: normal;
	color: #454545;
}
.ui-state-default a,
.ui-state-default a:link,
.ui-state-default a:visited,
a.ui-button,
a:link.ui-button,
a:visited.ui-button,
.ui-button {
	color: #454545;
	text-decoration: none;
}
.ui-state-hover,
.ui-widget-content .ui-state-hover,
.ui-widget-header .ui-state-hover,
.ui-state-focus,
.ui-widget-content .ui-state-focus,
.ui-widget-header .ui-state-focus,
.ui-button:hover,
.ui-button:focus {
	border: 1px solid #cccccc;
	background: #ededed;
	font-weight: normal;
	color: #2b2b2b;
}
.ui-state-hover a,
.ui-state-hover a:hover,
.ui-state-hover a:link,
.ui-state-hover a:visited,
.ui-state-focus a,
.ui-state-focus a:hover,
.ui-state-focus a:link,
.ui-state-focus a:visited,
a.ui-button:hover,
a.ui-button:focus {
	color: #2b2b2b;
	text-decoration: none;
}

.ui-visual-focus {
	box-shadow: 0 0 3px 1px rgb(94, 158, 214);
}
.ui-state-active,
.ui-widget-content .ui-state-active,
.ui-widget-header .ui-state-active,
a.ui-button:active,
.ui-button:active,
.ui-button.ui-state-active:hover {
	border: 1px solid #003eff;
	background: #007fff;
	font-weight: normal;
	color: #ffffff;
}
.ui-icon-background,
.ui-state-active .ui-icon-background {
	border: #003eff;
	background-color: #ffffff;
}
.ui-state-active a,
.ui-state-active a:link,
.ui-state-active a:visited {
	color: #ffffff;
	text-decoration: none;
}

/* Interaction Cues
----------------------------------*/
.ui-state-highlight,
.ui-widget-content .ui-state-highlight,
.ui-widget-header .ui-state-highlight {
	border: 1px solid #dad55e;
	background: #fffa90;
	color: #777620;
}
.ui-state-checked {
	border: 1px solid #dad55e;
	background: #fffa90;
}
.ui-state-highlight a,
.ui-widget-content .ui-state-highlight a,
.ui-widget-header .ui-state-highlight a {
	color: #777620;
}
.ui-state-error,
.ui-widget-content .ui-state-error,
.ui-widget-header .ui-state-error {
	border: 1px solid #f1a899;
	background: #fddfdf;
	color: #5f3f3f;
}
.ui-state-error a,
.ui-widget-content .ui-state-error a,
.ui-widget-header .ui-state-error a {
	color: #5f3f3f;
}
.ui-state-error-text,
.ui-widget-content .ui-state-error-text,
.ui-widget-header .ui-state-error-text {
	color: #5f3f3f;
}
.ui-priority-primary,
.ui-widget-content .ui-priority-primary,
.ui-widget-header .ui-priority-primary {
	font-weight: bold;
}
.ui-priority-secondary,
.ui-widget-content .ui-priority-secondary,
.ui-widget-header .ui-priority-secondary {
	opacity: .7;
	-ms-filter: "alpha(opacity=70)"; /* support: IE8 */
	font-weight: normal;
}
.ui-state-disabled,
.ui-widget-content .ui-state-disabled,
.ui-widget-header .ui-state-disabled {
	opacity: .35;
	-ms-filter: "alpha(opacity=35)"; /* support: IE8 */
	background-image: none;
}
.ui-state-disabled .ui-icon {
	-ms-filter: "alpha(opacity=35)"; /* support: IE8 - See #6059 */
}

/* Icons
----------------------------------*/

/* states and images */
.ui-icon {
	width: 16px;
	height: 16px;
}
.ui-icon,
.ui-widget-content .ui-icon {
	background-image: url(/media/css/jquery-ui/image/ui-icons_444444_256x240.png);
}
.ui-widget-header .ui-icon {
	background-image: url(/media/css/jquery-ui/image/ui-icons_444444_256x240.png);
}
.ui-state-hover .ui-icon,
.ui-state-focus .ui-icon,
.ui-button:hover .ui-icon,
.ui-button:focus .ui-icon {
	background-image: url(/media/css/jquery-ui/image/ui-icons_555555_256x240.png);
}
.ui-state-active .ui-icon,
.ui-button:active .ui-icon {
	background-image: url(/media/css/jquery-ui/image/ui-icons_ffffff_256x240.png);
}
.ui-state-highlight .ui-icon,
.ui-button .ui-state-highlight.ui-icon {
	background-image: url(/media/css/jquery-ui/image/ui-icons_777620_256x240.png);
}
.ui-state-error .ui-icon,
.ui-state-error-text .ui-icon {
	background-image: url(/media/css/jquery-ui/image/ui-icons_cc0000_256x240.png);
}
.ui-button .ui-icon {
	background-image: url(/media/css/jquery-ui/image/ui-icons_777777_256x240.png);
}

/* positioning */
/* Three classes needed to override `.ui-button:hover .ui-icon` */
.ui-icon-blank.ui-icon-blank.ui-icon-blank {
	background-image: none;
}
.ui-icon-caret-1-n { background-position: 0 0; }
.ui-icon-caret-1-ne { background-position: -16px 0; }
.ui-icon-caret-1-e { background-position: -32px 0; }
.ui-icon-caret-1-se { background-position: -48px 0; }
.ui-icon-caret-1-s { background-position: -65px 0; }
.ui-icon-caret-1-sw { background-position: -80px 0; }
.ui-icon-caret-1-w { background-position: -96px 0; }
.ui-icon-caret-1-nw { background-position: -112px 0; }
.ui-icon-caret-2-n-s { background-position: -128px 0; }
.ui-icon-caret-2-e-w { background-position: -144px 0; }
.ui-icon-triangle-1-n { background-position: 0 -16px; }
.ui-icon-triangle-1-ne { background-position: -16px -16px; }
.ui-icon-triangle-1-e { background-position: -32px -16px; }
.ui-icon-triangle-1-se { background-position: -48px -16px; }
.ui-icon-triangle-1-s { background-position: -65px -16px; }
.ui-icon-triangle-1-sw { background-position: -80px -16px; }
.ui-icon-triangle-1-w { background-position: -96px -16px; }
.ui-icon-triangle-1-nw { background-position: -112px -16px; }
.ui-icon-triangle-2-n-s { background-position: -128px -16px; }
.ui-icon-triangle-2-e-w { background-position: -144px -16px; }
.ui-icon-arrow-1-n { background-position: 0 -32px; }
.ui-icon-arrow-1-ne { background-position: -16px -32px; }
.ui-icon-arrow-1-e { background-position: -32px -32px; }
.ui-icon-arrow-1-se { background-position: -48px -32px; }
.ui-icon-arrow-1-s { background-position: -65px -32px; }
.ui-icon-arrow-1-sw { background-position: -80px -32px; }
.ui-icon-arrow-1-w { background-position: -96px -32px; }
.ui-icon-arrow-1-nw { background-position: -112px -32px; }
.ui-icon-arrow-2-n-s { background-position: -128px -32px; }
.ui-icon-arrow-2-ne-sw { background-position: -144px -32px; }
.ui-icon-arrow-2-e-w { background-position: -160px -32px; }
.ui-icon-arrow-2-se-nw { background-position: -176px -32px; }
.ui-icon-arrowstop-1-n { background-position: -192px -32px; }
.ui-icon-arrowstop-1-e { background-position: -208px -32px; }
.ui-icon-arrowstop-1-s { background-position: -224px -32px; }
.ui-icon-arrowstop-1-w { background-position: -240px -32px; }
.ui-icon-arrowthick-1-n { background-position: 1px -48px; }
.ui-icon-arrowthick-1-ne { background-position: -16px -48px; }
.ui-icon-arrowthick-1-e { background-position: -32px -48px; }
.ui-icon-arrowthick-1-se { background-position: -48px -48px; }
.ui-icon-arrowthick-1-s { background-position: -64px -48px; }
.ui-icon-arrowthick-1-sw { background-position: -80px -48px; }
.ui-icon-arrowthick-1-w { background-position: -96px -48px; }
.ui-icon-arrowthick-1-nw { background-position: -112px -48px; }
.ui-icon-arrowthick-2-n-s { background-position: -128px -48px; }
.ui-icon-arrowthick-2-ne-sw { background-position: -144px -48px; }
.ui-icon-arrowthick-2-e-w { background-position: -160px -48px; }
.ui-icon-arrowthick-2-se-nw { background-position: -176px -48px; }
.ui-icon-arrowthickstop-1-n { background-position: -192px -48px; }
.ui-icon-arrowthickstop-1-e { background-position: -208px -48px; }
.ui-icon-arrowthickstop-1-s { background-position: -224px -48px; }
.ui-icon-arrowthickstop-1-w { background-position: -240px -48px; }
.ui-icon-arrowreturnthick-1-w { background-position: 0 -64px; }
.ui-icon-arrowreturnthick-1-n { background-position: -16px -64px; }
.ui-icon-arrowreturnthick-1-e { background-position: -32px -64px; }
.ui-icon-arrowreturnthick-1-s { background-position: -48px -64px; }
.ui-icon-arrowreturn-1-w { background-position: -64px -64px; }
.ui-icon-arrowreturn-1-n { background-position: -80px -64px; }
.ui-icon-arrowreturn-1-e { background-position: -96px -64px; }
.ui-icon-arrowreturn-1-s { background-position: -112px -64px; }
.ui-icon-arrowrefresh-1-w { background-position: -128px -64px; }
.ui-icon-arrowrefresh-1-n { background-position: -144px -64px; }
.ui-icon-arrowrefresh-1-e { background-position: -160px -64px; }
.ui-icon-arrowrefresh-1-s { background-position: -176px -64px; }
.ui-icon-arrow-4 { background-position: 0 -80px; }
.ui-icon-arrow-4-diag { background-position: -16px -80px; }
.ui-icon-extlink { background-position: -32px -80px; }
.ui-icon-newwin { background-position: -48px -80px; }
.ui-icon-refresh { background-position: -64px -80px; }
.ui-icon-shuffle { background-position: -80px -80px; }
.ui-icon-transfer-e-w { background-position: -96px -80px; }
.ui-icon-transferthick-e-w { background-position: -112px -80px; }
.ui-icon-folder-collapsed { background-position: 0 -96px; }
.ui-icon-folder-open { background-position: -16px -96px; }
.ui-icon-document { background-position: -32px -96px; }
.ui-icon-document-b { background-position: -48px -96px; }
.ui-icon-note { background-position: -64px -96px; }
.ui-icon-mail-closed { background-position: -80px -96px; }
.ui-icon-mail-open { background-position: -96px -96px; }
.ui-icon-suitcase { background-position: -112px -96px; }
.ui-icon-comment { background-position: -128px -96px; }
.ui-icon-person { background-position: -144px -96px; }
.ui-icon-print { background-position: -160px -96px; }
.ui-icon-trash { background-position: -176px -96px; }
.ui-icon-locked { background-position: -192px -96px; }
.ui-icon-unlocked { background-position: -208px -96px; }
.ui-icon-bookmark { background-position: -224px -96px; }
.ui-icon-tag { background-position: -240px -96px; }
.ui-icon-home { background-position: 0 -112px; }
.ui-icon-flag { background-position: -16px -112px; }
.ui-icon-calendar { background-position: -32px -112px; }
.ui-icon-cart { background-position: -48px -112px; }
.ui-icon-pencil { background-position: -64px -112px; }
.ui-icon-clock { background-position: -80px -112px; }
.ui-icon-disk { background-position: -96px -112px; }
.ui-icon-calculator { background-position: -112px -112px; }
.ui-icon-zoomin { background-position: -128px -112px; }
.ui-icon-zoomout { background-position: -144px -112px; }
.ui-icon-search { background-position: -160px -112px; }
.ui-icon-wrench { background-position: -176px -112px; }
.ui-icon-gear { background-position: -192px -112px; }
.ui-icon-heart { background-position: -208px -112px; }
.ui-icon-star { background-position: -224px -112px; }
.ui-icon-link { background-position: -240px -112px; }
.ui-icon-cancel { background-position: 0 -128px; }
.ui-icon-plus { background-position: -16px -128px; }
.ui-icon-plusthick { background-position: -32px -128px; }
.ui-icon-minus { background-position: -48px -128px; }
.ui-icon-minusthick { background-position: -64px -128px; }
.ui-icon-close { background-position: -80px -128px; }
.ui-icon-closethick { background-position: -96px -128px; }
.ui-icon-key { background-position: -112px -128px; }
.ui-icon-lightbulb { background-position: -128px -128px; }
.ui-icon-scissors { background-position: -144px -128px; }
.ui-icon-clipboard { background-position: -160px -128px; }
.ui-icon-copy { background-position: -176px -128px; }
.ui-icon-contact { background-position: -192px -128px; }
.ui-icon-image { background-position: -208px -128px; }
.ui-icon-video { background-position: -224px -128px; }
.ui-icon-script { background-position: -240px -128px; }
.ui-icon-alert { background-position: 0 -144px; }
.ui-icon-info { background-position: -16px -144px; }
.ui-icon-notice { background-position: -32px -144px; }
.ui-icon-help { background-position: -48px -144px; }
.ui-icon-check { background-position: -64px -144px; }
.ui-icon-bullet { background-position: -80px -144px; }
.ui-icon-radio-on { background-position: -96px -144px; }
.ui-icon-radio-off { background-position: -112px -144px; }
.ui-icon-pin-w { background-position: -128px -144px; }
.ui-icon-pin-s { background-position: -144px -144px; }
.ui-icon-play { background-position: 0 -160px; }
.ui-icon-pause { background-position: -16px -160px; }
.ui-icon-seek-next { background-position: -32px -160px; }
.ui-icon-seek-prev { background-position: -48px -160px; }
.ui-icon-seek-end { background-position: -64px -160px; }
.ui-icon-seek-start { background-position: -80px -160px; }
/* ui-icon-seek-first is deprecated, use ui-icon-seek-start instead */
.ui-icon-seek-first { background-position: -80px -160px; }
.ui-icon-stop { background-position: -96px -160px; }
.ui-icon-eject { background-position: -112px -160px; }
.ui-icon-volume-off { background-position: -128px -160px; }
.ui-icon-volume-on { background-position: -144px -160px; }
.ui-icon-power { background-position: 0 -176px; }
.ui-icon-signal-diag { background-position: -16px -176px; }
.ui-icon-signal { background-position: -32px -176px; }
.ui-icon-battery-0 { background-position: -48px -176px; }
.ui-icon-battery-1 { background-position: -64px -176px; }
.ui-icon-battery-2 { background-position: -80px -176px; }
.ui-icon-battery-3 { background-position: -96px -176px; }
.ui-icon-circle-plus { background-position: 0 -192px; }
.ui-icon-circle-minus { background-position: -16px -192px; }
.ui-icon-circle-close { background-position: -32px -192px; }
.ui-icon-circle-triangle-e { background-position: -48px -192px; }
.ui-icon-circle-triangle-s { background-position: -64px -192px; }
.ui-icon-circle-triangle-w { background-position: -80px -192px; }
.ui-icon-circle-triangle-n { background-position: -96px -192px; }
.ui-icon-circle-arrow-e { background-position: -112px -192px; }
.ui-icon-circle-arrow-s { background-position: -128px -192px; }
.ui-icon-circle-arrow-w { background-position: -144px -192px; }
.ui-icon-circle-arrow-n { background-position: -160px -192px; }
.ui-icon-circle-zoomin { background-position: -176px -192px; }
.ui-icon-circle-zoomout { background-position: -192px -192px; }
.ui-icon-circle-check { background-position: -208px -192px; }
.ui-icon-circlesmall-plus { background-position: 0 -208px; }
.ui-icon-circlesmall-minus { background-position: -16px -208px; }
.ui-icon-circlesmall-close { background-position: -32px -208px; }
.ui-icon-squaresmall-plus { background-position: -48px -208px; }
.ui-icon-squaresmall-minus { background-position: -64px -208px; }
.ui-icon-squaresmall-close { background-position: -80px -208px; }
.ui-icon-grip-dotted-vertical { background-position: 0 -224px; }
.ui-icon-grip-dotted-horizontal { background-position: -16px -224px; }
.ui-icon-grip-solid-vertical { background-position: -32px -224px; }
.ui-icon-grip-solid-horizontal { background-position: -48px -224px; }
.ui-icon-gripsmall-diagonal-se { background-position: -64px -224px; }
.ui-icon-grip-diagonal-se { background-position: -80px -224px; }


/* Misc visuals
----------------------------------*/

/* Corner radius */
.ui-corner-all,
.ui-corner-top,
.ui-corner-left,
.ui-corner-tl {
	border-top-left-radius: 3px;
}
.ui-corner-all,
.ui-corner-top,
.ui-corner-right,
.ui-corner-tr {
	border-top-right-radius: 3px;
}
.ui-corner-all,
.ui-corner-bottom,
.ui-corner-left,
.ui-corner-bl {
	border-bottom-left-radius: 3px;
}
.ui-corner-all,
.ui-corner-bottom,
.ui-corner-right,
.ui-corner-br {
	border-bottom-right-radius: 3px;
}

/* Overlays */
.ui-widget-overlay {
	background: #aaaaaa;
	opacity: .3;
	-ms-filter: Alpha(Opacity=30); /* support: IE8 */
}
.ui-widget-shadow {
	-webkit-box-shadow: 0px 0px 5px #666666;
	box-shadow: 0px 0px 5px #666666;
}

/*!
 * jQuery UI CSS Framework 1.13.1
 * http://jqueryui.com
 *
 * Copyright jQuery Foundation and other contributors
 * Released under the MIT license.
 * http://jquery.org/license
 *
 * http://api.jqueryui.com/category/theming/
 */
.ui-draggable-handle {
	-ms-touch-action: none;
	touch-action: none;
}
.ui-sortable-handle {
	-ms-touch-action: none;
	touch-action: none;
}
/* Layout helpers
----------------------------------*/
.ui-helper-hidden {
	display: none;
}
.ui-helper-hidden-accessible {
	border: 0;
	clip: rect(0 0 0 0);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute;
	width: 1px;
}
.ui-helper-reset {
	margin: 0;
	padding: 0;
	border: 0;
	outline: 0;
	line-height: 1.3;
	text-decoration: none;
	font-size: 100%;
	list-style: none;
}
.ui-helper-clearfix:before,
.ui-helper-clearfix:after {
	content: "";
	display: table;
	border-collapse: collapse;
}
.ui-helper-clearfix:after {
	clear: both;
}
.ui-helper-zfix {
	width: 100%;
	height: 100%;
	top: 0;
	left: 0;
	position: absolute;
	opacity: 0;
	-ms-filter: "alpha(opacity=0)"; /* support: IE8 */
}

.ui-front {
	z-index: 100;
}


/* Interaction Cues
----------------------------------*/
.ui-state-disabled {
	cursor: default !important;
	pointer-events: none;
}


/* Icons
----------------------------------*/
.ui-icon {
	display: inline-block;
	vertical-align: middle;
	margin-top: -.25em;
	position: relative;
	text-indent: -99999px;
	overflow: hidden;
	background-repeat: no-repeat;
}

.ui-widget-icon-block {
	left: 50%;
	margin-left: -8px;
	display: block;
}

/* Misc visuals
----------------------------------*/

/* Overlays */
.ui-widget-overlay {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
}
.ui-autocomplete {
	position: absolute;
	top: 0;
	left: 0;
	cursor: default;
}
.ui-menu {
	list-style: none;
	padding: 0;
	margin: 0;
	display: block;
	outline: 0;
}
.ui-menu .ui-menu {
	position: absolute;
}
.ui-menu .ui-menu-item {
	margin: 0;
	cursor: pointer;
	/* support: IE10, see #8844 */
	list-style-image: url("data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7");
}
.ui-menu .ui-menu-item-wrapper {
	position: relative;
	padding: 3px 1em 3px .4em;
}
.ui-menu .ui-menu-divider {
	margin: 5px 0;
	height: 0;
	font-size: 0;
	line-height: 0;
	border-width: 1px 0 0 0;
}
.ui-menu .ui-state-focus,
.ui-menu .ui-state-active {
	margin: -1px;
}

/* icon support */
.ui-menu-icons {
	position: relative;
}
.ui-menu-icons .ui-menu-item-wrapper {
	padding-left: 2em;
}

/* left-aligned */
.ui-menu .ui-icon {
	position: absolute;
	top: 0;
	bottom: 0;
	left: .2em;
	margin: auto 0;
}

/* right-aligned */
.ui-menu .ui-menu-icon {
	left: auto;
	right: 0;
}
.ui-progressbar {
	height: 2em;
	text-align: left;
	overflow: hidden;
}
.ui-progressbar .ui-progressbar-value {
	margin: -1px;
	height: 100%;
}
.ui-progressbar .ui-progressbar-overlay {
	background: url("data:image/gif;base64,R0lGODlhKAAoAIABAAAAAP///yH/C05FVFNDQVBFMi4wAwEAAAAh+QQJAQABACwAAAAAKAAoAAACkYwNqXrdC52DS06a7MFZI+4FHBCKoDeWKXqymPqGqxvJrXZbMx7Ttc+w9XgU2FB3lOyQRWET2IFGiU9m1frDVpxZZc6bfHwv4c1YXP6k1Vdy292Fb6UkuvFtXpvWSzA+HycXJHUXiGYIiMg2R6W459gnWGfHNdjIqDWVqemH2ekpObkpOlppWUqZiqr6edqqWQAAIfkECQEAAQAsAAAAACgAKAAAApSMgZnGfaqcg1E2uuzDmmHUBR8Qil95hiPKqWn3aqtLsS18y7G1SzNeowWBENtQd+T1JktP05nzPTdJZlR6vUxNWWjV+vUWhWNkWFwxl9VpZRedYcflIOLafaa28XdsH/ynlcc1uPVDZxQIR0K25+cICCmoqCe5mGhZOfeYSUh5yJcJyrkZWWpaR8doJ2o4NYq62lAAACH5BAkBAAEALAAAAAAoACgAAAKVDI4Yy22ZnINRNqosw0Bv7i1gyHUkFj7oSaWlu3ovC8GxNso5fluz3qLVhBVeT/Lz7ZTHyxL5dDalQWPVOsQWtRnuwXaFTj9jVVh8pma9JjZ4zYSj5ZOyma7uuolffh+IR5aW97cHuBUXKGKXlKjn+DiHWMcYJah4N0lYCMlJOXipGRr5qdgoSTrqWSq6WFl2ypoaUAAAIfkECQEAAQAsAAAAACgAKAAAApaEb6HLgd/iO7FNWtcFWe+ufODGjRfoiJ2akShbueb0wtI50zm02pbvwfWEMWBQ1zKGlLIhskiEPm9R6vRXxV4ZzWT2yHOGpWMyorblKlNp8HmHEb/lCXjcW7bmtXP8Xt229OVWR1fod2eWqNfHuMjXCPkIGNileOiImVmCOEmoSfn3yXlJWmoHGhqp6ilYuWYpmTqKUgAAIfkECQEAAQAsAAAAACgAKAAAApiEH6kb58biQ3FNWtMFWW3eNVcojuFGfqnZqSebuS06w5V80/X02pKe8zFwP6EFWOT1lDFk8rGERh1TTNOocQ61Hm4Xm2VexUHpzjymViHrFbiELsefVrn6XKfnt2Q9G/+Xdie499XHd2g4h7ioOGhXGJboGAnXSBnoBwKYyfioubZJ2Hn0RuRZaflZOil56Zp6iioKSXpUAAAh+QQJAQABACwAAAAAKAAoAAACkoQRqRvnxuI7kU1a1UU5bd5tnSeOZXhmn5lWK3qNTWvRdQxP8qvaC+/yaYQzXO7BMvaUEmJRd3TsiMAgswmNYrSgZdYrTX6tSHGZO73ezuAw2uxuQ+BbeZfMxsexY35+/Qe4J1inV0g4x3WHuMhIl2jXOKT2Q+VU5fgoSUI52VfZyfkJGkha6jmY+aaYdirq+lQAACH5BAkBAAEALAAAAAAoACgAAAKWBIKpYe0L3YNKToqswUlvznigd4wiR4KhZrKt9Upqip61i9E3vMvxRdHlbEFiEXfk9YARYxOZZD6VQ2pUunBmtRXo1Lf8hMVVcNl8JafV38aM2/Fu5V16Bn63r6xt97j09+MXSFi4BniGFae3hzbH9+hYBzkpuUh5aZmHuanZOZgIuvbGiNeomCnaxxap2upaCZsq+1kAACH5BAkBAAEALAAAAAAoACgAAAKXjI8By5zf4kOxTVrXNVlv1X0d8IGZGKLnNpYtm8Lr9cqVeuOSvfOW79D9aDHizNhDJidFZhNydEahOaDH6nomtJjp1tutKoNWkvA6JqfRVLHU/QUfau9l2x7G54d1fl995xcIGAdXqMfBNadoYrhH+Mg2KBlpVpbluCiXmMnZ2Sh4GBqJ+ckIOqqJ6LmKSllZmsoq6wpQAAAh+QQJAQABACwAAAAAKAAoAAAClYx/oLvoxuJDkU1a1YUZbJ59nSd2ZXhWqbRa2/gF8Gu2DY3iqs7yrq+xBYEkYvFSM8aSSObE+ZgRl1BHFZNr7pRCavZ5BW2142hY3AN/zWtsmf12p9XxxFl2lpLn1rseztfXZjdIWIf2s5dItwjYKBgo9yg5pHgzJXTEeGlZuenpyPmpGQoKOWkYmSpaSnqKileI2FAAACH5BAkBAAEALAAAAAAoACgAAAKVjB+gu+jG4kORTVrVhRlsnn2dJ3ZleFaptFrb+CXmO9OozeL5VfP99HvAWhpiUdcwkpBH3825AwYdU8xTqlLGhtCosArKMpvfa1mMRae9VvWZfeB2XfPkeLmm18lUcBj+p5dnN8jXZ3YIGEhYuOUn45aoCDkp16hl5IjYJvjWKcnoGQpqyPlpOhr3aElaqrq56Bq7VAAAOw==");
	height: 100%;
	-ms-filter: "alpha(opacity=25)"; /* support: IE8 */
	opacity: 0.25;
}
.ui-progressbar-indeterminate .ui-progressbar-value {
	background-image: none;
}
.ui-slider {
	position: relative;
	text-align: left;
}
.ui-slider .ui-slider-handle {
	position: absolute;
	z-index: 2;
	width: 1.2em;
	height: 1.2em;
	cursor: pointer;
	-ms-touch-action: none;
	touch-action: none;
}
.ui-slider .ui-slider-range {
	position: absolute;
	z-index: 1;
	font-size: .7em;
	display: block;
	border: 0;
	background-position: 0 0;
}

/* support: IE8 - See #6727 */
.ui-slider.ui-state-disabled .ui-slider-handle,
.ui-slider.ui-state-disabled .ui-slider-range {
	filter: inherit;
}

.ui-slider-horizontal {
	height: .8em;
}
.ui-slider-horizontal .ui-slider-handle {
	top: -.3em;
	margin-left: -.6em;
}
.ui-slider-horizontal .ui-slider-range {
	top: 0;
	height: 100%;
}
.ui-slider-horizontal .ui-slider-range-min {
	left: 0;
}
.ui-slider-horizontal .ui-slider-range-max {
	right: 0;
}

.ui-slider-vertical {
	width: .8em;
	height: 100px;
}
.ui-slider-vertical .ui-slider-handle {
	left: -.3em;
	margin-left: 0;
	margin-bottom: -.6em;
}
.ui-slider-vertical .ui-slider-range {
	left: 0;
	width: 100%;
}
.ui-slider-vertical .ui-slider-range-min {
	bottom: 0;
}
.ui-slider-vertical .ui-slider-range-max {
	top: 0;
}

ul.tagit {
    border-style: solid;
    border-width: 1px;
    border-color: #C6C6C6;
    background: inherit;
    margin-left: inherit; /* usually we don't want the regular ul margins. */
    margin-right: inherit;
    padding: 5px 5px 0;
    overflow: hidden;
}
ul.tagit li.tagit-choice {
    display: block;
    margin: 2px 5px 2px 0;
    
    cursor: pointer;   
    position: relative;
    
    float: left;
    font-weight: normal;
    font-size: 9px;
    border-radius: 4px;
    line-height: 14px;
    
    padding: 1px 16px 2px 5px;
    margin: 0 4px 4px 0;
    background: none;
    background-color: rgba(0, 0, 0, .1);
    color: #959B8B;
/*    text-shadow: 0 1px 0 rgba(255, 255, 255, .5);*/
    border: 1px solid transparent;
    border-color: rgba(255, 255, 255, .3) transparent rgba(0, 0, 0, .1);

}

ul.tagit li.tagit-new {
    padding: 0;
    margin: 0;
    list-style: none;
}

ul.tagit li.tagit-choice a.tagit-label {
    text-decoration: none;
}
ul.tagit li.tagit-choice .tagit-close {
    cursor: pointer;
    position: absolute;
    right: .1em;
    top: 50%;
    margin-top: -8px;
    line-height: 17px;
}

/* used for some custom themes that don't need image icons */
ul.tagit li.tagit-choice .tagit-close .text-icon {
    display: none;
}

ul.tagit li.tagit-choice a.tagit-close {
    text-decoration: none;
}
ul.tagit li.tagit-choice .tagit-close {
    right: .4em;
}
ul.tagit li.tagit-choice .ui-icon {
    display: none;
}
ul.tagit li.tagit-choice .tagit-close .text-icon {
    display: inline;
    font-family: arial, sans-serif;
    font-size: 16px;
    line-height: 16px;
    color: #777;
}
ul.tagit li.tagit-choice:hover, ul.tagit li.tagit-choice.remove {
    background-color: #EDADAF;
    border-color: #D6565B;
    color: white;
}
ul.tagit li.tagit-choice:active {
    background-color: #E6888D;
    border-color: #CA404A;
    color: white;
}

ul.tagit li:hover a.tagit-close .text-icon {
    color: #722;
}
ul.tagit input[type="text"] {
    color: #333333;
    -moz-box-sizing:    border-box;
    -webkit-box-sizing: border-box;
    box-sizing:         border-box;
    font-size: 11px;

    -moz-box-shadow: none;
    -webkit-box-shadow: none;
    box-shadow: none;

    border: none;
    padding: 0 1px 5px 1px;
    width: inherit;
    background-color: inherit;
    outline: none;
}

ul.tagit li.tagit-choice input {
    display: block;
    float: left;
    margin: 2px 5px 2px 0;
}
