Stylus Theme (Dark Side)

Stylus dark theme, inspired by Randy W. Sims' Stylus Theme (Dark) <https://github.com/simsrw73/stylus-theme>

/* ==UserStyle==
@name           Stylus Theme (Dark Side)
@namespace      almaceleste
@version        0.5.5
@description    Stylus dark theme, inspired by Randy W. Sims' Stylus Theme (Dark) <https://github.com/simsrw73/stylus-theme>
@author         almaceleste (https://almaceleste.github.io)
@license        AGPL-3.0-or-later; http://www.gnu.org/licenses/agpl.txt

@homepageURL    https://greasyfork.org/en/scripts/402634-stylus-theme-dark-side
@homepageURL    https://userstyles.org/styles/182131
@homepageURL    https://github.com/almaceleste/userstyles
@supportURL     https://github.com/almaceleste/userstyles/issues

@preprocessor   uso
@var select     foreground-color 'highlight color' [
    'black',
    'deepskyblue*',
    'firebrick',
    'gold',
    'lightgray',
    'lightskyblue',
    'lime',
    'magenta',
    'navy',
    'orangered',
    'white',
    'whitesmoke'
]
==/UserStyle== */

@-moz-document regexp("chrome-extension://.*"), regexp("moz-extension://.*") {
    button:disabled, select:disabled, option:disabled, select[disabled] > option, input[type='checkbox']:not(.slider):disabled, input[type='number']:disabled, #installed .disabled h2 .style-name-link, #installed .disabled h2::after, #installed .disabled .actions, #installed .disabled .applies-to, #stylus-install-usercss #header-content-wrapper .set-update-url input:disabled + .svg-icon.checked + span, #stylus-manage #update-all #update-all-no-updates { opacity: 0.5; }
    /* latin */
    @font-face { font-family: "Open Sans"; font-style: normal; font-weight: 400; src: local("Open Sans Regular"), local("OpenSans-Regular"), url(https://fonts.gstatic.com/s/opensans/v15/mem8YaGs126MiZpBA-UFVZ0b.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215,
    U+FEFF, U+FFFD; }
    @font-face { font-family: "Open Sans"; font-style: normal; font-weight: 700; src: local("Open Sans Bold"), local("OpenSans-Bold"), url(https://fonts.gstatic.com/s/opensans/v15/mem5YaGs126MiZpBA-UN7rgOUuhp.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215,
    U+FEFF, U+FFFD; }
    /* latin-ext */
    @font-face { font-family: "Source Code Pro"; font-style: normal; font-weight: 400; src: local("Source Code Pro"), local("SourceCodePro-Regular"), url(https://fonts.gstatic.com/s/sourcecodepro/v7/HI_SiYsKILxRpg3hIP6sJ7fM7PqlM-vWjMY.woff2) format("woff2"); unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB,
    U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF; }
    /* latin */
    @font-face { font-family: "Source Code Pro"; font-style: normal; font-weight: 400; src: local("Source Code Pro"), local("SourceCodePro-Regular"), url(https://fonts.gstatic.com/s/sourcecodepro/v7/HI_SiYsKILxRpg3hIP6sJ7fM7PqlPevW.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215,
    U+FEFF, U+FFFD; }
    /* Fontawesome Icons */
    .fa, .fas, #stylus-manage #manage-options-button::before, #stylus-manage #manage-shortcuts-button::before, #stylus-manage #find-editor-styles > button::before, .far, .fal, .fab { -moz-osx-font-smoothing: grayscale; -webkit-font-smoothing: antialiased; display: inline-block; font-style: normal; font-variant: normal; text-rendering: auto; line-height: 1; }
    #stylus-manage #manage-options-button::before, #stylus-manage #manage-shortcuts-button::before, #stylus-manage #find-editor-styles > button::before { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; display: inline-block; font-style: normal; font-variant: normal; font-weight: normal; line-height: 1; vertical-align: -.125em; }
    /*! Font Awesome Free 5.3.1 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License) */
    @font-face { font-family: 'Font Awesome 5 Free'; font-style: normal; font-weight: 900; src: url("https://use.fontawesome.com/releases/v5.3.1/webfonts/fa-solid-900.eot"); src: url("https://use.fontawesome.com/releases/v5.3.1/webfonts/fa-solid-900.eot?#iefix") format("embedded-opentype"), url("https://use.fontawesome.com/releases/v5.3.1/webfonts/fa-solid-900.woff2") format("woff2"), url("https://use.fontawesome.com/releases/v5.3.1/webfonts/fa-solid-900.woff") format("woff"), url("https://use.fontawesome.com/releases/v5.3.1/webfonts/fa-solid-900.ttf") format("truetype"), url("https://use.fontawesome.com/releases/v5.3.1/webfonts/fa-solid-900.svg#fontawesome") format("svg"); }
    .fa, .fas, #stylus-manage #manage-options-button::before, #stylus-manage #manage-shortcuts-button::before, #stylus-manage #find-editor-styles > button::before { font-family: 'Font Awesome 5 Free'; font-weight: 900; }
    /* Material Icons */
    @font-face { font-family: "Material Icons"; font-style: normal; font-weight: 400; src: url(https://fonts.gstatic.com/s/materialicons/v38/flUhRq6tzZclQEJ-Vdg-IuiaDsNc.woff2) format("woff2"); }
    /* https://www.heropatterns.com/ */
    /* https://www.heropatterns.com/ */
    html { background-color: #333; }
    html, body { color: white; letter-spacing: 0.025em; font-family: "Open Sans", sans-serif; }
    h1, h2, h3 { letter-spacing: 0.025em; color: /*[[foreground-color]]*/; text-shadow: 1px 0 2px rgba(0, 0, 0, 0.3); }
    /* h2 { font-variant: small-caps; } */
    a { color: white; }
    a:hover { color: #aaa; }
    details { color: /*[[foreground-color]]*/ !important; }
    label { color: white; }
    button { padding-top: 0.25em; padding-bottom: 0.25em; margin: 0.25em; -webkit-border-radius: 0.25em; border-radius: 0.25em; border: 1px solid rgba(38, 254, 250, 0.4); background-color: transparent; color: white; background-image: none; margin-bottom: 0.5em; cursor: pointer; -webkit-transition: all 200ms ease-in-out; transition: all 200ms ease-in-out; height: 2em; }
    button:hover:not(:disabled) { background-color: rgba(51, 51, 51, 0.2) !important; border: 1px solid rgba(38, 254, 250, 0.4) !important; color: white !important; }
    select { color: white; border: 1px solid rgba(38, 254, 250, 0.4); background-color: transparent; -webkit-border-radius: 0.25em; border-radius: 0.25em; padding-right: 1.25em; font-weight: 300; letter-spacing: 0.025em; width: auto !important; height: 2em !important; padding: 3px 18px 3px 6px; margin-bottom: 0.5em; -webkit-transition: background-color 200ms ease-in-out; transition: background-color 200ms ease-in-out; }
    select:hover:not(:disabled) { background-color: rgba(51, 51, 51, 0.2); }
    select optgroup { background-color: #2d7070; color: #fff; }
    select option { background-color: #333; color: /*[[foreground-color]]*/; }
    input, select { padding-left: 0.5em !important; }
    button:disabled, select:disabled, option:disabled, select[disabled] > option { background-color: transparent; border: 1px solid rgba(38, 254, 250, 0.4); color: white; background-image: none; cursor: default; }
    input { -webkit-border-radius: 0.25em; border-radius: 0.25em; background-color: rgba(51, 51, 51, 0.2) !important; border: 1px solid rgba(38, 254, 250, 0.4) !important; margin-bottom: 0.5em; }
    input:not([type='checkbox']) { padding-top: 0.25em !important; padding-bottom: 0.25em !important; height: 2em !important; }
    input[type='checkbox']:not(.slider), input[type='number'] { background-color: transparent !important; }
    input[type='checkbox']:not(.slider):hover, input[type='number']:hover { background-color: rgba(51, 51, 51, 0.2) !important; }
    ::-webkit-input-placeholder { color: #eee; opacity: 1; }
    :-ms-input-placeholder { color: #eee; opacity: 1; }
    ::-ms-input-placeholder { color: #eee; opacity: 1; }
    ::placeholder { color: #eee; opacity: 1; }
    ::-webkit-scrollbar { width: 0.8rem; height: 0.8rem; }
    ::-webkit-scrollbar-thumb { -webkit-border-radius: 2px; border-radius: 2px; background: #2d7070; -webkit-box-shadow: inset 0 0 2px rgba(38, 254, 250, 0.4); box-shadow: inset 0 0 2px rgba(38, 254, 250, 0.4); }
    ::-webkit-scrollbar-track { background-color: #333; -webkit-box-shadow: inset 0 0 2px rgba(38, 254, 250, 0.4); box-shadow: inset 0 0 2px rgba(38, 254, 250, 0.4); }
    #installed { -webkit-box-shadow: 2px 0 8px rgba(0, 0, 0, 0.6); box-shadow: 2px 0 8px rgba(0, 0, 0, 0.6); padding-top: 2em; padding-bottom: 2em; background-color: #333; }
    #installed .entry { background-color: #333 !important; }
    #installed .entry h2 { padding-top: .1em; padding-bottom: .1em; text-shadow: none; }
    #installed .entry .style-name:hover::before { background: -webkit-linear-gradient(left, /*[[foreground-color]]*/, /*[[foreground-color]]*/ 4px, rgba(0, 0, 0, 0.15) 5px, rgba(0, 0, 0, 0.1) 60%, transparent); background: linear-gradient(to right, /*[[foreground-color]]*/, /*[[foreground-color]]*/ 4px, rgba(0, 0, 0, 0.15) 5px, rgba(0, 0, 0, 0.1) 60%, transparent); }
    #installed .entry.even { background: none !important; background-image: -webkit-gradient(linear, left top, right top, from(rgba(170, 170, 170, 0.2)), color-stop(70%, rgba(51, 51, 51, 0.2)), color-stop(90%, rgba(17, 17, 17, 0.1)), to(transparent)) !important; background-image: -webkit-linear-gradient(left, rgba(170, 170, 170, 0.2), rgba(51, 51, 51, 0.2) 70%, rgba(17, 17, 17, 0.1) 90%, transparent 100%) !important; background-image: linear-gradient(to right, rgba(170, 170, 170, 0.2), rgba(51, 51, 51, 0.2) 70%, rgba(17, 17, 17, 0.1) 90%, transparent 100%) !important; }
    #installed .style-name-link { color: /*[[foreground-color]]*/; }
    #installed .disabled h2::after { background-color: rgba(51, 51, 51, 0.4) !important; color: #eee !important; }
    #installed .entry.usercss .style-name-link::after { background-color: rgba(51, 51, 51, 0.4); color: #eee; font-weight: 700; }
    #installed .disabled h2 .style-name-link, #installed .disabled h2::after, #installed .disabled .actions, #installed .disabled .applies-to { font-weight: 400 !important; }
    #installed .target { color: /*[[foreground-color]]*/; font-weight: 400; }
    #installed .svg-icon.checked { fill: /*[[foreground-color]]*/ !important; }
    #installed .actions .svg-icon { fill: /*[[foreground-color]]*/ !important; }
    #installed .can-update[data-details$='locally edited'] .update svg, #installed .update-problem .check-update svg { fill: #cc0000 !important; }
    #installed .expander { color: /*[[foreground-color]]*/; }
    #installed .highlight { -webkit-animation: highlight 4s cubic-bezier(0, 0.82, 0.47, 0.98); animation: highlight 4s cubic-bezier(0, 0.82, 0.47, 0.98); }
    @-webkit-keyframes highlight { from { background-color: rgba(204, 204, 204, 0.8); }
    to { background: none; } }
    @keyframes highlight { from { background-color: rgba(204, 204, 204, 0.8); }
    to { background: none; } }
    #stylus-edit #sections label, #stylus-edit #sections button, #stylus-edit #sections select, #stylus-edit #sections input { color: /*[[foreground-color]]*/; }
    #stylus-edit #sections button, #stylus-edit #sections input, #stylus-edit #sections select { margin-left: 0.25em; background-color: rgba(51, 51, 51, 0.2) !important; border-color: rgba(38, 254, 250, 0.8) !important; -webkit-transition: all 200ms ease-in-out; transition: all 200ms ease-in-out; }
    #stylus-edit #sections button:hover, #stylus-edit #sections input:hover, #stylus-edit #sections select:hover { background-color: rgba(51, 51, 51, 0.4) !important; color: rgba(38, 254, 250, 0.8) !important; }
    #stylus-edit #sections label.code-label { display: inline-block; margin-left: -16px; margin-bottom: 0.25em; font-size: 14px; }
    #stylus-edit #sections svg.svg-icon { fill: /*[[foreground-color]]*/ !important; }
    #stylus-edit #sections .remove-applies-to, #stylus-edit #sections .add-applies-to { margin-left: 4px; -webkit-border-radius: 50%; border-radius: 50%; background-color: transparent !important; -webkit-transition: background-color 200ms ease-in-out; transition: background-color 200ms ease-in-out; }
    #stylus-edit #sections .remove-applies-to:hover, #stylus-edit #sections .add-applies-to:hover { background-color: rgba(51, 51, 51, 0.2) !important; }
    .CodeMirror { font-family: 'Source Sans Pro', monospace; }
    .CodeMirror .CodeMirror-linewidget { cursor: default; }
    .CodeMirror .CodeMirror-linewidget .select-resizer, .CodeMirror .CodeMirror-linewidget .applies-value-wrapper { margin: 0; }
    .CodeMirror .CodeMirror-linewidget .applies-to-item { margin-bottom: 1em; }
    .CodeMirror .CodeMirror-linewidget button, .CodeMirror .CodeMirror-linewidget input, .CodeMirror .CodeMirror-linewidget select { margin: 0 0 0 0.5em; }
    .CodeMirror .CodeMirror-linewidget .test-regexp { height: 24px; }
    body.all-styles-hidden-by-filters:before { top: 0; z-index: 1; color: rgba(38, 254, 250, 0.8); }
    body.all-styles-hidden-by-filters:after { top: 20px; left: -webkit-calc(7rem + var(--header-width)); left: calc(7rem + var(--header-width)); color: rgba(38, 254, 250, 0.8); z-index: 1; }
    .newUI .can-update:not([data-details$='locally edited']) .update:after, .newUI .updater-icons > :not(.check-update):after { border: 1px solid rgba(38, 254, 250, 0.4); background-color: #333; color: /*[[foreground-color]]*/; }
    #header { background-color: #222; border-right: 1px solid transparent; overflow-x: hidden; overflow-y: auto; -webkit-box-shadow: 2px 0 16px rgba(0, 0, 0, 0.6); box-shadow: 2px 0 16px rgba(0, 0, 0, 0.6); }
    #header h1 { letter-spacing: 0.05em; }
    #header h1::before { content: '{'; font-size: 1.2em; }
    #header h1::after { content: '}'; font-size: 1.2em; }
    #header svg.svg-icon { fill: /*[[foreground-color]]*/ !important; }
    #header .svg-icon.checked, #header .svg-icon.select-arrow { fill: white !important; }
    #stylus-install-usercss #header h1::before, #stylus-install-usercss #header h1::after { content: '' !important; }
    #stylus-install-usercss #header-content-wrapper { display: -webkit-box; display: -webkit-flex; display: flex; -webkit-box-orient: vertical; -webkit-box-direction: normal; -webkit-flex-direction: column; flex-direction: column; }
    #stylus-install-usercss #header-content-wrapper .set-update-url input:disabled + .svg-icon.checked { fill: rgba(255, 255, 255, 0.5) !important; }
    #stylus-install-usercss #header-content-wrapper .set-update-url input:disabled + .svg-icon.checked + span { color: white; }
    #stylus-install-usercss h1 { position: relative; margin-bottom: 2em; -webkit-box-ordinal-group: 0; -webkit-order: -1; order: -1; }
    #stylus-install-usercss h3 { margin-top: 1.5em; margin-bottom: 0.5em; }
    #stylus-install-usercss .meta-name::before { content: '{'; font-size: 1.2em; }
    #stylus-install-usercss .meta-name::after { content: '}'; font-size: 1.2em; }
    #stylus-install-usercss .meta-version { position: absolute; right: 4em; bottom: -1.5em; }
    #stylus-install-usercss .meta-version::before { content: ' \Av'; white-space: pre; }
    #stylus-install-usercss .meta-description { -webkit-box-ordinal-group: 0; -webkit-order: -1; order: -1; margin-top: -1em; margin-bottom: 2em; color: #eee; font-style: italic; }
    #stylus-install-usercss #live-reload-install-hint { margin-top: 0; }
    #stylus-install-usercss .external-link ul { margin-bottom: 0; }
    #stylus-install-usercss button.install.reinstall { border: 1px solid #2d7070 !important; }
    #stylus-manage #manage-heading { margin-bottom: 0; }
    #stylus-manage #update-check { margin-bottom: 0; }
    #stylus-manage #update-all { margin-left: 1rem; margin-bottom: 0; }
    #stylus-manage #update-all #update-all-no-updates { color: white; }
    #stylus-manage #check-all-updates, #stylus-manage #apply-all-updates, #stylus-manage #check-all-updates-force, #stylus-manage #add-style-label { position: relative; margin: 0 0.5em; padding: 0; border: none; overflow: visible; white-space: nowrap; }
    #stylus-manage #check-all-updates::after, #stylus-manage #apply-all-updates::after, #stylus-manage #check-all-updates-force::after, #stylus-manage #add-style-label::after { content: ''; position: absolute; height: 5px; width: 100%; bottom: 4px; left: 4px; z-index: -1; background-color: rgba(51, 51, 51, 0.3); -webkit-border-radius: 2px; border-radius: 2px; -webkit-transition: all 200ms ease-in-out; transition: all 200ms ease-in-out; }
    #stylus-manage #check-all-updates:hover, #stylus-manage #apply-all-updates:hover, #stylus-manage #check-all-updates-force:hover, #stylus-manage #add-style-label:hover { border: none !important; background-color: transparent !important; }
    #stylus-manage #check-all-updates:hover::after, #stylus-manage #apply-all-updates:hover::after, #stylus-manage #check-all-updates-force:hover::after, #stylus-manage #add-style-label:hover::after { height: 0.8em; background-color: rgba(51, 51, 51, 0.2); }
    #stylus-manage #header details summary { padding-bottom: 0.5em; }
    #stylus-manage .settings-column:first-child { display: -webkit-box; display: -webkit-flex; display: flex; -webkit-box-orient: vertical; -webkit-box-direction: normal; -webkit-flex-direction: column; flex-direction: column; }
    #stylus-manage .settings-column:first-child #style-actions { margin-top: 1em; }
    #stylus-manage .settings-column:first-child #sort-wrapper { -webkit-box-ordinal-group: 2; -webkit-order: 1; order: 1; margin-top: 0.75em; }
    #stylus-manage .settings-column:first-child #sort-wrapper:before { content: 'Sort:'; display: block; width: 100%; color: /*[[foreground-color]]*/; font-size: 18px; font-weight: 700; /* font-variant: small-caps; */ margin-bottom: 0.5em; text-shadow: 1px 0 2px rgba(0, 0, 0, 0.3); }
    #stylus-manage .settings-column:first-child #sort-wrapper .sorter-selection #manage\.newUI\.sort { padding: 0.25em; background-color: rgba(51, 51, 51, 0.2); border: 1px solid rgba(38, 254, 250, 0.4); color: white; }
    #stylus-manage .settings-column:first-child #sort-wrapper .sorter-selection svg.svg-icon.select-arrow, #stylus-manage .settings-column:first-child #sort-wrapper .sorter-selection svg.svg-icon #svg-icon-select-arrow { fill: /*[[foreground-color]]*/ !important; }
    #stylus-manage #search-help, #stylus-manage #sorter-help { margin-bottom: 6px; }
    #stylus-manage #filters { border: 1px solid transparent; -webkit-box-ordinal-group: 3; -webkit-order: 2; order: 2; }
    #stylus-manage #filters .filter-selection { -webkit-border-radius: 4px !important; border-radius: 4px !important; }
    #stylus-manage #filters .filter-selection select { height: auto !important; padding: 0 !important; margin-left: 0.5em; }
    #stylus-manage #filters .filter-selection:hover { background-color: rgba(51, 51, 51, 0.2) !important; -webkit-border-radius: 4px !important; border-radius: 4px !important; }
    #stylus-manage #filters #only-updates input { margin-top: 2px; }
    #stylus-manage #filters #only-updates svg { margin-top: 4px; }
    #stylus-manage #filters #only-updates > span { margin-left: 2px; }
    #stylus-manage #filters select:hover { background: transparent; }
    #stylus-manage #filters select:hover + .svg-icon.select-arrow { fill: white !important; }
    #stylus-manage #filters .select-resizer { width: 100%; }
    #stylus-manage #filters .select-resizer > .svg-icon.select-arrow { fill: transparent !important; }
    #stylus-manage #filters #manage\.onlyEnabled\.invert, #stylus-manage #filters #manage\.onlyLocal\.invert, #stylus-manage #filters #manage\.onlyUsercss\.invert { width: 100% !important; }
    #stylus-manage #filters #search-wrapper #search { color: white; }
    #stylus-manage select#manage { padding-top: 0.25em !important; padding-bottom: 0.25em !important; height: auto !important; }
    #stylus-manage .active #filters-stats { background-color: /*[[foreground-color]]*/; color: black; border: none; font-size: 10px; font-weight: 400; padding: 2px 8px; -webkit-border-radius: 4px; border-radius: 4px; margin-bottom: -2px; padding-right: 18px; cursor: default; }
    #stylus-manage a#reset-filters { background-color: transparent; fill: #333; margin: 5px 0 2px -18px; padding: 0; z-index: 1; }
    #stylus-manage #reset-filters svg { width: auto; height: 18px; padding: 2px; fill: #333 !important; }
    #stylus-manage #options > label > svg { margin-top: 4px; }
    #stylus-manage #options > label > input { margin-top: 2px; }
    #stylus-manage #options #newUIoptions label > svg { margin-top: 4px; }
    #stylus-manage #options #newUIoptions label > input { margin-top: 2px; }
    #stylus-manage #options #manage\.newUI\.targets { width: 3.5em; color: white; }
    #stylus-manage #options-buttons { position: relative; margin-top: 1em; margin-bottom: 1em; border-top: solid 1px rgba(38, 254, 250, 0.4); height: 24px; padding-top: 0.5em; }
    #stylus-manage #manage-options-button, #stylus-manage #manage-shortcuts-button, #stylus-manage #find-editor-styles > button { position: absolute; height: 24px !important; width: 24px !important; max-width: none; padding: 0; margin: 0 !important; background-color: transparent; background: none; border: none; color: transparent; text-overflow: clip; cursor: pointer; }
    #stylus-manage #manage-options-button:before, #stylus-manage #manage-shortcuts-button:before, #stylus-manage #find-editor-styles > button:before { color: white; width: 20px; height: 20px; }
    #stylus-manage #manage-options-button:hover, #stylus-manage #manage-shortcuts-button:hover, #stylus-manage #find-editor-styles > button:hover { border: none !important; background: none !important; color: transparent !important; }
    #stylus-manage #manage-options-button { left: 0px; }
    #stylus-manage #manage-options-button::before { content: "\f013"; font-weight: 400; font-size: 20px; }
    #stylus-manage #manage-shortcuts-button { left: 34px; }
    #stylus-manage #manage-shortcuts-button::before { content: "\f11c"; font-weight: 400; font-size: 20px; }
    #stylus-manage #find-editor-styles > button { left: 72px; }
    #stylus-manage #find-editor-styles > button::before { content: "\f53f"; font-weight: 400; font-size: 20px; }
    #stylus-manage #options-buttons button, #stylus-manage #backup-buttons button { margin: 0 0.5rem 0.5rem 0; }
    #stylus-manage #backup { padding-bottom: -webkit-calc(120px + 6em); padding-bottom: calc(120px + 6em); }
    @media screen and (min--moz-device-pixel-ratio: 0) { #stylus-manage #backup { padding-bottom: -webkit-calc(120px + 7em); padding-bottom: calc(120px + 7em); } }
    @media screen and (max-width: 850px) { #stylus-manage #backup { padding-bottom: 1em; } }
    #stylus-manage #backup #backup-message { color: white; }
    #stylus-manage #manage-text { display: block; position: fixed; bottom: 0; width: var(--header-width); margin: 0; margin-left: -16px; padding: 0 !important; padding-bottom: 1em !important; text-align: center; -webkit-box-shadow: 0 -2px 8px -2px rgba(0, 0, 0, 0.2); box-shadow: 0 -2px 8px -2px rgba(0, 0, 0, 0.2); z-index: 10; }
    @media screen and (max-width: 498px) { #stylus-manage #manage-text { display: none; } }
    #stylus-manage #manage-text > :not(:last-child):after { content: '\2022'; margin: 0 0 0 0.5em; font-size: 0.8em; }
    #stylus-manage #manage-text::before { content: ''; display: block; width: 120px; height: 120px; margin: 2em auto; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' width='96' height='96' viewBox='0 0 33.867 33.77'%3E%3Cstyle%3E.text%7Bfill:%2326fefa%7D%3C/style%3E%3Cdefs%3E%3ClinearGradient id='a'%3E%3Cstop offset='0' stop-opacity='0'/%3E%3Cstop offset='1'/%3E%3C/linearGradient%3E%3CradialGradient xlink:href='%23a' id='shadow-gradient' gradientUnits='userSpaceOnUse' gradientTransform='matrix(.01072 4.49284 -4.03205 .00962 262.18 -395.695)' cx='97.152' cy='41.187' fx='97.152' fy='41.187' r='20.54'/%3E%3C/defs%3E%3Cpath id='background' d='M16.933 1.385l-10.044.01c-2.029.007-3.164.97-3.164 3.793l-.003 5.963c-.07 4.317.335 4.938-2.158 4.955l-.012.779.012.779c2.493.016 2.088.637 2.158 4.955l.003 5.963c0 2.822 1.135 3.786 3.164 3.792l10.044.01 10.044-.01c2.03-.006 3.164-.97 3.165-3.792l.002-5.963c.07-4.318-.334-4.939 2.159-4.955l.012-.78-.012-.778c-2.493-.017-2.089-.638-2.159-4.955l-.002-5.963c0-2.823-1.136-3.786-3.165-3.793z' fill='%2300352d'/%3E%3Cpath id='background-shadow' transform='translate(-55.82 -13.959) scale(.74886)' d='M97.151 20.49l-13.412.014c-2.71.008-4.225 1.295-4.226 5.064l-.003 7.962c-.093 5.766.447 6.595-2.882 6.617l-.016 1.04.016 1.04c3.329.023 2.789.852 2.882 6.618l.003 7.962c.001 3.769 1.517 5.056 4.226 5.064l13.412.015 13.413-.015c2.71-.008 4.225-1.295 4.226-5.064l.003-7.962c.093-5.766-.446-6.595 2.883-6.618l.016-1.04-.016-1.04c-3.33-.022-2.79-.851-2.883-6.617l-.003-7.962c0-3.77-1.517-5.056-4.226-5.064z' fill='url(%23shadow-gradient)'/%3E%3Cpath id='shape' class='text' d='M25.526 21.953c0 2.258-1.003 4.5-2.64 5.8-1.625 1.3-3.892 1.95-6.8 1.95-2.678 0-5.344-.82-7.404-1.824l1.13-4.562c2.777 1.115 8.859 2.862 10.032-.6.553-2.724-3.1-3.439-4.598-4.15-3.325-1.453-6.244-3.652-6.27-7.165.258-7.637 9.853-8.441 15.551-6.203L23.365 9.69c-4.062-1.627-8.376-1.293-8.57.912-.12 1.355-.27 1.952 5.506 4.252 2.914 1.326 5.396 2.85 5.225 7.098z'/%3E%3Cpath id='braces' class='text' d='M6.23 0C5.055 0 3.9.242 2.878 1.467c-.827.991-.735 2.469-.758 4.426-.034 2.978.058 6.207-.07 9.104 0 0-1.21-.006-2.05.02l.014 1.868L0 18.753c.84.026 2.05.02 2.05.02.128 2.897.036 6.125.07 9.104.023 1.957-.069 3.434.758 4.426 1.02 1.224 2.177 1.467 3.352 1.467l10.703-.017 10.704.017c1.175 0 2.331-.243 3.352-1.467.827-.992.735-2.47.757-4.426.035-2.979-.057-6.207.07-9.105 0 0 1.211.007 2.05-.019l-.013-1.868.014-1.869c-.84-.025-2.05-.019-2.05-.019-.128-2.897-.036-6.126-.07-9.104-.023-1.957.069-3.435-.758-4.426C29.97.242 28.812 0 27.637 0L16.933.017zm10.703 1.385l10.045.01c2.028.007 3.163.97 3.164 3.793l.003 5.963c.07 4.317-.335 4.938 2.158 4.955l.012.779-.012.779c-2.493.016-2.089.637-2.158 4.955l-.003 5.963c0 2.822-1.136 3.786-3.164 3.792l-10.045.01-10.044-.01c-2.029-.006-3.163-.97-3.164-3.792l-.003-5.963c-.07-4.318.335-4.939-2.158-4.955l-.012-.78.012-.778c2.493-.017 2.089-.638 2.158-4.955l.003-5.963c0-2.823 1.135-3.786 3.164-3.793z'/%3E%3C/svg%3E"); background-repeat: no-repeat; -webkit-box-shadow: inset 0 0 2px 2px rgba(0, 0, 0, 0.2); box-shadow: inset 0 0 2px 2px rgba(0, 0, 0, 0.2); background-position: 12px 10px; }
    #stylus-manage #manage-text a { color: /*[[foreground-color]]*/; }
    @media screen and (min--moz-device-pixel-ratio: 0) { #stylus-manage #manage-text { display: -webkit-box; display: -webkit-flex; display: flex; -webkit-box-sizing: border-box; box-sizing: border-box; height: -webkit-calc(120px + 4em); height: calc(120px + 4em); width: -webkit-calc(var(--header-width) - 32px); width: calc(var(--header-width) - 32px); padding: 2em 2em !important; -webkit-border-top-right-radius: 40px; border-top-right-radius: 40px; -webkit-box-orient: vertical; -webkit-box-direction: normal; -webkit-flex-flow: column wrap; flex-flow: column wrap; -webkit-box-pack: end; -webkit-justify-content: flex-end; justify-content: flex-end; }
    #stylus-manage #manage-text::before { margin: 0 !important; }
    #stylus-manage #manage-text > span { display: inline-block; margin-top: 0.5em; }
    #stylus-manage #manage-text > span:last-child { margin-bottom: 12px; }
    #stylus-manage #manage-text > span::after { content: '' !important; } }
    #stylus-edit #name { color: /*[[foreground-color]]*/; text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5); }
    #stylus-edit #editor\.tabSize { color: white; }
    #stylus-edit #options-wrapper .option > label > svg { margin-top: 4px; }
    #stylus-edit #options-wrapper .option > label > input { margin-top: 2px; }
    #stylus-options { margin: 0 auto; background-color: #333; letter-spacing: 0; }
    #stylus-options #options { background-color: #333; }
    #stylus-options input { -webkit-border-radius: 0; border-radius: 0; background-color: transparent !important; border: none !important; margin-bottom: 0; }
    #stylus-options input[type='number'] { background-color: rgba(51, 51, 51, 0.2) !important; border: 1px solid rgba(38, 254, 250, 0.4) !important; color: white; }
    #stylus-options input[type='radio'] { padding: 0; height: 13px !important; background-color: transparent !important; -webkit-border-radius: 50%; border-radius: 50%; border: 1px solid rgba(38, 254, 250, 0.4) !important; }
    #stylus-options input[type='radio']:checked::after { background-color: /*[[foreground-color]]*/ !important; }
    #stylus-options .onoffswitch input:checked + span::before { background-color: #2c9d9b; }
    #stylus-options button { background-color: rgba(51, 51, 51, 0.2) !important; border-color: rgba(38, 254, 250, 0.8) !important; color: rgba(38, 254, 250, 0.8) !important; -webkit-transition: all 200ms ease-in-out; transition: all 200ms ease-in-out; }
    #stylus-options button:hover { background-color: rgba(51, 51, 51, 0.4) !important; color: rgba(38, 254, 250, 0.8) !important; }
    #stylus-options .block { border-bottom: 1px dotted rgba(38, 254, 250, 0.2); }
    #stylus-options .block:nth-last-child(2) { border-bottom: 1px solid rgba(38, 254, 250, 0.2); }
    #stylus-options .block:last-child { border-bottom: none; }
    #stylus-popup { background-color: #333; }
    #stylus-popup #installed { background-color: #333; padding: 0; -webkit-box-shadow: none; box-shadow: none; }
    #stylus-popup #installed .entry { background-color: #333; color: /*[[foreground-color]]*/; }
    #stylus-popup #installed .entry label { color: /*[[foreground-color]]*/; }
    #stylus-popup #installed .entry:nth-child(even) { background: none !important; background-image: -webkit-gradient(linear, left top, right top, from(rgba(170, 170, 170, 0.2)), color-stop(70%, rgba(51, 51, 51, 0.2)), color-stop(90%, rgba(17, 17, 17, 0.1)), to(transparent)) !important; background-image: -webkit-linear-gradient(left, rgba(170, 170, 170, 0.2), rgba(51, 51, 51, 0.2) 70%, rgba(17, 17, 17, 0.1) 90%, transparent 100%) !important; background-image: linear-gradient(to right, rgba(170, 170, 170, 0.2), rgba(51, 51, 51, 0.2) 70%, rgba(17, 17, 17, 0.1) 90%, transparent 100%) !important; }
    #stylus-popup > .actions { margin: 0 !important; padding: 0 var(--outer-padding); background-color: #333; position: relative; }
    #stylus-popup > .actions a { color: /*[[foreground-color]]*/; }
    #stylus-popup > .actions label > input[type='checkbox'] { margin-top: 2px; }
    #stylus-popup > .actions label .svg-icon.checked { margin-top: 4px; }
    #stylus-popup > .actions #disable-all-wrapper::after { content: ''; display: inline-block; position: absolute; right: 2em; top: 2em; width: 48px; height: 48px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' width='48' height='48' viewBox='0 0 33.867 33.77'%3E%3Cstyle%3E.text%7Bfill:%2326fefa%7D%3C/style%3E%3Cdefs%3E%3ClinearGradient id='a'%3E%3Cstop offset='0' stop-opacity='0'/%3E%3Cstop offset='1'/%3E%3C/linearGradient%3E%3CradialGradient xlink:href='%23a' id='shadow-gradient' gradientUnits='userSpaceOnUse' gradientTransform='matrix(.01072 4.49284 -4.03205 .00962 262.18 -395.695)' cx='97.152' cy='41.187' fx='97.152' fy='41.187' r='20.54'/%3E%3C/defs%3E%3Cpath id='background' d='M16.933 1.385l-10.044.01c-2.029.007-3.164.97-3.164 3.793l-.003 5.963c-.07 4.317.335 4.938-2.158 4.955l-.012.779.012.779c2.493.016 2.088.637 2.158 4.955l.003 5.963c0 2.822 1.135 3.786 3.164 3.792l10.044.01 10.044-.01c2.03-.006 3.164-.97 3.165-3.792l.002-5.963c.07-4.318-.334-4.939 2.159-4.955l.012-.78-.012-.778c-2.493-.017-2.089-.638-2.159-4.955l-.002-5.963c0-2.823-1.136-3.786-3.165-3.793z' fill='%2300352d'/%3E%3Cpath id='background-shadow' transform='translate(-55.82 -13.959) scale(.74886)' d='M97.151 20.49l-13.412.014c-2.71.008-4.225 1.295-4.226 5.064l-.003 7.962c-.093 5.766.447 6.595-2.882 6.617l-.016 1.04.016 1.04c3.329.023 2.789.852 2.882 6.618l.003 7.962c.001 3.769 1.517 5.056 4.226 5.064l13.412.015 13.413-.015c2.71-.008 4.225-1.295 4.226-5.064l.003-7.962c.093-5.766-.446-6.595 2.883-6.618l.016-1.04-.016-1.04c-3.33-.022-2.79-.851-2.883-6.617l-.003-7.962c0-3.77-1.517-5.056-4.226-5.064z' fill='url(%23shadow-gradient)'/%3E%3Cpath id='shape' class='text' d='M25.526 21.953c0 2.258-1.003 4.5-2.64 5.8-1.625 1.3-3.892 1.95-6.8 1.95-2.678 0-5.344-.82-7.404-1.824l1.13-4.562c2.777 1.115 8.859 2.862 10.032-.6.553-2.724-3.1-3.439-4.598-4.15-3.325-1.453-6.244-3.652-6.27-7.165.258-7.637 9.853-8.441 15.551-6.203L23.365 9.69c-4.062-1.627-8.376-1.293-8.57.912-.12 1.355-.27 1.952 5.506 4.252 2.914 1.326 5.396 2.85 5.225 7.098z'/%3E%3Cpath id='braces' class='text' d='M6.23 0C5.055 0 3.9.242 2.878 1.467c-.827.991-.735 2.469-.758 4.426-.034 2.978.058 6.207-.07 9.104 0 0-1.21-.006-2.05.02l.014 1.868L0 18.753c.84.026 2.05.02 2.05.02.128 2.897.036 6.125.07 9.104.023 1.957-.069 3.434.758 4.426 1.02 1.224 2.177 1.467 3.352 1.467l10.703-.017 10.704.017c1.175 0 2.331-.243 3.352-1.467.827-.992.735-2.47.757-4.426.035-2.979-.057-6.207.07-9.105 0 0 1.211.007 2.05-.019l-.013-1.868.014-1.869c-.84-.025-2.05-.019-2.05-.019-.128-2.897-.036-6.126-.07-9.104-.023-1.957.069-3.435-.758-4.426C29.97.242 28.812 0 27.637 0L16.933.017zm10.703 1.385l10.045.01c2.028.007 3.163.97 3.164 3.793l.003 5.963c.07 4.317-.335 4.938 2.158 4.955l.012.779-.012.779c-2.493.016-2.089.637-2.158 4.955l-.003 5.963c0 2.822-1.136 3.786-3.164 3.792l-10.045.01-10.044-.01c-2.029-.006-3.163-.97-3.164-3.792l-.003-5.963c-.07-4.318.335-4.939-2.158-4.955l-.012-.78.012-.778c2.493-.017 2.089-.638 2.158-4.955l.003-5.963c0-2.823 1.135-3.786 3.164-3.793z'/%3E%3C/svg%3E"); }
    #stylus-popup > .actions #find-styles-link[title=''] { color: transparent; position: relative; }
    #stylus-popup > .actions #find-styles-link[title='']::after { content: 'Find more styles...'; display: inline-block; position: absolute; color: /*[[foreground-color]]*/; text-decoration: underline; top: 0; left: 0; }
    #stylus-popup > .actions #write-style-for { color: white !important; }
    #stylus-popup > .actions #popup-options button { background-color: rgba(51, 51, 51, 0.2) !important; border-color: rgba(38, 254, 250, 0.8) !important; color: rgba(38, 254, 250, 0.8) !important; -webkit-transition: all 200ms ease-in-out; transition: all 200ms ease-in-out; }
    #stylus-popup > .actions #popup-options button:hover { background-color: rgba(51, 51, 51, 0.4) !important; color: rgba(38, 254, 250, 0.8) !important; }
    #stylus-popup > .actions .svg-icon.checked { fill: /*[[foreground-color]]*/ !important; }
    #stylus-popup #search-results { padding: 8px; margin: 0 !important; background-color: #333; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='4' height='4' viewBox='0 0 4 4'%3E%3Cpath fill='%2326FEFA' fill-opacity='0.1' d='M1 3h1v1H1V3zm2-2h1v1H3V1z'%3E%3C/path%3E%3C/svg%3E"); -webkit-box-shadow: inset 0 0 2px 2px rgba(0, 0, 0, 0.2); box-shadow: inset 0 0 2px 2px rgba(0, 0, 0, 0.2); }
    #stylus-popup #search-results .search-result { background-color: #2d7070; color: rgba(38, 254, 250, 0.8); }
    #stylus-popup #search-results .search-result .search-result-title { color: #eee; }
    #stylus-popup #search-results .search-result .search-result-meta { -webkit-box-sizing: border-box; box-sizing: border-box; padding: 2px; background-color: #333; font-size: 9px; }
    #stylus-popup #search-results .search-result .search-result-description { font-style: italic; color: #ccc; }
    #stylus-popup #search-results .search-results-nav button { padding: 0.1em 0.2em 0.1em 0.3em; -webkit-border-radius: 50%; border-radius: 50%; }
    #stylus-popup #search-results .search-results-nav button:hover { border: none !important; }
    #message-box #message-box-title { background-color: #2d7070; }
    #message-box svg#sections-help { fill: white; }
    #message-box #message-box-contents { color: #333; }
    #message-box #message-box-buttons button { height: auto !important; padding: 0.25em 2em; background-color: transparent !important; border-color: #777 !important; color: #333 !important; }
    #message-box #message-box-buttons button:hover { background-color: rgba(0, 0, 0, 0.1) !important; border-color: #333 !important; color: #000 !important; }
    #message-box #message-box-buttons label { color: #333; }
    #message-box #message-box-buttons input[type='checkbox'] { color: #333; border-color: #333 !important; background-color: transparent !important; }
    #help-popup { color: #333; background-color: white; }
    #help-popup a { color: #2d7070; }
    #help-popup .title { color: white; background-color: #2d7070; }
    #help-popup svg#sections-help { fill: white; }
    #help-popup .keymap-list { color: #333; }
    #help-popup .keymap-list input { background-color: #2d7070 !important; color: white !important; font-weight: 400; }
    #help-popup .keymap-list tr:nth-child(odd) { background-color: rgba(51, 51, 51, 0.2); }
    #help-popup details { color: #333 !important; }
    #help-popup .beautify-options label { color: #333; }
    #help-popup .beautify-options select { color: #333; background: none; background-color: rgba(0, 0, 0, 0.1); border: none; }
    #help-popup .beautify-options select:hover { background-color: rgba(0, 0, 0, 0.2) !important; border: none; color: #000 !important; }
    #help-popup .beautify-options select option { background-color: rgba(0, 0, 0, 0.1); border: none; }
    #help-popup .beautify-options .svg-icon.select-arrow { fill: #777; }
    #help-popup .beautify-options .svg-icon.checked { margin-top: 4px; fill: #333; }
    #help-popup .beautify-options input[type='checkbox'] { margin-top: 2px; background-color: transparent !important; border: 1px solid #333 !important; }
    #help-popup button { height: auto; padding: 0.25em 2em; border-color: #777; color: #333; }
    #help-popup button:hover { background-color: rgba(0, 0, 0, 0.1) !important; border-color: #333 !important; color: #000 !important; }
    #help-popup.big { background-color: #333; }
    #help-popup.big a { color: /*[[foreground-color]]*/; }
    #help-popup.big button { background-color: rgba(51, 51, 51, 0.2) !important; border-color: rgba(38, 254, 250, 0.8) !important; color: rgba(38, 254, 250, 0.8) !important; -webkit-transition: all 200ms ease-in-out; transition: all 200ms ease-in-out; }
    #help-popup.big button:hover:not(:disabled) { background-color: rgba(51, 51, 51, 0.4) !important; color: rgba(38, 254, 250, 0.8) !important; }
    #help-popup.big svg#sections-help { fill: white; }
    #backup-buttons .dropdown-content { background-color: #333 !important; }
    #backup-buttons .dropdown-content a { color: /*[[foreground-color]]*/ !important; }
    #backup-buttons .dropdown:hover .dropbtn,
    #backup-buttons .dropdown-content a:hover { background-color: #555 !important; }
    #stylus-manage #backup-buttons button { color: /*[[foreground-color]]*/ !important; }
    #stylus-manage #manage-options-button::before, #stylus-manage #manage-shortcuts-button::before, #stylus-manage #find-editor-styles > button::before { color: /*[[foreground-color]]*/ !important; }
    .non-windows #message-box-buttons, #message-box > div { background-color: #333 !important; }
    #message-box #message-box-buttons button, #message-box #message-box-contents { color: /*[[foreground-color]]*/ !important; }
    #message-box #message-box-buttons button:hover { text-shadow: 0 0 2px /*[[foreground-color]]*/; border-color: /*[[foreground-color]]*/ !important; }
    /* fix search textarea */
    #search-replace-dialog textarea {
        cursor: auto;
        min-height: 3em !important;
    }
    #search-replace-dialog [data-type="hover"] {
        bottom: unset !important;
        top: 5px !important;
    }
}