/* Hinh Anh Y Hoc V6.1 - focused hardening */

/* Support is portaled to <body> so no transformed ancestor can pull it into the page flow. */
body > .v46-support{
  position:fixed!important;
  right:max(22px,env(safe-area-inset-right))!important;
  bottom:max(22px,env(safe-area-inset-bottom))!important;
  left:auto!important;
  top:auto!important;
  margin:0!important;
  transform:none!important;
  z-index:10000!important;
  align-items:flex-end!important;
}
body > .v46-support[hidden]{display:none!important}
body > .v46-support .v46-support-menu{
  position:absolute!important;
  right:0!important;
  bottom:calc(100% + 12px)!important;
  left:auto!important;
  top:auto!important;
  align-items:flex-end!important;
}
body > .v46-support .v46-support-close{align-self:flex-end!important}

/* Practice set cards: compact, readable and one clear action. */
.v61-practice-card{
  min-height:0!important;
  align-content:start;
  grid-template-columns:48px minmax(0,1fr)!important;
  padding:18px!important;
}
.v61-practice-card .v46-exam-card-copy{align-self:center}
.v61-practice-card .v61-start-quiz{
  grid-column:1/-1!important;
  width:100%!important;
  min-height:42px!important;
  margin-top:12px!important;
  white-space:nowrap;
}
.v61-simple-setup{display:block;max-width:760px;margin-inline:auto}
.v61-simple-setup .setup-form{width:100%}

/* Course artwork: keep source image sharp and use only a light tint from inline gradient. */
.v46-course-cover,
.v46-course-poster{
  image-rendering:auto;
  -webkit-font-smoothing:antialiased;
}
.v46-course-cover[style*="url("],
.v46-course-poster[style*="url("]{
  filter:none!important;
  background-size:cover!important;
  background-repeat:no-repeat!important;
  background-position:center!important;
}
[data-theme=dark] .v46-course-cover[style*="url("],
[data-theme=dark] .v46-course-poster[style*="url("]{filter:none!important}
.v46-course-cover[style*="url("] strong,
.v46-course-cover[style*="url("] .v46-course-cover-label,
.v46-course-poster[style*="url("] strong,
.v46-course-poster[style*="url("] .v46-poster-kicker{
  text-shadow:0 1px 8px rgba(255,255,255,.55),0 1px 2px rgba(0,0,0,.18);
}

/* Destructive admin action. */
.v61-delete-course,
.v61-danger{
  border-color:#e9b4b4!important;
  color:#a63f3f!important;
  background:#fff7f7!important;
}
.v61-delete-course:hover,
.v61-danger:hover:not(:disabled){background:#ffeded!important;border-color:#d98282!important}
.v61-danger:disabled{opacity:.45!important;cursor:not-allowed!important}

/* Slightly calmer headings after removing duplicate English labels. */
.v46-section-heading>div>h2:first-child,
.section-bar>div>h2:first-child{margin-top:0}

@media(max-width:760px){
  body > .v46-support{
    right:max(14px,env(safe-area-inset-right))!important;
    bottom:max(14px,env(safe-area-inset-bottom))!important;
  }
  .v61-practice-card{grid-template-columns:44px minmax(0,1fr)!important;padding:16px!important}
}
