/* cisharp.vip tools: classes with tl- prefix only */
.tl-box{--tl-plum:#7a247a;--tl-ink:#22152a;--tl-line:#e7dfe9;--tl-card:#fff;--tl-code:#1f1726;--tl-soft:#f8f3f9;
  box-sizing:border-box;max-width:100%;margin:1.2em 0;padding:18px;background:var(--tl-card);color:var(--tl-ink);
  border:1px solid var(--tl-line);border-radius:12px;line-height:1.55;font-size:16px;overflow-wrap:anywhere}
.tl-box *,.tl-box *::before,.tl-box *::after{box-sizing:border-box}
.tl-row{display:flex;flex-wrap:wrap;gap:12px;align-items:flex-end;margin:0 0 10px}
.tl-row-inline{align-items:center;margin:0 0 8px}
.tl-field{flex:1 1 220px;min-width:0;display:flex;flex-direction:column;gap:5px}
.tl-field-sm{flex:0 1 140px}
.tl-label{font-weight:600;font-size:15px;color:var(--tl-ink)}
.tl-input,.tl-select{width:100%;max-width:100%;min-height:44px;padding:9px 12px;font:inherit;color:var(--tl-ink);background:#fff;
  border:1px solid #b9aebd;border-radius:8px}
.tl-select-inline{width:auto;min-width:90px}
.tl-input{font-family:Consolas,"Courier New",monospace}
.tl-input:focus,.tl-select:focus,.tl-btn:focus-visible,.tl-option:focus-visible,.tl-link:focus-visible,.tl-code:focus-visible{outline:3px solid #b45bb4;outline-offset:2px}
.tl-msg{margin:6px 0 10px;min-height:1.5em;font-size:15px;color:#4a3a52}
.tl-err{color:#a0141e;font-weight:600}
.tl-note{margin:6px 0 10px;font-size:15px;color:#4a3a52}
.tl-h{margin:18px 0 8px;font-size:18px;line-height:1.3;color:var(--tl-ink)}
.tl-out{min-width:0}
.tl-tablewrap{max-width:100%;overflow-x:auto;margin:8px 0 12px;border:1px solid var(--tl-line);border-radius:8px;-webkit-overflow-scrolling:touch}
.tl-table{width:100%;border-collapse:collapse;font-size:15px;background:#fff}
.tl-table th,.tl-table td{padding:8px 10px;text-align:left;vertical-align:top;border-bottom:1px solid var(--tl-line)}
.tl-table thead th{background:var(--tl-soft);font-weight:700;white-space:nowrap}
.tl-table tbody th{font-weight:600}
.tl-table tbody tr:last-child th,.tl-table tbody tr:last-child td{border-bottom:0}
.tl-mono{font-family:Consolas,"Courier New",monospace}
.tl-wrapany{overflow-wrap:anywhere;word-break:break-all}
.tl-sub{display:block;font-size:13px;color:#5a4a62;font-weight:400}
.tl-table-types{min-width:620px}
.tl-st-no{color:#6b5d72}
.tl-st-ok td:nth-child(4){color:#14602b;font-weight:600}
.tl-st-approx td:nth-child(4){color:#8a4b00;font-weight:600}
.tl-best{background:#f3e6f3}
.tl-best th:first-child{border-left:4px solid var(--tl-plum)}
.tl-verdict{padding:12px 14px;background:var(--tl-soft);border-left:4px solid var(--tl-plum);border-radius:6px;margin:6px 0 10px}
.tl-verdict p{margin:0 0 6px}
.tl-verdict p:last-child{margin:0}
.tl-code{margin:8px 0 12px;padding:14px;background:var(--tl-code);color:#f3e9f6;border-radius:8px;overflow-x:auto;max-width:100%;
  font:14px/1.5 Consolas,"Courier New",monospace;white-space:pre;tab-size:4}
.tl-code code{background:none;color:inherit;padding:0;font:inherit;white-space:pre}
.tl-result{margin:8px 0}
.tl-btn,.tl-option{font:inherit;cursor:pointer}
.tl-btn{display:inline-block;min-height:44px;padding:9px 16px;color:#fff;background:#7a247a;border:2px solid #7a247a;border-radius:8px;font-weight:600}
.tl-btn:hover{background:#611c61;border-color:#611c61}
.tl-btn-sm{min-height:36px;padding:4px 10px;font-size:14px;color:#7a247a;background:#fff;border:2px solid #7a247a}
.tl-btn-sm:hover{background:#f3e6f3;color:#611c61}
.tl-btn-primary{margin-top:12px}
.tl-progress{margin:0 0 6px;font-weight:600}
.tl-bar{height:8px;background:var(--tl-line);border-radius:4px;overflow:hidden;margin-bottom:14px}
.tl-bar-fill{height:100%;background:#7a247a;transition:width .2s}
.tl-question{margin:0 0 8px;font-weight:700;font-size:18px}
.tl-options{display:grid;gap:8px;margin:10px 0}
.tl-option{width:100%;min-height:44px;padding:10px 14px;text-align:left;color:var(--tl-ink);background:#fff;border:2px solid #cbbfd0;border-radius:8px}
.tl-option:hover:not(:disabled){border-color:#7a247a;background:var(--tl-soft)}
.tl-option:disabled{cursor:default;color:var(--tl-ink);opacity:1}
.tl-correct{border-color:#14602b;background:#e8f5ec}
.tl-wrong{border-color:#a0141e;background:#fbe9ea}
.tl-mark{font-weight:700}
.tl-correct .tl-mark{color:#14602b}
.tl-wrong .tl-mark{color:#a0141e}
.tl-feedback{margin-top:10px}
.tl-fb-ok,.tl-fb-bad{padding:12px 14px;border-radius:8px}
.tl-fb-ok{background:#e8f5ec;border:1px solid #9fd0ae}
.tl-fb-bad{background:#fbe9ea;border:1px solid #e0a3a8}
.tl-feedback p{margin:0 0 6px}
.tl-fb-title{font-weight:700}
.tl-link{color:#7a247a;font-weight:600;text-decoration:underline}
.tl-link:hover{color:#4f134f}
.tl-scorebig{margin:0 0 8px;font-size:40px;font-weight:800;color:var(--tl-plum);line-height:1.1}
.tl-list{margin:6px 0 12px;padding-left:22px}
.tl-qbox{min-width:0}
@media (max-width:480px){
  .tl-box{padding:12px;border-radius:10px}
  .tl-field-sm{flex:1 1 100%}
  .tl-select-inline{width:100%}
  .tl-question{font-size:17px}
  .tl-code{font-size:13px;padding:10px}
}
@media (prefers-reduced-motion:reduce){.tl-bar-fill{transition:none}}
