/* TentoniNumérik — correctif Preview R44.3.29.5 */
:root[data-tentoni-hotfix="R44.3.29.5"] {
  --tn-hotfix-border: #d8e2eb;
  --tn-hotfix-ink: #17384a;
  --tn-hotfix-muted: #617885;
  --tn-hotfix-primary: #176f76;
  --tn-hotfix-primary-dark: #105760;
  --tn-hotfix-danger: #a92f3b;
  --tn-hotfix-surface: #ffffff;
  --tn-hotfix-soft: #eef7f8;
}

.tn-hotfix-call-action-hidden {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
}

.tn-hotfix-chat,
.tn-hotfix-chat * {
  box-sizing: border-box;
}

.tn-hotfix-chat {
  min-width: 0 !important;
  min-height: 0 !important;
  overflow: hidden !important;
}

.tn-hotfix-chat > *,
.tn-hotfix-chat section,
.tn-hotfix-chat article,
.tn-hotfix-chat aside,
.tn-hotfix-chat main {
  min-width: 0;
}

.tn-hotfix-contact-list {
  width: min(250px, 29vw) !important;
  min-width: 185px !important;
  max-width: 250px !important;
  min-height: 0 !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  overscroll-behavior: contain;
  scrollbar-width: thin;
}

.tn-hotfix-contact-list [data-contact-id],
.tn-hotfix-contact-list [data-contact-item],
.tn-hotfix-contact-list .contact-item,
.tn-hotfix-contact-list .contact-row,
.tn-hotfix-contact-list [class*="contact-item"],
.tn-hotfix-contact-list [class*="contact-row"],
.tn-hotfix-added-contact {
  min-height: 52px !important;
  max-height: 72px;
  padding: 7px 9px !important;
  gap: 8px !important;
  overflow: hidden !important;
}

.tn-hotfix-contact-list img,
.tn-hotfix-contact-list [class*="avatar"] {
  width: 36px !important;
  min-width: 36px !important;
  height: 36px !important;
  min-height: 36px !important;
  object-fit: cover;
}

.tn-hotfix-contact-list p,
.tn-hotfix-contact-list small,
.tn-hotfix-contact-list span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tn-hotfix-message-list {
  flex: 1 1 auto !important;
  min-width: 0 !important;
  min-height: 180px !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  overscroll-behavior: contain;
  scroll-behavior: smooth;
  padding-bottom: 14px !important;
}

.tn-hotfix-composer {
  position: sticky !important;
  z-index: 8;
  bottom: 0;
  flex: 0 0 auto !important;
  min-width: 0 !important;
  padding: 8px !important;
  background: color-mix(in srgb, var(--tn-hotfix-surface) 96%, transparent);
  border-top: 1px solid var(--tn-hotfix-border);
  backdrop-filter: blur(8px);
}

.tn-hotfix-editor {
  width: 100% !important;
  min-height: 42px !important;
  max-height: 112px !important;
  overflow-y: auto !important;
  resize: none !important;
  line-height: 1.4 !important;
}

.tn-hotfix-typing {
  position: relative !important;
  z-index: 7;
  flex: 0 0 auto;
  margin: 0 !important;
  padding: 5px 12px !important;
  color: var(--tn-hotfix-muted) !important;
  background: var(--tn-hotfix-surface) !important;
  font-size: 12px !important;
  font-style: italic;
}

.tn-hotfix-removing {
  opacity: .45;
  pointer-events: none;
}

.tn-hotfix-empty {
  display: grid;
  min-height: 120px;
  margin: 0;
  place-items: center;
  padding: 18px;
  color: var(--tn-hotfix-muted);
  text-align: center;
}

.tn-hotfix-toasts {
  position: fixed;
  z-index: 2147483646;
  right: 18px;
  bottom: 18px;
  display: grid;
  width: min(390px, calc(100vw - 32px));
  gap: 8px;
  pointer-events: none;
}

.tn-hotfix-toast {
  opacity: 0;
  transform: translateY(10px);
  padding: 12px 14px;
  border: 1px solid #b9dfd9;
  border-radius: 12px;
  background: #eaf8f5;
  color: #125c50;
  font: 700 13px/1.4 system-ui, sans-serif;
  box-shadow: 0 12px 36px #102c3d2f;
  transition: opacity .2s ease, transform .2s ease;
}

.tn-hotfix-toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.tn-hotfix-toast.is-error {
  border-color: #f0bbc1;
  background: #fff0f2;
  color: #842530;
}

.tn-hotfix-weather-card {
  min-width: 0;
}

.tn-hotfix-weather {
  display: grid;
  gap: 10px;
  width: 100%;
  margin: 8px 0;
  color: var(--tn-hotfix-ink);
}

.tn-hotfix-weather-current {
  display: flex;
  align-items: center;
  gap: 10px;
}

.tn-hotfix-weather-symbol {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 50%;
  background: #fff7cd;
  font-size: 25px;
}

.tn-hotfix-weather-current strong,
.tn-hotfix-weather-current small {
  display: block;
}

.tn-hotfix-weather-current strong {
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1;
}

.tn-hotfix-weather-current small,
.tn-hotfix-weather-footer small {
  margin-top: 3px;
  color: var(--tn-hotfix-muted);
  font-size: 10px;
  line-height: 1.35;
}

.tn-hotfix-weather-location {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
}

.tn-hotfix-weather-forecast {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 5px;
}

.tn-hotfix-weather-forecast > div {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 1px 4px;
  min-width: 0;
  padding: 7px 4px;
  border: 1px solid var(--tn-hotfix-border);
  border-radius: 9px;
  background: #fff;
  text-align: center;
}

.tn-hotfix-weather-forecast span,
.tn-hotfix-weather-forecast small {
  grid-column: 1 / -1;
}

.tn-hotfix-weather-forecast small {
  overflow: hidden;
  color: var(--tn-hotfix-muted);
  font-size: 9px;
  text-overflow: ellipsis;
  text-transform: capitalize;
  white-space: nowrap;
}

.tn-hotfix-weather-forecast b,
.tn-hotfix-weather-forecast em {
  font-size: 11px;
  font-style: normal;
}

.tn-hotfix-weather-forecast em {
  color: var(--tn-hotfix-muted);
}

.tn-hotfix-weather-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.tn-hotfix-weather-footer button {
  flex: none;
  border: 1px solid var(--tn-hotfix-border);
  border-radius: 999px;
  padding: 6px 9px;
  background: #fff;
  color: var(--tn-hotfix-primary-dark);
  font: 800 10px/1 system-ui, sans-serif;
  cursor: pointer;
}

.tn-hotfix-sector-help {
  display: block;
  margin-top: 4px;
  color: var(--tn-hotfix-muted);
  font-size: 11px;
  line-height: 1.4;
}

.tn-hotfix-sector-hidden {
  display: none !important;
}

.tn-hotfix-minor-warning {
  margin: 10px 0;
  padding: 12px 14px;
  border: 1px solid #efb8bf;
  border-left: 4px solid var(--tn-hotfix-danger);
  border-radius: 10px;
  background: #fff0f2;
  color: #7f2630;
  font: 750 12px/1.45 system-ui, sans-serif;
}

.tn-hotfix-avatar-wrapper {
  position: relative !important;
  overflow: visible !important;
}

.tn-hotfix-avatar-label {
  position: absolute !important;
  z-index: 20;
  left: 50%;
  bottom: calc(100% + 7px);
  width: max-content;
  max-width: min(220px, 78vw);
  transform: translateX(-50%);
  padding: 4px 9px;
  border-radius: 999px;
  background: color-mix(in srgb, #fff 94%, transparent);
  color: var(--tn-hotfix-ink);
  font: 900 13px/1.2 system-ui, sans-serif !important;
  text-align: center;
  white-space: nowrap;
  box-shadow: 0 5px 16px #102c3d1f;
  pointer-events: none;
}

.tn-hotfix-duplicate-avatar-name {
  display: none !important;
}

.tn-hotfix-assistant {
  overflow: visible !important;
}

.tn-hotfix-assistant-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 7px;
  width: 100%;
  margin-top: 7px;
}

.tn-hotfix-assistant-toolbar button {
  min-height: 36px;
  border: 1px solid var(--tn-hotfix-border);
  border-radius: 9px;
  padding: 8px 11px;
  background: #fff;
  color: var(--tn-hotfix-ink);
  font: 800 11px/1.1 system-ui, sans-serif;
  cursor: pointer;
}

.tn-hotfix-assistant-toolbar .tn-hotfix-send {
  order: 3;
  border-color: var(--tn-hotfix-primary);
  background: var(--tn-hotfix-primary);
  color: #fff;
}

.tn-hotfix-assistant-toolbar button:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 5px 14px #102c3d1f;
}

.tn-hotfix-assistant-toolbar button:disabled {
  opacity: .45;
  cursor: not-allowed;
}

.tn-hotfix-assistant-status {
  margin: 4px 0;
  padding: 6px 10px;
  color: var(--tn-hotfix-primary-dark);
  background: var(--tn-hotfix-soft);
  border-radius: 8px;
  font: 750 11px/1.35 system-ui, sans-serif;
}

@media (max-width: 760px) {
  .tn-hotfix-chat {
    width: 100% !important;
    max-width: 100vw !important;
  }

  .tn-hotfix-contact-list {
    width: min(82vw, 280px) !important;
    min-width: 0 !important;
    max-width: min(82vw, 280px) !important;
  }

  .tn-hotfix-message-list {
    min-height: 210px !important;
  }

  .tn-hotfix-composer {
    padding-bottom: max(8px, env(safe-area-inset-bottom)) !important;
  }

  .tn-hotfix-editor {
    max-height: 92px !important;
  }

  .tn-hotfix-weather-forecast {
    grid-template-columns: repeat(4, minmax(46px, 1fr));
    overflow-x: auto;
  }

  .tn-hotfix-weather-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .tn-hotfix-assistant-toolbar {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .tn-hotfix-assistant-toolbar .tn-hotfix-send {
    grid-column: 1 / -1;
    order: -1;
  }

  .tn-hotfix-toasts {
    right: 16px;
    bottom: max(16px, env(safe-area-inset-bottom));
    left: 16px;
    width: auto;
  }
}

@media (max-width: 420px) {
  .tn-hotfix-contact-list {
    width: 88vw !important;
    max-width: 88vw !important;
  }

  .tn-hotfix-avatar-label {
    font-size: 12px !important;
  }

  .tn-hotfix-assistant-toolbar {
    grid-template-columns: 1fr;
  }

  .tn-hotfix-assistant-toolbar .tn-hotfix-send {
    grid-column: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .tn-hotfix-toast,
  .tn-hotfix-assistant-toolbar button {
    transition: none !important;
  }
}
