.work-summary {
  display: flex;
  gap: 10px;
  margin: -7px 30px 16px;
  flex-shrink: 0;
}
.work-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 11px 15px;
  background: #fff;
  border: 1px solid #e3e9db;
  border-radius: 7px;
  min-width: 145px;
  color: #7c8c70;
  font-size: 11px;
}
.work-item strong {
  font-size: 17px;
  color: #526d42;
  font-weight: 600;
}
.work-item.active {
  background: #e8f0e1;
  border-color: #b9cda9;
  color: #4c7534;
}
.work-item.has-errors strong {
  color: #b46f51;
}
.channel-card {
  display: flex;
  align-items: stretch;
}
.channel-card-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}
.channel-card-heading .channel-icon {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  font-size: 20px;
}
.channel-state {
  padding: 5px 8px;
  border-radius: 5px;
  font-size: 10px;
  background: #eff1ea;
  color: #82936f;
}
.channel-state.connected {
  background: #e5f2dc;
  color: #57833f;
}
.channel-state.conflict,
.channel-state.error {
  background: #fbede5;
  color: #b37655;
}
.channel-state.ready {
  background: #eef1fc;
  color: #7589b8;
}
.channel-card .bot-identity {
  margin: 0 0 18px;
  font-size: 12px;
  min-height: 38px;
}
.bot-identity span {
  display: block;
  color: #688554;
  font-size: 11px;
}
.channel-details {
  display: grid;
  grid-template-columns: 1fr;
  gap: 5px;
  padding: 13px 0;
  border-top: 1px solid #e9eedf;
  border-bottom: 1px solid #e9eedf;
  font-size: 10px;
  color: #94a084;
}
.channel-details strong {
  font-weight: 500;
  font-size: 11px;
  color: #6d855b;
  margin-bottom: 8px;
}
.channel-buttons {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  margin-top: 19px;
}
.channel-buttons .button {
  font-size: 10px;
  padding: 8px 10px;
  min-height: 33px;
  margin: 0;
}
.webhook-label {
  font-size: 9px;
  color: #9da991;
  margin-top: 18px;
}
.webhook-label code {
  font-family: inherit;
  display: block;
  overflow-wrap: anywhere;
  font-size: 10px;
  background: none;
  border: 0;
  padding: 6px 0;
}
.connection-error {
  font-size: 11px;
  color: #a67452;
  background: #fbf4e7;
  border-radius: 6px;
  padding: 10px;
  margin-top: 14px;
  line-height: 1.8;
}
.channel-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  margin-left: auto;
  background: #bdc8b2;
}
.channel-dot.connected {
  background: #699c56;
}
.channel-dot.error,
.channel-dot.conflict {
  background: #c79b75;
}
.dialog-intro {
  font-size: 12px;
  color: #7b916b;
  line-height: 1.8;
}
.form-error {
  font-size: 12px;
  color: #b17b56;
  line-height: 1.7;
}
.checkbox-label {
  display: flex !important;
  align-items: center;
  gap: 8px;
}
.checkbox-label input {
  width: auto;
  margin: 0;
}
dialog textarea {
  width: 100%;
  border: 1px solid #dce5d3;
  border-radius: 6px;
  padding: 12px;
  margin-top: 6px;
  color: #557644;
  resize: vertical;
  line-height: 1.7;
}
.section-actions {
  display: flex;
  justify-content: space-between;
  gap: 25px;
  align-items: flex-start;
  margin-bottom: 20px;
}
.section-actions .section-intro {
  margin: 0;
}
.section-actions .button {
  font-size: 11px;
}
.template-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 15px;
}
.template-card {
  border: 1px solid #e3ead9;
  background: #fcfdf9;
  border-radius: 9px;
  padding: 22px;
  display: flex;
  flex-direction: column;
}
.template-card h2 {
  font-size: 15px;
  font-weight: 600;
  margin: 0 0 13px;
  color: #597449;
}
.template-card p {
  font-size: 12px;
  color: #7c8e6a;
  line-height: 1.85;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  flex: 1;
  margin: 0 0 20px;
}
.template-card > div {
  display: flex;
  gap: 15px;
}
.template-card .text-button {
  font-size: 10px;
}
.attachment-card {
  display: flex;
  gap: 9px;
  align-items: center;
  padding: 12px;
  margin-top: 9px;
  background: #f6f8ef;
  border: 1px solid #e2e8d7;
  border-radius: 7px;
  font-size: 12px;
  color: #648050;
}
.attachment-card > div {
  min-width: 0;
}
.attachment-card a {
  display: block;
  color: #4c7833;
  overflow-wrap: anywhere;
}
.attachment-card small {
  display: block;
  font-size: 9px;
  color: #98a589;
  margin: 4px 0;
}
.attachment-card .text-button {
  font-size: 10px;
  color: #6e9055;
  padding: 4px 0;
}
.message-image {
  display: block;
  max-width: 100%;
  max-height: 300px;
  border-radius: 8px;
  margin-top: 10px;
  object-fit: contain;
}
.selected-file {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px;
  background: #f1f5e9;
  border: 1px solid #dfe8d3;
  border-radius: 6px;
  margin-top: 8px;
  font-size: 10px;
  color: #778e64;
}
.selected-file span {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.selected-file button {
  font-size: 18px;
}
.retry-message {
  display: inline-flex;
  padding: 7px 10px;
  border: 1px solid #e3bd9b;
  background: #fcf2e7;
  color: #a27043;
  border-radius: 5px;
  font-size: 10px;
  margin-top: 8px;
}
.followup-line {
  font-size: 11px;
  color: #809b66;
  line-height: 1.7;
}
.followup-line.overdue {
  color: #b48850;
}
.draft-state {
  font-size: 8px;
  color: #a1b28e;
}
.composer-bottom {
  gap: 5px;
}
.composer-bottom .text-button {
  margin-right: auto;
}
.composer-bottom #attach-button {
  height: 26px;
  width: 24px;
}
.channel-card .button:disabled {
  cursor: not-allowed;
}
.profile-pane.visible {
  z-index: 12;
}
@media (max-width: 1330px) {
  .work-summary {
    margin-left: 20px;
    margin-right: 20px;
  }
  .work-item {
    flex: 1;
    min-width: 0;
    padding: 9px 11px;
    font-size: 10px;
  }
  .profile-pane.visible {
    top: 236px;
  }
}
@media (max-width: 850px) {
  .work-summary {
    margin-left: 14px;
    margin-right: 14px;
    gap: 6px;
  }
  .work-item {
    font-size: 9px;
    padding: 7px;
    gap: 5px;
  }
  .work-item strong {
    font-size: 14px;
  }
  .template-grid {
    grid-template-columns: 1fr;
  }
  .profile-pane.visible {
    top: 207px;
  }
}
@media (max-width: 640px) {
  .work-summary {
    margin: 0 9px 9px;
    overflow: auto;
    gap: 5px;
  }
  .work-item {
    min-width: 110px;
    flex-shrink: 0;
    font-size: 9px;
    padding: 8px;
  }
  .work-item strong {
    font-size: 13px;
  }
  .page-heading {
    height: 85px;
  }
  .profile-pane.visible {
    top: 180px;
  }
  .section-actions {
    flex-direction: column;
    gap: 10px;
  }
  .channel-card-heading {
    margin-bottom: 12px;
  }
  .template-card {
    padding: 16px;
  }
  .channel-card {
    padding: 16px;
  }
  .composer-tabs > button {
    font-size: 10px;
  }
}
