.hf-account-groups {
  box-sizing: border-box;
  display: grid;
  gap: 12px;
  width: 100%;
  max-width: 100%;
  margin: 16px 0;
}

.hf-account-group {
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  border: 1px solid rgba(76, 91, 116, 0.72);
  border-radius: 8px;
  background: rgba(8, 13, 24, 0.86);
  overflow: hidden;
}

.hf-account-group--new {
  border-color: rgba(230, 180, 58, 0.92);
  background: rgba(31, 29, 20, 0.9);
}

.hf-account-group__summary {
  box-sizing: border-box;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-width: 0;
  width: 100%;
  min-height: 72px;
  padding: 14px 16px;
  cursor: pointer;
}

.hf-account-group__summary::-webkit-details-marker {
  color: #dce7f7;
}

.hf-account-group__text {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.hf-account-group__text strong {
  color: #f8fbff;
  font-size: 1.15rem;
  line-height: 1.1;
}

.hf-account-group__text span,
.hf-account-group__hint {
  color: #c4ccda;
  line-height: 1.3;
}

.hf-account-group__badges {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
}

.hf-account-group__badge {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 4px 12px;
  border: 1px solid rgba(196, 204, 218, 0.22);
  border-radius: 999px;
  background: rgba(28, 38, 55, 0.92);
  color: #dce7f7;
  font-weight: 900;
  white-space: nowrap;
}

.hf-account-group__badge--new {
  border-color: rgba(230, 180, 58, 0.86);
  background: rgba(76, 56, 17, 0.96);
  color: #fff2c2;
}

.hf-account-group__body {
  min-width: 0;
  max-width: 100%;
  padding: 0 16px 16px;
}

.hf-account-group__hint {
  margin: 0;
}

.accounts-list-panel[hidden] {
  display: none !important;
}

.hf-account-attempts-panel {
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 14px;
  border: 1px solid rgba(107, 124, 151, 0.45);
  border-radius: 8px;
  background: rgba(8, 13, 24, 0.82);
  overflow: hidden;
}

.hf-account-attempts-panel__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}

.hf-account-attempts-panel__header h3 {
  margin: 0 0 4px;
  font-size: 1.05rem;
}

.hf-account-attempts-panel__header p,
.hf-account-attempts-panel__empty {
  margin: 0;
  color: #c4ccda;
}

.hf-account-attempts-panel__count,
.hf-account-attempt__status {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 12px;
  border-radius: 999px;
  font-weight: 800;
  white-space: nowrap;
}

.hf-account-attempts-panel__count {
  background: rgba(28, 38, 55, 0.92);
  color: #dce7f7;
}

.hf-account-attempts-panel__metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 14px;
}

.hf-account-attempts-panel__metrics span {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 3px 10px;
  border: 1px solid rgba(196, 204, 218, 0.22);
  border-radius: 999px;
  background: rgba(18, 27, 42, 0.88);
  color: #dce7f7;
  font-weight: 800;
}

.hf-account-attempts-panel__rows {
  display: grid;
  gap: 10px;
  min-width: 0;
  max-width: 100%;
}

.hf-account-attempt {
  display: grid;
  gap: 8px;
  min-width: 0;
  max-width: 100%;
  padding: 14px;
  border: 1px solid rgba(76, 91, 116, 0.62);
  border-radius: 8px;
  background: rgba(5, 10, 20, 0.88);
  overflow: hidden;
}

.hf-account-attempt__main,
.hf-account-attempt__meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  min-width: 0;
}

.hf-account-attempt__main strong {
  font-size: 1.05rem;
}

.hf-account-attempt__meta {
  color: #c4ccda;
}

.hf-account-attempt__keyword {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 10px;
  border: 1px solid rgba(196, 204, 218, 0.28);
  border-radius: 999px;
  background: rgba(22, 30, 45, 0.92);
  color: #e6edf8;
  font-weight: 800;
}

.hf-account-attempt__issue {
  margin: 0;
  color: #ffd7df;
  font-weight: 800;
}

.hf-account-attempt-log {
  min-width: 0;
  max-width: 100%;
  border-top: 1px solid rgba(76, 91, 116, 0.62);
  padding-top: 10px;
  overflow: hidden;
}

.hf-account-attempt-log summary {
  cursor: pointer;
  color: #e8eef8;
  font-weight: 900;
  overflow-wrap: anywhere;
}

.hf-account-attempt-log ol {
  display: grid;
  gap: 8px;
  min-width: 0;
  max-width: 100%;
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
}

.hf-account-attempt-log__event {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
  align-items: start;
  min-width: 0;
  max-width: 100%;
  padding: 10px;
  border: 1px solid rgba(76, 91, 116, 0.5);
  border-left: 5px solid rgba(122, 144, 176, 0.8);
  border-radius: 8px;
  background: rgba(12, 18, 30, 0.86);
  overflow: hidden;
}

.hf-account-attempt-log__event strong,
.hf-account-attempt-log__event small,
.hf-account-attempt-log__time,
.hf-account-attempt-log__status {
  min-width: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
  line-height: 1.25;
}

.hf-account-attempt-log__event small {
  display: block;
  color: #c4ccda;
}

.hf-account-attempt-log__time {
  color: #c4ccda;
}

.hf-account-attempt-log__status {
  justify-self: start;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(28, 38, 55, 0.92);
  color: #e6edf8;
  font-weight: 900;
  text-align: left;
  white-space: normal;
}

.hf-account-attempt-log__event--failed {
  border-left-color: #f0445e;
}

.hf-account-attempt-log__event--blocked,
.hf-account-attempt-log__event--pending {
  border-left-color: #d4a72c;
}

.hf-account-attempt-log__event--succeeded {
  border-left-color: #49f59a;
}

.hf-account-attempt__status--sms {
  border: 1px solid rgba(73, 245, 154, 0.58);
  background: rgba(17, 77, 50, 0.84);
  color: #e6fff1;
}

.hf-account-attempt__status--stopped,
.hf-account-attempt__status--issue {
  border: 1px solid rgba(240, 68, 94, 0.66);
  background: rgba(90, 23, 38, 0.86);
  color: #ffe8ed;
}

.hf-account-attempt__status--entered {
  border: 1px solid rgba(90, 159, 250, 0.6);
  background: rgba(23, 57, 104, 0.82);
  color: #eaf3ff;
}

.hf-account-attempt__status--existing {
  border: 1px solid rgba(196, 204, 218, 0.42);
  background: rgba(40, 48, 64, 0.84);
  color: #eef4ff;
}

.hf-account-attempt__status--registered {
  border: 1px solid rgba(73, 245, 154, 0.58);
  background: rgba(20, 95, 58, 0.86);
  color: #e6fff1;
}

@media (max-width: 720px) {
  .hf-account-group__summary,
  .hf-account-attempts-panel__header {
    grid-template-columns: 1fr;
    display: grid;
  }

  .hf-account-group__badges {
    justify-content: flex-start;
  }
}
