/* Discord dashboard — responsive (complète discord.html, chargé APRÈS le style inline) */

@media (max-width: 900px) {
  html,
  body {
    overflow-x: hidden !important;
    max-width: 100%;
  }

  #view-config,
  #view-config .config-inner,
  .dc-page {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    overflow-x: hidden !important;
    box-sizing: border-box;
  }

  .dc-layout {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
  }

  .dc-sidebar {
    position: static !important;
    display: flex !important;
    flex-wrap: wrap !important;
    flex-direction: row !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 0 16px 0 !important;
    top: auto !important;
    height: auto !important;
  }

  .dc-content {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    padding: 0 12px 40px !important;
    overflow-x: hidden !important;
  }

  .dc-card,
  .tab-pane,
  .frow,
  .two-col,
  .tpl-picker,
  .dc-mock-embed-fields {
    max-width: 100%;
    min-width: 0;
  }

  .two-col,
  .tpl-picker,
  .dc-mock-embed-fields {
    grid-template-columns: 1fr !important;
  }

  .config-topbar {
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 18px 12px 16px;
  }

  .change-server-btn {
    position: static !important;
    transform: none !important;
    margin-top: 10px;
    display: block;
    text-align: center;
  }

  .config-brand-title {
    font-size: clamp(1.6rem, 8vw, 2.2rem);
  }

  .config-brand-logo {
    width: 56px;
    height: 56px;
  }

  #view-login {
    min-height: auto;
    padding: 16px 12px 32px;
  }

  .login-card {
    padding: clamp(28px, 6vw, 56px) clamp(16px, 5vw, 28px) 36px !important;
  }

  .login-features {
    flex-wrap: wrap !important;
    justify-content: center !important;
  }

  .login-brand {
    font-size: clamp(2rem, 9vw, 3.6rem);
  }

  .srv-hero {
    padding: 48px 16px 40px;
  }

  .srv-hero-brand {
    font-size: clamp(2rem, 10vw, 3rem);
  }

  .server-card {
    width: 100%;
    max-width: 320px;
  }

  #dc-user-tag {
    max-width: calc(100vw - 24px);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}

@media (max-width: 480px) {
  .dc-card {
    padding: 18px 16px;
  }

  .config-brand-logo {
    width: 44px;
    height: 44px;
  }
}
