/*
 * Shared AI operations assistant launcher.
 *
 * The shared navigation script owns the markup. This file owns only the
 * persistent launcher surface, its A2 digital-colleague icon and responsive
 * placement. Platform pages keep their existing business modules unchanged.
 */

.dashboard-sidebar {
  padding-bottom: 118px;
}

.assistant-entry {
  position: absolute;
  inset: auto 13px 14px;
  min-width: 0;
  min-height: 88px;
  display: grid;
  grid-template-columns: 50px minmax(0, 1fr) 26px;
  align-items: center;
  gap: 8px;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.13);
  color: #ffffff;
  text-decoration: none;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    0 12px 24px rgba(0, 45, 41, 0.18);
  transition:
    background-color 160ms ease,
    border-color 160ms ease,
    box-shadow 160ms ease,
    color 160ms ease;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.assistant-entry:hover {
  border-color: rgba(255, 255, 255, 0.56);
  background: rgba(255, 255, 255, 0.19);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    0 14px 26px rgba(0, 45, 41, 0.24);
}

.assistant-entry:focus-visible {
  outline: 3px solid #d7f7ee;
  outline-offset: 3px;
}

.assistant-entry.is-active,
.assistant-entry[aria-current="page"] {
  border-color: #ffffff;
  background: #f8f6ef;
  color: #075e57;
  box-shadow:
    inset 0 0 0 1px rgba(6, 111, 99, 0.08),
    0 16px 28px rgba(0, 45, 41, 0.24);
}

.agent-launcher-avatar {
  position: relative;
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.68);
  border-radius: 15px;
  background: #f8f6ef;
  color: #08786c;
  box-shadow:
    inset 0 0 0 1px rgba(7, 94, 87, 0.06),
    0 7px 16px rgba(0, 45, 41, 0.14);
}

.agent-launcher-avatar::after {
  content: "";
  position: absolute;
  inset: 5px;
  border: 1px solid rgba(8, 120, 108, 0.1);
  border-radius: 11px;
  pointer-events: none;
}

.agent-launcher-avatar svg {
  position: relative;
  z-index: 1;
  width: 38px;
  height: 38px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.agent-launcher-eye {
  fill: currentColor;
  stroke: none;
}

.agent-launcher-smile {
  stroke-width: 1.9;
}

.assistant-entry.is-active .agent-launcher-avatar,
.assistant-entry[aria-current="page"] .agent-launcher-avatar {
  border-color: #0a756a;
  background: #0a756a;
  color: #ffffff;
  box-shadow: 0 8px 16px rgba(0, 77, 69, 0.18);
}

.assistant-entry.is-active .agent-launcher-avatar::after,
.assistant-entry[aria-current="page"] .agent-launcher-avatar::after {
  border-color: rgba(255, 255, 255, 0.16);
}

.agent-launcher-title {
  min-width: 0;
  display: block;
  overflow: hidden;
  font-size: 14px;
  font-weight: 760;
  line-height: 1.2;
  letter-spacing: 0.01em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.agent-title-short {
  display: none;
}

.agent-launcher-arrow {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: currentColor;
}

.agent-launcher-arrow svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.assistant-entry.is-active .agent-launcher-arrow,
.assistant-entry[aria-current="page"] .agent-launcher-arrow {
  border-color: rgba(7, 94, 87, 0.14);
  background: rgba(7, 94, 87, 0.06);
}

@media (max-width: 1100px) {
  .dashboard-sidebar {
    padding-bottom: 104px;
  }

  .assistant-entry {
    inset: auto 9px 12px;
    min-height: 80px;
    grid-template-columns: 44px minmax(0, 1fr) 24px;
    gap: 6px;
    padding: 8px;
    border-radius: 12px;
  }

  .agent-launcher-avatar {
    width: 44px;
    height: 44px;
    border-radius: 13px;
  }

  .agent-launcher-avatar svg {
    width: 34px;
    height: 34px;
  }

  .agent-title-long {
    display: none;
  }

  .agent-title-short {
    display: inline;
  }

  .agent-launcher-title {
    font-size: 13px;
  }

  .agent-launcher-arrow {
    width: 24px;
    height: 24px;
  }
}

@media (max-width: 620px) {
  .dashboard-sidebar {
    padding-bottom: 8px;
  }

  .assistant-entry {
    position: static;
    width: 100%;
    min-height: 64px;
    margin-top: 8px;
    grid-template-columns: 44px minmax(0, 1fr) 28px;
    gap: 10px;
    padding: 9px 10px;
  }

  .agent-title-long {
    display: inline;
  }

  .agent-title-short {
    display: none;
  }

  .agent-launcher-title {
    font-size: 14px;
  }

  .agent-launcher-arrow {
    width: 28px;
    height: 28px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .assistant-entry {
    transition: none;
  }
}
