.ads-container { max-width: 1180px; margin: 0 auto; padding: 16px; }
.ads-block { width: 100%; }

.ads-toast-fixed {
  position: fixed;
  top: 14px;
  right: 14px;
  width: min(420px, calc(100% - 28px));
  z-index: 2000;
}

.ads-auth-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
@media (max-width: 980px) { .ads-auth-grid { grid-template-columns: 1fr; } }

.ads-reset-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.ads-header-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.ads-mobile-header,
.ads-nav-overlay {
  display: none;
}

.ads-app-shell {
  min-height: 100vh;
}

.ads-sidebar-shell {
  position: fixed;
  inset: 0 auto 0 0;
  width: 288px;
  padding: 16px;
  z-index: 30;
}

.ads-sidebar-panel {
  height: calc(100vh - 32px);
  display: flex;
  flex-direction: column;
}

.ads-sidebar-brand {
  padding: 4px 4px 12px;
}

.ads-sidebar-brand .ds-title {
  font-size: 24px;
}

.ads-nav {
  display: grid;
  gap: 6px;
  align-content: start;
  overflow-y: auto;
}

.ads-main {
  margin-left: 288px;
  min-height: 100vh;
  padding: 16px 16px 16px 0;
}

.ads-page-card {
  max-width: 960px;
}

.ads-page-head {
  margin-bottom: 12px;
}

.ads-page-head .ds-title {
  font-size: 24px;
}

@media (max-width: 1023px) {
  .ads-mobile-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 40;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 12px 16px;
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(167, 139, 250, 0.25);
    box-shadow: var(--ds-shadow-soft);
  }

  .ads-mobile-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
  }

  .ads-mobile-title {
    font-size: 18px;
    font-weight: 900;
    margin: 0;
  }

  .ads-mobile-summary {
    display: none;
  }

  .ads-sidebar-shell {
    inset: 0 auto 0 0;
    transform: translateX(-100%);
    transition: transform .25s ease;
    width: min(288px, 85vw);
    z-index: 50;
  }

  body.ads-nav-open .ads-sidebar-shell {
    transform: translateX(0);
  }

  .ads-nav-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.35);
    backdrop-filter: blur(4px);
    z-index: 45;
  }

  body.ads-nav-open .ads-nav-overlay {
    display: block;
  }

  .ads-sidebar-panel {
    height: 100vh;
    border-radius: 0;
  }

  .ads-main {
    margin-left: 0;
    padding: 84px 16px 16px;
  }
}
