@layer marketing {
.website-feedback-page {
  display: contents;
}

.website-feedback-link {
  appearance: none;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
}

footer nav .website-feedback-link {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  color: inherit;
  font-size: .92rem;
}

footer nav .website-feedback-link:hover {
  color: inherit;
  opacity: .78;
}

.website-feedback-fab {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: var(--z-toast);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 46px;
  padding: 10px 15px;
  border: 1px solid var(--action);
  border-radius: 14px;
  background: var(--surface);
  color: var(--action-strong);
  box-shadow: 0 6px 18px rgba(43, 42, 39, .14);
  font-family: var(--display);
  font-size: .92rem;
  font-weight: 650;
  cursor: pointer;
  transition: border-color var(--motion-fast) ease, background var(--motion-fast) ease, color var(--motion-fast) ease, opacity var(--motion-fast) ease;
}

.website-feedback-fab:hover {
  border-color: var(--action-strong);
  background: var(--action-soft);
}

html.website-feedback-is-open,
html.website-feedback-is-open body {
  height: 100%;
  overflow: hidden;
}

html.website-feedback-is-open body {
  display: grid;
  grid-template: minmax(0, 1fr) / minmax(0, 1fr) clamp(360px, 30vw, 420px);
  min-height: 100dvh;
  max-height: 100dvh;
}

html.website-feedback-is-open .website-feedback-page {
  display: block;
  min-width: 0;
  min-height: 0;
  overflow: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
}

html.website-feedback-is-open .website-feedback-fab {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
}

.website-feedback-panel {
  display: none;
  min-width: 0;
  min-height: 0;
  overflow: auto;
  overscroll-behavior: contain;
  border: 0;
  border-left: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
}

.website-feedback-panel[open] {
  display: block;
  grid-column: 2;
  grid-row: 1;
  animation: website-feedback-enter var(--motion-standard) ease-out;
}

.website-feedback-panel[hidden] {
  display: none;
}

.website-feedback-shell {
  padding: 24px;
}

.website-feedback-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.website-feedback-kicker {
  display: block;
  margin-bottom: 3px;
  color: var(--action-strong);
  font-family: var(--display);
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.website-feedback-title {
  margin: 0;
  font-family: var(--display);
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.2;
}

.website-feedback-close {
  display: inline-grid;
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  place-items: center;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--surface);
  color: var(--ink-soft);
  cursor: pointer;
}

.website-feedback-close:hover {
  border-color: var(--ink-soft);
  color: var(--ink);
}

.website-feedback-hint {
  margin: 0 0 16px;
  color: var(--ink-soft);
  font-size: .95rem;
}

.website-feedback-label {
  display: block;
  margin-bottom: 7px;
  font-family: var(--display);
  font-size: .9rem;
  font-weight: 650;
}

.website-feedback-field {
  position: relative;
}

.website-feedback-field textarea {
  display: block;
  width: 100%;
  min-height: 168px;
  padding: 12px 58px 12px 13px;
  resize: vertical;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  color: var(--ink);
  font: 1rem/1.5 var(--body);
  caret-color: var(--action-text);
}

.website-feedback-field textarea::placeholder {
  color: var(--ink-soft);
  opacity: 1;
}

.website-feedback-field textarea:focus {
  border-color: var(--teal);
  outline: 3px solid var(--teal-soft);
}

.website-feedback-mic {
  position: absolute;
  right: 6px;
  bottom: 6px;
  display: inline-grid;
  width: 44px;
  height: 44px;
  place-items: center;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  color: var(--ink-soft);
  cursor: pointer;
}

.website-feedback-mic:hover {
  border-color: var(--ink-soft);
  color: var(--ink);
}

.website-feedback-mic.is-listening {
  border-color: #a63b32;
  background: #fbe7e4;
  color: #a63b32;
}

.website-feedback-voice-note,
.website-feedback-privacy {
  margin: 7px 0 0;
  color: var(--ink-soft);
  font-size: .79rem;
  line-height: 1.4;
}

.website-feedback-voice-note.is-listening {
  color: #a63b32;
}

.website-feedback-screenshot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg-tint, #f6f8f7);
}

.website-feedback-screenshot > div {
  display: grid;
  gap: 2px;
}

.website-feedback-screenshot strong {
  font-family: var(--display);
  font-size: .88rem;
}

.website-feedback-screenshot span {
  color: var(--ink-soft);
  font-size: .76rem;
}

.website-feedback-screenshot-button {
  flex: 0 0 auto;
  gap: 7px;
  min-height: 38px;
  padding: 8px 10px;
  font-size: .82rem;
}

.website-feedback-screenshot-preview {
  margin-top: 10px;
}

.website-feedback-screenshot-preview img {
  display: block;
  width: 100%;
  max-height: 160px;
  object-fit: contain;
  object-position: left center;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
}

.website-feedback-remove {
  margin-top: 6px;
  padding: 5px 0;
  border: 0;
  background: transparent;
  color: var(--ink-soft);
  font: 600 .78rem var(--display);
  cursor: pointer;
}

.website-feedback-remove:hover {
  color: var(--ink);
}

html.feedback-capture-active,
html.feedback-capture-active body {
  overflow: hidden;
  user-select: none;
}

.feedback-capture-overlay {
  position: fixed;
  inset: 0;
  z-index: var(--z-critical);
  overflow: hidden;
  cursor: crosshair;
  touch-action: none;
}

.feedback-capture-overlay:focus {
  outline: none;
}

.feedback-capture-instruction {
  position: fixed;
  top: max(16px, env(safe-area-inset-top));
  left: 50%;
  z-index: var(--z-raised);
  max-width: calc(100vw - 32px);
  margin: 0;
  padding: 10px 14px;
  transform: translateX(-50%);
  border: 1px solid rgba(255, 255, 255, .25);
  border-radius: 12px;
  background: rgba(26, 35, 34, .94);
  color: #fff;
  box-shadow: 0 8px 28px rgba(0, 0, 0, .24);
  font: 500 .88rem/1.35 var(--body);
  text-align: center;
  white-space: nowrap;
  pointer-events: none;
}

.feedback-capture-instruction span {
  margin-left: 8px;
  color: rgba(255, 255, 255, .72);
  font-size: .76rem;
}

.feedback-capture-selection {
  position: fixed;
  z-index: var(--z-base);
  border: 2px solid var(--action-fill, #176b65);
  background: rgba(255, 255, 255, .08);
  box-shadow: 0 0 0 9999px rgba(18, 28, 27, .48);
  pointer-events: none;
}

.website-feedback-error {
  margin: 12px 0 0;
  color: #a63b32;
  font-size: .88rem;
}

.website-feedback-error:empty {
  display: none;
}

.website-feedback-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 18px;
}

.website-feedback-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--control-height);
  padding: 10px var(--control-padding-inline);
  border: 1px solid var(--line);
  border-radius: var(--control-radius);
  background: var(--surface);
  color: var(--ink);
  font-family: var(--display);
  font-size: var(--control-font-size);
  font-weight: var(--control-font-weight);
  cursor: pointer;
}

.website-feedback-button:hover {
  border-color: var(--ink-soft);
}

.website-feedback-button.is-primary {
  border-color: var(--action-fill);
  background: var(--action-fill);
  color: var(--action-foreground);
}

.website-feedback-button.is-primary:hover {
  border-color: var(--action-fill-hover);
  background: var(--action-fill-hover);
}

.website-feedback-button:disabled {
  cursor: not-allowed;
  opacity: .5;
}

.website-feedback-success {
  padding: 12px 0 2px;
  text-align: center;
}

.website-feedback-success-icon {
  display: grid;
  width: 48px;
  height: 48px;
  margin: 0 auto 12px;
  place-items: center;
  border-radius: 50%;
  background: var(--teal-soft);
  color: var(--teal-text);
  font-size: 1.35rem;
  font-weight: 800;
}

.website-feedback-success h3 {
  margin: 0 0 6px;
  font-family: var(--display);
  font-size: 1.2rem;
}

.website-feedback-success p {
  margin: 0;
  color: var(--ink-soft);
}

.website-feedback-honeypot {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

.website-feedback-link:focus-visible,
.website-feedback-fab:focus-visible,
.website-feedback-close:focus-visible,
.website-feedback-mic:focus-visible,
.website-feedback-button:focus-visible {
  outline: 3px solid var(--teal);
  outline-offset: 2px;
}

.website-feedback-remove:focus-visible {
  outline: 3px solid var(--teal);
  outline-offset: 2px;
}

.topbar nav .website-feedback-link {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  color: var(--ink-soft);
  font-size: .95rem;
  font-weight: 500;
}

.topbar nav .website-feedback-link:hover {
  color: var(--action-text);
}

@keyframes website-feedback-enter {
  from { opacity: 0; }
  to { opacity: 1; }
}

@media (max-width: 1399px) {
  html.website-feedback-is-open body {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: clamp(280px, 52dvh, 430px) minmax(0, 1fr);
  }

  html.website-feedback-is-open .website-feedback-page {
    grid-column: 1;
    grid-row: 2;
  }

  .website-feedback-panel[open] {
    grid-column: 1;
    grid-row: 1;
    border-left: 0;
    border-bottom: 1px solid var(--line);
  }

  .website-feedback-shell {
    max-width: 760px;
    margin: 0 auto;
    padding: 16px 20px;
  }

  .website-feedback-header {
    margin-bottom: 10px;
  }

  .website-feedback-title {
    font-size: 1.15rem;
  }

  .website-feedback-hint {
    margin-bottom: 10px;
    font-size: .88rem;
  }

  .website-feedback-field textarea {
    min-height: 96px;
  }

  .website-feedback-actions {
    margin-top: 12px;
  }
}

@media (max-width: 560px) {
  html.website-feedback-is-open body {
    grid-template-rows: min(100dvh, 520px) minmax(0, 1fr);
  }

  .website-feedback-fab {
    right: 14px;
    bottom: 14px;
  }

  .website-feedback-shell {
    padding: 12px 16px;
  }

  .website-feedback-kicker {
    font-size: .68rem;
  }

  .website-feedback-title {
    font-size: 1.08rem;
  }

  .website-feedback-header {
    margin-bottom: 8px;
  }

  .website-feedback-close {
    width: 44px;
    height: 44px;
  }

  .website-feedback-hint {
    line-height: 1.35;
  }

  .website-feedback-field textarea {
    min-height: 84px;
    font-size: .94rem;
  }

  .website-feedback-voice-note,
  .website-feedback-privacy {
    font-size: .74rem;
  }

  .website-feedback-actions {
    gap: 8px;
    margin-top: 10px;
  }

  .website-feedback-screenshot {
    align-items: stretch;
    flex-direction: column;
  }

  .website-feedback-screenshot-button {
    width: 100%;
  }

  .feedback-capture-instruction {
    white-space: normal;
  }

  .feedback-capture-instruction span {
    display: block;
    margin: 2px 0 0;
  }

  .website-feedback-button {
    flex: 1 1 0;
    min-width: 0;
    min-height: 40px;
    padding: .62rem .75rem;
    font-size: .86rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .website-feedback-panel[open] {
    animation: none;
  }
}
}
