.mistake-toolbar-actions { display:flex; flex:none; flex-wrap:wrap; gap:9px; }
.mistake-toolbar-actions button { min-height:40px; white-space:nowrap; }
.mistake-editor { margin:0 0 18px; padding:22px; border:1px solid #31515c; border-top:2px solid var(--accent); border-radius:2px 12px 2px 2px; background:#0c191f; scroll-margin-top:18px; }
.mistake-editor[hidden] { display:none; }
.mistake-editor-head { display:flex; align-items:start; justify-content:space-between; gap:18px; margin-bottom:20px; }
.mistake-editor-head .eyebrow { margin:0 0 4px; }
.mistake-editor-head h3 { margin:0; color:#edf5f6; font-size:1.28rem; }
.mistake-editor-fields { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:17px; }
.mistake-editor-fields label { display:grid; align-content:start; gap:8px; min-width:0; color:#d4e3e7; font-size:.86rem; font-weight:700; }
.mistake-editor-fields .mistake-editor-wide { grid-column:1/-1; }
.mistake-editor-fields em,.mistake-editor-fields label span { color:#7dabb8; font-size:.72rem; font-style:normal; font-weight:500; }
.mistake-editor-fields em { color:#f29a91; }
.mistake-editor-fields input,.mistake-editor-fields textarea { width:100%; min-width:0; padding:11px 13px; border:1px solid #33505a; border-radius:8px; background:#081419; color:#edf5f6; font:inherit; font-weight:400; line-height:1.6; resize:vertical; }
.mistake-editor-fields input { min-height:46px; }
.mistake-editor-fields input:focus-visible,.mistake-editor-fields textarea:focus-visible { outline:2px solid var(--accent); outline-offset:2px; }
.mistake-editor-fields input::placeholder,.mistake-editor-fields textarea::placeholder { color:#758f99; }
.mistake-options-field { display:grid; gap:9px; min-width:0; }
.mistake-options-head { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:10px; }
.mistake-options-head strong { color:#d4e3e7; font-size:.86rem; }
.mistake-options-head span { color:#7dabb8; font-size:.72rem; font-weight:500; }
.mistake-options-head button { min-height:38px; }
.mistake-options-head button:disabled { opacity:.5; cursor:not-allowed; }
.mistake-option-count { margin:0; color:#8faab3; font-size:.76rem; }
.mistake-option-list { display:grid; gap:8px; }
.mistake-option-row { display:grid; grid-template-columns:82px minmax(0,1fr) auto; align-items:end; gap:9px; padding:10px; border:1px solid #28414a; border-radius:8px; background:#0a171c; }
.mistake-option-row label { gap:4px; font-size:.72rem; }
.mistake-option-row input { min-height:42px; padding:7px 9px; }
.mistake-option-row button { min-height:42px; padding:7px 10px; }
.mistake-editor-message { min-height:1.5em; margin:14px 0 0; color:#f0b2a7; font-size:.8rem; }
.mistake-editor-actions { display:flex; justify-content:flex-end; flex-wrap:wrap; gap:10px; margin-top:8px; }
.mistake-editor-actions button { min-height:42px; min-width:110px; }
.mistake-editor-actions button:disabled { opacity:.55; cursor:wait; }
.mistake-detail-question { white-space:pre-wrap; }
.mistake-card-options { margin:8px 0 12px; overflow-wrap:anywhere; }
.mistake-card-options strong { color:#dce7ea; }
.mistake-card-options ol { display:grid; gap:4px; margin:6px 0 0; padding:0; list-style:none; }
.mistake-card-options b { color:#64cfe5; }
html[data-theme="day"] .mistake-editor { border-color:#c4dce5; border-top-color:var(--accent); background:#fff; }
html[data-theme="day"] .mistake-editor-head h3,html[data-theme="day"] .mistake-editor-fields label,html[data-theme="day"] .mistake-options-head strong,html[data-theme="day"] .mistake-card-options strong { color:#173b4b; }
html[data-theme="day"] .mistake-editor-fields input,html[data-theme="day"] .mistake-editor-fields textarea { border-color:#bcd5df !important; background:#fff !important; color:#173b4b !important; }
html[data-theme="day"] .mistake-editor-fields input::placeholder,html[data-theme="day"] .mistake-editor-fields textarea::placeholder { color:#76919b; }
html[data-theme="day"] .mistake-option-row { border-color:#d1e2e8; background:#f4f9fb; }
html[data-theme="day"] .mistake-option-count { color:#5b7582; }
html[data-theme="day"] .mistake-card-options b { color:#087da2; }
@media (max-width:760px) {
  .mistake-toolbar-actions { width:100%; display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); }
  .mistake-toolbar-actions button { width:100%; padding:9px; white-space:normal; }
  .mistake-editor { padding:17px; }
  .mistake-editor-fields { grid-template-columns:1fr; }
  .mistake-editor-fields .mistake-editor-wide { grid-column:auto; }
  .mistake-option-row { grid-template-columns:58px minmax(0,1fr) auto; gap:6px; padding:8px; }
  .mistake-option-row button { padding:7px; }
  .mistake-editor-actions button { flex:1; }
}
