/* Team access UI — profile switcher, working-as banner, attribution labels */

/* Profile switcher drawer entry */
.team-profile-item {
  /* rendered as a <button>: reset the browser button look */
  width: 100%;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  font: inherit;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.2s ease;
  font-size: 14px;
  line-height: 1.4;
}

.team-profile-item:hover {
  background-color: #3a3a3a;
}

.team-profile-item.current {
  background-color: #3a3a3a;
  border-left: 3px solid #c1fe01;
  padding-left: 13px;
}

.team-profile-item__image {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.team-profile-item__info {
  flex: 1;
  min-width: 0;
}

.team-profile-item__name {
  display: block;
  font-weight: 500;
  color: #fff;
  word-break: break-word;
}

.team-profile-item__role {
  display: block;
  font-size: 12px;
  color: #999;
  margin-top: 2px;
}

.team-profile-item__title {
  display: block;
  font-size: 12px;
  color: #bbb;
  font-style: italic;
  margin-top: 2px;
}

/* Working-as banner */
.team-working-as-banner {
  background-color: #232323;
  border-bottom: 1px solid #3a3a3a;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  position: sticky;
  top: 64px; /* just under the fixed app bar */
  z-index: 90;
}

@media (max-width: 600px) {
  .team-working-as-banner {
    padding: 10px 12px;
    font-size: 13px;
  }
}

.team-working-as-banner__text {
  font-size: 13px;
  line-height: 1.4;
  color: #ccc;
  margin: 0;
}

.team-working-as-banner__profile-name {
  color: #c1fe01;
  font-weight: 500;
}

.team-working-as-banner__actor-title {
  color: #bbb;
  font-style: italic;
}

.team-working-as-banner__button {
  padding: 6px 12px;
  font-size: 12px;
  background-color: #3a3a3a;
  border: 1px solid #555;
  border-radius: 3px;
  color: #fff;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.team-working-as-banner__button:hover {
  background-color: #454545;
  border-color: #666;
}

.team-working-as-banner__button:focus {
  outline: 2px solid #c1fe01;
  outline-offset: 2px;
}

/* Chat message attribution */
.chat-bubble__actor {
  display: block;
  font-size: 11px;
  color: #999;
  margin-top: 4px;
  font-style: italic;
  line-height: 1.3;
}

/* Offer history attribution */
.offer-revision__actor {
  display: inline;
  font-size: 12px;
  color: #999;
  font-style: italic;
}

.offer-revision__actor::before {
  content: " · ";
  margin: 0 4px;
  color: #666;
}

/* The banner is sticky under the fixed app bar: anything scrolled to the top (keyboard focus, anchor
   links, scrollIntoView) must land below both, not behind them. */
html:has(.team-working-as-banner) {
  scroll-padding-top: 140px;
}
