/* 307cz — Subject filter panel aligned to Object UI. UI only. */
body.atosy-view-subject #subject-full-page #subject-classification-panel #atosy-classification-fixed-v4 {
  display:grid !important;
  grid-template-columns:minmax(0,1fr) auto !important;
  grid-template-rows:auto !important;
  grid-template-areas:"heading edit" !important;
  align-items:center !important;
  column-gap:8px !important;
  row-gap:0 !important;
  padding:15px 16px 13px !important;
  min-height:78px !important;
  box-sizing:border-box !important;
  background:#0d3771 !important;
  border-bottom:1px solid rgba(131,180,255,.18) !important;
}
body.atosy-view-subject #subject-full-page #subject-classification-panel #atosy-classification-fixed-v4 > .atosy-class-head-row-v4 {
  grid-area:heading !important;
  padding:0 !important;
  margin:0 !important;
  min-width:0 !important;
  background:transparent !important;
  border:0 !important;
}
body.atosy-view-subject #subject-full-page #subject-classification-panel #atosy-classification-fixed-v4 .atosy-class-title-v4 {
  font-size:16px !important;
  font-weight:800 !important;
  line-height:1.3 !important;
  margin:0 !important;
}
body.atosy-view-subject #subject-full-page #subject-classification-panel #atosy-classification-fixed-v4 > #atosy-category-manager-btn {
  display:inline-flex !important;
  visibility:visible !important;
  grid-area:edit !important;
  justify-self:end !important;
  align-self:center !important;
  width:auto !important;
  max-width:154px !important;
  min-width:0 !important;
  min-height:28px !important;
  height:auto !important;
  padding:6px 9px !important;
  margin:0 !important;
  font-size:10px !important;
  line-height:1.25 !important;
  border-radius:10px !important;
  white-space:normal !important;
}
/* Do not remove the underlying click handlers; just hide extra controls. */
body.atosy-view-subject #subject-full-page #subject-classification-panel .atosy-class-close-v4,
body.atosy-view-subject #subject-full-page #subject-classification-panel .subject-classification-clear,
body.atosy-view-subject #subject-full-page #subject-classification-panel #subject-object-filter-reset,
body.atosy-view-subject #subject-full-page #subject-classification-panel .atosy-class-total-v4,
body.atosy-view-subject #subject-full-page #subject-classification-panel #atosy-class-breadcrumb-slot-v4,
body.atosy-view-subject #subject-full-page #subject-classification-panel #subject-classification-breadcrumb,
body.atosy-view-subject #subject-full-page #subject-classification-panel .subject-classification-head {
  display:none !important;
}
/* Re-enable the original functional 'all' button, replacing hidden old root. */
body.atosy-view-subject #subject-full-page #subject-classification-panel #subject-classification-tree .subject-classification-root {
  display:flex !important;
  position:relative !important;
  width:100% !important;
  box-sizing:border-box !important;
  align-items:center !important;
  justify-content:space-between !important;
  padding:8px 9px !important;
  margin:0 0 8px !important;
  min-height:34px !important;
  height:auto !important;
  border-radius:9px !important;
  border:1px solid transparent !important;
  background:#123866 !important;
  color:#eef6ff !important;
  font-size:12px !important;
  font-weight:750 !important;
  text-align:left !important;
  cursor:pointer !important;
}
body.atosy-view-subject #subject-full-page #subject-classification-panel #subject-classification-tree .subject-classification-root.is-selected {
  background:#24518d !important;
  border-color:#4589ea !important;
  box-shadow:inset 3px 0 0 #6aafff !important;
}
body.atosy-view-subject #subject-full-page #subject-classification-panel #subject-classification-tree .subject-classification-root strong {
  font-size:10px !important;
  font-weight:800 !important;
  color:#f4f8ff !important;
  background:transparent !important;
  padding:0 !important;
  border:0 !important;
}
/* Original category tree stays intact; no additional JS observers. */

/* 307da — Subject category compact Object-parity header; visual only */
body.atosy-view-subject #subject-full-page #subject-classification-panel #atosy-classification-fixed-v4 {
  display:grid !important;
  grid-template-columns:minmax(0,1fr) auto !important;
  grid-template-rows:auto !important;
  grid-template-areas:"heading edit" !important;
  gap:7px !important;
  align-items:center !important;
  min-height:0 !important;
  padding:13px 12px 8px !important;
  background:#0d3771 !important;
  border-bottom:0 !important;
}
body.atosy-view-subject #subject-full-page #subject-classification-panel #atosy-classification-fixed-v4 > .atosy-class-head-row-v4 {
  grid-area:heading !important;
  display:block !important;
  min-width:0 !important;
  width:auto !important;
  margin:0 !important;
  padding:0 !important;
  grid-template-columns:minmax(0,1fr) !important;
}
body.atosy-view-subject #subject-full-page #subject-classification-panel #atosy-classification-fixed-v4 .atosy-class-kicker-v4,
body.atosy-view-subject #subject-full-page #subject-classification-panel #atosy-classification-fixed-v4 .atosy-class-close-v4 {
  display:none !important;
}
body.atosy-view-subject #subject-full-page #subject-classification-panel #atosy-classification-fixed-v4 .atosy-class-title-v4 {
  display:block !important;
  font-size:15px !important;
  line-height:1.25 !important;
  font-weight:800 !important;
  letter-spacing:-.25px !important;
  white-space:nowrap !important;
  overflow:visible !important;
  margin:0 !important;
}
body.atosy-view-subject #subject-full-page #subject-classification-panel #atosy-classification-fixed-v4 > #atosy-category-manager-btn {
  grid-area:edit !important;
  display:inline-flex !important;
  justify-self:end !important;
  align-self:center !important;
  width:auto !important;
  min-width:0 !important;
  max-width:146px !important;
  padding:6px 7px !important;
  margin:0 !important;
  font-size:9px !important;
  line-height:1.15 !important;
  white-space:nowrap !important;
}
/* Make the all-subjects row part of the same visual header section.
   Keep its existing data-subject-class-clear click handler intact. */
body.atosy-view-subject #subject-full-page #subject-classification-panel #atosy-classification-scroll-v4 {
  border-top:0 !important;
  padding-top:0 !important;
}
body.atosy-view-subject #subject-full-page #subject-classification-panel #subject-classification-tree {
  padding-top:0 !important;
}
body.atosy-view-subject #subject-full-page #subject-classification-panel #subject-classification-tree .subject-classification-root {
  margin-top:0 !important;
  margin-bottom:9px !important;
  min-height:34px !important;
}

/* 307db: frozen All Subjects button INSIDE header, outside scrolling tree. */
body.atosy-view-subject #subject-full-page #subject-classification-panel #atosy-classification-fixed-v4 {
  display:grid !important;
  grid-template-columns:minmax(0,1fr) auto !important;
  grid-template-areas:"heading edit" "all all" !important;
  grid-template-rows:auto auto !important;
  row-gap:9px !important;
  padding:13px 9px 9px !important;
  position:relative !important;
  z-index:3 !important;
}
body.atosy-view-subject #subject-full-page #subject-classification-panel #atosy-subject-all-fixed-307db {
  grid-area:all !important;
  display:flex !important;
  align-items:center !important;
  justify-content:space-between !important;
  width:100% !important;
  height:34px !important;
  min-height:34px !important;
  box-sizing:border-box !important;
  padding:0 9px !important;
  margin:0 !important;
  border:1px solid transparent !important;
  border-radius:9px !important;
  background:rgb(18,56,102) !important;
  color:#eef6ff !important;
  font-size:12px !important;
  font-weight:800 !important;
  line-height:1.2 !important;
  text-align:left !important;
  cursor:pointer !important;
}
body.atosy-view-subject #subject-full-page #subject-classification-panel #atosy-subject-all-fixed-307db.is-selected {
  background:rgb(36,81,141) !important;
  box-shadow:inset 3px 0 0 rgb(106,175,255) !important;
}
body.atosy-view-subject #subject-full-page #subject-classification-panel #atosy-subject-all-fixed-307db strong {
  font-size:10px !important;
  font-weight:800 !important;
  color:#e8f2ff !important;
}
/* Prevent original tree root from taking scroll space; keep it in DOM for existing app.js updates. */
body.atosy-view-subject #subject-full-page #subject-classification-panel #subject-classification-tree > .subject-classification-root {
  display:none !important;
}
body.atosy-view-subject #subject-full-page #subject-classification-panel #atosy-classification-fixed-v4 .atosy-class-close-v4 {display:none !important;}
body.atosy-view-subject #subject-full-page #subject-classification-panel #atosy-classification-fixed-v4 .atosy-class-title-v4 {white-space:nowrap !important;}

/* 307dc — Subject panel heading and edit button aligned to Object reference. */
body.atosy-view-subject #subject-full-page #subject-classification-panel #atosy-classification-fixed-v4 .atosy-class-title-v4 {
  font-size:17px !important;
  font-weight:800 !important;
  line-height:24px !important;
  letter-spacing:-.35px !important;
  white-space:nowrap !important;
}
body.atosy-view-subject #subject-full-page #subject-classification-panel #atosy-classification-fixed-v4 > #atosy-category-manager-btn {
  display:inline-flex !important;
  flex-direction:row !important;
  align-items:center !important;
  justify-content:center !important;
  text-align:center !important;
  vertical-align:middle !important;
  min-height:28px !important;
  height:28px !important;
  box-sizing:border-box !important;
  padding:0 8px !important;
  line-height:1 !important;
  transform:none !important;
}
body.atosy-view-subject #subject-full-page #subject-classification-panel #atosy-classification-fixed-v4 > #atosy-category-manager-btn > * {
  line-height:1 !important;
  align-self:center !important;
  margin-top:0 !important;
  margin-bottom:0 !important;
  transform:none !important;
}

/* 307dp — exclusively scope updates to the Subject category panel. */
