.hsb-activity-tabs {
  display: flex;
  gap: 0;
  padding: 0;
  margin: 7px 0 10px;
  border: 1px solid rgba(255,255,255,.085);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.050), rgba(255,255,255,.018)),
    rgba(8,12,19,.60);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.045);
  overflow: hidden;
}

.hsb-activity-tab-btn {
  position: relative;
  flex: 1;
  min-height: 43px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: rgba(255,255,255,.64);
  font-size: 10.5px;
  font-weight: 650;
  letter-spacing: 0;
  transition: color .16s ease, background .16s ease;
}

.hsb-activity-tab-btn.is-active {
  background: #d69f2d;
  color: rgba(0,0,0.96);
}

.hsb-activity-tab-btn.is-active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, #ffc82e, #f1b71a);
  box-shadow: 0 0 14px rgba(255,200,46,.28);
}

.hsb-activity-tab-btn i {
  color: currentColor;
  font-size: 13px;
}

.hsb-activity-tab-symbol {
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  border-radius: 999px;
  color: #ffe58f;
  background: rgba(214,159,45,.18);
  border: 1px solid rgba(214,159,45,.18);
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
}

.hsb-activity-tab-btn > span:not(.hsb-aq-count) {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hsb-activity-tab-btn .hsb-aq-count {
  display: inline-grid;
  min-width: 18px;
  height: 18px;
  place-items: center;
  margin-left: 4px;
  padding: 0 5px;
  border-radius: 999px;
  background: rgba(255,255,255,.1);
  color: rgba(255,255,255,.86);
  font-size: 10px;
}

[data-aq-section] .hsb-activity-tab-panel {
  min-height: var(--aq-panel-min-height, 280px);
}

.hsb-aq-panel {
  margin: 0 4px 12px;
  padding: 10px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 8px;
  background: rgba(0,0,0,.32);
}

.hsb-aq-title {
  margin: 0;
  color: rgba(255,255,255,.9);
  font-size: 14px;
  font-weight: 850;
}

.hsb-aq-subtitle,
.hsb-aq-empty,
.hsb-aq-time,
.hsb-aq-asker {
  color: rgba(255,255,255,.52);
  font-size: 11px;
}

.hsb-aq-ended {
  margin: 0 0 9px;
  padding: 8px;
  border-radius: 6px;
  background: rgba(214,69,69,.1);
  color: rgba(255,255,255,.72);
  font-size: 12px;
}


.hsb-aq-open-btn {
  min-height: 36px;
  border-radius: 8px !important;
  font-size: 12px;
  font-weight: 850;
}

.hsb-aq-composer {
  display: grid;
  gap: 8px;
  margin-top: 8px;
}

.hsb-aq-composer textarea,
.hsb-aq-owner-reply textarea {
  border-radius: 8px !important;
  border: 1px solid rgba(255,255,255,.12) !important;
  background: rgba(255,255,255,.055) !important;
  color: rgba(255,255,255,.9) !important;
  font-size: 13px;
}

.hsb-aq-composer-actions,
.hsb-aq-owner-actions,
.hsb-aq-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.hsb-aq-owner-actions {
  flex-wrap: wrap;
}

.hsb-aq-suggestions {
  display: grid;
  gap: 6px;
}

.hsb-aq-suggestion {
  display: grid;
  gap: 3px;
  width: 100%;
  padding: 8px;
  border: 1px solid rgba(214,159,45,.18);
  border-radius: 8px;
  background: rgba(214,159,45,.07);
  color: rgba(255,255,255,.86);
  text-align: left;
}

.hsb-aq-suggestion span {
  font-size: 12px;
  font-weight: 800;
}

.hsb-aq-suggestion small {
  color: rgba(255,255,255,.56);
  font-size: 11px;
}

.hsb-aq-list {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.hsb-aq-item {
  display: grid;
  gap: 8px;
  padding: 10px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 8px;
  background: rgba(255,255,255,.035);
}

.hsb-aq-item.is-highlighted {
  border-color: rgba(214,159,45,.7);
}

.hsb-aq-item.is-hidden {
  opacity: .72;
}

.hsb-aq-item-head {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.hsb-aq-badge {
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  padding: 2px 7px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 850;
}

.hsb-aq-badge-pending {
  background: rgba(255,193,7,.14);
  color: #f1c84f;
}

.hsb-aq-badge-answered {
  background: rgba(25,135,84,.16);
  color: #75d68f;
}

.hsb-aq-badge-rejected,
.hsb-aq-badge-closed,
.hsb-aq-badge-hidden {
  background: rgba(108,117,125,.16);
  color: rgba(255,255,255,.58);
}

.hsb-aq-question {
  margin: 0;
  color: rgba(255,255,255,.9);
  font-size: 13px;
  line-height: 1.35;
}

.hsb-aq-answer {
  padding: 9px;
  border-radius: 8px;
  background: rgba(0,0,0,.28);
}

.hsb-aq-answer-author {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 6px;
}

.hsb-aq-answer-author-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  border: 0;
  padding: 0;
  background: transparent;
  color: #d69f2d;
  font: inherit;
  text-decoration: none;
}

button.hsb-aq-answer-author-link {
  cursor: pointer;
}

.hsb-aq-answer-avatar {
  display: inline-grid;
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  place-items: center;
  overflow: hidden;
  border-radius: 50%;
  background: rgba(214,159,45,.16);
  color: #d69f2d;
  font-size: 10px;
  font-weight: 850;
}

.hsb-aq-answer-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hsb-aq-answer-author-name {
  overflow: hidden;
  color: #d69f2d;
  font-size: 11px;
  font-weight: 850;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hsb-aq-answer-byline {
  color: rgba(255,255,255,.48);
  font-size: 11px;
}

.hsb-aq-answer-label {
  margin-bottom: 4px;
  color: #d69f2d;
  font-size: 11px;
  font-weight: 850;
}

.hsb-aq-answer p {
  margin: 0;
  color: rgba(255,255,255,.78);
  font-size: 13px;
  line-height: 1.35;
}

.hsb-aq-owner-reply {
  display: grid;
  gap: 7px;
}

.hsb-aq-reference-picker {
  display: grid;
  gap: 4px;
}

.hsb-aq-reference-select {
  border-radius: 8px !important;
  border: 1px solid rgba(255,255,255,.12) !important;
  background-color: rgba(255,255,255,.055) !important;
  color: rgba(255,255,255,.86) !important;
  font-size: 12px;
}

.hsb-aq-reference-select option {
  background-color: #202124;
  color: rgba(255,255,255,.9);
}

.hsb-aq-reference-select option:checked {
  background-color: #0d6efd;
  color: #fff;
}

.hsb-aq-reference-help {
  color: rgba(255,255,255,.48);
  font-size: 11px;
}

.hsb-aq-schedule-ref {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 14px;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-height: 52px;
  margin-top: 8px;
  padding: 6px;
  border: 1px solid rgba(214,159,45,.16);
  border-radius: 8px;
  background: rgba(214,159,45,.07);
  color: rgba(255,255,255,.88);
  text-align: left;
}

.hsb-aq-schedule-ref:disabled {
  cursor: default;
  opacity: .68;
}

.hsb-aq-schedule-ref-thumb {
  display: inline-grid;
  width: 42px;
  height: 42px;
  place-items: center;
  overflow: hidden;
  border-radius: 7px;
  background: rgba(255,255,255,.08);
  color: #d69f2d;
  font-size: 13px;
  font-weight: 850;
}

.hsb-aq-schedule-ref-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hsb-aq-schedule-ref-body {
  display: grid;
  min-width: 0;
  gap: 1px;
}

.hsb-aq-schedule-ref-kicker {
  color: rgba(255,255,255,.48);
  font-size: 10px;
  font-weight: 800;
}

.hsb-aq-schedule-ref-title {
  overflow: hidden;
  color: rgba(255,255,255,.9);
  font-size: 12px;
  font-weight: 850;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hsb-aq-schedule-ref-icon {
  color: rgba(214,159,45,.76);
  font-size: 11px;
}

@media (max-width: 575.98px) {
  [data-aq-section] .hsb-activity-tab-panel {
    min-height: var(--aq-panel-min-height, 240px);
  }

  .hsb-activity-tabs,
  .hsb-aq-panel {
    margin-inline: 0;
  }
}
