.compact-controls {
  --action-height: 32px;
  --action-font-size: 13px;
  --field-text-color: #354740;
}

.compact-controls button:not(:where(.icon-button, .quiet-icon, .reaction-button, .title-result, [data-emoji], .whatsapp-invite, .logout-form button, .friend-menu-items button)),
.compact-controls a.button:not(:where(.whatsapp-invite)),
.compact-controls .compose-toolbar > button:not(:where(.quiet-icon, .icon-button)),
.compact-controls .site-header .public-header-actions .button,
.compact-controls #save-book {
  min-height: var(--action-height);
  max-width: 100%;
  padding: 6px 10px;
  gap: 6px;
  border-radius: 4px;
  font-size: var(--action-font-size);
  font-weight: 600;
  line-height: 18px;
}

.compact-controls form > button:not(:where(.icon-button, .quiet-icon, .reaction-button, .title-result, [data-emoji], .whatsapp-invite, .logout-form button, .friend-menu-items button)) {
  justify-self: start;
}

.compact-controls button:not(:where(.icon-button, .quiet-icon, .reaction-button, .title-result, [data-emoji], .whatsapp-invite, .logout-form button, .friend-menu-items button)) > img,
.compact-controls a.button:not(:where(.whatsapp-invite)) > img {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.compact-controls :is(input, select, textarea) {
  font-family: inherit;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--field-text-color);
}

.compact-controls .emoji-picker > summary {
  width: 32px;
  height: 32px;
  padding: 6px;
  border-radius: 4px;
}

.compact-controls .emoji-picker > summary > img {
  width: 18px;
  height: 18px;
}

.compact-controls .compose-toolbar {
  gap: 8px;
  flex-wrap: wrap;
}

.compact-controls .compose-toolbar > [data-counter-for] {
  font-size: 12px;
  font-weight: 400;
  color: #63726a;
}

.compact-controls .compose-toolbar > .quiet-icon {
  width: 32px;
  height: 32px;
  min-width: 32px;
  min-height: 32px;
  padding: 6px;
  margin-left: 0;
}

.compact-controls .compose-toolbar > .quiet-icon > img {
  width: 18px;
  height: 18px;
}

.compact-controls .group-message-edit .compose-toolbar {
  gap: 4px;
}

.compact-controls .group-message-tools:has(> .group-message-edit[open]) {
  position: relative;
  display: block;
}

.compact-controls .group-message-tools:has(> .group-message-edit[open]) > .inline-form {
  position: absolute;
  top: 0;
  right: 0;
}
