
/* Synesia responsive header fix · 2026-10-11 */
.syn-responsive-header {
  overflow: visible !important;
}
.syn-header-logo {
  width: 76px !important;
  height: 76px !important;
  min-width: 76px !important;
  max-width: none !important;
  object-fit: contain !important;
}
.syn-header-brand-name {
  font-size: clamp(1.55rem, 2.2vw, 2rem) !important;
  line-height: 1.05 !important;
  letter-spacing: -0.02em !important;
}
.syn-header-status {
  white-space: nowrap !important;
  max-width: 100% !important;
}
.syn-mobile-menu-toggle {
  display: none;
  border: 1px solid #7ea3a1;
  background: #fbf8f1;
  color: #163e43;
  border-radius: 14px;
  min-width: 48px;
  min-height: 44px;
  padding: 8px 12px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

@media (max-width: 1024px) {
  .syn-responsive-header {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    gap: 12px 16px !important;
    padding-top: 14px !important;
    padding-bottom: 14px !important;
  }
  .syn-header-brand {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    flex: 1 1 300px !important;
    min-width: 0 !important;
  }
  .syn-header-logo {
    width: 68px !important;
    height: 68px !important;
    min-width: 68px !important;
  }
  .syn-header-actions {
    width: 100% !important;
    display: flex !important;
    justify-content: flex-end !important;
    gap: 10px !important;
    flex-wrap: wrap !important;
  }
  .syn-header-action {
    min-height: 48px !important;
  }
}

@media (max-width: 720px) {
  .syn-responsive-header {
    position: relative !important;
    display: grid !important;
    grid-template-columns: auto 1fr auto !important;
    align-items: center !important;
    gap: 8px 10px !important;
    padding: 12px 14px !important;
  }
  .syn-header-brand {
    grid-column: 1 / 3 !important;
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    min-width: 0 !important;
  }
  .syn-header-logo {
    width: 58px !important;
    height: 58px !important;
    min-width: 58px !important;
  }
  .syn-header-brand-name {
    font-size: 1.45rem !important;
    line-height: 1.05 !important;
  }
  .syn-header-status {
    grid-column: 1 / -1 !important;
    justify-self: start !important;
    font-size: 0.9rem !important;
    white-space: normal !important;
    margin: 0 !important;
  }
  .syn-mobile-menu-toggle {
    display: inline-flex !important;
    grid-column: 3 !important;
    grid-row: 1 !important;
    align-items: center !important;
    justify-content: center !important;
    align-self: center !important;
  }
  .syn-header-actions {
    display: none !important;
    position: absolute !important;
    top: calc(100% - 2px) !important;
    right: 12px !important;
    z-index: 9999 !important;
    width: min(310px, calc(100vw - 24px)) !important;
    padding: 10px !important;
    background: #fbf8f1 !important;
    border: 1px solid rgba(33, 76, 80, 0.22) !important;
    border-radius: 16px !important;
    box-shadow: 0 16px 36px rgba(17, 52, 55, 0.16) !important;
    flex-direction: column !important;
    gap: 8px !important;
  }
  .syn-responsive-header.syn-mobile-open .syn-header-actions {
    display: flex !important;
  }
  .syn-header-action {
    width: 100% !important;
    min-height: 48px !important;
    text-align: left !important;
    justify-content: space-between !important;
  }
}

@media (max-width: 420px) {
  .syn-header-logo {
    width: 54px !important;
    height: 54px !important;
    min-width: 54px !important;
  }
  .syn-header-brand-name {
    font-size: 1.32rem !important;
  }
  .syn-responsive-header {
    padding-left: 10px !important;
    padding-right: 10px !important;
  }
}
