.quote-list-modes-wrap {
  margin: 0 0 22px;
}

.quote-list-modes {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  padding: 8px;
  border: 1px solid #eadfce;
  border-radius: 22px;
  background: rgba(255, 252, 247, 0.92);
  box-shadow: 0 12px 32px rgba(77, 52, 24, 0.07);
}

.quote-list-mode {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
  min-height: 66px;
  padding: 11px 14px;
  border: 1px solid transparent;
  border-radius: 16px;
  color: #675a47;
  text-decoration: none;
  transition:
    background-color 160ms ease,
    border-color 160ms ease,
    box-shadow 160ms ease,
    color 160ms ease,
    transform 160ms ease;
}

.quote-list-mode > span:first-child {
  display: grid;
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 13px;
  background: #f7ecdc;
  color: #b97731;
  font-size: 18px;
}

.quote-list-mode > span:last-child {
  display: grid;
  min-width: 0;
}

.quote-list-mode strong {
  overflow: hidden;
  color: inherit;
  font-size: 14px;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.quote-list-mode small {
  margin-top: 3px;
  color: #8c7b65;
  font-size: 12px;
  line-height: 1.2;
}

.quote-list-mode:hover {
  border-color: #efd1ad;
  background: #fff8ee;
  color: #32291f;
  transform: translateY(-1px);
}

.quote-list-mode:focus-visible {
  outline: 3px solid rgba(242, 148, 65, 0.35);
  outline-offset: 2px;
}

.quote-list-mode.is-active {
  border-color: #f2a45c;
  background: linear-gradient(135deg, #fff8ed, #fff0dc);
  box-shadow: 0 8px 22px rgba(214, 119, 35, 0.13);
  color: #32291f;
}

.quote-list-mode.is-active > span:first-child {
  background: linear-gradient(135deg, #f69045, #f7b052);
  color: #fff;
  box-shadow: 0 7px 16px rgba(224, 119, 37, 0.23);
}

.quote-inspiration-count {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 10px;
  border: 1px solid #f0c99f;
  border-radius: 999px;
  background: #fff4e8;
  color: #a94e2d;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.quote-inspiration-count:empty {
  display: none;
}

@media (max-width: 700px) {
  .quote-list-modes {
    grid-template-columns: 1fr;
    gap: 6px;
    padding: 7px;
    border-radius: 18px;
  }

  .quote-list-mode {
    min-height: 56px;
    padding: 8px 10px;
    border-radius: 13px;
  }

  .quote-list-mode > span:first-child {
    flex-basis: 36px;
    width: 36px;
    height: 36px;
    border-radius: 11px;
  }

  .quote-list-mode strong {
    white-space: normal;
  }
}

@media (prefers-reduced-motion: reduce) {
  .quote-list-mode {
    transition: none;
  }
}
