/* Проверка техники чтения (/tools/tekhnika-chteniya) */
.tc-app { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 28px; max-width: 1180px; margin: 0 auto 56px; padding: 0 var(--lv-pad-x, 20px); box-sizing: border-box; }
.tc-side { align-self: start; position: sticky; top: 16px; }
.tc-grades { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; margin-bottom: 10px; }
.tc-grade {
    appearance: none; padding: 8px 4px; border: 1px solid #d6cfc2; border-radius: 6px; background: #fffdf8;
    font: 600 13px/1.2 'Inter', sans-serif; color: #3b3631; cursor: pointer;
}
.tc-grade.is-active { background: #1b1b18; border-color: #1b1b18; color: #fff; }
.tc-list { list-style: none; margin: 0; padding: 0; max-height: 62vh; overflow: auto; border: 1px solid #e3ddd1; border-radius: 8px; background: #fffdf8; }
.tc-list[hidden] { display: none; }
.tc-item {
    appearance: none; width: 100%; display: flex; justify-content: space-between; align-items: baseline; gap: 10px;
    padding: 9px 12px; border: 0; border-bottom: 1px solid #efe9de; background: none; text-align: left; cursor: pointer;
    font: 500 15px/1.3 'Inter', sans-serif; color: #1b1b18;
}
.tc-list li:last-child .tc-item { border-bottom: 0; }
.tc-item small { flex: none; font-size: 12px; color: #8a8175; font-variant-numeric: tabular-nums; }
.tc-item:hover { background: #f6f1e7; }
.tc-item.is-active { background: #fff3bf; }
.tc-hint { margin: 10px 2px 0; font: 400 13px/1.45 'Inter', sans-serif; color: #6b6457; }

.tc-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.tc-modes { display: flex; flex-wrap: wrap; gap: 8px; }
.tc-modes [hidden] { display: none; }
.tc-err-btn b { margin-left: 4px; font-variant-numeric: tabular-nums; }
.tc-clock { font: 700 38px/1 'Inter', sans-serif; font-variant-numeric: tabular-nums; color: #b5ab9c; min-width: 100px; text-align: right; }
.tc-clock.is-run { color: #1b1b18; }
.tc-clock.is-end { color: #c92a2a; animation: tc-blink .5s 3; }
@keyframes tc-blink { 50% { opacity: .2; } }
.tc-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin: 12px 0 0; font: 400 14px 'Inter', sans-serif; color: #3b3631; }
.tc-tools select { font: inherit; padding: 4px 6px; border: 1px solid #d6cfc2; border-radius: 6px; background: #fff; }
.tc-font { display: inline-flex; gap: 4px; }
.tc-note { margin: 14px 0 0; padding: 10px 14px; border-left: 3px solid #e8590c; background: #fff4e6; font: 500 15px/1.4 'Inter', sans-serif; color: #3b3631; }
.tc-note[hidden] { display: none; }

.tc-text {
    --tc-size: 21px;
    margin-top: 16px; padding: 26px 30px 30px; border: 1px solid #e3ddd1; border-radius: 10px; background: #fffdf8;
    scroll-margin-top: 12px;
}
.tc-title { margin: 0; font-size: 30px; line-height: 1.15; }
.tc-author { margin: 6px 0 18px; font: 400 14px 'Inter', sans-serif; color: #6b6457; }
#tc-body p { margin: 0 0 .7em; font: 400 var(--tc-size)/1.6 Georgia, 'PT Serif', serif; color: #1b1b18; text-indent: 1.4em; }
.tc-count { font: 500 .62em 'Inter', sans-serif; color: #a39a8c; white-space: nowrap; }
.tc-w { border-radius: 3px; }
.tc-w.is-read { color: #2b8a3e; }
.tc-w.is-last { background: #63e6be; box-shadow: 0 0 0 2px #63e6be; }
.tc-text.is-pick .tc-w { cursor: pointer; }
.tc-text.is-pick .tc-w:hover { background: #ffe066; }

.tc-result { margin-top: 18px; padding: 20px 24px; border: 2px solid #1b1b18; border-radius: 10px; background: #fff; }
.tc-result[hidden] { display: none; }
.tc-res-big { display: flex; align-items: baseline; gap: 10px; }
.tc-res-big b { font: 800 54px/1 'Inter', sans-serif; font-variant-numeric: tabular-nums; }
.tc-res-big span { font: 500 18px 'Inter', sans-serif; color: #3b3631; }
.tc-res-big.is-ok b { color: #2b8a3e; }
.tc-res-big.is-low b { color: #e8590c; }
.tc-res-big.is-high b { color: #1971c2; }
.tc-res-line { margin: 8px 0 0; font: 400 14px/1.45 'Inter', sans-serif; color: #6b6457; }
.tc-res-verdict { margin: 8px 0 0; font: 500 16px/1.45 'Inter', sans-serif; color: #1b1b18; }
.tc-hist { margin-top: 12px; font: 400 14px/1.5 'Inter', sans-serif; color: #3b3631; }
.tc-hist summary { cursor: pointer; color: #6b6457; }
.tc-hist ul { margin: 6px 0 0; padding-left: 18px; }

.tc-norms { border-collapse: collapse; margin: 12px 0 16px; font: 400 15px 'Inter', sans-serif; }
.tc-norms th, .tc-norms td { padding: 7px 16px 7px 0; border-bottom: 1px solid #e3ddd1; text-align: left; }
.tc-norms thead th { font-size: 13px; color: #6b6457; font-weight: 600; }

@media (max-width: 860px) {
    .tc-app { grid-template-columns: 1fr; gap: 18px; }
    .tc-side { position: static; }
    .tc-list { max-height: 260px; }
    .tc-text { padding: 18px 16px 20px; }
    .tc-clock { font-size: 30px; }
}

@media print {
    body * { visibility: hidden; }
    .tc-text, .tc-text * { visibility: visible; }
    .tc-text { position: absolute; left: 0; top: 0; width: 100%; border: 0; padding: 0; --tc-size: 15pt; }
    .tc-w.is-read, .tc-w.is-last { background: none; box-shadow: none; }
}
