/* PC127: jeden pasek nad polem pisania; kolor, font, B, I, reset obok lupki. */
#pc-chat .pc101-chat-tools.pc127-format-tools {
  display: flex !important;
  flex-wrap: wrap;
  align-items: center;
  column-gap: 9px;
  row-gap: 5px;
  min-width: 0;
  box-sizing: border-box;
}
#pc-chat .pc127-inline-format {
  display: flex !important;
  align-items: center;
  flex: 1 1 auto;
  flex-wrap: wrap;
  gap: 5px;
  min-width: 0;
  max-width: 100%;
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}
#pc-chat .pc127-inline-format .pc125-caption { display: none; }
#pc-chat .pc127-inline-format .pc125-choice,
#pc-chat .pc127-inline-format .pc125-format-btn,
#pc-chat .pc127-inline-format .pc125-reset {
  height: 34px;
  min-height: 34px;
  border-radius: 8px;
  border: 1px solid var(--border, rgba(129,206,171,.23));
  background: rgba(22,42,36,.95);
  color: inherit;
  box-sizing: border-box;
}
#pc-chat .pc127-inline-format .pc125-choice {
  width: auto;
  max-width: 140px;
  flex: 1 1 108px;
  min-width: 82px;
  padding: 0 7px;
  font-size: 12px;
}
#pc-chat .pc127-inline-format .pc125-font-choice {
  max-width: 158px;
  flex: 1 1 126px;
}
#pc-chat .pc127-inline-format .pc125-format-btn,
#pc-chat .pc127-inline-format .pc125-reset {
  flex: 0 0 34px;
  width: 34px;
  padding: 0;
  cursor: pointer;
}
#pc-chat .pc127-inline-format .pc125-format-btn.is-active {
  border-color: var(--accent, #70c99a);
  background: rgba(79,176,123,.24);
}
#pc-chat .pc127-format-tools .pc126-zoom-host {
  flex: 0 0 auto;
  margin-left: 0;
  order: 0;
}
/* Małe ekrany: narzędzia mogą przejść do kolejnej linii,
   ale nie wypychają pola wysyłania poza szerokość czatu. */
@media (max-width: 620px) {
  #pc-chat .pc101-chat-tools.pc127-format-tools { gap: 5px; }
  #pc-chat .pc127-inline-format { gap: 4px; }
  #pc-chat .pc127-inline-format .pc125-choice { flex-basis: 90px; min-width: 72px; max-width: 130px; }
  #pc-chat .pc127-inline-format .pc125-font-choice { flex-basis: 108px; max-width: 144px; }
  #pc-chat .pc127-inline-format .pc125-format-btn,
  #pc-chat .pc127-inline-format .pc125-reset { flex-basis: 32px; width: 32px; }
}
