/* ---------- Training ---------- */
.tr-bar{display:flex;flex-wrap:wrap;gap:10px 14px;align-items:center;background:var(--surface);border:1px solid var(--line);border-radius:12px;padding:10px 12px}
.tr-bar .btn{font-size:15px;padding:9px 18px}
.tr-bar .tr-go{background:var(--accent);color:var(--on-root);border-color:var(--accent);font-weight:800;min-width:96px}
.tr-bar .tr-go.is-on{background:var(--ink);color:var(--bg);border-color:var(--ink)}
.tr-bar .tr-prog{flex:1 1 160px;height:8px;border-radius:4px;background:var(--line);overflow:hidden;min-width:120px}
.tr-bar .tr-prog i{display:block;height:100%;width:0;background:var(--accent)}
.tr-bar .tr-pos{font-family:var(--f-mono);font-size:13px;color:var(--muted);white-space:nowrap}
.tr-bar .lg-ctl{margin:0}
.tr-head{position:relative;display:flex;flex-wrap:wrap;align-items:baseline;gap:6px 16px;margin:12px 2px 4px}
.tr-head .tr-shape{font-family:var(--f-display);font-weight:900;font-size:34px;color:var(--c)}
.tr-head .tr-box{font-family:var(--f-display);font-weight:800;font-size:24px}
.tr-head .tr-key{font-family:var(--f-display);font-weight:800;font-size:24px;color:var(--muted)}
.tr-head .tr-rule{flex-basis:100%;font-size:15px;color:var(--muted)}
.tr-grid .sc-box{cursor:pointer}
.tr-grid .sc-box.is-cur{box-shadow:0 0 0 3px var(--c)}
.tr-grid .sc-box.is-dim{opacity:.55}
.tr-warn,.tr-new{flex-basis:100%;border-radius:10px;padding:10px 14px;font-size:15px;font-weight:600}
.tr-warn{background:#F2B705;color:#1b1b1b}
.tr-new{background:var(--accent);color:var(--on-root)}
/* the warning and the new-shape note float to the right of the heading, so the neck below never shifts */
@media (min-width:900px){
  .tr-head{padding-right:min(400px,38%);min-height:84px}
  .tr-head .tr-warn,.tr-head .tr-new{position:absolute;right:0;top:0;flex-basis:auto;width:min(380px,36%);box-shadow:0 4px 14px rgba(0,0,0,.25);font-size:14px;animation:tr-toast .25s ease-out}
}
@keyframes tr-toast{from{opacity:0;transform:translateY(-6px)}to{opacity:1;transform:none}}
