@layer ss-shell-contrast {

  html[data-contrast="more"]:not([data-theme="dark"]) #bb-sidebar { --bb-dock-text: var(--fam-ink) !important; --bb-dock-sage: var(--fam-headline) !important; --bb-dock-line: var(--fam-line) !important; }

  html[data-contrast="more"]:not([data-theme="dark"]) #bb-sidebar :is(.sidebar-ai, .sidebar-icon, .sidebar-avatar),
  html[data-contrast="more"]:not([data-theme="dark"]) #bb-sidebar .sidebar-ai-mark,
  html[data-contrast="more"]:not([data-theme="dark"]) #bb-sidebar .bb-sidebar-tooltip-target::after { color: var(--fam-ink) !important; }
  html[data-contrast="more"]:not([data-theme="dark"]) #bb-sidebar :is(.sidebar-ai, .sidebar-icon):is([aria-current="page"], .is-active),
  html[data-contrast="more"]:not([data-theme="dark"]) #bb-sidebar :is(.sidebar-ai, .sidebar-icon):is([aria-current="page"], .is-active) :is(.sidebar-ai-mark, svg),
  html[data-contrast="more"]:not([data-theme="dark"]) #bb-sidebar :is(.sidebar-ai, .sidebar-icon):is([aria-current="page"], .is-active) .bb-sidebar-tooltip-target::after { color: var(--fam-headline) !important; }

  html[data-contrast="more"]:not([data-theme="dark"]) #settingsDropdown .ss-account-initials { background: var(--fam-soft) !important; color: var(--fam-headline) !important; }
  html[data-contrast="more"]:not([data-theme="dark"]) #settingsDropdown .ss-account-plan { color: var(--fam-ink) !important; }

  html[data-contrast="more"]:not([data-theme="dark"]) #bb-mobile-nav :is(.mn-tab, .mn-tab-label, .mn-tab-icon) { color: var(--fam-ink) !important; }
  html[data-contrast="more"]:not([data-theme="dark"]) #bb-mobile-nav .mn-tab.is-active,
  html[data-contrast="more"]:not([data-theme="dark"]) #bb-mobile-nav .is-active :is(.mn-tab-label, .mn-tab-icon) { color: var(--fam-headline) !important; }

  html[data-contrast="more"]:not([data-theme="dark"]) #bb-mobile-more-sheet.mnc-sheet .mnc-card > :not(.ss-pro-link),
  html[data-contrast="more"]:not([data-theme="dark"]) #bb-mobile-more-sheet.mnc-sheet .mnc-platforms .ss-platform-options > * { background-color: var(--fam-card) !important; }
  html[data-contrast="more"]:not([data-theme="dark"]) #bb-mobile-more-sheet.mnc-sheet .mnc-card > .mnc-row:not(.ss-pro-link):active,
  html[data-contrast="more"]:not([data-theme="dark"]) #bb-mobile-more-sheet.mnc-sheet .mnc-platforms .ss-platform-options > .ss-platform-link:active { background-color: var(--fam-soft) !important; }

  html[data-contrast="more"]:not([data-theme="dark"]) #bb-mobile-more-sheet.mnc-sheet .mnc-out { border-color: var(--fam-line) !important; }

  html[data-contrast="more"]:not([data-theme="dark"]) #bb-mobile-more-sheet,
  html[data-contrast="more"]:not([data-theme="dark"]) #langSelectorList { --ss-ui-language-selected: var(--fam-tint) !important; --ss-ui-language-on-selected: var(--fam-ink) !important; }
  html[data-contrast="more"]:not([data-theme="dark"]) #bb-mobile-more-sheet .mn-lang-option:is([aria-selected="true"], [aria-checked="true"], [aria-current="true"], .is-active),
  html[data-contrast="more"]:not([data-theme="dark"]) #langSelectorList .s-lang-option:is([aria-selected="true"], [aria-checked="true"], [aria-current="true"], .is-active) { box-shadow: inset 0 0 0 1px var(--fam-line) !important; }

  html[data-contrast="more"]:not([data-theme="dark"]) #bb-sidebar .sidebar-avatar[aria-expanded="true"] { box-shadow: inset 0 0 0 2px var(--fam-line) !important; }

  html[data-contrast="more"]:not([data-theme="dark"]) body:not(.settings-redesign, .help-design) :is(button, [role="button"], [role="menuitem"], [role="tab"], [role="option"], select, summary, input[type="range"], [tabindex="0"]:not(a, input, textarea, [contenteditable], [role="textbox"])):focus-visible:not(#bb-sidebar *, #settingsDropdown *, #langSelectorList *, #bb-mobile-nav *, #bb-mobile-more-sheet *, #ss-video-library-view *) { outline-style: solid !important; outline-width: 2px !important; outline-offset: 2px !important; }

  html[data-contrast="more"]:not([data-theme="dark"]) :is(#sk-doc-new-btn, #new-prompt):focus-visible { outline-color: var(--fam-ink) !important; }

  html[data-contrast="more"]:not([data-theme="dark"]) .bb-skrivebord .biq-chip:not(:focus-visible),
  html[data-contrast="more"]:not([data-theme="dark"]) .bb-skrivebord #sk-prompt-retry:not(:focus-visible),
  html[data-contrast="more"]:not([data-theme="dark"]) #sk-prediction-settings .sk-prediction-vocabulary form button[type="submit"]:not(:focus-visible),
  html[data-contrast="more"]:not([data-theme="dark"]) .bb-skrivebord .tone-slider-card:has(.tone-level-run:disabled) { box-shadow: inset 0 0 0 1px var(--fam-line) !important; }

  html[data-contrast="more"]:not([data-theme="dark"]) #sk-prediction-settings .sk-prediction-vocabulary .sk-prediction-field > input { border-color: var(--fam-line) !important; }

  html[data-contrast="more"]:not([data-theme="dark"]) #sk-prediction-settings .sk-prediction-vocabulary .sk-prediction-field > input::placeholder { color: var(--fam-line) !important; opacity: 1 !important; }

  html[data-contrast="more"]:not([data-theme="dark"]) #sk-prediction-settings .sk-prediction-vocabulary .sk-prediction-field > input:focus-visible::placeholder { color: var(--fam-headline) !important; }

  html[data-contrast="more"]:not([data-theme="dark"]) .bb-skrivebord .ai-level-run:disabled,
  html[data-contrast="more"]:not([data-theme="dark"]) .bb-skrivebord .ai-level-run:disabled :is(svg, .ai-chip-label, .ai-chip-desc),
  html[data-contrast="more"]:not([data-theme="dark"]) .bb-skrivebord .tone-level-run:disabled,
  html[data-contrast="more"]:not([data-theme="dark"]) .bb-skrivebord .tone-level-run:disabled :is(.tone-level-text, .tone-current, .tone-level-desc, .tone-level-chevron),
  html[data-contrast="more"]:not([data-theme="dark"]) .bb-skrivebord .tone-slider-card:has(.tone-level-run:disabled) .tone-slider-ends span { color: var(--fam-line) !important; }

  html[data-contrast="more"]:not([data-theme="dark"]) .bb-skrivebord :is(.ai-level-chip:has(.ai-level-run:disabled), .tone-slider-card:has(.tone-level-run:disabled)) { --sk-slider-track: var(--fam-line) !important; --sk-slider-rest: var(--fam-switch-off) !important; }

  html[data-contrast="more"]:not([data-theme="dark"]) #calm-prompt-modal .hy-vis-all input[type="checkbox"]:not(:checked):not(:focus-visible),
  html[data-contrast="more"]:not([data-theme="dark"]) #sk-prediction-settings #sk-read-writing input[type="checkbox"]:not(:checked):not(:focus-visible) { outline: 1px solid var(--fam-line) !important; outline-offset: -1px !important; }

  html[data-contrast="more"]:not([data-theme="dark"]) #sk-prediction-settings #sk-read-writing input[type="checkbox"]:focus-visible { outline: 2px solid var(--fam-ink) !important; outline-offset: 2px !important; }

  html[data-contrast="more"]:not([data-theme="dark"]) #sk-doc-new-btn:focus-visible { background-color: var(--fam-green-down) !important; border-color: var(--fam-green-down) !important; }

  html[data-contrast="more"]:not([data-theme="dark"]) .bb-skrivebord .ai-level-chip:has(.ai-level-run:focus-visible),
  html[data-contrast="more"]:not([data-theme="dark"]) .bb-skrivebord .tone-slider-card:has(.tone-level-run:focus-visible) { outline: 2px solid var(--fam-card) !important; outline-offset: -5px !important; }

  html[data-contrast="more"]:not([data-theme="dark"]) .bb-skrivebord .ai-level-chip:has(.ai-level-run:not(:disabled)) .ai-level-range:focus-visible,
  html[data-contrast="more"]:not([data-theme="dark"]) .bb-skrivebord .tone-slider-card:has(.tone-level-run:not(:disabled)) .tone-slider-input:focus-visible { outline-color: var(--fam-card) !important; }

  html[data-contrast="more"]:not([data-theme="dark"]) body#writing-app #sk-doc-browser :is(.sk-doc-filter-pill, .sk-doc-filter-add):focus-visible { outline-offset: -2px !important; }

  html[data-contrast="more"]:not([data-theme="dark"]) body#writing-app #sk-doc-browser .sk-doc-filter-pill--active:focus-visible { color: var(--fam-green-down) !important; box-shadow: inset 0 0 0 4px var(--fam-line) !important; }

  html[data-contrast="more"]:not([data-theme="dark"]) body#writing-app #sk-doc-browser .sk-doc-filter-add:focus-visible { color: var(--fam-ink) !important; }

  html[data-contrast="more"]:not([data-theme="dark"]) .bb-skrivebord input.skv2-doc-title:focus-visible { box-shadow: inset 0 -2px 0 0 var(--fam-line) !important; }
}
