/* Generated by scripts/vendor-aristo from WebSTEP b463c34; edit there, not here. */

/* Aristo Dark, injected unscoped by WSTheme. Kept variable-for-variable
   with the light sheet. */


:root {
  color-scheme: dark;

  --font-family:
    "Source Sans 3", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Where a capital sits against the middle of a line box, for the face above.
       A font's ascent and descent are not symmetric — Source Sans 3 carries
       1.00em above the baseline and 0.41em below, against a 0.71em capital — so
       text centred by its line box reads high, by (descent - ascent + cap) / 2.
       This is that, and anything centring words against something else (a menu
       line's icon) takes it back. A face with other metrics wants another
       number, which is why it is stated beside the family rather than inside a
       component. */
  --label-cap-offset: 0.06em;

  --text-color: #e0dfe0;
  --accent-color: #577d91;
  --opacity-disable: 0.4;
  --focus-ring: #3f6c96;
  --focus-ring-room: 5px;   /* how far a control's ring draws past it, at most: 3px and a 2px offset (a check box's, a spin button's) */

  --caret-color: var(--accent-color);

  --link-color: #8fb2e2;
  --link-color-hover: #a9c6ee;
  --link-color-active: #749bd0;

  --text-selection-background: #476288;

  --table-background: #3a3a3a;
  --alternate-row-color: rgba(255, 255, 255, 0.05);
  --table-grid-color: rgba(255, 255, 255, 0.15);
  --table-border-color: rgba(255, 255, 255, 0.25);
  --table-header-font-size: 16px;

  --view-background: #2f2f2e;

  --light-view-background: #4f4f4f;

  --dark-view-background: #262628;

  --wash-hover: rgba(255, 255, 255, 0.1);
  --wash-press: rgba(255, 255, 255, 0.16);
  --wash-on: rgba(255, 255, 255, 0.22);
  --wash-on-press: rgba(255, 255, 255, 0.3);

  --placeholder-color: #7e7e84;

  /* Intent colours: hover = bg + 12% white, active = bg + 18% black,
     border = bg + 25% black. */

  --default-background-color: #46464b;
  --default-background-color-hover: #515157;
  /* Pressed: clearly darker than the button (black mixed in), as the light
     theme's pressed buttons are clearly darker than theirs. */
  --default-background-color-active: color-mix(
    in srgb,
    var(--default-background-color),
    black 35%
  );
  --default-border-color: #26262a;
  --default-foreground-color: var(--text-color);

  --selected-mark-color: #1d3b4c;

  --checked-mark-color: #284e64;

  --titlebar-background-color: #373042db;
  --titlebar-border-color: #211f26;
  --titlebar-foreground: #e7e2f0;
  --titlebar-button-hover: rgba(255, 255, 255, 0.1);
  --titlebar-button-active: rgba(0, 0, 0, 0.3);

  --loading-indicator-background: #6ea9c4;

  --tab-indicator-background: #8fc0d8;

  --selection-color: var(--focus-ring);

  --selection-foreground: #ffffff;

  --primary-background-color: #82b4ce;
  --primary-background-color-hover: #93c3db;
  --primary-background-color-active: color-mix(
    in srgb,
    var(--primary-background-color),
    black 30%
  );
  --primary-border-color: #62879b;
  --primary-foreground-color: #11242e;

  --danger-background-color: #cc5f5f;
  --danger-background-color-hover: color-mix(
    in srgb,
    var(--danger-background-color),
    white 12%
  );
  --danger-background-color-active: color-mix(
    in srgb,
    var(--danger-background-color),
    black 32%
  );
  --danger-border-color: color-mix(
    in srgb,
    var(--danger-background-color),
    black 25%
  );
  --danger-foreground-color: #ffffff;

  --success-background-color: #629566;
  --success-background-color-hover: color-mix(
    in srgb,
    var(--success-background-color),
    white 12%
  );
  --success-background-color-active: color-mix(
    in srgb,
    var(--success-background-color),
    black 32%
  );
  --success-border-color: color-mix(
    in srgb,
    var(--success-background-color),
    black 25%
  );
  --success-foreground-color: #ffffff;

  --warning-background-color: #d18f36;
  --warning-background-color-hover: color-mix(
    in srgb,
    var(--warning-background-color),
    white 12%
  );
  --warning-background-color-active: color-mix(
    in srgb,
    var(--warning-background-color),
    black 32%
  );
  --warning-border-color: color-mix(
    in srgb,
    var(--warning-background-color),
    black 25%
  );
  --warning-foreground-color: #241503;

  --info-background-color: #3d9be0;
  --info-background-color-hover: color-mix(
    in srgb,
    var(--info-background-color),
    white 12%
  );
  --info-background-color-active: color-mix(
    in srgb,
    var(--info-background-color),
    black 32%
  );
  --info-border-color: color-mix(
    in srgb,
    var(--info-background-color),
    black 25%
  );
  --info-foreground-color: #10242e;

  --inverse-background-color: #e6e6e6;
  --inverse-background-color-hover: #f2f2f2;
  --inverse-background-color-active: #cfcfcf;
  --inverse-border-color: #b4b4b4;
  --inverse-foreground-color: #232326;

  --toolbar-background: #4a4a4a;
  --button-bar-background: #38383e;
  --button-bar-border-color: #211f26;
  --button-bar-divider-color: #29242f;
  --button-bar-button-hover: rgba(231, 226, 240, 0.08);
  --button-bar-button-active: rgba(0, 0, 0, 0.25);
  --button-bar-foreground: #c0c0c0;
  --toolbar-border-color: #2e2e2e;

  --group-border-color: color(srgb 1 1 1 / 0.46);

  --splitter-background: #38383c;
  --splitter-thin-line: var(--default-border-color);
  --splitter-thin-line-active: #5e6166;

  --marker-cell-face: #33333a;
  --marker-bar-color: #c8c8c8;
  --toolbar-foreground: var(--text-color);
  --toolbar-button-background: transparent;
  --toolbar-button-border: transparent;
  --toolbar-button-foreground: #b8b8b8;

  --segmented-glyph: #f0f0f0;

  --segmented-glyph-on: #ffffff;

  --segmented-on-background: #6b6b73;
  --segmented-on-press-background: #7a7a83;
  --toolbar-button-hover: rgba(255, 255, 255, 0.08);
  --toolbar-button-active: rgba(255, 255, 255, 0.16);

  --navbar-separator: #26262a;

  --popover-background: #38383c;
  --popover-border: #17171a;

  --tooltip-background: #eaeaea;
  --tooltip-foreground: #222225;

  --dialog-border: #17171a;
  --dialog-shadow:
    0 16px 36px -10px rgba(0, 0, 0, 0.65), 0 2px 8px -2px rgba(0, 0, 0, 0.5);
  --dialog-backdrop: rgba(0, 0, 0, 0.55);
  --dialog-header-background: #3a3a3f;
  --dialog-header-foreground: var(--text-color);
  --dialog-header-border: #202024;
  --dialog-header-highlight: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  --dialog-header-title-weight: 700;
  --dialog-header-title-align: center;
  --dialog-close-background: #5a5a60;
  --dialog-close-foreground: #f0f0f0;
  --dialog-close-hover: #6a6a71;
  --dialog-close-active: #4a4a4f;

  --sidebar-selected-foreground: #ffffff;
  --sidebar-background: #2e2b33;
  --sidebar-background-gradient-start: #35353a;
  --sidebar-background-gradient-end: #2c2c30;
  --wizard-nav-border: #26262a;
  --wizard-step-color: #a0a0a6;
  --wizard-step-disabled-color: #6d6d73;
  --wizard-step-bullet-background: #5a5a60;
  --wizard-step-current-bullet: #5b7d8e;
  --wizard-step-bullet-foreground: var(--text-color);
  --wizard-step-connector: #5a5a60;
  --wizard-step-completed: #7cae80;
  --wizard-step-current-color: #9cc8de;

  --navitem-active-foreground: #2b2b2e;
  --accordion-divider: #38383c;
  --accordion-header-foreground: #d8d8d8;
  --accordion-header-hover: #313134;
  --box-title-background: var(--view-background);
  --box-title-foreground: #d8d8d8;
  --checkbox-check-color: #313134;
  --checkbox-indicator-background: #3d3d3d;
  --combobox-background: rgb(74, 74, 77);
  --dialog-background: #2b2b2e;
  --error-color: #cc5f5f;
  --field-background: #404040;
  --field-disabled-foreground: #4d4d52;
  --field-error-border: #e09b9b;
  --field-invalid-background: #8f2f2f;
  --field-invalid-border: #b34444;
  --field-placeholder-foreground: #f2f2f2;
  --hrline-background: #2b2b2e;
  --hrline-foreground: #9b9ba1;
  --hrline-rule: #4d4d52;
  --list-empty-foreground: #d8d8d8;
  --menu-active-background: #414146;
  --menu-active-foreground: #ffffff;
  --menu-background: #38383c;
  --menu-border-color: #17171a;
  --menu-foreground: #ececec;   /* as macOS's dark menus' text: near white */
  --menu-separator-color: #505056;
  --outline-focus-border: #38383c;
  --outline-foreground: #c4c4c4;
  --outline-hover-background: #38383c;
  --outline-selected-foreground: #2b2b2e;
  --outline-selected-icon: #c4c4c4;
  --progressbar-track: #414146;
  --progressbar-fill: #81abc1;
  --slider-range-background: #81abc1;
  --radio-indicator-background: #313134;
  --radio-mark-color: #313134;
  --search-icon-fill: #c4c4c4;
  --slider-knob-border: #8a8a92;
  --slider-knob-active: #404043;
  --slider-knob-background: #4b4b4b;
  --slider-knob-hover: #464648;
  --slider-track-background: #414146;
  --snackbar-danger-background: #cc5f5f;
  --snackbar-danger-border: #b34444;
  --snackbar-divider: #414146;
  --snackbar-foreground: #2b2b2e;
  --snackbar-warning-foreground: var(--snackbar-foreground);
  --spinbutton-field-background: var(--field-background);
  --spinner-mask: #2b2b2e;
  --spinner-track: #414146;
  --splitter-hover: #9b9ba1;
  --success-color: #4e7c52;
  --switch-track-background: #43434a;
  --switch-track-border: #5c5c64;
  --switch-knob-background: #6a6a72;
  --switch-knob-border: #9b9ba4;
  --switch-checked-background: #5d8ba3e0;
  --switch-checked-border: #5b93b1;
  --switch-knob-checked-background: #8bb4c9;
  --switch-knob-checked-border: #8bb4c9;
  --tab-selected-foreground: #ababab;
  --tab-separator-color: #4f4f4f;
  --tabbar-background: #3b3b3b;
  --segmented-background: #414146;
  --segmented-separator-color: rgba(255, 255, 255, 0.18);
  --wizard-buttons-border: #414146;
  --secondary-foreground: #f0f0f0;
  --list-divider: #414146;
  --badge-background: #414146;
  --badge-foreground: #d8d8d8;
}


a {
  color: var(--link-color);
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}

a:hover {
  color: var(--link-color-hover);
}

a:active {
  color: var(--link-color-active);
}

a:focus-visible {
  outline: 3px solid var(--focus-ring);
  outline-offset: 1px;
  border-radius: 3px;
}


input,
textarea,
[contenteditable] {
  caret-color: var(--caret-color);
}


::selection {
  background-color: var(--text-selection-background);
  color: #ffffff;
}

::-moz-selection {
  background-color: var(--text-selection-background);
  color: #ffffff;
}

/* Chrome. Each selector is :root plus a doubled class to outscore the
   component's own scoped rule: the sheets load in no dependable order. */

/* Pressed: a small shadow under its top edge, as the light theme's is
   (WSAristoTheme.css), a little darker to show on a dark button; the
   colored buttons too, which have no shadow otherwise. */
:root {
  --button-pressed-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.2);
}


:root .ws-button.ws-button {
  background-image: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}


:root .ws-button.ws-button:active,
:root .ws-button.ws-button.is-active {
  background-image: none;
  box-shadow: var(--button-pressed-shadow);
}


:root .ws-button.ws-button.primary,
:root .ws-button.ws-button.inverse,
:root .ws-button.ws-button.danger {
  background-image: none;
  box-shadow: none;
}


:root .ws-button.ws-button.primary:active,
:root .ws-button.ws-button.primary.is-active,
:root .ws-button.ws-button.inverse:active,
:root .ws-button.ws-button.inverse.is-active,
:root .ws-button.ws-button.danger:active,
:root .ws-button.ws-button.danger.is-active {
  background-image: none;
  box-shadow: var(--button-pressed-shadow);
}

:root .ws-button.ws-button.is-disabled {
  background-image: none;
  box-shadow: none;
}

:root .ws-check-box.ws-check-box.checked > .indicator,
:root .ws-radio.ws-radio.checked > .indicator {
  background: var(--toggle-tint, var(--primary-background-color));
  border-color: var(--toggle-tint, var(--primary-border-color));
}

:root .ws-check-box.ws-check-box:not(.tinted) .check {
  transform: rotate(45deg) translate(calc((var(--toggle-indicator-size, 22px) - 4px) * -4 / 18));
  height: calc((var(--toggle-indicator-size, 22px) - 4px) * 17 / 18);
  width: calc((var(--toggle-indicator-size, 22px) - 4px) * 7 / 18);
  border-bottom-width: calc((var(--toggle-indicator-size, 22px) - 4px) * 4 / 18);
  border-right-width: calc((var(--toggle-indicator-size, 22px) - 4px) * 4 / 18);
  border-color: var(--toggle-tint-mark, #35647e);
}

:root .ws-check-box.ws-check-box.checked:not(.tinted) .check {
  margin-left: calc((var(--toggle-indicator-size, 22px) - 4px) * 10 / 18);
  margin-top: calc((var(--toggle-indicator-size, 22px) - 4px) * -4 / 18);
}

:root .ws-radio.ws-radio.checked > .indicator::before {
  background: var(--toggle-tint-mark, var(--checked-mark-color));
}

:root .ws-check-box.ws-check-box > .indicator,
:root .ws-radio.ws-radio > .indicator {
  background: #3d3d3d;
  border-color: #6e6e75;
}

/* Left to inherit, they'd land on the browser's black inside a dialog. */
:root .ws-check-box.ws-check-box > span,
:root .ws-radio.ws-radio > span {
  color: var(--text-color);
}

:root .ws-text-field.ws-text-field,
:root .ws-text-view.ws-text-view {
  background-color: var(--field-background);
  border-color: #4f4f4f;
  color: var(--text-color);
  box-shadow:
    inset 0 2px 4px -1px rgba(0, 0, 0, 0.28),
    inset 0 0 0 1px rgba(0, 0, 0, 0.12);
}

:root .ws-text-field.ws-text-field:focus-within,
:root .ws-text-view.ws-text-view:focus-within {
  box-shadow:
    inset 0 2px 4px -1px rgba(0, 0, 0, 0.25),
    0 0 5px 1px rgba(63, 108, 150, 0.85);
}

:root .ws-search-field.ws-search-field {
  border-radius: 36px;
}

:root .ws-search-field.ws-search-field > .magnifier,
:root .ws-search-field.ws-search-field > .clear {
  background-color: #bbbbbb;
  opacity: 1;
}

:root .ws-check-box.ws-check-box > .indicator,
:root .ws-radio.ws-radio > .indicator {
  transition: background-color 100ms linear, box-shadow 120ms ease-out, filter 120ms ease-out;
}

@media (hover: hover) {
  :root .ws-check-box.ws-check-box:not(.is-disabled):hover > .indicator,
  :root .ws-radio.ws-radio:not(.is-disabled):hover > .indicator {
    box-shadow: 0 0 0 1px color-mix(in srgb, color-mix(in srgb, var(--toggle-tint, var(--accent-color)), #ffffff 50%) 34%, transparent);
    filter: brightness(1.25);
  }

  :root .ws-check-box.ws-check-box.checked:not(.is-disabled):hover > .indicator,
  :root .ws-radio.ws-radio.checked:not(.is-disabled):hover > .indicator {
    filter: brightness(1.12);
  }
}

:root .ws-check-box.ws-check-box:not(.is-disabled):active > .indicator,
:root .ws-radio.ws-radio:not(.is-disabled):active > .indicator {
  box-shadow: 0 0 0 1px color-mix(in srgb, color-mix(in srgb, var(--toggle-tint, var(--accent-color)), #ffffff 50%) 50%, transparent);
  filter: brightness(0.95);
}

:root .ws-switch.ws-switch > .indicator {
  transition: background-color 120ms cubic-bezier(0.4, 1, 0.75, 0.9),
    border-color 120ms cubic-bezier(0.4, 1, 0.75, 0.9), filter 120ms ease-out;
}

:root .ws-switch.ws-switch > .indicator::before {
  transition: left 120ms cubic-bezier(0.4, 1, 0.75, 0.9), width 120ms ease-out,
    background 120ms cubic-bezier(0.4, 1, 0.75, 0.9), border-color 120ms cubic-bezier(0.4, 1, 0.75, 0.9);
}

:root .ws-switch.ws-switch:not(.is-disabled):active > .indicator {
  filter: brightness(0.92);
}

:root .ws-switch.ws-switch:not(.is-disabled):active > .indicator::before {
  width: calc(var(--switch-height, 30px) + 2px);
  border-radius: 999px;
}

:root .ws-switch.ws-switch.checked:not(.is-disabled):active > .indicator::before {
  left: calc(var(--switch-width, 51px) - var(--switch-height, 30px) - 3px);
}

:root .ws-combo-box.ws-combo-box > .chevron {
  top: 0;
  right: -1px;
  width: 30px;
  height: 100%;
  background-color: var(--primary-background-color);
  background-image: none;
  border: 1px solid var(--primary-border-color);
  border-left: none;
  border-radius: 0 0.3em 0.3em 0;
  color: var(--checked-mark-color);
}

:root .ws-combo-box.ws-combo-box > .chevron > .icon {
  width: 23px;
  height: 23px;
}

:root .ws-combo-box.ws-combo-box:not(.popup) > .chevron > .icon {
  width: 20px;
  height: 20px;
}

:root .ws-combo-box.ws-combo-box:not(.is-disabled) {
  cursor: pointer;
}

:root .ws-combo-box.ws-combo-box:not(.is-disabled):hover:not(:active) > .chevron {
  background-color: var(--primary-background-color-hover);
}

:root .ws-combo-box.ws-combo-box:not(.is-disabled):active > .chevron {
  background-color: var(--primary-background-color-active);
}

:root .ws-combo-box.ws-combo-box.popup:not(.is-disabled):hover:not(:active),
:root .ws-combo-box.ws-combo-box:not(.is-disabled):hover:not(:active) > select {
  background-color: var(--default-background-color-hover);
}

:root .ws-menu-item.ws-menu-item.active {
  background-color: var(--selection-color);
  color: #ffffff;
}

/* A popover's edge and shadow as macOS's dark ones: a faint light rim inside
   its border and a hairline outside it, so it's cut out cleanly over white
   as over dark, and a soft shadow, not a grey smudge: within the 16px a
   popover's own window has round it (WSPopOver.css), so it's never cut off. */
:root .ws-pop-over.ws-pop-over {
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.08),
    0 0 0 0.5px rgba(0, 0, 0, 0.3),
    0 1px 3px rgba(0, 0, 0, 0.2),
    0 4px 10px rgba(0, 0, 0, 0.18);
}

/* A disabled item as it was (#ababab, faded): only the enabled ones whiter. */
:root .ws-menu-item.ws-menu-item.is-disabled {
  color: #ababab;
}

:root .ws-combo-box.ws-combo-box {
  color: var(--text-color);
  border-color: #26262a;
}

:root .ws-combo-box.ws-combo-box > select,
:root .ws-combo-box.ws-combo-box.popup {
  background-color: var(--combobox-background);
}

:root .ws-spin-button.ws-spin-button {
  border-color: #4f4f4f;
}
:root .ws-spin-button.ws-spin-button .buttons > .ws-button {
  border-left-color: #4f4f4f;
}

:root .ws-spin-button .ws-text-field.ws-text-field {
  box-shadow: none;
  background: transparent;
}

:root .ws-wizard .nav-item.is-current.is-current {
  background: #234768;
  color: var(--text-color);
}
