:root {
    --message-bubble-bg: #373737;
    --message-bubble-fg: #ddd;

    --achievement-fg: inherit;
    --achievement-bg: #343338;
    --achievement-box-shadow:
        0 3px 4px 0 rgba(0, 0, 0, 0.14), 0 1px 8px 0 rgba(0, 0, 0, 0.12),
        0 3px 3px -2px rgba(0, 0, 0, 0.4);
    --achievement-progress-bg: #444;

    --alert-bg: #221e24;
    --alert-fg: #999;
    --alert-gap-color: #333;
    --alert-gap-width: 1px;

    --article-card-bg: #343338;
    --article-card-fg: #aaa;
    --article-card-head-fg: #d8d7dc;
    --article-card-time-fg: #999;
    --article-box-shadow:
        0 3px 4px 0 rgba(0, 0, 0, 0.14), 0 1px 8px 0 rgba(0, 0, 0, 0.12),
        0 3px 3px -2px rgba(0, 0, 0, 0.4);

    --bbcode-input-header-bg: #333;
    --bbcode-input-body-bg: #2a292e;
    --bbcode-input-border: 1px solid #555;
    --bbcode-input-border-radius: 22px;
    --bbcode-input-bg: #2a292e;

    --bbcode-rendered-fg-default: #c9d1d9;
    --bbcode-rendered-fg-muted: #8b949e;
    --bbcode-rendered-fg-subtle: #484f58;
    --bbcode-rendered-canvas-default: transparent;
    --bbcode-rendered-canvas-subtle: #313131;
    --bbcode-rendered-border-default: #3c3d3d;
    --bbcode-rendered-border-muted: #464749;
    --bbcode-rendered-neutral-muted: #46484b66;
    --bbcode-rendered-accent-fg: #58a6ff;
    --bbcode-rendered-accent-emphasis: #2260be;
    --bbcode-rendered-attention-subtle: #7289da;
    --bbcode-rendered-danger-fg: #ff141ccc;
    --bbcode-rendered-quote-bg: #6662;
    --bbcode-rendered-quote-border: #3981f6;

    --body-bg: #1a1820;
    --body-fg: #d8d7dc;

    --breadcrumb-fg: #3981f6;
    --breadcrumb-active-fg: #4991f6;
    --breadcrumb-hover-fg: #4991f6;
    --breadcrumb-inactive-text-decoration: none;

    --button-filled-bg: #363636;
    --button-filled-border: none;
    --button-filled-border-radius: 6px;
    --button-filled-fg: #d8d7dc;

    --button-outlined-bg: inherit;
    --button-outlined-border: 1px solid #444;
    --button-outlined-border-radius: 6px;
    --button-outlined-fg: currentColor;

    --button-text-bg: inherit;
    --button-text-border: none;
    --button-text-border-radius: 6px;
    --button-text-fg: currentColor;

    --chatbox-message-bg: #373737;
    --chatbox-button-fg: #888;
    --chatbox-button-hover-fg: #aaa;
    --chatbox-users-bg: #302f34;
    --chatbox-tab-delete-fg: #c22222;
    --chatbox-tab-delete-bg: #444;

    --compact-search-bg: #2a292e;
    --compact-search-box-shadow:
        0 3px 4px 0 rgba(0, 0, 0, 0.14), 0 1px 8px 0 rgba(0, 0, 0, 0.12),
        0 3px 3px -2px rgba(0, 0, 0, 0.4);
    --compact-search-border-radius: 27px;
    --compact-search-fg: #bbb;
    --compact-search-padding: 5px;

    --comparison-divider-fg: #fff;
    --comparison-button-fg: #fff;

    --data-table-border-radius: 22px;
    --data-table-fg: #c0c0c0;
    --data-table-th-bg: #2a292e;
    --data-table-thead-border: 1px solid #3c3c3c;
    --data-table-tr-border: 1px solid #333;
    --data-table-tr-even-bg: #2a292e;
    --data-table-tr-hover-bg: #302f34;
    --data-table-tr-odd-bg: #2a292e;
    --data-table-tfoot-border: 3px solid #3c3c3c;

    --dialog-bg: #2a292e;
    --dialog-border: none;
    --dialog-border-radius: 22px;
    --dialog-box-shadow:
        0 3px 4px 0 rgba(0, 0, 0, 0.14), 0 1px 8px 0 rgba(0, 0, 0, 0.12),
        0 3px 3px -2px rgba(0, 0, 0, 0.4);
    --dialog-fg: #050505;
    --dialog-head-bg: #2a292e;
    --dialog-head-fg: #050505;

    --donation-chart-daily-bg: rgba(75, 192, 192, 0.2);
    --donation-chart-daily-border: rgba(75, 192, 192, 1);
    --donation-chart-monthly-bg: rgba(153, 102, 255, 0.2);
    --donation-chart-monthly-border: rgba(153, 102, 255, 1);

    --fieldset-bg: inherit;
    --fieldset-fg: #aaa;
    --fieldset-border-radius: 20px;
    --fieldset-border: 1px solid #606060;

    --footer-bg: #00000026;
    --footer-hr-fg: #262626;

    --icon-button-bg: inherit;
    --icon-button-border: none;
    --icon-button-border-radius: 9999px;
    --icon-button-fg: currentColor;

    --icon-button-filled-bg: #5cb579
        linear-gradient(to bottom right, #0ba360, #2bb673);
    --icon-button-filled-fg: white;
    --icon-button-filled-border: none;

    --input-text-border: 1px solid #555;
    --input-text-border-active: 2px solid #2195f3;
    --input-text-border-error: 1px solid #ba1b1b;
    --input-text-border-hover: 2px solid #999;
    --input-text-border-radius: 20px;
    --input-text-fg: #aaa;
    --input-text-padding: 12px;
    --input-text-padding-active: 11px;
    --input-text-padding-hover: 11px;

    --key-value-border-radius: 0;
    --key-value-even-bg: transparent;
    --key-value-fg: inherit;
    --key-value-odd-bg: transparent;
    --key-value-padding: 13px;

    --label-bg: #e2e2e2;
    --label-fg: #aaa;
    --label-fg-active: #2195f3;
    --label-fg-error: #ba1b1b;
    --label-fg-hover: #999;

    --legend-fg: #888;
    --legend-bg: transparent;
    --legend-border: none;
    --legend-border-radius: 0;

    --mediahub-card-bg: #3b3942;
    --mediahub-card-fg: #ddd;
    --mediahub-card-hover-fg: #fff;
    --mediahub-card-border: none;
    --mediahub-card-border-radius: 22px;
    --mediahub-card-box-shadow:
        0px 3px 3px -2px rgba(0, 0, 0, 0.2),
        0px 3px 4px 0px rgba(0, 0, 0, 0.14), 0px 1px 8px 0px rgba(0, 0, 0, 0.12);

    --meta-backdrop-filter: brightness(30%) blur(100px);
    --meta-dropdown-backdrop-filter: brightness(2) blur(10px);
    --meta-dropdown-bg: #4449;
    --meta-dropdown-backdrop-filter-hover: brightness(2) blur(10px);
    --meta-dropdown-hover-bg: rgba(255, 255, 255, 0.1);
    --meta-dropdown-fg: #bbb;
    --meta-dropdown-hover-fg: #ccc;
    --meta-description-fg: #ddd;
    --meta-id-tag-fg: #eee;
    --meta-id-tag-bg: transparent;
    --meta-id-tag-hover-fg: #fff;
    --meta-id-tag-hover-bg: rgba(255, 255, 255, 0.1);
    --meta-chips-heading-fg: #bbb;
    --meta-chip-icon-fg: #1f1f1f;
    --meta-chip-icon-hover-bg: #bbb;
    --meta-chip-icon-bg: #cdcdcd;
    --meta-chip-name-fg: #e2e2e2;
    --meta-chip-value-fg: #aaa;
    --meta-chip-value-hover-fg: #ccc;
    --meta-chip-backdrop-filter-hover: brightness(2) blur(10px);
    --meta-chip-hover-bg: rgba(255, 255, 255, 0.1);
    --meta-popup-bg: #1a1a1a;
    --meta-popup-fg: #7f8c8d;

    --meter-fg: #2a292e;
    --meter-bg: #444;

    --notification-read: transparent;
    --notification-unread: #2bb666;

    --option-bg: #343338;
    --option-fg: #212121;

    --paginate-bg: #2a292e;
    --paginate-bg-hover: #3a393e;
    --paginate-bg-current: #312f35;
    --paginate-border-radius: 22px;
    --paginate-fg: #ddd;
    --paginate-fg-disabled: #999;
    --paginate-divider: #888;

    --panel-action-fg: #aaa;
    --panel-border: none;
    --panel-bg: #2a292e;
    --panel-fg: #bbb;
    --panel-body-border-radius: 22px;
    --panel-box-shadow:
        0 3px 4px 0 rgba(0, 0, 0, 0.14), 0 1px 8px 0 rgba(0, 0, 0, 0.12),
        0 3px 3px -2px rgba(0, 0, 0, 0.4);
    --panel-border-radius: 22px;
    --panel-head-bg: #2a292e;
    --panel-head-fg: #d8d7dc;
    --panel-head-border-radius: 22px;

    --playlist-card-bg: #343338;
    --playlist-card-border: none;
    --playlist-card-border-radius: 20px;
    --playlist-card-box-shadow:
        0 4px 5px 0 rgba(0, 0, 0, 0.14), 0 1px 10px 0 rgba(0, 0, 0, 0.12),
        0 2px 4px -1px rgba(0, 0, 0, 0.2);
    --playlist-card-fg: #d8d7dc;
    --playlist-card-missing-image-bg: #262626;
    --playlist-card-missing-image-fg: #1d1d1d;

    --post-bg: #343338;
    --post-fg: #212121;
    --post-shadow:
        0 3px 4px 0 rgba(0, 0, 0, 0.14), 0 3px 3px -2px rgba(0, 0, 0, 0.12),
        0 1px 8px 0 rgba(0, 0, 0, 0.2);
    --post-head-fg: var(--panel-fg);
    --post-head-bg: none;
    --post-toolbar-bg: #343338;
    --post-toolbar-fg: #999;
    --post-toolbar-hover-bg: #343338;
    --post-toolbar-hover-fg: #ccc;
    --post-like-fg: #5ab15f;
    --post-dislike-fg: #c93120;
    --post-aside-bg: #343338;
    --post-aside-fg: #696969;
    --post-footer-fg: var(--panel-fg);

    --prize-bg: #343338;
    --prize-border-radius: 20px;
    --prize-border: none;
    --prize-box-shadow:
        0 4px 5px 0 rgba(0, 0, 0, 0.14), 0 1px 10px 0 rgba(0, 0, 0, 0.12),
        0 2px 4px -1px rgba(0, 0, 0, 0.2);
    --prize-fg: #d8d7dc;
    --prize-heading-fg: #d8d7dc;
    --prize-icon-primary-color: mediumseagreen;
    --prize-icon-secondary-color: linen;

    --quick-search-bg: #3b3b42;
    --quick-search-fg: #a0a0ac;
    --quick-search-border: none;
    --quick-search-border-radius: 18px;
    --quick-search-box-shadow: 0 4px 6px rgba(32, 33, 36, 0.28);
    --quick-search-selector-fg: #b6b6b6;
    --quick-search-selector-hover-bg: #4a4a51;
    --quick-search-selector-hover-fg: #d0d0dc;
    --quick-search-selector-selected-bg: #46464c;
    --quick-search-selector-selected-fg: #b0b0bc;
    --quick-search-result-bg: #3b3b42;
    --quick-search-result-fg: #aaa;
    --quick-search-result-hover-bg: #4b4b52;
    --quick-search-result-hover-fg: #ccc;
    --quick-search-result-image-border-radius: 5px;
    --quick-search-result-year-fg: #888;
    --quick-search-result-border: none;

    --scrollbar-color: #0004;

    --secondary-nav-bg: #221e24;
    --secondary-nav-box-shadow: 0 8px 10px 0 rgba(0, 0, 0, 0.2);
    --secondary-nav-tab-fg: #999;
    --secondary-nav-tab-bg: inherit;
    --secondary-nav-tab-active-text-decoration: underline #0099ff 2px;
    --secondary-nav-tab-hover-fg: #bbb;
    --secondary-nav-tab-hover-bg: transparent;
    --secondary-nav-tab-hover-text-decoration: underline #0088ff 2px;
    --secondary-nav-tab-menu-bg: #2a292e;
    --secondary-nav-tab-menu-fg: inherit;
    --secondary-nav-tab-menu-border: none;
    --secondary-nav-tab-menu-border-radius: 6px;
    --secondary-nav-tab-menu-box-shadow:
        0 12px 17px 2px rgba(0, 0, 0, 0.14), 0 5px 22px 4px rgba(0, 0, 0, 0.12),
        0 7px 8px -4px rgba(0, 0, 0, 0.2);

    --select-border: 1px solid #606060;
    --select-border-active: 2px solid #2195f3;
    --select-border-error: 1px solid #ba1b1b;
    --select-border-hover: 2px solid #999;
    --select-border-radius: 20px;
    --select-fg: #aaa;
    --select-icon: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'><path fill='%23aaa' d='M6 8l-1 1l5 5l5-5l-1-1l-4 4l-4-4z'/></svg>");
    --select-padding: 11px 23px 11px 11px;
    --select-padding-active: 10px 22px 10px 10px;
    --select-padding-hover: 10px 22px 10px 10px;

    --subforum-listing-odd-bg: transparent;
    --subforum-listing-even-bg: transparent;
    --subforum-listing-border: 1px solid #3c3c3c;

    --textarea-border: 1px solid #555;
    --textarea-border-active: 2px solid #2196f3;
    --textarea-border-error: 1px solid #ba1b1b;
    --textarea-border-hover: 2px solid #999;
    --textarea-border-radius: 20px;
    --textarea-fg: #aaa;
    --textarea-padding: 12px;
    --textarea-padding-active: 11px;
    --textarea-padding-hover: 11px;

    --top-nav-bg: #2a292e;
    --top-nav-box-shadow: 0 8px 10px 0 rgba(0, 0, 0, 0.2);
    --top-nav-dropdown-fg: #eae9ee;
    --top-nav-dropdown-hover-fg: #f0eff4;
    --top-nav-dropdown-hover-bg: #3a393d;
    --top-nav-dropdown-hover-text-decoration: none;
    --top-nav-dropdown-menu-bg: #2a292e;
    --top-nav-dropdown-menu-border: none;
    --top-nav-dropdown-menu-border-radius: 6px;
    --top-nav-dropdown-menu-box-shadow:
        0 12px 17px 2px rgba(0, 0, 0, 0.14), 0 5px 22px 4px rgba(0, 0, 0, 0.12),
        0 7px 8px -4px rgba(0, 0, 0, 0.2);
    --top-nav-dropdown-menu-item-fg: #eae9ee;
    --top-nav-dropdown-menu-item-bg: transparent;
    --top-nav-dropdown-menu-item-hover-fg: inherit;
    --top-nav-dropdown-menu-item-hover-bg: #3a393d;
    --top-nav-dropdown-menu-item-hover-text-decoration: none;
    --top-nav-dropdown-menu-item-icon-fg: #eae9ee;
    --top-nav-dropdown-menu-item-icon-bg: #413f42;
    --top-nav-ratio-bar-fg: #eae9ee;
    --top-nav-icon-bar-icon-bg: #454449;
    --top-nav-icon-bar-icon-fg: #eae9ee;
    --top-nav-icon-bar-icon-border-radius: 50%;
    --top-nav-icon-bar-icon-hover-bg: #4d4c51;
    --top-nav-icon-bar-icon-hover-fg: #f0eff4;
    --top-nav-stats-fg: #eae9ee;
    --top-nav-toggle-fg: #eae9ee;

    --torrent-card-bg: #343338;
    --torrent-card-fg: #bbb;
    --torrent-card-border: none;
    --torrent-card-head-bg: #343338;
    --torrent-card-head-fg: #ccc;
    --torrent-card-link-fg: #ccc;
    --torrent-card-genre-fg: #aaa;

    --torrent-group-bg: #343338;
    --torrent-group-header-bg: #343338;
    --torrent-group-text: #aaa;
    --torrent-group-text-muted: #888;
    --torrent-group-table-stripe-even: rgba(0, 0, 0, 0.18);
    --torrent-group-table-stripe-odd: rgba(0, 0, 0, 0.1);
    --torrent-group-hover-brightness-emphasis: 1.13;
    --torrent-group-chip-border: #444;

    --torrent-row-fg: #bbb;
    --torrent-row-visited-fg: #8768e0;
    --torrent-row-sticky-bg: #302f34;
    --torrent-row-format-fg: #bbb;
    --torrent-row-format-bg: transparent;
    --torrent-row-buttons-fg: #888;
    --torrent-row-seeders-fg: #7ad17f;
    --torrent-row-leechers-fg: #e95140;
    --torrent-row-completed-fg: #4f84d7;
    --torrent-row-comments-fg: #3fb618;
    --torrent-row-internal-fg: #baaf94;
    --torrent-row-personal-fg: #865be9;
    --torrent-row-featured-fg: #f92672;
    --torrent-row-freeleech-fg: #ffb800;
    --torrent-row-double-upload-fg: #4cb828;
    --torrent-row-sticky-fg: #111111;
    --torrent-row-highspeed-fg: #ff0039;
    --torrent-row-bumped-fg: #f9ba13;

    --torrent-tag-fg: #eee;
    --torrent-tag-bg: transparent;
    --torrent-tag-hover-fg: #fff;
    --torrent-tag-hover-bg: rgba(255, 255, 255, 0.1);

    --user-stat-card-bg: #3b3942;
    --user-stat-card-fg: #ddd;
    --user-stat-card-border: none;
    --user-stat-card-border-radius: 22px;
    --user-stat-card-box-shadow:
        0px 3px 3px -2px rgba(0, 0, 0, 0.2),
        0px 3px 4px 0px rgba(0, 0, 0, 0.14), 0px 1px 8px 0px rgba(0, 0, 0, 0.12);
}

.panel__heading {
    font-size: 19px;
    font-weight: bold;
    padding: 12px 15px;
}

/* Bottom-most table header cells which don't have a following tbody nor tfoot */
.data-table
    > thead:not(:has(+ tbody > tr)):not(:has(~ tfoot > tr))
    > tr:last-of-type
    > th {
    border-bottom: none;
}

.data-table tr td:first-of-type:not(.torrent-search--list__poster),
.data-table tr th:first-of-type {
    padding-left: 20px;
}

.data-table tr td:last-of-type,
.data-table tr th:last-of-type {
    padding-right: 20px;
}

.article-preview {
    border-radius: 22px;
}

.page__topic--show .bbcode-input {
    --bbcode-input-border: none;
}

.post {
    border-radius: 22px;
}

a {
    color: #4991f6;
}

.chatroom__whispers {
    border-top: 1px solid #3c3c3c;
}

.chatbox-message {
    border-radius: 26px;
    padding: 0 4px;
    color: #bbb;
}

.chatbox-message::before {
    border-color: transparent;
}

.chatbox__chatroom {
    border-bottom-left-radius: 26px;
    border-bottom-right-radius: 26px;
}

.torrent-search--grouped__result {
    border-radius: 22px;
}

.torrent-card {
    border-radius: 22px;
}

.comment {
    box-shadow: none;
    background-color: var(--panel-bg);
}

.comment__aside {
    background-color: var(--panel-bg);
}

.comment__toolbar {
    background-color: var(--panel-bg);
}

.comment__list-item + .comment__list-item > .comment {
    border-top: 1px solid #444;
    border-radius: 0;
    padding-top: 22px;
}

.comment__replies {
    margin-top: 4px;
}

.meta__title {
    color: #bbb;
}

.meta__backdrop {
    mask-image: linear-gradient(to bottom, #000d 0%, #0002 65%, #0000 100%);
}

.user-card {
    border-radius: 22px;
}

.notification--unread {
    border-left: none !important;
}

.notification--unread::before {
    content: '';
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 4px;
    margin-right: 4px;
    background-color: var(--notification-unread);
    position: relative;
}

.achievement {
    margin: 18px;
    border-radius: 22px;
}

.text-muted {
    color: #aaa;
}

hr {
    border-top: 1px solid #444;
}

li.pagination__next,
li.pagination__previous {
    margin: 2px;
}

a.pagination__next,
a.pagination__previous,
li.pagination__next,
li.pagination__previous {
    border-radius: 9999px;
    height: 36px;
    width: 86px;
    line-height: 36px;
}

.pagination__link,
.pagination__current {
    border-radius: 9999px;
    height: 36px;
    width: 36px;
    margin: 2px;
    line-height: 36px;
}
