/*
 * HUB OF ASPIRANTS — Mobile UI V2.4
 * Phone-first presentation layer. Desktop/tablet rules remain untouched.
 * Scope: max-width: 600px.
 */

@media (max-width: 600px) {
  :root {
    --hoa-mobile-blue: #0B2E52;
    --hoa-mobile-blue-2: #123F6D;
    --hoa-mobile-gold: #D4A72C;
    --hoa-mobile-gold-soft: #FFF7D9;
    --hoa-mobile-border: #D8E7F5;
    --hoa-mobile-text: #17324D;
    --hoa-mobile-muted: #64798D;
    --hoa-mobile-bg: #F5F9FD;
  }

  /* ---------- Base ---------- */
  html { scroll-behavior: smooth; }
  body {
    font-size: 14px !important;
    line-height: 1.42 !important;
    overflow-x: hidden !important;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
  }

  body,
  input,
  select,
  textarea,
  button {
    font-family: inherit;
  }

  button, a, input, select, textarea {
    touch-action: manipulation;
  }

  .container,
  main.container {
    width: 100% !important;
    max-width: none !important;
    padding-left: 12px !important;
    padding-right: 12px !important;
  }

  .card,
  .dashPanel,
  .hoa-admin-content-panel,
  .hoa-master-panel,
  .profileCard {
    border-radius: 11px !important;
    padding: 12px !important;
  }

  /* Avoid oversized visual whitespace inherited from desktop cards. */

  /* ---------- Header / public top bar ---------- */
  .header,
  header.header {
    min-height: 56px !important;
    height: auto !important;
    padding: 7px 10px !important;
    gap: 8px !important;
  }

  .header .brand-logo,
  .header img.brand-logo,
  .hoa-student-header-brand img {
    width: 38px !important;
    height: 38px !important;
    max-width: 38px !important;
  }

  .header h1,
  .header .site-title,
  .header .brand-name {
    font-size: 18px !important;
    line-height: 1.15 !important;
  }

  .header p,
  .header small,
  .header .tagline {
    font-size: 10px !important;
  }

  .header button,
  .header a,
  .hoa-v6058-nav-login,
  #studentHeaderLogout {
    min-height: 40px !important;
    min-width: 40px !important;
    padding: 8px 10px !important;
    border-radius: 9px !important;
    font-size: 12px !important;
  }

  /* Force icon glyphs to a predictable, less platform-dependent presentation. */
  .hoa-v6058-login-icon,
  .hoa-v648-option-icon,
  .hoa-v648-free-card > span:first-child,
  .hoa-front-feature-icon,
  .hoa-front-feature-box .icon,
  .adminSectionNav button,
  .candidateSectionNav button {
    font-variant-emoji: text !important;
  }

  /* ---------- Home ---------- */

  body.hoa-public-front #hoaFrontPage .hoa-front-title {
    line-height: 1.12 !important;
  }

  body.hoa-front-page #hoaFrontPage .hoa-front-copy,
  body.hoa-front-page #hoaFrontPage p {
    font-size: 13px !important;
    line-height: 1.45 !important;
  }

  .hoa-front-feature-grid,
  .hoa-v648-option-grid,
  .hoa-v648-free-grid {
    grid-template-columns: 1fr !important;
  }

  .hoa-v648-option-card {
    height: auto !important;
    display: grid !important;
    grid-template-areas:
      "icon title link"
      "icon copy  link" !important;
    align-items: center !important;
    text-align: left !important;
  }

  .hoa-v648-option-icon {
    grid-area: icon !important;
    display: grid !important;
    place-items: center !important;
    border-radius: 10px !important;
  }

  .hoa-v648-option-title {
    grid-area: title !important;
    line-height: 1.2 !important;
  }

  .hoa-v648-option-copy {
    grid-area: copy !important;
    line-height: 1.25 !important;
  }

  .hoa-v648-option-link {
    grid-area: link !important;
    white-space: nowrap !important;
    padding-left: 4px !important;
  }

  .hoa-v648-free-card {
    min-height: 0 !important;
    padding: 10px 12px !important;
    display: grid !important;
    grid-template-columns: 32px 1fr !important;
    grid-template-areas:
      "icon title"
      "icon copy" !important;
    gap: 2px 9px !important;
    text-align: left !important;
    border-radius: 10px !important;
  }

  .hoa-v648-free-card > span:first-child {
    grid-area: icon !important;
    font-size: 18px !important;
    align-self: center !important;
  }

  .hoa-v648-free-card b { grid-area: title; font-size: 13px !important; }
  .hoa-v648-free-card small { grid-area: copy; font-size: 10px !important; }

  .hoa-front-feature-box {
    min-height: 0 !important;
    border-radius: 10px !important;
  }

  .hoa-front-feature-box h3 {
    line-height: 1.2 !important;
    margin: 3px 0 4px !important;
  }

  .hoa-front-feature-box p {
    margin: 0 !important;
  }

  /* ---------- Modals ---------- */
  .hoa-v648-modal-card,
  .modal-card,
  .dialog-card,
  .hoa-modal-card {
    width: calc(100vw - 20px) !important;
    max-width: calc(100vw - 20px) !important;
    max-height: calc(100dvh - 20px) !important;
    padding: 12px !important;
    border-radius: 12px !important;
  }

  .hoa-v648-modal-close {
    width: 40px !important;
    height: 40px !important;
    font-size: 20px !important;
  }

  /* ---------- Auth / login / registration ---------- */
  #authScreen .card,
  #authScreen .dashPanel {
    padding: 12px !important;
  }

  #authScreen h1 { font-size: 20px !important; }
  #authScreen h2 { font-size: 18px !important; }
  #authScreen h3 { font-size: 16px !important; }

  #authScreen label {
    font-size: 12px !important;
  }

  #authScreen input,
  #authScreen select,
  #authScreen textarea {
    min-height: 42px !important;
    padding: 9px 10px !important;
    font-size: 13px !important;
    border-radius: 8px !important;
  }

  #studentLoginPanel,
  #studentRegisterPanel,
  #freeLoginPanel,
  #freeRegistrationPanel,
  #adminLoginPanel {
    width: 100% !important;
  }

  /* ---------- Student section ---------- */
  body.hoa-app-student .hoa-student-section-strip {
    margin-bottom: 8px !important;
  }

  .hoa-student-section-pill {
    min-height: 34px !important;
    padding: 6px 10px !important;
    font-size: 11px !important;
  }

  .candidateSectionNav {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    margin-bottom: 8px !important;
  }

  .candidateSectionNav button {
    padding: 7px 8px !important;
    border-radius: 8px !important;
  }

  .profileCard {
    display: grid !important;
    align-items: center !important;
  }
  .profileContact,
  .profileAcademic,
  .profileLabel { font-size: 10px !important; }

  .dashGrid {
    grid-template-columns: repeat(2, minmax(0,1fr)) !important;
  }

  .dashStat {
    border-radius: 9px !important;
  }

  .studentPanelHeading,
  .hoa-admin-section-head,
  .hoa-master-head {
    gap: 7px !important;
    align-items: flex-start !important;
  }

  .studentPanelHeading h3,
  .hoa-admin-section-head h3,
  .hoa-master-head h3 {
    font-size: 16px !important;
    line-height: 1.22 !important;
    margin-bottom: 3px !important;
  }

  .studentPanelHeading p,
  .hoa-admin-section-head p,
  .hoa-master-head p {
    font-size: 11px !important;
    line-height: 1.35 !important;
  }

  .testCountBadge,
  .hoa-admin-count,
  .statusBadge,
  .resultBadge {
    font-size: 9px !important;
    padding: 4px 7px !important;
    border-radius: 999px !important;
    white-space: nowrap !important;
  }

  /* ---------- General controls ---------- */
  button.primary,
  button.secondary,
  button.btn,
  .hoa-admin-actions button,
  .resultToolbar button,
  .testWiseToolbar button {
    min-height: 42px !important;
    padding: 8px 11px !important;
    border-radius: 8px !important;
    font-size: 12px !important;
  }

  .hoa-admin-actions,
  .resultToolbar,
  .testWiseToolbar {
    gap: 7px !important;
  }

  input,
  select,
  textarea {
    font-size: 13px !important;
  }

  /* ---------- Admin navigation: phone-friendly horizontal bar ---------- */
  .adminSectionNav {
    width: 100% !important;
    display: flex !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    padding: 2px 1px 6px !important;
    margin-bottom: 8px !important;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
  }

  .adminSectionNav button {
    flex: 0 0 auto !important;
    border-radius: 8px !important;
    white-space: nowrap !important;
  }

  #adminOnlyDashboard > .dashPanel {
    padding: 10px !important;
    margin-bottom: 8px !important;
  }

  #adminOnlyDashboard > .dashPanel .brand-logo {
    width: 34px !important;
    height: 34px !important;
  }

  #adminOnlyDashboard > .dashPanel b { font-size: 13px !important; }
  #adminOnlyDashboard > .dashPanel div div { font-size: 10px !important; }

  /* ---------- Admin forms ---------- */
  .hoa-admin-form-grid,
  .adminGrid,
  .adminResultCards {
    grid-template-columns: 1fr !important;
    gap: 8px !important;
  }

  .hoa-admin-form-grid label,
  .adminGrid label {
    font-size: 11px !important;
  }

  .hoa-admin-form-grid input,
  .hoa-admin-form-grid select,
  .hoa-admin-form-grid textarea,
  .adminGrid input,
  .adminGrid select,
  .adminGrid textarea,
  #csvFile,
  #csvPaste,
  #titleInput,
  #durationInput,
  #marksInput,
  #negativeInput,
  #accessTypeInput {
    min-height: 42px !important;
    padding: 8px 9px !important;
    font-size: 13px !important;
    box-sizing: border-box !important;
  }

  .hoa-admin-actions {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
  }

  .hoa-admin-actions span {
    grid-column: 1 / -1 !important;
    font-size: 11px !important;
  }

  /* Master stats / engagement */
  .hoa-master-stats,
  .hoa-master-sections,
  .hoa-master-engagement {
    grid-template-columns: repeat(2, minmax(0,1fr)) !important;
    gap: 7px !important;
  }

  /* Candidate lists: prefer cards over dense rows. */
  .candidateAdminSection {
    margin-top: 10px !important;
    padding-top: 10px !important;
  }

  /* ---------- Tables / results ---------- */
  .resultTableWrap,
  .testWiseTemplatePreview {
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
  }

  .adminResultCard {
    min-height: 68px !important;
    padding: 8px !important;
  }

  .adminResultCard b { font-size: 18px !important; }
  .adminResultCard span { font-size: 10px !important; }

  /* ---------- Exam ---------- */
  

  

  

  

  

  

  

  

  

  /* ---------- Result ---------- */
  #result h1,
  #result .resultTitle { font-size: 20px !important; line-height: 1.15 !important; }
  #result .score,
  #result .resultScore { font-size: 24px !important; line-height: 1.05 !important; }

  #result .resultGrid,
  #result .metricsGrid,
  #result .resultStats,
  #result .adminResultCards {
    grid-template-columns: repeat(2, minmax(0,1fr)) !important;
    gap: 7px !important;
  }

  #result .metricCard,
  #result .statCard,
  #result .resultCard {
    min-height: 68px !important;
    padding: 9px !important;
    border-radius: 9px !important;
  }

  #result .metricCard b,
  #result .statCard b,
  #result .resultCard b { font-size: 16px !important; }

  #result .metricCard span,
  #result .statCard span,
  #result .resultCard span { font-size: 10px !important; }
  #result .reviewHeading p { font-size: 10px !important; }

  /* ---------- Connect / social footer ---------- */
  .hoa-v619-social-bar {
    border-radius: 10px !important;
  }

  .hoa-v619-brand-name { font-size: 11px !important; }
  .hoa-v619-brand-tag,
  .hoa-v619-follow-label { font-size: 9px !important; }

  .hoa-v619-actions { gap: 5px !important; }

  .hoa-v619-social,
  .hoa-v619-admin {
    width: 40px !important;
    height: 40px !important;
    min-width: 40px !important;
    min-height: 40px !important;
    border-radius: 9px !important;
  }

  .hoa-v653-connect-toggle {
    min-width: 42px !important;
    min-height: 42px !important;
    border-radius: 50% !important;
  }

  .hoa-v653-connect-grid {
    justify-items: start !important;
  }

  /* ---------- Feedback / toast ---------- */
  .toast,
  .hoa-toast,
  .feedback-toast,
  .alert {
    width: calc(100vw - 20px) !important;
    max-width: calc(100vw - 20px) !important;
    font-size: 11px !important;
    padding: 9px 10px !important;
    border-radius: 9px !important;
  }
}

@media (max-width: 420px) {
  .container, main.container { padding-left: 9px !important; padding-right: 9px !important; }

  .hoa-v648-option-card {
    grid-template-columns: 34px 1fr auto !important;
    column-gap: 8px !important;
    padding: 9px 10px !important;
  }
  .hoa-v648-option-icon { width: 34px !important; height: 34px !important; font-size: 18px !important; }
  .hoa-v648-option-title { font-size: 13px !important; }
  .hoa-v648-option-copy { font-size: 10px !important; }

  .dashGrid,
  .hoa-master-stats,
  .hoa-master-sections,
  .hoa-master-engagement,
  #result .resultGrid,
  #result .metricsGrid,
  #result .resultStats {
    gap: 6px !important;
  }

  .dashStat { min-height: 66px !important; padding: 7px !important; }
  .dashStat b { font-size: 17px !important; }
  .dashStat > span:last-child { font-size: 8.5px !important; }

  .adminSectionNav button { min-width: 76px !important; font-size: 10.5px !important; }

  .hoa-admin-actions { grid-template-columns: 1fr !important; }
  .hoa-admin-actions span { grid-column: 1 !important; }

  .hoa-v619-social-bar { align-items: center !important; }
  .hoa-v619-brand-tag { display: none !important; }
  .hoa-v619-follow-label { display: none !important; }
}

@media (max-width: 360px) {

  .hoa-v648-option-card { grid-template-areas: "icon title" "icon copy" !important; }

  .dashGrid { grid-template-columns: 1fr 1fr !important; }

  .hoa-v619-social-bar { justify-content: center !important; }
  .hoa-v619-brand { display: none !important; }
}


/* ================================================================
   HOA MOBILE UI V2.1 — PHONE REFINEMENT PASS
   Scoped strictly to <=600px. Desktop/laptop rules are untouched.
   ================================================================ */
@media (max-width: 600px) {
  :root {
    --hoa-m2-blue: #0b2e52;
    --hoa-m2-blue-2: #144a7d;
    --hoa-m2-gold: #d4a72c;
    --hoa-m2-border: #d7e4ef;
    --hoa-m2-bg: #f6f9fc;
    --hoa-m2-text: #17324d;
    --hoa-m2-muted: #64798d;
    --hoa-m2-radius: 10px;
  }

  /* -------- Phone spacing rhythm -------- */
  body { background: var(--hoa-m2-bg); }
  .container, main.container { padding-left: 10px !important; padding-right: 10px !important; }
  .card, .dashPanel, .hoa-admin-content-panel, .hoa-master-panel, .profileCard {
    padding: 10px !important;
    border-radius: var(--hoa-m2-radius) !important;
  }
  .card { margin-bottom: 8px !important; }

  /* -------- Typography -------- */
  h1 { font-size: 20px !important; line-height: 1.15 !important; }
  h2 { font-size: 18px !important; line-height: 1.18 !important; }
  h3 { font-size: 16px !important; line-height: 1.22 !important; }
  h4 { font-size: 14px !important; line-height: 1.25 !important; }
  p { line-height: 1.4 !important; }
  small { line-height: 1.3 !important; }

  /* Keep labels readable; do not over-shrink touch UI. */
  label { font-size: 12px !important; }
  input, select, textarea { font-size: 13px !important; }

  /* -------- Icon consistency -------- */
  .hoa-v6058-login-icon,
  .hoa-v648-option-icon,
  .hoa-front-feature-icon,
  .hoa-front-feature-box .icon,
  .dashStatIcon,
  .adminSectionNav button,
  .candidateSectionNav button,
  .hoa-v653-connect-icon {
    line-height: 1 !important;
    font-variant-emoji: text !important;
  }

  .hoa-v648-option-icon,
  .hoa-front-feature-icon,
  .hoa-front-feature-box .icon {
    flex: 0 0 auto !important;
  }

  /* -------- Home -------- */
  body.hoa-front-page #hoaFrontPage { padding: 10px !important; }
  body.hoa-public-front #hoaFrontPage .hoa-front-title {
    font-size: clamp(24px, 7.2vw, 29px) !important;
    margin: 4px 0 7px !important;
  }
  .hoa-front-feature-grid,
  .hoa-v648-option-grid,
  .hoa-v648-free-grid { gap: 7px !important; }
  .hoa-v648-option-card {
    grid-template-columns: 36px minmax(0,1fr) auto !important;
    padding: 9px 10px !important;
    column-gap: 8px !important;
    min-height: 0 !important;
  }
  .hoa-v648-option-icon { width: 36px !important; height: 36px !important; font-size: 19px !important; }
  .hoa-v648-option-title { font-size: 13.5px !important; }
  .hoa-v648-option-copy { font-size: 10.5px !important; }
  .hoa-v648-option-link { font-size: 10px !important; }
  .hoa-front-feature-box { padding: 9px 10px !important; }
  .hoa-front-feature-box .icon { width: 32px !important; height: 32px !important; font-size: 17px !important; }
  .hoa-front-feature-box h3 { font-size: 13.5px !important; }
  .hoa-front-feature-box p { font-size: 10.5px !important; }

  /* -------- Login / forms -------- */
  #authScreen { margin: 14px auto !important; }
  #authScreen .card, #authScreen .dashPanel { padding: 10px !important; }
  #authScreen .authTab { min-height: 44px !important; font-size: 12px !important; padding: 8px !important; }
  #authScreen input, #authScreen select, #authScreen textarea { min-height: 42px !important; }
  .hoa-login-panel, .hoa-v70-form, .hoa-v70-content-editor { gap: 8px !important; }
  .formGroup { margin-bottom: 8px !important; }

  /* -------- Student dashboard -------- */
  .profileCard {
    grid-template-columns: 36px minmax(0,1fr) auto !important;
    gap: 7px !important;
  }
  .profileCard .avatar { width: 36px !important; height: 36px !important; font-size: 15px !important; }
  .profileNameText { font-size: 13.5px !important; }
  .profileContact, .profileAcademic, .profileLabel { font-size: 9.5px !important; }
  .dashGrid { gap: 6px !important; }
  .dashStat { min-height: 62px !important; padding: 7px !important; }
  .dashStatIcon { font-size: 15px !important; }
  .dashStat b { font-size: 16px !important; }
  .dashStat > span:last-child { font-size: 8.5px !important; }
  .studentPanelHeading, .hoa-admin-section-head, .hoa-master-head { gap: 5px !important; }
  .studentPanelHeading h3, .hoa-admin-section-head h3, .hoa-master-head h3 { font-size: 15px !important; }
  .studentPanelHeading p, .hoa-admin-section-head p, .hoa-master-head p { font-size: 10px !important; }
  .candidateSectionNav { gap: 5px !important; }
  .candidateSectionNav button { min-height: 42px !important; font-size: 11px !important; }

  /* -------- Admin: compact information architecture -------- */
  .adminSectionNav {
    gap: 5px !important;
    padding-bottom: 5px !important;
    scroll-snap-type: x proximity;
  }
  .adminSectionNav button {
    min-width: 74px !important;
    min-height: 40px !important;
    padding: 6px 8px !important;
    font-size: 10.5px !important;
    scroll-snap-align: start;
  }
  .hoa-master-stats, .hoa-master-sections, .hoa-master-engagement { gap: 6px !important; }
  .hoa-master-muted { font-size: 9.5px !important; }
  .hoa-master-empty { font-size: 11px !important; }
  .hoa-admin-form-grid, .adminGrid { gap: 7px !important; }
  .hoa-admin-form-grid input, .hoa-admin-form-grid select, .hoa-admin-form-grid textarea,
  .adminGrid input, .adminGrid select, .adminGrid textarea { min-height: 42px !important; }
  .hoa-admin-wide { grid-column: 1 !important; }
  .hoa-admin-actions { gap: 6px !important; }

  /* -------- Data-heavy admin areas -------- */
  .resultTableWrap, .testWiseTemplatePreview {
    border-radius: 9px !important;
    max-width: 100% !important;
  }
  .resultTable { font-size: 10px !important; }
  .resultTable th, .resultTable td { padding: 7px 6px !important; }
  .studentAdminRow { padding: 8px !important; }
  .studentAdminRow button { min-height: 40px !important; }

  /* -------- Exam -------- */
  
  
  
  
  
  

  /* -------- Results -------- */
  #result h1, #result .resultTitle { font-size: 19px !important; }
  #result .score, #result .resultScore { font-size: 23px !important; }
  #result .resultGrid, #result .metricsGrid, #result .resultStats { gap: 6px !important; }
  #result .metricCard, #result .statCard, #result .resultCard {
    min-height: 62px !important;
    padding: 8px !important;
  }
  #result .metricCard b, #result .statCard b, #result .resultCard b { font-size: 15px !important; }
  #result .metricCard span, #result .statCard span, #result .resultCard span { font-size: 9px !important; }
  #result .reviewHeading h3 { font-size: 15px !important; }

  /* -------- Footer / connect -------- */
  .hoa-v619-social-bar { padding: 6px 7px !important; gap: 6px !important; }
  .hoa-v619-social, .hoa-v619-admin { width: 40px !important; height: 40px !important; }
  .hoa-v653-connect-toggle { width: 42px !important; height: 42px !important; }
  .hoa-v653-connect-link { font-size: 10.5px !important; }

  /* -------- Toasts / alerts -------- */
  .toast, .hoa-toast, .feedback-toast, .alert {
    font-size: 11px !important;
    line-height: 1.3 !important;
  }
}

@media (max-width: 390px) {
  .container, main.container { padding-left: 8px !important; padding-right: 8px !important; }
  .card, .dashPanel, .hoa-admin-content-panel, .hoa-master-panel, .profileCard { padding: 9px !important; }
  .hoa-v648-option-card { grid-template-columns: 34px minmax(0,1fr) auto !important; }
  .hoa-v648-option-icon { width: 34px !important; height: 34px !important; font-size: 18px !important; }
  .adminSectionNav button { min-width: 70px !important; font-size: 10px !important; }
  .dashStat { min-height: 60px !important; }
  
}

@media (max-width: 360px) {
  body { font-size: 13px !important; }
  .hoa-v648-option-link { display: none !important; }
  .hoa-v648-option-card { grid-template-columns: 32px minmax(0,1fr) !important; }
  .hoa-v648-option-icon { width: 32px !important; height: 32px !important; }
  .adminSectionNav button { min-width: 66px !important; }
  .dashStat > span:last-child { font-size: 8px !important; }
}


/* ================================================================
   HOA MOBILE UI V2.2 — exam/player/free-content corrections
   Scoped presentation changes plus one shared-runtime navigation reset.
   ================================================================ */
@media (max-width: 600px) {
  /* ---------- Video player: expose the full control set on phones ---------- */
  .hoa-custom-player .hoa-player-controls {
    display:flex !important;
    flex-wrap:wrap !important;
    align-content:flex-end !important;
    align-items:center !important;
    row-gap:5px !important;
    column-gap:5px !important;
    padding:8px !important;
    min-height:72px !important;
    box-sizing:border-box !important;
  }
  .hoa-custom-player .hoa-player-btn,
  .hoa-custom-player .hoa-player-speed-button,
  .hoa-custom-player .hoa-player-quality-button {
    flex:0 0 auto !important;
    min-width:36px !important;
    width:auto !important;
    height:36px !important;
    min-height:36px !important;
    padding:0 8px !important;
    font-size:11px !important;
  }
  .hoa-custom-player .hoa-player-time {
    order:4 !important;
    min-width:62px !important;
    font-size:10px !important;
  }
  .hoa-custom-player .hoa-player-progress {
    order:10 !important;
    flex:1 1 100% !important;
    width:100% !important;
    min-width:0 !important;
    margin:0 2px !important;
  }
  .hoa-custom-player .hoa-player-btn[data-act="mute"] { order:5 !important; }
  .hoa-custom-player .hoa-player-volume {
    order:6 !important;
    display:block !important;
    width:52px !important;
    min-width:52px !important;
    flex:0 0 52px !important;
  }
  .hoa-custom-player .hoa-player-speed-wrap { order:7 !important; }
  .hoa-custom-player .hoa-player-quality-wrap { order:8 !important; }
  .hoa-custom-player .hoa-player-fullscreen { order:9 !important; }
  .hoa-custom-player .hoa-player-speed-button,
  .hoa-custom-player .hoa-player-quality-button {
    min-width:48px !important;
    font-size:10px !important;
  }
  .hoa-custom-player .hoa-player-quality-button { min-width:62px !important; }
  .hoa-custom-player .hoa-player-speed-menu,
  .hoa-custom-player .hoa-player-quality-menu {
    bottom:42px !important;
    max-width:calc(100vw - 24px) !important;
  }
  .hoa-custom-player .hoa-player-brand { max-width:76% !important; }
  .hoa-custom-player .hoa-player-title { white-space:normal !important; font-size:12px !important; }

  /* ---------- Exam typography ---------- */
  
  
  

  /* ---------- Exam question palette: all numbers remain reachable ---------- */
  
  
  
  
  

  /* ---------- Exam action bar ---------- */
  
  
  
  
  
  

  /* ---------- Submitted result: make Back to Dashboard always visible ---------- */
  #result .resultBackBtn {
    display:flex !important;
    visibility:visible !important;
    opacity:1 !important;
    width:calc(100% - 20px) !important;
    min-height:42px !important;
    margin:8px 10px 12px !important;
    align-items:center !important;
    justify-content:center !important;
    white-space:nowrap !important;
  }
}

@media (max-width:390px) {
}

/* HOA MOBILE UI V2.2.1 — compact video controls only */
@media (max-width:600px){
  .hoa-custom-player .hoa-player-controls{
    gap:3px !important;
    row-gap:3px !important;
    column-gap:3px !important;
    padding:5px 6px !important;
    min-height:58px !important;
  }
  .hoa-custom-player .hoa-player-btn,
  .hoa-custom-player .hoa-player-speed-button,
  .hoa-custom-player .hoa-player-quality-button{
    height:30px !important;
    min-height:30px !important;
    font-size:10px !important;
    padding:0 5px !important;
    border-radius:8px !important;
  }
  .hoa-custom-player .hoa-player-btn{
    width:30px !important;
    min-width:30px !important;
  }
  .hoa-custom-player .hoa-player-time{
    min-width:50px !important;
    font-size:9px !important;
  }
  .hoa-custom-player .hoa-player-volume{
    width:38px !important;
    min-width:38px !important;
    flex:0 0 38px !important;
  }
  .hoa-custom-player .hoa-player-speed-button{
    min-width:40px !important;
  }
  .hoa-custom-player .hoa-player-quality-button{
    min-width:48px !important;
  }
  .hoa-custom-player .hoa-player-center-play{
    width:48px !important;
    height:48px !important;
    font-size:20px !important;
  }
  .hoa-custom-player .hoa-player-brand img{
    width:28px !important;
    height:28px !important;
  }
  .hoa-custom-player .hoa-player-title{
    font-size:10px !important;
    line-height:1.15 !important;
  }
  .hoa-custom-player .hoa-player-subtitle{
    font-size:8px !important;
    line-height:1.1 !important;
  }
  .hoa-custom-player .hoa-player-progress{
    margin:0 !important;
  }
}
@media (max-width:390px){
  .hoa-custom-player .hoa-player-controls{padding:4px 5px !important;}
  .hoa-custom-player .hoa-player-btn,
  .hoa-custom-player .hoa-player-speed-button,
  .hoa-custom-player .hoa-player-quality-button{
    height:28px !important;
    min-height:28px !important;
  }
  .hoa-custom-player .hoa-player-btn{width:28px !important;min-width:28px !important;}
  .hoa-custom-player .hoa-player-time{min-width:48px !important;font-size:8.5px !important;}
  .hoa-custom-player .hoa-player-volume{width:34px !important;min-width:34px !important;flex-basis:34px !important;}
  .hoa-custom-player .hoa-player-speed-button{min-width:38px !important;}
  .hoa-custom-player .hoa-player-quality-button{min-width:44px !important;}
}


/* V2.2.6 — Mobile contact palette: adjacent icon buttons, no inter-button spacing. */
@media (max-width:760px){
  .hoa-v653-connect-grid{
    display:grid !important;
    margin-left:auto !important;
    margin-right:auto !important;
    padding:0 !important;
    justify-items:start !important;
  }
}
@media (max-width:390px){
}

/* V2.2.7 — Mobile contact icons: visually tight, no visible inter-button gaps. */
@media (max-width:760px){
  .hoa-v653-connect-grid{
    grid-template-columns:40px 40px !important;
    width:80px !important;
    max-width:80px !important;
    gap:0 !important;
    column-gap:0 !important;
    row-gap:0 !important;
    justify-content:center !important;
    align-items:center !important;
  }
  .hoa-v653-connect-link{
    width:40px !important;
    height:40px !important;
    min-width:40px !important;
    min-height:40px !important;
    margin:0 -1px !important;
    padding:0 !important;
    border-radius:6px !important;
  }
}
@media (max-width:390px){
}

/* V2.2.8 — Final mobile Contact Us popup compaction.
   Scoped to phone widths only; desktop contact UI is unchanged. */
@media (max-width: 600px){
  .hoa-v653-connect-panel{
    width:160px !important;
    max-width:160px !important;
    padding:6px !important;
    border-radius:10px !important;
  }
  .hoa-v653-connect-panel-title{
    font-size:11px !important;
    line-height:1.2 !important;
    padding:2px 4px 5px !important;
    margin:0 !important;
  }
  .hoa-v653-connect-grid{
    width:76px !important;
    max-width:76px !important;
    grid-template-columns:38px 38px !important;
    gap:0 !important;
    column-gap:0 !important;
    row-gap:0 !important;
    margin:0 auto !important;
    justify-content:center !important;
    align-items:start !important;
  }
  .hoa-v653-connect-link{
    width:38px !important;
    height:38px !important;
    min-width:38px !important;
    min-height:38px !important;
    margin:0 !important;
    padding:0 !important;
    border-radius:5px !important;
  }
  .hoa-v653-connect-link svg,
  .hoa-v653-placeholder-icon,
  .hoa-v653-placeholder-icon svg{
    width:18px !important;
    height:18px !important;
    min-width:18px !important;
  }
}
@media (max-width:390px){
  .hoa-v653-connect-panel-title{
    padding:1px 3px 4px !important;
  }
}

/* V2.2.9 — Ultra-compact mobile Contact Us popup. */
@media (max-width:600px){
  .hoa-v653-connect-panel{
    margin:0 !important;
    border-radius:8px !important;
  }
  .hoa-v653-connect-panel-title{
    min-height:0 !important;
  }
}
@media (max-width:390px){
}

/* V2.2.10 — Mobile Contact Us touch targets + subtle raised icon effect. */
@media (max-width:600px){
  .hoa-v653-connect-panel{
    width:128px !important;
    max-width:128px !important;
    min-width:128px !important;
    padding:6px !important;
    box-sizing:border-box !important;
  }
  .hoa-v653-connect-panel-title{
    font-size:10px !important;
    line-height:1.15 !important;
    margin:0 0 5px !important;
    padding:0 1px !important;
  }
  .hoa-v653-connect-grid{
    display:grid !important;
    grid-template-columns:40px 40px !important;
    grid-auto-rows:40px !important;
    width:84px !important;
    max-width:84px !important;
    min-width:84px !important;
    gap:4px !important;
    row-gap:4px !important;
    column-gap:4px !important;
    margin:0 auto !important;
    padding:0 !important;
    justify-content:center !important;
    align-items:center !important;
  }
  .hoa-v653-connect-link{
    box-sizing:border-box !important;
    width:40px !important;
    height:40px !important;
    min-width:40px !important;
    min-height:40px !important;
    margin:0 !important;
    padding:0 !important;
    border-radius:7px !important;
    border-width:1px !important;
    box-shadow:
      0 2px 5px rgba(6,26,45,.16),
      0 1px 0 rgba(255,255,255,.95) inset !important;
    transform:translateY(0) !important;
    transition:transform .12s ease,box-shadow .12s ease !important;
  }
  .hoa-v653-connect-link:active{
    transform:translateY(1px) !important;
    box-shadow:
      0 1px 2px rgba(6,26,45,.18),
      0 1px 0 rgba(255,255,255,.9) inset !important;
  }
  .hoa-v653-connect-link svg,
  .hoa-v653-placeholder-icon,
  .hoa-v653-placeholder-icon svg{
    width:17px !important;
    height:17px !important;
    min-width:17px !important;
    filter:drop-shadow(0 1px 1px rgba(6,26,45,.22)) !important;
    transform:translateY(-.5px) !important;
  }
}
@media (max-width:390px){
  .hoa-v653-connect-panel{
    width:124px !important;
    max-width:124px !important;
    min-width:124px !important;
    padding:5px !important;
  }
  .hoa-v653-connect-panel-title{
    font-size:9.5px !important;
    margin-bottom:4px !important;
  }
  .hoa-v653-connect-grid{
    grid-template-columns:38px 38px !important;
    grid-auto-rows:38px !important;
    width:80px !important;
    max-width:80px !important;
    min-width:80px !important;
    gap:4px !important;
    row-gap:4px !important;
    column-gap:4px !important;
  }
  .hoa-v653-connect-link{
    width:38px !important;
    height:38px !important;
    min-width:38px !important;
    min-height:38px !important;
  }
  .hoa-v653-connect-link svg,
  .hoa-v653-placeholder-icon,
  .hoa-v653-placeholder-icon svg{
    width:16px !important;
    height:16px !important;
    min-width:16px !important;
  }
}

/* ================================================================
   HOA MOBILE UI V2.3 — Student Area compact choice cards
   Scoped strictly to <=600px. Desktop/laptop layout is unchanged.
   ================================================================ */
@media (max-width:600px){
  body.hoa-public-front #hoaV648StudentOptions .hoa-v648-section-head{
    margin-bottom:10px !important;
    text-align:center !important;
  }
  body.hoa-public-front #hoaV648StudentOptions .hoa-v648-section-head h2{
    font-size:20px !important;
    line-height:1.15 !important;
    margin:3px 0 5px !important;
  }
  body.hoa-public-front #hoaV648StudentOptions .hoa-v648-section-head p{
    font-size:10.5px !important;
    line-height:1.35 !important;
    margin:0 !important;
  }
  body.hoa-public-front #hoaV648StudentOptions .hoa-v648-option-grid{
    grid-template-columns:1fr !important;
  }
  body.hoa-public-front #hoaV648StudentOptions .hoa-v648-option-card{
    box-sizing:border-box !important;
    height:auto !important;
    display:grid !important;
    grid-template-areas:
      "icon title link"
      "icon copy  link" !important;
    column-gap:9px !important;
    row-gap:2px !important;
    align-items:center !important;
    text-align:left !important;
    border:1px solid rgba(29,93,150,.20) !important;
  }
  body.hoa-public-front #hoaV648StudentOptions .hoa-v648-option-card:nth-child(1){
    border-left:3px solid #1d5d96 !important;
  }
  body.hoa-public-front #hoaV648StudentOptions .hoa-v648-option-card:nth-child(2){
    border-left:3px solid #d4a72c !important;
  }
  body.hoa-public-front #hoaV648StudentOptions .hoa-v648-option-card:nth-child(3){
    border-left:3px solid #1d5d96 !important;
  }
  body.hoa-public-front #hoaV648StudentOptions .hoa-v648-option-icon{
    grid-area:icon !important;
    display:grid !important;
    place-items:center !important;
    margin:0 !important;
    line-height:1 !important;
    background:linear-gradient(145deg,#ffffff,#edf4fb) !important;
    box-shadow:0 2px 5px rgba(6,26,45,.12),0 1px 0 rgba(255,255,255,.95) inset !important;
  }
  body.hoa-public-front #hoaV648StudentOptions .hoa-v648-option-title{
    grid-area:title !important;
    line-height:1.2 !important;
    margin:0 !important;
  }
  body.hoa-public-front #hoaV648StudentOptions .hoa-v648-option-copy{
    grid-area:copy !important;
    line-height:1.25 !important;
    margin:0 !important;
    color:#5f7184 !important;
  }
  body.hoa-public-front #hoaV648StudentOptions .hoa-v648-option-link{
    grid-area:link !important;
    align-self:center !important;
    justify-self:end !important;
    white-space:nowrap !important;
    line-height:1 !important;
    background:#0b2e52 !important;
    color:#fff !important;
    text-decoration:none !important;
    box-shadow:0 2px 4px rgba(6,26,45,.12) !important;
  }
  body.hoa-public-front #hoaV648StudentOptions .hoa-v648-option-card:nth-child(2) .hoa-v648-option-link{
    background:#c8941e !important;
  }
}

@media (max-width:390px){
  body.hoa-public-front #hoaV648StudentOptions{
    padding:10px 7px !important;
  }
  body.hoa-public-front #hoaV648StudentOptions .hoa-v648-section-head h2{
    font-size:18px !important;
  }
  body.hoa-public-front #hoaV648StudentOptions .hoa-v648-section-head p{
    font-size:10px !important;
  }
  body.hoa-public-front #hoaV648StudentOptions .hoa-v648-option-icon{
    border-radius:8px !important;
  }
}

@media (max-width:360px){
  body.hoa-public-front #hoaV648StudentOptions .hoa-v648-option-card{
    min-height:68px !important;
    grid-template-columns:30px minmax(0,1fr) auto !important;
    column-gap:7px !important;
    padding:7px 8px !important;
  }
  body.hoa-public-front #hoaV648StudentOptions .hoa-v648-option-icon{
    width:30px !important;
    height:30px !important;
    font-size:15px !important;
  }
  body.hoa-public-front #hoaV648StudentOptions .hoa-v648-option-title{
    font-size:12.5px !important;
  }
  body.hoa-public-front #hoaV648StudentOptions .hoa-v648-option-copy{
    font-size:9px !important;
  }
  body.hoa-public-front #hoaV648StudentOptions .hoa-v648-option-link{
    font-size:8.7px !important;
    padding:5px 6px !important;
  }
}

/* ================================================================
   HOA MOBILE UI V2.4 — Native HOA Blue + Golden Yellow mobile theme
   Scoped strictly to <=600px. Desktop/laptop styles are untouched.
   ================================================================ */
@media (max-width:600px){
  :root{
    --hoa-native-blue:#0B2E52;
    --hoa-native-blue-2:#123F6D;
    --hoa-native-gold:#D4A72C;
    --hoa-native-gold-deep:#C8941E;
    --hoa-native-gold-soft:#FFF7D9;
    --hoa-native-surface:#F7FAFE;
    --hoa-native-border:#C9DBED;
    --hoa-native-text:#132B43;
    --hoa-native-muted:#64798D;
  }

  body{
    color:var(--hoa-native-text) !important;
    background:linear-gradient(180deg,#F7FAFE 0%,#EEF5FB 100%) !important;
  }

  h1,h2,h3,h4,h5,h6,
  .section-title,
  .page-title,
  .card-title,
  .hoa-front-title,
  .hoa-v648-section-head h2,
  .hoa-v653-connect-panel-title{
    color:var(--hoa-native-blue) !important;
  }

  a,
  .link,
  .nav-link,
  .tab-link,
  .hoa-v648-option-link,
  .hoa-v648-free-card a{
    color:var(--hoa-native-blue) !important;
  }

  a:hover,
  a:focus,
  .link:hover,
  .nav-link:hover,
  .tab-link:hover{
    color:var(--hoa-native-gold-deep) !important;
  }

  button.primary,
  .primary-btn,
  .btn-primary,
  .btn-primary:hover,
  .hoa-primary,
  [class*="primary"]:not(input):not(textarea),
  .hoa-v648-option-link{
    background:var(--hoa-native-blue) !important;
    border-color:var(--hoa-native-blue) !important;
    color:#fff !important;
  }

  button.gold,
  .gold-btn,
  .btn-gold,
  .hoa-gold,
  .accent-btn{
    background:var(--hoa-native-gold) !important;
    border-color:var(--hoa-native-gold-deep) !important;
    color:#17263A !important;
  }

  input,
  select,
  textarea,
  .form-control{
    border-color:var(--hoa-native-border) !important;
    background:#fff !important;
    color:var(--hoa-native-text) !important;
  }

  input:focus,
  select:focus,
  textarea:focus,
  .form-control:focus{
    border-color:var(--hoa-native-gold) !important;
    box-shadow:0 0 0 2px rgba(212,167,44,.18) !important;
    outline:none !important;
  }

  .card,
  .dashPanel,
  .profileCard,
  .hoa-admin-content-panel,
  .hoa-master-panel,
  .hoa-v70-admin-panel,
  .hoa-v70-result-box,
  .hoa-front-feature-box,
  .hoa-v648-option-card,
  .hoa-v648-free-card{
    background:var(--hoa-native-surface) !important;
    border-color:var(--hoa-native-border) !important;
  }

  .hoa-v648-option-card,
  .hoa-v648-free-card{
    box-shadow:0 2px 9px rgba(11,46,82,.08) !important;
  }

  .hoa-v648-option-card:nth-child(odd){
    border-left-color:var(--hoa-native-blue-2) !important;
  }
  .hoa-v648-option-card:nth-child(even){
    border-left-color:var(--hoa-native-gold) !important;
  }

  .hoa-v648-option-icon,
  .hoa-front-feature-icon,
  .hoa-front-feature-box .icon{
    color:var(--hoa-native-blue) !important;
    background:linear-gradient(145deg,#fff,#EDF4FB) !important;
    border:1px solid var(--hoa-native-border) !important;
    box-shadow:0 2px 5px rgba(11,46,82,.10),0 1px 0 rgba(255,255,255,.96) inset !important;
  }

  .hoa-v648-option-card:nth-child(even) .hoa-v648-option-icon,
  .hoa-front-feature-box:nth-child(even) .icon{
    color:var(--hoa-native-gold-deep) !important;
  }

  .section-head,
  .section-header,
  .hoa-v648-section-head{
    border-color:var(--hoa-native-border) !important;
  }

  .active,
  .is-active,
  .selected,
  .tab.active,
  .nav-tab.active,
  [aria-selected="true"]{
    border-color:var(--hoa-native-gold) !important;
  }

  .tab.active,
  .nav-tab.active,
  [aria-selected="true"]{
    background:var(--hoa-native-blue) !important;
    color:#fff !important;
  }

  .progress-bar,
  .hoa-v70-progress span,
  .progress-fill{
    background:var(--hoa-native-gold) !important;
  }

  .progress-track,
  .hoa-v70-progress{
    background:#D8E7F5 !important;
  }

  .badge,
  .chip,
  .statusBadge{
    border-color:rgba(11,46,82,.16) !important;
  }

  .hoa-v653-connect-panel{
    border-color:var(--hoa-native-border) !important;
    background:#fff !important;
    box-shadow:0 12px 28px rgba(11,46,82,.16) !important;
  }

  .hoa-v653-connect-link{
    border-color:var(--hoa-native-border) !important;
    background:#fff !important;
  }

  .hoa-v653-connect-link:hover,
  .hoa-v653-connect-link:focus-visible{
    border-color:var(--hoa-native-gold) !important;
    box-shadow:0 3px 7px rgba(11,46,82,.15),0 0 0 2px rgba(212,167,44,.12) !important;
  }

  .hoa-v6058-nav-login,
  #studentHeaderLogout,
  .adminSectionNav button,
  .candidateSectionNav button{
    border-color:var(--hoa-native-border) !important;
  }

  .student-nav .active,
  .adminSectionNav .active,
  .candidateSectionNav .active{
    background:var(--hoa-native-blue) !important;
    color:#fff !important;
    border-color:var(--hoa-native-gold) !important;
  }

  /* Result */
  .hoa-v70-result-box,
  .result-box,
  .result-card{
    border-top:3px solid var(--hoa-native-gold) !important;
  }

  .hoa-v70-stat b,
  .result-score,
  .score-value{
    color:var(--hoa-native-blue) !important;
  }

  /* Admin */
  .admin-header,
  .hoa-admin-header,
  .adminSectionNav{
    background:var(--hoa-native-blue) !important;
    color:#fff !important;
  }

  .adminSectionNav button{
    color:#fff !important;
    background:transparent !important;
  }

  .adminSectionNav button.active{
    background:var(--hoa-native-gold) !important;
    color:#17263A !important;
  }
}

@media (max-width:390px){
  /* Keep the native palette equally strong on small phones. */
  .adminSectionNav button.active,
  .tab.active,
  .nav-tab.active,
  [aria-selected="true"]{
    background:var(--hoa-native-blue) !important;
    color:#fff !important;
    border-bottom-color:var(--hoa-native-gold) !important;
  }
}
/* HOA V2.5 — feature icons are inline SVG, not emoji. */
.hoa-front-feature-box .icon{font-size:0 !important;}
.hoa-front-feature-box .icon svg{display:block !important;}

/* HOA Mobile UI V2.6 — Student Login final compact override.
   Scoped only to the Student Login mobile surface. Desktop is untouched. */
@media (max-width: 600px){
  body.hoa-public-auth.hoa-student-auth .hoa-login-page-top{
    min-height:58px !important;
    height:58px !important;
    padding:0 12px !important;
  }

  body.hoa-public-auth.hoa-student-auth .hoa-login-page-brand{
    gap:8px !important;
  }
  body.hoa-public-auth.hoa-student-auth .hoa-login-page-brand img{
    width:36px !important;
    height:36px !important;
  }
  body.hoa-public-auth.hoa-student-auth .hoa-login-page-brand strong{
    font-size:13px !important;
  }
  body.hoa-public-auth.hoa-student-auth .hoa-login-page-back{
    min-height:36px !important;
    padding:0 10px !important;
    font-size:11px !important;
    border-radius:8px !important;
  }

  body.hoa-public-auth.hoa-student-auth .hoa-login-page-content{
    padding:16px 8px 24px !important;
  }

  body.hoa-public-auth.hoa-student-auth #hoaStudentPortalPanel{
    width:100% !important;
    max-width:100% !important;
    padding:18px 12px 20px !important;
    border-radius:14px !important;
    box-shadow:0 10px 28px rgba(15,39,68,.08) !important;
  }

  body.hoa-public-auth.hoa-student-auth #hoaStudentPortalPanel .hoa-login-panel-head{
    gap:9px !important;
    margin:0 0 14px !important;
  }
  body.hoa-public-auth.hoa-student-auth #hoaStudentPortalPanel .hoa-login-panel-head .icon{
    width:36px !important;
    height:36px !important;
    border-radius:10px !important;
    font-size:17px !important;
    flex:0 0 36px !important;
  }
  body.hoa-public-auth.hoa-student-auth #hoaStudentPortalPanel .hoa-login-panel-head h2{
    font-size:20px !important;
    line-height:1.12 !important;
  }
  body.hoa-public-auth.hoa-student-auth #hoaStudentPortalPanel .hoa-login-panel-head p{
    margin-top:2px !important;
    font-size:10px !important;
    line-height:1.25 !important;
  }

  body.hoa-public-auth.hoa-student-auth #hoaStudentLoginHost .authTabs{
    gap:6px !important;
    margin:0 0 14px !important;
  }
  body.hoa-public-auth.hoa-student-auth #hoaStudentLoginHost .authTab{
    min-height:40px !important;
    padding:7px 6px !important;
    border-radius:8px !important;
    font-size:10.5px !important;
    line-height:1.1 !important;
  }

  body.hoa-public-auth.hoa-student-auth #hoaStudentLoginHost .formGroup{
    margin:0 0 10px !important;
  }
  body.hoa-public-auth.hoa-student-auth #hoaStudentLoginHost .formGroup label{
    margin:0 0 5px !important;
    font-size:11.5px !important;
  }
  body.hoa-public-auth.hoa-student-auth #hoaStudentLoginHost input:not([type="checkbox"]):not([type="radio"]),
  body.hoa-public-auth.hoa-student-auth #hoaStudentLoginHost select{
    min-height:42px !important;
    padding:9px 10px !important;
    font-size:13px !important;
    border-radius:8px !important;
  }
  body.hoa-public-auth.hoa-student-auth #hoaStudentLoginHost .hoa-student-login-submit{
    min-height:44px !important;
    margin:2px 0 0 !important;
    border-radius:8px !important;
    font-size:12.5px !important;
  }
}

/* HOA Mobile — Free Content close button: compact, touch-safe, no overlap */
@media (max-width:760px){
  #hoaV648FreeContentModal .hoa-v648-modal-card{
    padding:52px 12px 12px !important;
  }
  #hoaV648FreeContentModal .hoa-v648-modal-card > .hoa-v648-modal-close{
    top:10px !important;
    right:10px !important;
    width:34px !important;
    height:34px !important;
    min-width:34px !important;
    min-height:34px !important;
    max-width:34px !important;
    max-height:34px !important;
    font-size:19px !important;
    border-radius:50% !important;
  }
  #hoaV648FreeContentModal .hoa-v648-modal-card > h2,
  #hoaV648FreeContentModal .hoa-v648-modal-card > p,
  #hoaV648FreeContentModal .hoa-v648-modal-card > .hoa-v648-kicker{
    position:relative !important;
    z-index:1 !important;
  }
  @media (max-width:390px){
    #hoaV648FreeContentModal .hoa-v648-modal-card{
      padding-top:48px !important;
      padding-left:10px !important;
      padding-right:10px !important;
    }
    #hoaV648FreeContentModal .hoa-v648-modal-card > .hoa-v648-modal-close{
      top:8px !important;
      right:8px !important;
      width:32px !important;
      height:32px !important;
      min-width:32px !important;
      min-height:32px !important;
      max-width:32px !important;
      max-height:32px !important;
      font-size:18px !important;
    }
  }
}


/* HOA Mobile V2.6.2 — Compact global footer only. Desktop/laptop unchanged. */
@media (max-width: 600px){
  /* ---------- Follow / social bar ---------- */
  #hoaFrontSocialFooter{
    width:calc(100% - 16px) !important;
    margin:12px auto 0 !important;
  }
  #hoaFrontSocialFooter .hoa-v619-social-bar{
    min-height:48px !important;
    height:48px !important;
    padding:5px 7px !important;
    border-radius:12px !important;
  }
  #hoaFrontSocialFooter .hoa-v619-brand{
    min-width:0 !important;
    gap:6px !important;
  }
  #hoaFrontSocialFooter .hoa-v619-brand img{
    width:28px !important;
    height:28px !important;
    border-radius:7px !important;
    padding:1px !important;
  }
  #hoaFrontSocialFooter .hoa-v619-brand-name{
    font-size:10px !important;
    line-height:1.1 !important;
  }
  #hoaFrontSocialFooter .hoa-v619-brand-tag{
    font-size:7px !important;
    margin-top:1px !important;
  }
  #hoaFrontSocialFooter .hoa-v619-social,
  #hoaFrontSocialFooter .hoa-v619-admin{
    width:32px !important;
    height:32px !important;
    min-width:32px !important;
    min-height:32px !important;
    padding:0 !important;
    border-radius:8px !important;
  }
  #hoaFrontSocialFooter .hoa-v619-social svg,
  #hoaFrontSocialFooter .hoa-v619-admin svg{
    width:14px !important;
    height:14px !important;
  }

  /* ---------- Professional footer ---------- */
  #hoaProfessionalFooter{
    margin-top:10px !important;
    padding:14px 11px 8px !important;
    border-top-width:1px !important;
    border-radius:12px 12px 0 0 !important;
  }
  #hoaProfessionalFooter .hoa-footer-inner{
    grid-template-columns:1fr 1fr !important;
    gap:10px 12px !important;
  }
  #hoaProfessionalFooter .hoa-footer-about p{
    margin-top:4px !important;
    font-size:9px !important;
    line-height:1.35 !important;
  }
  #hoaProfessionalFooter .hoa-footer-brand-name{
    font-size:13px !important;
    line-height:1.15 !important;
  }
  #hoaProfessionalFooter .hoa-footer-tagline{
    margin-top:2px !important;
    font-size:8px !important;
  }
  #hoaProfessionalFooter .hoa-footer-heading{
    margin-bottom:4px !important;
    font-size:8px !important;
    letter-spacing:.35px !important;
  }
  #hoaProfessionalFooter .hoa-footer-links{
    gap:4px !important;
  }
  #hoaProfessionalFooter .hoa-footer-links a,
  #hoaProfessionalFooter .hoa-footer-contact a{
    font-size:9px !important;
    line-height:1.2 !important;
  }
  #hoaProfessionalFooter .hoa-footer-divider{
    margin:9px auto 6px !important;
  }
  #hoaProfessionalFooter .hoa-footer-bottom{
    gap:2px 6px !important;
    font-size:8px !important;
    line-height:1.3 !important;
  }
  #hoaProfessionalFooter .hoa-career-soon{
    margin-left:3px !important;
    padding:1px 4px !important;
    font-size:7px !important;
  }
}

@media (max-width: 390px){
  #hoaFrontSocialFooter{
    width:calc(100% - 12px) !important;
    margin-top:9px !important;
  }
  #hoaFrontSocialFooter .hoa-v619-social-bar{
    min-height:44px !important;
    height:44px !important;
    padding:4px 6px !important;
  }
  #hoaFrontSocialFooter .hoa-v619-brand img{
    width:25px !important;
    height:25px !important;
  }
  #hoaFrontSocialFooter .hoa-v619-brand-name{font-size:9px !important;}
  #hoaFrontSocialFooter .hoa-v619-brand-tag{font-size:6.5px !important;}
  #hoaFrontSocialFooter .hoa-v619-social,
  #hoaFrontSocialFooter .hoa-v619-admin{
    width:30px !important;
    height:30px !important;
    min-width:30px !important;
    min-height:30px !important;
  }
  #hoaProfessionalFooter{
    padding-left:9px !important;
    padding-right:9px !important;
  }
  #hoaProfessionalFooter .hoa-footer-inner{gap:8px !important;}
  #hoaProfessionalFooter .hoa-footer-about p{font-size:8.5px !important;}
  #hoaProfessionalFooter .hoa-footer-brand-name{font-size:12px !important;}
  #hoaProfessionalFooter .hoa-footer-links a,
  #hoaProfessionalFooter .hoa-footer-contact a{font-size:8.5px !important;}
}

/* HOA Mobile V2.6.3 — keep Follow Us social icons visible on phones */
@media (max-width: 600px){
  #hoaFrontSocialFooter .hoa-v619-actions{
    display:flex !important;
    visibility:visible !important;
    opacity:1 !important;
    flex-wrap:nowrap !important;
  }
  #hoaFrontSocialFooter .hoa-v619-social{
    display:inline-flex !important;
    visibility:visible !important;
    opacity:1 !important;
    flex:0 0 34px !important;
    width:34px !important;
    height:34px !important;
    min-width:34px !important;
    min-height:34px !important;
    max-width:34px !important;
    max-height:34px !important;
    padding:0 !important;
    margin:0 !important;
    align-items:center !important;
    justify-content:center !important;
  }
  #hoaFrontSocialFooter .hoa-v619-social svg{
    display:block !important;
    width:15px !important;
    height:15px !important;
    margin:0 !important;
  }
}
@media (max-width: 360px){
  #hoaFrontSocialFooter .hoa-v619-social{
    flex-basis:30px !important;
    width:30px !important;
    height:30px !important;
    min-width:30px !important;
    min-height:30px !important;
    max-width:30px !important;
    max-height:30px !important;
  }
  #hoaFrontSocialFooter .hoa-v619-social svg{
    width:14px !important;
    height:14px !important;
  }
}

/* HOA Mobile V2.6.4 — mobile Follow Us bar: label + icons only */
@media (max-width: 600px){
  #hoaFrontSocialFooter .hoa-v619-social-bar{
    justify-content:center !important;
    align-items:center !important;
    gap:8px !important;
  }
  #hoaFrontSocialFooter .hoa-v619-brand{
    display:none !important;
  }
  #hoaFrontSocialFooter .hoa-v619-actions{
    width:auto !important;
    margin:0 auto !important;
    justify-content:center !important;
    align-items:center !important;
    gap:5px !important;
  }
  #hoaFrontSocialFooter .hoa-v619-follow-label{
    display:inline-flex !important;
    align-items:center !important;
    color:inherit !important;
    font-size:10px !important;
    font-weight:700 !important;
    line-height:1 !important;
    margin:0 1px 0 0 !important;
    white-space:nowrap !important;
  }
}
@media (max-width: 390px){
  #hoaFrontSocialFooter .hoa-v619-follow-label{
    font-size:9px !important;
  }
}

/* HOA mobile footer navigation: white default text; preserve existing hover/focus colour effect. */
@media (max-width:600px){
  #hoaProfessionalFooter .hoa-footer-links a{
    color:#FFFFFF !important;
  }
  #hoaProfessionalFooter .hoa-footer-links a:hover,
  #hoaProfessionalFooter .hoa-footer-links a:focus-visible{
    color:#D4A017 !important;
  }
}
/* HOA Mobile V2.6.13 — authoritative Home hero tagline sizing.
   Uses the actual public-home body state (hoa-public-front). */
@media (max-width:600px){
  body.hoa-public-front #hoaFrontPage .hoa-front-title{
    font-size:42px !important;
    line-height:0.98 !important;
    margin:10px 0 9px !important;
  }
}
@media (max-width:390px){
  body.hoa-public-front #hoaFrontPage .hoa-front-title{
    font-size:40px !important;
    line-height:0.98 !important;
  }
}

/* HOA Mobile V2.7 — Free Content Library mobile polish.
   UI-only: keeps portal behavior/data/links unchanged. Desktop is untouched. */
@media (max-width:600px){
  body.hoa-v615-free-portal .hoa615-top-inner{
    min-height:54px !important;
    width:calc(100% - 16px) !important;
    gap:8px !important;
  }
  body.hoa-v615-free-portal .hoa615-brand{gap:7px !important;}
  body.hoa-v615-free-portal .hoa615-brand img{
    width:32px !important;height:32px !important;border-radius:8px !important;
  }
  body.hoa-v615-free-portal .hoa615-brand strong{font-size:12px !important;}
  body.hoa-v615-free-portal .hoa615-top-actions{gap:5px !important;}
  body.hoa-v615-free-portal .hoa615-btn{
    min-height:38px !important;
    padding:7px 10px !important;
    border-radius:9px !important;
    font-size:11px !important;
    line-height:1 !important;
  }
  body.hoa-v615-free-portal .hoa615-main{
    width:calc(100% - 16px) !important;
    padding:16px 0 28px !important;
  }
  body.hoa-v615-free-portal .hoa615-hero{
    padding:14px !important;
    border-radius:14px !important;
    gap:8px !important;
    display:block !important;
  }
  body.hoa-v615-free-portal .hoa615-kicker{
    font-size:9px !important;
    letter-spacing:.11em !important;
  }
  body.hoa-v615-free-portal .hoa615-hero h1{
    margin:5px 0 5px !important;
    font-size:20px !important;
    line-height:1.08 !important;
  }
  body.hoa-v615-free-portal .hoa615-hero p{
    font-size:11.5px !important;
    line-height:1.4 !important;
    max-width:none !important;
  }
  body.hoa-v615-free-portal .hoa615-tabs{
    gap:6px !important;
    padding:10px 0 9px !important;
    margin-bottom:1px !important;
  }
  body.hoa-v615-free-portal .hoa615-tab{
    padding:8px 10px !important;
    border-radius:9px !important;
    font-size:11px !important;
    line-height:1 !important;
  }
  body.hoa-v615-free-portal .hoa615-section-head{
    margin:8px 0 10px !important;
  }
  body.hoa-v615-free-portal .hoa615-section-head h2{
    font-size:18px !important;
    line-height:1.15 !important;
  }
  body.hoa-v615-free-portal .hoa615-section-head p{
    margin-top:3px !important;
    font-size:11px !important;
  }
  body.hoa-v615-free-portal .hoa615-grid{
    grid-template-columns:1fr !important;
    gap:10px !important;
  }
  body.hoa-v615-free-portal .hoa615-card{
    border-radius:13px !important;
    box-shadow:0 5px 16px rgba(15,39,68,.055) !important;
  }
  body.hoa-v615-free-portal .hoa615-thumb{
    aspect-ratio:auto !important;
    height:132px !important;
    min-height:132px !important;
    font-size:30px !important;
  }
  body.hoa-v615-free-portal .hoa615-type{
    left:8px !important;top:8px !important;
    padding:4px 6px !important;
    border-radius:6px !important;
    font-size:8px !important;
  }
  body.hoa-v615-free-portal .hoa615-card-body{
    padding:11px !important;
  }
  body.hoa-v615-free-portal .hoa615-card h3{
    margin:4px 0 4px !important;
    font-size:14px !important;
    line-height:1.25 !important;
  }
  body.hoa-v615-free-portal .hoa615-card p{
    margin:0 !important;
    font-size:11px !important;
    line-height:1.35 !important;
  }
  body.hoa-v615-free-portal .hoa615-card .hoa615-card-actions{
    margin-top:8px !important;
    gap:6px !important;
  }
}
@media (max-width:390px){
  body.hoa-v615-free-portal .hoa615-top-inner{min-height:50px !important;}
  body.hoa-v615-free-portal .hoa615-brand img{width:30px !important;height:30px !important;}
  body.hoa-v615-free-portal .hoa615-brand strong{font-size:11px !important;}
  body.hoa-v615-free-portal .hoa615-main{padding-top:12px !important;}
  body.hoa-v615-free-portal .hoa615-hero{padding:12px !important;}
  body.hoa-v615-free-portal .hoa615-hero h1{font-size:18px !important;}
  body.hoa-v615-free-portal .hoa615-hero p{font-size:10.5px !important;}
  body.hoa-v615-free-portal .hoa615-tab{padding:7px 9px !important;font-size:10.5px !important;}
  body.hoa-v615-free-portal .hoa615-thumb{height:118px !important;min-height:118px !important;}
}

/* P53 — keep Free Student logout visible and reachable in the portal header. */
body.hoa-v615-free-portal .hoa615-top-inner{flex-wrap:nowrap!important;}
body.hoa-v615-free-portal .hoa615-brand{flex:1 1 auto!important;min-width:0!important;}
body.hoa-v615-free-portal .hoa615-top-actions{flex:0 0 auto!important;min-width:max-content!important;}
body.hoa-v615-free-portal .hoa615-top-actions .hoa615-btn.logout{display:inline-flex!important;visibility:visible!important;opacity:1!important;flex-shrink:0!important;}
@media(max-width:360px){
  body.hoa-v615-free-portal .hoa615-top-inner{gap:6px!important;width:calc(100% - 12px)!important;}
  body.hoa-v615-free-portal .hoa615-brand{gap:5px!important;}
  body.hoa-v615-free-portal .hoa615-brand strong{font-size:10px!important;}
  body.hoa-v615-free-portal .hoa615-btn.logout{padding:7px 8px!important;font-size:10px!important;}
}

/* HOA Mobile V2.8 — Admin Login compact phone layer.
   Phone-only presentation; authentication/workflow unchanged. */
@media (max-width:600px){
  body.hoa-public-auth.hoa-admin-auth #hoaLoginPage{
    min-height:100dvh !important;
  }

  body.hoa-public-auth.hoa-admin-auth .hoa-login-page-top{
    width:calc(100% - 16px) !important;
    height:54px !important;
    min-height:54px !important;
    margin:6px auto 0 !important;
    padding:0 10px !important;
    gap:7px !important;
    border-radius:10px !important;
  }

  body.hoa-public-auth.hoa-admin-auth .hoa-login-page-brand{
    gap:8px !important;
  }

  body.hoa-public-auth.hoa-admin-auth .hoa-login-page-brand img{
    width:32px !important;
    height:32px !important;
    min-width:32px !important;
  }

  body.hoa-public-auth.hoa-admin-auth .hoa-login-page-brand strong{
    font-size:12px !important;
    line-height:1.1 !important;
  }

  body.hoa-public-auth.hoa-admin-auth .hoa-login-page-back{
    min-width:40px !important;
    min-height:36px !important;
    padding:7px 9px !important;
    border-radius:8px !important;
    font-size:10.5px !important;
    line-height:1 !important;
  }

  body.hoa-public-auth.hoa-admin-auth .hoa-login-page-content{
    padding:18px 10px 28px !important;
  }

  body.hoa-public-auth.hoa-admin-auth #hoaAdminPortalPanel{
    width:100% !important;
    max-width:430px !important;
    padding:16px 14px 15px !important;
    border-radius:14px !important;
    box-shadow:0 14px 34px rgba(15,39,68,.09),0 2px 7px rgba(15,39,68,.04) !important;
  }

  body.hoa-public-auth.hoa-admin-auth .hoa-login-panel-head{
    margin-bottom:16px !important;
    gap:9px !important;
  }

  body.hoa-public-auth.hoa-admin-auth .hoa-login-panel-head .icon{
    flex-basis:38px !important;
    width:38px !important;
    height:38px !important;
    border-radius:10px !important;
    font-size:17px !important;
  }

  body.hoa-public-auth.hoa-admin-auth .hoa-login-panel-head h2{
    font-size:20px !important;
    line-height:1.08 !important;
    letter-spacing:-.2px !important;
  }

  body.hoa-public-auth.hoa-admin-auth .hoa-login-panel-head p{
    margin-top:3px !important;
    font-size:10.5px !important;
    line-height:1.3 !important;
  }

  body.hoa-public-auth.hoa-admin-auth #hoaAdminLoginHost .formGroup{
    margin-bottom:13px !important;
  }

  body.hoa-public-auth.hoa-admin-auth #hoaAdminLoginHost .formGroup label{
    margin-bottom:5px !important;
    font-size:11.5px !important;
    line-height:1.25 !important;
  }

  body.hoa-public-auth.hoa-admin-auth #hoaAdminLoginHost #adminUsername,
  body.hoa-public-auth.hoa-admin-auth #hoaAdminLoginHost #adminPassword{
    min-height:44px !important;
    height:44px !important;
    padding:10px 11px !important;
    border-radius:9px !important;
    font-size:16px !important;
  }

  body.hoa-public-auth.hoa-admin-auth #hoaAdminLoginHost #homeAdminBody .primary{
    min-height:44px !important;
    height:44px !important;
    margin-top:0 !important;
    padding:10px 12px !important;
    border-radius:9px !important;
    font-size:12px !important;
  }

  body.hoa-public-auth.hoa-admin-auth #hoaAdminLoginHost #adminAuthMessage{
    min-height:14px !important;
    margin-top:8px !important;
    font-size:11px !important;
    line-height:1.35 !important;
  }

  body.hoa-public-auth.hoa-admin-auth #hoaAdminPortalPanel::after{
    margin-top:12px !important;
    padding-top:10px !important;
    font-size:9.5px !important;
    line-height:1.3 !important;
  }
}

@media (max-width:390px){
  body.hoa-public-auth.hoa-admin-auth .hoa-login-page-top{
    width:calc(100% - 12px) !important;
    height:50px !important;
    min-height:50px !important;
    padding:0 8px !important;
  }

  body.hoa-public-auth.hoa-admin-auth .hoa-login-page-brand img{
    width:29px !important;
    height:29px !important;
    min-width:29px !important;
  }

  body.hoa-public-auth.hoa-admin-auth .hoa-login-page-brand strong{
    font-size:11px !important;
  }

  body.hoa-public-auth.hoa-admin-auth .hoa-login-page-back{
    min-width:36px !important;
    min-height:34px !important;
    padding:6px 8px !important;
    font-size:10px !important;
  }

  body.hoa-public-auth.hoa-admin-auth .hoa-login-page-content{
    padding:14px 8px 22px !important;
  }

  body.hoa-public-auth.hoa-admin-auth #hoaAdminPortalPanel{
    padding:14px 12px 13px !important;
    border-radius:13px !important;
  }

  body.hoa-public-auth.hoa-admin-auth .hoa-login-panel-head{
    margin-bottom:13px !important;
  }

  body.hoa-public-auth.hoa-admin-auth .hoa-login-panel-head .icon{
    flex-basis:34px !important;
    width:34px !important;
    height:34px !important;
    font-size:15px !important;
  }

  body.hoa-public-auth.hoa-admin-auth .hoa-login-panel-head h2{
    font-size:18px !important;
  }

  body.hoa-public-auth.hoa-admin-auth .hoa-login-panel-head p{
    font-size:10px !important;
  }

  body.hoa-public-auth.hoa-admin-auth #hoaAdminLoginHost .formGroup{
    margin-bottom:11px !important;
  }

  body.hoa-public-auth.hoa-admin-auth #hoaAdminLoginHost .formGroup label{
    font-size:11px !important;
  }

  body.hoa-public-auth.hoa-admin-auth #hoaAdminLoginHost #adminUsername,
  body.hoa-public-auth.hoa-admin-auth #hoaAdminLoginHost #adminPassword{
    min-height:42px !important;
    height:42px !important;
  }

  body.hoa-public-auth.hoa-admin-auth #hoaAdminLoginHost #homeAdminBody .primary{
    min-height:42px !important;
    height:42px !important;
    font-size:11.5px !important;
  }
}


/* =========================================================
   HOA Admin Dashboard V2.9 — authoritative shell/mobile layer
   - Removes reliance on the legacy dashboard presentation.
   - Preserves existing functional panels, handlers and data.
   ========================================================= */
body.admin-ui .adminReferenceShell{
  width:100% !important;
  min-width:0 !important;
}
body.admin-ui .adminReferenceTopbar{
  box-sizing:border-box !important;
  display:flex !important;
  align-items:center !important;
  justify-content:space-between !important;
  gap:12px !important;
  min-height:62px !important;
  padding:12px 16px !important;
  margin:0 0 12px !important;
  border:1px solid var(--hoa-native-border,#D8E7F5) !important;
  border-radius:12px !important;
  background:#fff !important;
  box-shadow:0 8px 22px rgba(11,46,82,.08),0 1px 0 rgba(255,255,255,.96) inset !important;
}
body.admin-ui .adminReferenceTopbarText{min-width:0 !important;}
body.admin-ui .adminReferenceTopbarTitle{font-size:19px !important;font-weight:900 !important;color:#0B2E52 !important;line-height:1.15 !important;}
body.admin-ui .adminReferenceTopbarSub{margin-top:3px !important;font-size:11px !important;color:#5E7188 !important;line-height:1.35 !important;}
body.admin-ui .adminReferenceRefreshBtn{
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  gap:6px !important;
  min-height:40px !important;
  padding:0 11px !important;
  border:1px solid #D8E7F5 !important;
  border-radius:9px !important;
  background:#fff !important;
  color:#0B2E52 !important;
  font-size:11px !important;
  font-weight:800 !important;
  box-shadow:0 3px 10px rgba(11,46,82,.06) !important;
}
body.admin-ui .adminRefIcon{display:inline-flex !important;align-items:center !important;justify-content:center !important;flex:0 0 18px !important;width:18px !important;height:18px !important;}
body.admin-ui .adminRefIcon svg{width:18px !important;height:18px !important;fill:none !important;stroke:currentColor !important;stroke-width:1.8 !important;stroke-linecap:round !important;stroke-linejoin:round !important;}
body.admin-ui .adminReferenceNav button{display:flex !important;align-items:center !important;gap:9px !important;}
body.admin-ui .adminReferenceNav button .adminRefLabel{min-width:0 !important;}
body.admin-ui .hoa-master-stat-icon svg{width:21px !important;height:21px !important;fill:none !important;stroke:currentColor !important;stroke-width:1.8 !important;stroke-linecap:round !important;stroke-linejoin:round !important;}
body.admin-ui .hoa-master-stat-card{min-width:0 !important;overflow:hidden !important;}
body.admin-ui .hoa-master-stat-card span,
body.admin-ui .hoa-master-stat-card small,
body.admin-ui .hoa-master-eng-card small,
body.admin-ui .hoa-master-muted{overflow-wrap:anywhere !important;}

@media (max-width:700px){
  body.admin-ui .adminReferenceSidebar{
    border-bottom:2px solid #D4A72C !important;
  }
  body.admin-ui .adminReferenceBrand,
  body.admin-ui .adminReferenceBottom{display:none !important;}
  body.admin-ui .adminReferenceSidebar .adminReferenceNav,
  body.admin-ui .adminReferenceSidebar .adminSectionNav{
    -webkit-overflow-scrolling:touch !important;
  }
  body.admin-ui .adminReferenceSidebar .adminReferenceNav::-webkit-scrollbar{display:none !important;}
  body.admin-ui .adminRefIcon{flex-basis:17px !important;}
  body.admin-ui .adminReferenceMain{margin-left:0 !important;}
  body.admin-ui .adminReferenceRefreshBtn{min-height:36px !important;padding:0 9px !important;font-size:10px !important;}
  body.admin-ui .adminReferenceRefreshBtn span:last-child{display:none !important;}

  /* Master dashboard: compact KPI cards, with less duplicated metadata. */
  body.admin-ui .hoa-master-panel{padding:9px !important;border-radius:11px !important;}
  body.admin-ui .hoa-master-head{display:flex !important;flex-direction:column !important;align-items:stretch !important;gap:7px !important;margin-bottom:8px !important;}
  body.admin-ui .hoa-master-kicker{font-size:8px !important;letter-spacing:.10em !important;margin-bottom:3px !important;}
  body.admin-ui .hoa-master-head h3{font-size:17px !important;line-height:1.1 !important;margin:0 !important;}
  body.admin-ui .hoa-master-head p{font-size:9.5px !important;line-height:1.3 !important;margin:3px 0 0 !important;}
  body.admin-ui .hoa-master-head-actions{justify-content:space-between !important;gap:5px !important;}
  body.admin-ui .hoa-master-live-pill{padding:5px 7px !important;font-size:8px !important;}
  body.admin-ui .hoa-master-live-pill::before{width:5px !important;height:5px !important;box-shadow:0 0 0 2px rgba(24,165,114,.12) !important;}
  body.admin-ui .hoa-master-status{font-size:9px !important;padding:5px 7px !important;margin-bottom:7px !important;}
  body.admin-ui .hoa-master-stats{grid-template-columns:repeat(2,minmax(0,1fr)) !important;gap:6px !important;margin-bottom:8px !important;}
  body.admin-ui .hoa-master-stat-card{gap:7px !important;padding:8px !important;border-radius:9px !important;}
  body.admin-ui .hoa-master-stat-icon{width:28px !important;height:28px !important;flex:0 0 28px !important;border-radius:8px !important;display:flex !important;align-items:center !important;justify-content:center !important;}
  body.admin-ui .hoa-master-stat-icon svg{width:16px !important;height:16px !important;}
  body.admin-ui .hoa-master-stat-card b{font-size:18px !important;line-height:1 !important;}
  body.admin-ui .hoa-master-stat-card span{font-size:8.5px !important;line-height:1.15 !important;}
  body.admin-ui .hoa-master-stat-card small{font-size:7.5px !important;line-height:1.2 !important;margin-top:2px !important;}
  body.admin-ui .hoa-master-engagement{grid-template-columns:repeat(2,minmax(0,1fr)) !important;gap:6px !important;margin-bottom:8px !important;}
  body.admin-ui .hoa-master-eng-card{padding:8px !important;border-radius:9px !important;}
  body.admin-ui .hoa-master-eng-card .label{font-size:7.5px !important;}
  body.admin-ui .hoa-master-eng-card b{font-size:17px !important;margin-top:3px !important;}
  body.admin-ui .hoa-master-eng-card small{font-size:7.5px !important;margin-top:3px !important;}

  /* Mobile master sections become compact record cards instead of wide tables. */
  body.admin-ui .hoa-master-sections{display:grid !important;grid-template-columns:1fr !important;gap:7px !important;}
  body.admin-ui .hoa-master-section{padding:8px !important;border-radius:9px !important;}
  body.admin-ui .hoa-master-section-head{margin-bottom:6px !important;}
  body.admin-ui .hoa-master-section-head h4{font-size:12px !important;line-height:1.15 !important;}
  body.admin-ui .hoa-master-section-head span{font-size:8px !important;line-height:1.25 !important;margin-top:2px !important;}
  body.admin-ui .hoa-master-table-wrap{overflow:visible !important;}
  body.admin-ui .hoa-master-table-wrap table{display:block !important;width:100% !important;min-width:0 !important;border-collapse:separate !important;border-spacing:0 !important;}
  body.admin-ui .hoa-master-table-wrap thead{display:none !important;}
  body.admin-ui .hoa-master-table-wrap tbody,
  body.admin-ui .hoa-master-table-wrap tr,
  body.admin-ui .hoa-master-table-wrap td{display:block !important;width:100% !important;min-width:0 !important;}
  body.admin-ui .hoa-master-table-wrap tbody tr{
    margin:0 0 6px !important;
    padding:7px 8px !important;
    border:1px solid #D8E7F5 !important;
    border-radius:8px !important;
    background:#fff !important;
    box-shadow:0 2px 8px rgba(11,46,82,.04) !important;
  }
  body.admin-ui .hoa-master-table-wrap tbody tr:last-child{margin-bottom:0 !important;}
  body.admin-ui .hoa-master-table-wrap td{
    display:grid !important;
    grid-template-columns:minmax(92px,.7fr) minmax(0,1.3fr) !important;
    gap:7px !important;
    align-items:start !important;
    padding:2px 0 !important;
    border:0 !important;
    font-size:9px !important;
    line-height:1.25 !important;
  }
  body.admin-ui .hoa-master-table-wrap td::before{
    content:attr(data-label) !important;
    color:#6F8196 !important;
    font-size:7.5px !important;
    font-weight:800 !important;
    text-transform:uppercase !important;
    letter-spacing:.03em !important;
  }
  body.admin-ui .hoa-master-table-wrap td:first-child{padding-top:0 !important;}
  body.admin-ui .hoa-master-table-wrap td:first-child b{font-size:10px !important;color:#0B2E52 !important;}
  body.admin-ui .hoa-master-grid-2{grid-template-columns:1fr !important;gap:7px !important;}
  body.admin-ui .hoa-master-grid-2 > div{padding:6px 7px !important;border:1px solid #D8E7F5 !important;border-radius:8px !important;background:#fff !important;}
  body.admin-ui .hoa-master-feedback-list{gap:6px !important;}
  body.admin-ui .hoa-master-feedback-item{padding:8px !important;border-radius:8px !important;}
  body.admin-ui .hoa-master-feedback-message{font-size:9px !important;line-height:1.35 !important;}
  body.admin-ui .hoa-master-feedback-meta{font-size:7.5px !important;margin-top:4px !important;}
}

@media(max-width:390px){
  body.admin-ui .adminReferenceMain{padding-left:7px !important;padding-right:7px !important;}
  body.admin-ui .adminReferenceNav button{min-width:82px !important;font-size:10px !important;padding-left:7px !important;padding-right:7px !important;}
  body.admin-ui .hoa-master-stats{gap:5px !important;}
  body.admin-ui .hoa-master-stat-card{padding:7px !important;}
  body.admin-ui .hoa-master-stat-icon{width:26px !important;height:26px !important;flex-basis:26px !important;}
  body.admin-ui .hoa-master-stat-card b{font-size:16px !important;}
  body.admin-ui .hoa-master-stat-card span{font-size:8px !important;}
  body.admin-ui .hoa-master-stat-card small{font-size:7px !important;}
}


/* HOA Admin Dashboard V2.9.1 — mobile section drawer trigger.
   Desktop is untouched; mobile uses the existing sidebar/drawer API. */
@media (min-width:769px){
  #hoaMobileAdminSectionsBtn{display:none !important;}
}
@media (max-width:768px){
  body.admin-ui .hoa-mobile-admin-sections-btn{
    display:inline-flex !important;
    align-items:center !important;
    justify-content:center !important;
    gap:5px !important;
    min-height:38px !important;
    height:38px !important;
    padding:0 10px !important;
    border:1px solid #D8E7F5 !important;
    border-radius:9px !important;
    background:#fff !important;
    color:#0B2E52 !important;
    font-size:10px !important;
    font-weight:850 !important;
    line-height:1 !important;
    box-shadow:0 3px 10px rgba(11,46,82,.08) !important;
  }
  body.admin-ui .hoa-mobile-admin-sections-btn span:first-child{
    font-size:15px !important;
    line-height:1 !important;
  }
  body.admin-ui .hoa-mobile-admin-sections-btn[aria-expanded="true"]{
    background:#D4A72C !important;
    border-color:#F0D27B !important;
    color:#102B48 !important;
  }
  @media (max-width:390px){
    body.admin-ui .hoa-mobile-admin-sections-btn{padding:0 8px !important;font-size:9.5px !important;}
    body.admin-ui .hoa-mobile-admin-sections-btn span:first-child{font-size:14px !important;}
  }
}


/* =========================================================
   HOA ADMIN DASHBOARD V3 — MOBILE SHELL CONSOLIDATION
   One mobile shell: topbar + Sections drawer + workspace.
   This layer intentionally overrides older mobile navigation rules.
   Desktop/laptop styles are not touched.
   ========================================================= */
@media (max-width:700px){

  /* Global Admin controls remain available, but the workspace starts below them. */
  body.admin-ui > .header{
    z-index:20050 !important;
  }

  body.admin-ui .adminReferenceMain{
    margin:0 !important;
    width:100% !important;
    max-width:none !important;
    padding:72px 9px 18px !important;
    min-height:100dvh !important;
    box-sizing:border-box !important;
  }

  /* One authoritative mobile topbar. */
  body.admin-ui .adminReferenceTopbar{
    display:flex !important;
    align-items:center !important;
    justify-content:space-between !important;
    gap:8px !important;
    width:100% !important;
    min-height:54px !important;
    margin:0 0 7px !important;
    padding:8px 9px !important;
    box-sizing:border-box !important;
    border:1px solid #D8E7F5 !important;
    border-radius:10px !important;
    background:#fff !important;
    box-shadow:0 5px 15px rgba(11,46,82,.08) !important;
  }
  body.admin-ui .adminReferenceTopbarText{
    min-width:0 !important;
    flex:1 1 auto !important;
  }
  body.admin-ui .adminReferenceTopbarTitle{
    font-size:16px !important;
    line-height:1.15 !important;
    white-space:nowrap !important;
    overflow:hidden !important;
    text-overflow:ellipsis !important;
  }
  body.admin-ui .adminReferenceTopbarSub{
    margin-top:2px !important;
    font-size:9px !important;
    line-height:1.25 !important;
    white-space:nowrap !important;
    overflow:hidden !important;
    text-overflow:ellipsis !important;
  }
  body.admin-ui .adminReferenceTopbarActions{
    display:flex !important;
    align-items:center !important;
    justify-content:flex-end !important;
    gap:5px !important;
    flex:0 0 auto !important;
  }
  body.admin-ui .adminReferenceTopbarActions .hoa-mobile-admin-sections-btn{
    display:none !important;
  }
  body.admin-ui .adminReferenceTopbarActions .hoa-v621-theme-btn,
  body.admin-ui .adminReferenceTopbarActions .adminReferenceRefreshBtn{
    min-height:36px !important;
    height:36px !important;
    min-width:36px !important;
    padding:0 8px !important;
    border-radius:8px !important;
    font-size:9.5px !important;
  }

  /* Visible mobile entry point to the one drawer. */
  body.admin-ui .hoa-mobile-admin-sections-btn{
    display:flex !important;
    align-items:center !important;
    justify-content:center !important;
    gap:7px !important;
    width:100% !important;
    min-height:42px !important;
    height:42px !important;
    padding:0 12px !important;
    border:1px solid #D4A72C !important;
    border-radius:9px !important;
    background:#0B2E52 !important;
    color:#fff !important;
    font-size:11px !important;
    font-weight:850 !important;
    letter-spacing:.02em !important;
    box-shadow:0 4px 12px rgba(11,46,82,.14) !important;
  }
  body.admin-ui .hoa-mobile-admin-sections-btn[aria-expanded="true"]{
    background:#D4A72C !important;
    border-color:#D4A72C !important;
    color:#0B2E52 !important;
  }
  body.admin-ui .hoaMobileSectionsIcon{
    display:inline-flex !important;
    align-items:center !important;
    justify-content:center !important;
    width:17px !important;
    height:17px !important;
    flex:0 0 17px !important;
  }
  body.admin-ui .hoaMobileSectionsIcon svg{
    width:17px !important;
    height:17px !important;
    fill:none !important;
    stroke:currentColor !important;
    stroke-width:2 !important;
    stroke-linecap:round !important;
  }

  /* The sole mobile navigation surface: an off-canvas drawer. */
  body.admin-ui .adminReferenceSidebar{
    box-sizing:border-box !important;
    transition:transform .22s ease !important;
  }
  body.admin-ui.hoa-sidebar-open::after{
    content:"" !important;
    position:fixed !important;
    inset:0 !important;
    background:rgba(3,27,56,.48) !important;
    z-index:20030 !important;
  }

  body.admin-ui .hoaMobileAdminDrawerHead{
    display:flex !important;
    align-items:center !important;
    justify-content:space-between !important;
    gap:8px !important;
    padding:4px 4px 10px !important;
    margin-bottom:7px !important;
    border-bottom:1px solid rgba(255,255,255,.10) !important;
  }
  body.admin-ui .hoaMobileAdminDrawerHead > div{
    min-width:0 !important;
  }
  body.admin-ui .hoaMobileAdminDrawerHead strong{
    display:block !important;
    font-size:12px !important;
    color:#fff !important;
    letter-spacing:.06em !important;
  }
  body.admin-ui .hoaMobileAdminDrawerHead span{
    display:block !important;
    margin-top:2px !important;
    font-size:9px !important;
    color:rgba(255,255,255,.66) !important;
  }
  body.admin-ui .hoaMobileAdminDrawerClose{
    display:inline-flex !important;
    align-items:center !important;
    justify-content:center !important;
    width:36px !important;
    height:36px !important;
    flex:0 0 36px !important;
    padding:0 !important;
    border:1px solid rgba(255,255,255,.20) !important;
    border-radius:8px !important;
    background:rgba(255,255,255,.06) !important;
    color:#fff !important;
  }
  body.admin-ui .hoaMobileAdminDrawerClose svg{
    width:17px !important;
    height:17px !important;
    fill:none !important;
    stroke:currentColor !important;
    stroke-width:2 !important;
    stroke-linecap:round !important;
  }

  body.admin-ui .adminReferenceBrand{
    display:flex !important;
    align-items:center !important;
    gap:8px !important;
    min-height:50px !important;
    padding:2px 4px 9px !important;
    margin:0 0 6px !important;
    border-bottom:1px solid rgba(255,255,255,.08) !important;
  }
  body.admin-ui .adminReferenceBrand img{
    width:38px !important;
    height:38px !important;
  }
  body.admin-ui .adminReferenceBrandTitle{
    font-size:13px !important;
  }
  body.admin-ui .adminReferenceBrandSub{
    font-size:9px !important;
    margin-top:2px !important;
  }
  body.admin-ui .adminReferenceNav button{
    width:100% !important;
    min-width:0 !important;
    min-height:44px !important;
    height:44px !important;
    flex:0 0 44px !important;
    padding:0 11px !important;
    border:1px solid rgba(255,255,255,.10) !important;
    border-radius:9px !important;
    background:rgba(255,255,255,.045) !important;
    color:#fff !important;
    font-size:11px !important;
    line-height:1 !important;
    text-align:left !important;
    white-space:nowrap !important;
    box-shadow:none !important;
  }
  body.admin-ui .adminReferenceNav button.active{
    background:#D4A72C !important;
    border-color:#F0D27B !important;
    color:#102B48 !important;
    box-shadow:0 4px 12px rgba(0,0,0,.10) !important;
  }
  body.admin-ui .adminRefIcon{
    display:inline-flex !important;
    align-items:center !important;
    justify-content:center !important;
    width:17px !important;
    height:17px !important;
    flex:0 0 17px !important;
    margin-right:2px !important;
  }
  body.admin-ui .adminRefIcon svg{
    width:17px !important;
    height:17px !important;
    fill:none !important;
    stroke:currentColor !important;
    stroke-width:1.9 !important;
    stroke-linecap:round !important;
    stroke-linejoin:round !important;
  }
  body.admin-ui .adminReferenceBottom{display:none !important;}

  /* Keep the actual workspace content below the shell. */
  body.admin-ui .adminReferenceMain > #adminOnlyDashboard{
    width:100% !important;
    max-width:none !important;
    margin:0 !important;
  }

  @media (max-width:390px){
    body.admin-ui .adminReferenceSidebar{width:min(88vw,286px) !important;}
    body.admin-ui .adminReferenceMain{padding-left:7px !important;padding-right:7px !important;}
    body.admin-ui .hoa-mobile-admin-sections-btn{min-height:40px !important;height:40px !important;font-size:10.5px !important;}
  }
}
@media (min-width:701px){
  .hoaMobileAdminSectionsRow,
  .hoaMobileAdminDrawerHead{display:none !important;}
  #hoaMobileAdminSectionsBtn{display:none !important;}
}

/* ===== HOA ADMIN V3 — MOBILE DRAWER BRANDING POLISH =====
   Keep HUB OF ASPIRANTS branding visible inside the mobile Admin drawer.
   Visual-only; navigation behavior and existing functionality unchanged. */
@media (max-width:700px){
  body.admin-ui .adminReferenceSidebar .adminReferenceBrand{
    flex:0 0 auto !important;
  }
}
@media (max-width:390px){
  body.admin-ui .adminReferenceSidebar .adminReferenceBrand{
    gap:8px !important;
  }
}


/* =========================================================
   HOA ADMIN DASHBOARD V3.2 — FINAL MOBILE SHELL AUTHORITY
   One mobile presentation layer wins over all older responsive
   navigation/branding rules. Functional DOM/handlers are preserved.
   ========================================================= */
@media (max-width:700px){
  body.admin-ui .adminReferenceShell{
    display:block !important;
    width:100% !important;
    min-width:0 !important;
  }

  /* Single mobile drawer: fixed left sheet, never bottom-nav. */
  body.admin-ui .adminReferenceSidebar{
    position:fixed !important;
    left:0 !important;
    right:auto !important;
    width:min(86vw,300px) !important;
    display:flex !important;
    flex-direction:column !important;
    align-items:stretch !important;
    padding:10px !important;
    margin:0 !important;
    overflow:hidden !important;
    transform:translateX(-105%) !important;
    background:linear-gradient(180deg,#0B2E52 0%,#082544 100%) !important;
    border-right:1px solid rgba(255,255,255,.10) !important;
    box-shadow:12px 0 34px rgba(3,27,56,.24) !important;
  }
  body.admin-ui.hoa-sidebar-open .adminReferenceSidebar{
    transform:translateX(0) !important;
  }

  /* Branding is always visible in the mobile drawer. */
  body.admin-ui .adminReferenceSidebar .adminReferenceBrand{
    display:flex !important;
    order:1 !important;
    align-items:center !important;
    justify-content:flex-start !important;
    gap:9px !important;
    width:100% !important;
    min-height:52px !important;
    padding:3px 5px 9px !important;
    margin:0 0 7px !important;
    box-sizing:border-box !important;
    border-bottom:1px solid rgba(255,255,255,.13) !important;
    background:rgba(255,255,255,.035) !important;
    border-radius:8px !important;
  }
  body.admin-ui .adminReferenceSidebar .adminReferenceBrand img{
    display:block !important;
    width:36px !important;
    height:36px !important;
    min-width:36px !important;
    min-height:36px !important;
    flex:0 0 36px !important;
    object-fit:contain !important;
    border-radius:50% !important;
    background:#fff !important;
    box-shadow:0 3px 10px rgba(0,0,0,.16) !important;
  }
  body.admin-ui .adminReferenceSidebar .adminReferenceBrand > div{
    display:flex !important;
    flex-direction:column !important;
    min-width:0 !important;
    flex:1 1 auto !important;
  }
  body.admin-ui .adminReferenceSidebar .adminReferenceBrandTitle{
    display:block !important;
    color:#fff !important;
    font-size:14px !important;
    font-weight:900 !important;
    line-height:1.08 !important;
    letter-spacing:.14px !important;
    white-space:nowrap !important;
  }
  body.admin-ui .adminReferenceSidebar .adminReferenceBrandTitle br{
    display:none !important;
  }
  body.admin-ui .adminReferenceSidebar .adminReferenceBrandSub{
    display:block !important;
    color:rgba(255,255,255,.74) !important;
    font-size:9px !important;
    line-height:1.15 !important;
    margin-top:3px !important;
    white-space:nowrap !important;
  }

  /* Drawer heading stays directly below the branding. */
  body.admin-ui .adminReferenceSidebar .hoaMobileAdminDrawerHead{
    display:flex !important;
    order:2 !important;
    flex:0 0 auto !important;
    align-items:center !important;
    justify-content:space-between !important;
    gap:7px !important;
    padding:0 2px 8px !important;
    margin:0 0 6px !important;
    border-bottom:1px solid rgba(255,255,255,.10) !important;
  }
  body.admin-ui .adminReferenceSidebar .hoaMobileAdminDrawerHead strong{
    font-size:11px !important;
  }
  body.admin-ui .adminReferenceSidebar .hoaMobileAdminDrawerHead span{
    font-size:8px !important;
  }

  /* Sole navigation surface. */
  body.admin-ui .adminReferenceSidebar .adminReferenceNav,
  body.admin-ui .adminReferenceSidebar .adminSectionNav{
    display:flex !important;
    order:3 !important;
    flex:1 1 auto !important;
    flex-direction:column !important;
    align-items:stretch !important;
    justify-content:flex-start !important;
    width:100% !important;
    height:auto !important;
    max-height:none !important;
    min-height:0 !important;
    margin:0 !important;
    padding:1px 0 4px !important;
    gap:4px !important;
    overflow-y:auto !important;
    overflow-x:hidden !important;
    scrollbar-width:thin !important;
  }
  body.admin-ui .adminReferenceSidebar .adminReferenceNav button{
    display:flex !important;
    align-items:center !important;
    justify-content:flex-start !important;
    width:100% !important;
    min-width:0 !important;
    min-height:42px !important;
    height:42px !important;
    flex:0 0 42px !important;
    padding:0 10px !important;
    margin:0 !important;
    border:1px solid rgba(255,255,255,.10) !important;
    border-radius:9px !important;
    background:rgba(255,255,255,.045) !important;
    color:#fff !important;
    font-size:11px !important;
    line-height:1 !important;
    text-align:left !important;
    white-space:nowrap !important;
    box-shadow:none !important;
  }
  body.admin-ui .adminReferenceSidebar .adminReferenceNav button.active{
    background:#D4A72C !important;
    border-color:#F0D27B !important;
    color:#102B48 !important;
    box-shadow:0 4px 12px rgba(0,0,0,.10) !important;
  }
  body.admin-ui .adminReferenceSidebar .adminRefIcon{
    display:inline-flex !important;
    align-items:center !important;
    justify-content:center !important;
    width:18px !important;
    height:18px !important;
    flex:0 0 18px !important;
    margin:0 8px 0 0 !important;
  }
  body.admin-ui .adminReferenceSidebar .adminRefIcon svg{
    width:18px !important;
    height:18px !important;
    fill:none !important;
    stroke:currentColor !important;
    stroke-width:1.9 !important;
    stroke-linecap:round !important;
    stroke-linejoin:round !important;
  }
  body.admin-ui .adminReferenceSidebar .adminRefLabel{
    display:block !important;
    min-width:0 !important;
    overflow:hidden !important;
    text-overflow:ellipsis !important;
  }

  body.admin-ui .adminReferenceSidebar .adminReferenceBottom{
    display:none !important;
  }

  /* The legacy in-dashboard nav is never a second mobile UI surface. */
  body.admin-ui .adminReferenceMain #adminOnlyDashboard > .adminSectionNav{
    display:none !important;
  }

  /* The only mobile entry point for opening the drawer. */
  body.admin-ui .hoaMobileAdminSectionsRow{
    display:flex !important;
    order:initial !important;
    width:100% !important;
    margin:0 0 7px !important;
  }
  body.admin-ui .hoaMobileAdminSectionsRow .hoa-mobile-admin-sections-btn{
    display:flex !important;
    width:100% !important;
    min-height:40px !important;
    height:40px !important;
    align-items:center !important;
    justify-content:center !important;
    gap:6px !important;
    font-size:10.5px !important;
  }
}

@media (max-width:390px){
  body.admin-ui .adminReferenceSidebar{width:min(90vw,286px) !important;}
  body.admin-ui .adminReferenceSidebar .adminReferenceBrand{
    min-height:48px !important;
    padding:2px 4px 7px !important;
  }
  body.admin-ui .adminReferenceSidebar .adminReferenceBrand img{
    width:34px !important;
    height:34px !important;
    min-width:34px !important;
    min-height:34px !important;
    flex-basis:34px !important;
  }
  body.admin-ui .adminReferenceSidebar .adminReferenceBrandTitle{font-size:13px !important;}
  body.admin-ui .adminReferenceSidebar .adminReferenceBrandSub{font-size:8.5px !important;}
  body.admin-ui .adminReferenceSidebar .adminReferenceNav button{
    min-height:40px !important;
    height:40px !important;
    flex-basis:40px !important;
    font-size:10.5px !important;
  }
}


/* HOA ADMIN V3.3 — mobile drawer clears the fixed global admin header. */
@media (max-width:700px){
  body.admin-ui .adminReferenceSidebar{
    top:58px !important;
    bottom:0 !important;
    height:calc(100dvh - 58px) !important;
    min-height:calc(100dvh - 58px) !important;
    max-height:calc(100dvh - 58px) !important;
    z-index:20040 !important;
  }
  body.admin-ui.hoa-sidebar-open::after{
    top:58px !important;
  }
}

/* ================================================================
   HOA V3.5 — FINAL MOBILE HOME WIDTH / SCROLL AUTHORITY
   Audit finding: the V3.4 layer corrected widths but left the dynamic
   showcase at width:100% with 10px side margins inherited from an earlier
   mobile pass. That creates a 20px-wide overflow canvas. This layer removes
   that conflict and also makes top LOGIN vertical-only.
   ================================================================ */
@media (max-width: 768px){
  html,
  body{
    overscroll-behavior-x:none !important;
  }

  body.hoa-public-front #hoaFrontPage{
    overflow-y:visible !important;
  }

  /* Stable, centered mobile canvases. */
  body.hoa-public-front #hoaFrontPage .hoa-front-nav,
  body.hoa-public-front #hoaFrontPage .hoa-front-hero,
  body.hoa-public-front #hoaFrontPage .hoa-front-section,
  body.hoa-public-front #hoaV648StudentOptions,
  body.hoa-public-front #hoaDynamicShowcase{
    box-sizing:border-box !important;
    min-width:0 !important;
    max-width:calc(100% - 20px) !important;
    margin-left:auto !important;
    margin-right:auto !important;
  }

  body.hoa-public-front #hoaFrontPage .hoa-front-nav{
    margin-top:7px !important;
    overflow:hidden !important;
  }

  body.hoa-public-front #hoaFrontPage .hoa-front-hero{
    width:calc(100% - 20px) !important;
    display:grid !important;
    grid-template-columns:minmax(0,1fr) !important;
    overflow:visible !important;
  }

  body.hoa-public-front #hoaFrontPage .hoa-front-section{
    width:calc(100% - 20px) !important;
    overflow:hidden !important;
  }

  /* Critical fix: do NOT combine width:100% with margin:10px here. */
  body.hoa-public-front #hoaDynamicShowcase{
    width:calc(100% - 20px) !important;
    max-width:none !important;
    margin:12px auto !important;
    overflow:hidden !important;
  }
  body.hoa-public-front #hoaDynamicShowcase .hoa-v3d-head{
    width:100% !important;
    max-width:100% !important;
    min-width:0 !important;
    margin-left:0 !important;
    margin-right:0 !important;
  }
  body.hoa-public-front #hoaDynamicShowcase .hoa-v3d-stage{
    width:100% !important;
    max-width:100% !important;
    min-width:0 !important;
    overflow:hidden !important;
  }

  /* Keep transformed showcase cards from defining a wider visual canvas. */
  body.hoa-public-front #hoaDynamicShowcase .hoa-v3d-track,
  body.hoa-public-front #hoaDynamicShowcase .hoa-v3d-card{
    max-width:100% !important;
    min-width:0 !important;
  }

  /* Student Area: all three cards remain fully inside the mobile section. */
  body.hoa-public-front #hoaV648StudentOptions{
    width:calc(100% - 20px) !important;
    max-width:none !important;
    padding-left:0 !important;
    padding-right:0 !important;
  }
  body.hoa-public-front #hoaV648StudentOptions .hoa-v648-option-card{
    transform:none !important;
    transform-style:flat !important;
  }
  body.hoa-public-front #hoaV648StudentOptions .hoa-v648-option-card::before,
  body.hoa-public-front #hoaV648StudentOptions .hoa-v648-option-card::after{
    display:none !important;
  }

  /* Feature cards/hero content must not impose an intrinsic phone width. */
  body.hoa-public-front #hoaFrontPage .hoa-front-feature,
  body.hoa-public-front #hoaFrontPage .hoa-front-feature-box,
  body.hoa-public-front #hoaFrontPage .hoa-front-card-stack,
  body.hoa-public-front #hoaFrontPage .hoa-front-visual{
    min-width:0 !important;
    max-width:100% !important;
  }
  body.hoa-public-front #hoaFrontPage .hoa-front-feature-box,
  body.hoa-public-front #hoaFrontPage .hoa-front-feature{
    overflow:hidden !important;
  }

  /* Remove the 100vw footer canvas on phones. */
  body.hoa-public-front #hoaGlobalPublicFooter,
  body.hoa-public-front #hoaFrontSocialFooter,
  body.hoa-public-front #hoaProfessionalFooter{
    width:100% !important;
    max-width:100% !important;
    margin-left:0 !important;
    margin-right:0 !important;
    box-sizing:border-box !important;
    overflow-x:hidden !important;
  }

  /* Defensive horizontal reset for any prior viewport shift. */
  body.hoa-public-front{
    scroll-padding-left:0 !important;
    scroll-padding-right:0 !important;
  }
}

@media (max-width:390px){
  body.hoa-public-front #hoaFrontPage .hoa-front-nav{width:calc(100% - 10px) !important;}
  body.hoa-public-front #hoaFrontPage .hoa-front-hero,
  body.hoa-public-front #hoaFrontPage .hoa-front-section,
  body.hoa-public-front #hoaV648StudentOptions,
  body.hoa-public-front #hoaDynamicShowcase{width:calc(100% - 14px) !important;}
}


/* ================================================================
   HOA V3.6 — MOBILE HOME EDGE-TO-EDGE WIDTH CONTRACT
   Final audit fix for reported right/left clipping in Home.
   The previous layers still depended on nested calc(100% - Npx)
   widths. On phones, those widths compound with container/safe-area
   padding and the browser viewport scrollbar. V3.6 switches the public
   Home hierarchy to one predictable contract:
     viewport -> main.container -> hoaFrontPage -> section -> card
   Sections span the available content width and use internal padding
   instead of width-minus-margin math. This prevents the right edge of
   Student Area cards and other Home sections from being clipped.
   ================================================================ */
@media (max-width: 768px){
  html,
  body{
    width:100% !important;
    max-width:100% !important;
    min-width:0 !important;
    overflow-x:clip !important;
    overflow-x:hidden !important;
  }

  /* Remove every parent-side padding that can compound with child widths. */
  body.hoa-public-front > main.container{
    width:100% !important;
    max-width:none !important;
    min-width:0 !important;
    margin:0 !important;
    padding:0 !important;
    box-sizing:border-box !important;
    overflow-x:clip !important;
  }

  body.hoa-public-front #hoaFrontPage{
    width:100% !important;
    max-width:none !important;
    min-width:0 !important;
    margin:0 !important;
    padding:0 !important;
    box-sizing:border-box !important;
    overflow-x:clip !important;
  }

  body.hoa-public-front #hoaFrontPage > .hoa-front-content{
    width:100% !important;
    max-width:none !important;
    min-width:0 !important;
    margin:0 !important;
    padding:0 !important;
    box-sizing:border-box !important;
    overflow-x:clip !important;
  }

  body.hoa-public-front #hoaFrontPage .hoa-front-nav{
    width:100% !important;
    max-width:none !important;
    min-width:0 !important;
    margin:6px 0 0 !important;
    padding-left:max(10px,env(safe-area-inset-left)) !important;
    padding-right:max(10px,env(safe-area-inset-right)) !important;
    box-sizing:border-box !important;
  }

  /* Hero/regular sections: full available width with controlled inner padding. */
  body.hoa-public-front #hoaFrontPage .hoa-front-hero,
  body.hoa-public-front #hoaFrontPage .hoa-front-section,
  body.hoa-public-front #hoaDynamicShowcase,
  body.hoa-public-front #hoaV648StudentOptions{
    width:100% !important;
    max-width:none !important;
    min-width:0 !important;
    margin-left:0 !important;
    margin-right:0 !important;
    box-sizing:border-box !important;
  }

  body.hoa-public-front #hoaFrontPage .hoa-front-hero{
    padding-left:12px !important;
    padding-right:12px !important;
  }

  body.hoa-public-front #hoaFrontPage .hoa-front-section{
    padding-left:12px !important;
    padding-right:12px !important;
  }

  /* Latest Updates is intentionally padded internally, not by outer margins. */
  body.hoa-public-front #hoaDynamicShowcase{
    margin-top:12px !important;
    margin-bottom:12px !important;
    padding-left:12px !important;
    padding-right:12px !important;
    overflow-x:clip !important;
  }

  body.hoa-public-front #hoaDynamicShowcase .hoa-v3d-head,
  body.hoa-public-front #hoaDynamicShowcase .hoa-v3d-stage,
  body.hoa-public-front #hoaDynamicShowcase .hoa-v3d-track{
    width:100% !important;
    max-width:none !important;
    min-width:0 !important;
    margin-left:0 !important;
    margin-right:0 !important;
    box-sizing:border-box !important;
  }

  /* Student Area: the section owns the horizontal padding. The cards do not
     calculate a second width from the viewport, eliminating the right-edge cut. */
  body.hoa-public-front #hoaV648StudentOptions{
    margin-top:18px !important;
    margin-bottom:18px !important;
    padding:14px 12px !important;
    border-radius:18px !important;
    overflow:visible !important;
  }

  body.hoa-public-front #hoaV648StudentOptions .hoa-v648-option-grid{
    width:100% !important;
    max-width:none !important;
    min-width:0 !important;
    margin:0 !important;
    padding:0 !important;
    grid-template-columns:minmax(0,1fr) !important;
    box-sizing:border-box !important;
  }

  body.hoa-public-front #hoaV648StudentOptions .hoa-v648-option-card{
    width:100% !important;
    max-width:none !important;
    min-width:0 !important;
    margin:0 !important;
    box-sizing:border-box !important;
    overflow:hidden !important;
  }

  /* The content columns must shrink before the CTA column; never widen the card. */
  body.hoa-public-front #hoaV648StudentOptions .hoa-v648-option-card{
    grid-template-columns:36px minmax(0,1fr) max-content !important;
  }

  body.hoa-public-front #hoaV648StudentOptions .hoa-v648-option-link{
    max-width:100% !important;
    min-width:0 !important;
    justify-self:end !important;
    white-space:nowrap !important;
    box-sizing:border-box !important;
  }

  body.hoa-public-front #hoaFrontPage .hoa-front-feature,
  body.hoa-public-front #hoaFrontPage .hoa-front-feature-box,
  body.hoa-public-front #hoaFrontPage .hoa-front-card-stack,
  body.hoa-public-front #hoaFrontPage .hoa-front-visual,
  body.hoa-public-front #hoaFrontPage .hoa-front-features{
    width:100% !important;
    max-width:100% !important;
    min-width:0 !important;
    box-sizing:border-box !important;
  }

  /* Floating/translated decorations cannot enlarge the layout viewport. */
  body.hoa-public-front #hoaFrontPage .hoa-front-orb{
    max-width:none !important;
    pointer-events:none !important;
  }

  /* Neutralize the only public footer rule that intentionally uses 100vw. */
  body.hoa-public-front #hoaProfessionalFooter{
    width:100% !important;
    max-width:100% !important;
    margin-left:0 !important;
    margin-right:0 !important;
    box-sizing:border-box !important;
  }

  /* Never preserve a stale horizontal scroll position on the public Home. */
  body.hoa-public-front{
    overflow-x:hidden !important;
    overscroll-behavior-x:none !important;
  }
}

@media (max-width: 390px){
  body.hoa-public-front #hoaFrontPage .hoa-front-nav{
    padding-left:8px !important;
    padding-right:8px !important;
  }
  body.hoa-public-front #hoaFrontPage .hoa-front-hero,
  body.hoa-public-front #hoaFrontPage .hoa-front-section,
  body.hoa-public-front #hoaDynamicShowcase,
  body.hoa-public-front #hoaV648StudentOptions{
    padding-left:9px !important;
    padding-right:9px !important;
  }
}

/* ================================================================
   HOA MOBILE/TABLET V3.7 — STUDENT ACTION CARDS 3D EDGE SAFE
   Purpose: replace cramped edge-to-edge mobile cards with three
   vertically stacked, slightly extruded 3D action bars. The visual
   extrusion stays inside the viewport so it cannot create clipping.
   Desktop >1024px is untouched.
   ================================================================ */
@media (max-width:1024px){
  body.hoa-public-front #hoaV648StudentOptions{
    width:calc(100% - 24px) !important;
    max-width:760px !important;
    margin:18px auto !important;
    padding:14px 10px 18px !important;
    box-sizing:border-box !important;
    overflow:visible !important;
  }

  body.hoa-public-front #hoaV648StudentOptions .hoa-v648-option-grid{
    display:grid !important;
    grid-template-columns:minmax(0,1fr) !important;
    gap:16px !important;
    width:100% !important;
    max-width:100% !important;
    min-width:0 !important;
    padding:0 8px 8px 0 !important;
    box-sizing:border-box !important;
    perspective:1400px !important;
  }

  body.hoa-public-front #hoaV648StudentOptions .hoa-v648-option-card{
    position:relative !important;
    display:grid !important;
    grid-template-columns:44px minmax(0,1fr) auto !important;
    grid-template-areas:
      "icon title link"
      "icon copy  link" !important;
    align-items:center !important;
    width:calc(100% - 8px) !important;
    max-width:100% !important;
    min-width:0 !important;
    min-height:92px !important;
    margin:0 !important;
    padding:12px 13px !important;
    box-sizing:border-box !important;
    overflow:visible !important;
    border-radius:13px !important;
    border:1.5px solid rgba(37,99,235,.34) !important;
    background:linear-gradient(145deg,#ffffff 0%,#f7fbff 62%,#e8f1fb 100%) !important;
    transform:translate3d(3px,0,0) rotateX(.8deg) rotateY(-.8deg) !important;
    transform-style:preserve-3d !important;
    box-shadow:
      0 8px 15px rgba(11,46,82,.10),
      0 0 0 1px rgba(255,255,255,.85) inset,
      5px 5px 0 rgba(29,78,216,.16),
      8px 8px 0 rgba(37,99,235,.07) !important;
    transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease !important;
  }

  body.hoa-public-front #hoaV648StudentOptions .hoa-v648-option-card::before{
    content:"" !important;
    position:absolute !important;
    inset:0 !important;
    border-radius:inherit !important;
    border:1px solid rgba(147,197,253,.78) !important;
    box-shadow:0 0 0 1px rgba(59,130,246,.08) inset !important;
    pointer-events:none !important;
    transform:translateZ(6px) !important;
  }

  body.hoa-public-front #hoaV648StudentOptions .hoa-v648-option-card::after{
    content:"" !important;
    position:absolute !important;
    top:5px !important;
    left:6px !important;
    right:-7px !important;
    bottom:-7px !important;
    border-radius:inherit !important;
    border-right:3px solid rgba(29,78,216,.18) !important;
    border-bottom:3px solid rgba(29,78,216,.18) !important;
    background:linear-gradient(135deg,transparent 0%,rgba(59,130,246,.045) 100%) !important;
    pointer-events:none !important;
    z-index:-1 !important;
    transform:translateZ(-2px) !important;
  }

  body.hoa-public-front #hoaV648StudentOptions .hoa-v648-option-card:nth-child(2){
    border-color:rgba(212,167,44,.52) !important;
    box-shadow:
      0 8px 15px rgba(96,70,8,.10),
      0 0 0 1px rgba(255,255,255,.85) inset,
      5px 5px 0 rgba(212,167,44,.22),
      8px 8px 0 rgba(200,148,30,.08) !important;
  }

  body.hoa-public-front #hoaV648StudentOptions .hoa-v648-option-card:nth-child(2)::after{
    border-right-color:rgba(200,148,30,.23) !important;
    border-bottom-color:rgba(200,148,30,.23) !important;
  }

  body.hoa-public-front #hoaV648StudentOptions .hoa-v648-option-icon{
    grid-area:icon !important;
    width:38px !important;
    height:38px !important;
    margin:0 !important;
    display:grid !important;
    place-items:center !important;
    border-radius:10px !important;
    font-size:19px !important;
    background:linear-gradient(145deg,#fff,#edf4fb) !important;
    box-shadow:0 2px 6px rgba(11,46,82,.12),0 1px 0 rgba(255,255,255,.96) inset !important;
  }

  body.hoa-public-front #hoaV648StudentOptions .hoa-v648-option-title{
    grid-area:title !important;
    min-width:0 !important;
    margin:0 !important;
    font-size:14px !important;
    line-height:1.2 !important;
    overflow:hidden !important;
    text-overflow:ellipsis !important;
    white-space:nowrap !important;
  }

  body.hoa-public-front #hoaV648StudentOptions .hoa-v648-option-copy{
    grid-area:copy !important;
    min-width:0 !important;
    margin:3px 0 0 !important;
    font-size:10px !important;
    line-height:1.25 !important;
    overflow:hidden !important;
    text-overflow:ellipsis !important;
    white-space:nowrap !important;
  }

  body.hoa-public-front #hoaV648StudentOptions .hoa-v648-option-link{
    grid-area:link !important;
    justify-self:end !important;
    align-self:center !important;
    width:auto !important;
    min-width:76px !important;
    max-width:100% !important;
    margin:0 !important;
    padding:7px 9px !important;
    border-radius:8px !important;
    white-space:nowrap !important;
    text-align:center !important;
    font-size:10px !important;
    line-height:1 !important;
    background:#0b2e52 !important;
    color:#fff !important;
    box-shadow:0 3px 6px rgba(11,46,82,.16) !important;
  }

  body.hoa-public-front #hoaV648StudentOptions .hoa-v648-option-card:nth-child(2) .hoa-v648-option-link{
    background:#c8941e !important;
    color:#fff !important;
  }

  @media (hover:hover){
    body.hoa-public-front #hoaV648StudentOptions .hoa-v648-option-card:hover{
      transform:translate3d(3px,-2px,8px) rotateX(1.4deg) rotateY(-1.4deg) !important;
      box-shadow:
        0 12px 22px rgba(11,46,82,.13),
        0 0 0 1px rgba(255,255,255,.9) inset,
        6px 6px 0 rgba(29,78,216,.20),
        10px 10px 0 rgba(37,99,235,.09) !important;
    }
  }
}

@media (max-width:600px){
  body.hoa-public-front #hoaV648StudentOptions{
    width:calc(100% - 16px) !important;
    max-width:none !important;
    margin:15px auto !important;
    padding:12px 7px 16px !important;
  }
  body.hoa-public-front #hoaV648StudentOptions .hoa-v648-option-grid{
    gap:14px !important;
    padding-right:7px !important;
  }
  body.hoa-public-front #hoaV648StudentOptions .hoa-v648-option-card{
    width:calc(100% - 7px) !important;
    min-height:82px !important;
    grid-template-columns:38px minmax(0,1fr) auto !important;
    padding:10px 11px !important;
    border-radius:11px !important;
    transform:translate3d(2px,0,0) rotateX(.7deg) rotateY(-.7deg) !important;
    box-shadow:
      0 7px 13px rgba(11,46,82,.09),
      0 0 0 1px rgba(255,255,255,.82) inset,
      4px 4px 0 rgba(29,78,216,.15),
      7px 7px 0 rgba(37,99,235,.065) !important;
  }
  body.hoa-public-front #hoaV648StudentOptions .hoa-v648-option-card::after{
    right:-6px !important;
    bottom:-6px !important;
    border-right-width:2px !important;
    border-bottom-width:2px !important;
  }
  body.hoa-public-front #hoaV648StudentOptions .hoa-v648-option-icon{
    width:34px !important;
    height:34px !important;
    font-size:17px !important;
    border-radius:9px !important;
  }
  body.hoa-public-front #hoaV648StudentOptions .hoa-v648-option-title{
    font-size:13.5px !important;
  }
  body.hoa-public-front #hoaV648StudentOptions .hoa-v648-option-copy{
    font-size:9.5px !important;
  }
  body.hoa-public-front #hoaV648StudentOptions .hoa-v648-option-link{
    min-width:70px !important;
    padding:6px 8px !important;
    font-size:9px !important;
    border-radius:7px !important;
  }
}

@media (max-width:390px){
  body.hoa-public-front #hoaV648StudentOptions{
    width:calc(100% - 12px) !important;
    padding-left:5px !important;
    padding-right:5px !important;
  }
  body.hoa-public-front #hoaV648StudentOptions .hoa-v648-option-grid{
    gap:12px !important;
    padding-right:5px !important;
  }
  body.hoa-public-front #hoaV648StudentOptions .hoa-v648-option-card{
    width:calc(100% - 5px) !important;
    min-height:78px !important;
    grid-template-columns:32px minmax(0,1fr) auto !important;
    column-gap:8px !important;
    padding:9px 10px !important;
    transform:translate3d(1px,0,0) !important;
    box-shadow:
      0 6px 11px rgba(11,46,82,.09),
      0 0 0 1px rgba(255,255,255,.82) inset,
      3px 3px 0 rgba(29,78,216,.14),
      6px 6px 0 rgba(37,99,235,.06) !important;
  }
  body.hoa-public-front #hoaV648StudentOptions .hoa-v648-option-icon{
    width:30px !important;
    height:30px !important;
    font-size:15px !important;
  }
  body.hoa-public-front #hoaV648StudentOptions .hoa-v648-option-title{
    font-size:12.5px !important;
  }
  body.hoa-public-front #hoaV648StudentOptions .hoa-v648-option-copy{
    font-size:9px !important;
  }
  body.hoa-public-front #hoaV648StudentOptions .hoa-v648-option-link{
    min-width:64px !important;
    padding:5px 7px !important;
    font-size:8.5px !important;
  }
}

/* ================================================================
   HOA V3.8 — LAPTOP STUDENT AREA 3D ACTION BARS
   Applies to laptop-sized viewports while preserving wide desktop.
   3 cards become clean full-width horizontal 3D action bars.
   ================================================================ */
@media (min-width:761px) and (max-width:1366px){
  body.hoa-public-front #hoaV648StudentOptions{
    width:min(1180px,calc(100% - 36px)) !important;
    max-width:1180px !important;
    margin-left:auto !important;
    margin-right:auto !important;
    padding:24px !important;
    box-sizing:border-box !important;
    overflow:visible !important;
  }

  body.hoa-public-front #hoaV648StudentOptions .hoa-v648-option-grid{
    display:grid !important;
    grid-template-columns:1fr !important;
    gap:18px !important;
    width:100% !important;
    max-width:100% !important;
    min-width:0 !important;
    perspective:1400px !important;
  }

  body.hoa-public-front #hoaV648StudentOptions .hoa-v648-option-card{
    position:relative !important;
    display:grid !important;
    grid-template-columns:52px minmax(0,1fr) auto !important;
    grid-template-rows:auto auto !important;
    grid-template-areas:
      "icon title link"
      "icon copy link" !important;
    align-items:center !important;
    column-gap:16px !important;
    row-gap:5px !important;
    width:100% !important;
    min-width:0 !important;
    min-height:122px !important;
    margin:0 !important;
    padding:18px 20px !important;
    box-sizing:border-box !important;
    overflow:visible !important;
    white-space:normal !important;
    text-align:left !important;
    transform-style:preserve-3d !important;
    transform:perspective(1400px) translate3d(0,0,0) !important;
    border-radius:16px !important;
    box-shadow:
      0 10px 18px rgba(18,55,95,.08),
      0 0 0 1px rgba(96,165,250,.08) inset,
      7px 7px 0 rgba(29,78,216,.16),
      11px 11px 0 rgba(37,99,235,.07) !important;
  }

  body.hoa-public-front #hoaV648StudentOptions .hoa-v648-option-icon{
    grid-area:icon !important;
    width:52px !important;
    height:52px !important;
    display:grid !important;
    place-items:center !important;
    margin:0 !important;
    font-size:27px !important;
    border-radius:14px !important;
    box-sizing:border-box !important;
  }

  body.hoa-public-front #hoaV648StudentOptions .hoa-v648-option-title{
    grid-area:title !important;
    width:auto !important;
    max-width:100% !important;
    min-width:0 !important;
    margin:0 !important;
    font-size:19px !important;
    line-height:1.2 !important;
  }

  body.hoa-public-front #hoaV648StudentOptions .hoa-v648-option-copy{
    grid-area:copy !important;
    width:auto !important;
    max-width:100% !important;
    min-width:0 !important;
    margin:0 !important;
    font-size:13px !important;
    line-height:1.45 !important;
    overflow-wrap:anywhere !important;
  }

  body.hoa-public-front #hoaV648StudentOptions .hoa-v648-option-link{
    grid-area:link !important;
    justify-self:end !important;
    align-self:center !important;
    width:auto !important;
    min-width:116px !important;
    max-width:160px !important;
    margin:0 !important;
    padding:10px 14px !important;
    border-radius:10px !important;
    box-sizing:border-box !important;
    text-align:center !important;
    white-space:nowrap !important;
    color:#fff !important;
    background:#0f3157 !important;
    box-shadow:0 5px 10px rgba(15,49,87,.18) !important;
  }

  body.hoa-public-front #hoaV648StudentOptions .hoa-v648-option-card:nth-child(2){
    border-color:rgba(202,146,9,.50) !important;
    box-shadow:
      0 10px 18px rgba(118,83,7,.07),
      0 0 0 1px rgba(245,196,65,.12) inset,
      7px 7px 0 rgba(194,139,14,.17),
      11px 11px 0 rgba(216,166,38,.08) !important;
  }

  body.hoa-public-front #hoaV648StudentOptions .hoa-v648-option-card:nth-child(2) .hoa-v648-option-link{
    background:#c69214 !important;
    color:#fff !important;
  }

  body.hoa-public-front #hoaV648StudentOptions .hoa-v648-option-card::after{
    right:-9px !important;
    bottom:-9px !important;
    width:100% !important;
    height:100% !important;
    border-right:4px solid rgba(29,78,216,.23) !important;
    border-bottom:4px solid rgba(29,78,216,.23) !important;
    background:linear-gradient(135deg,transparent 0%,rgba(59,130,246,.035) 100%) !important;
    border-radius:inherit !important;
    pointer-events:none !important;
    z-index:-1 !important;
  }

  body.hoa-public-front #hoaV648StudentOptions .hoa-v648-option-card:nth-child(2)::after{
    border-right-color:rgba(194,139,14,.24) !important;
    border-bottom-color:rgba(194,139,14,.24) !important;
  }

  body.hoa-public-front #hoaV648StudentOptions .hoa-v648-option-card:hover{
    transform:perspective(1400px) translate3d(0,-3px,9px) !important;
  }
}

@media (min-width:761px) and (max-width:1080px){
  body.hoa-public-front #hoaV648StudentOptions{
    width:calc(100% - 28px) !important;
    padding:20px !important;
  }
  body.hoa-public-front #hoaV648StudentOptions .hoa-v648-option-card{
    grid-template-columns:46px minmax(0,1fr) auto !important;
    column-gap:12px !important;
    min-height:112px !important;
    padding:16px 17px !important;
  }
  body.hoa-public-front #hoaV648StudentOptions .hoa-v648-option-icon{
    width:46px !important;
    height:46px !important;
    font-size:24px !important;
  }
  body.hoa-public-front #hoaV648StudentOptions .hoa-v648-option-title{
    font-size:17px !important;
  }
  body.hoa-public-front #hoaV648StudentOptions .hoa-v648-option-copy{
    font-size:12px !important;
  }
  body.hoa-public-front #hoaV648StudentOptions .hoa-v648-option-link{
    min-width:104px !important;
    padding:9px 11px !important;
    font-size:11px !important;
  }
}

/* =====================================================================
   HOA EXAM MOBILE V5.8 — CLEANUP SURGERY
   Phone only: <=767px.
   Presentation layer only. Existing exam state, timer, warnings,
   navigation, scoring and submission handlers remain untouched.
   ===================================================================== */
@media (max-width:767px){
  :root{
    --hoa-exam-gap:8px;
  }

  html,body{width:100% !important;max-width:100% !important;overflow-x:hidden !important;}
  body.v13-exam-active,
  body.hoa-exam-live,
  body.hoa-local-exam-immersive{background:#f6fbff !important;}

  /* ---------- Exam shell ---------- */
  body.v13-exam-active #exam,
  body.hoa-exam-live #exam,
  body.hoa-local-exam-immersive #exam{
    width:100% !important;max-width:100% !important;min-width:0 !important;
    margin:0 !important;
    padding:0 8px calc(var(--hoa-exam-dock-h) + 18px + env(safe-area-inset-bottom)) !important;
    box-sizing:border-box !important;
    overflow:visible !important;
    background:#f6fbff !important;
  }

  /* ---------- Header ---------- */
  body.v13-exam-active #exam .examTop,
  body.hoa-exam-live #exam .examTop,
  body.hoa-local-exam-immersive #exam .examTop{
    position:relative !important;
    display:grid !important;
    grid-template-columns:minmax(0,1fr) auto !important;
    align-items:center !important;
    gap:8px !important;
    width:calc(100% + 16px) !important;
    margin:0 -8px !important;
    min-height:var(--hoa-exam-header-h) !important;
    padding:calc(12px + env(safe-area-inset-top)) 10px 9px !important;
    box-sizing:border-box !important;
    overflow:hidden !important;
    background:linear-gradient(135deg,#063b69 0%,#075b91 60%,#0b6f9e 100%) !important;
    color:#fff !important;
    border-radius:0 0 13px 13px !important;
    box-shadow:0 3px 12px rgba(0,45,80,.14) !important;
  }
  body.v13-exam-active #exam .examTop > div:first-child,
  body.hoa-exam-live #exam .examTop > div:first-child,
  body.hoa-local-exam-immersive #exam .examTop > div:first-child{
    min-width:0 !important;
    padding-top:0 !important;
  }
  body.v13-exam-active #exam .examTop .examTopTitle,
  body.hoa-exam-live #exam .examTop .examTopTitle,
  body.hoa-local-exam-immersive #exam .examTop .examTopTitle{min-width:0 !important;}
  body.v13-exam-active #exam .examTop b#examTestTitle,
  body.hoa-exam-live #exam .examTop b#examTestTitle,
  body.hoa-local-exam-immersive #exam .examTop b#examTestTitle{
    display:block !important;
    min-width:0 !important;
    margin:0 !important;
    color:#fff !important;
    font-size:16px !important;
    line-height:1.14 !important;
    font-weight:800 !important;
    letter-spacing:-.1px !important;
    white-space:nowrap !important;
    overflow:hidden !important;
    text-overflow:ellipsis !important;
  }
  body.v13-exam-active #exam .examTop .sub,
  body.hoa-exam-live #exam .examTop .sub,
  body.hoa-local-exam-immersive #exam .examTop .sub{
    margin-top:3px !important;
    color:rgba(255,255,255,.86) !important;
    font-size:10px !important;
    line-height:1.15 !important;
  }
  body.v13-exam-active #exam .examTop > div:last-child,
  body.hoa-exam-live #exam .examTop > div:last-child,
  body.hoa-local-exam-immersive #exam .examTop > div:last-child{
    display:flex !important;
    align-items:center !important;
    justify-content:flex-end !important;
    gap:5px !important;
    min-width:0 !important;
  }
  body.v13-exam-active #exam .examTop > div:last-child::before,
  body.hoa-exam-live #exam .examTop > div:last-child::before,
  body.hoa-local-exam-immersive #exam .examTop > div:last-child::before{content:none !important;display:none !important;}
  body.v13-exam-active #exam #adminPreviewExit.v13-visible,
  body.hoa-exam-live #exam #adminPreviewExit.v13-visible,
  body.hoa-local-exam-immersive #exam #adminPreviewExit.v13-visible{
    min-width:0 !important;
    width:auto !important;
    max-width:110px !important;
    min-height:30px !important;
    height:30px !important;
    padding:0 7px !important;
    margin:0 !important;
    border-radius:8px !important;
    font-size:9px !important;
    line-height:1 !important;
    white-space:nowrap !important;
    overflow:hidden !important;
    text-overflow:ellipsis !important;
  }
  body.v13-exam-active #exam .hoa-v598-exam-status,
  body.hoa-exam-live #exam .hoa-v598-exam-status,
  body.hoa-local-exam-immersive #exam .hoa-v598-exam-status{
    flex:0 0 auto !important;
    min-height:30px !important;
    height:30px !important;
    padding:0 7px !important;
    gap:5px !important;
    border-color:rgba(255,255,255,.42) !important;
    border-radius:8px !important;
    background:rgba(255,255,255,.08) !important;
    color:#fff !important;
    font-size:9px !important;
    box-shadow:none !important;
  }
  body.v13-exam-active #exam .hoa-v598-exam-status .dot,
  body.hoa-exam-live #exam .hoa-v598-exam-status .dot,
  body.hoa-local-exam-immersive #exam .hoa-v598-exam-status .dot{width:6px !important;height:6px !important;}
  body.v13-exam-active #exam .hoa-v598-exam-status.offline,
  body.hoa-exam-live #exam .hoa-v598-exam-status.offline,
  body.hoa-local-exam-immersive #exam .hoa-v598-exam-status.offline{
    background:rgba(255,213,94,.14) !important;
    border-color:rgba(255,224,129,.72) !important;
    color:#fff !important;
  }
  body.v13-exam-active #exam .hoa-v598-exam-status .label,
  body.hoa-exam-live #exam .hoa-v598-exam-status .label,
  body.hoa-local-exam-immersive #exam .hoa-v598-exam-status .label{display:none !important;}
  body.v13-exam-active #exam .timer,
  body.hoa-exam-live #exam .timer,
  body.hoa-local-exam-immersive #exam .timer{
    width:78px !important;
    min-width:78px !important;
    height:38px !important;
    padding:0 6px !important;
    display:flex !important;
    align-items:center !important;
    justify-content:center !important;
    border:1px solid #dbe6ee !important;
    border-radius:9px !important;
    background:#fff !important;
    color:#17334e !important;
    font-size:13px !important;
    font-weight:800 !important;
    box-shadow:0 2px 7px rgba(0,0,0,.11) !important;
    box-sizing:border-box !important;
  }
  body.v13-exam-active #exam .progress,
  body.hoa-exam-live #exam .progress,
  body.hoa-local-exam-immersive #exam .progress{
    width:calc(100% + 16px) !important;
    margin:0 -8px !important;
    height:4px !important;
    min-height:4px !important;
    border-radius:0 !important;
    background:#dceaf4 !important;
    overflow:hidden !important;
  }
  body.v13-exam-active #exam .progress .bar,
  body.hoa-exam-live #exam .progress .bar,
  body.hoa-local-exam-immersive #exam .progress .bar{height:4px !important;}

  /* ---------- Question / options: one primary scroll region ---------- */
  body.v13-exam-active #exam .examGrid,
  body.hoa-exam-live #exam .examGrid,
  body.hoa-local-exam-immersive #exam .examGrid{
    gap:var(--hoa-exam-gap) !important;
    width:100% !important;
    min-width:0 !important;
    padding:8px 0 0 !important;
  }
  body.v13-exam-active #exam .examGrid > .card:first-child,
  body.hoa-exam-live #exam .examGrid > .card:first-child,
  body.hoa-local-exam-immersive #exam .examGrid > .card:first-child{
    order:1 !important;
    width:100% !important;
    min-width:0 !important;
    margin:0 !important;
    padding:10px 10px 12px !important;
    overflow-y:auto !important;
    overflow-x:hidden !important;
    -webkit-overflow-scrolling:touch !important;
    overscroll-behavior:contain !important;
    scrollbar-width:thin !important;
    box-sizing:border-box !important;
    border:1px solid #e0e8f0 !important;
    border-radius:14px !important;
    background:#fff !important;
    box-shadow:0 3px 13px rgba(15,46,76,.06) !important;
    scroll-padding-bottom:12px !important;
  }
  body.v13-exam-active #exam .questionNo,
  body.hoa-exam-live #exam .questionNo,
  body.hoa-local-exam-immersive #exam .questionNo{
    display:flex !important;
    align-items:center !important;
    justify-content:space-between !important;
    gap:8px !important;
    width:100% !important;
    min-height:34px !important;
    height:34px !important;
    margin:0 0 11px !important;
    padding:0 9px !important;
    box-sizing:border-box !important;
    border:1px solid #d6e6f1 !important;
    border-radius:9px !important;
    background:#edf7fc !important;
    color:#17334e !important;
    font-size:11px !important;
    line-height:34px !important;
    font-weight:800 !important;
  }
  body.v13-exam-active #exam #questionNoText,
  body.hoa-exam-live #exam #questionNoText,
  body.hoa-local-exam-immersive #exam #questionNoText{min-width:0 !important;overflow:hidden !important;text-overflow:ellipsis !important;white-space:nowrap !important;}
  body.v13-exam-active #exam .examMarkBadge,
  body.hoa-exam-live #exam .examMarkBadge,
  body.hoa-local-exam-immersive #exam .examMarkBadge{
    flex:0 0 auto !important;
    display:inline-flex !important;
    align-items:center !important;
    justify-content:center !important;
    height:26px !important;
    padding:0 8px !important;
    border-radius:999px !important;
    background:#e0f0fb !important;
    color:#17334e !important;
    font-size:9px !important;
    line-height:26px !important;
    font-weight:800 !important;
    white-space:nowrap !important;
  }
  body.v13-exam-active #exam #questionText,
  body.hoa-exam-live #exam #questionText,
  body.hoa-local-exam-immersive #exam #questionText,
  body.v13-exam-active #exam .question,
  body.hoa-exam-live #exam .question,
  body.hoa-local-exam-immersive #exam .question{
    width:100% !important;
    min-width:0 !important;
    max-width:100% !important;
    margin:0 0 15px !important;
    padding:0 1px !important;
    color:#142235 !important;
    font-size:15px !important;
    line-height:1.42 !important;
    font-weight:500 !important;
    overflow:visible !important;
    overflow-wrap:anywhere !important;
    word-break:break-word !important;
  }
  body.v13-exam-active #exam #questionText img,
  body.hoa-exam-live #exam #questionText img,
  body.hoa-local-exam-immersive #exam #questionText img,
  body.v13-exam-active #exam .question img,
  body.hoa-exam-live #exam .question img,
  body.hoa-local-exam-immersive #exam .question img{
    display:block !important;
    width:auto !important;
    max-width:100% !important;
    height:auto !important;
    max-height:28vh !important;
    object-fit:contain !important;
    margin:9px auto !important;
  }
  body.v13-exam-active #exam #options,
  body.hoa-exam-live #exam #options,
  body.hoa-local-exam-immersive #exam #options{
    width:100% !important;
    min-width:0 !important;
    max-height:none !important;
    overflow:visible !important;
  }
  body.v13-exam-active #exam #options > *,
  body.hoa-exam-live #exam #options > *,
  body.hoa-local-exam-immersive #exam #options > *{
    display:flex !important;
    align-items:center !important;
    width:100% !important;
    min-width:0 !important;
    min-height:48px !important;
    margin:6px 0 !important;
    padding:9px 11px !important;
    box-sizing:border-box !important;
    border:1px solid #cbd8e2 !important;
    border-radius:10px !important;
    background:#fff !important;
    color:#172434 !important;
    font-size:13px !important;
    line-height:1.3 !important;
    font-weight:600 !important;
    text-align:left !important;
    white-space:normal !important;
    overflow-wrap:anywhere !important;
    word-break:break-word !important;
  }
  body.v13-exam-active #exam #options > *.selected,
  body.hoa-exam-live #exam #options > *.selected,
  body.hoa-local-exam-immersive #exam #options > *.selected{
    border-color:#0b6f9e !important;
    background:#eef8fc !important;
    box-shadow:inset 0 0 0 1px #0b6f9e !important;
  }
  /* Wide content stays inside the question card. */
  body.v13-exam-active #exam .question,
  body.hoa-exam-live #exam .question,
  body.hoa-local-exam-immersive #exam .question{overscroll-behavior-x:contain !important;}
  body.v13-exam-active #exam .question table,
  body.hoa-exam-live #exam .question table,
  body.hoa-local-exam-immersive #exam .question table{
    display:block !important;
    width:max-content !important;
    min-width:100% !important;
    max-width:none !important;
    overflow-x:auto !important;
  }

  /* ---------- Question navigator ---------- */
  body.v13-exam-active #exam .examGrid > .side,
  body.hoa-exam-live #exam .examGrid > .side,
  body.hoa-local-exam-immersive #exam .examGrid > .side{
    order:2 !important;
    width:100% !important;
    min-width:0 !important;
    margin:0 !important;
    padding:9px !important;
    box-sizing:border-box !important;
    border:1px solid #d8e8f2 !important;
    border-radius:12px !important;
    background:#edf9fd !important;
    box-shadow:0 2px 10px rgba(17,58,92,.05) !important;
  }
  body.v13-exam-active #exam .examGrid > .side h3,
  body.hoa-exam-live #exam .examGrid > .side h3,
  body.hoa-local-exam-immersive #exam .examGrid > .side h3{
    display:flex !important;
    align-items:center !important;
    height:27px !important;
    min-height:27px !important;
    margin:0 0 6px !important;
    padding:0 2px !important;
    color:#123b59 !important;
    font-size:13px !important;
    line-height:27px !important;
    font-weight:800 !important;
  }
  .hoa-phone-nav-title{display:inline-flex !important;align-items:center !important;}
  .hoa-phone-nav-title::before{content:'▦' !important;margin-right:5px !important;font-size:14px !important;}
  .hoa-phone-nav-count{display:inline-flex !important;align-items:center !important;margin-left:auto !important;margin-right:7px !important;color:#17334e !important;font-size:10px !important;font-weight:700 !important;}
  .hoa-phone-nav-chevron{display:inline-flex !important;align-items:center !important;font-size:17px !important;line-height:1 !important;}

  /* Horizontal question-number strip — no page-wide overflow. */
  body.v13-exam-active #exam #palette,
  body.hoa-exam-live #exam #palette,
  body.hoa-local-exam-immersive #exam #palette,
  body.v13-exam-active #exam .palette,
  body.hoa-exam-live #exam .palette,
  body.hoa-local-exam-immersive #exam .palette{
    display:flex !important;
    flex-wrap:nowrap !important;
    align-items:center !important;
    justify-content:flex-start !important;
    gap:5px !important;
    width:100% !important;
    max-width:100% !important;
    min-height:31px !important;
    height:38px !important;
    max-height:38px !important;
    margin:0 !important;
    padding:1px 2px 4px !important;
    box-sizing:border-box !important;
    overflow-x:auto !important;
    overflow-y:hidden !important;
    -webkit-overflow-scrolling:touch !important;
    overscroll-behavior-x:contain !important;
    scrollbar-width:thin !important;
  }
  body.v13-exam-active #exam #palette > *,
  body.hoa-exam-live #exam #palette > *,
  body.hoa-local-exam-immersive #exam #palette > *{flex:0 0 auto !important;}
  body.v13-exam-active #exam #palette button,
  body.hoa-exam-live #exam #palette button,
  body.hoa-local-exam-immersive #exam #palette button,
  body.v13-exam-active #exam .ui21-palette-btn,
  body.hoa-exam-live #exam .ui21-palette-btn,
  body.hoa-local-exam-immersive #exam .ui21-palette-btn{
    flex:0 0 auto !important;
    width:34px !important;
    min-width:34px !important;
    max-width:34px !important;
    height:34px !important;
    min-height:34px !important;
    max-height:34px !important;
    margin:0 !important;
    padding:0 !important;
    border-radius:7px !important;
    font-size:10px !important;
    line-height:34px !important;
    box-sizing:border-box !important;
  }

  /* Legend: adaptive 2-column layout avoids 5 tiny unreadable columns. */
  body.v13-exam-active #exam .mission-palette-legend,
  body.hoa-exam-live #exam .mission-palette-legend,
  body.hoa-local-exam-immersive #exam .mission-palette-legend{
    display:flex !important;
    flex-wrap:nowrap !important;
    align-items:center !important;
    gap:10px !important;
    width:100% !important;
    height:22px !important;
    min-height:22px !important;
    margin:6px 0 0 !important;
    padding:0 1px 2px !important;
    border:0 !important;
    overflow-x:auto !important;
    overflow-y:hidden !important;
    -webkit-overflow-scrolling:touch !important;
    overscroll-behavior-x:contain !important;
    scrollbar-width:thin !important;
    box-sizing:border-box !important;
    font-size:8px !important;
  }
  body.v13-exam-active #exam .mission-palette-legend .legend-item,
  body.hoa-exam-live #exam .mission-palette-legend .legend-item,
  body.hoa-local-exam-immersive #exam .mission-palette-legend .legend-item{
    display:flex !important;
    align-items:center !important;
    justify-content:flex-start !important;
    gap:4px !important;
    flex:0 0 auto !important;
    width:auto !important;
    min-width:max-content !important;
    height:18px !important;
    margin:0 !important;
    padding:0 !important;
    font-size:8px !important;
    line-height:18px !important;
    white-space:nowrap !important;
    overflow:visible !important;
    text-overflow:clip !important;
  }
  body.v13-exam-active #exam .mission-palette-legend .legend-dot,
  body.hoa-exam-live #exam .mission-palette-legend .legend-dot,
  body.hoa-local-exam-immersive #exam .mission-palette-legend .legend-dot{
    width:8px !important;height:8px !important;min-width:8px !important;min-height:8px !important;flex:0 0 8px !important;margin:0 !important;
  }

  /* ---------- Fixed bottom controls ---------- */
  body.v13-exam-active #exam .ui21-bottom,
  body.hoa-exam-live #exam .ui21-bottom,
  body.hoa-local-exam-immersive #exam .ui21-bottom{
    position:fixed !important;
    display:grid !important;
    grid-template-columns:minmax(0,1fr) minmax(0,1fr) !important;
    grid-template-rows:43px 43px 47px !important;
    gap:5px !important;
    margin:0 !important;
    box-sizing:border-box !important;
    border:1px solid #d6e3ed !important;
    background:rgba(255,255,255,.98) !important;
    box-shadow:0 -3px 16px rgba(16,48,78,.13) !important;
    z-index:12000 !important;
  }
  body.v13-exam-active #exam .ui21-bottom .grp,
  body.hoa-exam-live #exam .ui21-bottom .grp,
  body.hoa-local-exam-immersive #exam .ui21-bottom .grp,
  body.v13-exam-active #exam .ui21-bottom .ui21-submit-zone,
  body.hoa-exam-live #exam .ui21-bottom .ui21-submit-zone,
  body.hoa-local-exam-immersive #exam .ui21-bottom .ui21-submit-zone{display:contents !important;}
  body.v13-exam-active #exam .ui21-submit-label,
  body.hoa-exam-live #exam .ui21-submit-label,
  body.hoa-local-exam-immersive #exam .ui21-submit-label{display:none !important;}
  body.v13-exam-active #exam #ui21Prev,
  body.hoa-exam-live #exam #ui21Prev,
  body.hoa-local-exam-immersive #exam #ui21Prev{grid-column:1 !important;grid-row:1 !important;}
  body.v13-exam-active #exam #ui21MarkReview,
  body.hoa-exam-live #exam #ui21MarkReview,
  body.hoa-local-exam-immersive #exam #ui21MarkReview{grid-column:2 !important;grid-row:1 !important;}
  body.v13-exam-active #exam #ui21Clear,
  body.hoa-exam-live #exam #ui21Clear,
  body.hoa-local-exam-immersive #exam #ui21Clear{grid-column:1 !important;grid-row:2 !important;}
  body.v13-exam-active #exam #ui21SaveNext,
  body.hoa-exam-live #exam #ui21SaveNext,
  body.hoa-local-exam-immersive #exam #ui21SaveNext{grid-column:2 !important;grid-row:2 !important;}
  body.v13-exam-active #exam #ui21Submit,
  body.hoa-exam-live #exam #ui21Submit,
  body.hoa-local-exam-immersive #exam #ui21Submit{grid-column:1 / -1 !important;grid-row:3 !important;}
  body.v13-exam-active #exam .ui21-bottom button,
  body.hoa-exam-live #exam .ui21-bottom button,
  body.hoa-local-exam-immersive #exam .ui21-bottom button{
    width:100% !important;
    min-width:0 !important;
    max-width:100% !important;
    height:100% !important;
    min-height:0 !important;
    margin:0 !important;
    padding:0 6px !important;
    border-radius:9px !important;
    line-height:1.05 !important;
    font-weight:700 !important;
    white-space:nowrap !important;
    overflow:hidden !important;
    text-overflow:ellipsis !important;
    box-sizing:border-box !important;
  }
  body.v13-exam-active #exam #ui21Prev::before,
  body.hoa-exam-live #exam #ui21Prev::before,
  body.hoa-local-exam-immersive #exam #ui21Prev::before{content:'←' !important;margin-right:5px !important;font-size:15px !important;vertical-align:-1px !important;}
  body.v13-exam-active #exam #ui21MarkReview,
  body.hoa-exam-live #exam #ui21MarkReview,
  body.hoa-local-exam-immersive #exam #ui21MarkReview{font-size:0 !important;background:#fffaf0 !important;border-color:#e4c26b !important;color:#765b0b !important;}
  body.v13-exam-active #exam #ui21MarkReview::before,
  body.hoa-exam-live #exam #ui21MarkReview::before,
  body.hoa-local-exam-immersive #exam #ui21MarkReview::before{content:'▮' !important;margin-right:5px !important;font-size:10px !important;}
  body.v13-exam-active #exam #ui21MarkReview::after,
  body.hoa-exam-live #exam #ui21MarkReview::after,
  body.hoa-local-exam-immersive #exam #ui21MarkReview::after{content:'Mark & Next' !important;font-size:11px !important;font-weight:700 !important;}
  body.v13-exam-active #exam #ui21Clear,
  body.hoa-exam-live #exam #ui21Clear,
  body.hoa-local-exam-immersive #exam #ui21Clear{font-size:0 !important;}
  body.v13-exam-active #exam #ui21Clear::before,
  body.hoa-exam-live #exam #ui21Clear::before,
  body.hoa-local-exam-immersive #exam #ui21Clear::before{content:'⌫' !important;margin-right:5px !important;font-size:13px !important;}
  body.v13-exam-active #exam #ui21Clear::after,
  body.hoa-exam-live #exam #ui21Clear::after,
  body.hoa-local-exam-immersive #exam #ui21Clear::after{content:'Clear' !important;font-size:11px !important;font-weight:700 !important;}
  body.v13-exam-active #exam #ui21SaveNext,
  body.hoa-exam-live #exam #ui21SaveNext,
  body.hoa-local-exam-immersive #exam #ui21SaveNext{background:#087443 !important;color:#fff !important;border-color:#087443 !important;font-weight:800 !important;}
  body.v13-exam-active #exam #ui21SaveNext::before,
  body.hoa-exam-live #exam #ui21SaveNext::before,
  body.hoa-local-exam-immersive #exam #ui21SaveNext::before{content:'→' !important;margin-right:5px !important;font-size:15px !important;vertical-align:-1px !important;}
  body.v13-exam-active #exam #ui21Submit,
  body.hoa-exam-live #exam #ui21Submit,
  body.hoa-local-exam-immersive #exam #ui21Submit{
    background:#1d6fb8 !important;
    color:#fff !important;
    border-color:#1d6fb8 !important;
    font-size:14px !important;
    font-weight:800 !important;
    letter-spacing:.1px !important;
  }
  body.v13-exam-active #exam #ui21Submit::before,
  body.hoa-exam-live #exam #ui21Submit::before,
  body.hoa-local-exam-immersive #exam #ui21Submit::before{content:'✓' !important;margin-right:7px !important;font-size:14px !important;}
}

@media (max-width:430px){
  body.v13-exam-active #exam .examTop,
  body.hoa-exam-live #exam .examTop,
  body.hoa-local-exam-immersive #exam .examTop{min-height:72px !important;padding-left:9px !important;padding-right:9px !important;}
  body.v13-exam-active #exam .timer,
  body.hoa-exam-live #exam .timer,
  body.hoa-local-exam-immersive #exam .timer{width:72px !important;min-width:72px !important;height:34px !important;font-size:12px !important;}
  body.v13-exam-active #exam .hoa-v598-exam-status,
  body.hoa-exam-live #exam .hoa-v598-exam-status,
  body.hoa-local-exam-immersive #exam .hoa-v598-exam-status{height:28px !important;min-height:28px !important;padding:0 6px !important;font-size:8px !important;}
  body.v13-exam-active #exam .examGrid > .card:first-child,
  body.hoa-exam-live #exam .examGrid > .card:first-child,
  body.hoa-local-exam-immersive #exam .examGrid > .card:first-child{max-height:calc(100dvh - 270px) !important;}
  body.v13-exam-active #exam .question,
  body.hoa-exam-live #exam .question,
  body.hoa-local-exam-immersive #exam .question,
  body.v13-exam-active #exam #questionText,
  body.hoa-exam-live #exam #questionText,
  body.hoa-local-exam-immersive #exam #questionText{font-size:14px !important;line-height:1.4 !important;margin-bottom:13px !important;}
  body.v13-exam-active #exam #options > *,
  body.hoa-exam-live #exam #options > *,
  body.hoa-local-exam-immersive #exam #options > *{font-size:12px !important;min-height:44px !important;padding:8px 10px !important;margin:5px 0 !important;}
  body.v13-exam-active #exam .ui21-bottom,
  body.hoa-exam-live #exam .ui21-bottom,
  body.hoa-local-exam-immersive #exam .ui21-bottom{left:6px !important;right:6px !important;grid-template-rows:41px 41px 45px !important;gap:5px !important;padding:6px !important;height:146px !important;min-height:146px !important;max-height:146px !important;}
  body.v13-exam-active #exam #ui21Submit,
  body.hoa-exam-live #exam #ui21Submit,
  body.hoa-local-exam-immersive #exam #ui21Submit{font-size:13px !important;}
}

@media (max-width:360px){
  body.v13-exam-active #exam,
  body.hoa-exam-live #exam,
  body.hoa-local-exam-immersive #exam{padding-left:6px !important;padding-right:6px !important;}
  body.v13-exam-active #exam .examTop,
  body.hoa-exam-live #exam .examTop,
  body.hoa-local-exam-immersive #exam .examTop{width:calc(100% + 12px) !important;margin-left:-6px !important;margin-right:-6px !important;}
  body.v13-exam-active #exam .examTop b#examTestTitle,
  body.hoa-exam-live #exam .examTop b#examTestTitle,
  body.hoa-local-exam-immersive #exam .examTop b#examTestTitle{font-size:13px !important;}
  body.v13-exam-active #exam .examTop .sub,
  body.hoa-exam-live #exam .examTop .sub,
  body.hoa-local-exam-immersive #exam .examTop .sub{font-size:9px !important;}
  body.v13-exam-active #exam .timer,
  body.hoa-exam-live #exam .timer,
  body.hoa-local-exam-immersive #exam .timer{width:66px !important;min-width:66px !important;font-size:11px !important;}
  body.v13-exam-active #exam .hoa-v598-exam-status,
  body.hoa-exam-live #exam .hoa-v598-exam-status,
  body.hoa-local-exam-immersive #exam .hoa-v598-exam-status{display:none !important;}
  body.v13-exam-active #exam .examGrid > .card:first-child,
  body.hoa-exam-live #exam .examGrid > .card:first-child,
  body.hoa-local-exam-immersive #exam .examGrid > .card:first-child{max-height:calc(100dvh - 360px) !important;}
  body.v13-exam-active #exam .questionNo,
  body.hoa-exam-live #exam .questionNo,
  body.hoa-local-exam-immersive #exam .questionNo{font-size:10px !important;height:32px !important;min-height:32px !important;margin-bottom:9px !important;}
  body.v13-exam-active #exam .examMarkBadge,
  body.hoa-exam-live #exam .examMarkBadge,
  body.hoa-local-exam-immersive #exam .examMarkBadge{height:24px !important;font-size:8px !important;padding:0 7px !important;}
  body.v13-exam-active #exam #options > *,
  body.hoa-exam-live #exam #options > *,
  body.hoa-local-exam-immersive #exam #options > *{font-size:11px !important;min-height:42px !important;}
  body.v13-exam-active #exam .ui21-bottom,
  body.hoa-exam-live #exam .ui21-bottom,
  body.hoa-local-exam-immersive #exam .ui21-bottom{left:5px !important;right:5px !important;height:142px !important;min-height:142px !important;max-height:142px !important;grid-template-rows:40px 40px 44px !important;gap:4px !important;padding:5px !important;}
  body.v13-exam-active #exam .ui21-bottom button,
  body.hoa-exam-live #exam .ui21-bottom button,
  body.hoa-local-exam-immersive #exam .ui21-bottom button{font-size:10px !important;}
  body.v13-exam-active #exam #ui21MarkReview::after,
  body.hoa-exam-live #exam #ui21MarkReview::after,
  body.hoa-local-exam-immersive #exam #ui21MarkReview::after{font-size:10px !important;}
  body.v13-exam-active #exam #ui21Clear::after,
  body.hoa-exam-live #exam #ui21Clear::after,
  body.hoa-local-exam-immersive #exam #ui21Clear::after{font-size:10px !important;}
  body.v13-exam-active #exam #ui21Submit,
  body.hoa-exam-live #exam #ui21Submit,
  body.hoa-local-exam-immersive #exam #ui21Submit{font-size:12px !important;}
}

/* ============================================================
   HOA EXAM MOBILE V5.9 — FULL-PAGE MOBILE POLISH
   Presentation-only continuation of V5.8.
   Moves intentional empty space into the question card so the
   navigator stays close to the bottom action dock. The dock is
   edge-to-edge at the lower screen edge and safe-area aware.
   ============================================================ */
@media (max-width:767px){
  :root{
    --hoa-exam-header-h:76px;
  }

  body.v13-exam-active #exam,
  body.hoa-exam-live #exam,
  body.hoa-local-exam-immersive #exam{
    min-height:100dvh !important;
    padding-bottom:calc(var(--hoa-exam-dock-h) + 8px + env(safe-area-inset-bottom)) !important;
  }

  /* Reserve the available viewport for the exam content itself.
     The question card expands first, keeping any spare space
     directly after the options instead of below the navigator. */
  body.v13-exam-active #exam .examGrid,
  body.hoa-exam-live #exam .examGrid,
  body.hoa-local-exam-immersive #exam .examGrid{
    min-height:calc(100dvh - var(--hoa-exam-header-h) - 4px - var(--hoa-exam-dock-h) - env(safe-area-inset-bottom)) !important;
    box-sizing:border-box !important;
    display:flex !important;
    flex-direction:column !important;
  }

  body.v13-exam-active #exam .examGrid > .card:first-child,
  body.hoa-exam-live #exam .examGrid > .card:first-child,
  body.hoa-local-exam-immersive #exam .examGrid > .card:first-child{
    flex:1 1 auto !important;
    height:auto !important;
    max-height:none !important;
    min-height:0 !important;
  }

  /* Navigator remains content-sized and therefore sits immediately
     after the question area instead of floating above a large blank zone. */
  body.v13-exam-active #exam .examGrid > .side,
  body.hoa-exam-live #exam .examGrid > .side,
  body.hoa-local-exam-immersive #exam .examGrid > .side{
    flex:0 0 auto !important;
  }

  /* Fixed dock touches the physical lower edge. The safe-area is
     absorbed inside the dock rather than leaving a visible gap. */
  body.v13-exam-active #exam .ui21-bottom,
  body.hoa-exam-live #exam .ui21-bottom,
  body.hoa-local-exam-immersive #exam .ui21-bottom{
    left:0 !important;
    right:0 !important;
    bottom:0 !important;
    width:100% !important;
    height:calc(var(--hoa-exam-dock-h) + env(safe-area-inset-bottom)) !important;
    min-height:calc(var(--hoa-exam-dock-h) + env(safe-area-inset-bottom)) !important;
    max-height:calc(var(--hoa-exam-dock-h) + env(safe-area-inset-bottom)) !important;
    padding:6px 6px max(6px, env(safe-area-inset-bottom)) !important;
    border-radius:14px 14px 0 0 !important;
  }

  /* Slightly reduce the visual weight of the dock while retaining
     comfortable full-width touch targets. */
  body.v13-exam-active #exam .ui21-bottom button,
  body.hoa-exam-live #exam .ui21-bottom button,
  body.hoa-local-exam-immersive #exam .ui21-bottom button{
    font-size:11px !important;
    letter-spacing:0 !important;
  }
}

@media (max-width:430px){
  body.v13-exam-active #exam .examTop,
  body.hoa-exam-live #exam .examTop,
  body.hoa-local-exam-immersive #exam .examTop{
    padding-top:calc(12px + env(safe-area-inset-top)) !important;
    padding-bottom:10px !important;
  }

  body.v13-exam-active #exam .examTop b#examTestTitle,
  body.hoa-exam-live #exam .examTop b#examTestTitle,
  body.hoa-local-exam-immersive #exam .examTop b#examTestTitle{
    font-size:14px !important;
  }

  body.v13-exam-active #exam .examGrid > .card:first-child,
  body.hoa-exam-live #exam .examGrid > .card:first-child,
  body.hoa-local-exam-immersive #exam .examGrid > .card:first-child{
    padding:10px 10px 14px !important;
  }
}

@media (max-width:360px){
  body.v13-exam-active #exam .examGrid > .card:first-child,
  body.hoa-exam-live #exam .examGrid > .card:first-child,
  body.hoa-local-exam-immersive #exam .examGrid > .card:first-child{
    padding:9px 9px 12px !important;
  }
}

/* ============================================================
   HOA EXAM MOBILE V6.0 — VIEWPORT-FIT / ACTION-DOCK AUTHORITY
   Final mobile presentation override.
   Purpose: resolve older Phase-2 action-bar rules that changed the
   dock back to normal flow and clipped rows on phone viewports.
   Exam state, timer, warning, navigation, scoring and submission JS
   are intentionally untouched.
   ============================================================ */
@media (max-width:767px){
  :root{
    --hoa-exam-dock-h:148px;
    --hoa-exam-nav-h:106px;
  }

  /* One bounded phone viewport. The fixed dock is outside the flow;
     bottom padding reserves its footprint so content can never hide behind it. */
  body.hoa-exam-live > main.container > #exam,
  body.v13-exam-active > main.container > #exam,
  body.hoa-local-exam-immersive > main.container > #exam{
    position:relative !important;
    width:100% !important;
    max-width:100% !important;
    height:100dvh !important;
    min-height:100dvh !important;
    max-height:100dvh !important;
    display:flex !important;
    flex-direction:column !important;
    overflow:hidden !important;
    box-sizing:border-box !important;
    padding:0 8px calc(var(--hoa-exam-dock-h) + env(safe-area-inset-bottom)) !important;
    margin:0 !important;
  }

  body.hoa-exam-live > main.container > #exam .examTop,
  body.v13-exam-active > main.container > #exam .examTop,
  body.hoa-local-exam-immersive > main.container > #exam .examTop{
    flex:0 0 auto !important;
    min-height:72px !important;
    height:auto !important;
  }

  body.hoa-exam-live > main.container > #exam .progress,
  body.v13-exam-active > main.container > #exam .progress,
  body.hoa-local-exam-immersive > main.container > #exam .progress{
    flex:0 0 auto !important;
  }

  /* The grid owns the remaining vertical space. Only the question card
     scrolls; the navigator remains visible below it. */
  body.hoa-exam-live > main.container > #exam .examGrid,
  body.v13-exam-active > main.container > #exam .examGrid,
  body.hoa-local-exam-immersive > main.container > #exam .examGrid{
    flex:1 1 auto !important;
    min-height:0 !important;
    height:auto !important;
    max-height:none !important;
    display:flex !important;
    flex-direction:column !important;
    gap:7px !important;
    overflow:hidden !important;
    padding:8px 0 0 !important;
    box-sizing:border-box !important;
  }

  body.hoa-exam-live > main.container > #exam .examGrid > .card:first-child,
  body.v13-exam-active > main.container > #exam .examGrid > .card:first-child,
  body.hoa-local-exam-immersive > main.container > #exam .examGrid > .card:first-child{
    flex:1 1 auto !important;
    min-height:0 !important;
    height:auto !important;
    max-height:none !important;
    overflow-y:auto !important;
    overflow-x:hidden !important;
    box-sizing:border-box !important;
    overscroll-behavior:contain !important;
    -webkit-overflow-scrolling:touch !important;
  }

  /* Keep the navigator compact and always on-screen. */
  body.hoa-exam-live > main.container > #exam .examGrid > .side,
  body.v13-exam-active > main.container > #exam .examGrid > .side,
  body.hoa-local-exam-immersive > main.container > #exam .examGrid > .side{
    flex:0 0 var(--hoa-exam-nav-h) !important;
    height:var(--hoa-exam-nav-h) !important;
    min-height:var(--hoa-exam-nav-h) !important;
    max-height:var(--hoa-exam-nav-h) !important;
    overflow:hidden !important;
    box-sizing:border-box !important;
  }

  body.hoa-exam-live > main.container > #exam .mission-palette-legend,
  body.v13-exam-active > main.container > #exam .mission-palette-legend,
  body.hoa-local-exam-immersive > main.container > #exam .mission-palette-legend{
    scrollbar-width:none !important;
  }
  body.hoa-exam-live > main.container > #exam .mission-palette-legend::-webkit-scrollbar,
  body.v13-exam-active > main.container > #exam .mission-palette-legend::-webkit-scrollbar,
  body.hoa-local-exam-immersive > main.container > #exam .mission-palette-legend::-webkit-scrollbar{
    display:none !important;
  }

  /* True fixed action dock — final authority against older relative-flow rules. */
  body.hoa-exam-live > main.container > #exam .ui21-bottom,
  body.v13-exam-active > main.container > #exam .ui21-bottom,
  body.hoa-local-exam-immersive > main.container > #exam .ui21-bottom{
    position:fixed !important;
    left:0 !important;
    right:0 !important;
    bottom:0 !important;
    width:100% !important;
    height:calc(var(--hoa-exam-dock-h) + env(safe-area-inset-bottom)) !important;
    min-height:calc(var(--hoa-exam-dock-h) + env(safe-area-inset-bottom)) !important;
    max-height:calc(var(--hoa-exam-dock-h) + env(safe-area-inset-bottom)) !important;
    display:grid !important;
    grid-template-columns:minmax(0,1fr) minmax(0,1fr) !important;
    grid-template-rows:40px 40px 44px !important;
    gap:4px !important;
    padding:5px 6px max(5px, env(safe-area-inset-bottom)) !important;
    margin:0 !important;
    border:1px solid #d5e2ec !important;
    border-bottom:0 !important;
    border-radius:12px 12px 0 0 !important;
    background:rgba(255,255,255,.985) !important;
    box-shadow:0 -4px 17px rgba(16,48,78,.15) !important;
    z-index:12000 !important;
    box-sizing:border-box !important;
    isolation:isolate !important;
  }

  body.hoa-exam-live > main.container > #exam .ui21-bottom .grp,
  body.v13-exam-active > main.container > #exam .ui21-bottom .grp,
  body.hoa-local-exam-immersive > main.container > #exam .ui21-bottom .grp,
  body.hoa-exam-live > main.container > #exam .ui21-bottom .ui21-submit-zone,
  body.v13-exam-active > main.container > #exam .ui21-bottom .ui21-submit-zone,
  body.hoa-local-exam-immersive > main.container > #exam .ui21-bottom .ui21-submit-zone{
    display:contents !important;
  }

  body.hoa-exam-live > main.container > #exam .ui21-submit-label,
  body.v13-exam-active > main.container > #exam .ui21-submit-label,
  body.hoa-local-exam-immersive > main.container > #exam .ui21-submit-label{
    display:none !important;
  }

  body.hoa-exam-live > main.container > #exam #ui21Prev,
  body.v13-exam-active > main.container > #exam #ui21Prev,
  body.hoa-local-exam-immersive > main.container > #exam #ui21Prev{grid-column:1 !important;grid-row:1 !important;}
  body.hoa-exam-live > main.container > #exam #ui21MarkReview,
  body.v13-exam-active > main.container > #exam #ui21MarkReview,
  body.hoa-local-exam-immersive > main.container > #exam #ui21MarkReview{grid-column:2 !important;grid-row:1 !important;}
  body.hoa-exam-live > main.container > #exam #ui21Clear,
  body.v13-exam-active > main.container > #exam #ui21Clear,
  body.hoa-local-exam-immersive > main.container > #exam #ui21Clear{grid-column:1 !important;grid-row:2 !important;}
  body.hoa-exam-live > main.container > #exam #ui21SaveNext,
  body.v13-exam-active > main.container > #exam #ui21SaveNext,
  body.hoa-local-exam-immersive > main.container > #exam #ui21SaveNext{grid-column:2 !important;grid-row:2 !important;}
  body.hoa-exam-live > main.container > #exam #ui21Submit,
  body.v13-exam-active > main.container > #exam #ui21Submit,
  body.hoa-local-exam-immersive > main.container > #exam #ui21Submit{grid-column:1 / -1 !important;grid-row:3 !important;}

  body.hoa-exam-live > main.container > #exam .ui21-bottom button,
  body.v13-exam-active > main.container > #exam .ui21-bottom button,
  body.hoa-local-exam-immersive > main.container > #exam .ui21-bottom button{
    width:100% !important;
    height:100% !important;
    min-height:0 !important;
    margin:0 !important;
    padding:0 5px !important;
    border-radius:8px !important;
    font-size:10.5px !important;
    line-height:1 !important;
    font-weight:750 !important;
    white-space:nowrap !important;
    overflow:hidden !important;
    text-overflow:ellipsis !important;
    box-sizing:border-box !important;
    transform:none !important;
  }

  body.hoa-exam-live > main.container > #exam #ui21Prev::before,
  body.v13-exam-active > main.container > #exam #ui21Prev::before,
  body.hoa-local-exam-immersive > main.container > #exam #ui21Prev::before{content:'←' !important;margin-right:4px !important;font-size:13px !important;}

  body.hoa-exam-live > main.container > #exam #ui21MarkReview,
  body.v13-exam-active > main.container > #exam #ui21MarkReview,
  body.hoa-local-exam-immersive > main.container > #exam #ui21MarkReview{
    font-size:0 !important;
    background:#fffaf0 !important;
    border-color:#dfbe63 !important;
    color:#765b0b !important;
  }
  body.hoa-exam-live > main.container > #exam #ui21MarkReview::before,
  body.v13-exam-active > main.container > #exam #ui21MarkReview::before,
  body.hoa-local-exam-immersive > main.container > #exam #ui21MarkReview::before{content:'▮' !important;margin-right:4px !important;font-size:9px !important;}
  body.hoa-exam-live > main.container > #exam #ui21MarkReview::after,
  body.v13-exam-active > main.container > #exam #ui21MarkReview::after,
  body.hoa-local-exam-immersive > main.container > #exam #ui21MarkReview::after{content:'Mark & Next' !important;font-size:10.5px !important;font-weight:750 !important;}

  body.hoa-exam-live > main.container > #exam #ui21Clear,
  body.v13-exam-active > main.container > #exam #ui21Clear,
  body.hoa-local-exam-immersive > main.container > #exam #ui21Clear{font-size:0 !important;}
  body.hoa-exam-live > main.container > #exam #ui21Clear::before,
  body.v13-exam-active > main.container > #exam #ui21Clear::before,
  body.hoa-local-exam-immersive > main.container > #exam #ui21Clear::before{content:'⌫' !important;margin-right:4px !important;font-size:12px !important;}
  body.hoa-exam-live > main.container > #exam #ui21Clear::after,
  body.v13-exam-active > main.container > #exam #ui21Clear::after,
  body.hoa-local-exam-immersive > main.container > #exam #ui21Clear::after{content:'Clear' !important;font-size:10.5px !important;font-weight:750 !important;}

  body.hoa-exam-live > main.container > #exam #ui21SaveNext,
  body.v13-exam-active > main.container > #exam #ui21SaveNext,
  body.hoa-local-exam-immersive > main.container > #exam #ui21SaveNext{
    background:#0b8f4d !important;
    color:#fff !important;
    border-color:#0b8f4d !important;
    font-weight:800 !important;
  }
  body.hoa-exam-live > main.container > #exam #ui21SaveNext::before,
  body.v13-exam-active > main.container > #exam #ui21SaveNext::before,
  body.hoa-local-exam-immersive > main.container > #exam #ui21SaveNext::before{content:'→' !important;margin-right:4px !important;font-size:13px !important;}

  body.hoa-exam-live > main.container > #exam #ui21Submit,
  body.v13-exam-active > main.container > #exam #ui21Submit,
  body.hoa-local-exam-immersive > main.container > #exam #ui21Submit{
    background:#1677e8 !important;
    color:#fff !important;
    border-color:#1677e8 !important;
    font-size:12px !important;
    font-weight:800 !important;
  }
  body.hoa-exam-live > main.container > #exam #ui21Submit::before,
  body.v13-exam-active > main.container > #exam #ui21Submit::before,
  body.hoa-local-exam-immersive > main.container > #exam #ui21Submit::before{content:'✓' !important;margin-right:5px !important;font-size:12px !important;}
}

@media (max-width:360px){
  body.hoa-exam-live > main.container > #exam,
  body.v13-exam-active > main.container > #exam,
  body.hoa-local-exam-immersive > main.container > #exam{
    padding-left:6px !important;
    padding-right:6px !important;
  }
  body.hoa-exam-live > main.container > #exam .examTop,
  body.v13-exam-active > main.container > #exam .examTop,
  body.hoa-local-exam-immersive > main.container > #exam .examTop{
    width:calc(100% + 12px) !important;
    margin-left:-6px !important;
    margin-right:-6px !important;
  }
  body.hoa-exam-live > main.container > #exam .ui21-bottom,
  body.v13-exam-active > main.container > #exam .ui21-bottom,
  body.hoa-local-exam-immersive > main.container > #exam .ui21-bottom{
    --hoa-exam-dock-h:146px;
    grid-template-rows:39px 39px 43px !important;
    gap:4px !important;
  }
  body.hoa-exam-live > main.container > #exam .ui21-bottom button,
  body.v13-exam-active > main.container > #exam .ui21-bottom button,
  body.hoa-local-exam-immersive > main.container > #exam .ui21-bottom button{
    font-size:10px !important;
  }
}

/* ============================================================
   HOA EXAM MOBILE V6.1 — COMPACT QUESTION PALETTE + DOCK GAP
   V6.0 layout retained. Presentation-only override.
   ============================================================ */
@media (max-width:767px){
  /* Keep the full question navigator and colour legend above the fixed dock.
     Reduce the gap with a small positive tail margin instead of overlapping the dock. */
  body.hoa-exam-live > main.container > #exam .examGrid > .side,
  body.v13-exam-active > main.container > #exam .examGrid > .side,
  body.hoa-local-exam-immersive > main.container > #exam .examGrid > .side{
    margin-bottom:4px !important;
    position:relative !important;
    z-index:20 !important;
  }

  /* Cleaner question numbering: compact, evenly spaced, touch-friendly chips.
     Horizontal scrolling remains available for long tests. */
  body.hoa-exam-live > main.container > #exam #palette,
  body.v13-exam-active > main.container > #exam #palette,
  body.hoa-local-exam-immersive > main.container > #exam #palette{
    gap:4px !important;
    height:34px !important;
    min-height:34px !important;
    max-height:34px !important;
    padding:1px 1px 2px !important;
    scrollbar-width:none !important;
  }
  body.hoa-exam-live > main.container > #exam #palette::-webkit-scrollbar,
  body.v13-exam-active > main.container > #exam #palette::-webkit-scrollbar,
  body.hoa-local-exam-immersive > main.container > #exam #palette::-webkit-scrollbar{
    display:none !important;
  }
  body.hoa-exam-live > main.container > #exam #palette button,
  body.v13-exam-active > main.container > #exam #palette button,
  body.hoa-local-exam-immersive > main.container > #exam #palette button,
  body.hoa-exam-live > main.container > #exam .ui21-palette-btn,
  body.v13-exam-active > main.container > #exam .ui21-palette-btn,
  body.hoa-local-exam-immersive > main.container > #exam .ui21-palette-btn{
    width:30px !important;
    min-width:30px !important;
    max-width:30px !important;
    height:30px !important;
    min-height:30px !important;
    max-height:30px !important;
    border-radius:6px !important;
    border-width:1px !important;
    font-size:10px !important;
    line-height:30px !important;
    font-weight:800 !important;
    box-shadow:none !important;
  }

  /* Keep the current-question state visually dominant without changing state logic. */
  body.hoa-exam-live > main.container > #exam #palette button.current,
  body.v13-exam-active > main.container > #exam #palette button.current,
  body.hoa-local-exam-immersive > main.container > #exam #palette button.current{
    transform:none !important;
    outline:2px solid rgba(22,119,232,.20) !important;
    outline-offset:-2px !important;
  }
}

@media (max-width:360px){
  body.hoa-exam-live > main.container > #exam .examGrid > .side,
  body.v13-exam-active > main.container > #exam .examGrid > .side,
  body.hoa-local-exam-immersive > main.container > #exam .examGrid > .side{
    flex-basis:116px !important;
    height:116px !important;
    min-height:116px !important;
    max-height:116px !important;
    margin-bottom:3px !important;
    position:relative !important;
    z-index:20 !important;
  }
  body.hoa-exam-live > main.container > #exam #palette button,
  body.v13-exam-active > main.container > #exam #palette button,
  body.hoa-local-exam-immersive > main.container > #exam #palette button,
  body.hoa-exam-live > main.container > #exam .ui21-palette-btn,
  body.v13-exam-active > main.container > #exam .ui21-palette-btn,
  body.hoa-local-exam-immersive > main.container > #exam .ui21-palette-btn{
    width:29px !important;
    min-width:29px !important;
    max-width:29px !important;
    height:29px !important;
    min-height:29px !important;
    max-height:29px !important;
    line-height:29px !important;
    font-size:9.5px !important;
  }
}

/* HOA P25 — video control touch polish. Keep the volume slider reachable on phones. */
@media(max-width:600px){
  .hoa-custom-player .hoa-player-close{top:7px!important;right:7px!important;width:34px!important;height:34px!important;min-width:34px!important;min-height:34px!important;font-size:24px!important;border-radius:10px!important}
  .hoa-custom-player .hoa-player-volume{display:block!important;width:58px!important;min-width:58px!important;flex:0 0 58px!important;height:24px!important;min-height:24px!important}
  .hoa-custom-player .hoa-player-quality-menu{min-width:140px!important;right:0!important;max-width:calc(100vw - 24px)!important}
}
@media(max-width:390px){
  .hoa-custom-player .hoa-player-volume{width:52px!important;min-width:52px!important;flex-basis:52px!important}
}
