.tool-fixes-that-fail { font-family: var(--serif); color: var(--ink); }
.tool-fixes-that-fail *, .tool-fixes-that-fail *::before, .tool-fixes-that-fail *::after { box-sizing: border-box; }
.tool-fixes-that-fail .ff-toy { margin: 0 0 .6rem; font: .75rem var(--mono); text-transform: uppercase; letter-spacing: .06em; color: var(--accent); }
.tool-fixes-that-fail .ff-frame { border: 1.5px solid var(--ink); background: var(--paper); line-height: 0; }
.tool-fixes-that-fail canvas { display: block; width: 100%; height: auto; aspect-ratio: 640 / 280; }
.tool-fixes-that-fail .ff-legend { list-style: none; margin: .6rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: .3rem 1.2rem; font: .8rem var(--mono); }
.tool-fixes-that-fail .ff-legend li { display: flex; align-items: center; gap: .45rem; color: var(--ink-2); }
.tool-fixes-that-fail .ff-legend li::before { content: ""; display: inline-block; width: 26px; height: 0; border-top: 3px solid var(--accent); }
.tool-fixes-that-fail .ff-legend .ff-l-side::before { border-top: 2px dashed var(--ink-2); }
.tool-fixes-that-fail .ff-legend .ff-l-none::before { border-top: 2px dotted var(--muted); }
.tool-fixes-that-fail .ff-caption { margin: .8rem 0 .2rem; padding: .7rem .9rem; border-left: 4px solid var(--accent); background: var(--paper-2); font-size: 1rem; line-height: 1.5; min-height: 5.2em; }
.tool-fixes-that-fail .ff-readout { margin: .3rem 0 .8rem; font: .8rem var(--mono); color: var(--muted); }
.tool-fixes-that-fail .ff-controls { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1rem; }
.tool-fixes-that-fail .ff-btn {
  font: .9rem var(--mono); min-height: 44px; padding: .5rem 1rem; color: var(--ink);
  background: var(--paper); border: 1.5px solid var(--ink); border-radius: 3px; cursor: pointer;
  transition: transform .08s, background .15s;
}
.tool-fixes-that-fail .ff-btn:hover { background: var(--paper-3); }
.tool-fixes-that-fail .ff-btn:active { transform: translateY(2px); }
.tool-fixes-that-fail .ff-btn:focus-visible, .tool-fixes-that-fail input:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.tool-fixes-that-fail .ff-fix { background: var(--accent); border-color: var(--accent); color: var(--paper); font-weight: 700; flex: 1 1 160px; }
.tool-fixes-that-fail .ff-fix:hover { background: var(--accent); filter: brightness(1.1); }
.tool-fixes-that-fail .ff-cause { flex: 1 1 160px; }
.tool-fixes-that-fail .ff-sliders { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem 1.4rem; }
@media (max-width: 560px) { .tool-fixes-that-fail .ff-sliders { grid-template-columns: 1fr; } }
.tool-fixes-that-fail .ff-slider { display: flex; flex-direction: column; gap: .25rem; }
.tool-fixes-that-fail .ff-sl-label { display: flex; justify-content: space-between; gap: .5rem; font-weight: 600; font-size: .95rem; }
.tool-fixes-that-fail .ff-sl-out { font: .85rem var(--mono); color: var(--accent); }
.tool-fixes-that-fail input[type=range] { width: 100%; accent-color: var(--accent); min-height: 28px; margin: 0; }
.tool-fixes-that-fail .ff-sl-hint { font-size: .8rem; color: var(--muted); font-style: italic; }
.tool-fixes-that-fail .ff-course { margin: 1rem 0 0; font-size: .85rem; color: var(--muted); font-style: italic; }
@media (prefers-reduced-motion: reduce) {
  .tool-fixes-that-fail * { transition: none !important; }
}
