.feedback-launcher {
  position: fixed;
  right: max(18px, env(safe-area-inset-right));
  bottom: max(18px, env(safe-area-inset-bottom));
  z-index: 50;
  display: grid;
  width: 50px;
  height: 50px;
  place-items: center;
  border: 1px solid rgba(23, 33, 43, .22);
  border-radius: 50%;
  background: #c9922e;
  color: #17212b;
  box-shadow: 0 9px 24px rgba(17, 21, 24, .24);
  text-decoration: none;
  transition: transform .18s ease-out, background .18s ease-out, box-shadow .18s ease-out;
}
.feedback-launcher:hover { transform: translateY(-2px); background: #dfad4a; box-shadow: 0 12px 28px rgba(17, 21, 24, .28); }
.feedback-launcher:focus-visible { outline: 3px solid rgba(201, 146, 46, .38); outline-offset: 4px; }
.feedback-launcher::before {
  content: attr(data-tooltip);
  position: absolute;
  right: 60px;
  width: max-content;
  max-width: 180px;
  padding: 7px 10px;
  border-radius: 5px;
  background: #17212b;
  color: #fff;
  font: 600 13px/1.3 Inter, "Noto Sans SC", "Microsoft YaHei", sans-serif;
  opacity: 0;
  pointer-events: none;
  transform: translateX(4px);
  transition: opacity .16s ease-out, transform .16s ease-out;
}
.feedback-launcher:hover::before, .feedback-launcher:focus-visible::before { opacity: 1; transform: none; }
.feedback-launcher-icon { position: relative; display: block; width: 21px; height: 17px; border: 2px solid currentColor; border-radius: 5px; }
.feedback-launcher-icon::after { content: ""; position: absolute; left: 4px; bottom: -5px; width: 7px; height: 7px; border-left: 2px solid currentColor; transform: skewY(-36deg); background: #c9922e; }
.feedback-launcher:hover .feedback-launcher-icon::after { background: #dfad4a; }
.feedback-footer-link { white-space: nowrap; }

body.feedback-page { background: #f6f3eb; }
.feedback-page ::selection { background: #f1cd78; color: #17212b; }
.feedback-hero { padding: 56px 0 50px; background: #17212b; color: #fff; }
.feedback-hero .content-width { display: grid; grid-template-columns: minmax(0, 760px) auto; align-items: end; justify-content: space-between; gap: 42px; }
.feedback-hero h1 { max-width: 760px; font-size: 48px; line-height: 1.08; letter-spacing: -.03em; text-wrap: balance; }
.feedback-hero .lede { margin-top: 18px; max-width: 680px; color: #dce3e7; font-size: 18px; }
.feedback-hero-meta { min-width: 190px; margin: 0; padding: 15px 0 2px; border-top: 1px solid rgba(255,255,255,.28); color: #cbd5da; font-size: 14px; }
.feedback-workspace { padding: 56px 0 76px; }
.feedback-layout { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(260px, .65fr); gap: 64px; align-items: start; }
.feedback-form-region { padding: 30px; border: 1px solid #d8d5cc; border-radius: 8px; background: #fff; }
.feedback-form-head { margin-bottom: 26px; }
.feedback-form-head h2, .feedback-aside h2 { margin: 0 0 8px; color: #19232d; font-size: 24px; line-height: 1.22; letter-spacing: -.02em; }
.feedback-form-head p, .feedback-aside>p { max-width: 65ch; margin: 0; color: #5d6872; }
.feedback-form { display: grid; gap: 22px; }
.feedback-field, .feedback-fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
.feedback-field>span, .feedback-fieldset>legend { display: block; margin-bottom: 8px; color: #26333e; font-size: 14px; font-weight: 750; }
.feedback-field em { color: #6d7780; font-style: normal; font-weight: 500; }
.feedback-options { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.feedback-option { position: relative; display: grid; min-height: 44px; place-items: center; padding: 8px 10px; border: 1px solid #cbd0d4; border-radius: 6px; background: #fafaf8; color: #3f4b55; cursor: pointer; font-size: 14px; font-weight: 700; text-align: center; }
.feedback-option input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.feedback-option:has(input:checked) { border-color: #c9922e; background: #f8edcf; color: #4b360e; }
.feedback-option:has(input:focus-visible) { outline: 3px solid rgba(201,146,46,.25); outline-offset: 2px; }
.feedback-field input, .feedback-field textarea { width: 100%; border: 1px solid #cbd0d4; border-radius: 6px; background: #fff; color: #19232d; font: inherit; font-size: 16px; outline: none; }
.feedback-field input { min-height: 44px; padding: 9px 11px; }
.feedback-field textarea { min-height: 190px; padding: 12px; line-height: 1.65; resize: vertical; }
.feedback-field input::placeholder, .feedback-field textarea::placeholder { color: #727d86; opacity: 1; }
.feedback-field input:focus, .feedback-field textarea:focus { border-color: #9b6c19; box-shadow: 0 0 0 3px rgba(201,146,46,.18); }
.feedback-field-row { display: flex; justify-content: space-between; gap: 16px; margin-top: 7px; color: #69747d; font-size: 12px; }
.feedback-counter { font-variant-numeric: tabular-nums; white-space: nowrap; }
.feedback-trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.feedback-submit-row { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding-top: 2px; }
.feedback-privacy { max-width: 54ch; margin: 0; color: #69747d; font-size: 12px; }
.feedback-privacy a { color: #326b58; text-underline-offset: 3px; }
.feedback-submit { min-width: 132px; min-height: 44px; border: 1px solid #c9922e; border-radius: 6px; background: #c9922e; color: #17212b; cursor: pointer; font: inherit; font-weight: 800; }
.feedback-submit:hover { background: #dfad4a; }
.feedback-submit:focus-visible { outline: 3px solid rgba(201,146,46,.28); outline-offset: 3px; }
.feedback-submit:disabled { cursor: wait; opacity: .62; }
.feedback-response { min-height: 0; margin: 0; padding: 0; border-radius: 6px; color: #326b58; font-weight: 700; }
.feedback-response:not(:empty) { min-height: 44px; padding: 10px 12px; background: #edf7f2; }
.feedback-response[data-state="error"] { background: #fff0ee; color: #9b2c22; }
.feedback-aside { position: sticky; top: 28px; padding-top: 4px; }
.feedback-aside ol { display: grid; gap: 22px; margin: 28px 0 0; padding: 0; list-style: none; counter-reset: feedback-step; }
.feedback-aside li { display: grid; grid-template-columns: 32px 1fr; gap: 12px; counter-increment: feedback-step; }
.feedback-aside li::before { content: counter(feedback-step); display: grid; width: 32px; height: 32px; place-items: center; border: 1px solid #b9b6ae; border-radius: 50%; color: #326b58; font-size: 13px; font-weight: 800; }
.feedback-aside h3 { margin: 1px 0 4px; font-size: 15px; }
.feedback-aside li p { margin: 0; color: #5d6872; font-size: 14px; }
.feedback-boundary { margin-top: 30px; padding-top: 22px; border-top: 1px solid #d8d5cc; }
.feedback-boundary h3 { margin: 0 0 7px; font-size: 16px; }
.feedback-boundary p { margin: 0; color: #5d6872; font-size: 14px; }
.feedback-boundary a { color: #326b58; font-weight: 700; text-underline-offset: 3px; }

@media (max-width: 820px) {
  .feedback-hero .content-width { grid-template-columns: 1fr; gap: 24px; }
  .feedback-hero h1 { font-size: 40px; }
  .feedback-hero-meta { min-width: 0; max-width: 340px; }
  .feedback-layout { grid-template-columns: 1fr; gap: 38px; }
  .feedback-aside { position: static; }
}
@media (max-width: 560px) {
  .feedback-launcher { right: max(13px, env(safe-area-inset-right)); bottom: max(13px, env(safe-area-inset-bottom)); width: 46px; height: 46px; }
  .feedback-launcher::before { display: none; }
  .feedback-hero { padding: 42px 0 38px; }
  .feedback-hero h1 { font-size: 34px; }
  .feedback-hero .lede { font-size: 16px; }
  .feedback-workspace { padding: 34px 0 56px; }
  .feedback-form-region { padding: 20px 17px; }
  .feedback-options { grid-template-columns: 1fr 1fr; }
  .feedback-submit-row { align-items: stretch; flex-direction: column; }
  .feedback-submit { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .feedback-launcher, .feedback-launcher::before { transition: none; }
}
