/* Training product page (/employee-training) — page-only mock-ups on top of product.css. */
.tr-doc, .tr-quiz, .tr-assign, .tr-mine, .tr-valid, .tr-types { width: 270px; background: #fff; border-radius: 12px; padding: 16px; box-shadow: 0 12px 30px rgba(16, 24, 40, .1); font-size: .8rem; color: #1d2433; }
.tr-quiz small, .tr-assign > small { display: block; color: #8a93a4; font-size: .68rem; text-transform: uppercase; letter-spacing: .05em; margin-bottom: 6px; }

/* 1 — AI lesson */
.tr-doc-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding-bottom: 10px; border-bottom: 1px solid #eef0f4; }
.tr-ai { flex: none; font-size: .66rem; font-weight: 700; color: #fff; padding: 4px 8px; border-radius: 999px; background: linear-gradient(135deg, #0c64ae, #8b5cf6); }
.tr-doc-h { font-weight: 700; font-size: .74rem; margin: 12px 0 6px; color: #3c4557; }
.tr-line { display: block; height: 7px; border-radius: 4px; margin: 6px 0; width: 0;
  background: linear-gradient(90deg, #dfe6f3, #eef1f7); transition: width .6s cubic-bezier(.2, .8, .2, 1); transition-delay: calc(var(--i) * 150ms + .4s); }
.pp-card.in .tr-line { width: var(--w); }

/* 2 — quiz */
.tr-quiz > b, .tr-learn > b { display: block; font-size: .86rem; line-height: 1.35; margin-bottom: 10px; }
.tr-opt { display: flex; align-items: center; gap: 8px; padding: 7px 10px; border: 1px solid #e3e7ee; border-radius: 8px; margin-top: 6px; color: #4b5568; transition: all .4s; }
.tr-opt i { width: 12px; height: 12px; border-radius: 50%; border: 1.5px solid #c0c6d2; flex: none; }
.pp-card.in .tr-opt.ok, .pp-scene.on .tr-opt.ok { border-color: #16a34a; background: #ecfdf3; color: #15803d; font-weight: 600; transition-delay: 1s; }
.pp-card.in .tr-opt.ok i, .pp-scene.on .tr-opt.ok i { border: 4px solid #16a34a; transition: all .4s 1s; }
.tr-quiz-foot { display: flex; justify-content: space-between; margin-top: 12px; font-size: .72rem; color: #8a93a4; }
.tr-quiz-foot b { color: #16a34a; }

/* 3 — assign */
.tr-radio { display: flex; align-items: center; gap: 8px; padding: 5px 0; color: #4b5568; }
.tr-radio i { width: 14px; height: 14px; border-radius: 4px; border: 1.5px solid #c0c6d2; flex: none; position: relative; }
.tr-radio.on { color: #1d2433; font-weight: 600; }
.tr-radio.on i { background: #0c64ae; border-color: #0c64ae; }
.tr-radio.on i::after { content: ""; position: absolute; left: 3px; top: 0; width: 4px; height: 8px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.tr-assign-sum { display: flex; justify-content: space-between; align-items: baseline; margin-top: 10px; padding-top: 10px; border-top: 1px solid #eef0f4; color: #6b7487; }
.tr-assign-sum b { font-size: 1.05rem; color: #0c64ae; }
.tr-assign-due { margin-top: 8px; font-size: .72rem; color: #6b7487; }

/* 4 — my training */
.tr-mine-h { font-weight: 700; margin-bottom: 8px; }
.tr-mine-row { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid #f0f2f6;
  opacity: 0; transform: translateY(6px); transition: opacity .4s, transform .4s; transition-delay: calc(var(--i) * 110ms + .3s); }
.pp-card.in .tr-mine-row { opacity: 1; transform: none; }
.tr-mine-row:last-child { border-bottom: none; }
.tr-mine-row > span:nth-child(2) { display: flex; flex-direction: column; min-width: 0; }
.tr-mine-row small { color: #8a93a4; font-size: .7rem; }
.tr-mine-ico { flex: none; width: 26px; height: 26px; border-radius: 50%; border: 2px solid #c9d7ee; }
.tr-mine-row.done .tr-mine-ico { background: #16a34a; border-color: #16a34a; position: relative; }
.tr-mine-row.done .tr-mine-ico::after { content: ""; position: absolute; left: 8px; top: 4px; width: 5px; height: 10px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.tr-mine-row.done small { color: #16a34a; }
.tr-mine-row em { margin-left: auto; font-style: normal; font-size: .62rem; font-weight: 700; color: #b91c1c; background: #fef2f2; padding: 3px 7px; border-radius: 999px; }

/* 5 — validity */
.tr-valid > b { display: block; font-size: .9rem; }
.tr-valid > small { color: #8a93a4; font-size: .72rem; }
.tr-track { position: relative; height: 8px; border-radius: 999px; margin: 22px 4px 8px;
  background: linear-gradient(90deg, #16a34a 0 62%, #f59e0b 62% 86%, #dc2626 86% 100%); }
.tr-track i { position: absolute; top: 50%; width: 14px; height: 14px; border-radius: 50%; background: #fff; border: 3px solid #16a34a; transform: translate(-50%, -50%); }
.tr-track i.a { left: 0; } .tr-track i.b { left: 62%; border-color: #f59e0b; } .tr-track i.c { left: 100%; border-color: #dc2626; }
.tr-track-fill { position: absolute; top: -6px; left: 0; width: 20px; height: 20px; border-radius: 50%; background: #1d2433; box-shadow: 0 0 0 4px rgba(29, 36, 51, .15);
  transform: translateX(-50%); transition: left 2.4s cubic-bezier(.4, 0, .2, 1) .5s; z-index: 1; }
.pp-card.in .tr-track-fill { left: 74%; }
.tr-track-lbl { display: flex; justify-content: space-between; font-size: .66rem; color: #8a93a4; }
.tr-valid-note { margin-top: 14px; padding: 8px 10px; border-radius: 8px; background: #fff7e6; color: #92600a; font-size: .74rem; }

/* 6 — course types */
.tr-types { display: grid; gap: 8px; }
.tr-type { display: flex; align-items: center; gap: 10px; padding: 9px; border-radius: 10px; background: #f7f8fb;
  opacity: 0; transform: translateX(-8px); transition: opacity .4s, transform .4s; transition-delay: calc(var(--i) * 120ms + .3s); }
.pp-card.in .tr-type { opacity: 1; transform: none; }
.tr-type > span:last-child { display: flex; flex-direction: column; }
.tr-type small { color: #8a93a4; font-size: .7rem; }
.tr-type-ico { flex: none; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: color-mix(in srgb, var(--c) 14%, #fff); color: var(--c);
  --fa-primary-color: var(--c); --fa-secondary-color: var(--c); }
.tr-rec { justify-self: start; margin-top: 2px; font-size: .74rem; font-weight: 600; color: #16a34a; }

/* walkthrough */
.tr-gen-btns { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 18px; }
.tr-gen-btns .pp-fake-btn { margin-top: 0; display: inline-flex; gap: 6px; align-items: center; }
.tr-ghost { background: #fff !important; color: #5b5bd6 !important; border: 1px solid #d9def0; }
.tr-gen-out { margin-top: 16px; }
.pp-scene.on .tr-gen-out .tr-line { animation: trLine .6s both; animation-delay: calc(var(--i) * 220ms + 1.2s); }
@keyframes trLine { from { width: 0; } to { width: var(--w); } }
.tr-who { display: flex; flex-wrap: wrap; gap: 6px; }
.tr-who-p { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px 4px 4px; border-radius: 999px; background: #f2f4f8; font-size: .76rem; }
.tr-who-p .pp-av { width: 24px; height: 24px; font-size: .58rem; }
.pp-scene.on .tr-who-p { animation: ppRow .4s both; animation-delay: calc(var(--i) * 90ms); }
.tr-who-more { padding: 6px 10px; border-radius: 999px; background: #eef5fd; color: #0c64ae; font-weight: 700; font-size: .76rem; }
.tr-form2 { margin-top: 16px; }
.tr-learn-tabs { display: flex; gap: 4px; margin-bottom: 14px; }
.tr-learn-tabs span { padding: 6px 12px; border-radius: 8px; font-size: .78rem; color: #6b7487; }
.tr-learn-tabs span.on { background: #eef5fd; color: #0c64ae; font-weight: 600; }
.tr-pass { margin-top: 14px; padding: 10px 12px; border-radius: 10px; background: #ecfdf3; color: #15803d; font-weight: 600; }
.pp-scene.on .tr-pass { animation: ppRow .5s 1.6s both; }
.tr-ov { display: flex; gap: 20px; align-items: center; }
.tr-ov-ring { position: relative; width: 130px; height: 130px; flex: none; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.tr-ov-ring svg { position: absolute; inset: 0; transform: rotate(-90deg); }
.tr-ov-ring circle { fill: none; stroke-width: 10; stroke-linecap: round; }
.tr-ov-ring .trk { stroke: #eef0f4; }
.tr-ov-ring .arc { stroke: #0c64ae; stroke-dasharray: 100; stroke-dashoffset: 100; }
.pp-scene.on .tr-ov-ring .arc { animation: trArc 1.4s .2s cubic-bezier(.2, .8, .2, 1) forwards; }
@keyframes trArc { to { stroke-dashoffset: 14; } }
.tr-ov-ring b { font-size: 1.5rem; position: relative; }
.tr-ov-ring small { font-size: .7rem; color: #8a93a4; position: relative; }
.tr-ov-stats { display: grid; gap: 8px; flex: 1; min-width: 0; }
.tr-ov-stats div { display: flex; justify-content: space-between; padding: 9px 12px; border-radius: 9px; background: #f7f8fb; }
.tr-ov-stats small { color: #6b7487; }
.tr-ov-stats .warn b { color: #dc2626; } .tr-ov-stats .soon b { color: #d97706; }
.tr-attn { margin-top: 16px; padding: 10px 12px; border-radius: 10px; border: 1px solid #fde2e2; background: #fff8f8; display: flex; flex-direction: column; gap: 3px; font-size: .78rem; }
.tr-attn b { color: #b91c1c; }
.pp-scene.on .tr-attn { animation: ppRow .5s 1s both; }

/* AI: the brief and the lesson */
.tr-gen .pp-window-body { gap: 8px; }
.tr-gen-label { font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: #8a93a4; }
.tr-gen .pp-msg { max-width: 100%; border-radius: 10px; }
.tr-gen .pp-msg.me { align-self: stretch; background: #fafbfd; border: 1px solid #e3e7ee; border-radius: 10px; }
.tr-gen .pp-msg.me:empty { display: block; min-height: 2.6em; }
.tr-gen .pp-msg.ai { align-self: stretch; background: linear-gradient(135deg, #eef5fd, #f3effd); min-height: 9em; }

@media (max-width: 640px) {
  .tr-ov { flex-direction: column; align-items: stretch; }
  .tr-ov-ring { align-self: center; width: 110px; height: 110px; }
}
@media (prefers-reduced-motion: reduce) {
  .tr-line { width: var(--w) !important; transition: none !important; }
  .tr-mine-row, .tr-type { opacity: 1 !important; transform: none !important; transition: none !important; }
}
