/* The RosterFlow course (app/[lang]/docs/course): the lessons beside their list, their steps as
   pictures, the quiz, the goals, and the practice studio drawn as RosterFlow draws itself (always
   dark, as the app is). The rest is site.css's and docs.css's. */

/* --- the head -------------------------------------------------------------------------------- */
.course-head .plate { font-size: 11px; letter-spacing: 0.06em; }
.course-progress { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 22px; }
.course-progress .cp-bar { flex: 0 1 320px; height: 10px; border-radius: 5px; background: var(--panel-2); box-shadow: inset 0 0 0 1px var(--edge); overflow: hidden; }
.course-progress .cp-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--accent), #46c478); border-radius: 5px; transition: width 0.6s var(--ease); }
.course-progress > span { color: var(--dim); font-size: 14px; font-weight: 700; }

/* --- the layout -------------------------------------------------------------------------------- */
.course-grid { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 28px; align-items: start; margin: 34px 0 60px; scroll-margin-top: 100px; }
.course-grid > *, .course-lesson, .practice, .practice-studio, .lesson-steps li { min-width: 0; }
.course-nav { position: sticky; top: 100px; padding: 12px; }
.course-nav ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.course-nav button { width: 100%; display: flex; align-items: center; gap: 12px; padding: 9px 10px; border: 0; border-radius: 10px; background: none; color: var(--soft); text-align: left; cursor: pointer; font: inherit; }
.course-nav button:hover { background: var(--panel-2); }
.course-nav button[aria-current] { background: rgba(var(--accent-rgb), 0.16); color: var(--text); box-shadow: inset 0 0 0 1px rgba(var(--accent-rgb), 0.45); }
.course-nav .n { flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 13px; background: var(--panel-2); box-shadow: inset 0 0 0 1px var(--edge-strong); }
.course-nav .n.done { background: #34b26e; color: #fff; box-shadow: none; }
.course-nav .t { display: grid; font-weight: 700; font-size: 14.5px; line-height: 1.25; }
.course-nav .t small { font-weight: 500; font-size: 12px; color: var(--faint); }
.course-hb { display: block; margin: 10px 4px 2px; padding-top: 12px; border-top: 1px solid var(--edge); color: var(--accent-hover); font-size: 14px; font-weight: 700; text-decoration: none; }

/* --- a lesson ---------------------------------------------------------------------------------- */
.lesson-head .kick { font-size: 13px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent-hover); }
.lesson-head h2 { margin: 8px 0 0; font-size: clamp(30px, 4vw, 44px); font-weight: 800; letter-spacing: -0.02em; line-height: 1.06; }
.lesson-head p { margin: 12px 0 0; color: var(--soft); font-size: 18px; max-width: 64ch; }
.lesson-steps { list-style: none; margin: 26px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; counter-reset: s; }
.lesson-steps li { display: grid; grid-template-rows: auto 1fr; overflow: hidden; }
.lesson-steps .pic { background: radial-gradient(120% 120% at 20% 0%, #1b2a48 0%, #121a2c 60%); border-bottom: 1px solid var(--edge); padding: 10px 14px; }
.lesson-steps .words { position: relative; padding: 18px 20px 20px 66px; }
.lesson-steps .num { position: absolute; left: 20px; top: 18px; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: #fff; font-weight: 800; }
.lesson-steps h3 { margin: 3px 0 0; font-size: 18px; font-weight: 800; }
.lesson-steps p { margin: 8px 0 0; color: var(--soft); font-size: 15px; }
.lesson-steps .keys { display: flex; gap: 6px; }
kbd { font: 700 12px "Hanken Grotesk", sans-serif; padding: 2px 7px; border-radius: 6px; background: var(--panel-2); box-shadow: inset 0 0 0 1px var(--edge-strong), 0 2px 0 var(--edge-strong); color: var(--text); }

/* the pictures */
.v-svg { display: block; width: 100%; height: auto; font-family: "Hanken Grotesk", sans-serif; }
.v-txt { fill: #dfe6f2; }
.v-ink { stroke: #c4cad6; }
.v-fill { fill: #c4cad6; }
.v-lane { fill: #2a3242; }
.v-card { fill: #222b3c; stroke: rgba(255, 255, 255, 0.12); }
.v-slot { fill: rgba(63, 168, 255, 0.12); stroke: #3fa8ff; stroke-dasharray: 4 3; stroke-width: 1.5; animation: v-blink 1.6s ease-in-out infinite; }
.v-save { fill: #2a75f7; }
.v-dot { fill: #f39c12; animation: v-dot 4s ease-in-out infinite; }
.v-pop { animation: v-pop 0.6s var(--ease) both; }
.v-pulse { animation: v-pulse 1.8s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.v-move { animation: v-move 3.2s var(--ease) infinite; }
@keyframes v-pop { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes v-pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.55; } }
@keyframes v-blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.45; } }
@keyframes v-dot { 0%, 45% { fill: #f39c12; } 55%, 100% { fill: #34b26e; } }
@keyframes v-move { 0%, 12% { transform: translate(0, 0); } 55%, 80% { transform: translate(54px, 69px); } 100% { transform: translate(54px, 69px); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .v-pop, .v-pulse, .v-move, .v-slot, .v-dot { animation: none; } }

/* --- quiz and practice ------------------------------------------------------------------------ */
.practice { margin-top: 22px; padding: 24px; }
.practice-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.practice-head .plate { font-size: 11px; letter-spacing: 0.06em; }
.practice-head h3 { margin: 0; font-size: 22px; font-weight: 800; flex: 1; }
.practice-brief { margin: 10px 0 0; color: var(--soft); font-size: 16px; }
.practice-hint { margin: 12px 0 0; padding: 10px 14px; border-radius: 10px; background: rgba(var(--accent-rgb), 0.1); color: var(--soft); font-size: 14.5px; }
.practice-hint b { color: var(--accent-hover); margin-right: 6px; }
.practice-keys { margin: 10px 0 0; color: var(--faint); font-size: 13px; }
.goals { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 8px; }
.goals li { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-radius: 10px; background: var(--panel-2); box-shadow: inset 0 0 0 1px var(--edge); font-weight: 600; transition: background 0.3s, box-shadow 0.3s; }
.goals .box { flex: none; width: 22px; height: 22px; border-radius: 6px; display: grid; place-items: center; box-shadow: inset 0 0 0 2px var(--edge-strong); color: #fff; font-weight: 800; font-size: 13px; }
.goals li.met { background: rgba(52, 178, 110, 0.14); box-shadow: inset 0 0 0 1px rgba(52, 178, 110, 0.5); }
.goals li.met .box { background: #34b26e; box-shadow: none; animation: v-pop 0.4s var(--ease); }
.practice-studio { margin-top: 16px; }

.quiz { margin: 16px 0 0; padding-left: 22px; display: grid; gap: 18px; }
.quiz > li > p { margin: 0; font-weight: 700; font-size: 17px; }
.quiz .opts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.quiz .opts button { padding: 9px 14px; border-radius: 10px; border: 0; cursor: pointer; font: 600 15px "Hanken Grotesk", sans-serif; color: var(--text); background: var(--panel-2); box-shadow: inset 0 0 0 1px var(--edge-strong); }
.quiz .opts button:hover { box-shadow: inset 0 0 0 1px rgba(var(--accent-rgb), 0.7); }
.quiz .opts button.right { background: #34b26e; color: #fff; box-shadow: none; }
.quiz .opts button.wrong { background: rgba(229, 83, 75, 0.2); box-shadow: inset 0 0 0 1px #e5534b; }
.quiz .why { margin: 8px 0 0; font-size: 14.5px; }
.quiz .why.right { color: #4fd28b; }
.quiz .why.wrong { color: #ff8a80; }

.complete { margin-top: 20px; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; padding: 16px 18px; border-radius: 14px; background: linear-gradient(120deg, rgba(52, 178, 110, 0.22), rgba(var(--accent-rgb), 0.16)); box-shadow: inset 0 0 0 1px rgba(52, 178, 110, 0.55); animation: v-pop 0.5s var(--ease); }
.complete .medal { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: #34b26e; color: #fff; font-size: 22px; font-weight: 800; }
.complete > div { flex: 1; min-width: 200px; }
.complete b { font-size: 17px; }
.complete p { margin: 2px 0 0; color: var(--soft); }
.complete .fin { font-weight: 800; }

/* --- the studio -------------------------------------------------------------------------------- */
.ps { --bg: #1d222b; --bar: #232a35; --line: rgba(255, 255, 255, 0.07); --tx: #e2e6ec; --dim: #969eac; --acc: #3fa8ff; position: relative; background: var(--bg); color: var(--tx); border-radius: 12px; overflow: hidden; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1), 0 20px 50px rgba(0, 0, 0, 0.4); font-size: 13px; user-select: none; -webkit-user-select: none; }
.ps button { font: inherit; color: inherit; }
.ps-grow { flex: 1; }
.ps-title { display: flex; align-items: center; gap: 14px; padding: 0 12px; height: 46px; background: var(--bar); border-bottom: 1px solid var(--line); }
.ps-brand { font-weight: 800; font-size: 15px; }
.ps-brand i { font-style: normal; color: var(--acc); }
.ps-brand small { margin-left: 8px; padding: 2px 7px; border-radius: 6px; background: rgba(63, 168, 255, 0.18); color: #9cd0ff; font-size: 10px; letter-spacing: 0.06em; text-transform: uppercase; }
.ps-name { display: flex; align-items: center; gap: 8px; color: #ffac33; font-weight: 700; }
.ps-dot { width: 10px; height: 10px; border-radius: 50%; background: #34b26e; transition: background 0.3s; }
.ps-dot.draft { background: #f39c12; }
.ps-undo { display: flex; gap: 2px; }
.ps-undo button, .ps-tabs button { border: 0; background: none; cursor: pointer; }
.ps-undo button { width: 30px; height: 30px; border-radius: 6px; font-size: 17px; }
.ps-undo button:hover:not(:disabled) { background: rgba(255, 255, 255, 0.08); }
.ps-undo button:disabled { opacity: 0.3; cursor: default; }
.ps-tabs { display: flex; align-self: stretch; }
.ps-tabs button { padding: 0 14px; color: var(--dim); font-weight: 700; border-bottom: 2px solid transparent; }
.ps-tabs button[aria-selected="true"] { color: var(--acc); border-bottom-color: var(--acc); }
.ps-tabs button:hover { color: var(--tx); }

.ps-kpis { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); background: #20262f; border-bottom: 1px solid var(--line); }
.ps-kpis > div { padding: 9px 12px; text-align: center; border-right: 1px solid var(--line); }
.ps-kpis > div:last-child { border-right: 0; }
.ps-kpis b { display: block; font-size: 19px; font-weight: 800; color: var(--acc); font-variant-numeric: tabular-nums; }
.ps-kpis em { margin-left: 6px; font-style: normal; font-size: 12px; }
.ps-kpis span { color: var(--dim); font-size: 10.5px; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase; }
.ps .good { color: #4fd28b; }
.ps .bad { color: #ff7b72; }
.ps .warn { color: #ffac33; }

.ps-tools { display: flex; align-items: center; gap: 8px; padding: 8px 10px; background: #2a3240; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.ps-btn { border: 0; border-radius: 4px; padding: 7px 14px; background: var(--acc); color: #fff !important; font-weight: 800 !important; font-size: 11.5px !important; letter-spacing: 0.04em; cursor: pointer; }
.ps-btn.grey { background: #4a5568; }
.ps-btn:disabled { opacity: 0.45; cursor: default; }
.ps-selbar { display: flex; align-items: center; gap: 4px; margin-left: 8px; padding: 3px 4px 3px 10px; border-radius: 6px; background: #1d4a7a; font-weight: 700; }
.ps-selbar button { border: 0; border-radius: 4px; padding: 4px 9px; background: rgba(255, 255, 255, 0.12); cursor: pointer; font-weight: 700; }
.ps-selbar button:hover { background: rgba(255, 255, 255, 0.22); }
.ps-stackcount { padding: 6px 12px; border-radius: 4px; background: #3a414e; font-weight: 700; font-size: 12px; }
.ps-stackcount.bad { background: #5a2a2d; color: #ffb4ad; }
.ps-proposal { display: flex; align-items: center; gap: 8px; padding: 8px 12px; background: #163a63; color: #d6e8ff; font-weight: 700; flex-wrap: wrap; }
.ps-proposal span { flex: 1; min-width: 220px; }

.ps-scroll { overflow-x: auto; max-height: 470px; overflow-y: auto; }
.ps-chart { min-width: 860px; padding: 0 26px 10px 10px; }
.ps-axis, .ps-row { display: grid; grid-template-columns: 92px minmax(0, 1fr); align-items: stretch; }
.ps-axis { position: sticky; top: 0; z-index: 3; background: var(--bg); padding-top: 6px; }
.ps-lab { display: flex; align-items: center; gap: 5px; padding: 0 6px; color: var(--tx); font-weight: 700; font-size: 12.5px; border: 0; background: none; text-align: left; cursor: default; }
button.ps-lab { cursor: pointer; }
button.ps-lab:hover { color: var(--acc); }
.ps-lab small { color: var(--dim); font-weight: 600; font-size: 10.5px; margin-left: 4px; }
.ps-lane-h { position: relative; height: 22px; border-bottom: 1px solid var(--line); }
.ps-lane-h span { position: absolute; translate: -50% 0; color: var(--dim); font-size: 11px; font-variant-numeric: tabular-nums; }
.ps-row { min-height: 34px; border-bottom: 1px solid var(--line); transition: background 0.2s, opacity 0.2s; }
.ps-lane { position: relative; background-image: linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: calc(100% / 10) 100%; }
.ps-row.stack { background: rgba(255, 255, 255, 0.025); }
.ps-row.stack .ps-lab { color: var(--dim); font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em; }
.ps-row.new .ps-lab { color: var(--dim); font-weight: 600; }
.ps-row.target { background: rgba(63, 168, 255, 0.07); }
.ps-row.dim { opacity: 0.45; }
.ps-flash { animation: ps-flash 1.8s ease-out; }
@keyframes ps-flash { 0%, 40% { background: rgba(255, 172, 51, 0.28); } 100% { background: transparent; } }
.ps-hint { position: absolute; left: 8px; top: 9px; color: #5f6979; font-size: 11.5px; }

.ps-chip { position: absolute; top: 6px; height: 22px; border: 0; padding: 0; background: var(--c); color: #0b1424; font-weight: 800; font-size: 10.5px; cursor: grab; touch-action: none; display: flex; align-items: center; justify-content: center; overflow: hidden; transition: transform 0.12s, box-shadow 0.12s, opacity 0.12s; }
.ps-chip.out { clip-path: polygon(0 0, calc(100% - 7px) 0, 100% 50%, calc(100% - 7px) 100%, 0 100%); }
.ps-chip.in { clip-path: polygon(7px 0, 100% 0, 100% 100%, 7px 100%, 0 50%); }
.ps-chip:hover { filter: brightness(1.15); }
.ps-chip.on { box-shadow: inset 0 0 0 2px #fff; filter: brightness(1.2); }
.ps-chip.lifted { opacity: 0.35; }
.ps-chip.static { cursor: default; top: 7px; height: 20px; }
.ps-row.stack .ps-chip { height: 20px; }
.ps-ev { position: absolute; top: 10px; height: 14px; border-radius: 3px; }
.ps-ev.out, .ps-ev.in { background: #6f7f99; }
.ps-ev.dead { top: 13px; height: 8px; background: #0b1018; box-shadow: inset 0 0 0 1px #5c6b86; }
.ps-cut { position: absolute; top: 0; bottom: 0; border: 0; padding: 0; background: none; cursor: pointer; z-index: 2; min-width: 8px; }
.ps-cut i { position: absolute; left: 50%; top: 3px; bottom: 3px; width: 3px; translate: -50% 0; background: var(--acc); border-radius: 2px; opacity: 0; transition: opacity 0.15s; }
.ps-cut:hover i { opacity: 1; }
.ps-cut.on { width: 18px; translate: -50% 0; color: #fff; font-size: 15px; font-weight: 800; text-shadow: 0 1px 3px #000; }
.ps-cut.on:hover { color: #ffac33; }
.ps-bang { display: inline-grid; place-items: center; width: 14px; height: 14px; border-radius: 50%; background: #e5534b; color: #fff; font-size: 10px; font-weight: 800; }
.ps-bang.soft { background: #f39c12; }

.ps-slot { position: absolute; top: 3px; bottom: 3px; min-width: 34px; border: 2px dashed var(--acc); border-radius: 5px; background: rgba(63, 168, 255, 0.14); cursor: pointer; z-index: 4; display: flex; align-items: center; justify-content: center; animation: v-blink 1.6s ease-in-out infinite; }
.ps-slot.red { border-color: #e5534b; background: rgba(229, 83, 75, 0.14); }
.ps-slot.hot { animation: none; background: rgba(63, 168, 255, 0.32); }
.ps-slot.red.hot { background: rgba(229, 83, 75, 0.32); }
.ps-stars { color: #ffd23f; font-size: 11px; letter-spacing: 1px; white-space: nowrap; text-shadow: 0 1px 2px #000; }
.ps-stars i { font-style: normal; color: #5d6678; }
.ps-slotcard { position: absolute; top: calc(100% + 6px); left: 50%; translate: -50% 0; width: 220px; display: grid; grid-template-columns: auto 1fr; gap: 4px 10px; padding: 10px 12px; border-radius: 8px; background: #eef2f8; color: #1a2232; text-align: left; font-size: 12px; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5); z-index: 10; animation: none; }
.ps-slotcard b { font-size: 10px; color: #667085; letter-spacing: 0.05em; text-transform: uppercase; align-self: center; }
.ps-slotcard .good { color: #1b8f4e; font-weight: 800; }
.ps-slotcard .bad { color: #c7382f; font-weight: 800; }
.ps-slotcard em { grid-column: 1 / -1; font-style: normal; color: #1d6fc0; font-weight: 600; }
.ps-slotcard em.bad { color: #c7382f; }
.ps-dropstack { position: absolute; inset: 3px 4px; border: 2px dashed #ff7b72; border-radius: 6px; background: rgba(229, 83, 75, 0.12); color: #ffb4ad; font-weight: 700; cursor: pointer; z-index: 4; }

.ps-row.ps-duty .ps-lane { min-height: 34px; }
.ps-tee { position: absolute; top: 8px; width: 2px; height: 18px; background: #c4cad6; }
.ps-tee::after { content: ""; position: absolute; top: 8px; left: 0; width: 7px; height: 2px; background: #c4cad6; }
.ps-tee.end::after { left: -5px; }
.ps-span { position: absolute; top: 31px; height: 2px; background: rgba(255, 255, 255, 0.12); }
.ps-break { position: absolute; top: 10px; height: 14px; border-radius: 7px; background: rgba(31, 184, 156, 0.18); box-shadow: inset 0 0 0 1px #1fb89c; color: #5fe0c0; font-size: 9.5px; font-weight: 800; display: grid; place-items: center; overflow: hidden; }
.ps-break.meal { background: rgba(31, 184, 156, 0.32); }
.ps-spread { position: absolute; top: 10px; margin-left: 8px; color: var(--dim); font-size: 10.5px; font-weight: 700; }
.ps-spread.bad { color: #ff7b72; }

.ps-status { display: flex; align-items: center; gap: 14px; padding: 8px 12px; background: var(--bar); border-top: 1px solid var(--line); color: var(--dim); font-size: 12px; flex-wrap: wrap; }
.ps-status button { border: 0; background: none; cursor: pointer; color: var(--dim); font-weight: 700; padding: 3px 6px; border-radius: 4px; }
.ps-status button:hover { background: rgba(255, 255, 255, 0.08); color: var(--tx); }
.ps-status .bad { color: #ff7b72; }
.ps-status .warn { color: #ffac33; }

.ps-card, .ps-issues { position: absolute; right: 14px; top: 150px; width: 300px; border-radius: 10px; background: #eef2f8; color: #1a2232; box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5); z-index: 20; overflow: hidden; animation: v-pop 0.25s var(--ease); }
.ps-card-h { display: flex; align-items: center; gap: 8px; padding: 10px 12px; background: #163a63; color: #fff; }
.ps-card-h b { font-size: 14px; }
.ps-card-h span { flex: 1; color: #b8d4f5; font-size: 12px; }
.ps-card-h button { border: 0; background: none; color: #fff !important; cursor: pointer; font-size: 14px; }
.ps-card dl { display: grid; grid-template-columns: 70px 1fr; gap: 6px 10px; margin: 0; padding: 12px; font-size: 12.5px; }
.ps-card dt { color: #667085; font-weight: 800; font-size: 10.5px; letter-spacing: 0.05em; text-transform: uppercase; align-self: center; }
.ps-card dd { margin: 0; font-weight: 600; }
.ps-card-f { display: flex; justify-content: flex-end; gap: 8px; padding: 0 12px 12px; }
.ps-issues { width: 420px; max-width: calc(100% - 28px); }
.ps-issues ul { list-style: none; margin: 0; padding: 6px; max-height: 260px; overflow: auto; }
.ps-issues li button { width: 100%; display: flex; align-items: center; gap: 8px; padding: 8px; border: 0; border-radius: 6px; background: none; color: #1a2232 !important; text-align: left; cursor: pointer; font-size: 12.5px; font-weight: 600; }
.ps-issues li button:hover { background: #dbe6f5; }
.ps-issues .ok { margin: 0; padding: 14px; color: #1b8f4e; font-weight: 700; }
.ps-pill { flex: none; padding: 1px 6px; border-radius: 4px; font-size: 10px; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; }
.ps-pill.hard { background: #fbe1df; color: #b5332a; }
.ps-pill.soft { background: #fff0d6; color: #a8650a; }
.ps-toast { position: absolute; left: 50%; bottom: 44px; translate: -50% 0; padding: 8px 14px; border-radius: 8px; background: #0f1625; color: #e2e6ec; font-weight: 600; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5); z-index: 25; animation: v-pop 0.25s var(--ease); white-space: nowrap; max-width: 90%; overflow: hidden; text-overflow: ellipsis; }
.ps-ghost { position: fixed; z-index: 1000; pointer-events: none; translate: -50% -60%; padding: 4px 14px 4px 10px; background: var(--c); color: #0b1424; font-weight: 800; font-size: 12px; clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 50%, calc(100% - 8px) 100%, 0 100%); box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5); }
.ps-ghost b { margin-left: 6px; padding: 0 5px; border-radius: 6px; background: #0b1424; color: #fff; font-size: 10px; }
.ps.moving .ps-chip:not(.lifted) { cursor: default; }

/* the timeplan practice */
.tp-bar { display: flex; align-items: center; gap: 14px; padding: 8px 12px; background: #2a3240; border-bottom: 1px solid var(--line); }
.tp-line { display: flex; align-items: center; gap: 8px; font-weight: 700; }
.tp-line i { width: 12px; height: 12px; border-radius: 3px; }
.tp-day { padding: 4px 10px; border-radius: 4px; background: #3a414e; font-weight: 700; font-size: 12px; }
.tp-body { padding: 14px; display: grid; gap: 14px; }
.tp-form { padding: 14px; border-radius: 8px; background: #252c38; }
.tp-form h4 { margin: 0 0 10px; font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--dim); }
.tp-fields { display: flex; align-items: end; gap: 18px; flex-wrap: wrap; }
.tp-fields label { display: grid; gap: 4px; color: var(--dim); font-size: 11.5px; font-weight: 700; }
.tp-fields label b { padding: 6px 12px; border-radius: 6px; background: #1a1f28; color: var(--tx); font-size: 14px; }
.tp-head { display: grid; gap: 4px; color: var(--dim); font-size: 11.5px; font-weight: 700; }
.tp-seg { display: flex; border-radius: 6px; overflow: hidden; box-shadow: inset 0 0 0 1px #4a5568; }
.tp-seg button { border: 0; padding: 7px 16px; background: none; cursor: pointer; font-weight: 800; font-size: 14px; }
.tp-seg button[aria-pressed="true"] { background: var(--acc); color: #fff; }
.tp-seg button:hover:not([aria-pressed="true"]) { background: rgba(255, 255, 255, 0.08); }
.tp-sum { margin: 12px 0 0; color: var(--dim); }
.tp-sum b { color: var(--tx); }
.tp-lines { padding: 0 4px; }
.tp-sync { padding: 10px 12px; border-radius: 8px; background: #252c38; color: var(--dim); display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.tp-sync.on { background: #3a2c12; color: #ffd08a; }
.tp-unsynced { border: 0; border-radius: 5px; padding: 7px 14px; background: #ffac33; color: #2a1a00 !important; font-weight: 800; cursor: pointer; animation: v-blink 1.4s ease-in-out infinite; }
.tp-result { display: grid; grid-template-columns: repeat(3, minmax(0, 140px)) minmax(0, 1fr); gap: 12px; align-items: stretch; }
.tp-big { padding: 12px; border-radius: 8px; background: #252c38; }
.tp-big b { display: block; font-size: 26px; font-weight: 800; color: var(--acc); }
.tp-big span { color: var(--dim); font-size: 12px; }
.tp-big.bad b { color: #ff7b72; }
.tp-mini { padding: 8px; border-radius: 8px; background: #252c38; display: grid; gap: 3px; align-content: start; }
.tp-mrow { display: grid; grid-template-columns: 44px 1fr; gap: 6px; align-items: center; font-size: 10px; color: var(--dim); }
.tp-mrow div { position: relative; height: 9px; }
.tp-mrow i { position: absolute; top: 0; height: 9px; border-radius: 2px; }
.tp-warn { grid-column: 1 / -1; margin: 0; padding: 10px 12px; border-radius: 8px; background: #3a1d1d; color: #ffb4ad; font-weight: 700; }

/* --- narrow screens -------------------------------------------------------------------------- */
@media (max-width: 1060px) {
  .course-grid { grid-template-columns: 1fr; }
  .course-nav { position: static; }
  .course-nav ol { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
}
@media (max-width: 760px) {
  .lesson-steps { grid-template-columns: 1fr; }
  .practice { padding: 16px; }
  .tp-result { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .tp-mini { grid-column: 1 / -1; }
  .ps-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ps-kpis > div:nth-child(n + 4) { display: none; }
  .ps-card, .ps-issues { left: 10px; right: 10px; width: auto; }
}
