/* TDL — páginas del menú de perfil en mobile: Mi perfil (ajustes), Mis eventos, Mis advertencias. Solo celulares. */
@media (max-width: 767px) {

  /* ================= MI PERFIL (ajustes.php) ================= */
  html body.page-ajustes:not(#x):not(#y):not(#z) main > section.friend-profile-page,
  html body.page-ajustes:not(#x):not(#y):not(#z) main > #perfil-ajustes {
    width: auto !important;
    margin-left: 12px !important;
    margin-right: 12px !important;
  }
  html body.page-ajustes:not(#x):not(#y):not(#z) #perfil-ajustes .hub-card {
    padding: 20px 16px !important;
  }
  html body.page-ajustes:not(#x):not(#y):not(#z) #perfil-ajustes form > .hub-card h1 {
    font-size: 34px !important;
    line-height: 1.05 !important;
  }

  /* Botón Guardar: abajo, al lado del botón + (no encima) */
  html body.page-ajustes:not(#x):not(#y):not(#z) #perfil-ajustes .settings-save-bar {
    bottom: 18px !important;
    padding-right: 70px !important;
    justify-content: stretch !important;
  }
  html body.page-ajustes:not(#x):not(#y):not(#z) #perfil-ajustes .settings-save-bar button {
    flex: 1 1 auto !important;
    width: 100% !important;
    min-height: 52px !important;
    padding: 12px 14px !important;
    font-size: 14px !important;
    letter-spacing: .08em !important;
    justify-content: center !important;
  }

  /* Decorar perfil: pestañas Marcos / Fondos / Efectos que entren bien */
  html body.page-ajustes:not(#x):not(#y):not(#z) #decorar-perfil .profile-studio-tabs {
    gap: 6px !important;
  }
  html body.page-ajustes:not(#x):not(#y):not(#z) #decorar-perfil .profile-studio-tabs button {
    padding: 10px 4px !important;
    font-size: 14px !important;
    gap: 6px !important;
    min-width: 0 !important;
    justify-content: center !important;
    white-space: nowrap !important;
  }

  /* Marcos, fondos y efectos: 3 por fila, más compactos */
  html body.page-ajustes:not(#x):not(#y):not(#z) #decorar-perfil .profile-style-options {
    grid-template-columns: repeat(3, minmax(0,1fr)) !important;
    gap: 8px !important;
  }
  html body.page-ajustes:not(#x):not(#y):not(#z) #decorar-perfil .profile-style-option {
    padding: 8px 6px 10px !important;
    min-width: 0 !important;
    min-height: 0 !important;
    gap: 6px !important;
  }
  html body.page-ajustes:not(#x):not(#y):not(#z) #decorar-perfil .profile-style-option .profile-style-swatch {
    width: 100% !important;
    height: 82px !important;
    min-height: 0 !important;
  }
  html body.page-ajustes:not(#x):not(#y):not(#z) #decorar-perfil .profile-style-option > strong {
    font-size: 12.5px !important;
    line-height: 1.15 !important;
    padding: 0 !important;
    white-space: normal !important;
    overflow-wrap: anywhere !important;
    min-height: 2.3em !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
  }
  html body.page-ajustes:not(#x):not(#y):not(#z) #decorar-perfil .profile-style-option .studio-tier {
    font-size: 9.5px !important;
    padding: 4px 8px !important;
    letter-spacing: .06em !important;
    justify-self: center !important;
    max-width: 100% !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
  }

  /* ================= MIS EVENTOS ================= */
  html body.page-mis-eventos:not(#x):not(#y):not(#z) .tdl-my-events-section > header h2 {
    font-size: 24px !important;
    line-height: 1.1 !important;
  }
  html body.page-mis-eventos:not(#x):not(#y):not(#z) .tdl-my-events-hero p { font-size: 16px !important; }
  html body.page-mis-eventos:not(#x):not(#y):not(#z) .tdl-my-event-cover {
    height: 150px !important;
    min-height: 150px !important;
  }
  html body.page-mis-eventos:not(#x):not(#y):not(#z) .tdl-my-events-empty {
    font-size: 14px !important;
    padding: 18px 16px !important;
    text-align: center !important;
  }

  /* ================= MIS ADVERTENCIAS (/perfil?tab=warnings) ================= */
  html body:not(#x):not(#y):not(#z) .warning-page-shell { gap: 14px !important; }
  html body:not(#x):not(#y):not(#z) .warning-page-shell .warning-overview {
    padding: 20px 16px !important;
    gap: 16px !important;
  }
  html body:not(#x):not(#y):not(#z) .warning-page-shell .warning-overview-copy p { font-size: 15px !important; line-height: 1.5 !important; }

  /* Estado actual: ícono al lado del texto, más bajo */
  html body:not(#x):not(#y):not(#z) .warning-page-shell .warning-state-panel {
    padding: 14px 16px !important;
    gap: 14px !important;
    align-items: center !important;
  }
  html body:not(#x):not(#y):not(#z) .warning-page-shell .warning-state-panel strong {
    font-size: 22px !important;
    line-height: 1.15 !important;
  }

  /* Resumen: los 3 datos en una fila */
  html body:not(#x):not(#y):not(#z) .warning-page-shell .warning-summary-grid {
    grid-template-columns: repeat(3, minmax(0,1fr)) !important;
    gap: 8px !important;
  }
  html body:not(#x):not(#y):not(#z) .warning-page-shell .warning-summary-card {
    grid-column: auto !important;
    width: auto !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 12px 6px !important;
    min-height: 0 !important;
    min-width: 0 !important;
    text-align: center !important;
  }
  html body:not(#x):not(#y):not(#z) .warning-page-shell .warning-summary-card span {
    font-size: 9.5px !important;
    letter-spacing: .06em !important;
    line-height: 1.25 !important;
    min-height: 24px !important;
  }
  html body:not(#x):not(#y):not(#z) .warning-page-shell .warning-summary-card strong {
    font-size: 20px !important;
    line-height: 1.1 !important;
    margin-top: 6px !important;
    overflow-wrap: anywhere !important;
  }

  /* Sin advertencias: más compacto */
  html body:not(#x):not(#y):not(#z) .warning-page-shell .warning-empty-state {
    padding: 22px 18px !important;
    min-height: 0 !important;
  }
  html body:not(#x):not(#y):not(#z) .warning-page-shell .warning-empty-state .warning-empty-icon {
    width: 56px !important;
    height: 56px !important;
  }
  html body:not(#x):not(#y):not(#z) .warning-page-shell .warning-empty-state h3 {
    font-size: 24px !important;
    line-height: 1.15 !important;
  }
  html body:not(#x):not(#y):not(#z) .warning-page-shell .warning-empty-state p { font-size: 14px !important; }
}
