@media (max-width: 900px) {
  .wl-public-header { width: min(100% - 28px, var(--wl-max-width)); padding-top: 18px; }
  .wl-public-nav { gap: 4px; }
  .wl-home { width: min(100% - 28px, var(--wl-max-width)); padding-top: 22px; }
  .wl-hero { grid-template-columns: 1fr; min-height: auto; gap: 24px; }
  .wl-hero__banner { min-height: 170px; padding: 20px; order: -1; }
  .wl-logo-slot--hero { min-height: 118px; min-width: 0; width: 100%; }
  .wl-logo-slot--hero .wl-logo-slot__mark { width: 56px; height: 56px; border-radius: 18px; }
  .wl-logo-slot--hero .wl-logo-slot__name { font-size: clamp(2rem, 12vw, 3.2rem); }
  .wl-card-grid--three { grid-template-columns: 1fr; }
  .wl-actions { flex-direction: column; }
  .wl-button { width: 100%; }

  .wl-app-layout { display: block; }
  .wl-main-panel { padding: 12px 12px 34px; }
  .wl-topbar { position: sticky; top: 0; z-index: 5; border-radius: 16px; justify-content: flex-start; }
  .wl-mobile-brand { display: inline-flex; align-items: center; gap: 9px; }
  .wl-mobile-brand .wl-brand__text { font-size: 1rem; }
  .wl-mobile-brand .wl-brand__mark { width: 34px; height: 34px; border-radius: 11px; }
  .wl-mobile-menu-button {
    width: 42px;
    height: 42px;
    border: 1px solid var(--wl-border);
    border-radius: 14px;
    background: rgba(8, 18, 13, 0.76);
    color: var(--wl-text);
    display: inline-grid;
    place-content: center;
    gap: 5px;
    flex: 0 0 auto;
  }
  .wl-mobile-menu-button span {
    width: 18px;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
    display: block;
  }
  .wl-topbar__workspace { display: none; }
  .wl-topbar__user { margin-left: auto; font-size: 0.86rem; color: var(--wl-muted); }
  .wl-content { padding: 20px 0; }
  .wl-sidebar {
    display: flex;
    position: fixed;
    inset: 0 auto 0 0;
    width: min(84vw, 328px);
    height: 100dvh;
    z-index: 8;
    transform: translateX(calc(-100% - 18px));
    transition: transform 180ms ease;
    box-shadow: 28px 0 58px rgba(0, 0, 0, 0.34);
    border-right-color: rgba(255, 255, 255, 0.16);
  }
  .wl-sidebar__close {
    display: grid !important;
    place-items: center;
    position: absolute;
    top: 16px;
    right: 16px;
    width: 38px;
    height: 38px;
    font-size: 1.25rem;
  }
  .wl-mobile-menu-backdrop {
    position: fixed;
    inset: 0;
    z-index: 7;
    background: rgba(0, 0, 0, 0.52);
    backdrop-filter: blur(3px);
  }
  .wl-app-layout.is-mobile-menu-open .wl-sidebar { transform: translateX(0); }
  .wl-app-layout.is-mobile-menu-open .wl-mobile-menu-backdrop { display: block; }
  body.wl-mobile-menu-lock { overflow: hidden; }
  .wl-panel-grid { grid-template-columns: 1fr; }
  .wl-page-header { display: block; }
  .wl-tariff-card__topline { display: grid; gap: 8px; }
  .wl-tariff-card__limits { grid-template-columns: 1fr; }
  .wl-tariff-card__action { width: 100%; }
  .wl-provider-list { grid-template-columns: 1fr; }
}

@media (min-width: 901px) and (max-width: 1199px) {
  :root { --wl-sidebar-width: 232px; }
  .wl-panel-grid { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  .wl-list-item { display: grid; }
  .wl-list-item__actions { justify-content: flex-start; }
  .wl-section-header { display: block; }
  .wl-bot-card__header { display: grid; }
  .wl-bot-card__actions { justify-content: stretch; }
  .wl-bot-card__actions .wl-button { width: 100%; }
  .wl-connection-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .wl-connection-card__main { display: grid; }
  .wl-connection-card__actions { justify-content: stretch; }
  .wl-connection-card__actions .wl-button { width: 100%; }
}

@media (max-width: 900px) {
  .wl-bridge-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .wl-bridge-card__header { display: grid; }
  .wl-bridge-card__actions { justify-content: stretch; }
  .wl-endpoint-builder, .wl-endpoint-builder--compact { grid-template-columns: 1fr; }
  .wl-endpoint-item { display: grid; }
}

@media (max-width: 920px) {
  .wl-reporting-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
  .wl-reporting-summary { grid-template-columns: 1fr; }
}


@media (max-width: 920px) {
  .wl-event-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .wl-event-registry-grid { grid-template-columns: 1fr; }
  .wl-page-header__actions { justify-content: stretch; }
  .wl-page-header__actions .wl-button { width: 100%; }
  .wl-event-card__header { display: grid; }
  .wl-event-card__actions { justify-content: stretch; }
  .wl-event-card__actions .wl-button { width: 100%; }
}
@media (max-width: 620px) {
  .wl-event-summary { grid-template-columns: 1fr; }
}


@media (max-width: 920px) {
  .wl-penalty-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .wl-penalty-card__actions { justify-content: stretch; }
  .wl-penalty-card__actions .wl-button { width: 100%; }
}
@media (max-width: 620px) {
  .wl-penalty-summary { grid-template-columns: 1fr; }
}

/* v0.78.29 hotfix: mobile drawer must scroll independently from locked page body. */
@media (max-width: 900px) {
  .wl-sidebar {
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    padding-bottom: max(22px, env(safe-area-inset-bottom));
  }

  .wl-sidebar__footer {
    margin-top: 24px;
    padding-bottom: 4px;
  }
}
