repositories

NixDaemon

NixOS pentest workstation as one flake — IceBreaker's successor

clonegit clone https://git.daemon-sec.xyz/NixDaemon.git
shy-interactive.cssCSS643 lines27.6 KiBraw download
/*== ShyFox Interactive =============================================================================

Every button, control and focus state in the browser chrome. ShyFox itself only moves panels around;
this is the file that decides how the things inside them answer back.

One system, four states, built from shy-tokens.css and nothing else:

  rest      no fill at all -- a quiet panel has to stay quiet
  hover     --shy-hover-tint,  --shy-dur-fast
  pressed   --shy-active-tint, plus a 90ms scale-down of the icon
  open      --shy-accent-tint and an accent icon; never chrome text on a solid accent fill

Keyboard focus is one accent outline everywhere. It is drawn with `outline`, which occupies no space,
so no ring can shift a control or push a panel wider. shy-navbar.css and shy-toolbar.css reveal a
hidden panel from `:has(... :focus-visible)`, so nothing here may suppress a focus ring.

Switch the whole polish layer off with `shyfox.disable.polish`, the backdrop blur alone with
`shyfox.disable.blur`.

===================================================================================================*/

@media not -moz-pref("shyfox.disable.polish") {

/*

--- LOCAL TOKENS -----------------------------------------------------------------------------------

The few values shy-tokens.css does not already carry. Everything else in this file comes from there.

*/

:root {
  /* press feedback. Applied with `transform`, not `scale`, so it multiplies with any resting
     `scale` ShyFox has already put on an icon (shy-toolbar.css gives #unified-extensions-button
     0.88) instead of replacing it. */
  --shy-press-scale: 0.94;
  --shy-press-dur: 90ms;

  /* one focus ring for the whole chrome. The offset is deliberately small: the right-hand strip is
     only --toolbar-button-wdt wide, and a wider ring would spill past the panel edge. */
  --shy-ring-width: 2px;
  --shy-ring-offset: 2px;
  --shy-focus-outline: var(--shy-ring-width) solid var(--shy-accent-line);

  /* Close is the only destructive control in the chrome, so it is the only one that gets a solid
     plate with the toolbar colour lifted back out of it -- every other button stays a translucent
     tint. The accent is reserved for highlights and a literal red would not be a theme colour, so
     the emphasis comes from weight rather than hue. Override this pair to make close red. */
  --shy-close-tint: color-mix(in srgb, var(--bt-col) 78%, transparent);
  --shy-close-fg: var(--tb-col);
}

/* Firefox paints toolbar button feedback on the icon/text/badge box rather than on the button, and
   reads the fill from these variables. Re-pointing them gives every toolbar button, bookmark item
   and panel button the same rest and hover in one place. Both spellings are set: Gecko 155 renamed
   the --toolbarbutton-* family and added the --button-*-menu-* alias tier over --button-*-ghost-*. */
:root {
  --toolbarbutton-hover-background:        var(--shy-hover-tint)  !important;  /* 140 */
  --toolbarbutton-active-background:       var(--shy-active-tint) !important;  /* 140 */
  --toolbarbutton-background-color-hover:  var(--shy-hover-tint)  !important;  /* 155 */
  --toolbarbutton-background-color-active: var(--shy-active-tint) !important;  /* 155 */

  --button-background-color-ghost-hover:   var(--shy-hover-tint)  !important;  /* both */
  --button-background-color-ghost-active:  var(--shy-active-tint) !important;
  --button-background-color-menu-hover:    var(--shy-hover-tint)  !important;  /* 155 only */
  --button-background-color-menu-active:   var(--shy-active-tint) !important;

  /* every hairline the chrome draws for itself */
  --toolbarseparator-color: var(--shy-hairline-strong) !important;
  --panel-separator-color:  var(--shy-hairline) !important;
}

/*

--- TOOLBAR BUTTONS --------------------------------------------------------------------------------

Navigation bar, right-hand vertical strip, bookmarks toolbar and everything inside a panel.

*/

/* one timing for the whole system: colour on the fast curve, the press on its own 90ms curve */
#navigator-toolbox :is(.toolbarbutton-1, toolbarbutton.bookmark-item),
:is(panelview, .panel-subview-body, #widget-overflow, #customizationui-widget-panel)
  :is(.toolbarbutton-1, .subviewbutton) {
  transition:
    background-color var(--shy-dur-fast) var(--shy-ease),
    color var(--shy-dur-fast) var(--shy-ease) !important;

  & > :is(.toolbarbutton-icon, .toolbarbutton-text, .toolbarbutton-badge-stack) {
    transition:
      background-color var(--shy-dur-fast) var(--shy-ease),
      outline-color var(--shy-dur-fast) var(--shy-ease),
      transform var(--shy-press-dur) var(--shy-ease-in-out) !important;
  }
}

/* pressed: the icon sinks a little and springs straight back. `transform` composes with the
   individual `scale` property instead of overwriting it, which is what keeps the already-shrunk
   extensions button the right size while it is held down. */
#navigator-toolbox :is(.toolbarbutton-1, toolbarbutton.bookmark-item):not([disabled]):hover:active
  > :is(.toolbarbutton-icon, .toolbarbutton-text, .toolbarbutton-badge-stack),
:is(panelview, .panel-subview-body, #widget-overflow, #customizationui-widget-panel)
  :is(.toolbarbutton-1, .subviewbutton):not([disabled]):hover:active
  > :is(.toolbarbutton-icon, .toolbarbutton-text, .toolbarbutton-badge-stack) {
  transform: scale(var(--shy-press-scale)) !important;
}

/* open or checked: an accent tint under the icon and the icon itself in the accent. The fill stays
   a 20% tint on purpose -- the accent is the user's and its luminance is unknown, so no chrome text
   or glyph is ever placed on a solid accent plate. */
#navigator-toolbox .toolbarbutton-1:is([open], [checked]):not([disabled]),
:is(panelview, .panel-subview-body, #widget-overflow, #customizationui-widget-panel)
  :is(.toolbarbutton-1, .subviewbutton):is([open], [checked]):not([disabled]) {
  color: var(--shy-color) !important;

  & > :is(.toolbarbutton-icon, .toolbarbutton-text, .toolbarbutton-badge-stack) {
    background-color: var(--shy-accent-tint) !important;
  }
}

/* a disabled button never lights up, whatever the pointer does */
#navigator-toolbox :is(.toolbarbutton-1, toolbarbutton.bookmark-item)[disabled]
  > :is(.toolbarbutton-icon, .toolbarbutton-text, .toolbarbutton-badge-stack) {
  background-color: transparent !important;
  transform: none !important;
}

/*

--- KEYBOARD FOCUS ---------------------------------------------------------------------------------

Two hidden panels are revealed by `:has(... :focus-visible)`, so a ring here is load-bearing and not
decoration. Every ring is an `outline`: it takes no layout space, so it can never change the address
field's rect or widen the right-hand strip.

*/

/* toolbar and panel buttons wear the ring on the painted box, which is where Firefox puts it too */
#navigator-toolbox .toolbarbutton-1:focus-visible
  > :is(.toolbarbutton-icon, .toolbarbutton-text, .toolbarbutton-badge-stack),
:is(panelview, .panel-subview-body, #widget-overflow, #customizationui-widget-panel)
  :is(.toolbarbutton-1, .subviewbutton):focus-visible
  > :is(.toolbarbutton-icon, .toolbarbutton-text, .toolbarbutton-badge-stack) {
  outline: var(--shy-focus-outline) !important;
  outline-offset: var(--shy-ring-offset) !important;
}

/* Everything else that can take focus wears it on itself. No #main-window anchor here on purpose:
   modal dialogs load their own chrome document, and their buttons need the same ring. */
:is(
  button,
  checkbox,
  radio,
  menulist,
  richlistitem,
  toolbarbutton.bookmark-item,
  .close-icon,
  search-textbox,
  textarea,
  select,
  input:not(#urlbar-input, .urlbar-input)
):focus-visible {
  outline: var(--shy-focus-outline) !important;
  outline-offset: var(--shy-ring-offset) !important;
}

/* the window-control container is `overflow: clip`, so its ring has to sit inside the box */
#main-window .titlebar-button:focus-visible {
  outline: var(--shy-focus-outline) !important;
  outline-offset: calc(-1 * var(--shy-ring-width)) !important;
}

/*

--- BOOKMARKS --------------------------------------------------------------------------------------

Items on the places toolbar paint on the button itself; items in a bookmarks menu are menuitems and
answer to [_moz-menuactive] rather than :hover. Both end up in the same three states.

*/

/* places toolbar: hover and press arrive through the shared variables, open takes the accent */
#main-window toolbarbutton.bookmark-item:not(.subviewbutton):is([open], [open="true"]) {
  background-color: var(--shy-accent-tint) !important;
  box-shadow: inset 2px 0 0 var(--shy-color) !important;
}

/* bookmarks menus and the bookmarks-menu popup. shy-global.css hands these popups a
   --panel-item-hover-bgcolor that no longer exists in Gecko 140 or 155, so the hover fill resolves
   to nothing; this restores it for bookmark rows out of the token scale. */
#main-window menupopup :is(menu, menuitem).bookmark-item[_moz-menuactive]:not([disabled],
  [disabled="true"]) {
  background-color: var(--shy-hover-tint) !important;
  color: var(--bt-col) !important;
}

#main-window menupopup :is(menu, menuitem).bookmark-item:is([open], [open="true"]) {
  background-color: var(--shy-accent-tint) !important;
  color: var(--bt-col) !important;
}

/* the folder chevron and the overflow arrow are buttons, not bookmarks; keep them on the same
   press feedback as the rest of the toolbar */
#main-window :is(#PlacesChevron, #OtherBookmarks):not([disabled]):hover:active
  > :is(.toolbarbutton-icon, .toolbarbutton-text, .toolbarbutton-badge-stack) {
  transform: scale(var(--shy-press-scale)) !important;
}

/*

--- WINDOW CONTROLS --------------------------------------------------------------------------------

shy-controls.css draws its own round GTK buttons unless `shyfox.force.native.controls` is on, in
which case each button is an `appearance: -moz-window-button-*` native widget. Only the drawn branch
is restyled here; the native branch keeps its focus ring and nothing else.

*/

@media (-moz-gtk-csd-available) {
  @media not -moz-pref("shyfox.force.native.controls") {

    /* the icon plate is what shy-controls.css paints, so the states go there */
    #main-window .titlebar-button .toolbarbutton-icon {
      transition:
        background-color var(--shy-dur-fast) var(--shy-ease),
        transform var(--shy-press-dur) var(--shy-ease-in-out) !important;
    }

    /* minimise, maximise and restore join the ordinary button system */
    #main-window .titlebar-button:is(.titlebar-min, .titlebar-max, .titlebar-restore):hover
      .toolbarbutton-icon {
      background-color: var(--shy-hover-tint) !important;
    }

    #main-window .titlebar-button:is(.titlebar-min, .titlebar-max, .titlebar-restore):hover:active
      .toolbarbutton-icon {
      background-color: var(--shy-active-tint) !important;
      transform: scale(var(--shy-press-scale)) !important;
    }

    /* close is the exception: a solid plate with the toolbar colour lifted back out of the glyph,
       which reads as destructive without guessing at a red the palette never defined */
    #main-window .titlebar-button.titlebar-close:hover .toolbarbutton-icon {
      background-color: var(--shy-close-tint) !important;
      fill: var(--shy-close-fg) !important;
      color: var(--shy-close-fg) !important;
    }

    #main-window .titlebar-button.titlebar-close:hover:active .toolbarbutton-icon {
      background-color: var(--bt-col) !important;
      transform: scale(var(--shy-press-scale)) !important;
    }
  }
}

/*

--- BADGES, ATTENTION AND DOWNLOADS ----------------------------------------------------------------

Everything that asks for attention uses the same accent. Dots and rings, which carry no text, are
solid accent; anything with a number in it is an accent tint plus an accent hairline, because the
digits have to stay readable against an accent of unknown luminance.

*/

/* every attention dot in the chrome, under both the 140 and the 155 variable names */
:root {
  --attention-dot-color:            var(--shy-color) !important;  /* 140 */
  --tab-attention-dot-color:        var(--shy-color) !important;  /* 155 */
  --button-attention-dot-color:     var(--shy-color) !important;  /* 155 toolkit */
  --uei-button-attention-dot-color: var(--shy-color) !important;  /* both */
  --panel-banner-item-update-supported-bgcolor: var(--shy-color) !important;
}

/* The counted badge -- extension counts and the like. Gecko 140 hard-codes #d90000 with white text
   and 155 embosses it; both become a flat accent chip whose digits stay on the theme's own text
   colour, because an accent of unknown luminance cannot be trusted behind text. The two badges that
   are really icons, not counts, are left alone: they carry no text and are recoloured below. */
#main-window .toolbarbutton-badge:not(
  .feature-callout,
  #PanelUI-menu-button[badge-status] .toolbarbutton-badge,
  #downloads-button[attention] .toolbarbutton-badge
) {
  background-color: var(--shy-accent-tint) !important;
  color: var(--bt-col) !important;
  box-shadow: inset 0 0 0 1px var(--shy-accent-line) !important;
  border-radius: calc(var(--rounding) / 2) !important;
  text-shadow: none !important;
}

/* the "new"/callout badge carries no text, so it can be a solid accent dot */
#main-window .toolbarbutton-badge.feature-callout {
  background: var(--shy-color) !important;
  border-radius: 50% !important;
  box-shadow: none !important;
}

/* downloads: the arrow and its progress ring are already driven by
   --toolbarbutton-icon-fill-attention, which shy-global.css points at the accent. The success and
   info states follow; warning and severe keep their own colours, because those two are the only
   places in the chrome where the colour is the message. */
#main-window #downloads-button[attention="info"]
  > .toolbarbutton-badge-stack > .toolbarbutton-badge {
  fill: var(--shy-color) !important;
}

#main-window #downloads-button[attention="success"] {
  color: var(--shy-color) !important;
}

/* The track the progress arc runs on is a full-strength ring: `1px solid currentColor` in 140, the
   icon fill in the 155 SVG. Both compete with the accent arc drawn over them, so both drop to the
   hairline scale and the arc is the only thing that reads. */
#main-window #downloads-button
  > .toolbarbutton-badge-stack > #downloads-indicator-progress-outer {
  border-color: var(--shy-hairline-strong) !important;  /* 140 */
  fill: var(--shy-hairline-strong) !important;          /* 155 */
}

/*

--- SEPARATORS AND SPRINGS -------------------------------------------------------------------------

*/

/* The right-hand strip styles a spring as a divider. Selector for selector the same as
   shy-toolbar.css so its !important is beaten on order alone; only the colour changes. The 1px
   geometry and the opacity that hides the divider with the panel are both left where they are. */
#main-window:is([titlepreface*="​"], [titlepreface*="‍"]):not([customizing])
  #TabsToolbar-customization-target toolbarspring {
  background-color: var(--shy-hairline-strong) !important;
}

/* A separator draws itself from currentColor through its own ::before, so the colour has to land on
   the element. The variables above already cover the versions that read them; this catches the rest. */
#main-window toolbar toolbarseparator,
#main-window panel toolbarseparator {
  color: var(--shy-hairline-strong) !important;
}

/*

--- FORM CONTROLS ----------------------------------------------------------------------------------

Checkboxes, radios, menulists and the text fields that turn up in chrome panels and dialogs.
The address field is excluded everywhere: shy-floating-search.css already gives it its own outline.

*/

/* Gecko's non-native widget theme reads accent-color and derives the check glyph's colour from the
   accent's own luminance, so this is the one place an accent fill is safe behind a mark. */
:is(checkbox, radio, progress,
  input:is([type="checkbox"], [type="radio"], [type="range"])) {
  accent-color: var(--shy-color) !important;
}

/* Text fields: a quiet hairline at rest, an accent hairline when focused. Only border-color is
   touched, never border-width, so nothing moves when the field takes focus.
   This deliberately overrides shy-global.css's --input-border-color: var(--shy-color), which put an
   accent edge on every field in the chrome whether it was focused or not. */
:is(input, textarea, search-textbox, .textbox-input):not(
  #urlbar-input, .urlbar-input, [type="checkbox"], [type="radio"], [type="range"], [type="color"]) {
  border-color: var(--shy-hairline-strong) !important;
  border-radius: var(--rounding) !important;
  transition: border-color var(--shy-dur-fast) var(--shy-ease) !important;

  &:focus, &:focus-within, &:focus-visible {
    border-color: var(--shy-accent-line) !important;
  }
}

/* dropdowns get the same hairline, and mark themselves open with the accent */
menulist {
  border-color: var(--shy-hairline-strong) !important;
  transition: border-color var(--shy-dur-fast) var(--shy-ease) !important;

  &[open] {border-color: var(--shy-accent-line) !important;}
}

/*

--- TOOLTIPS ---------------------------------------------------------------------------------------

*/

/* A tooltip is an OS-level popup sized to fit-content, so an outer shadow would fall outside its
   own window and never paint. The elevation therefore comes from the material: the popup fill, one
   hairline and a short fade. */
tooltip {
  appearance: none !important;
  -moz-default-appearance: none !important;

  background-color: var(--shy-surface-popup) !important;
  color: var(--bt-col) !important;
  border-color: var(--shy-hairline-strong) !important;
  border-radius: var(--rounding) !important;

  animation: shy-fade-in var(--shy-dur-fast) var(--shy-ease) !important;
}

@media not -moz-pref("shyfox.disable.blur") {
  /* safe here: a tooltip has no position:fixed descendants and is not an ancestor of #urlbar */
  tooltip {
    backdrop-filter: blur(var(--shy-glass-blur)) saturate(var(--shy-glass-saturate)) !important;
  }
}

/*

--- NATIVE FALLBACK TAB STRIP ----------------------------------------------------------------------

shy-sidebar.css shows #tabbrowser-tabs as a horizontal bar across the top when Sidebery is closed.
Its height (--shy-native-tabs-height), position and display are load-bearing and are not touched
here: only the tabs inside it are given a look.

*/

@media not -moz-pref("sidebar.verticalTabs") {
  #main-window:not([chromehidden]:not([chromehidden=""]), [popup-window]):not([customizing], [inDOMFullscreen="true"])
    #tabbrowser-tabs:not([orient="vertical"]) {

    /* the label follows the theme, not the toolbar colour Firefox would pick */
    --tab-selected-textcolor: var(--bt-col) !important;

    /* rest is nothing at all; the strip's own fill shows through */
    .tabbrowser-tab > .tab-stack > .tab-background {
      background-color: transparent !important;
      background-image: none !important;
      box-shadow: none !important;
      transition:
        background-color var(--shy-dur-fast) var(--shy-ease),
        box-shadow var(--shy-dur-fast) var(--shy-ease) !important;
    }

    .tabbrowser-tab:hover:not([selected], [visuallyselected], [multiselected])
      > .tab-stack > .tab-background {
      background-color: var(--shy-hover-tint) !important;
    }

    /* the selected tab is a raised plate with a solid accent bar along its bottom edge. The bar is
       a background-image rather than a border so it costs no layout, and the label sits on the
       plate, never on the accent. */
    .tabbrowser-tab:is([selected], [visuallyselected]) > .tab-stack > .tab-background {
      background-color: var(--shy-selected-tint) !important;
      background-image: linear-gradient(to top, var(--shy-color) 0 2px, transparent 2px) !important;
      box-shadow: var(--shy-elev-1) !important;
    }

    .tabbrowser-tab[multiselected]:not([selected]) > .tab-stack > .tab-background {
      background-color: var(--shy-accent-tint) !important;
    }

    /* keyboard focus in the tab list gets the same ring as everything else */
    &[tablist-has-focus] .tabbrowser-tab.tablist-keyboard-focus > .tab-stack > .tab-background {
      outline: var(--shy-focus-outline) !important;
      outline-offset: calc(-1 * var(--shy-ring-width)) !important;
    }

    /* the close button fades in with the tab. Opacity, not display, so the tab keeps its width and
       the strip's geometry is untouched; pointer-events follow so an invisible button is never
       clickable by accident. */
    .tabbrowser-tab .tab-close-button {
      opacity: 0 !important;
      pointer-events: none !important;
      transition: opacity var(--shy-dur-fast) var(--shy-ease),
                  background-color var(--shy-dur-fast) var(--shy-ease) !important;
    }

    .tabbrowser-tab:is(:hover, [selected], [visuallyselected]) .tab-close-button {
      opacity: 1 !important;
      pointer-events: auto !important;
    }

    .tab-close-button:hover {background-color: var(--shy-hover-tint) !important;}
    .tab-close-button:hover:active {background-color: var(--shy-active-tint) !important;}

    /* a busy tab is the only looping indicator in the strip; give its throbber the accent */
    .tabbrowser-tab[busy] .tab-throbber {color: var(--shy-color) !important;}

    /* a tidy new-tab button: a quiet plus that comes up to full strength under the pointer */
    #tabs-newtab-button {
      color: var(--shy-text-dim) !important;
      transition: color var(--shy-dur-fast) var(--shy-ease),
                  background-color var(--shy-dur-fast) var(--shy-ease) !important;

      &:hover {color: var(--bt-col) !important;}
    }

    /* The strip's own degradation is nested rather than restated at the bottom of the file: these
       selectors carry the whole guard above them, and only a rule with the same guard can undo
       them. */
    @media (prefers-reduced-motion: reduce) {
      .tabbrowser-tab > .tab-stack > .tab-background,
      .tabbrowser-tab .tab-close-button,
      #tabs-newtab-button {
        transition: none !important;
        animation: none !important;
      }
    }

    @media (forced-colors: active) {
      .tabbrowser-tab > .tab-stack > .tab-background {
        box-shadow: none !important;
        background-image: none !important;
      }

      .tabbrowser-tab:is([selected], [visuallyselected]) > .tab-stack > .tab-background {
        background-color: Highlight !important;
        color: HighlightText !important;
      }

      .tabbrowser-tab:hover:not([selected], [visuallyselected], [multiselected])
        > .tab-stack > .tab-background {
        background-color: Canvas !important;
        outline: 1px solid Highlight !important;
        outline-offset: calc(-1 * var(--shy-ring-width)) !important;
      }

      /* a control that only announced itself with a tint has to stay visible without one */
      .tabbrowser-tab .tab-close-button {
        opacity: 1 !important;
        pointer-events: auto !important;
      }
    }
  }
}

/*

--- GRACEFUL DEGRADATION ---------------------------------------------------------------------------

This file is imported after shy-compat.css, so it has to restate both contracts rather than inherit
them. Everything below only undoes what this file added.

*/

@media (prefers-reduced-motion: reduce) {
  #navigator-toolbox :is(.toolbarbutton-1, toolbarbutton.bookmark-item),
  #navigator-toolbox :is(.toolbarbutton-1, toolbarbutton.bookmark-item)
    > :is(.toolbarbutton-icon, .toolbarbutton-text, .toolbarbutton-badge-stack),
  :is(panelview, .panel-subview-body, #widget-overflow, #customizationui-widget-panel)
    :is(.toolbarbutton-1, .subviewbutton),
  :is(panelview, .panel-subview-body, #widget-overflow, #customizationui-widget-panel)
    :is(.toolbarbutton-1, .subviewbutton)
    > :is(.toolbarbutton-icon, .toolbarbutton-text, .toolbarbutton-badge-stack),
  #main-window .titlebar-button .toolbarbutton-icon,
  /* the :not() is here only to match the specificity of the rule it undoes */
  :is(input, textarea, search-textbox, .textbox-input, menulist):not(#urlbar-input, .urlbar-input),
  tooltip {
    transition: none !important;
    animation: none !important;
  }

  /* The press response is motion too: keep the colour change, drop the movement. Every selector
     below repeats the qualifiers of the rule it undoes, so the specificities match exactly and
     source order decides. */
  #navigator-toolbox :is(.toolbarbutton-1, toolbarbutton.bookmark-item):not([disabled]):hover:active
    > :is(.toolbarbutton-icon, .toolbarbutton-text, .toolbarbutton-badge-stack),
  :is(panelview, .panel-subview-body, #widget-overflow, #customizationui-widget-panel)
    :is(.toolbarbutton-1, .subviewbutton):not([disabled]):hover:active
    > :is(.toolbarbutton-icon, .toolbarbutton-text, .toolbarbutton-badge-stack),
  #main-window .titlebar-button:is(.titlebar-min, .titlebar-max, .titlebar-restore,
    .titlebar-close):hover:active .toolbarbutton-icon,
  #main-window :is(#PlacesChevron, #OtherBookmarks):not([disabled]):hover:active
    > :is(.toolbarbutton-icon, .toolbarbutton-text, .toolbarbutton-badge-stack) {
    transform: none !important;
  }
}

@media (forced-colors: active) {
  :root {
    --shy-focus-outline: var(--shy-ring-width) solid Highlight;
    --shy-close-tint: Highlight;
    --shy-close-fg: HighlightText;

    /* a hairline that is only a tint disappears here, so hand the separators a real colour back */
    --toolbarseparator-color: CanvasText !important;
    --panel-separator-color:  CanvasText !important;
  }

  #main-window:is([titlepreface*="​"], [titlepreface*="‍"]):not([customizing])
    #TabsToolbar-customization-target toolbarspring,
  #main-window toolbar toolbarseparator,
  #main-window panel toolbarseparator {
    background-color: CanvasText !important;
    color: CanvasText !important;
  }

  /* no translucency, no blur, no shadows */
  tooltip {
    backdrop-filter: none !important;
    box-shadow: none !important;
    background-color: Canvas !important;
    color: CanvasText !important;
    border-color: CanvasText !important;
    animation: none !important;
  }

  /* the tints collapse to system colours, so the glyph on top of them has to move with them */
  #navigator-toolbox :is(.toolbarbutton-1, toolbarbutton.bookmark-item):not([disabled]):hover
    > :is(.toolbarbutton-icon, .toolbarbutton-text, .toolbarbutton-badge-stack),
  #navigator-toolbox .toolbarbutton-1:is([open], [checked]):not([disabled])
    > :is(.toolbarbutton-icon, .toolbarbutton-text, .toolbarbutton-badge-stack),
  :is(panelview, .panel-subview-body, #widget-overflow, #customizationui-widget-panel)
    :is(.toolbarbutton-1, .subviewbutton):not([disabled]):hover
    > :is(.toolbarbutton-icon, .toolbarbutton-text, .toolbarbutton-badge-stack) {
    background-color: Highlight !important;
    color: HighlightText !important;
  }

  #navigator-toolbox .toolbarbutton-1:is([open], [checked]):not([disabled]) {
    color: HighlightText !important;
  }

  #main-window .toolbarbutton-badge:not(
    .feature-callout,
    #PanelUI-menu-button[badge-status] .toolbarbutton-badge,
    #downloads-button[attention] .toolbarbutton-badge
  ) {
    background-color: Canvas !important;
    color: CanvasText !important;
    box-shadow: inset 0 0 0 1px CanvasText !important;
  }

  #main-window .toolbarbutton-badge.feature-callout {background: Highlight !important;}

  #main-window toolbarbutton.bookmark-item:not(.subviewbutton):is([open], [open="true"]),
  #main-window menupopup :is(menu, menuitem).bookmark-item[_moz-menuactive]:not([disabled],
    [disabled="true"]) {
    background-color: Highlight !important;
    color: HighlightText !important;
    box-shadow: none !important;
  }

  :is(input, textarea, search-textbox, .textbox-input, menulist):not(#urlbar-input, .urlbar-input) {
    border-color: CanvasText !important;
  }

  /* the fallback tab strip drops its translucency in the nested block inside its own guard, where
     the specificities line up */
}

} /* shyfox.disable.polish */