.conversation-survey-overlay { position: fixed; inset: 0; z-index: 1600; display: grid; place-items: center; padding: 16px; background: rgb(22 21 19 / 46%); }
.conversation-survey { width: min(100%, 540px); max-height: calc(100dvh - 32px); overflow: auto; box-sizing: border-box; padding: 30px 32px; border: 1px solid #d4cfca; border-radius: 8px; color: #252321; background: #faf9f8; box-shadow: 0 16px 48px rgb(0 0 0 / 24%); font-size: 14px; line-height: 1.55; }
.conversation-survey h2 { margin: 0 0 14px; color: #201f1d; font-size: 24px; line-height: 1.3; }
.conversation-survey h2:focus { outline: none; }
.conversation-survey > p { margin: 0 0 28px; }
.conversation-survey form { display: grid; gap: 26px; }
.conversation-survey fieldset { min-width: 0; padding: 0; margin: 0; border: 0; }
.conversation-survey legend { margin-bottom: 13px; padding: 0; line-height: 1.6; }
.survey-stars, .survey-scale { display: flex; gap: 8px; }
.survey-choice { position: relative; display: inline-flex; cursor: pointer; }
.survey-choice input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; margin: 0; cursor: pointer; }
.survey-choice > span { display: grid; place-items: center; min-width: 48px; min-height: 40px; box-sizing: border-box; border: 1px solid #918b86; border-radius: 3px; color: #252321; background: #faf9f8; }
.survey-choice input:checked + span { border-color: #57534e; color: #252321; background: #e5e1dd; box-shadow: inset 0 0 0 1px #57534e; }
.survey-choice input:hover + span { background: #efedeb; }
.survey-choice input:focus-visible + span { outline: 2px solid #00758f; outline-offset: 3px; }
.survey-choice input:disabled { cursor: wait; }
.survey-choice input:disabled + span { opacity: 0.65; }
.survey-star > span { min-width: 34px; min-height: 40px; border-color: transparent; background: transparent; }
.survey-star svg { width: 27px; height: 27px; fill: transparent; stroke: #57534e; stroke-width: 1.2; }
.survey-star.is-rated svg { fill: #665d52; stroke: #665d52; }
.survey-star input:checked + span { border-color: transparent; background: transparent; box-shadow: none; }
.survey-confidence { display: flex; align-items: center; gap: 12px; font-size: 13px; }
.survey-confidence > span { flex-shrink: 0; }
.survey-comment { display: grid; gap: 12px; }
.survey-comment textarea { box-sizing: border-box; width: 100%; min-height: 104px; padding: 10px 13px; border: 1px solid #918b86; border-radius: 3px; resize: vertical; color: #252321; background: #fff; font: inherit; }
.survey-comment textarea:focus-visible { outline: 2px solid #00758f; outline-offset: 2px; }
.survey-privacy { margin: -12px 0 0; color: #68645f; font-size: 12px; line-height: 1.5; }
.survey-error { margin: 0; color: #8f301a; font-size: 13px; }
.survey-actions { display: flex; justify-content: flex-end; align-items: center; flex-wrap: wrap; gap: 12px; margin-top: 6px; }
.survey-actions .button { min-height: 40px; padding: 9px 14px; border-radius: 3px; font: inherit; }
.conversation-survey .survey-actions .button.survey-cancel, .conversation-survey .survey-actions .button.survey-skip { border: 1px solid transparent; color: #252321; background: transparent; }
.survey-actions .survey-skip { margin-right: auto; color: #006a86; }
.conversation-survey .survey-actions .button.survey-start { border: 1px solid #312e2b; color: #fff; background: #312e2b; }
.conversation-survey .survey-actions .button.survey-start:hover:not(:disabled) { background: #49443e; }
.survey-actions .button:focus-visible { outline: 2px solid #00758f; outline-offset: 3px; }
.survey-actions .button:disabled { cursor: wait; opacity: 0.65; }
.conversation-survey [hidden] { display: none !important; }
@media (max-width: 560px) {
  .conversation-survey { padding: 24px 20px; }
  .survey-confidence { flex-wrap: wrap; gap: 8px; }
  .survey-scale { gap: 6px; }
  .survey-choice > span { min-width: 40px; }
  .survey-star > span { min-width: 32px; }
  .survey-actions { gap: 8px; }
}
