.mqlpro-header{width:100%;background:#fff;border-bottom:1px solid #e9eef5}
.mqlpro-header-inner{width:100%;max-width:1400px;margin:0 auto;min-height:64px;display:flex;align-items:center;gap:32px;padding:0 24px;box-sizing:border-box}
.mqlpro-brand{font-size:22px;font-weight:700;color:#1677ff;text-decoration:none}
.mqlpro-nav{display:flex;align-items:center;gap:4px;flex-wrap:wrap}
.mqlpro-nav-item{border:1px solid transparent;background:transparent;color:#4b5563;padding:9px 13px;border-radius:7px;cursor:pointer;font:inherit;transition:background-color .18s ease,color .18s ease,border-color .18s ease}
.mqlpro-nav-item:hover{background:#eef5ff;color:#1677ff;border-color:#d7e8ff}
.mqlpro-nav-item.is-active{background:#1677ff;color:#fff;border-color:#1677ff}
.mqlpro-footer{width:100%;background:#fff;border-top:1px solid #e9eef5;margin-top:40px;padding:36px 24px 18px;box-sizing:border-box}
.mqlpro-footer-grid{width:100%;max-width:1400px;margin:0 auto;display:grid;grid-template-columns:1.6fr 1fr 1fr 1fr 1.5fr;gap:28px}
.mqlpro-footer h3,.mqlpro-footer h4{margin:0 0 12px;color:#111827}
.mqlpro-footer h3{font-size:16px}.mqlpro-footer h4{font-size:13px}
.mqlpro-footer p,.mqlpro-footer a{font-size:12px;line-height:1.6;color:#667085}
.mqlpro-footer p{margin:0 0 10px}
.mqlpro-footer a{display:block;text-decoration:none;margin:3px 0}
.mqlpro-footer a:hover{color:#1677ff}
.mqlpro-newsletter-form{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px}
.mqlpro-newsletter-form input{min-width:0;height:36px;border:1px solid #d7dee8;border-radius:6px;padding:0 10px;box-sizing:border-box}
.mqlpro-newsletter-form button{height:36px;min-width:112px;padding:0 14px;border:1px solid #1677ff;border-radius:6px;background:#1677ff;color:#fff;white-space:nowrap;cursor:pointer}
.mqlpro-footer-bottom{width:100%;max-width:1400px;margin:28px auto 0;padding-top:14px;border-top:1px solid #eef1f5;display:flex;justify-content:space-between;gap:16px;font-size:11px;color:#7b8491}
@media(max-width:900px){.mqlpro-footer-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:640px){.mqlpro-header-inner{padding:12px 16px;align-items:flex-start;flex-direction:column;gap:12px}.mqlpro-nav{width:100%}.mqlpro-footer-grid{grid-template-columns:1fr}.mqlpro-footer-bottom{flex-direction:column}}


/* M2 shared-shell responsive overrides */
.mqlpro-header-inner{max-width:1400px}
.mqlpro-footer-grid{max-width:1400px}
.mqlpro-footer-bottom{max-width:1400px}

@media(max-width:900px){
  .mqlpro-header-inner{
    gap:14px;
  }
  .mqlpro-nav{
    flex:1 1 auto;
  }
}

@media(max-width:640px){
  .mqlpro-header-inner{
    width:100%;
    padding:10px 12px;
    gap:8px;
  }
  .mqlpro-nav{
    width:100%;
    flex-wrap:nowrap;
    padding-bottom:2px;
  }
  .mqlpro-nav-item{
    flex:0 0 auto;
  }
  .mqlpro-footer{
    margin-top:24px;
    padding-left:12px;
    padding-right:12px;
  }
}

/* ============================================================
   MQLPro M9 — Global Shell & Navigation Hardening
   Does not alter page-specific modules.
   ============================================================ */

.mqlpro-header[data-mqlpro-shell="true"]{
  position:relative;
  z-index:20;
}

.mqlpro-nav-item{
  outline:none;
}

.mqlpro-nav-item:focus-visible{
  border-color:#9bc4ff;
  box-shadow:0 0 0 3px rgba(22,119,255,.12);
}

.mqlpro-nav-item.is-active{
  font-weight:600;
}

.mqlpro-footer a[data-mqlpro-page]{
  cursor:pointer;
}

.mqlpro-footer a[data-mqlpro-page]:focus-visible{
  outline:2px solid #9bc4ff;
  outline-offset:2px;
  border-radius:3px;
}

.mqlpro-page[aria-hidden="true"]{
  visibility:hidden;
}

.mqlpro-page.is-active[aria-hidden="false"]{
  visibility:visible;
}

@media(max-width:640px){
  .mqlpro-header[data-mqlpro-shell="true"]{
    position:relative;
  }

  .mqlpro-nav{
    -webkit-overflow-scrolling:touch;
    scrollbar-width:none;
  }

  .mqlpro-nav::-webkit-scrollbar{
    display:none;
  }

  .mqlpro-nav-item{
    min-height:38px;
  }
}



/* ============================================================
 * MQLPRO M10 — GLOBAL INTERACTION & STATE UI
 * Scoped to the MQLPro shell/components.
 * ============================================================ */
.mqlpro-shell [aria-busy="true"],
.mqlpro-shell .is-loading {
    cursor: wait;
    opacity: .72;
    pointer-events: none;
}

.mqlpro-shell .is-loading {
    position: relative;
}

.mqlpro-shell .is-loading::after {
    content: "";
    display: inline-block;
    width: 12px;
    height: 12px;
    margin-left: 8px;
    vertical-align: -2px;
    border: 2px solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: mqlpro-spin .7s linear infinite;
}

@keyframes mqlpro-spin {
    to { transform: rotate(360deg); }
}

.mqlpro-shell [data-mqlpro-tab],
.mqlpro-shell [data-mqlpro-chip],
.mqlpro-shell [data-mqlpro-option] {
    cursor: pointer;
    transition: opacity .16s ease, transform .16s ease, border-color .16s ease, background-color .16s ease;
}

.mqlpro-shell [data-mqlpro-tab]:focus-visible,
.mqlpro-shell [data-mqlpro-chip]:focus-visible,
.mqlpro-shell [data-mqlpro-option]:focus-visible,
.mqlpro-shell [data-mqlpro-dropdown-trigger]:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 2px;
}

.mqlpro-shell [data-mqlpro-tab].is-active,
.mqlpro-shell [data-mqlpro-tab].active,
.mqlpro-shell [data-mqlpro-chip].is-active,
.mqlpro-shell [data-mqlpro-chip].active,
.mqlpro-shell [data-mqlpro-option].is-active,
.mqlpro-shell [data-mqlpro-option].active {
    opacity: 1;
}

.mqlpro-shell [data-mqlpro-dropdown] {
    position: relative;
}

.mqlpro-shell [data-mqlpro-dropdown-menu] {
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-4px);
    transition: opacity .14s ease, transform .14s ease, visibility .14s ease;
}

.mqlpro-shell [data-mqlpro-dropdown].is-open [data-mqlpro-dropdown-menu],
.mqlpro-shell [data-mqlpro-dropdown].open [data-mqlpro-dropdown-menu] {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.mqlpro-shell [data-mqlpro-state="loading"] {
    min-height: 48px;
}

.mqlpro-shell [data-mqlpro-state="empty"],
.mqlpro-shell [data-mqlpro-state="error"] {
    min-height: 80px;
}

@media (prefers-reduced-motion: reduce) {
    .mqlpro-shell *,
    .mqlpro-shell *::before,
    .mqlpro-shell *::after {
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
    }
}


/* ============================================================
 * MQLPRO M11 — DATA & COMPONENT CONTRACT UI
 * ============================================================ */
.mqlpro-shell [data-mqlpro-component="status"] {
    min-width: 0;
}

.mqlpro-shell [data-mqlpro-state] {
    box-sizing: border-box;
}

.mqlpro-shell [data-mqlpro-state="loading"],
.mqlpro-shell [data-mqlpro-state="empty"],
.mqlpro-shell [data-mqlpro-state="error"],
.mqlpro-shell [data-mqlpro-state="success"] {
    display: block;
}

.mqlpro-shell .mqlpro-state-message {
    display: inline-block;
    max-width: 100%;
    line-height: 1.5;
}


/* MQLPRO M13 — IDENTITY UI CONTRACT */
.mqlpro-shell [data-mqlpro-auth-required] {
    position: relative;
}

.mqlpro-shell [data-mqlpro-auth-state="guest"] {
    display: block;
}

.mqlpro-shell [data-mqlpro-auth-state="authenticated"] {
    display: block;
}

/* MQLPRO M14 — PERMISSION UI CONTRACT */
.mqlpro-shell [data-mqlpro-permission] {
    position: relative;
}
.mqlpro-shell [aria-disabled="true"][data-mqlpro-permission] {
    cursor: not-allowed;
}
