/* ARES SIGNATURE V7 */

#espace.ares-v7 .ares-v7-item {
  text-align: left;
}

#espace.ares-v7 .ares-v7-item:focus-visible {
  outline: 2px solid #68a1ff;
  outline-offset: -3px;
}

/* Préférences */

#dlg-preferences.dialogue-preferences {
  box-sizing: border-box;
  width: min(720px, calc(100vw - 28px));
  max-width: 720px;
  max-height: 88dvh;
  padding: 0;
  border: 1px solid rgba(143,166,239,.25);
  border-radius: 25px;
  color: #edf1ff;
  background: linear-gradient(
    150deg,#151d3b,#0c1228
  );
  box-shadow: 0 30px 100px #000a;
  overscroll-behavior: contain;
}

#dlg-preferences::backdrop {
  background: rgba(3,5,15,.78);
  backdrop-filter: blur(7px);
}

#dlg-preferences .formulaire {
  box-sizing: border-box;
  padding: clamp(18px,4vw,32px);
}

#dlg-preferences fieldset,
#dlg-preferences .ambiances {
  min-width: 0;
}

#dlg-preferences .pref-ligne {
  min-width: 0;
  gap: 12px;
}

#dlg-preferences .dialogue-actions {
  position: sticky;
  bottom: 0;
  z-index: 2;
  padding-top: 14px;
  background: linear-gradient(
    0deg,#0c1228 78%,transparent
  );
}

/* Utilisation */

#ares-usage-dialog {
  box-sizing: border-box !important;
  width: min(720px, calc(100vw - 28px)) !important;
  max-height: 88dvh !important;
  border: 1px solid rgba(143,166,239,.25) !important;
  border-radius: 25px !important;
  color: #edf1ff !important;
  background: linear-gradient(
    150deg,#151d3b,#0c1228
  ) !important;
  box-shadow: 0 30px 100px #000a !important;
}

#ares-usage-dialog::backdrop {
  background: rgba(3,5,15,.78);
  backdrop-filter: blur(7px);
}

#ares-usage-dialog .ares-usage-wrap {
  padding: clamp(20px,4vw,32px);
}

#ares-usage-dialog .ares-usage-close {
  border: 1px solid #40517d;
  border-radius: 12px;
  background: #1d2b50;
  padding: 10px 14px;
}

#ares-usage-dialog .ares-usage-card {
  border-color: rgba(143,166,239,.15);
}

#ares-usage-dialog .ares-usage-sub,
#ares-usage-dialog .ares-usage-small {
  color: #a7b3d3;
}

#ares-usage-dialog .ares-usage-track {
  background: #283453;
}

#ares-usage-dialog .ares-usage-fill {
  background: linear-gradient(
    90deg,#438cf8,#9676f2
  );
}

@media (max-width: 600px) {
  #dlg-preferences.dialogue-preferences,
  #ares-usage-dialog {
    border-radius: 20px !important;
  }

  #dlg-preferences .pref-ligne {
    flex-wrap: wrap;
  }

  #dlg-preferences input,
  #dlg-preferences select {
    max-width: 100%;
  }
}
