.ta-feedback {
  width: min(920px, calc(100% - 32px));
  margin: 56px auto 28px;
  padding: 22px;
  box-sizing: border-box;
  border: 1px solid rgba(46, 230, 168, .22);
  border-radius: 20px;
  background: rgba(7, 27, 20, .94);
  background: color-mix(in srgb, #071b14 92%, transparent);
  color: #eafff5;
  text-align: center;
}
.ta-feedback__title { margin: 0 0 5px; font: 700 17px/1.3 system-ui, sans-serif; }
.ta-feedback__hint { margin: 0 0 14px; opacity: .72; font: 13px/1.45 system-ui, sans-serif; }
.ta-feedback__faces { display: flex; align-items: center; justify-content: center; gap: 8px; flex-wrap: wrap; }
.ta-feedback__face,
.ta-feedback__report,
.ta-feedback-dialog button,
.ta-feedback-dialog select,
.ta-feedback-dialog textarea {
  font: inherit;
}
.ta-feedback__face {
  width: 48px; height: 48px; min-width: 48px;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 14px;
  background: rgba(255,255,255,.055);
  color: inherit; font-size: 24px; line-height: 1;
  cursor: pointer;
  transition: transform .16s ease, border-color .16s ease, background .16s ease;
}
.ta-feedback__face:hover,
.ta-feedback__face:focus-visible { transform: translateY(-2px); border-color: #2ee6a8; outline: 2px solid rgba(46,230,168,.25); outline-offset: 2px; }
.ta-feedback__face[aria-pressed="true"] { background: rgba(46,230,168,.18); border-color: #2ee6a8; }
.ta-feedback__report {
  min-height: 44px; margin: 14px 0 0; padding: 9px 14px;
  border: 0; background: transparent; color: #7cffcb;
  text-decoration: underline; text-underline-offset: 3px; cursor: pointer;
}
.ta-feedback__status { min-height: 20px; margin: 10px 0 0; color: #a9cabc; font: 13px/1.4 system-ui, sans-serif; }

.ta-feedback-dialog {
  width: min(560px, calc(100vw - 24px));
  max-height: min(760px, calc(100dvh - 24px));
  box-sizing: border-box; overflow: auto;
  border: 1px solid rgba(46,230,168,.28); border-radius: 22px;
  padding: 0; background: #071b14; color: #eafff5;
  box-shadow: 0 24px 90px rgba(0,0,0,.58);
}
.ta-feedback-dialog::backdrop { background: rgba(1,8,6,.72); backdrop-filter: blur(5px); }
.ta-feedback-dialog__form { padding: 24px; }
.ta-feedback-dialog__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.ta-feedback-dialog h2 { margin: 0 0 4px; font: 750 21px/1.25 system-ui, sans-serif; }
.ta-feedback-dialog p { margin: 0; color: #a9cabc; font: 13px/1.45 system-ui, sans-serif; }
.ta-feedback-dialog__close { width: 44px; height: 44px; flex: 0 0 44px; border: 1px solid rgba(255,255,255,.15); border-radius: 13px; background: rgba(255,255,255,.06); color: inherit; cursor: pointer; }
.ta-feedback-dialog label { display: block; margin: 13px 0 6px; color: #d7eee4; font: 650 13px/1.35 system-ui, sans-serif; text-align: left; }
.ta-feedback-dialog select,
.ta-feedback-dialog textarea {
  width: 100%; box-sizing: border-box; border: 1px solid rgba(255,255,255,.17);
  border-radius: 13px; background: #0b261d; color: #f1fff9; padding: 12px;
  font-size: 16px; line-height: 1.45;
}
.ta-feedback-dialog textarea { resize: vertical; min-height: 100px; }
.ta-feedback-dialog__check { display: flex !important; align-items: flex-start; gap: 10px; font-weight: 400 !important; }
.ta-feedback-dialog__check input { width: 20px; height: 20px; flex: 0 0 20px; accent-color: #2ee6a8; }
.ta-feedback-dialog__submit { width: 100%; min-height: 48px; margin-top: 16px; border: 0; border-radius: 14px; background: linear-gradient(135deg,#2ee6a8,#14bd89); color: #03150e; font-weight: 800; cursor: pointer; }
.ta-feedback-dialog__submit:disabled { opacity: .55; cursor: wait; }
.ta-feedback-dialog__status { min-height: 20px; margin-top: 10px !important; }

@media (max-width: 768px) {
  .ta-feedback { width: calc(100% - 24px); margin: 38px 12px calc(102px + env(safe-area-inset-bottom)); padding: 18px 14px; border-radius: 18px; }
  .ta-feedback__faces { gap: 6px; }
  .ta-feedback__face { width: 46px; height: 46px; min-width: 46px; }
  .ta-feedback-dialog { max-height: calc(100dvh - 12px); width: calc(100vw - 12px); border-radius: 18px; }
  .ta-feedback-dialog__form { padding: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  .ta-feedback__face { transition: none; }
}

/* v3: compact feedback card and disclosure-first report form. */
.ta-feedback {
  width: min(680px, calc(100% - 32px));
  margin: 42px auto 24px;
  padding: 15px 16px;
  display: grid;
  grid-template-columns: minmax(190px, 1fr) auto;
  grid-template-areas:
    "title faces"
    "hint faces"
    "report status";
  align-items: center;
  column-gap: 18px;
  row-gap: 2px;
  border-radius: 18px;
  text-align: left;
  background:
    radial-gradient(120% 180% at 0% 0%, rgba(46,230,168,.13), transparent 50%),
    linear-gradient(145deg, rgba(7,27,20,.94), rgba(4,17,13,.96));
  box-shadow: 0 22px 58px -38px rgba(0,0,0,.9), inset 0 1px rgba(255,255,255,.035);
}
.ta-feedback__title { grid-area: title; margin: 0; font-size: 15px; letter-spacing: -.01em; }
.ta-feedback__hint { grid-area: hint; margin: 2px 0 0; font-size: 12px; line-height: 1.35; }
.ta-feedback__faces { grid-area: faces; flex-wrap: nowrap; gap: 6px; }
.ta-feedback__face {
  width: 44px; height: 44px; min-width: 44px;
  border-radius: 13px; font-size: 21px;
  box-shadow: inset 0 1px rgba(255,255,255,.04);
}
.ta-feedback__face[aria-pressed="true"] {
  transform: translateY(-1px) scale(1.04);
  box-shadow: 0 10px 26px -16px rgba(46,230,168,.9), inset 0 1px rgba(255,255,255,.08);
}
.ta-feedback__report {
  grid-area: report; justify-self: start;
  min-height: 38px; margin: 7px 0 0; padding: 7px 11px;
  border: 1px solid rgba(46,230,168,.16); border-radius: 999px;
  background: rgba(46,230,168,.055); text-decoration: none;
  font-size: 12px; font-weight: 700;
}
.ta-feedback__report:hover,
.ta-feedback__report:focus-visible { border-color: rgba(46,230,168,.48); background: rgba(46,230,168,.11); outline: none; }
.ta-feedback__status {
  grid-area: status; justify-self: end; align-self: center;
  min-height: 0; max-width: 250px; margin: 7px 0 0;
  font-size: 11.5px; text-align: right;
}

.ta-feedback-dialog {
  width: min(500px, calc(100vw - 28px));
  max-height: min(680px, calc(100dvh - 28px));
  border-radius: 20px;
  background:
    radial-gradient(130% 70% at 0% 0%, rgba(46,230,168,.12), transparent 48%),
    #061812;
  box-shadow: 0 34px 110px -28px rgba(0,0,0,.88), inset 0 1px rgba(255,255,255,.04);
}
.ta-feedback-dialog__form { padding: 20px; }
.ta-feedback-dialog__head { gap: 12px; margin-bottom: 12px; }
.ta-feedback-dialog h2 { font-size: 19px; letter-spacing: -.015em; }
.ta-feedback-dialog__close { width: 40px; height: 40px; flex-basis: 40px; border-radius: 12px; }
.ta-feedback-dialog label { margin-top: 10px; }
.ta-feedback-dialog textarea { min-height: 88px; max-height: 220px; }
.ta-feedback-dialog__more {
  margin-top: 11px; padding: 0 11px;
  border: 1px solid rgba(255,255,255,.1); border-radius: 13px;
  background: rgba(255,255,255,.035);
}
.ta-feedback-dialog__more summary {
  min-height: 42px; display: flex; align-items: center;
  color: #bfe6d5; font-size: 12.5px; font-weight: 700;
  cursor: pointer; list-style: none;
}
.ta-feedback-dialog__more summary::-webkit-details-marker { display: none; }
.ta-feedback-dialog__more summary::after { content: "+"; margin-left: auto; color: #7cffcb; font-size: 18px; }
.ta-feedback-dialog__more[open] summary::after { content: "−"; }
.ta-feedback-dialog__more label { margin-top: 0; }
.ta-feedback-dialog__more textarea { margin-bottom: 11px; }
.ta-feedback-dialog__check { margin-top: 11px !important; font-size: 12px !important; line-height: 1.4 !important; }
.ta-feedback-dialog__submit { min-height: 46px; margin-top: 12px; border-radius: 13px; }
.ta-feedback-dialog__status { min-height: 0; }
body.ta-feedback-open { overflow: hidden !important; }
body.ta-feedback-open #mobileNav,
body.ta-feedback-open .mobile-nav,
body.ta-feedback-open #omniAssistant,
body.ta-feedback-open .omni-assistant,
body.ta-feedback-open .ta-search-launcher {
  visibility: hidden !important;
  pointer-events: none !important;
}

@media (max-width: 640px) {
  .ta-feedback {
    width: calc(100% - 24px);
    margin: 30px 12px calc(98px + env(safe-area-inset-bottom));
    padding: 14px;
    display: flex; flex-direction: column; gap: 7px;
    border-radius: 18px; text-align: center;
  }
  .ta-feedback__hint { margin: -2px 0 3px; }
  .ta-feedback__faces { width: 100%; justify-content: center; }
  .ta-feedback__report { justify-self: center; margin-top: 3px; }
  .ta-feedback__status { max-width: 100%; margin: 0; text-align: center; }
  .ta-feedback-dialog {
    width: 100%; max-width: none; max-height: min(86dvh, 680px);
    margin: auto 0 0; border-width: 1px 0 0; border-radius: 24px 24px 0 0;
  }
  .ta-feedback-dialog__form { padding: 16px 16px max(16px, env(safe-area-inset-bottom)); }
  .ta-feedback-dialog textarea { min-height: 82px; }
}
