.th-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0; }
.th-tabs button { padding: 6px 10px; border-radius: 6px; border: 1px solid #2c333b; background: transparent; color: inherit; cursor: pointer; font-size: 13px; }
.th-tabs button.on { background: #1f6feb; border-color: #1f6feb; color: #fff; }
.th-grid { display: grid; grid-template-columns: minmax(280px, 1fr) minmax(320px, 1.2fr); gap: 12px; }
.th-form { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 8px; margin-bottom: 10px; }
.th-f { display: flex; flex-direction: column; gap: 3px; font-size: 12.5px; } .th-f.th-chk { flex-direction: row; align-items: center; } .th-f.th-wide { grid-column: 1 / -1; }
.th-f input.bad { outline: 2px solid #e04848; }
.th-tab { width: 100%; border-collapse: collapse; font-size: 12.5px; margin: 6px 0; } .th-tab th, .th-tab td { border-bottom: 1px solid #2c333b; padding: 4px 6px; text-align: left; vertical-align: top; }
.th-tab tr.th-bad td { color: #e69500; } .th-scroll { overflow-x: auto; }
.th-res { padding: 8px 10px; border-radius: 6px; margin: 6px 0; border-left: 5px solid #1a9b3c; background: rgba(26, 155, 60, .1); }
.th-res.warn { border-left-color: #e69500; background: rgba(230, 149, 0, .1); } .th-res.bad { border-left-color: #e04848; background: rgba(224, 72, 72, .12); }
.th-pat { width: 100%; max-height: 260px; background: #0d1117; border-radius: 6px; } .th-pat path { fill: none; stroke-width: 2.5; vector-effect: non-scaling-stroke; } .th-pat .cut { stroke: #4fc3f7; } .th-pat .bend { stroke: #e69500; stroke-dasharray: 6 4; }
.th-bal { width: 100%; max-width: 480px; } .th-bal .ax { stroke: #888; } .th-bal line.ld { stroke: #e04848; stroke-width: 2; } .th-bal line.hp { stroke: #1a9b3c; stroke-width: 2; } .th-bal .bp { fill: #ffd54f; } .th-bal text { font-size: 10px; fill: #bbb; } .th-bal text.ld { fill: #e04848; } .th-bal text.hp { fill: #1a9b3c; }
.th-lessons, .th-tree { padding-left: 20px; } .th-lesson h3 { margin: 10px 0 2px; font-size: 15px; } .th-tree li { margin: 6px 0; }
@media (max-width: 800px) { .th-grid { grid-template-columns: 1fr; } .th-tabs button { flex: 1 1 45%; } }
@media print { .th-tabs, .th-in { display: none; } }
.th-f input:not([type=checkbox]), .th-f select, .th-f textarea { width: 100%; box-sizing: border-box; min-height: 40px; padding: 6px 10px; border-radius: 8px; border: 1px solid var(--line2, #3c434c); background: var(--bg, #111316); color: var(--text, #e8eaed); font-size: 15px; }
.th-f textarea { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 13px; }
.th-f input.bad { border-color: var(--red, #e04848); background: var(--redbg, rgba(224, 72, 72, .15)); }
.th-f span { color: var(--muted, #a7b0ba); }
.th-tabs button { color: var(--text, #e8eaed); }
