/* EXPERIENCE Lobby inside the existing AOL Instant Messenger window shell. */

.aim-window-content {
  display: flex;
  flex-direction: column;
  width: 100% !important;
  min-width: 0;
  min-height: 0;
  padding: 0 !important;
  overflow: hidden !important;
  background: #ece9d8;
  color: #000;
  font: 11px Tahoma, Verdana, sans-serif;
}

.aim-menu-bar {
  display: flex;
  flex: 0 0 22px;
  align-items: center;
  gap: 1px;
  padding: 1px 4px;
  border-bottom: 1px solid #aca899;
  background: #ece9d8;
}

.aim-menu-item {
  min-width: 0;
  min-height: 18px;
  padding: 1px 5px;
  border: 1px solid transparent;
  background: transparent;
  box-shadow: none;
  font: inherit;
}

.aim-menu-item:hover {
  border-color: #316ac5;
  background: #316ac5;
  color: #fff;
}

.aim-room-bar {
  display: flex;
  flex: 0 0 31px;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 3px 7px;
  border-top: 1px solid #fff;
  border-bottom: 1px solid #808080;
  background: linear-gradient(to bottom, #fff 0%, #ece9d8 100%);
}

.aim-room-identity {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 6px;
  color: #003399;
}

.aim-room-identity img {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

.aim-room-identity strong {
  overflow: hidden;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.aim-online-count {
  flex: 0 0 auto;
  color: #3f3f3f;
  white-space: nowrap;
}

.aim-transcript-frame {
  position: relative;
  display: flex;
  flex: 1 1 auto;
  min-height: 80px;
  margin: 5px 6px 3px;
  border: 1px solid #7f9db9;
  background: #fff;
  box-shadow: inset 1px 1px 0 #d6d3ce;
}

.aim-transcript {
  position: relative;
  flex: 1;
  min-width: 0;
  min-height: 0;
  padding: 7px 8px;
  overflow-x: hidden;
  overflow-y: auto;
  background: #fff;
}

.aim-message-list {
  min-height: 1px;
}

.aim-message {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  column-gap: 7px;
  margin: 0 0 9px;
  padding: 0 0 7px;
  border-bottom: 1px dotted #c7c7c7;
}

.aim-buddy-icon {
  width: 32px;
  height: 32px;
  border: 1px solid #808080;
  background: #fff;
  object-fit: cover;
  image-rendering: auto;
}

.aim-message-body {
  min-width: 0;
}

.aim-message-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 2px;
}

.aim-message-name {
  overflow: hidden;
  color: #0000a0;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.aim-message-time {
  flex: 0 0 auto;
  color: #666;
  font-size: 10px;
  white-space: nowrap;
}

.aim-message-content {
  overflow-wrap: anywhere;
  color: #111;
  font-family: Arial, Tahoma, sans-serif;
  font-size: 12px;
  line-height: 1.3;
  white-space: pre-wrap;
}

.aim-empty-state {
  padding: 30px 10px;
  color: #555;
  line-height: 1.5;
  text-align: center;
}

.aim-empty-state[hidden],
.aim-new-messages[hidden] {
  display: none;
}

.aim-new-messages {
  position: absolute;
  right: 7px;
  bottom: 6px;
  min-width: 92px;
  padding: 2px 8px;
  border: 1px solid #003c74;
  background: #ece9d8;
  color: #000;
  font: 11px Tahoma, sans-serif;
}

.aim-composer {
  flex: 0 0 auto;
  padding: 2px 6px 4px;
  border-top: 1px solid #fff;
  background: #ece9d8;
}

.aim-composer-label {
  display: block;
  font-weight: 700;
}

.aim-message-input {
  display: block;
  width: 100%;
  height: 48px;
  min-height: 35px;
  margin-top: 2px;
  padding: 3px 4px;
  resize: none;
  border: 1px solid #7f9db9;
  border-radius: 0;
  background: #fff;
  color: #000;
  box-sizing: border-box;
  font: 12px Arial, Tahoma, sans-serif;
}

.aim-message-input[readonly] {
  background: #f5f4ea;
  color: #555;
  cursor: pointer;
}

.aim-composer-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 8px;
  min-height: 25px;
  padding-top: 3px;
}

.aim-composer-status {
  overflow: hidden;
  color: #3f3f3f;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.aim-char-count {
  color: #666;
  font-size: 10px;
}

.aim-send-button {
  min-width: 76px;
  min-height: 23px;
}

.aim-connection-bar {
  display: flex;
  flex: 0 0 18px;
  align-items: center;
  justify-content: space-between;
  padding: 0 6px;
  border-top: 1px solid #aca899;
  background: #ece9d8;
  color: #444;
  font-size: 10px;
}

@media (max-width: 430px), (max-height: 360px) {
  .aim-message-input {
    height: 36px;
  }

  .aim-message {
    grid-template-columns: 28px minmax(0, 1fr);
    column-gap: 5px;
  }

  .aim-buddy-icon {
    width: 26px;
    height: 26px;
  }
}
