.aa-side {
  position: relative;
  width: 250px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  padding: 14px 10px 10px;
  background: var(--aa-side);
  border-right: 1px solid var(--aa-line);
  overflow-y: auto;
  transition: margin-left .2s ease;
}
.aa-brand {
  display: flex;
  align-items: center;
  padding: 4px 8px 14px;
}
.aa-brand img {
  border-radius: 6px;
}
.aa-brand b {
  font-weight: 600;
  font-size: 14px;
  letter-spacing: -.01em;
}
.aa-replier {
  margin-left: auto;
  padding: 2px;
  border: 0;
  background: none;
  color: var(--aa-faint);
  cursor: pointer;
  border-radius: 5px;
}
.aa-replier:hover {
  color: var(--aa-text2);
}
.aa-side svg,
.aa-top svg,
.aa-mob svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  display: block;
  flex-shrink: 0;
}
.aa-brand svg,
.aa-item svg,
.aa-plus svg {
  width: 16px;
  height: 16px;
}
.aa-rubrique {
  padding: 8px 8px 6px;
  font-size: 11.5px;
  font-weight: 500;
  color: var(--aa-faint);
}
.aa-sep {
  height: 1px;
  background: var(--aa-line);
  margin: 8px;
}
html body.crm-acti .aa-item {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  height: 30px;
  padding: 0 8px;
  border-radius: 8px;
  color: var(--aa-text2);
  font: 500 13px/1 var(--ds-font);
  text-align: left;
  text-decoration: none;
}
.aa-item:hover {
  background: var(--aa-hover);
}
.aa-item svg {
  color: var(--aa-muted);
}
html body.crm-acti .aa-item.on,
html body.crm-acti .aa-item.on:hover {
  background: var(--aa-panel);
  color: var(--aa-text);
  box-shadow: 0 0 0 1px var(--aa-line2), 0 1px 2px rgba(0,0,0,.04);
}
.aa-item.on svg {
  color: var(--aa-accent);
}
.aa-fin {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11.5px;
  font-weight: 400;
  color: var(--aa-faint);
  white-space: nowrap;
}
.aa-fin.alerte {
  color: var(--aa-text);
  font-weight: 600;
}
.aa-point {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #22c55e;
}
.aa-fin.direct {
  color: #16a34a;
}
.aa-grow {
  flex: 1;
}
.aa-profil {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px 8px 4px;
  margin-top: 6px;
  border-top: 1px solid var(--aa-line);
  text-decoration: none !important;
}
.aa-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  font-size: 11px;
  font-weight: 600;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  text-decoration: none;
}
.aa-qui {
  min-width: 0;
}
.aa-qui b {
  display: block;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.aa-qui span {
  display: block;
  font-size: 11.5px;
  color: var(--aa-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.aa-plus {
  margin-left: auto;
  color: var(--aa-faint);
}
.aa-top {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--aa-muted);
  font-size: 12.5px;
}
.aa-top a,
.aa-fil {
  color: var(--aa-muted);
  text-decoration: none;
}
.aa-top a svg {
  width: 14px;
  height: 14px;
}
.aa-top .aa-chev {
  width: 12px;
  height: 12px;
  color: var(--aa-faint);
}
.aa-fil:hover,
.aa-top a:hover {
  color: var(--aa-text2);
}
.aa-cur {
  color: var(--aa-text);
  font-weight: 500;
}
.aa-ouvrir {
  display: none;
  border: 0;
  background: none;
  padding: 0;
  color: var(--aa-faint);
  cursor: pointer;
  margin-right: 4px;
}
.aa-ouvrir svg {
  width: 16px;
  height: 16px;
}
.aa-mob,
.aa-voile {
  display: none;
}
@media (max-width: 899px) {
  .aa-mob {
    position: sticky;
    top: 0;
    z-index: 40;
    display: flex;
    align-items: center;
    -webkit-backdrop-filter: blur(14px);
  }
  .aa-mob-menu,
  .aa-mob-cherche {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 10px;
    background: none;
    color: var(--aa-text2);
    cursor: pointer;
  }
  .aa-mob-menu:active,
  .aa-mob-cherche:active {
    background: var(--aa-hover);
  }
  .aa-mob-titre {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 8px;
  }
  .aa-mob-titre img {
    border-radius: 6px;
    flex-shrink: 0;
  }
  .aa-mob-titre span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: 600;
    letter-spacing: -.01em;
  }
  .aa-mob-titre i {
    font-style: normal;
    font-weight: 400;
    color: var(--aa-faint);
    margin: 0 5px;
  }
  .aa-side {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 60;
    width: min(290px, 86vw);
    padding: calc(12px + env(safe-area-inset-top, 0px)) 10px calc(12px + env(safe-area-inset-bottom, 0px));
    transform: translateX(-105%);
    transition: transform .22s cubic-bezier(.3,.7,.4,1);
    box-shadow: 0 0 40px rgba(0,0,0,.18);
    visibility: hidden;
  }
  .app.aa-tiroir .aa-side {
    transform: none;
    visibility: visible;
  }
  .app:not(.aa-pret) .aa-side {
    transition: none;
  }
  html body.crm-acti .aa-item {
    height: 40px;
    font-size: 14.5px;
    padding: 0 10px;
    gap: 11px;
  }
  .aa-item svg {
    width: 18px;
    height: 18px;
  }
  .aa-brand {
    padding: 2px 6px 14px 10px;
  }
  .aa-replier {
    padding: 8px;
    margin-right: -4px;
  }
  .aa-rubrique {
    padding: 10px 10px 6px;
    font-size: 12px;
  }
  .aa-profil {
    padding: 12px 10px 2px;
  }
  .aa-voile {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 55;
    background: rgba(9,9,11,.38);
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s ease;
  }
  .app.aa-tiroir .aa-voile {
    opacity: 1;
    pointer-events: auto;
  }
  body.aa-tiroir-ouvert {
    overflow: hidden;
  }
}
@media (max-width: 899px) and (prefers-reduced-motion: reduce) {
  .aa-side,
  .aa-voile {
    transition: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  .aa-side {
    transition: none;
  }
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) .aa-avatar {
    background: #27272a;
    color: #d4d4d8;
  }
}
.aa-io {
  color: #3B82F6;
}
@media (min-width: 900px) {
  .aa-side {
    transition: width .2s ease, padding .2s ease;
  }
  .app.aa-repliee .aa-side {
    margin-left: 0;
    width: 56px;
    padding: 14px 8px 10px;
    align-items: center;
    overflow-x: hidden;
  }
  .app.aa-repliee .aa-brand {
    flex-direction: column;
    gap: 10px;
    padding: 4px 0 10px;
  }
  .app.aa-repliee .aa-brand b,
  .app.aa-repliee .aa-rubrique,
  .app.aa-repliee .aa-item > span:not(.aa-fin),
  .app.aa-repliee .aa-qui,
  .app.aa-repliee .aa-plus {
    display: none;
  }
  .app.aa-repliee .aa-replier {
    margin: 0;
    padding: 6px;
  }
  .app.aa-repliee .aa-sep {
    width: 24px;
    margin: 8px auto;
  }
  .app.aa-repliee .aa-item {
    position: relative;
    width: 36px;
    height: 36px;
    padding: 0;
    justify-content: center;
  }
  .app.aa-repliee .aa-item svg {
    width: 18px;
    height: 18px;
  }
  .app.aa-repliee .aa-fin {
    position: absolute;
    top: 6px;
    right: 6px;
    margin: 0;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--aa-faint);
    font-size: 0;
    gap: 0;
    overflow: hidden;
  }
  .app.aa-repliee .aa-fin:not(.alerte) {
    display: none;
  }
  .app.aa-repliee .aa-fin.alerte {
    background: var(--aa-text);
  }
  .app.aa-repliee .aa-profil {
    padding: 10px 0 4px;
    justify-content: center;
    width: 100%;
  }
  .app.aa-repliee .aa-ouvrir {
    display: none;
  }
  .app.aa-repliee .aa-brand {
    margin-bottom: auto;
  }
  .app.aa-repliee .aa-grow {
    flex: 0 0 0;
  }
  .app.aa-repliee .aa-profil {
    margin-top: auto;
  }
}
.aa-side > * {
  flex-shrink: 0;
}
.aa-side > .aa-grow {
  flex-shrink: 1;
  min-height: 8px;
}
.aa-side {
  scrollbar-width: none;
}
.aa-side::-webkit-scrollbar {
  display: none;
}
.app:not(.aa-repliee) .aa-brand {
  padding-left: 5px;
  gap: 6px;
  margin-top: -6px;
}
.aa-avatar {
  background: #e4e4e7;
  color: #3f3f46;
}
:root[data-theme="dark"] .aa-avatar {
  background: #27272a;
  color: #e4e4e7;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) body .aa-avatar {
    background: #27272a;
    color: #e4e4e7;
  }
}
.aa-brand img,
.aa-mob-titre img {
  border-radius: 6px;
}
:root[data-theme="dark"] :is(.aa-brand, .aa-mob-titre) img {
  content: url("../../assets/icons/logo.svg?v=2");
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) body :is(.aa-brand, .aa-mob-titre) img {
    content: url("../../assets/icons/logo.svg?v=2");
  }
}
@media (max-width: 767px) {
  .aa-mob {
    height: calc(56px + env(safe-area-inset-top));
    gap: 8px;
    border-bottom: 0;
    background: color-mix(in srgb, var(--ds-surface, #fff) 80%, transparent);
    -webkit-backdrop-filter: saturate(1.6) blur(18px);
    backdrop-filter: saturate(1.6) blur(18px);
  }
  .aa-mob-menu {
    display: none;
  }
  .aa-mob-cherche {
    border-radius: 50%;
    background: color-mix(in srgb, var(--ds-text, #18181b) 5.500%, transparent);
    color: var(--ds-text, #18181b);
    transition: transform .12s, background .15s;
  }
  .aa-mob-cherche:active {
    transform: scale(.92);
    background: color-mix(in srgb, var(--ds-text, #18181b) 10%, transparent);
  }
  .aa-mob svg {
    width: 18px;
    height: 18px;
  }
  .aa-mob-titre span {
    font-size: 0;
  }
  .aa-mob-titre .aa-io,
  .aa-mob-titre i {
    display: none;
  }
  .aa-mob .aa-avatar {
    font-size: 13px;
  }
  body.aa-tiroir-ouvert .pil,
  body:has(.drawer.open, .a21-panneau, dialog[open], .cal-modal[style*="flex"]) .pil {
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, 24px);
  }
  .aa-mob {
    padding-left: 16px;
    padding-right: 16px;
  }
  .aa-mob-titre img {
    width: 24px;
    height: 24px;
  }
  .aa-mob-titre b {
    font-size: 16px;
    letter-spacing: -.01em;
  }
  .aa-mob-cherche,
  .aa-mob .aa-avatar {
    width: 36px;
    height: 36px;
  }
  .aa-mob svg {
    stroke-width: 1.600;
  }
}
