/* Owner: calm pointer feedback throughout Personal desktop, no green frames.
   The double class raises specificity over legacy native focus resets without
   importing this policy into Work or changing selected/invalid/permission state. */
html[data-crays-input="keyboard"] body:has(.desktop-chrome.desktop-chrome) :is(button,a[href],select,summary,[role="button"],[tabindex]:not([tabindex="-1"])):focus-visible {
  outline:2px solid #082638!important;
  outline-offset:3px!important;
  box-shadow:0 0 0 2px #fff!important;
}
html[data-crays-input="pointer"] body:has(.desktop-chrome.desktop-chrome) :is(button,a[href],select,summary,[role="button"],[tabindex]:not([tabindex="-1"])):focus {
  outline:none!important;
}
html[data-crays-input] body:has(.desktop-chrome.desktop-chrome) :is(input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="color"]),textarea,[contenteditable="true"]):not(:where(.chat-composer *)):focus {
  outline:none!important;
  box-shadow:inset 0 -2px 0 #526b87!important;
}
html[data-crays-input] body:has(.desktop-chrome.desktop-chrome) :is(input,textarea,select):focus:not([aria-invalid="true"]):not(:user-invalid) {
  border-color:#bccbd8!important;
}
html[data-crays-input="keyboard"] body:has(.desktop-chrome.desktop-chrome) :is(input[type="checkbox"],input[type="radio"],input[type="range"],input[type="color"]):focus-visible {
  outline:2px solid #082638!important;
  outline-offset:3px!important;
  box-shadow:0 0 0 2px #fff!important;
}
@media(forced-colors:active) {
  html[data-crays-input] body:has(.desktop-chrome.desktop-chrome) :is(button,a[href],select,summary,input,textarea,[contenteditable="true"],[role="button"],[tabindex]:not([tabindex="-1"])):focus-visible {
    outline:2px solid Highlight!important;
    outline-offset:3px!important;
    box-shadow:none!important;
    forced-color-adjust:auto;
  }
}
/* Route restoration keeps the screen-reader position without outlining a page. */
html[data-crays-input] body:has(.desktop-chrome.desktop-chrome) :is(h1,h2,h3,main,section,article)[tabindex="-1"]:focus {
  outline:none!important;
  box-shadow:none!important;
}

/* Search wrappers must not add a second green frame around the focused field. */
html[data-crays-input] body:has(.desktop-chrome.desktop-chrome) :is(.web-own-spot-search,.web-spot-conversation-search,.web-request-search):focus-within {
  outline:none!important;
}
/* Keep the original selected-post marker as well as the keyboard focus halo. */
html[data-crays-input="keyboard"] body:has(.desktop-chrome.desktop-chrome) .web-feed-workspace-stream .post-preview[data-selected="true"]:focus-visible {
  box-shadow:inset 3px 0 #007e8a,0 0 0 2px #fff!important;
}
