.boq-brand {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
}

.boq-brand-copy {
  min-width: 0;
}

.boq-admin-entry,
.boq-feedback-entry {
  display: inline-flex;
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  align-items: center;
  justify-content: center;
  border: 1px solid #647482;
  border-radius: 8px;
  color: white;
  background: transparent;
  cursor: pointer;
  transition: border-color .15s ease, background .15s ease, transform .15s ease;
}

.boq-admin-entry {
  color: #63d4c8;
  font-size: 21px;
  line-height: 1;
}

.boq-admin-entry:hover,
.boq-admin-entry:focus-visible,
.boq-feedback-entry:hover,
.boq-feedback-entry:focus-visible {
  border-color: #63d4c8;
  outline: 0;
  background: rgba(18, 108, 100, .28);
  box-shadow: 0 0 0 3px rgba(99, 212, 200, .14);
}

.boq-admin-entry:active,
.boq-feedback-entry:active {
  transform: translateY(1px);
}

.boq-feedback-entry {
  position: relative;
}

.boq-feedback-entry svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.boq-feedback-badge {
  position: absolute;
  top: 5px;
  right: 5px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  opacity: 0;
  background: #ff675f;
}

.boq-feedback-entry.has-unread .boq-feedback-badge {
  opacity: 1;
  animation: boq-feedback-pulse 1.5s ease-in-out infinite;
}

@keyframes boq-feedback-pulse {
  0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(255, 103, 95, .4); }
  50% { transform: scale(1.4); box-shadow: 0 0 0 5px rgba(255, 103, 95, 0); }
}

.boq-version {
  display: grid;
  min-width: 156px;
  gap: 2px;
  color: #dce8ef;
  text-align: right;
}

.boq-version strong {
  color: #63d4c8;
  font-size: 12px;
}

.boq-version span {
  color: #aebdc8;
  font-size: 11px;
}

.boq-modal-backdrop {
  position: fixed;
  z-index: 1000;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(8, 15, 22, .64);
}

.boq-modal {
  position: relative;
  display: flex;
  width: min(780px, calc(100vw - 48px));
  min-width: 480px;
  height: min(760px, calc(100svh - 48px));
  min-height: 480px;
  max-width: calc(100vw - 24px);
  max-height: calc(100svh - 24px);
  flex-direction: column;
  overflow: hidden;
  resize: both;
  border: 1px solid #cdd8df;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(7, 20, 29, .34);
}

.boq-modal.is-positioned {
  position: fixed;
  margin: 0;
}

.boq-modal-header {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 15px 18px;
  color: #fff;
  background: #17202a;
  cursor: move;
  touch-action: none;
  user-select: none;
}

.boq-modal-header h2 {
  font-size: 18px;
}

.boq-modal-close {
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 7px;
  color: white;
  background: transparent;
  cursor: pointer;
  font-size: 25px;
  line-height: 1;
}

.boq-modal-close:hover,
.boq-modal-close:focus-visible {
  outline: 0;
  background: rgba(255, 255, 255, .12);
}

.boq-modal-intro {
  flex: 0 0 auto;
  padding: 12px 18px 0;
  color: #607080;
  font-size: 13px;
  line-height: 1.45;
}

.boq-modal-body {
  min-height: 0;
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  overflow: hidden;
  padding: 14px 18px 0;
}

.boq-feedback-form {
  display: grid;
  flex: 0 0 auto;
  grid-template-columns: 1fr 1fr;
  gap: 10px 12px;
}

.boq-field {
  display: grid;
  gap: 6px;
  color: #33455f;
  font-size: 12px;
  font-weight: 700;
}

.boq-field.full {
  grid-column: 1 / -1;
}

.boq-field input,
.boq-field select,
.boq-field textarea {
  width: 100%;
  border: 1px solid #c9d4dc;
  border-radius: 7px;
  padding: 9px 10px;
  color: #17202a;
  background: #fff;
  font: inherit;
  font-weight: 500;
}

.boq-field textarea {
  min-height: 88px;
  resize: vertical;
  line-height: 1.45;
}

.boq-field input:focus,
.boq-field select:focus,
.boq-field textarea:focus {
  border-color: #126c64;
  outline: 0;
  box-shadow: 0 0 0 3px rgba(18, 108, 100, .12);
}

.boq-history {
  min-height: 0;
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  margin-top: 14px;
  overflow: hidden;
  border-top: 1px solid #d9e0e7;
  padding-top: 12px;
}

.boq-history-head {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 9px;
}

.boq-history-head h3 {
  margin: 0;
  font-size: 15px;
}

.boq-tabs {
  display: inline-flex;
  gap: 5px;
}

.boq-tabs button {
  border: 1px solid #d6dee4;
  border-radius: 6px;
  padding: 5px 9px;
  color: #607080;
  background: #fff;
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
}

.boq-tabs button.active {
  border-color: #126c64;
  color: #0d5b54;
  background: #e7f3f1;
}

.boq-history-list {
  min-height: 0;
  display: grid;
  flex: 1 1 auto;
  gap: 8px;
  overflow: auto;
  padding-right: 3px;
}

.boq-record {
  display: grid;
  gap: 7px;
  border: 1px solid #e0e7eb;
  border-radius: 8px;
  padding: 10px 12px;
  background: #f8fafb;
}

.boq-record header,
.boq-reply header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  color: #33455f;
  font-size: 12px;
}

.boq-record p,
.boq-reply p {
  margin: 0;
  color: #33455f;
  font-size: 13px;
  line-height: 1.45;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.boq-record small,
.boq-reply small {
  color: #82909e;
  font-size: 11px;
}

.boq-record-actions,
.boq-reply-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.boq-link-button {
  border: 0;
  padding: 0;
  color: #126c64;
  background: transparent;
  cursor: pointer;
  font-size: 12px;
  font-weight: 750;
}

.boq-link-button.danger {
  color: #b0442e;
}

.boq-replies {
  display: grid;
  gap: 7px;
  border-top: 1px solid #d9e0e7;
  padding-top: 8px;
}

.boq-reply {
  display: grid;
  gap: 5px;
  border-left: 3px solid #126c64;
  border-radius: 5px;
  padding: 8px 10px;
  background: #e7f3f1;
}

.boq-reply-editor {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 7px;
  margin-top: 2px;
}

.boq-reply-editor textarea {
  min-width: 0;
  border: 1px solid #c9d4dc;
  border-radius: 6px;
  padding: 7px 8px;
  resize: vertical;
  font: inherit;
}

.boq-button {
  min-height: 36px;
  border: 1px solid #c9d4dc;
  border-radius: 7px;
  padding: 0 13px;
  color: #33455f;
  background: white;
  cursor: pointer;
  font-weight: 700;
}

.boq-button.primary {
  border-color: #126c64;
  color: white;
  background: #126c64;
}

.boq-button.danger {
  border-color: #b0442e;
  color: white;
  background: #b0442e;
}

.boq-button:disabled {
  cursor: not-allowed;
  opacity: .55;
}

.boq-modal-actions {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: flex-end;
  gap: 9px;
  border-top: 1px solid #d9e0e7;
  padding: 12px 18px;
  background: #fff;
}

.boq-status {
  margin-right: auto;
  font-size: 12px;
}

.boq-status.error {
  color: #b0442e;
}

.boq-status.success {
  color: #126c64;
}

.boq-empty {
  color: #607080;
  font-size: 13px;
}

.boq-admin-grid {
  min-height: 0;
  display: grid;
  flex: 1 1 auto;
  grid-template-columns: minmax(0, 1.5fr) minmax(260px, .8fr);
  gap: 14px;
  overflow: hidden;
}

.boq-admin-feedback,
.boq-admin-settings {
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid #d9e0e7;
  border-radius: 8px;
  padding: 12px;
}

.boq-admin-settings {
  overflow: auto;
}

.boq-admin-settings h3,
.boq-admin-feedback h3 {
  margin: 0 0 10px;
  font-size: 15px;
}

.boq-admin-form {
  display: grid;
  gap: 10px;
}

.boq-admin-separator {
  border: 0;
  border-top: 1px solid #d9e0e7;
  margin: 16px 0;
}

.boq-confirm {
  position: absolute;
  z-index: 2;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(255, 255, 255, .93);
}

.boq-confirm-card {
  max-width: 440px;
  border: 1px solid #d9e0e7;
  border-radius: 10px;
  padding: 20px;
  text-align: center;
  background: #fff;
  box-shadow: 0 14px 40px rgba(7, 20, 29, .16);
}

.boq-confirm-card p {
  margin: 0 0 16px;
  line-height: 1.5;
}

.boq-confirm-card div {
  display: flex;
  justify-content: center;
  gap: 9px;
}

@media (max-width: 900px) {
  .boq-version {
    text-align: left;
  }

  .boq-modal {
    min-width: 0;
  }

  .boq-admin-grid {
    grid-template-columns: 1fr;
    overflow: auto;
  }

  .boq-admin-feedback {
    min-height: 360px;
  }
}

@media (max-width: 520px) {
  .boq-modal-backdrop {
    padding: 0;
  }

  .boq-modal {
    width: 100vw;
    min-width: 0;
    height: 100svh;
    min-height: 0;
    max-width: none;
    max-height: none;
    border: 0;
    border-radius: 0;
    resize: none;
  }

  .boq-modal-header {
    cursor: default;
  }

  .boq-feedback-form {
    grid-template-columns: 1fr;
  }

  .boq-field.full {
    grid-column: auto;
  }

  .boq-history-head {
    align-items: flex-start;
    flex-direction: column;
  }
}
