.pilot-feedback {
  box-sizing: border-box; width: min(560px, calc(100% - 32px)); max-width: 560px;
  max-height: calc(100dvh - 32px); overflow: auto; margin: auto; padding: 32px;
  border: 1px solid var(--line); border-radius: 20px; color: var(--ink);
  background: var(--panel, var(--bg)); font-family: inherit;
  box-shadow: 0 24px 80px rgba(0,0,0,.2);
}
.pilot-feedback::backdrop { background: rgba(14,27,46,.48); backdrop-filter: blur(5px); }
.pilot-feedback .pilot-heading { margin-bottom: 24px; }
.pilot-feedback h2 { margin: 0 0 8px; font-size: 26px; line-height: 1.2; letter-spacing: -.7px; font-weight: 650; }
.pilot-feedback p { margin: 0 0 20px; color: var(--muted); font-size: 14px; line-height: 1.5; }
.pilot-feedback .pilot-heading p { margin: 0; }
.pilot-feedback .pilot-ratings { border-top: 1px solid var(--line); margin-bottom: 24px; }
.pilot-feedback fieldset { display: flex; align-items: center; justify-content: space-between; gap: 16px; border: 0; border-bottom: 1px solid var(--line); padding: 14px 0; margin: 0; min-width: 0; }
.pilot-feedback .pilot-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.pilot-feedback .pilot-criterion { display: grid; gap: 4px; }
.pilot-feedback .pilot-criterion strong { font-size: 14px; font-weight: 650; }
.pilot-feedback .pilot-criterion > span { font-size: 12px; color: var(--muted); }
.pilot-feedback .pilot-scale { width: 230px; flex-shrink: 0; }
.pilot-feedback .pilot-options { display: grid; grid-template-columns: repeat(5,1fr); gap: 3px; }
.pilot-feedback .pilot-option { position: relative; }
.pilot-feedback input[type=radio] { position: absolute; inset: 0; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.pilot-feedback .pilot-option span { display: grid; place-items: center; height: 44px; box-sizing: border-box; border: 1px solid var(--line); border-radius: 7px; font-size: 14px; font-weight: 600; transition: border-color .15s; }
.pilot-feedback input:checked + span { background: var(--blue); border-color: var(--blue); color: var(--on-primary, #fff); }
html[data-thm="dark"] .pilot-feedback input:checked + span { color: var(--bg); }
.pilot-feedback input:focus-visible + span { outline: 2px solid var(--blue); outline-offset: 2px; }
.pilot-feedback input:hover + span { border-color: var(--blue); }
.pilot-feedback .pilot-ends { display: flex; justify-content: space-between; margin-top: 5px; font-size: 11px; line-height: 1.3; color: var(--muted); }
.pilot-feedback label[for=pilot-comment] { display: block; font-size: 14px; font-weight: 650; margin-bottom: 10px; }
.pilot-feedback .pilot-compose { border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.pilot-feedback .pilot-compose:focus-within { border-color: var(--blue); box-shadow: 0 0 0 1px var(--blue); }
.pilot-feedback textarea { display: block; width: 100%; min-height: 76px; padding: 12px 14px 4px; box-sizing: border-box; resize: vertical; margin: 0; border: 0; border-radius: 0; background: transparent; color: var(--ink); font: inherit; font-size: 14px; line-height: 1.5; outline: none; box-shadow: none; }
.pilot-feedback textarea::placeholder { color: var(--muted); opacity: 1; }
.pilot-feedback .pilot-tools { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 0 12px 4px; min-height: 44px; }
.pilot-feedback #pilot-mic { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0; color: var(--blue); background: none; border: 0; font: inherit; font-size: 12px; font-weight: 600; cursor: pointer; }
.pilot-feedback #pilot-mic[hidden] { display: none; }
.pilot-feedback .pilot-count { margin-left: auto; font-size: 11px; color: var(--muted); }
.pilot-feedback .pilot-error { color: var(--bad); font-size: 13px; line-height: 1.5; }
.pilot-feedback .pilot-error:not(:empty) { margin-top: 12px; }
.pilot-feedback .pilot-send { display: flex; justify-content: space-between; align-items: center; width: 100%; min-height: 48px; margin-top: 20px; padding: 0 16px; border-radius: 9px; font-size: 14px; }
html[data-thm="dark"] .pilot-feedback .pilot-send { color: var(--bg); background: var(--blue); }
.pilot-feedback button:disabled { opacity: .65; cursor: wait; }
.pilot-feedback .pilot-skip { display: block; width: 100%; min-height: 44px; margin-top: 6px; padding: 0; background: none; border: 0; color: var(--muted); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; border-radius: 9px; }
.pilot-feedback .pilot-skip:hover { color: var(--ink); }
.pilot-feedback .pilot-skip:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
@media(max-width:540px) {
 .pilot-feedback { padding: 24px; }
 .pilot-feedback h2 { font-size: 24px; }
 .pilot-feedback fieldset { display: block; padding: 12px 0; }
 .pilot-feedback .pilot-criterion { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
 .pilot-feedback .pilot-scale { width: 100%; }
 .pilot-feedback .pilot-heading { margin-bottom: 18px; }
 .pilot-feedback .pilot-ratings { margin-bottom: 18px; }
}
@media(prefers-reduced-motion:reduce) { .pilot-feedback .pilot-option span { transition: none; } }
