/* ATOSY ERP V2311 — Text background integrity.
 * Preserve Official Surface & Edge V2307 on panels/cards.
 * Text-only headings in classification editors must not paint a second
 * rectangular surface on top of their containing header.
 * Do not reset inputs, selected items, chips, buttons or semantic badges.
 */
@media (forced-colors: none) {
  html[data-atosy-aurora-midnight="v2"] body
  :is(
    .object-category-manager-editor-head > div > h3,
    .object-category-manager-header h2,
    #atosy-category-manager-overlay .catmgr-head h2,
    #atosy-category-manager-overlay .catmgr-right h3,
    #atosy-category-manager-overlay .catmgr-editor h3
  ) {
    background: transparent !important;
    background-image: none !important;
    -webkit-box-decoration-break: slice;
    box-decoration-break: slice;
    box-shadow: none !important;
    filter: none !important;
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
  }
  /* The text container in the Subject manager is layout-only.
     Its parent panel owns the fill, gradient and border. */
  html[data-atosy-aurora-midnight="v2"] body
  #atosy-category-manager-overlay .object-category-manager-editor-head > div:first-child {
    background: transparent !important;
    background-image: none !important;
    box-shadow: none !important;
  }
}

/* V2312 — Verb taxonomy tree: no raised 3D hover pill.
 * Keep the row's flat hover fill; selected row stays distinguishable.
 * Keyboard focus-visible retains a simple accessible indicator.
 */
html body #verb-category-editor .catmgr-tree .catmgr-row > button.catmgr-name:hover,
html body #verb-category-editor .catmgr-tree .catmgr-row > button.catmgr-name:focus:not(:focus-visible) {
  border: 0 !important;
  outline: none !important;
  box-shadow: none !important;
  -webkit-box-shadow: none !important;
  filter: none !important;
  transform: none !important;
  background: transparent !important;
  background-image: none !important;
}
html body #verb-category-editor .catmgr-tree .catmgr-row > button.catmgr-name:hover::before,
html body #verb-category-editor .catmgr-tree .catmgr-row > button.catmgr-name:hover::after {
  content: none !important;
  display: none !important;
}
html body #verb-category-editor .catmgr-tree .catmgr-row:hover {
  box-shadow: none !important;
  filter: none !important;
  transform: none !important;
}
html body #verb-category-editor .catmgr-tree .catmgr-row > button.catmgr-name:focus-visible {
  outline: 1px solid rgba(125, 192, 255, .8) !important;
  outline-offset: 2px !important;
  box-shadow: none !important;
}

/* V2315 — Information category-edit button: resting appearance on hover.
 * Match the existing Aurora Midnight idle surface/edge exactly.
 * Scope to Information only; leave its click and keyboard activation intact.
 */
@media (forced-colors:none) {
 html[data-atosy-aurora-midnight="v2"] body.atosy-view-information
 #information-full-page#information-full-page
 #information-category-manager-btn-v40:not(:disabled) {
   transition:none!important;
   animation:none!important;
 }
 html[data-atosy-aurora-midnight="v2"] body.atosy-view-information
 #information-full-page#information-full-page
 #information-category-manager-btn-v40:not(:disabled):is(:hover,:focus,:focus-visible,:active) {
   background:var(--av-field) padding-box,var(--av-edge) border-box!important;
   border:1px solid transparent!important;
   outline:none!important;
   transform:none!important;
   filter:none!important;
   animation:none!important;
 }
 html[data-atosy-aurora-midnight="v2"] body.atosy-view-information
 #information-full-page#information-full-page
 #information-category-manager-btn-v40:not(:disabled):is(:hover,:focus,:focus-visible,:active)::before,
 html[data-atosy-aurora-midnight="v2"] body.atosy-view-information
 #information-full-page#information-full-page
 #information-category-manager-btn-v40:not(:disabled):is(:hover,:focus,:focus-visible,:active)::after {
   content:none!important;
   display:none!important;
 }
}

/* V2316 — S/V/O category-edit controls: use Information's idle Liquid Edge.
 * Canonical idle reference (A): transparent 1px border, --av-field padding
 * layer and --av-edge border layer. Do not modify button geometry or logic.
 * Extra specificity isolates these controls from TASK719 projected hover rules.
 */
@media (forced-colors:none) {
  html[data-atosy-aurora-midnight="v2"] body
  :is(#subject-full-page #atosy-category-manager-btn,
      #verb-full-page #verb-category-manager-btn-v40,
      #object-full-page [data-object-category-manager-open]):not(#v2316-a):not(#v2316-b):not(#v2316-c):not(#v2316-d):not(:disabled) {
    border:1px solid transparent!important;
    border-image:none!important;
    background:var(--av-field) padding-box,var(--av-edge) border-box!important;
    background-origin:padding-box,border-box!important;
    background-clip:padding-box,border-box!important;
    outline:none!important;
    box-shadow:none!important;
    transition:none!important;
    animation:none!important;
    isolation:isolate!important;
    position:relative!important;
  }
  html[data-atosy-aurora-midnight="v2"] body
  :is(#subject-full-page #atosy-category-manager-btn,
      #verb-full-page #verb-category-manager-btn-v40,
      #object-full-page [data-object-category-manager-open]):not(#v2316-a):not(#v2316-b):not(#v2316-c):not(#v2316-d):not(:disabled):is(:hover,:focus,:focus-visible,:active) {
    border:1px solid transparent!important;
    border-image:none!important;
    background:var(--av-field) padding-box,var(--av-edge) border-box!important;
    background-origin:padding-box,border-box!important;
    background-clip:padding-box,border-box!important;
    box-shadow:none!important;
    outline:none!important;
    transform:none!important;
    filter:none!important;
    animation:none!important;
  }
  /* The rim is painted by the button itself, not floating pseudo-elements. */
  html[data-atosy-aurora-midnight="v2"] body
  :is(#subject-full-page #atosy-category-manager-btn,
      #verb-full-page #verb-category-manager-btn-v40,
      #object-full-page [data-object-category-manager-open]):not(#v2316-a):not(#v2316-b):not(#v2316-c):not(#v2316-d)::before,
  html[data-atosy-aurora-midnight="v2"] body
  :is(#subject-full-page #atosy-category-manager-btn,
      #verb-full-page #verb-category-manager-btn-v40,
      #object-full-page [data-object-category-manager-open]):not(#v2316-a):not(#v2316-b):not(#v2316-c):not(#v2316-d)::after {
    content:none!important;
    display:none!important;
  }
}

/* V2318: Retired V2317 subject overrides: the canonical Subject/Object parity
 * is now last in subject-category-object-task720.js, after dynamic projection. */

/* V2684 — category tree controls are flat text/expand affordances, not individual Liquid cards. The row owns hover and selection. */
html[data-atosy-aurora-midnight="v2"][data-atosy-appearance] body .catmgr-tree .catmgr-row > :is(button.catmgr-name,button.catmgr-toggle):is(:hover,:active,:focus){background:transparent!important;background-image:none!important;box-shadow:none!important;filter:none!important;transform:none!important;animation:none!important;transition:none!important;border-color:transparent!important;}
html[data-atosy-aurora-midnight="v2"][data-atosy-appearance] body .catmgr-tree .catmgr-row > :is(button.catmgr-name,button.catmgr-toggle):is(:hover,:active)::before,
html[data-atosy-aurora-midnight="v2"][data-atosy-appearance] body .catmgr-tree .catmgr-row > :is(button.catmgr-name,button.catmgr-toggle):is(:hover,:active)::after{content:none!important;display:none!important;}
