.action-feedback-sheet {
  --feedback-accent: #bda26c;
  box-sizing: border-box;
  position: fixed;
  inset: auto 0 0;
  width: min(100%, 640px);
  max-width: 100%;
  max-height: min(82dvh, 780px);
  margin: 0 auto;
  padding: 16px 22px max(18px, env(safe-area-inset-bottom));
  border: 1px solid #444640;
  border-top: 3px solid var(--feedback-accent);
  border-radius: 22px 22px 0 0;
  background: #121512;
  color: #f0eee7;
  box-shadow: 0 -12px 60px #0009;
  font-family: inherit;
  overflow: hidden;
}
.action-feedback-sheet[open] { display: flex; flex-direction: column; animation: feedback-slide-up 220ms ease-out; }
.action-feedback-sheet::backdrop { background: #0007; }
.action-feedback-sheet[data-verdict="correct"] { --feedback-accent: #73bb91; }
.action-feedback-sheet[data-verdict="warning"] { --feedback-accent: #dfb965; }
.action-feedback-sheet[data-verdict="error"] { --feedback-accent: #d7767d; }
.action-feedback-sheet * { box-sizing: border-box; }
.feedback-handle { flex: 0 0 4px; width: 36px; margin: -5px auto 16px; border-radius: 10px; background: #62665e; }
.feedback-heading { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex: 0 0 auto; }
.feedback-eyebrow { color: #a9afa4; margin: 0 0 6px; font-size: 12px; }
.feedback-heading h2 { font-size: 24px; line-height: 1.25; margin: 0; color: var(--feedback-accent); }
.feedback-score { font-size: 38px; font-weight: 700; color: var(--feedback-accent); white-space: nowrap; font-variant-numeric: tabular-nums; }
.feedback-score small { font-size: 13px; color: #9fa399; margin-left: 3px; }
.feedback-scroll { overflow-y: auto; overscroll-behavior: contain; min-height: 0; padding: 6px 0; scrollbar-width: thin; }
.feedback-context { color: #aeb5a9; font-size: 12px; line-height: 1.7; margin: 8px 0 14px; }
.feedback-comparison { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 0; padding: 14px 0; border-block: 1px solid #343a32; }
.feedback-comparison dt { color: #aab1a5; font-size: 12px; margin-bottom: 8px; }
.feedback-comparison dd { margin: 0; color: #f0eee7; font-size: 17px; line-height: 1.4; overflow-wrap: anywhere; }
.feedback-verdicts { display: flex; flex-wrap: wrap; gap: 7px 16px; color: var(--feedback-accent); font-size: 12px; margin: 14px 0; }
.feedback-scroll h3 { font-size: 14px; margin: 14px 0 8px; color: #ecefe7; }
.feedback-reasons { margin: 0; padding-left: 20px; color: #c5cbc1; font-size: 13px; line-height: 1.75; }
.feedback-reasons li + li { margin-top: 6px; }
.feedback-takeaway { font-size: 13px; line-height: 1.7; border-left: 2px solid var(--feedback-accent); padding: 6px 12px; color: #eee9dc; }
.feedback-record-status { color: #c6b48c; font-size: 12px; line-height: 1.6; }
.feedback-disclaimer, .feedback-pause-note { color: #939b8e; font-size: 11px; line-height: 1.7; margin: 8px 0; }
.feedback-footer { flex: 0 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding-top: 12px; border-top: 1px solid #343a32; }
.action-feedback-sheet button, .mistake-practice-bar button { min-height: 44px; border: 1px solid #555d50; border-radius: 9px; padding: 10px 16px; color: #ecefe7; background: #22291f; font: inherit; font-size: 13px; cursor: pointer; }
.action-feedback-sheet button:disabled { cursor: wait; opacity: .45; }
.action-feedback-sheet button:focus-visible, .mistake-practice-bar button:focus-visible { outline: 2px solid #e8c77d; outline-offset: 3px; }
.action-feedback-sheet .feedback-primary { background: #d4bc83; border-color: #d4bc83; color: #171a14; font-weight: 700; }
.action-feedback-sheet .feedback-text-button { grid-column: 1 / -1; min-height: 32px; border: 0; padding: 4px; background: none; color: #c8b88d; }
.feedback-pause-note { grid-column: 1 / -1; margin: -3px 0 0; text-align: center; }
.mistake-filters { display: flex; gap: 8px; margin: 14px 0 8px; }
.mistake-filters button[aria-pressed="true"] { border-color: #bda26c; color: #e1ca98; }
.mistake-entry { padding: 18px 0; border-top: 1px solid #343a32; }
.mistake-entry header, .mistake-entry footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.mistake-entry strong { font-size: 14px; }
.mistake-entry p { color: #bac3b3; font-size: 13px; line-height: 1.65; margin: 8px 0; }
.mistake-entry header span, .mistake-entry small { color: #bba77b; font-size: 11px; white-space: nowrap; }
.mistake-empty { padding: 38px 12px; color: #aeb5a9; text-align: center; font-size: 14px; line-height: 1.8; }
.mistake-practice-bar:not([hidden]) { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; width: 100%; padding: 8px 0; color: #d8c38f; font-size: 12px; }
.mistake-practice-bar button { min-height: 36px; padding: 6px 12px; }
@keyframes feedback-slide-up { from { transform: translateY(48px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
@media (max-width: 680px) { .action-feedback-sheet { padding-inline: 16px; max-height: 84dvh; } .feedback-heading h2 { font-size: 22px; } .feedback-scroll { padding-top: 4px; } }
@media (prefers-reduced-motion: reduce) { .action-feedback-sheet[open] { animation: none; } }
