/* Geometry and colours: forumscripts.ru/bookmarks/1.0.3/bookmarks.js.
   Quadro .post-box corresponds to MyBB .post_content. */
.post .post_content:has(>.rift-bookmark){position:relative;overflow:visible}
.post .rift-bookmark{width:30px;height:16px;position:absolute;color:#e23b3d;background:currentColor;opacity:.8;transition:.1s ease;right:-3px;z-index:999;cursor:pointer}
.post .rift-bookmark:is(:hover,:focus-visible){opacity:1}
.post .rift-bookmark:before{content:"";display:block;position:absolute;width:0;height:0;border-style:solid;border-width:8px 0 8px 10px;border-color:currentColor transparent;left:-10px}
.post .rift-bookmark.ncnfrm{color:#959595}
/* The window is the sidebar's own look in every design (owner 2026-11-15): its panel #202020 and text #e6e6e6
   (parity.css .rift-sidebar .cont), the card's title line (#MyBookmarksCustom li>span>.rift-bookmark-title below), the sidebar tab's shadow. */
.rift-bookmark-editor{position:absolute;z-index:999999;right:-5px;width:320px;max-width:100%;box-sizing:border-box;padding:12px;border:0;border-radius:8px;background:#202020;color:#e6e6e6;box-shadow:0 8px 64px rgba(5,5,5,.38);font:11px Verdana,sans-serif;text-align:left}
.rift-bookmark-editor-title{position:relative;margin:0 0 12px;padding:2px 24px 12px;border-bottom:1px solid rgba(230 230 230 / .2);font-weight:700;text-transform:uppercase;text-align:center}
.rift-bookmark-editor .rift-bookmark-close{position:absolute;top:-3px;right:-4px}
.rift-bookmark-editor-foot{display:flex;align-items:center;gap:8px;margin-top:12px}
.rift-bookmark-editor-foot .rift-bookmark-save{flex:1;margin:0}
/* No browser list indent: the cards take the sidebar's whole width, as the search above them. */
[data-rift-bookmark-list]{flex:1;overflow:auto;min-height:0;margin:0;padding:0}
/* «Управление»: note, folders, reminder and self-removal, in the post's window and on a sidebar card. */
.rift-bookmark-manage{text-align:left}
:is(.rift-bookmark-editor,.rift-bookmark-manage)>.inputfield{display:block;margin-top:.6em;font-weight:700}
.rift-bookmark-editor-title+.inputfield{margin-top:0}
.rift-bookmark-manage textarea{resize:vertical}
.rift-bookmark-folders{display:flex;flex-wrap:wrap;gap:.3em .8em;align-items:center;margin-top:4px;font-weight:400}
/* Font Awesome solid, as the sidebar's own icons (parity.css): gear for «Управление», trash for deletion. */
:is(.rift-bookmark-manage-icon,.rift-bookmark-trash):before{font:900 1em/1 FontAwesome}
.rift-bookmark-manage-icon:before{content:'\f013'}
.rift-bookmark-trash:before{content:'\f1f8'}
/* Deletion, in the window and on a sidebar card: the dark red of the sidebar's tab (parity.css .rift-sidebar-toggle:hover),
   with the marker's opacity. :is() with the id outweighs the card's dark circle (#MyBookmarksCustom inner li strong). */
:is(.rift-bookmark-editor,#MyBookmarksCustom,.rift-side-lists) .rift-bookmark-trash{background:var(--link,#560803);color:#e6e6e6;cursor:pointer;opacity:.8;transition:.1s ease}
:is(.rift-bookmark-editor,#MyBookmarksCustom,.rift-side-lists) .rift-bookmark-trash:is(:hover,:focus-visible){opacity:1}
.rift-bookmark-editor .rift-bookmark-trash{flex:none;width:26px;height:26px;border:0;border-radius:50%;padding:0;font-size:12px}
/* Search, folder and «only this topic» above the sidebar list. */
.rift-bookmark-filter{display:flex;flex-direction:column;gap:6px;margin:0 0 12px}
/* Fields take the sidebar card's colours, in the sidebar and in the window. The filter's part stays a class selector,
   so the search's own look below outweighs it. */
:is(.rift-bookmark-filter,.rift-bookmark-editor,.rift-side-lists) :is(input[type=search],input[type=text],input[type=datetime-local],textarea,select),#MyBookmarksCustom .rift-bookmark-manage :is(input[type=text],input[type=datetime-local],textarea,select){display:block;width:100%;box-sizing:border-box;margin-top:4px;background:rgba(230 230 230 / .12);color:rgba(230 230 230 / 1);border:0;border-radius:8px;padding:6px 8px;font:inherit}
.rift-bookmark-filter :is(input,select){margin-top:0}
/* The search stands out: the sidebar's lighter tone (rgba(230,230,230,.2), its font size counter), its title rule
   as a frame, and a Font Awesome magnifier in front. */
.rift-bookmark-search{position:relative;display:block}
.rift-bookmark-search:before{content:'\f002';position:absolute;left:10px;top:50%;transform:translateY(-50%);font:900 11px/1 FontAwesome;color:#e6e6e6;opacity:.6;pointer-events:none}
.rift-bookmark-filter .rift-bookmark-search input[type=search]{padding-left:28px;background:rgba(230 230 230 / .2);border:1px solid rgba(230 230 230 / .2)}
.rift-bookmark-search input::placeholder{color:#e6e6e6;opacity:.6}
/* «Управление закладками» in the control panel's «Разное»: the sidebar's Font Awesome bookmark in the marker's red,
   in the 16px icon slot the sprite rows use (padding-left 23px). */
.usercp_nav_item.rift-ucp-nav-bookmarks{position:relative;background-image:none}
.rift-ucp-nav-bookmarks:before{content:'\f02e';position:absolute;left:3px;top:50%;transform:translateY(-50%);font:900 14px/1 FontAwesome;color:#e23b3d}
.rift-bookmark-folders input[type=text]{flex:1 1 100%}
:is(.rift-bookmark-filter,.rift-bookmark-editor) option,#MyBookmarksCustom .rift-bookmark-manage option{color:#000;background:#fff}
#MyBookmarksCustom .rift-bookmark-manage .tab_nav{margin-top:12px}
#MyBookmarksCustom :is(.rift-bookmark-manage-icon,.rift-bookmark-trash){font-size:10px}
#MyBookmarksCustom li.BookmarkL dd{position:relative;padding:0 26px}
/* The card opens its settings on a click (rift-bookmarks.js); only the title's text is the link. */
#MyBookmarksCustom li.BookmarkL>span{cursor:pointer}
#MyBookmarksCustom li.BookmarkL .rift-bookmark-manage{cursor:auto}
#MyBookmarksCustom li.BookmarkL dd>.rift-bookmark-trash{position:absolute;right:0;bottom:0}

/* Existing source sidebar rules moved to their shared component. */
#MyBookmarksCustom{
    width: unset;
}
#MyBookmarksCustom h2:not(:where(.rift-rate-dialog *, .rift-chat-bubble, .rift-chat-window *, .rift-messenger *, .rift-chat-live-fresh, .rift-stickers *)){
    display: none;
}
#MyBookmarksCustom span.scrl{
    display: none;
}
#MyBookmarksCustom .container{
    padding: 0;
}
#MyBookmarksCustom inner li{
    list-style: none;
}
#MyBookmarksCustom inner li num{
    float: left;
    margin-right: 8px;
    padding-top: 2px;
}
#MyBookmarksCustom inner li>span{
    display: block;
    background: rgba(230 230 230 / .12);
    padding: 12px 12px;
    border-radius: 8px;
    margin: 0 0 16px;
}
#MyBookmarksCustom inner li span>.rift-bookmark-title{
    display: block;
}
#MyBookmarksCustom inner li span a{
    color: rgba(230 230 230 / 1);
}
#MyBookmarksCustom inner li strong{
    float: right;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    width: 20px;
    height: 20px;
    position: relative;
    background: rgba(40 40 40 / 1);
    color: rgba(230 230 230 / 1);
    border-radius: 16px;
    font-size: 8px;
}
#MyBookmarksCustom inner li>span>num,#MyBookmarksCustom inner li>span>.rift-bookmark-title{
    text-transform: uppercase;
    font-weight: bold;
}
#MyBookmarksCustom inner li>span>.rift-bookmark-title{
    border-bottom: 1px solid rgba(230 230 230 / .2);
    padding-top: 2px;
    padding-bottom: 12px;
    margin-bottom: 12px;
}
#MyBookmarksCustom li.BookmarkL span em{
    display: block;
    font-style: normal;
    font-size: 11px;
    color: rgba(230 230 230 / .6);
}
#MyBookmarksCustom li.BookmarkL span em:not(:last-child){
    margin-bottom: 4px;
}
#MyBookmarksCustom li.BookmarkL span:hover{
    background: rgba(230 230 230 / .2);
}
#MyBookmarksCustom li.BookmarkL span a:hover{
    color: rgba(230 230 230 / .6);
}
#MyBookmarksCustom inner li dd{
    margin-left: 0;
}
/* Sidebar «Друзья» (rift-sidebar-lists.js): friends, then ignore, in one column. Fields, pills and the delete
   circle are the bookmarks' (shared rules above, parity.css .rift-sidebar .tab_nav a); the circle's size is the card's
   (#MyBookmarksCustom inner li strong: 20px, radius 16px, 10px glyph). */
.rift-side-lists-part+.rift-side-lists-part{margin-top:24px}
.rift-side-lists h3{margin:0 0 8px;padding:0 0 8px;border-bottom:1px solid rgba(230 230 230 / .2);font:700 11px Verdana,sans-serif;text-transform:uppercase;text-align:center;color:#e6e6e6}
.rift-side-lists h4{margin:12px 0 6px;font:700 11px Verdana,sans-serif;color:rgba(230 230 230 / .6)}
/* One name field on top, «В друзья» and «В игнор» side by side under it. */
.rift-side-lists-find{margin:0 0 24px}
.rift-side-lists-actions{display:flex;gap:8px;margin-top:6px}
.rift-side-lists-actions .tab_nav{flex:1}
.rift-side-lists-actions .tab_nav a{margin:0}
/* The names found, under the field inside the sidebar: the field's own panel, a row lit as the cards light on hover. */
.rift-side-lists-hints{margin:4px 0 0;padding:4px;list-style:none;border-radius:8px;background:rgba(230 230 230 / .12)}
.rift-side-lists-hint{padding:6px 8px;border-radius:8px;color:#e6e6e6;cursor:pointer;overflow-wrap:anywhere}
.rift-side-lists-hint.is-active{background:rgba(230 230 230 / .2)}
.rift-side-lists-hints .rift-side-lists-empty{padding:6px 8px}
.rift-side-lists-people{margin:0;padding:0;list-style:none}
.rift-side-lists-row{display:flex;align-items:center;gap:8px;margin:0 0 6px;padding:6px 8px;border-radius:8px;background:rgba(230 230 230 / .12)}
.rift-side-lists-row:hover{background:rgba(230 230 230 / .2)}
.rift-side-lists-face{flex:none;width:20px;height:28px;object-fit:cover;border-radius:4px}
.rift-side-lists-name{flex:1;min-width:0;overflow-wrap:anywhere;color:#e6e6e6;text-decoration:none}
a.rift-side-lists-name:hover{color:rgba(230 230 230 / .6)}
.rift-side-lists .rift-bookmark-trash{flex:none;display:flex;align-items:center;justify-content:center;width:20px;height:20px;border-radius:16px;font-size:10px}
.rift-side-lists-answer{display:flex;flex-direction:column;flex:none}
.rift-side-lists-answer .tab_nav{margin:0}
.rift-side-lists-answer .tab_nav a{margin:0 0 4px;padding:4px 10px}
.rift-side-lists-empty{padding:6px 0;color:rgba(230 230 230 / .6)}
.rift-side-lists-note{margin:0 0 12px;color:#e6e6e6}
.rift-side-lists-note.is-error{color:#e3aaa5}
