/* HML only. Original supplied SVG, three independent keyboard-accessible buttons. */
/* Review dropdown labels follow the subject accent set on their result card. */
body .test-journey-evaluation__error-drop-label { color:var(--test-summary-accent, #3d8ca9) !important; }
/* Preserve the supplied full-color result artwork without legacy masks/cropping. */
.test-journey-evaluation__overview-icon:has(> .hml-result-icon) {
  background:transparent !important;
  -webkit-mask:none !important;
  mask:none !important;
}
.test-journey-evaluation .hml-result-icon {
  stroke:none;
  stroke-width:0;
  display:block !important;
  visibility:visible !important;
  opacity:1 !important;
  position:static;
  width:100%;
  height:100%;
  max-width:100%;
  object-fit:contain;
  transform:none;
  filter:none !important;
}
body { --hml-result-surface:#fff; }
body[data-app-theme="dark"] { --hml-result-surface:#0c1924; }
.hml-activity-cards { display:grid; grid-template-columns:minmax(0,1fr); gap:14px; width:100%; box-sizing:border-box; margin:22px auto 16px; }
.hml-activity-cards button { display:block; min-width:0; width:100%; padding:0; border:0; border-radius:10px; background:#101d27; cursor:pointer; }
.hml-activity-cards img { display:block; width:100%; height:auto; aspect-ratio:720/264; pointer-events:none; }
.hml-activity-cards button:focus-visible { outline:3px solid #55d8f0; outline-offset:3px; }
.hml-activity-cards button:active { transform:scale(.98); }
.hml-activity-cards button:disabled { opacity:.55; cursor:wait; }
.hml-activity-cards.is-quick-generating button:disabled { opacity:1; }
.hml-activity-cards.is-simulation-generating button:disabled { opacity:1; }
.hml-activity-cards.is-result-analyzing button:disabled { opacity:1; cursor:wait; }
.hml-activity-cards.is-result-analyzing button:disabled:active { transform:none; }
.hml-activity-cards.is-result-analyzing button::after { content:""; position:absolute; inset:0; border-radius:inherit; background:rgba(0,0,0,.55); pointer-events:none; }
.hml-activity-cards.is-simulation-generating button:not([data-hml-activity="simulation"])::after { content:""; position:absolute; inset:0; border-radius:inherit; background:rgba(0,0,0,.55); pointer-events:none; }
.hml-activity-cards.is-quick-generating button:not([data-hml-activity="quick"])::after { content:""; position:absolute; inset:0; border-radius:inherit; background:rgba(0,0,0,.55); pointer-events:none; }
body:not([data-app-theme="dark"]) .hml-activity-cards.is-result-analyzing button::after { background:rgba(233,238,242,.78); }
body:not([data-app-theme="dark"]) .hml-activity-cards.is-simulation-generating button:not([data-hml-activity="simulation"])::after,
body:not([data-app-theme="dark"]) .hml-activity-cards.is-quick-generating button:not([data-hml-activity="quick"])::after {
  background:rgba(233,238,242,.78);
}
#hmlActivityStatus { text-align:center; line-height:1.5; font-size:clamp(10px, 3.1vw, 12px); white-space:nowrap; }
.prototype-grade-upper-shell { display:none !important; }
.hml-activity-cards button { position:relative; }
body:not([data-app-theme="dark"]) .hml-activity-cards button { background:#fff; }
body:not([data-app-theme="dark"]) .hml-quick-spinner { background:#f4f8fa; }
.hml-quick-spinner { position:absolute; right:5%; top:55%; display:none; background:#101d27; border-radius:12px; padding:3px; }
.hml-activity-cards button[aria-busy="true"] .hml-quick-spinner { display:block; }
.hml-quick-spinner .login-screen__loading-art { width:26px; height:26px; }
.hml-quick-spinner .login-screen__loading-art::before { inset:4px; }
/* Keep the existing generation control/handler as the single source of state. */
body.hml-activity-cards-enabled #importCurrentGradeButton { display:none !important; }
.hml-activity-cards[hidden] { display:none; }
#hmlContentConversation { width:100%; min-width:0; overflow-wrap:anywhere; }
.hml-image-rotate { position:absolute; left:12px; bottom:12px; z-index:5; min-height:44px; padding:8px 14px; border:1px solid #55d8f0; border-radius:12px; color:#fff; background:#102632; cursor:pointer; }
.hml-image-rotate[hidden] { display:none !important; }
.hml-image-rotate:disabled { opacity:.5; cursor:wait; }
body #parentView #hmlContentConversation[hidden],
body.study-assessment-active #hmlContentConversation { display:none !important; }
