
/* ============================================================
   СТИЛИ СТРАНИЦ ПЕРСОНАЛА · консоль наставника и админ-панель
   Стиль кабинета «Телеметрия»: Tektur + Exo 2, тёмный фон с сеткой, плитки, циановые акценты.
   Все цвета — токены в .pd-ft; компоненты ниже строятся только на них.
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Exo+2:wght@400;500;600;700&family=Tektur:wght@700;900&display=swap');
.pd-ft, .pd-ft * { box-sizing: border-box; }
.pd-ft, .pd-ft button, .pd-ft input, .pd-ft select, .pd-ft textarea { font-family: "Exo 2", "Ubuntu", Arial, sans-serif; }
.pd-ft {
  --bg: #05070f; --text: #eef1ff; --muted: rgba(238, 241, 255, .62); --faint: rgba(238, 241, 255, .34);
  --cyan: #92D5FF; --lav: #E9C3FF; --green: #34d399; --amber: #ffb703; --red: #ff6b6b;
  --tile: rgba(255, 255, 255, .04); --tile-hi: rgba(255, 255, 255, .07); --line: rgba(255, 255, 255, .1); --line-hi: rgba(255, 255, 255, .18);
  --cyan-soft: rgba(146, 213, 255, .12); --green-soft: rgba(52, 211, 153, .14); --amber-soft: rgba(255, 183, 3, .14); --red-soft: rgba(255, 107, 107, .14);
  /* прежние имена токенов — чтобы старые вставки продолжали работать */
  --pd-muted: var(--muted); --pd-blue: var(--cyan); --pd-navy: var(--text); --pd-border: var(--line); --pd-soft: var(--cyan-soft);
  --pd-good: var(--green); --pd-warn: var(--amber); --pd-bad: var(--red); --pd-bg: var(--tile); --pd-accent-ink: var(--cyan); --pd-line: var(--line);
  position: relative; min-height: 100vh; padding: 0 0 72px; color: var(--text); font-size: 15px; line-height: 1.5; -webkit-font-smoothing: antialiased;
  background: radial-gradient(900px 500px at 12% 10%, rgba(61, 107, 255, .14), transparent 60%), radial-gradient(700px 500px at 92% 95%, rgba(139, 92, 246, .12), transparent 60%), var(--bg);
}
.pd-ft::before { content: ""; position: absolute; inset: 0; pointer-events: none; background-image: linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px); background-size: 56px 56px; -webkit-mask-image: radial-gradient(ellipse at 50% 20%, #000 30%, transparent 75%); mask-image: radial-gradient(ellipse at 50% 20%, #000 30%, transparent 75%); }
.pd-ft [hidden] { display: none !important; }
.pd-ft a { color: var(--cyan); }
.pd-ft ::selection { background: rgba(146, 213, 255, .35); }

/* ---------- шапка и каркас ---------- */
.pd-ft .pd-top { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 36px; font-size: 13px; color: var(--muted); }
.pd-ft .pd-brand { font-family: "Tektur", sans-serif; font-size: 15px; font-weight: 700; letter-spacing: .08em; color: var(--text); white-space: nowrap; }
.pd-ft .pd-brand em { margin: 0 6px; color: var(--cyan); font-style: normal; }
.pd-ft .pd-shell { position: relative; width: min(100%, 1280px); margin: 0 auto; padding: 4px 36px 40px; }
.pd-ft .pd-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 14px 24px; flex-wrap: wrap; margin-bottom: 20px; }
.pd-ft .pd-kicker { margin: 0 0 8px; color: var(--cyan); font-size: 11px; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; }
.pd-ft h1 { margin: 0; font-family: "Tektur", sans-serif; font-size: clamp(26px, 3vw, 36px); font-weight: 900; line-height: 1.05; background: linear-gradient(90deg, #fff, rgba(255, 255, 255, .55)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.pd-ft h2 { margin: 0 0 12px; font-family: "Tektur", sans-serif; font-size: 20px; font-weight: 700; line-height: 1.2; }
.pd-ft h3 { margin: 0 0 10px; font-size: 16px; font-weight: 700; }
.pd-ft h4 { margin: 16px 0 6px; font-size: 11px; font-weight: 700; color: var(--cyan); text-transform: uppercase; letter-spacing: .18em; }
.pd-ft p { margin: 0 0 10px; }
.pd-ft .pd-tools { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.pd-ft .pd-status { font-size: 12px; color: var(--faint); }
.pd-ft .pd-who { font-size: 13px; color: var(--muted); padding: 7px 14px; border-radius: 999px; background: rgba(255, 255, 255, .05); box-shadow: inset 0 0 0 1px var(--line); }
.pd-ft .pd-tabs { display: flex; gap: 4px; flex-wrap: wrap; margin: 0 0 18px; padding: 4px; background: rgba(255, 255, 255, .04); border-radius: 999px; width: fit-content; max-width: 100%; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06); }
.pd-ft .pd-tab { font: inherit; font-size: 13px; font-weight: 700; letter-spacing: .02em; color: var(--muted); background: transparent; border: 0; border-radius: 999px; padding: 8px 16px; cursor: pointer; white-space: nowrap; transition: background-color .2s ease, color .2s ease; }
.pd-ft .pd-tab:hover { color: var(--text); background: rgba(255, 255, 255, .05); }
.pd-ft .pd-tab.on { background: var(--cyan-soft); color: var(--cyan); box-shadow: inset 0 0 0 1px rgba(146, 213, 255, .35); }

/* ---------- плитки, сетки ---------- */
.pd-ft .pd-state { position: relative; width: min(100%, 560px); margin: 40px auto; padding: 26px 28px; border-radius: 20px; color: var(--muted); background: rgba(8, 11, 24, .66); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .1); font-size: 15px; text-align: center; }
.pd-ft .pd-card { position: relative; padding: 22px 24px; border-radius: 22px; background: var(--tile); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08); margin-bottom: 14px; }
.pd-ft .pd-card > h2:first-child, .pd-ft .pd-card > h3:first-child { margin-top: 0; }
.pd-ft .pd-card--accent { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .1), inset 0 0 0 1px rgba(146, 213, 255, .18); }
.pd-ft .pd-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-bottom: 14px; }
.pd-ft .pd-tile { padding: 16px 18px; border-radius: 18px; background: var(--tile); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08); }
.pd-ft .pd-tile .v { font-family: "Tektur", sans-serif; font-size: 30px; font-weight: 700; line-height: 1; font-variant-numeric: tabular-nums; }
.pd-ft .pd-tile .v .muted { font-family: "Exo 2", sans-serif; }
.pd-ft .pd-tile .l { font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--faint); margin-top: 8px; }
.pd-ft .pd-grid2 { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 14px; align-items: start; }
.pd-ft .pd-grid3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 14px; }
.pd-ft .pd-grid-wide { display: grid; grid-template-columns: repeat(auto-fit, minmax(420px, 1fr)); gap: 14px; }
.pd-ft .pd-grid-half { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-items: start; }
.pd-ft .pd-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, .18) transparent; }
.pd-ft .pd-chart { margin-top: 6px; }
.pd-ft .pd-note { font-size: 13px; color: var(--muted); }
.pd-ft .muted { color: var(--muted); } .pd-ft .small { font-size: 13px; } .pd-ft .ok { color: var(--green); } .pd-ft .err { color: var(--red); }
.pd-ft .pd-empty { padding: 24px; text-align: center; color: var(--muted); }
.pd-ft .pd-card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px 16px; flex-wrap: wrap; margin-bottom: 10px; }
.pd-ft .pd-card-head h2, .pd-ft .pd-card-head h3 { margin: 0; }

/* ---------- строки инструментов, поля, кнопки ---------- */
.pd-ft .pd-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 12px; }
.pd-ft .pd-row .grow { flex: 1; }
.pd-ft .pd-toolbar { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 14px; }
.pd-ft .pd-toolbar .grow { flex: 1; min-width: 180px; }
.pd-ft input[type=text], .pd-ft input[type=number], .pd-ft input[type=search], .pd-ft input[type=datetime-local], .pd-ft select, .pd-ft textarea {
  font: inherit; font-size: 14px; color: var(--text); background: rgba(255, 255, 255, .06); border: 1px solid var(--line); border-radius: 12px; padding: 8px 12px; min-height: 40px; outline: none; -webkit-appearance: none; appearance: none; }
.pd-ft select { padding-right: 32px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2392D5FF' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 10px center; }
.pd-ft select option { color: #111; background: #fff; }
.pd-ft input::placeholder, .pd-ft textarea::placeholder { color: var(--faint); }
.pd-ft input:focus, .pd-ft select:focus, .pd-ft textarea:focus { border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(146, 213, 255, .18); }
.pd-ft input[type=datetime-local] { color-scheme: dark; }
.pd-ft textarea { width: 100%; min-height: 80px; resize: vertical; line-height: 1.5; }
.pd-ft input[type=range] { accent-color: var(--cyan); }
.pd-ft label.f { display: block; font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--faint); margin: 12px 0 6px; }
.pd-ft label.chk { font-size: 14px; display: inline-flex; align-items: center; gap: 8px; cursor: pointer; color: var(--muted); }
.pd-ft label.chk input { accent-color: var(--cyan); width: 16px; height: 16px; }
.pd-ft .pd-btn { position: relative; min-height: 40px; padding: 8px 16px; border: 0; border-radius: 999px; color: var(--text); background: rgba(255, 255, 255, .07); font: inherit; font-size: 13px; font-weight: 700; letter-spacing: .02em; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; gap: 6px; white-space: nowrap; transition: background-color .2s ease, box-shadow .2s ease, transform .15s ease, opacity .2s ease; }
.pd-ft .pd-btn:hover { background: rgba(255, 255, 255, .12); }
.pd-ft .pd-btn.primary { color: #04060f; background: linear-gradient(90deg, var(--cyan), var(--lav)); box-shadow: 0 8px 28px rgba(146, 213, 255, .22); }
.pd-ft .pd-btn.primary:hover { transform: translateY(-1px); box-shadow: 0 12px 36px rgba(146, 213, 255, .34); }
.pd-ft .pd-btn.small { min-height: 32px; padding: 5px 12px; font-size: 12px; }
.pd-ft .pd-btn.danger { color: var(--red); background: var(--red-soft); } .pd-ft .pd-btn.danger:hover { background: rgba(255, 107, 107, .24); }
.pd-ft .pd-btn.ghost { background: transparent; box-shadow: inset 0 0 0 1px var(--line); }
.pd-ft .pd-btn.on { background: var(--cyan-soft); color: var(--cyan); box-shadow: inset 0 0 0 1px var(--cyan); }
.pd-ft .pd-btn:disabled { opacity: .45; cursor: default; transform: none; box-shadow: none; }
.pd-ft .pd-setting { display: grid; grid-template-columns: 220px 1fr auto; gap: 10px; align-items: center; margin-bottom: 8px; font-size: 14px; }
.pd-ft .pd-setting b { min-width: 30px; text-align: right; font-family: "Tektur", sans-serif; font-variant-numeric: tabular-nums; color: var(--cyan); }
.pd-ft .pd-setting input[type=number] { width: 90px; }
.pd-ft .pd-pool { padding: 14px 16px; border-radius: 16px; background: rgba(255, 255, 255, .03); box-shadow: inset 0 0 0 1px var(--line); margin-bottom: 10px; }
.pd-ft .pd-pool .pd-row { margin-bottom: 8px; } .pd-ft .pd-pool .pd-row:last-child { margin-bottom: 0; }
.pd-ft .pd-pool input[type=text].name { width: 200px; } .pd-ft .pd-pool input[type=text].groups { flex: 1; min-width: 220px; } .pd-ft .pd-pool input[type=number] { width: 80px; }
.pd-ft .pd-pool .q { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); }
@media (max-width: 600px) { .pd-ft .pd-setting { grid-template-columns: 1fr auto; } .pd-ft .pd-setting > span { grid-column: 1 / -1; } }

/* ---------- таблицы ---------- */
.pd-ft table { width: 100%; border-collapse: collapse; font-size: 14px; }
.pd-ft th, .pd-ft td { text-align: left; padding: 10px 10px; border-bottom: 1px solid rgba(255, 255, 255, .08); vertical-align: middle; }
.pd-ft th { font-size: 11px; color: var(--faint); font-weight: 700; text-transform: uppercase; letter-spacing: .12em; white-space: nowrap; user-select: none; background: rgba(8, 11, 24, .96); position: sticky; top: 0; z-index: 1; }
.pd-ft th[data-s] { cursor: pointer; } .pd-ft th[data-s]:hover { color: var(--text); } .pd-ft th.on { color: var(--cyan); }
.pd-ft td.num, .pd-ft th.num { text-align: right; font-variant-numeric: tabular-nums; }
.pd-ft td.nm { white-space: nowrap; }
.pd-ft tr.click { cursor: pointer; } .pd-ft tr.click:hover td { background: rgba(255, 255, 255, .04); } .pd-ft tr.cur td { background: var(--cyan-soft); }
.pd-ft tr.sum td { background: rgba(255, 255, 255, .05); font-weight: 600; }
.pd-ft tbody tr:last-child td { border-bottom: 0; }
.pd-ft .ft-bar { display: inline-block; width: 72px; height: 5px; border-radius: 3px; background: rgba(255, 255, 255, .1); vertical-align: middle; margin-left: 8px; overflow: hidden; }
.pd-ft .ft-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--cyan), var(--lav)); border-radius: 3px; }
.pd-ft .pd-cell-sub { font-size: 12px; color: var(--faint); margin-top: 2px; }

/* ---------- метки ---------- */
.pd-ft .pd-tag { display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: .04em; line-height: 1.4; padding: 3px 9px; border-radius: 999px; background: var(--cyan-soft); color: var(--cyan); white-space: nowrap; margin-right: 4px; vertical-align: middle; }
.pd-ft .pd-tag.good { background: var(--green-soft); color: var(--green); } .pd-ft .pd-tag.warn { background: var(--amber-soft); color: var(--amber); }
.pd-ft .pd-tag.bad { background: var(--red-soft); color: var(--red); } .pd-ft .pd-tag.mute { background: rgba(255, 255, 255, .07); color: var(--muted); }
.pd-ft .pd-pill { display: inline-block; min-width: 26px; text-align: center; border-radius: 999px; padding: 1px 7px; font-weight: 700; font-size: 12px; font-variant-numeric: tabular-nums; }
.pd-ft .pd-pill.k3 { background: var(--green-soft); color: var(--green); } .pd-ft .pd-pill.k2 { background: var(--cyan-soft); color: var(--cyan); }
.pd-ft .pd-pill.k1 { background: var(--amber-soft); color: var(--amber); } .pd-ft .pd-pill.k0 { background: var(--red-soft); color: var(--red); }
.pd-ft .pd-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.pd-ft .pd-chips span { font-size: 12px; font-weight: 600; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 4px 10px; font-variant-numeric: tabular-nums; }

/* ---------- карточка участника ---------- */
.pd-ft .pd-person { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; margin-bottom: 14px; }
.pd-ft .pd-person h2 { margin: 0 0 4px; font-size: 22px; }
.pd-ft .pd-person .meta { color: var(--muted); font-size: 14px; }
.pd-ft .pd-index { text-align: right; }
.pd-ft .pd-index .v { display: block; font-family: "Tektur", sans-serif; font-size: 34px; font-weight: 700; line-height: 1; color: var(--cyan); font-variant-numeric: tabular-nums; }
.pd-ft .pd-index .v i { font-style: normal; color: var(--faint); }
.pd-ft .pd-index .l { display: block; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--faint); margin-top: 6px; }
.pd-ft .pd-kv { display: grid; grid-template-columns: max-content 1fr; gap: 6px 14px; font-size: 13px; }
.pd-ft .pd-kv b { color: var(--faint); font-weight: 700; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; padding-top: 2px; }
.pd-ft .pd-ans { white-space: pre-wrap; background: rgba(255, 255, 255, .04); box-shadow: inset 0 0 0 1px var(--line); border-radius: 14px; padding: 12px 14px; margin-bottom: 8px; line-height: 1.55; }
.pd-ft .pd-ans.empty { color: var(--faint); font-style: italic; }
.pd-ft .pd-ideas { margin: 0; padding-left: 22px; } .pd-ft .pd-ideas li { margin-bottom: 5px; } .pd-ft .pd-ideas li.top { font-weight: 700; color: var(--cyan); }
.pd-ft .pd-ideas .r { font-size: 11px; color: var(--faint); margin-left: 6px; font-weight: 400; }
.pd-ft .pd-dim { display: grid; grid-template-columns: 190px 1fr 96px; gap: 10px; align-items: center; font-size: 13px; margin-bottom: 7px; }
.pd-ft .pd-dim .ft-bar { width: 100%; margin: 0; } .pd-ft .pd-dim .pc { color: var(--muted); font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }
.pd-ft details { margin-top: 10px; } .pd-ft summary { cursor: pointer; color: var(--cyan); font-weight: 700; font-size: 14px; list-style: none; }
.pd-ft summary::before { content: "▸ "; color: var(--faint); } .pd-ft details[open] > summary::before { content: "▾ "; }
.pd-ft details[open] > summary { margin-bottom: 8px; }

/* ---------- панель оценки ---------- */
.pd-ft .pd-rate { position: sticky; top: 12px; }
.pd-ft .pd-rate-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.pd-ft .pd-rate-head b { font-family: "Tektur", sans-serif; font-size: 16px; }
.pd-ft .pd-crit { margin-bottom: 16px; } .pd-ft .pd-crit .n { font-weight: 700; margin-bottom: 2px; } .pd-ft .pd-crit .a { font-size: 12px; color: var(--muted); margin: 4px 0 8px; line-height: 1.45; }
.pd-ft .pd-seg { display: flex; gap: 6px; }
.pd-ft .pd-seg button { flex: 1; font: inherit; font-weight: 700; border: 0; box-shadow: inset 0 0 0 1px var(--line); background: transparent; color: var(--muted); border-radius: 999px; padding: 8px 0; min-height: 40px; cursor: pointer; transition: background-color .15s ease, color .15s ease; }
.pd-ft .pd-seg button:hover { background: rgba(255, 255, 255, .06); color: var(--text); }
.pd-ft .pd-seg button.on { background: var(--cyan-soft); box-shadow: inset 0 0 0 1px var(--cyan); color: var(--cyan); }
.pd-ft .pd-seg.v button.on[data-v=take] { background: var(--green-soft); box-shadow: inset 0 0 0 1px var(--green); color: var(--green); }
.pd-ft .pd-seg.v button.on[data-v=maybe] { background: var(--amber-soft); box-shadow: inset 0 0 0 1px var(--amber); color: var(--amber); }
.pd-ft .pd-seg.v button.on[data-v=no] { background: var(--red-soft); box-shadow: inset 0 0 0 1px var(--red); color: var(--red); }

/* ---------- списки отбора, методика ---------- */
.pd-ft .pd-sel { list-style: none; padding: 0; margin: 0; }
.pd-ft .pd-sel li { padding: 9px 0; border-bottom: 1px solid rgba(255, 255, 255, .08); display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.pd-ft .pd-sel li:last-child { border-bottom: 0; } .pd-ft .pd-sel li .n { flex: 1; min-width: 200px; }
.pd-ft .pd-sel li .i { color: var(--faint); width: 26px; font-family: "Tektur", sans-serif; font-variant-numeric: tabular-nums; }
.pd-ft .pd-method p, .pd-ft .pd-method li { max-width: 78ch; } .pd-ft .pd-method table { font-size: 13px; } .pd-ft .pd-method ul { padding-left: 20px; }
.pd-ft code { font-family: ui-monospace, "Cascadia Mono", Menlo, Consolas, monospace; font-size: 13px; background: var(--cyan-soft); color: var(--cyan); padding: 1px 6px; border-radius: 6px; }
.pd-ft .pd-list-row { display: flex; align-items: center; gap: 8px; padding: 8px 6px; border-bottom: 1px solid rgba(255, 255, 255, .08); cursor: pointer; font-size: 14px; }
.pd-ft .pd-list-row:hover { background: rgba(255, 255, 255, .04); } .pd-ft .pd-list-row.cur { background: var(--cyan-soft); }
.pd-ft .pd-list-row .nm { flex: 1; } .pd-ft .pd-list-row .ix { font-weight: 700; min-width: 30px; text-align: right; }

/* ---------- адаптив ---------- */
@media (max-width: 960px) { .pd-ft .pd-top { padding: 16px 20px; } .pd-ft .pd-shell { padding: 4px 16px 40px; } .pd-ft .pd-grid2, .pd-ft .pd-grid-half, .pd-ft .pd-grid-wide { grid-template-columns: 1fr; } .pd-ft .pd-rate { position: static !important; } }
@media (max-width: 580px) { .pd-ft .pd-top-mid { display: none; } .pd-ft .pd-card { padding: 18px; border-radius: 18px; } }

/* ---------- аналитика: выводы, сравнение когорт, механика измерений ---------- */
.pd-ft .pd-insight { position: relative; padding: 10px 14px 10px 18px; border-radius: 12px; background: rgba(146, 213, 255, .06); border-left: 3px solid var(--cyan); font-size: 14px; line-height: 1.55; margin: 0 0 10px; }
.pd-ft .pd-insight.small { font-size: 13px; padding: 8px 12px 8px 14px; }
.pd-ft .pd-insight b { color: var(--cyan); }
.pd-ft .pd-ped { font-size: 13px; color: var(--muted); line-height: 1.5; margin: 0 0 8px; padding-left: 18px; position: relative; }
.pd-ft .pd-ped::before { content: "→"; position: absolute; left: 2px; color: var(--lav); }
.pd-ft .pd-cmp { display: flex; align-items: center; gap: 10px 14px; flex-wrap: wrap; padding: 14px 20px; }
.pd-ft .pd-cmp label { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; color: var(--muted); }
.pd-ft .pd-cmp label b { font-family: "Tektur", sans-serif; color: var(--text); }
.pd-ft .pd-legend { display: inline-flex; align-items: center; gap: 4px 14px; flex-wrap: wrap; font-size: 13px; color: var(--muted); }
.pd-ft .pd-legend i { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.pd-ft .pd-mini { padding: 16px 18px; border-radius: 18px; background: rgba(255, 255, 255, .03); box-shadow: inset 0 0 0 1px var(--line); display: flex; flex-direction: column; }
.pd-ft .pd-mini-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 8px; font-size: 15px; flex-wrap: wrap; }
.pd-ft .pd-mini-head b { font-weight: 700; }
.pd-ft .pd-mini-stat { display: flex; gap: 12px; align-items: baseline; font-family: "Tektur", sans-serif; font-size: 22px; margin: 6px 0 8px; font-variant-numeric: tabular-nums; }
.pd-ft .pd-mini-stat .a { color: var(--cyan); } .pd-ft .pd-mini-stat .b { color: var(--lav); } .pd-ft .pd-mini-stat .d { font-family: "Exo 2", sans-serif; font-size: 14px; color: var(--muted); }
.pd-ft .pd-mini details { margin-top: auto; }
.pd-ft .pd-parts { display: grid; gap: 8px; margin-top: 8px; }
.pd-ft .pd-part { display: grid; grid-template-columns: 150px 1fr 48px; gap: 4px 10px; align-items: center; font-size: 12px; }
.pd-ft .pd-part .l { color: var(--text); } .pd-ft .pd-part .ft-bar { width: 100%; margin: 0; } .pd-ft .pd-part .v { text-align: right; font-variant-numeric: tabular-nums; }
.pd-ft .pd-part .n { grid-column: 1 / -1; color: var(--faint); font-size: 11px; line-height: 1.3; }
.pd-ft table.pd-stat th, .pd-ft table.pd-stat td { padding: 6px 8px; font-size: 13px; }
.pd-ft table.pd-stat td.a { color: var(--cyan); font-weight: 700; } .pd-ft table.pd-stat td.b { color: var(--lav); font-weight: 700; }
.pd-ft .pd-decomp .ft-bar { width: 64px; }
.pd-ft .pd-quad { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 8px; }
.pd-ft .pd-quad div { padding: 10px 12px; border-radius: 12px; background: rgba(255, 255, 255, .03); box-shadow: inset 0 0 0 1px var(--line); font-size: 13px; }
.pd-ft .pd-quad b { display: block; font-family: "Tektur", sans-serif; font-size: 22px; color: var(--cyan); }

/* ============================================================
   АНАЛИТИКА И ИНФОГРАФИКА · дополнение к staff.css (админ-панель, раскладка под 16:9)
   ============================================================ */
.pd-ft .pd-shell { width: min(100%, 1680px); }
.pd-ft .pd-grid2 { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.pd-ft .pd-grid-rate { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 14px; align-items: start; }
.pd-ft .pd-grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.pd-ft .pd-grid5 { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 1500px) { .pd-ft .pd-grid5 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 1100px) { .pd-ft .pd-grid-3 { grid-template-columns: 1fr 1fr; } .pd-ft .pd-grid5 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 960px) { .pd-ft .pd-grid-rate, .pd-ft .pd-grid-3 { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .pd-ft .pd-grid5 { grid-template-columns: 1fr; } }

/* число крупно, подпись мелко */
.pd-ft .pd-kpis { display: flex; flex-wrap: wrap; gap: 14px 32px; margin: 8px 0 16px; }
.pd-ft .pd-kpi { display: flex; flex-direction: column; min-width: 92px; }
.pd-ft .pd-kpi b { font-family: "Tektur", sans-serif; font-size: 34px; font-weight: 700; line-height: 1; letter-spacing: -.01em; font-variant-numeric: tabular-nums; color: var(--text); }
.pd-ft .pd-kpi b small { font-family: "Exo 2", sans-serif; font-size: 15px; font-weight: 600; color: var(--faint); margin-left: 2px; }
.pd-ft .pd-kpi span { max-width: 190px; font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--faint); margin-top: 7px; line-height: 1.3; }
.pd-ft .pd-kpi.a b { color: var(--cyan); } .pd-ft .pd-kpi.b b { color: var(--lav); } .pd-ft .pd-kpi.good b { color: var(--green); } .pd-ft .pd-kpi.warn b { color: var(--amber); } .pd-ft .pd-kpi.bad b { color: var(--red); }
.pd-ft .pd-kpi.sm b { font-size: 26px; }
.pd-ft .pd-brief { margin: 8px 0 6px; font-size: 14px; line-height: 1.45; color: var(--text); }
.pd-ft .pd-brief::before { content: "→ "; color: var(--cyan); }
.pd-ft .pd-insight { position: relative; padding: 10px 14px 10px 16px; border-radius: 12px; background: rgba(146, 213, 255, .06); border-left: 3px solid var(--cyan); font-size: 14px; line-height: 1.5; margin: 0 0 10px; }
.pd-ft .pd-insight b { color: var(--cyan); }
.pd-ft .pd-ped { font-size: 13px; color: var(--muted); margin: 0 0 8px; padding-left: 14px; border-left: 2px solid var(--line); }
.pd-ft .pd-note.warn { color: var(--amber); }

/* сравнение когорт */
.pd-ft .pd-cmp { display: flex; align-items: center; gap: 12px 18px; flex-wrap: wrap; padding: 14px 22px; }
.pd-ft .pd-cmp label { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); font-weight: 700; }
.pd-ft .pd-cmp label b { font-family: "Tektur", sans-serif; font-size: 15px; }
.pd-ft .pd-cmp label:nth-of-type(1) b { color: var(--cyan); } .pd-ft .pd-cmp label:nth-of-type(2) b { color: var(--lav); }
.pd-ft .pd-legend { display: inline-flex; align-items: center; gap: 6px 14px; flex-wrap: wrap; font-size: 13px; color: var(--muted); }
.pd-ft .pd-legend i { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }

/* карточки измерений */
.pd-ft .pd-mini { padding: 14px 16px; border-radius: 18px; background: rgba(255, 255, 255, .03); box-shadow: inset 0 0 0 1px var(--line); min-width: 0; }
.pd-ft .pd-mini-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; margin-bottom: 6px; font-size: 14px; line-height: 1.3; }
.pd-ft .pd-mini-head span { display: flex; flex-wrap: wrap; gap: 4px; justify-content: flex-end; }
.pd-ft .pd-mini-stat { display: flex; gap: 12px; align-items: baseline; font-family: "Tektur", sans-serif; font-size: 24px; margin: 4px 0 2px; font-variant-numeric: tabular-nums; }
.pd-ft .pd-mini-stat .a { color: var(--cyan); } .pd-ft .pd-mini-stat .b { color: var(--lav); } .pd-ft .pd-mini-stat .d { font-family: "Exo 2", sans-serif; font-size: 13px; color: var(--muted); font-weight: 600; }
.pd-ft .pd-mini .pd-brief { font-size: 13px; }
.pd-ft .pd-mini details { margin-top: 6px; } .pd-ft .pd-mini summary { font-size: 13px; }
.pd-ft .pd-parts { display: grid; gap: 6px; margin-top: 8px; }
.pd-ft .pd-part { display: grid; grid-template-columns: 120px 1fr 44px; gap: 8px; align-items: center; font-size: 12px; }
.pd-ft .pd-part .l { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .pd-ft .pd-part .ft-bar { width: 100%; margin: 0; } .pd-ft .pd-part .v { text-align: right; font-variant-numeric: tabular-nums; }
.pd-ft .pd-part .n { grid-column: 1 / -1; color: var(--faint); font-size: 11px; margin-top: -3px; }

/* таблицы статистики, разложение индекса */
.pd-ft table.pd-stat td, .pd-ft table.pd-stat th { padding: 6px 8px; font-size: 13px; }
.pd-ft table.pd-stat td.a { color: var(--cyan); font-weight: 700; } .pd-ft table.pd-stat td.b { color: var(--lav); font-weight: 700; }
.pd-ft .pd-decomp .ft-bar { width: 64px; }

/* граница прохода и состав списков */
.pd-ft .pd-stackbar { display: flex; height: 22px; border-radius: 8px; overflow: hidden; background: rgba(255, 255, 255, .06); margin: 6px 0 8px; }
.pd-ft .pd-stackbar i { display: flex; align-items: center; justify-content: center; font-style: normal; font-size: 12px; font-weight: 700; color: #05070f; min-width: 0; }
.pd-ft .pd-stackbar.empty { align-items: center; justify-content: center; color: var(--faint); font-size: 12px; }
.pd-ft .pd-stacks { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 6px; }
@media (max-width: 640px) { .pd-ft .pd-stacks { grid-template-columns: 1fr; } }

/* список полосок со статусом (диагностика) */
.pd-ft .pd-bl { display: grid; gap: 7px; margin-top: 8px; }
.pd-ft .pd-bl .row { display: grid; grid-template-columns: minmax(90px, 1.3fr) 2fr auto 10px; gap: 10px; align-items: center; font-size: 13px; }
.pd-ft .pd-bl-wide .pd-bl .row { grid-template-columns: minmax(150px, 2fr) 1.4fr auto 10px; }
.pd-ft .pd-bl .l { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text); }
.pd-ft .pd-bl .bar { height: 6px; border-radius: 3px; background: rgba(255, 255, 255, .08); overflow: hidden; }
.pd-ft .pd-bl .bar i { display: block; height: 100%; border-radius: 3px; background: var(--cyan); }
.pd-ft .pd-bl .bar i.warn { background: var(--amber); } .pd-ft .pd-bl .bar i.bad { background: var(--red); } .pd-ft .pd-bl .bar i.ok { background: var(--green); } .pd-ft .pd-bl .bar i.mute { background: rgba(255, 255, 255, .2); }
.pd-ft .pd-bl .v { font-variant-numeric: tabular-nums; color: var(--muted); white-space: nowrap; font-size: 12px; }
.pd-ft .pd-bl .dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(255, 255, 255, .2); }
.pd-ft .pd-bl .dot.ok { background: var(--green); box-shadow: 0 0 8px rgba(52, 211, 153, .7); } .pd-ft .pd-bl .dot.warn { background: var(--amber); box-shadow: 0 0 8px rgba(255, 183, 3, .6); } .pd-ft .pd-bl .dot.bad { background: var(--red); box-shadow: 0 0 8px rgba(255, 107, 107, .6); }
.pd-ft .pd-sum { display: inline-flex; gap: 8px; font-size: 12px; font-weight: 700; font-variant-numeric: tabular-nums; }
.pd-ft .pd-sum i { display: inline-flex; align-items: center; gap: 4px; font-style: normal; } .pd-ft .pd-sum i::before { content: ""; width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.pd-ft .pd-sum .ok { color: var(--green); } .pd-ft .pd-sum .ok::before { background: var(--green); } .pd-ft .pd-sum .warn { color: var(--amber); } .pd-ft .pd-sum .warn::before { background: var(--amber); } .pd-ft .pd-sum .bad { color: var(--red); } .pd-ft .pd-sum .bad::before { background: var(--red); }
.pd-ft .pd-unit { font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--faint); margin: -4px 0 4px; }

/* квадранты */
.pd-ft .pd-quad { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 6px; }
.pd-ft .pd-quad > div { padding: 12px 14px; border-radius: 14px; background: rgba(255, 255, 255, .04); box-shadow: inset 0 0 0 1px var(--line); font-size: 12px; color: var(--muted); line-height: 1.3; }
.pd-ft .pd-quad b { display: block; font-family: "Tektur", sans-serif; font-size: 26px; color: var(--text); margin-bottom: 4px; font-variant-numeric: tabular-nums; }
.pd-ft .pd-quad b small { font-family: "Exo 2", sans-serif; font-size: 13px; color: var(--faint); margin-left: 4px; }
.pd-ft .pd-quad > div.top { box-shadow: inset 0 0 0 1px var(--cyan); } .pd-ft .pd-quad div.top b { color: var(--cyan); }

/* методика: карточки измерений, таймлайн блоков, якоря */
.pd-ft .pd-hero { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.pd-ft .pd-hero h2 { font-size: 26px; margin: 0; }
.pd-ft .pd-dimcard { padding: 16px 18px; border-radius: 18px; background: rgba(255, 255, 255, .03); box-shadow: inset 0 0 0 1px var(--line); display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.pd-ft .pd-dimcard .n { font-family: "Tektur", sans-serif; font-size: 22px; color: var(--cyan); line-height: 1; }
.pd-ft .pd-dimcard .t { font-weight: 700; font-size: 15px; line-height: 1.3; }
.pd-ft .pd-dimcard .h { font-size: 13px; color: var(--muted); line-height: 1.45; flex: 1; }
.pd-ft .pd-dimcard .m { display: flex; flex-wrap: wrap; gap: 4px; }
.pd-ft .pd-dimcard .w { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--faint); }
.pd-ft .pd-dimcard .w .ft-bar { width: 70px; margin: 0; }
.pd-ft .pd-tl { display: grid; gap: 8px; }
.pd-ft .pd-tl .row { display: grid; grid-template-columns: 150px 1fr 56px; gap: 12px; align-items: center; font-size: 13px; }
.pd-ft .pd-tl .row .bar { height: 12px; border-radius: 6px; background: rgba(255, 255, 255, .06); overflow: hidden; }
.pd-ft .pd-tl .row .bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--cyan), var(--lav)); border-radius: 6px; }
.pd-ft .pd-tl .row .bar i.hard { background: var(--amber); }
.pd-ft .pd-tl .row .t { font-family: "Tektur", sans-serif; font-variant-numeric: tabular-nums; text-align: right; }
.pd-ft .pd-tl .row .d { font-size: 12px; color: var(--faint); }
.pd-ft .pd-anchor { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 8px; }
.pd-ft .pd-anchor > div { padding: 12px 14px; border-radius: 14px; background: rgba(255, 255, 255, .03); box-shadow: inset 0 0 0 1px var(--line); font-size: 13px; color: var(--muted); line-height: 1.4; }
.pd-ft .pd-anchor b { display: block; font-family: "Tektur", sans-serif; font-size: 22px; margin-bottom: 4px; }
.pd-ft .pd-anchor > div:nth-child(1) b { color: var(--red); } .pd-ft .pd-anchor > div:nth-child(2) b { color: var(--amber); } .pd-ft .pd-anchor > div:nth-child(3) b { color: var(--green); }
.pd-ft .pd-formula { font-family: "Tektur", sans-serif; font-size: 20px; color: var(--text); padding: 12px 16px; border-radius: 14px; background: rgba(146, 213, 255, .06); box-shadow: inset 0 0 0 1px rgba(146, 213, 255, .25); margin: 8px 0 12px; }
.pd-ft .pd-formula i { font-style: normal; color: var(--cyan); }
.pd-ft .pd-limits { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 10px; }
.pd-ft .pd-limits > div { padding: 12px 14px; border-radius: 14px; background: rgba(255, 255, 255, .03); box-shadow: inset 0 0 0 1px var(--line); font-size: 13px; color: var(--muted); line-height: 1.45; }
.pd-ft .pd-limits > div > b { display: block; color: var(--text); margin-bottom: 4px; font-size: 14px; }
@media (max-width: 1100px) { .pd-ft .pd-anchor { grid-template-columns: 1fr; } }

/* вложенные панели и секции внутри карточки: воздух между смысловыми блоками */
.pd-ft .pd-subs { gap: 18px; margin-top: 6px; }
.pd-ft .pd-sub { padding: 20px 22px 22px; border-radius: 18px; background: rgba(255, 255, 255, .025); box-shadow: inset 0 0 0 1px var(--line); min-width: 0; }
.pd-ft .pd-sub-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.pd-ft .pd-sub-head h3 { margin: 0; font-size: 17px; }
.pd-ft .pd-sub .pd-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); gap: 14px 16px; margin: 6px 0 4px; }
.pd-ft .pd-sub .pd-kpi { min-width: 0; } .pd-ft .pd-sub .pd-kpi span { max-width: none; }
.pd-ft .pd-sec { margin-top: 26px; padding-top: 18px; border-top: 1px dashed var(--line); }
.pd-ft .pd-sec-t { font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--cyan); margin-bottom: 12px; }
.pd-ft .pd-sec .pd-kpis { margin: 2px 0 10px; }
.pd-ft .pd-sec svg { margin-top: 6px; }
.pd-ft .pd-sec .pd-legend { margin-top: 10px; }
.pd-ft .pd-sec .pd-note.warn { margin: 12px 0 0; }
.pd-ft .pd-sec .pd-bl { margin-top: 0; }

/* ассистент */
.pd-ft .pd-ask { display: flex; gap: 10px; align-items: stretch; flex-wrap: wrap; margin-top: 4px; }
.pd-ft .pd-ask input[type=text] { flex: 1 1 480px; min-width: 240px; font-size: 15px; padding: 12px 16px; border-radius: 14px; }
.pd-ft .pd-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.pd-ft .pd-chip { font: inherit; font-size: 12px; padding: 5px 11px; border-radius: 999px; background: rgba(255, 255, 255, .04); border: 1px solid var(--line); color: var(--muted); cursor: pointer; }
.pd-ft .pd-chip:hover, .pd-ft .pd-chip:focus-visible { border-color: var(--cyan); color: var(--text); outline: none; }
.pd-ft .pd-ans { margin-top: 18px; padding-top: 16px; border-top: 1px dashed var(--line); }
.pd-ft .pd-ans-how { font-size: 13px; color: var(--muted); margin-bottom: 10px; line-height: 1.6; } .pd-ft .pd-ans-how b { color: var(--cyan); }
.pd-ft .pd-ans .pd-kpi { display: inline-flex; margin-right: 28px; }
.pd-ft table.pd-ans-table td, .pd-ft table.pd-ans-table th { padding: 8px 10px; }
.pd-ft table.pd-ans-table tr.click { cursor: pointer; } .pd-ft table.pd-ans-table tr.click:hover td { background: rgba(255, 255, 255, .03); }
/* шкала тепловой карты */
.pd-ft .pd-scale { display: flex; align-items: center; gap: 6px; font-size: 11px; color: var(--faint); margin: 8px 0 10px; max-width: 320px; }
.pd-ft .pd-scale i, .pd-ft .pd-scale b { flex: 1; height: 8px; border-radius: 4px; }
.pd-ft .pd-scale i { background: linear-gradient(90deg, #ff6b6b, #161b2c); } .pd-ft .pd-scale b { background: linear-gradient(90deg, #161b2c, #92D5FF); }

/* подтверждение участия */
.pd-ft .pd-log { display: grid; grid-template-columns: 92px 1fr; gap: 10px; font-size: 13px; padding: 6px 0; border-bottom: 1px dashed var(--line); }
.pd-ft .pd-log:last-child { border-bottom: 0; } .pd-ft .pd-log .t { color: var(--faint); font-variant-numeric: tabular-nums; white-space: nowrap; }
.pd-ft .pd-log .ok { color: var(--green); } .pd-ft .pd-log .err { color: var(--red); }
.pd-ft .pd-sel .pd-acts { display: flex; flex-wrap: wrap; gap: 4px; justify-content: flex-end; }
.pd-ft .pd-sel li.off .n > b { text-decoration: line-through; color: var(--muted); }

/* обращения студентов */
.pd-ft .pd-badge { display: inline-block; margin-left: 8px; padding: 1px 8px; border-radius: 999px; font-size: 11px; font-weight: 700; background: var(--cyan-soft); color: var(--cyan); vertical-align: 1px; }
.pd-ft .pd-badge.warn { background: var(--red-soft); color: var(--red); box-shadow: 0 0 10px rgba(255, 107, 107, .45); }
.pd-ft .pd-fb { padding: 18px 22px; }
.pd-ft .pd-fb.urgent { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .1), inset 0 0 0 1px rgba(255, 107, 107, .45); background: rgba(255, 107, 107, .05); }
.pd-ft .pd-fb.done { opacity: .72; }
.pd-ft .pd-fb-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.pd-ft .pd-fb-tags { display: flex; flex-wrap: wrap; gap: 4px; }
.pd-ft .pd-fb-who { font-size: 14px; color: var(--muted); margin-bottom: 8px; } .pd-ft .pd-fb-who b { color: var(--text); } .pd-ft .pd-fb-who a { color: var(--cyan); text-decoration: none; }
.pd-ft .pd-fb-msg { white-space: pre-wrap; font-size: 15px; line-height: 1.55; padding: 12px 14px; border-radius: 12px; background: rgba(255, 255, 255, .04); }
.pd-ft .pd-fb-act { margin-top: 12px; display: grid; gap: 8px; } .pd-ft .pd-fb-act textarea { min-height: 56px; } .pd-ft .pd-fb-act .pd-row { margin: 2px 0 0; align-items: center; gap: 8px; }

