.step-content-preview{min-width:0;max-width:100%;color:var(--ink);font-size:15px;line-height:1.65;overflow-wrap:anywhere}
.step-content-image,.step-content-diagram{display:block;max-width:100%;max-height:600px;width:auto;height:auto;object-fit:contain;margin:12px 0}
.step-content-preview p{margin:0 0 12px;white-space:normal}
.step-content-preview>:last-child{margin-bottom:0}
.step-content-preview h2,.step-content-preview h3,.step-content-preview h4,.step-content-preview h5,.step-content-preview h6{margin:12px 0 8px;font-size:1.08em;line-height:1.4}
.step-content-preview ul,.step-content-preview ol{margin:6px 0 12px;padding-left:26px}
.step-content-preview li{margin:3px 0}
.step-content-preview blockquote{margin:10px 0;border-left:3px solid var(--line-strong);padding:4px 12px;color:var(--muted)}
.step-content-preview pre{overflow-x:auto;max-width:100%;margin:10px 0;padding:12px;background:var(--surface-muted);border:1px solid var(--line);border-radius:8px;font-size:13px;line-height:1.5;white-space:pre}
.step-content-preview code{font-family:ui-monospace,Consolas,monospace;background:var(--surface-muted);border-radius:4px;padding:1px 4px;white-space:pre-wrap}
.step-content-preview pre code{padding:0;white-space:pre;background:none}
.step-content-preview math{font-size:1.12em;vertical-align:baseline;max-width:100%}
/* The vendor stylesheet owns mathematical layout, including exponent offsets. */
.step-content-math{display:inline;white-space:normal}
.step-content-math-error{color:var(--sw-red,var(--danger,#b42318))}
/* Shared italic correction; no global tracking, font or line-height changes. */
.step-content-preview em.step-italic-clearance,#step-workspace .sw-document em.step-italic-clearance{padding-inline-end:.1em}
.step-preview-math-block{display:block;overflow-x:auto;margin:12px 0;text-align:center}
.step-preview-answer{display:inline-block;vertical-align:baseline;min-width:76px;padding:0 9px;border-bottom:1px solid var(--line-strong);color:var(--muted);font-size:12px;text-align:center;line-height:1.65;background:var(--surface-muted);border-radius:4px 4px 0 0;white-space:nowrap}
.step-preview-choice{display:block;margin:8px 0}
.step-preview-answer-block{display:block;margin:8px 0}
.step-preview-answer-block>strong{font-size:.95em;font-weight:550}
.step-preview-choice ol{list-style-type:upper-alpha}
.step-preview-choice ol.step-preview-ordering{list-style-type:decimal}
.step-preview-matching{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin-top:6px}
.step-preview-matching>span{min-width:0}
.step-preview-matching small{font-size:12px;color:var(--muted)}
.step-preview-matching ul{padding-left:20px;margin-bottom:0}
.step-preview-answer-grid{display:block;margin-top:8px}
.step-preview-answer-grid table{min-width:180px}
.step-preview-answer-grid td{min-width:36px;height:30px;padding:4px 6px}
.step-preview-answer-grid .step-preview-check-cell{text-align:center;vertical-align:middle}
.step-preview-answer-grid .step-preview-grid-check{display:inline-block;width:17px;height:17px;min-width:17px;margin:0;vertical-align:middle}
.step-preview-grid-blank{display:block;min-width:22px;min-height:15px;border-bottom:1px solid var(--line-strong)}
.step-preview-table{overflow-x:auto;max-width:100%;margin:10px 0}
.step-preview-table table{border-collapse:collapse;min-width:180px;max-width:100%;font-size:14px}
.step-preview-table th,.step-preview-table td{border:1px solid var(--line);padding:6px 9px;text-align:left;vertical-align:top}
.step-preview-table th{background:var(--surface-muted);font-weight:600}
.step-content-rich-table .step-content-preview p:last-child{margin-bottom:0}
.step-content-preview details{border:1px solid var(--line);border-radius:8px;padding:8px 10px;margin:10px 0;color:var(--muted)}
.step-content-preview summary{font-size:13px;margin:0;cursor:pointer}
.step-content-preview details[open]>div{margin-top:8px}
