.ho-feedback {
  --fh-gold: #c9a227;
  --fh-ink: #f5f3ef;
  --fh-bg: #0b0b0d;
  --fh-line: rgba(245, 243, 239, 0.14);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--fh-ink);
  position: relative;
  z-index: 2147483000;
}
.ho-feedback * {
  box-sizing: border-box;
}
.ho-feedback button,
.ho-feedback textarea,
.ho-feedback select {
  font: inherit;
}
.ho-feedback svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.ho-feedback__trigger {
  position: fixed;
  right: max(18px, env(safe-area-inset-right));
  bottom: max(82px, calc(env(safe-area-inset-bottom) + 18px));
  width: 58px;
  height: 58px;
  border: 1px solid rgba(227, 196, 99, 0.55);
  border-radius: 50%;
  background: linear-gradient(145deg, #e3c463, #967716);
  color: #080809;
  box-shadow: 0 12px 36px #000b;
  display: grid;
  place-items: center;
  cursor: pointer;
  z-index: 3;
}
.ho-feedback__trigger svg {
  width: 31px;
  stroke-width: 2.2;
}
.ho-feedback__trigger > span {
  position: absolute;
  right: 66px;
  background: #121214;
  color: #fff;
  border: 1px solid var(--fh-line);
  padding: 8px 11px;
  border-radius: 6px;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0;
  transform: translateX(5px);
  pointer-events: none;
  transition: 0.2s;
}
.ho-feedback__trigger:hover > span,
.ho-feedback__trigger:focus-visible > span {
  opacity: 1;
  transform: none;
}
.ho-feedback__backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(12px);
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  padding: 18px;
  z-index: 2;
}
.ho-feedback__backdrop[hidden],
.ho-feedback [hidden] {
  display: none !important;
}
.ho-feedback__dialog {
  width: min(520px, 100%);
  max-height: min(850px, calc(100dvh - 36px));
  overflow: auto;
  background: linear-gradient(160deg, #171719, #09090b 60%);
  border: 1px solid rgba(227, 196, 99, 0.3);
  box-shadow: 0 30px 100px #000;
  border-radius: 18px;
}
.ho-feedback__dialog > header {
  position: sticky;
  top: 0;
  z-index: 3;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 22px 22px 15px;
  background: rgba(12, 12, 14, 0.94);
  backdrop-filter: blur(14px);
}
.ho-feedback__dialog small {
  color: var(--fh-gold);
  letter-spacing: 0.2em;
  font-size: 9px;
}
.ho-feedback__dialog h2 {
  font-size: clamp(22px, 5vw, 31px);
  line-height: 1.05;
  margin: 7px 0 0;
  letter-spacing: -0.035em;
}
.ho-feedback__icon {
  width: 38px;
  height: 38px;
  border: 1px solid var(--fh-line);
  border-radius: 50%;
  background: #171719;
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
}
.ho-feedback__icon svg {
  width: 19px;
}
.ho-feedback__tabs {
  display: flex;
  border-block: 1px solid var(--fh-line);
  padding: 0 22px;
}
.ho-feedback__tabs button {
  border: 0;
  border-bottom: 2px solid transparent;
  background: none;
  color: #aaa;
  padding: 14px 18px 12px 0;
  margin-right: 20px;
  cursor: pointer;
}
.ho-feedback__tabs button[aria-selected="true"] {
  color: #fff;
  border-color: var(--fh-gold);
}
.ho-feedback__compose,
.ho-feedback__history {
  padding: 18px 22px 24px;
}
.ho-feedback__capture {
  min-height: 190px;
  border: 1px dashed rgba(227, 196, 99, 0.3);
  display: grid;
  place-items: center;
  align-content: center;
  gap: 12px;
  color: #aaa;
  margin-bottom: 18px;
}
.ho-feedback__spinner {
  width: 26px;
  height: 26px;
  border: 2px solid #555;
  border-top-color: var(--fh-gold);
  border-radius: 50%;
  animation: ho-spin 0.8s linear infinite;
}
.ho-feedback__shot {
  margin-bottom: 20px;
}
.ho-feedback__image-wrap {
  position: relative;
  display: block;
  width: fit-content;
  max-width: 100%;
  margin-inline: auto;
  line-height: 0;
  background: #050505;
  overflow: hidden;
  border: 1px solid var(--fh-line);
}
.ho-feedback__image-wrap img {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 330px;
  object-fit: contain;
}
.ho-feedback__image-wrap svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  touch-action: auto;
}
.ho-feedback__image-wrap.is-annotating svg {
  pointer-events: auto;
  touch-action: none;
  cursor: crosshair;
}
.ho-feedback__image-wrap polyline {
  fill: none;
  stroke: #f4cf37;
  stroke-width: 9;
  vector-effect: non-scaling-stroke;
  filter: drop-shadow(0 1px 1px #000);
}
.ho-feedback__tools {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 8px;
}
.ho-feedback__tools button,
.ho-feedback__audio button {
  border: 1px solid var(--fh-line);
  background: #171719;
  color: #ddd;
  padding: 8px 10px;
  border-radius: 6px;
  font-size: 11px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
}
.ho-feedback__tools button:disabled {
  opacity: 0.35;
}
.ho-feedback__tools svg {
  width: 14px;
}
.ho-feedback__label,
.ho-feedback__row label span {
  display: block;
  font-size: 10px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: #999;
  margin: 4px 0 8px;
}
.ho-feedback textarea,
.ho-feedback select {
  width: 100%;
  border: 1px solid var(--fh-line);
  background: #0d0d0f;
  color: #fff;
  border-radius: 8px;
  padding: 13px;
  outline: none;
}
.ho-feedback textarea {
  resize: vertical;
  min-height: 102px;
  line-height: 1.45;
}
.ho-feedback textarea:focus,
.ho-feedback select:focus {
  border-color: var(--fh-gold);
}
.ho-feedback__row {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 10px;
  align-items: end;
  margin-top: 12px;
}
.ho-feedback__record {
  height: 45px;
  border: 1px solid var(--fh-line);
  border-radius: 8px;
  background: #171719;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
}
.ho-feedback__record svg {
  width: 18px;
}
.ho-feedback__record.is-recording {
  border-color: #e35151;
  color: #ff8484;
  animation: ho-pulse 1.2s infinite;
}
.ho-feedback__audio {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
}
.ho-feedback__audio audio {
  height: 38px;
  max-width: calc(100% - 75px);
}
.ho-feedback__status {
  min-height: 20px;
  margin-top: 13px;
  color: #b8cba9;
  font-size: 12px;
  line-height: 1.4;
}
.ho-feedback__status.is-error {
  color: #ff9b91;
}
.ho-feedback__send {
  width: 100%;
  border: 0;
  background: linear-gradient(135deg, #e3c463, #a48219);
  color: #080809;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 14px 18px;
  border-radius: 8px;
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
  cursor: pointer;
}
.ho-feedback__send:disabled {
  opacity: 0.5;
}
.ho-feedback__privacy {
  font-size: 10px;
  line-height: 1.45;
  color: #777;
  margin: 11px 2px 0;
}
.ho-feedback__history-list {
  display: grid;
  gap: 10px;
}
.ho-feedback__history-list article {
  border: 1px solid var(--fh-line);
  background: #111113;
  padding: 14px;
  border-radius: 9px;
}
.ho-feedback__history-list article > div {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #8d8d90;
  font-size: 10px;
}
.ho-feedback__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--fh-gold);
}
.ho-feedback__history-list h3 {
  font-size: 14px;
  line-height: 1.35;
  margin: 10px 0 5px;
  font-weight: 550;
}
.ho-feedback__history-list p {
  font-size: 11px;
  color: #888;
  margin: 0;
}
.ho-feedback-open {
  overflow: hidden;
}
@keyframes ho-spin {
  to {
    transform: rotate(360deg);
  }
}
@keyframes ho-pulse {
  50% {
    box-shadow: 0 0 0 4px rgba(227, 81, 81, 0.15);
  }
}
@media (max-width: 600px) {
  .ho-feedback__backdrop {
    padding: 0;
    align-items: flex-end;
  }
  .ho-feedback__dialog {
    border-radius: 18px 18px 0 0;
    border-bottom: 0;
    max-height: 94dvh;
  }
  .ho-feedback__trigger {
    bottom: max(108px, calc(env(safe-area-inset-bottom) + 88px));
    right: 14px;
  }
  .ho-feedback__compose,
  .ho-feedback__history {
    padding-inline: 16px;
  }
  .ho-feedback__dialog > header,
  .ho-feedback__tabs {
    padding-inline: 16px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .ho-feedback * {
    animation: none !important;
    transition: none !important;
  }
}
