.training-guides{--tg-blue:#2549bf;--tg-ink:#152340;--tg-muted:#53627c;--tg-line:#dde4ef;color:var(--tg-ink);max-width:1440px;margin:auto}
.tg-head{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;margin-bottom:24px}.tg-head h1{font-size:28px;font-weight:800;margin:0 0 7px}.tg-head p,.tg-muted{color:var(--tg-muted);font-size:14px;line-height:1.8}.tg-count{white-space:nowrap;border:1px solid var(--tg-line);border-radius:10px;background:white;padding:9px 14px;font-size:14px}
.tg-tools{display:flex;align-items:center;gap:16px;flex-wrap:wrap;margin-bottom:22px}.tg-tools label{display:flex;gap:8px;align-items:center;font-size:14px}.tg-tools input[type=search]{width:min(100%,440px);min-height:46px;border:1px solid #bccae0;border-radius:9px;padding:10px 14px;background:white}.tg-tools input[type=checkbox]{accent-color:var(--tg-blue);width:18px;height:18px}
.tg-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.tg-card{background:#fff;border:1px solid var(--tg-line);border-inline-start:4px solid #a5b2c5;border-radius:12px;padding:22px;display:flex;flex-direction:column;gap:14px;min-width:0}.tg-card.ready{border-inline-start-color:#107459}.tg-card h2{font-size:19px;font-weight:800;line-height:1.6;margin:0}.tg-card p{font-size:14px;line-height:1.8;color:var(--tg-muted);margin:0;overflow-wrap:anywhere}.tg-state{align-self:flex-start;font-size:12px;border-radius:6px;padding:4px 9px;background:#f1f5f9;color:#53627c}.ready .tg-state{background:#e8f6ee;color:#146443}.tg-actions{display:flex;gap:9px;flex-wrap:wrap;margin-top:auto;align-items:center}.tg-btn{min-height:42px;border:1px solid #becce1;border-radius:8px;background:#fff;padding:8px 14px;font-size:14px;font-weight:700;color:var(--tg-blue);cursor:pointer;display:inline-flex;gap:8px;align-items:center;justify-content:center;text-decoration:none}.tg-btn.primary{background:var(--tg-blue);border-color:var(--tg-blue);color:#fff}.tg-btn.danger{color:#b42332}.tg-btn:disabled{opacity:.5;cursor:wait}.tg-btn:focus-visible,.training-guides input:focus-visible,.tg-editor input:focus-visible,.tg-editor textarea:focus-visible{outline:3px solid #507ee0;outline-offset:3px}.tg-date{font-size:12px;color:var(--tg-muted)}
.tg-empty{padding:36px 20px;text-align:center;background:#fff;border:1px dashed #b6c5d9;border-radius:12px;grid-column:1/-1;color:var(--tg-muted)}.tg-error{padding:12px 16px;background:#fff1f1;color:#9e2834;border:1px solid #f3c5cb;border-radius:8px;margin-bottom:16px}.tg-reader-head{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:16px;flex-wrap:wrap}.tg-reader-head h1{font-size:23px;font-weight:800;margin:0}.tg-reader-head p{font-size:13px;color:var(--tg-muted);margin-top:4px}.tg-frame{display:block;width:100%;height:calc(100dvh - 225px);min-height:550px;border:1px solid var(--tg-line);border-radius:12px;background:white}.tg-editor{display:grid;gap:16px}.tg-editor label{font-size:14px;font-weight:700;display:grid;gap:6px}.tg-editor input,.tg-editor textarea{width:100%;padding:10px;border:1px solid #becce1;border-radius:8px;background:white;font-size:15px}.tg-editor p{font-size:13px;color:var(--tg-muted);line-height:1.8}.tg-editor .tg-frame{height:480px;min-height:0}.tg-editor [hidden],.training-guides [hidden]{display:none!important}
@media(max-width:800px){.tg-grid{grid-template-columns:1fr}.tg-head{gap:10px;flex-wrap:wrap}.tg-head h1{font-size:24px}.tg-card{padding:18px}.tg-tools input[type=search]{width:100%}.tg-tools{gap:12px}.tg-frame{height:calc(100dvh - 230px);min-height:450px}.tg-reader-head h1{font-size:20px}}
.tg-reference-links{display:flex;align-items:center;gap:12px;flex-wrap:wrap;padding:14px 0;font-size:13px;color:var(--tg-muted)}.tg-reference-links .tg-btn{font-size:13px;min-height:40px}.tg-btn:hover{border-color:var(--tg-blue);background:#edf3ff}.tg-btn.primary:hover{background:#1d3b9e;color:white}
