.sml-hfe-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-top: 10px;
}

.sml-hfe-action-with-menu {
  position: relative;
}

.sml-hfe-menu {
  position: absolute;
  z-index: 20;
  left: 0;
  bottom: calc(100% + 8px);
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-width: 190px;
  max-width: min(360px, 82vw);
  padding: 8px;
  border: 1px solid rgba(107, 255, 177, .28);
  border-radius: 12px;
  background: #071510;
  box-shadow: 0 18px 45px rgba(0, 0, 0, .36);
}

.sml-hfe-menu[hidden] {
  display: none;
}

.sml-hfe-menu button {
  border: 1px solid rgba(107, 255, 177, .18);
  border-radius: 999px;
  background: rgba(255, 255, 255, .04);
  color: #dff8ee;
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
  padding: 7px 9px;
}

.sml-hfe-menu button:hover,
.sml-hfe-menu button:focus-visible {
  border-color: rgba(52, 255, 137, .72);
  background: rgba(52, 255, 137, .12);
  color: #ffffff;
  outline: none;
}

.sml-hfe-btn {
  border: 1px solid rgba(107, 255, 177, .22);
  border-radius: 999px;
  background: rgba(7, 22, 17, .86);
  color: #dff8ee;
  cursor: pointer;
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
  padding: 9px 12px;
  transition: border-color .18s ease, background .18s ease, color .18s ease, transform .18s ease;
}

.sml-hfe-btn:hover,
.sml-hfe-btn:focus-visible {
  border-color: rgba(52, 255, 137, .72);
  background: rgba(52, 255, 137, .12);
  color: #ffffff;
  outline: none;
  transform: translateY(-1px);
}

.sml-hfe-btn[aria-pressed="true"] {
  background: #38f58a;
  border-color: #38f58a;
  color: #03120a;
}

.sml-hfe-btn[disabled] {
  cursor: progress;
  opacity: .64;
  transform: none;
}

.sml-hfe-open {
  border: 1px solid rgba(107, 255, 177, .18);
  border-radius: 999px;
  color: #9effc6;
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
  padding: 9px 12px;
  text-decoration: none;
}

.sml-hfe-comment-panel {
  display: none;
  border: 1px solid rgba(107, 255, 177, .16);
  border-radius: 12px;
  background: rgba(2, 8, 7, .58);
  margin-top: 10px;
  padding: 10px;
}

.sml-hfe-comment-panel.is-open {
  display: block;
}

.sml-hfe-comments {
  display: grid;
  gap: 8px;
  margin-bottom: 10px;
}

.sml-hfe-comment {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  gap: 8px;
  align-items: start;
}

.sml-hfe-comment img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
}

.sml-hfe-comment-body {
  border: 1px solid rgba(107, 255, 177, .12);
  border-radius: 10px;
  background: rgba(255, 255, 255, .035);
  color: #dff8ee;
  padding: 8px 10px;
}

.sml-hfe-comment-body strong {
  display: block;
  color: #ffffff;
  font-size: 13px;
  margin-bottom: 3px;
}

.sml-hfe-comment-body span {
  color: #b6cac4;
  font-size: 13px;
  line-height: 1.4;
}

.sml-hfe-comment-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  margin-top: 7px;
}

.sml-hfe-comment-actions > button {
  border: 0;
  background: transparent;
  color: #9effc6;
  cursor: pointer;
  font-size: 11px;
  font-weight: 800;
  padding: 2px 0;
}

.sml-hfe-comment-actions > button:hover,
.sml-hfe-comment-actions > button:focus-visible {
  color: #ffffff;
  outline: none;
  text-decoration: underline;
}

.sml-hfe-comment-actions .sml-hfe-menu {
  position: relative;
  left: auto;
  bottom: auto;
  min-width: 0;
  max-width: 100%;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.sml-hfe-empty {
  color: #94a9a3;
  font-size: 12px;
  padding: 4px 0 10px;
}

.sml-hfe-article-target {
  clear: both;
  margin: 16px 0;
  padding: 12px 0;
  border-top: 1px solid rgba(107, 255, 177, .16);
  border-bottom: 1px solid rgba(107, 255, 177, .16);
}

.sml-hfe-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.sml-hfe-form textarea {
  min-height: 46px;
  resize: vertical;
  width: 100%;
  border: 1px solid rgba(107, 255, 177, .22);
  border-radius: 10px;
  background: #06100f;
  color: #eaf7f1;
  padding: 10px;
}

.sml-hfe-form textarea:focus {
  border-color: rgba(52, 255, 137, .72);
  outline: none;
  box-shadow: 0 0 0 3px rgba(52, 255, 137, .12);
}

.sml-hfe-form button {
  border: 0;
  border-radius: 10px;
  background: #38f58a;
  color: #03120a;
  cursor: pointer;
  font-weight: 900;
  padding: 0 14px;
}

.sml-hfe-status {
  color: #94a9a3;
  font-size: 12px;
  grid-column: 1 / -1;
  min-height: 16px;
}

@media (max-width: 620px) {
  .sml-hfe-form {
    grid-template-columns: 1fr;
  }

  .sml-hfe-form button {
    min-height: 42px;
  }
}
