/* TASK792 — Subject / Object View–Edit–Create header parity with
   the compact Action TASK788–791 design. Existing SVOA Diamond untouched.
   Scoping excludes #verb-profile and every Information profile. */

/* Use an extra parity class on the exact shared SVOA selectors so the
   149/139px forced-height rules cannot win through specificity. */
html body .atosy-subject-detail-v5-overlay.atosy-header-parity-792 .atosy-subject-detail-v5-hero.atosy-parity-hero-792,
html body .svoa-native-profile.svoa-native-profile.svoa-native-profile.atosy-header-parity-792:is(#atosy-object-create-v347a,.atosy-subject-detail-v5-overlay) .information-detail-panel > .svoa-frozen-header > .atosy-subject-detail-v5-hero.atosy-parity-hero-792 {
  box-sizing:border-box!important;
  height:auto!important;
  min-height:0!important;
  max-height:none!important;
  flex:0 0 auto!important;
  padding:17px 16px 7px!important;
  gap:0!important;
}
html body .atosy-subject-detail-v5-overlay.atosy-header-parity-792 .atosy-parity-hero-792 .atosy-subject-detail-v5-profile,
html body .svoa-native-profile.svoa-native-profile.svoa-native-profile.atosy-header-parity-792:is(#atosy-object-create-v347a,.atosy-subject-detail-v5-overlay) .atosy-parity-hero-792 .atosy-subject-detail-v5-profile {
  display:flex!important;
  flex:0 0 auto!important;
  flex-wrap:wrap!important;
  align-items:center!important;
  gap:7px 10px!important;
  margin:0!important;
  padding:0!important;
  min-width:0!important;
}
html body .atosy-subject-detail-v5-overlay.atosy-header-parity-792 .atosy-parity-hero-792 .atosy-subject-detail-v5-avatar,
html body .svoa-native-profile.svoa-native-profile.svoa-native-profile.atosy-header-parity-792:is(#atosy-object-create-v347a,.atosy-subject-detail-v5-overlay) .atosy-parity-hero-792 .atosy-subject-detail-v5-avatar {
  box-sizing:border-box!important;
  width:42px!important;
  height:42px!important;
  min-width:42px!important;
  min-height:42px!important;
  max-height:42px!important;
  flex:0 0 42px!important;
  border-radius:13px!important;
  font-size:23px!important;
}
html body .atosy-subject-detail-v5-overlay.atosy-header-parity-792 .atosy-parity-hero-792 .atosy-subject-detail-v5-profile > :not(.atosy-subject-detail-v5-avatar):not(.atosy-subject-detail-v5-actions),
html body .svoa-native-profile.svoa-native-profile.svoa-native-profile.atosy-header-parity-792:is(#atosy-object-create-v347a,.atosy-subject-detail-v5-overlay) .atosy-parity-hero-792 .atosy-subject-detail-v5-profile > :not(.atosy-subject-detail-v5-avatar):not(.atosy-subject-detail-v5-actions) {
  box-sizing:border-box!important;
  min-width:0!important;
  flex:1 1 188px!important;
}
html body .atosy-subject-detail-v5-overlay.atosy-header-parity-792 .atosy-parity-hero-792 .atosy-subject-detail-v5-name,
html body .svoa-native-profile.svoa-native-profile.svoa-native-profile.atosy-header-parity-792:is(#atosy-object-create-v347a,.atosy-subject-detail-v5-overlay) .atosy-parity-hero-792 .atosy-subject-detail-v5-name {
  margin:0!important;
  padding:0!important;
  font-size:20px!important;
  line-height:24px!important;
  font-weight:800!important;
  white-space:normal!important;
  overflow:visible!important;
  overflow-wrap:anywhere!important;
}
html body .atosy-subject-detail-v5-overlay.atosy-header-parity-792 .atosy-parity-hero-792 .atosy-subject-detail-v5-meta,
html body .svoa-native-profile.svoa-native-profile.svoa-native-profile.atosy-header-parity-792:is(#atosy-object-create-v347a,.atosy-subject-detail-v5-overlay) .atosy-parity-hero-792 .atosy-subject-detail-v5-meta {
  box-sizing:border-box!important;
  display:flex!important;
  flex-wrap:wrap!important;
  align-items:center!important;
  gap:5px!important;
  margin:3px 0 0!important;
  padding:0!important;
  overflow:visible!important;
  min-width:0!important;
}
html body .atosy-subject-detail-v5-overlay.atosy-header-parity-792 .atosy-parity-hero-792 .atosy-subject-detail-v5-meta > .atosy-subject-detail-v5-chip,
html body .atosy-subject-detail-v5-overlay.atosy-header-parity-792 .atosy-parity-hero-792 .atosy-subject-detail-v5-meta > .atosy-header-type-792 {
  box-sizing:border-box!important;
  display:inline-flex!important;
  align-items:center!important;
  flex:0 0 auto;
  min-height:20px!important;
  max-height:none!important;
  padding:2px 8px!important;
  border-radius:999px!important;
  font-size:10px!important;
  line-height:15px!important;
  font-weight:650!important;
  letter-spacing:normal!important;
  text-transform:none!important;
  white-space:nowrap!important;
}
html body .atosy-subject-detail-v5-overlay.atosy-header-parity-792 .atosy-parity-hero-792 .atosy-header-type-792[data-entity-kind="S"] {
  color:#eaf5ff!important;
  border:1px solid rgba(115,183,255,.55)!important;
  background:rgba(27,124,231,.25)!important;
}
html body .atosy-subject-detail-v5-overlay.atosy-header-parity-792 .atosy-parity-hero-792 .atosy-header-type-792[data-entity-kind="O"] {
  color:#e4fff7!important;
  border:1px solid rgba(71,221,190,.50)!important;
  background:rgba(14,160,127,.22)!important;
}
html body .atosy-subject-detail-v5-overlay.atosy-header-parity-792 .atosy-parity-hero-792 .atosy-subject-detail-v5-actions,
html body .svoa-native-profile.svoa-native-profile.svoa-native-profile.atosy-header-parity-792:is(#atosy-object-create-v347a,.atosy-subject-detail-v5-overlay) .atosy-parity-hero-792 .atosy-subject-detail-v5-actions {
  box-sizing:border-box!important;
  display:flex!important;
  flex:0 0 auto!important;
  align-items:center!important;
  justify-content:flex-end!important;
  flex-wrap:wrap!important;
  gap:6px!important;
  min-width:0!important;
  margin:0 0 0 auto!important;
  padding:0!important;
  position:relative;
  z-index:1;
}
html body .atosy-subject-detail-v5-overlay.atosy-header-parity-792 .atosy-parity-hero-792 .atosy-subject-detail-v5-actions > button {
  box-sizing:border-box!important;
  flex:0 0 auto!important;
  width:auto!important;
  min-width:0!important;
  min-height:34px!important;
  height:34px!important;
  padding:0 12px!important;
  border-radius:999px!important;
  font-size:11px!important;
  line-height:1!important;
  white-space:nowrap!important;
}
html body .atosy-subject-detail-v5-overlay.atosy-header-parity-792 .atosy-parity-hero-792 .atosy-subject-detail-v5-actions > .atosy-subject-detail-v5-close {
  width:34px!important;
  min-width:34px!important;
  padding:0!important;
}

/* Object retains its live title updater, but hides its redundant
   'Tên Vật thể' row to reclaim a full line. */
html body #atosy-object-create-v347a.atosy-header-parity-792 .atosy-parity-hero-792 .atosy-object-hero-copy-v354a {
  display:flex!important;
  flex-direction:column!important;
  align-items:flex-start!important;
  gap:0!important;
}
html body #atosy-object-create-v347a.atosy-header-parity-792 .atosy-parity-hero-792 .atosy-object-hero-label-v354a {
  display:none!important;
}
html body #atosy-object-create-v347a.atosy-header-parity-792 .atosy-parity-hero-792 .atosy-object-summary-chips-v354a {
  width:100%;
  margin:3px 0 0!important;
}
html body .atosy-header-parity-792.svoa-native-profile.svoa-native-profile.svoa-native-profile .svoa-frozen-navigation {
  min-height:0!important;
  padding:0 16px 5px!important;
}

@media (max-width:650px) {
  html body .atosy-subject-detail-v5-overlay.atosy-header-parity-792 .atosy-parity-hero-792,
  html body .svoa-native-profile.svoa-native-profile.svoa-native-profile.atosy-header-parity-792:is(#atosy-object-create-v347a,.atosy-subject-detail-v5-overlay) .information-detail-panel > .svoa-frozen-header > .atosy-subject-detail-v5-hero.atosy-parity-hero-792 {
    height:auto!important;
    min-height:0!important;
    flex-basis:auto!important;
    padding:11px 13px 8px!important;
  }
  html body .atosy-header-parity-792 .atosy-parity-hero-792 .atosy-subject-detail-v5-profile > :not(.atosy-subject-detail-v5-avatar):not(.atosy-subject-detail-v5-actions) {
    flex:1 1 calc(100% - 52px)!important;
  }
  html body .atosy-header-parity-792 .atosy-parity-hero-792 .atosy-subject-detail-v5-actions {
    flex:1 1 100%!important;
    justify-content:flex-end!important;
  }
  html body .atosy-header-parity-792.svoa-native-profile.svoa-native-profile.svoa-native-profile .svoa-frozen-navigation {
    padding:0 12px 5px!important;
  }
}

/* Final specificity guard against legacy Object View/Edit 38px controls
   and shared unified profile's ID-weighted action rules. */
html body .svoa-native-profile.svoa-native-profile.svoa-native-profile.atosy-header-parity-792:is(#atosy-object-create-v347a,.atosy-subject-detail-v5-overlay) .atosy-parity-hero-792 .atosy-subject-detail-v5-actions > button {
  box-sizing:border-box!important;
  flex:0 0 auto!important;
  width:auto!important;
  min-width:0!important;
  max-width:none!important;
  height:34px!important;
  min-height:34px!important;
  max-height:34px!important;
  padding:0 12px!important;
  border-radius:999px!important;
  font-size:11px!important;
  line-height:1!important;
  white-space:nowrap!important;
}
html body #atosy-object-create-v347a.atosy-header-parity-792 .atosy-parity-hero-792 .atosy-subject-detail-v5-actions > .atosy-subject-detail-v5-close,
html body .atosy-header-parity-792 .atosy-parity-hero-792 .atosy-subject-detail-v5-actions > .atosy-subject-detail-v5-close {
  box-sizing:border-box!important;
  width:34px!important;
  min-width:34px!important;
  max-width:34px!important;
  height:34px!important;
  min-height:34px!important;
  max-height:34px!important;
  padding:0!important;
  margin-left:0!important;
  border-radius:999px!important;
}
html body #atosy-object-create-v347a.atosy-header-parity-792 .atosy-parity-hero-792 .atosy-object-summary-chips-v354a .atosy-subject-detail-v5-chip {
  min-height:20px!important;
  padding:2px 8px!important;
  font-size:10px!important;
  line-height:15px!important;
  font-weight:650!important;
  border-radius:999px!important;
}
html body #atosy-object-create-v347a.atosy-header-parity-792 .atosy-parity-hero-792 .atosy-subject-detail-v5-actions > button[hidden] {
  display:none!important;
}
