/* Réglages › Support (21 oct. 2026). */
.support-toggle-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 1px solid #dce5f5;
  border-radius: 12px;
}
.support-toggle-icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: #eaf1fd;
  color: #2f63d6;
}
.support-toggle-copy {
  flex: 1;
  display: grid;
  gap: 2px;
}
.support-toggle-copy strong {
  font-size: var(--type-body-size);
  font-weight: var(--weight-semibold);
}
.support-toggle-copy small {
  color: #5b6478;
  font-size: var(--type-label-size);
  line-height: 1.35;
}
.support-switch {
  position: relative;
  flex: none;
  width: 40px;
  height: 24px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: #cfd8e6;
  cursor: pointer;
  transition: background 0.15s ease;
}
.support-switch::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 2px rgba(14, 31, 69, 0.25);
  transition: left 0.15s ease;
}
.support-switch[aria-checked='true'] {
  background: #2f63d6;
}
.support-switch[aria-checked='true']::after {
  left: 19px;
}
.support-switch:disabled {
  opacity: 0.6;
  cursor: progress;
}
.support-durations {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}
.support-duration {
  height: 30px;
  padding: 0 12px;
  border: 1px solid rgba(63, 114, 214, 0.35);
  border-radius: 999px;
  background: #fff;
  color: #2a5fb8;
  font: inherit;
  font-size: var(--type-label-size);
  font-weight: var(--weight-medium);
  cursor: pointer;
}
.support-duration[aria-checked='true'] {
  background: #2f63d6;
  border-color: #2f63d6;
  color: #fff;
}
.support-state {
  margin: 10px 0 0;
  padding: 10px 12px;
  border-radius: 10px;
  background: #e8f6ef;
  color: #14714a;
  font-size: var(--type-label-size);
  line-height: 1.4;
}
.support-state b {
  font-weight: var(--weight-semibold);
}
.support-log,
.support-clients {
  margin: 0;
  padding: 0;
  list-style: none;
}
.support-log li {
  padding: 8px 0;
  border-top: 1px solid #eef2f8;
  color: #5b6478;
  font-size: var(--type-label-size);
}
.support-log li:first-child,
.support-client:first-child {
  border-top: 0;
}
.support-client {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-top: 1px solid #eef2f8;
}
.support-client-copy {
  flex: 1;
  display: grid;
  gap: 2px;
  min-width: 0;
}
.support-client-copy strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: var(--type-body-sm-size);
  font-weight: var(--weight-medium);
}
.support-client-copy small {
  color: #5b6478;
  font-size: var(--type-label-size);
}
.support-open {
  flex: none;
  height: 30px;
  padding: 0 13px;
  border: 0;
  border-radius: 999px;
  background: #2f63d6;
  color: #fff;
  font: inherit;
  font-size: var(--type-label-size);
  font-weight: var(--weight-semibold);
  cursor: pointer;
}
.support-open:hover {
  background: #1f4fbf;
}
.support-empty,
.support-note,
.support-error {
  margin: 8px 0 0;
  color: #8a94a8;
  font-size: var(--type-label-size);
  line-height: 1.4;
}
.support-note {
  margin-top: 14px;
}
.support-error {
  color: #8f2942;
}

/* Bandeau sur la carte du client (mode support). */
.support-banner {
  position: fixed;
  top: 14px;
  left: 50%;
  z-index: 2147482000;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: calc(100vw - 32px);
  padding: 7px 7px 7px 14px;
  border-radius: 999px;
  background: #8f2942;
  color: #fff;
  font-size: var(--type-body-sm-size);
  box-shadow: 0 10px 24px -10px rgba(143, 41, 66, 0.6);
}
.support-banner.is-flash {
  animation: support-banner-flash 0.6s ease 2;
}
@keyframes support-banner-flash {
  50% {
    transform: translateX(-50%) scale(1.04);
  }
}
.support-banner-icon {
  display: grid;
  flex: none;
}
.support-banner-text {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.support-banner-text b {
  font-weight: var(--weight-semibold);
}
.support-banner-exit {
  flex: none;
  height: 28px;
  padding: 0 12px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  font: inherit;
  font-size: var(--type-label-size);
  font-weight: var(--weight-medium);
  cursor: pointer;
}
.support-banner-exit:hover {
  background: rgba(255, 255, 255, 0.3);
}

/* Mode sombre */
html[data-theme='dark'] .support-toggle-row {
  border-color: #2e4478;
}
html[data-theme='dark'] .support-toggle-icon {
  background: rgba(63, 211, 226, 0.15);
  color: #3fd3e2;
}
html[data-theme='dark'] .support-toggle-copy small,
html[data-theme='dark'] .support-client-copy small,
html[data-theme='dark'] .support-log li {
  color: #a9b8d6;
}
html[data-theme='dark'] .support-switch {
  background: #3a4d7a;
}
html[data-theme='dark'] .support-switch[aria-checked='true'] {
  background: #3fd3e2;
}
html[data-theme='dark'] .support-duration {
  background: transparent;
  border-color: #4a64a0;
  color: #b9c8e6;
}
html[data-theme='dark'] .support-duration[aria-checked='true'] {
  background: #3fd3e2;
  border-color: #3fd3e2;
  color: #05112b;
}
html[data-theme='dark'] .support-state {
  background: rgba(30, 155, 95, 0.18);
  color: #8fe0b6;
}
html[data-theme='dark'] .support-log li,
html[data-theme='dark'] .support-client {
  border-color: #253a66;
}
html[data-theme='dark'] .support-open {
  background: #3fd3e2;
  color: #05112b;
}
html[data-theme='dark'] .support-error {
  color: #f19aae;
}
