/* Инструменты: только классы с префиксом .t- */
.t-tool{box-sizing:border-box;max-width:100%;background:var(--card,#fff);border:1px solid var(--line,#dde6e3);border-radius:var(--r,12px);padding:18px;margin:20px 0;color:var(--ink,#1f2d2b);font-size:16px;line-height:1.5;overflow-wrap:anywhere}
.t-tool *,.t-tool *::before,.t-tool *::after{box-sizing:border-box}
.t-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:14px;margin-bottom:14px}
.t-field{min-width:0}
.t-field label,.t-explab{display:block;font-weight:600;margin-bottom:4px;color:var(--ink,#1f2d2b);font-size:15px}
.t-in{display:block;width:100%;min-height:44px;padding:9px 12px;font:inherit;font-size:16px;color:var(--ink,#1f2d2b);background:#fff;border:1px solid #8a9a96;border-radius:8px;max-width:100%}
.t-in:focus,.t-btn:focus,.t-del:focus,.t-tool input[type=checkbox]:focus{outline:3px solid var(--pri,#0c655f);outline-offset:2px}
.t-hint{font-size:13px;color:var(--muted,#5b6b68);margin-top:3px;line-height:1.35}
.t-btn{display:inline-block;min-height:44px;padding:10px 20px;font:inherit;font-weight:600;color:#fff;background:var(--pri,#0c655f);border:2px solid var(--pri,#0c655f);border-radius:8px;cursor:pointer;margin:0 8px 8px 0}
.t-btn:hover{filter:brightness(1.12)}
.t-btn2{color:var(--pri,#0c655f);background:#fff}
.t-btn2:hover{background:var(--pri2,#e3f1ee);filter:none}
.t-btn3{color:var(--muted,#5b6b68);background:#fff;border-color:#8a9a96}
.t-btn3:hover{background:var(--bg,#f4f7f6);filter:none}
.t-out{margin-top:16px}
.t-big{display:flex;align-items:baseline;gap:10px;flex-wrap:wrap;margin-bottom:8px}
.t-bigval{font-size:44px;font-weight:700;line-height:1.1;color:var(--pri,#0c655f)}
.t-bigcap{font-size:16px;color:var(--muted,#5b6b68)}
.t-res{margin:8px 0}
.t-note{font-size:14px;color:var(--muted,#5b6b68);margin:12px 0 0}
.t-h{font-size:18px;margin:18px 0 8px;color:var(--ink,#1f2d2b)}
.t-cnt{font-size:14px;font-weight:400;color:var(--muted,#5b6b68)}
.t-box{padding:11px 14px;border-radius:8px;margin:8px 0;border-left:5px solid var(--muted,#5b6b68);background:var(--bg,#f4f7f6);color:var(--ink,#1f2d2b)}
.t-box strong{margin-right:2px}
.t-box.ok{border-left-color:var(--ok,#2f7d4f);background:#e6f4ec}
.t-box.warn{border-left-color:var(--warn,#a86b12);background:#fbf1de}
.t-box.bad{border-left-color:var(--bad,#b3402f);background:#fbe9e5}
.t-alarm{font-weight:500;border-left-width:8px}
.t-live{min-height:0;display:inline-block;color:var(--ink,#1f2d2b);font-size:15px}
div.t-live{display:block}
.t-scale{position:relative;display:flex;height:16px;border-radius:8px;overflow:hidden;margin:14px 0 4px;border:1px solid var(--line,#dde6e3)}
.t-seg{display:block;height:100%}
.t-c-warn{background:#e0a93b}
.t-c-ok{background:#3c9b62}
.t-c-bad1{background:#d9704f}
.t-c-bad2{background:#b3402f}
.t-c-bad3{background:#7a2a1f}
.t-mark{position:absolute;top:-3px;bottom:-3px;width:4px;margin-left:-2px;background:var(--ink,#1f2d2b);border:1px solid #fff;border-radius:2px}
.t-scale-lbl{display:flex;justify-content:space-between;font-size:12px;color:var(--muted,#5b6b68);margin-bottom:10px}
.t-tw{max-width:100%;overflow-x:auto;margin:10px 0}
.t-table{border-collapse:collapse;width:100%;min-width:260px;font-size:15px}
.t-table th,.t-table td{padding:8px 10px;border:1px solid var(--line,#dde6e3);text-align:left;vertical-align:top}
.t-table th{background:var(--pri2,#e3f1ee);color:var(--ink,#1f2d2b)}
.t-table tr.t-cur td{background:#fff3c4;font-weight:700}
.t-list{margin:6px 0 6px;padding-left:20px}
.t-list li{margin:3px 0}
.t-chkrow{display:flex;align-items:flex-start;gap:10px;margin:8px 0 12px}
.t-chkrow input,.t-kitrow input{flex:0 0 auto;width:24px;height:24px;margin:2px 0 0;accent-color:var(--pri,#0c655f)}
.t-chk{cursor:pointer;min-height:28px;padding-top:2px}
.t-empty{color:var(--muted,#5b6b68)}
.t-actions{margin:10px 0}
.t-summary{margin-top:14px;padding:4px 14px 8px;background:var(--pri2,#e3f1ee);border-radius:8px}
.t-summary .t-h{margin-top:10px}
.t-recs{list-style:none;margin:0 0 8px;padding:0}
.t-rec{position:relative;padding:10px 12px;margin:6px 0;border:1px solid var(--line,#dde6e3);border-radius:8px;background:#fff}
.t-rectop{display:flex;flex-wrap:wrap;align-items:center;gap:8px;padding-right:90px}
.t-time{color:var(--muted,#5b6b68);font-size:14px}
.t-val{font-size:20px;font-weight:700}
.t-pul{font-size:14px;color:var(--muted,#5b6b68)}
.t-tag{display:inline-block;padding:2px 9px;border-radius:999px;font-size:13px;font-weight:600;color:var(--ink,#1f2d2b);background:var(--bg,#f4f7f6)}
.t-tag-ok{background:#d7efe0;color:#1b5233}
.t-tag-warn{background:#f9e6c4;color:#6b4004}
.t-tag-bad{background:#f6d5ce;color:#7d2517}
.t-recmeta{font-size:14px;color:var(--muted,#5b6b68);margin-top:3px}
.t-recalarm{margin-top:6px;padding:6px 10px;background:#fbe9e5;border-left:5px solid var(--bad,#b3402f);border-radius:6px;font-size:14px;font-weight:600;color:var(--ink,#1f2d2b)}
.t-del{position:absolute;top:8px;right:8px;min-height:36px;min-width:44px;padding:4px 10px;font:inherit;font-size:14px;color:#7d2517;background:#fff;border:1px solid #c98b81;border-radius:6px;cursor:pointer}
.t-del:hover{background:#fbe9e5}
.t-progress{font-weight:600;margin:6px 0}
.t-bar{height:12px;background:var(--line,#dde6e3);border-radius:6px;overflow:hidden;margin-bottom:12px}
.t-barin{display:block;height:100%;width:0;background:var(--ok,#2f7d4f);transition:width .2s}
.t-kit{list-style:none;margin:0 0 6px;padding:0}
.t-kititem{padding:8px 0;border-bottom:1px solid var(--line,#dde6e3)}
.t-kititem:last-child{border-bottom:0}
.t-kitrow{display:flex;align-items:flex-start;gap:10px}
.t-kitlab{display:block;cursor:pointer;min-width:0}
.t-kname{display:block}
.t-have .t-kname{font-weight:600}
.t-kitexp{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin:6px 0 0 34px}
.t-kitexp .t-explab{margin:0;font-weight:400;font-size:14px}
.t-exp{width:180px;max-width:100%}
.t-expmsg{font-size:14px}
.t-exp-bad{color:#8f2d1f;font-weight:700}
.t-exp-warn{color:#7a4c06;font-weight:700}
.t-print-area{display:none}
@media (max-width:480px){
  .t-tool{padding:14px 12px}
  .t-bigval{font-size:36px}
  .t-grid{grid-template-columns:1fr}
  .t-btn{width:100%;margin-right:0}
  .t-rectop{padding-right:0}
  .t-del{position:static;margin-top:8px}
  .t-kitexp{margin-left:0}
}
@media print{
  body.t-printing > *:not(.t-print-area){display:none!important}
  body.t-printing .t-print-area{display:block!important;color:#000;background:#fff;font-size:12pt;line-height:1.4;padding:0;margin:0}
  .t-print-area h1{font-size:18pt;margin:0 0 10pt}
  .t-print-area h2{font-size:14pt;margin:12pt 0 4pt}
  .t-ptable{border-collapse:collapse;width:100%;font-size:10pt}
  .t-ptable th,.t-ptable td{border:1px solid #000;padding:3pt 5pt;text-align:left;vertical-align:top}
  .t-plist{list-style:none;padding-left:0}
  .t-plist li{margin:4pt 0}
}
