/* schemes-20261112: «Схема по смыслу» v2 */
.mx-sc-box { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; margin: 10px 0 18px; min-width: 0; }
.mx-sc-box > * { min-width: 0; overflow-wrap: anywhere; }
.mx-sc { border: 1px solid var(--line, #e3e6e1); border-radius: 14px; padding: 14px 16px; background: var(--panel, #fff); }
.mx-sc header { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 12px; margin-bottom: 10px; }
.mx-sc header h4 { margin: 0; font-size: 17px; line-height: 1.3; flex: 1 1 220px; }
.mx-sc-kind { font-size: 12px; font-weight: 600; letter-spacing: .02em; text-transform: uppercase; color: var(--primary, #2457d6); background: var(--primary-soft, #eef3ff); border-radius: 999px; padding: 2px 10px; }
.mx-sc-t { display: inline-block; min-height: 0 !important; min-width: 0 !important; height: auto !important; width: auto !important; line-height: 1.5 !important; box-shadow: none !important; font: inherit; font-size: 12px; color: var(--muted, #5b6474); background: none; border: 1px solid var(--line, #e3e6e1); border-radius: 999px; padding: 1px 8px; cursor: pointer; margin-left: 6px; white-space: nowrap; }
.mx-sc-t:hover, .mx-sc-t:focus-visible { color: var(--text, #10192e); border-color: currentColor; }
.mx-sc-item { display: inline; line-height: 1.6; }
.mx-sc-steps { counter-reset: s; list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.mx-sc-steps > li { counter-increment: s; position: relative; padding: 8px 10px 8px 40px; border-radius: 10px; background: var(--bg-soft, #f6f8fb); }
.mx-sc-steps > li::before { content: counter(s); position: absolute; left: 10px; top: 8px; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 700; color: #fff; background: var(--primary, #2457d6); }
.mx-sc-steps > li:not(:last-child)::after { content: '↓'; position: absolute; left: 16px; bottom: -14px; font-size: 12px; color: var(--muted, #5b6474); }
.mx-sc-timeline { list-style: none; margin: 0; padding: 0 0 0 16px; border-left: 2px solid var(--primary, #2457d6); display: grid; gap: 10px; }
.mx-sc-timeline > li { position: relative; padding-left: 10px; }
.mx-sc-timeline > li::before { content: ''; position: absolute; left: -22px; top: 7px; width: 10px; height: 10px; border-radius: 50%; background: var(--primary, #2457d6); }
.mx-sc-date { margin-right: 8px; }
.mx-sc-tree, .mx-sc-tree ul { list-style: none; margin: 0; padding-left: 18px; }
.mx-sc-tree { padding-left: 0; }
.mx-sc-tree li { position: relative; padding: 3px 0 3px 14px; }
.mx-sc-tree ul li::before { content: ''; position: absolute; left: 0; top: 14px; width: 9px; border-top: 1px solid var(--muted, #8a93a3); }
.mx-sc-tree ul { border-left: 1px solid var(--muted, #8a93a3); margin-left: 6px; }
.mx-sc-tablewrap { overflow-x: auto; }
.mx-sc-table { border-collapse: collapse; width: 100%; min-width: 440px; font-size: 14px; overflow-wrap: normal; }
.mx-sc-table th, .mx-sc-table td { border: 1px solid var(--line, #e3e6e1); padding: 6px 8px; text-align: left; vertical-align: top; }
.mx-sc-table thead th { background: var(--bg-soft, #f6f8fb); }
.mx-sc-causes, .mx-sc-chips { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.mx-sc-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.mx-sc-chips > li { border: 1px solid var(--line, #e3e6e1); border-radius: 999px; padding: 3px 4px 3px 12px; }
.mx-sc-cause { font-weight: 600; }
.mx-sc-arrow { color: var(--primary, #2457d6); font-weight: 700; }
html[data-theme="dark"] .mx-sc { background: rgba(255,255,255,.03); }
html[data-theme="dark"] .mx-sc-steps > li { background: rgba(255,255,255,.05); }

/* record-20261114 (owner item 3): the replica a scheme quote points to, highlighted in «Текст» */
#diarization .speaker.mx-quote-hit { background: var(--primary-soft, #eef3ff); box-shadow: 0 0 0 2px var(--primary, #2457d6); border-radius: 6px; transition: background .3s, box-shadow .3s; }
#diarization .speaker.mx-quote-hit:focus { outline: none; }
@media (prefers-reduced-motion: reduce) { #diarization .speaker.mx-quote-hit { transition: none; } }
/* record-20261114-r4: «⏰ Сроки» badge (Library card + record title); a quiet pill, hover lists the dates */
.mx-deadline-badge { display: inline-flex; align-items: center; gap: 4px; min-height: 0 !important; height: auto !important; width: auto !important; margin: 4px 0 4px 8px; padding: 2px 10px !important; border-radius: 999px; border: 1px solid color-mix(in srgb, #f59e0b 40%, transparent); background: color-mix(in srgb, #f59e0b 12%, var(--panel, #fff)); color: var(--text, #10192e); font: inherit; font-size: 12.5px; line-height: 1.5 !important; cursor: pointer; box-shadow: none !important; vertical-align: middle; }
.mx-deadline-badge:hover, .mx-deadline-badge:focus-visible { border-color: #b45309; }
.mx-raw-link { font-size: 13px; margin: 2px 0 8px; }
/* record-20261115-r2: «Визуализация» draws — one figure per drawing (SVG scales to the column), downloads, quotes folded */
.mx-vis { margin: 14px 0 22px; padding: 0; background: #fff; border: 1px solid #dde3ee; border-radius: 14px; overflow: hidden; }
.mx-vis-title { padding: 12px 14px 4px; font-weight: 700; font-size: 1.02rem; color: #10192e; }
.mx-vis-svg svg { display: block; width: 100%; height: auto; }
.mx-vis-actions { display: flex; flex-wrap: wrap; gap: 8px; padding: 4px 14px 8px; }
.mx-vis-actions .mx-vis-dl { min-height: 36px; padding: 6px 12px; font-size: .9rem; }
.mx-vis-src { padding: 0 14px 12px; color: #5b6680; font-size: .9rem; }
.mx-vis-src summary { cursor: pointer; padding: 6px 0; }
.mx-vis-src p { margin: 6px 0; line-height: 1.4; }
.mx-vis-src .mx-sc-t { margin-right: 6px; }
@media (prefers-color-scheme: dark) { .mx-vis { border-color: #2b3448; } }
/* record-20261115-r2: «Исправить ошибки распознавания» — corrected words: a quiet dotted underline, hover shows what was recognised */
.mx-fix-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 6px 0 10px; }
.mx-fix-bar .mx-fix-btn, .mx-fix-bar .mx-fix-resum { min-height: 34px; padding: 5px 12px; font-size: .9rem; }
.mx-fix-note { flex-basis: 100%; margin: 0; font-size: .88rem; }
.mx-fix-note:empty { display: none; }
.mx-w.mx-fix { text-decoration: underline dotted #2457d6; text-underline-offset: 3px; text-decoration-thickness: 1.5px; cursor: help; }
/* record-20261115-r2: in a Library card the «⏰ Сроки» pill spans the card row on one line (it was squeezed into the icon column) */
.history-item .mx-deadline-badge { grid-column: 1 / -1; justify-self: start; align-self: start; white-space: nowrap; min-width: max-content !important; max-width: max-content; flex: 0 0 auto; aspect-ratio: auto !important; }
/* record-20261116-r1: the «Формулы и термины» switch is not on the required path any more (formulas/terms are automatic) */
#tab-full .mx-sci-bar { display: none !important; }
.mx-w.mx-unsure { background: color-mix(in srgb, #f59e0b 16%, transparent); border-radius: 3px; cursor: help; }
