/* Отдельный инструмент PI Planning: оболочка, таймлайн вех, экраны этапов, персоны, сессия, экран трансляции. */

html, body { height: 100%; }
body { overflow: hidden; }
.pip-app { display: grid; grid-template-columns: 272px minmax(0, 1fr); height: 100vh; }
.pip-main { overflow-y: auto; padding: 26px 32px 60px; position: relative;
  background: radial-gradient(1200px 520px at 100% -10%, #f1ecff 0%, transparent 60%), radial-gradient(900px 420px at -10% 0%, #fff1e8 0%, transparent 55%), var(--bg); }
.pip-main .pip-page { max-width: 1560px; }
.pip-video { display: block; width: 100%; aspect-ratio: 16 / 9; background: #0f0c23; border-radius: var(--r-lg); }

/* ── Таймлайн слева ── */
.pip-rail { background: #14112b; color: #d9d6ee; display: flex; flex-direction: column; padding: 20px 16px 16px; overflow-y: auto; gap: 14px; }
.pip-brand { display: flex; align-items: center; gap: 10px; font-family: 'Unbounded', sans-serif; font-weight: 600; font-size: 16px; color: #fff; letter-spacing: -.01em; }
.pip-brand-mark { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; font-size: 13px; color: #fff; background: linear-gradient(160deg, #f59e0b, #e0559a 55%, #6d4ff0); box-shadow: 0 6px 18px rgba(224, 85, 154, .35); }
.pip-rail-pi { display: flex; flex-direction: column; gap: 4px; font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #8d88b0; }
.pip-rail-pi select { background-color: #221e40; border-color: #36315e; color: #fff; font-size: 13px; padding: 8px 32px 8px 10px; }
.pip-ms-all { border: 1px solid #36315e; background: transparent; color: #d9d6ee; font: 600 13px 'Manrope', sans-serif; padding: 8px 12px; border-radius: var(--r); cursor: pointer; text-align: left; }
.pip-ms-all.cur, .pip-ms-all:hover { background: #221e40; color: #fff; border-color: #4c4582; }
.pip-ms-list { list-style: none; position: relative; display: flex; flex-direction: column; gap: 2px; padding-left: 0; }
.pip-ms-list::before, .pip-ms-list::after { content: ''; position: absolute; left: 17px; top: 18px; width: 2px; border-radius: 2px; }
.pip-ms-list::before { bottom: 18px; background: #2e2a52; }
.pip-ms-list::after { height: var(--fill); background: linear-gradient(180deg, #f59e0b, #e0559a, #6d4ff0); transition: height .6s ease; }
.pip-ms { position: relative; z-index: 1; display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 8px; align-items: start; width: 100%; border: none; background: none; color: inherit; font-family: inherit; text-align: left; padding: 8px 6px 8px 0; border-radius: var(--r); cursor: pointer; }
button.pip-ms:hover { background: #1d1a39; }
.pip-ms.cur { background: #262148; }
.pip-ms.in-view .pip-ms-body b { color: #fff; }
.pip-ms-dot { justify-self: center; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; font-weight: 800; background: #14112b; border: 2px solid #4c4582; color: #a29dc8; transition: transform .2s; }
.pip-ms.cur .pip-ms-dot, .pip-ms.in-view .pip-ms-dot { transform: scale(1.12); }
.pip-ms-body { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.pip-ms-body b { font-size: 13px; color: #e8e6f6; font-weight: 600; }
.pip-ms-body small { font-size: 11px; color: #8d88b0; }
.pip-ms-body em { font-style: normal; font-size: 11px; color: #b7b2d8; }
.pip-ms-body em.late { color: #ff8fa3; font-weight: 700; }
.pip-ms.st-ok .pip-ms-dot, .pip-ms.st-done .pip-ms-dot { background: var(--c, #6d4ff0); border-color: var(--c, #6d4ff0); color: #fff; }
.pip-ms.st-prep .pip-ms-dot { border-color: var(--c); color: #fff; }
.pip-ms.st-stale .pip-ms-dot { border-color: #f59e0b; color: #f59e0b; }
.pip-ms.st-active .pip-ms-dot { background: #fff; border-color: var(--c, #fff); color: #14112b; box-shadow: 0 0 0 0 rgba(255, 255, 255, .5); animation: pipBeat 1.8s ease-out infinite; }
.pip-ms.st-active .pip-ms-body small { color: #fff; font-weight: 700; }
@keyframes pipBeat { 0% { box-shadow: 0 0 0 0 rgba(255, 255, 255, .45); } 100% { box-shadow: 0 0 0 10px rgba(255, 255, 255, 0); } }
.pip-ms-key { cursor: default; }
.pip-ms-key .pip-ms-dot { border-radius: 6px; transform: rotate(45deg) scale(.82); font-size: 0; }
.pip-ms-key.st-done .pip-ms-dot { background: #e0559a; border-color: #e0559a; }
.pip-ms-key.st-active .pip-ms-dot { background: #fff; transform: rotate(45deg) scale(.82); }
.pip-ms-edit { align-self: flex-start; color: #b7b2d8; }
.pip-ms-edit:hover { color: #fff; background: #221e40; }
.pip-rail-foot { margin-top: auto; display: flex; flex-direction: column; gap: 4px; padding-top: 12px; border-top: 1px solid #2e2a52; }
.pip-rail-link { color: #b7b2d8; text-decoration: none; font-size: 13px; padding: 6px 8px; border-radius: var(--r); }
.pip-rail-link:hover { color: #fff; background: #221e40; }
.pip-ms-row { align-items: center; }
.pip-ms-row > span { flex: 1; font-size: 13px; }
.pip-ms-row input { max-width: 180px; }

/* ── Шапка и экраны этапов ── */
.pip-hero.compact .pip-title { font-size: 26px; display: flex; align-items: center; gap: 12px; }
.pip-title-no { width: 40px; height: 40px; border-radius: 12px; display: inline-grid; place-items: center; font-size: 18px; color: #fff !important; background: var(--c) !important; -webkit-background-clip: border-box !important; background-clip: border-box !important; box-shadow: 0 8px 20px color-mix(in srgb, var(--c) 40%, transparent); }
.pip-region-select { width: auto; padding: 6px 32px 6px 12px; font-size: 12px; font-weight: 600; border-radius: 999px; background-color: var(--bg4); }
.pip-region-select.active { background-color: var(--text); color: #fff; }
.pip-staged .pip-tier { width: 100%; }
.pip-stage-body { margin-top: 4px; }
.pip-stage-nav { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 18px; padding-top: 14px; border-top: 1px dashed var(--border2); }
.pip-tier.pending { background: repeating-linear-gradient(135deg, #fbfaff 0 10px, #f6f4fd 10px 20px); box-shadow: none; border-style: dashed; }
.pip-tier.pending .pip-rim { background: linear-gradient(90deg, color-mix(in srgb, var(--c) 9%, #fff), transparent); }
.pip-tier.pending .pip-rim-no { background: color-mix(in srgb, var(--c) 45%, #fff); }
.pip-pending { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.pip-pending > div { flex: 1; min-width: 220px; display: flex; flex-direction: column; gap: 2px; }
.pip-pending b { font-size: 14px; }
.pip-pending span { font-size: 12px; color: var(--text3); }
.pip-pending-ico { font-size: 22px; }
.pip-neck.idle .pip-dots i { animation-duration: 6s; opacity: .5; }

/* ── Сессия ── */
.pip-sessbar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 10px 14px; margin: -4px 0 16px; border-radius: var(--r-lg); background: var(--bg2); border: 1px dashed var(--border2); font-size: 13px; color: var(--text2); }
.pip-sessbar > span:first-child { flex: 1; min-width: 240px; }
.pip-sessbar.live { border: 1px solid #c7b8f6; background: linear-gradient(90deg, #f6f1ff, #fff6f2); color: var(--text); }
.pip-sessbar.live > span:nth-child(2) { flex: 1; }
.pip-sessbar.done { border-style: solid; background: #f3fbf6; }
.pip-live { color: #e11d48; font-weight: 800; font-size: 12px; letter-spacing: .02em; animation: pipBlink 1.6s ease-in-out infinite; }
@keyframes pipBlink { 50% { opacity: .45; } }
.pip-sess { border-radius: var(--r-xl); border: 1px solid var(--border); background: var(--bg2); box-shadow: var(--shadow); margin-bottom: 18px; overflow: hidden; }
.pip-sess.live { border-color: #c7b8f6; box-shadow: 0 10px 34px rgba(109, 79, 240, .14); }
.pip-sess.done > header { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--border); background: #f3fbf6; flex-wrap: wrap; }
.pip-sess.done > header span { color: var(--text3); font-size: 12px; margin-right: auto; }
.pip-sess-note { padding: 14px 16px; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; font-size: 13px; color: var(--text2); border-style: dashed; box-shadow: none; }
.pip-steps { list-style: none; display: flex; gap: 0; padding: 0; background: #14112b; }
.pip-steps li { flex: 1; }
.pip-steps li > * { width: 100%; display: flex; align-items: center; gap: 8px; padding: 12px 14px; border: none; background: none; color: #8d88b0; font: 600 13px 'Manrope', sans-serif; text-align: left; cursor: pointer; border-bottom: 3px solid transparent; }
.pip-steps li span { cursor: default; }
.pip-steps em { font-style: normal; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; background: #2e2a52; color: #d9d6ee; flex: none; }
.pip-steps li.past > * { color: #b7b2d8; }
.pip-steps li.past em { background: #4c4582; }
.pip-steps li.cur > * { color: #fff; border-bottom-color: #f59e0b; background: #1f1b3d; }
.pip-steps li.cur em { background: linear-gradient(160deg, #f59e0b, #e0559a); color: #fff; }
.pip-step { padding: 18px; }
.pip-leadbar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 12px 18px; border-top: 1px solid var(--border); background: var(--bg3); }
.pip-leadbar-sp { flex: 1; }
.pip-tctl { display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.pip-tmin { width: 70px !important; padding: 6px 8px !important; }
.pip-timer { font-family: 'JetBrains Mono', monospace; font-weight: 600; font-size: 22px; letter-spacing: .02em; color: var(--text); font-variant-numeric: tabular-nums; }
.pip-timer.small { font-size: 15px; padding: 2px 10px; border-radius: 999px; background: #fff; border: 1px solid var(--border); }
.pip-timer.big { font-size: 54px; line-height: 1; }
.pip-timer.huge { font-size: clamp(64px, 11vw, 180px); line-height: 1; }
.pip-timer.off { color: var(--text3); opacity: .5; }
.pip-timer.paused { color: var(--text3); }
.pip-timer.warn { color: #ea580c; animation: pipBlink 1s ease-in-out infinite; }
.pip-timer.over { color: #e11d48; font-size: inherit; }
.pip-timer.big.over, .pip-timer.huge.over { font-size: 40px; }
.pip-step-video { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 18px; align-items: start; }
.pip-step-side { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; font-size: 13px; }
.pip-media { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-top: 10px; font-size: 13px; color: var(--text2); }
.pip-step-talk { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.pip-step-talk > div { display: flex; flex-direction: column; gap: 4px; max-width: 640px; }
.pip-step-talk b { font-family: 'Unbounded', sans-serif; font-size: 18px; }
.pip-step-talk span { color: var(--text2); font-size: 13px; }
.pip-step-round { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 22px; align-items: start; }
.pip-step-round.empty { grid-template-columns: 1fr; }
.pip-step-live { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.pip-step-acts { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.pip-step-review { display: flex; flex-direction: column; gap: 14px; }
.pip-step-review > .pip-step-live { flex-direction: row; align-items: center; flex-wrap: wrap; gap: 18px; }
.pip-qr { display: flex; flex-direction: column; gap: 8px; align-items: center; background: #fff; border: 1px solid var(--border); border-radius: var(--r-lg); padding: 14px; box-shadow: var(--shadow-sm); }
.pip-qr img { width: 100%; max-width: 240px; aspect-ratio: 1; image-rendering: pixelated; }
.pip-qr a { font-family: 'JetBrains Mono', monospace; font-size: 11px; color: var(--purple); word-break: break-all; text-align: center; }

/* Итоги круга */
.pip-roundbox:empty::before { content: 'Загружаю итоги…'; color: var(--text3); font-size: 13px; }
.pip-res { display: flex; flex-direction: column; gap: 12px; }
.pip-res + .pip-res { margin-top: 18px; padding-top: 18px; border-top: 1px dashed var(--border2); }
.pip-res-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.pip-res-n { font-size: 14px; color: var(--text2); }
.pip-res-n b { font-family: 'Unbounded', sans-serif; font-size: 26px; color: var(--text); margin-right: 4px; }
.pip-res-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.pip-res-q { border: 1px solid var(--border); border-radius: var(--r-lg); padding: 12px 14px; background: var(--bg2); display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.pip-res-q.text, .pip-res-q.vote { grid-column: span 2; }
.pip-res-title { font-size: 13px; font-weight: 700; }
.pip-res-title small { color: var(--text3); font-weight: 500; }
.pip-res-big { display: flex; align-items: baseline; gap: 8px; }
.pip-res-big b { font-family: 'Unbounded', sans-serif; font-size: 34px; background: linear-gradient(90deg, #f59e0b, #e0559a 50%, #6d4ff0); -webkit-background-clip: text; background-clip: text; color: transparent; }
.pip-res-big small { color: var(--text3); font-size: 12px; }
.pip-dist { display: grid; grid-template-columns: repeat(6, 1fr); gap: 4px; height: 70px; align-items: end; }
.pip-dist span { display: flex; flex-direction: column; justify-content: flex-end; align-items: center; height: 100%; gap: 3px; }
.pip-dist i { width: 100%; min-height: 3px; border-radius: 4px 4px 2px 2px; background: linear-gradient(180deg, #a24ee6, #6d4ff0); transition: height .5s ease; }
.pip-dist span:nth-child(-n+3) i { background: linear-gradient(180deg, #fbbf24, #f97362); }
.pip-dist em { font-style: normal; font-size: 11px; color: var(--text3); }
.pip-vote { display: grid; grid-template-columns: minmax(0, 1fr) 40% 34px; gap: 8px; align-items: center; font-size: 13px; }
.pip-vote em { font-style: normal; font-size: 11px; color: var(--text3); margin-left: 4px; }
.pip-vote i { height: 10px; border-radius: 6px; background: var(--bg4); position: relative; overflow: hidden; }
.pip-vote i::after { content: ''; position: absolute; inset: 0 auto 0 0; width: var(--w); background: linear-gradient(90deg, #f97362, #e0559a); border-radius: 6px; transition: width .5s ease; }
.pip-vote b { text-align: right; }
.pip-cl { border-left: 3px solid #e0559a; padding: 4px 0 4px 10px; display: flex; flex-direction: column; gap: 4px; }
.pip-cl > b { font-size: 13px; }
.pip-cl > em { font-style: normal; font-size: 11px; color: var(--text3); }
.pip-cl-n { align-self: flex-start; font-size: 11px; font-weight: 800; padding: 1px 8px; border-radius: 999px; background: #fde7ef; color: #be185d; }
.pip-cl blockquote, .pip-cand blockquote { font-size: 12px; color: var(--text2); background: var(--bg3); border-radius: var(--r); padding: 6px 8px; }
.pip-cl blockquote.ok, .pip-cand blockquote.ok { background: #ecfdf3; color: #065f46; }
.pip-res-teams { font-size: 12px; margin-top: 6px; }
.pip-raw { display: flex; flex-direction: column; gap: 4px; font-size: 13px; }
.pip-raw > div { padding: 6px 8px; background: var(--bg3); border-radius: var(--r); }
.pip-raw em { font-style: normal; color: var(--text3); font-size: 11px; }
.pip-review h4 { margin: 4px 0 8px; font-size: 14px; }
.pip-cands { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 10px; }
.pip-cand { border: 1px solid var(--border); border-radius: var(--r-lg); padding: 12px; display: flex; flex-direction: column; gap: 8px; background: var(--bg2); }
.pip-cand-head { display: flex; gap: 8px; align-items: flex-start; justify-content: space-between; }
.pip-cand-head b { font-size: 14px; }
.pip-cand-meta { font-size: 12px; color: var(--text3); }
.pip-cand-act { display: flex; gap: 6px; flex-wrap: wrap; margin-top: auto; }
.pip-cand-dec { font-weight: 700; font-size: 13px; }
.pip-cand.dec-focus { border-color: #a7f3d0; background: #f3fbf6; }
.pip-cand.dec-backlog { border-color: #c7d2fe; background: #f5f7ff; }
.pip-cand.dec-later { opacity: .6; }

/* ── Персоны рядом с проблемами ── */
.pip-selbar { position: sticky; top: -26px; z-index: 5; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 10px 12px; margin: -4px -4px 14px; border-radius: var(--r-lg); background: rgba(255, 255, 255, .92); backdrop-filter: blur(6px); border: 1px solid var(--border); font-size: 13px; }
.pip-selbar-text { flex: 1; min-width: 220px; color: var(--text2); }
.pip-selbar-hint { font-size: 12px; color: #b45309; }
.pip-pp { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(300px, 1fr); gap: 18px; align-items: start; }
.pip-pp-head { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.pip-pp-head h3 { font-family: 'Unbounded', sans-serif; font-size: 14px; font-weight: 600; }
.pip-pp-head h3 span { color: var(--text3); font-weight: 500; }
.pip-pp-head .text-muted { font-size: 12px; }
.pip-pp .pip-problems { grid-template-columns: 1fr; gap: 6px; }
.pip-pp-personas { position: sticky; top: 40px; max-height: calc(100vh - 80px); overflow-y: auto; padding: 12px; border-radius: var(--r-lg); background: #faf9fe; border: 1px solid var(--border); }
.pip-pp-note { font-size: 11px; color: var(--text3); margin: -4px 0 10px; }
.pip-prow, .pip-persona { position: relative; display: grid; align-items: center; gap: 10px; border: 1.5px solid var(--border); border-radius: var(--r-lg); background: var(--bg2); cursor: pointer; transition: border-color .15s, box-shadow .15s, opacity .2s, transform .15s, background .15s; }
.pip-prow { grid-template-columns: 26px minmax(0, 1fr) 92px auto 28px; padding: 9px 10px; }
.pip-prow:hover, .pip-persona:hover { border-color: var(--border2); }
.pip-prow:focus-visible, .pip-persona:focus-visible { outline: 2px solid var(--purple); outline-offset: 2px; }
.pip-prow-rank { font-size: 12px; font-weight: 800; color: var(--text3); text-align: center; }
.pip-prow-main { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.pip-prow-title { font-weight: 700; font-size: 13px; }
.pip-prow-meta { font-size: 11px; color: var(--text3); }
.pip-top { display: inline-block; font-size: 10px; font-weight: 800; color: #9a3412; background: #ffedd5; border-radius: 999px; padding: 0 6px; margin-right: 6px; }
.pip-pin { margin-right: 4px; }
.pip-prow-reach { text-align: right; display: flex; flex-direction: column; }
.pip-prow-reach b { font-size: 15px; }
.pip-prow-reach small { font-size: 10px; color: var(--text3); line-height: 1.2; }
.pip-prow-open { width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--border); background: var(--bg2); color: var(--text3); cursor: pointer; font-size: 13px; }
.pip-prow-open:hover { color: var(--purple); border-color: var(--purple); }
.pip-hitcount { font-size: 11px; font-weight: 800; color: #be185d; white-space: nowrap; }
.pip-hitcount:empty { display: none; }
.pip-prow.focus, .pip-persona.focus { background: linear-gradient(90deg, #fff7ed, #fff); }
.is-sel { border-color: var(--purple) !important; background: #f3efff !important; box-shadow: 0 0 0 3px rgba(124, 58, 237, .14); }
.is-hit { border-color: #f9a8d4 !important; background: #fff5fa !important; }
.is-hit-primary { border-color: #e0559a !important; background: #fde7ef !important; box-shadow: 0 0 0 2px rgba(224, 85, 154, .18); transform: translateX(2px); }
.is-dim { opacity: .38; }
.pip-preg { margin-bottom: 12px; }
.pip-preg > header { display: flex; flex-direction: column; gap: 1px; margin-bottom: 6px; }
.pip-preg > header b { font-size: 13px; }
.pip-preg > header span { font-size: 11px; color: var(--text3); }
.pip-preg-model { font-size: 12px; color: var(--text2); margin: 0 0 8px; }
.pip-personas { display: flex; flex-direction: column; gap: 5px; }
.pip-persona { grid-template-columns: 62px minmax(0, 1fr) auto 26px; padding: 7px 8px; font-size: 12px; }
.pip-persona-code { font-family: 'JetBrains Mono', monospace; font-size: 11px; font-weight: 600; color: var(--purple); }
.pip-persona-name { font-weight: 600; }
.pip-persona-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.pip-persona-share { font-size: 11px; color: var(--text3); }
.pip-star { font-size: 11px; }
.pip-preg-none, .pip-preg-low { font-size: 11px; color: var(--text3); padding: 6px 8px; border: 1px dashed var(--border2); border-radius: var(--r); margin-top: 4px; }
.pip-focus-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; }
.pip-focus-reg { border: 1px solid var(--border); border-radius: var(--r-lg); padding: 12px 14px; background: linear-gradient(180deg, #fff7f3, #fff); }
.pip-focus-reg header { display: flex; justify-content: space-between; gap: 8px; margin-bottom: 8px; font-size: 13px; }
.pip-focus-reg header span { color: var(--text3); font-size: 12px; }
.pip-focus-reg ol { padding-left: 18px; display: flex; flex-direction: column; gap: 4px; font-size: 13px; }
.pip-focus-personas { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.pip-pchip { border: 1px solid #f9a8d4; background: #fff5fa; color: #9d174d; font: 600 12px 'Manrope', sans-serif; padding: 3px 10px; border-radius: 999px; cursor: pointer; }
.pip-linklike { border: none; background: none; padding: 0; font: inherit; color: var(--text); text-align: left; cursor: pointer; text-decoration: underline; text-decoration-color: var(--border2); text-underline-offset: 3px; }
.pip-linklike:hover { color: var(--purple); }
.pip-pcard h4 { margin: 14px 0 6px; font-size: 14px; }
.pip-pcard-sum { font-size: 14px; }
.pip-plink-act { display: inline-flex; gap: 4px; flex-wrap: wrap; }
.pip-link-add { margin-top: 8px; }
.pip-link-add select { flex: 1; min-width: 0; }
.pip-md-tables table { font-size: 12px; border-collapse: collapse; margin: 6px 0; display: block; overflow-x: auto; }
.pip-md-tables th, .pip-md-tables td { border: 1px solid var(--border); padding: 3px 6px; }
.pip-imp { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 13px; margin-top: 8px; }

/* ── Экран трансляции ── */
.pip-screen-mode .pip-app { grid-template-columns: 1fr; }
.pip-screen-mode .pip-rail { display: none; }
.pip-screen-mode .pip-main { padding: 3vh 4vw; background: radial-gradient(1400px 700px at 100% -20%, #3b2a7a 0%, transparent 60%), radial-gradient(1100px 600px at -10% 110%, #5a2a4a 0%, transparent 55%), #100d24; color: #f1effa; font-size: clamp(16px, 1.15vw, 22px); }
.pip-screen { min-height: 94vh; display: flex; flex-direction: column; gap: 3vh; }
.pip-screen-start { min-height: 90vh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 20px; text-align: center; color: #d9d6ee; }
.pip-brand.big { font-size: clamp(26px, 3vw, 48px); }
.pip-brand.big .pip-brand-mark { width: 1.6em; height: 1.6em; border-radius: .4em; }
.pip-scr-head { display: flex; align-items: center; gap: 18px; }
.pip-scr-head .pip-title-no { width: 2.6em; height: 2.6em; font-size: clamp(18px, 1.6vw, 30px); border-radius: .6em; }
.pip-scr-head > div { display: flex; flex-direction: column; flex: 1; }
.pip-scr-head b { font-family: 'Unbounded', sans-serif; font-size: clamp(26px, 2.6vw, 52px); font-weight: 600; letter-spacing: -.01em; }
.pip-scr-head span { color: #b7b2d8; font-size: clamp(16px, 1.3vw, 26px); }
.pip-scr-head .pip-timer { color: #fff; font-size: clamp(30px, 3vw, 60px); }
.pip-screen .pip-timer { color: #fff; }
.pip-screen .pip-timer.warn { color: #fdba74; }
.pip-screen .pip-timer.over { color: #fda4af; }
.pip-scr-center { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4vh; text-align: center; }
.pip-scr-center h2 { font-family: 'Unbounded', sans-serif; font-weight: 600; font-size: clamp(28px, 3vw, 60px); }
.pip-road { list-style: none; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 1.4vw; width: 100%; max-width: 1700px; padding: 0; position: relative; }
.pip-road::before { content: ''; position: absolute; left: 6%; right: 6%; top: 2.1vw; height: 3px; background: #2e2a52; }
.pip-road li { position: relative; display: flex; flex-direction: column; align-items: center; gap: .6vw; text-align: center; }
.pip-road li span { width: 4.2vw; height: 4.2vw; min-width: 44px; min-height: 44px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: clamp(16px, 1.5vw, 30px); background: #1d1a39; border: 3px solid #4c4582; color: #b7b2d8; }
.pip-road li b { font-size: clamp(14px, 1.15vw, 22px); color: #e8e6f6; }
.pip-road li em { font-style: normal; font-size: clamp(12px, .9vw, 17px); color: #8d88b0; }
.pip-road li.st-done span { background: var(--c); border-color: var(--c); color: #fff; }
.pip-road li.st-active span { background: #fff; border-color: var(--c); color: #14112b; animation: pipBeat 1.8s ease-out infinite; }
.pip-road li.st-active em { color: #fff; font-weight: 700; }
.pip-scr-video { flex: 1; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2vw; align-items: center; }
.pip-scr-video video { width: 100%; max-height: 80vh; border-radius: 1vw; background: #000; }
.pip-scr-qr { display: flex; flex-direction: column; align-items: center; gap: 1vh; background: #fff; color: #14112b; border-radius: 1.2vw; padding: 1.4vw; }
.pip-scr-qr img { width: clamp(220px, 22vw, 460px); aspect-ratio: 1; image-rendering: pixelated; }
.pip-scr-qr span { font-family: 'JetBrains Mono', monospace; font-size: clamp(12px, .9vw, 18px); max-width: clamp(220px, 22vw, 460px); word-break: break-all; text-align: center; }
.pip-scr-round { flex: 1; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 3vw; align-items: start; }
.pip-scr-round > div { display: flex; flex-direction: column; gap: 3vh; }
.pip-scr-review { display: flex; flex-direction: column; gap: 3vh; }
.pip-screen .pip-res-q, .pip-screen .pip-cand { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .12); color: #f1effa; }
.pip-screen .pip-res-n, .pip-screen .pip-res-n b { color: #fff; }
.pip-screen .pip-res-grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 22vw), 1fr)); gap: 1.4vw; }
.pip-screen .pip-res-title { font-size: 1em; }
.pip-screen .pip-res-big b { font-size: 2.4em; }
.pip-screen .pip-dist { height: 9vh; }
.pip-screen .pip-dist em, .pip-screen .pip-res-big small, .pip-screen .pip-cand-meta, .pip-screen .text-muted { color: #b7b2d8; }
.pip-screen .pip-vote { font-size: 1em; }
.pip-screen .pip-vote i { background: rgba(255, 255, 255, .12); }
.pip-screen .pip-cl blockquote, .pip-screen .pip-cand blockquote { background: rgba(255, 255, 255, .08); color: #e8e6f6; font-size: .9em; }
.pip-screen .pip-cand-head b { font-size: 1.1em; }
.pip-screen .pip-review h4 { font-size: 1.2em; }

/* ── Узкие экраны: таймлайн — горизонтальная полоса вех ── */
@media (max-width: 900px) {
  body { overflow: auto; }
  .pip-app { display: block; height: auto; }
  .pip-rail { position: sticky; top: 0; z-index: 20; flex-direction: row; flex-wrap: nowrap; align-items: center; overflow-x: auto; overflow-y: hidden; padding: 8px 10px; gap: 8px; }
  .pip-brand { font-size: 13px; flex: none; }
  .pip-brand > span:last-child { display: none; }
  .pip-rail-pi { flex: none; }
  .pip-rail-pi > span { display: none; }
  .pip-rail-pi select { padding: 6px 28px 6px 8px; font-size: 12px; width: 150px; }
  .pip-ms-all { flex: none; padding: 6px 10px; font-size: 12px; }
  .pip-ms-list { flex-direction: row; gap: 4px; flex: none; }
  .pip-ms-list::before, .pip-ms-list::after { display: none; }
  .pip-ms { grid-template-columns: 26px auto; padding: 6px 10px 6px 4px; white-space: nowrap; }
  .pip-ms-body small, .pip-ms-body em { display: none; }
  .pip-ms-key, .pip-ms-edit, .pip-rail-foot { display: none; }
  .pip-main { overflow: visible; padding: 16px 14px 60px; }
  .pip-pp, .pip-step-video, .pip-step-round { grid-template-columns: 1fr; }
  .pip-pp-personas { position: static; max-height: none; }
  .pip-prow { grid-template-columns: 22px minmax(0, 1fr) 70px 26px; }
  .pip-prow .pip-hitcount { grid-column: 2; }
  .pip-res-q.text, .pip-res-q.vote { grid-column: auto; }
  .pip-selbar { top: 52px; }
  .pip-steps { overflow-x: auto; }
  .pip-steps li { flex: none; }
  .pip-timer.big { font-size: 40px; }
  .pip-stage-nav { flex-wrap: wrap; }
  .pip-screen-mode .pip-main { padding: 16px; }
  .pip-scr-video, .pip-scr-round { grid-template-columns: 1fr; }
  .pip-sessbar > span { flex: 1 1 100% !important; min-width: 0 !important; }
  .pip-iters { overflow-x: auto; }
  .pip-iter { min-width: 120px; }
  .pip-title { font-size: 24px; }
  .pip-hero.compact .pip-title { font-size: 22px; }
  .pip-road { grid-template-columns: repeat(3, 1fr); row-gap: 20px; }
  .pip-road::before { display: none; }
}
.pip-neck.idle { height: 64px; }
.pip-neck.idle .pip-neck-shape { opacity: .55; }
.pip-timer.off { display: none; }
.pip-cl { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 8px; align-items: center; }
.pip-cl > em, .pip-cl > blockquote { grid-column: 1 / -1; }
.pip-cl .pip-cl-n { align-self: center; }
.pip-screen .pip-cl > b { font-size: 1em; }
.pip-screen .pip-cl-n { font-size: .8em; }

/* ── Этапы 3–5: «Инициативы и цели PI», «Итерации и команды», «Итоговый план» ── */
.pip-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border); margin: 6px 0 16px; overflow-x: auto; }
.pip-tabs button { border: none; background: none; padding: 10px 14px; font: 600 14px 'Manrope', sans-serif; color: var(--text2); border-bottom: 2px solid transparent; margin-bottom: -1px; cursor: pointer; white-space: nowrap; }
.pip-tabs button.active { color: var(--text); border-bottom-color: #e0559a; }
.pip-small { font-size: 12px; }
.pip-warn-txt { color: #b91c1c; font-weight: 700; }
.pip-low { color: #b91c1c; font-weight: 800; background: #fee2e2; }
.pip-dist span.low i { background: #f87171; }
.pip-rankb { display: inline-block; min-width: 22px; padding: 1px 7px; margin-right: 6px; border-radius: 999px; background: #ede9fe; color: #5b21b6; font-size: 11px; font-weight: 800; text-align: center; }

.pip-bl-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-bottom: 12px; font-size: 13px; }
.pip-bl { display: flex; flex-direction: column; gap: 6px; }
.pip-bl-row { display: grid; grid-template-columns: 26px auto minmax(0, 1fr); gap: 10px; align-items: start; padding: 10px 12px; background: var(--bg2); border: 1px solid var(--border); border-radius: var(--r); }
.pip-bl-row.focus { border-left: 3px solid #e0559a; }
.pip-bl-no { font: 700 12px 'JetBrains Mono', monospace; color: var(--text3); padding-top: 3px; }
.pip-bl-main { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.pip-bl-personas { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; }
.pip-bl-personas .pip-pchip { cursor: default; font-size: 11px; padding: 2px 8px; }
.pip-pchip.affected { background: #fafafa; border-color: #e5e7eb; color: var(--text2); }
.pip-pchip:not(.ok) { border-style: dashed; }


.pip-roam { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; margin-bottom: 10px; }
.pip-roam-col { background: var(--bg3); border-radius: var(--r); padding: 10px; display: flex; flex-direction: column; gap: 8px; min-height: 90px; border-top: 3px solid var(--rc, #9ca3af); }
.pip-roam-col header { display: flex; flex-direction: column; font-size: 13px; }
.pip-roam-col header span { font-size: 11px; color: var(--text3); }
.r-open { --rc: #ef4444; } .r-owned { --rc: #f59e0b; } .r-mitigated { --rc: #3b82f6; } .r-accepted { --rc: #8b5cf6; } .r-resolved { --rc: #10b981; }
.pip-risk { background: var(--bg2); border: 1px solid var(--border); border-radius: var(--r-sm); padding: 8px 10px; display: flex; flex-direction: column; gap: 4px; font-size: 13px; }
.pip-risk small { color: var(--text3); font-size: 11px; }
.pip-risk-act { display: flex; gap: 4px; align-items: center; }
.pip-risk-act select { font-size: 12px; padding: 3px 24px 3px 6px; }
.pip-cl-risk { float: right; }

.pip-iterbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-bottom: 14px; }
.pip-board-table tr.red td:first-child { box-shadow: inset 3px 0 #ef4444; }
.pip-board-table td.over { color: #b91c1c; font-weight: 700; }
.pip-board h4, .pip-teamws h4, .pip-plan h4 { font-size: 14px; margin: 16px 0 8px; }
.pip-reqs { display: flex; flex-direction: column; gap: 6px; }
.pip-req { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 2px 10px; padding: 8px 10px; border-radius: var(--r-sm); border: 1px solid var(--border); background: var(--bg2); font-size: 13px; }
.pip-req small, .pip-req em { grid-column: 2; color: var(--text2); font-size: 12px; }
.pip-req em { font-style: normal; color: var(--text); }
.pip-req-st { grid-row: span 3; align-self: start; font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: #fef3c7; color: #92400e; white-space: nowrap; }
.pip-req.s-accepted .pip-req-st { background: #d1fae5; color: #065f46; }
.pip-req.s-partial .pip-req-st { background: #dbeafe; color: #1e40af; }
.pip-req.s-declined { border-color: #fecaca; } .pip-req.s-declined .pip-req-st { background: #fee2e2; color: #b91c1c; }
.pip-req-act { display: flex; flex-wrap: wrap; gap: 6px; margin: -2px 0 6px; }
.pip-req-form { display: grid; gap: 6px; margin-top: 8px; }

.pip-teamws-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding-bottom: 10px; border-bottom: 1px solid var(--border); }
.pip-teamws-head h3 { font-family: 'Unbounded', sans-serif; font-size: 20px; font-weight: 600; margin: 0; }
.pip-teamws-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 24px; }
.pip-teamws-cols section { display: flex; flex-direction: column; gap: 6px; align-items: stretch; }
.pip-teamws-cols section > .btn { align-self: flex-start; }

.pip-brief-wrap { margin-top: 16px; }
.pip-briefs { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; margin-top: 10px; }
.pip-brief { background: var(--bg2); border: 1px solid var(--border); border-radius: var(--r); padding: 12px 14px; display: flex; flex-direction: column; gap: 8px; }
.pip-brief header { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: baseline; justify-content: space-between; }
.pip-brief dl { display: grid; grid-template-columns: 70px minmax(0, 1fr); gap: 4px 8px; margin: 0; font-size: 13px; }
.pip-brief dt { color: var(--text3); } .pip-brief dd { margin: 0; }
.pip-plat { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 12px; }
.pip-plat-stat { font-size: 13px; color: var(--text2); margin: 6px 0; }
.pip-teamlinks { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.pip-teamlinks a { font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: #ede9fe; color: #5b21b6; text-decoration: none; }
.pip-step-talk .btn { margin-top: 10px; align-self: flex-start; }

.pip-plan { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 4px 24px; }
.pip-plan .wide { grid-column: 1 / -1; }
.pip-plan-obj { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; font-size: 14px; }
.pip-plan-obj small { color: var(--text3); }
.pip-plan .pmo-table tr.red td { color: #b91c1c; }

/* Трансляция: те же блоки крупно на тёмном фоне */
.pip-scr-live { margin-top: clamp(14px, 2vw, 32px); font-size: clamp(15px, 1.15vw, 22px); }
.pip-screen .pip-scr-live .pip-req, .pip-screen .pip-scr-live .pip-brief, .pip-screen .pip-scr-live .pip-risk { color: var(--text); }
.pip-screen .pip-tbl { background: rgba(255, 255, 255, .05); border-color: rgba(255, 255, 255, .12); color: #e8e6f6; }
.pip-screen .pip-tbl th { background: rgba(255, 255, 255, .08); color: #b7b2d8; border-color: rgba(255, 255, 255, .12); }
.pip-screen .pip-tbl td { border-color: rgba(255, 255, 255, .1); }
.pip-screen .pip-tbl td .pip-team-kind, .pip-screen .pip-scr-live .text-muted { color: #8d88b0; }
.pip-screen .pip-scr-live h4 { font-size: clamp(16px, 1.3vw, 26px); color: #fff; margin-bottom: .6em; }
.pip-screen .pip-scr-live .pip-plan-obj { font-size: clamp(17px, 1.35vw, 28px); gap: .5em; }
.pip-screen .pip-scr-live .pip-plan h4, .pip-screen .pip-scr-live .pip-board h4, .pip-screen .pip-scr-live .pip-plat-stat, .pip-screen .pip-scr-live .pip-plan-obj { color: #e8e6f6; }
.pip-screen .pip-roam-col { background: rgba(255, 255, 255, .06); } .pip-screen .pip-roam-col header { color: #e8e6f6; }
.pip-screen .pip-scr-live .pip-linklike { pointer-events: none; color: inherit; }
.pip-scr-list { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; color: #e8e6f6; }
.pip-scr-list li { display: grid; grid-template-columns: 4.5em minmax(0, 1fr) auto; gap: 14px; align-items: baseline; padding: 10px 14px; border-radius: 12px; background: rgba(255, 255, 255, .06); }
.pip-scr-list .pip-wsjf { font-weight: 800; color: #fbbf24; }
.pip-scr-list em { font-style: normal; color: #f9a8d4; font-size: .85em; }
.pip-scr-table td { font-size: inherit; }
.pip-plan-obj.big { font-size: clamp(18px, 1.5vw, 30px); color: #e8e6f6; gap: 12px; }

@media (max-width: 1100px) {
  .pip-plan, .pip-teamws-cols { grid-template-columns: minmax(0, 1fr); }
  .pip-roam { grid-template-columns: repeat(2, minmax(0, 1fr)); }

}
@media (max-width: 760px) {
  .pip-roam { grid-template-columns: minmax(0, 1fr); }
  .pip-board { overflow-x: auto; }
  .pip-iterbar .pip-seg { overflow-x: auto; max-width: 100%; }
}
.pip-bl-row .pip-wsjf { min-width: 48px; justify-content: center; text-align: center; }
.pip-step { text-align: left; }
.pip-tbl { width: 100%; border-collapse: collapse; background: var(--bg2); border: 1px solid var(--border); border-radius: var(--r); overflow: hidden; font-size: 13px; }
.pip-tbl th { text-align: left; padding: 9px 12px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--text3); background: var(--bg3); border-bottom: 1px solid var(--border); white-space: nowrap; }
.pip-tbl td { padding: 9px 12px; border-bottom: 1px solid var(--border); vertical-align: top; }
.pip-tbl tr:last-child td { border-bottom: none; }
.pip-tbl td .pip-team-kind { display: block; font-size: 11px; color: var(--text3); }
.pip-tbl td input[type=number] { width: 80px; }
.pip-board-table td:first-child { min-width: 200px; }
.pip-screen .pip-tbl { font-size: inherit; }
.pip-steps { overflow-x: auto; scrollbar-width: thin; }
.pip-steps li { flex: 1 0 auto; }
.pip-steps li > * { white-space: nowrap; }
.pip-screen .pip-risk { font-size: clamp(14px, 1vw, 20px); }
.pip-screen .pip-risk small, .pip-screen .pip-roam-col header span { font-size: .75em; }
.pip-screen .pip-rankb { font-size: .55em; vertical-align: middle; }
.pip-screen .pip-plan .pip-small { display: none; }
.pip-outcome-empty { padding: 10px 18px 14px; }
.pip-danger-btn { background: #dc2626; border-color: #dc2626; }
.pip-danger-btn:disabled { opacity: .45; cursor: not-allowed; }
/* Экран этапа: ярус показываем сразу — анимация появления работает только на общей воронке. */
.pip-staged .pip-reveal { opacity: 1; transform: none; }
.pip-more { position: relative; display: inline-block; }
.pip-more > summary { list-style: none; cursor: pointer; }
.pip-more > summary::-webkit-details-marker { display: none; }
.pip-more-menu { position: absolute; right: 0; top: calc(100% + 4px); z-index: 20; display: flex; flex-direction: column; align-items: stretch; min-width: 220px;
  padding: 6px; background: var(--bg2); border: 1px solid var(--border); border-radius: var(--r); box-shadow: var(--shadow-lg); }
.pip-more-menu .btn { justify-content: flex-start; text-align: left; }
@media (max-width: 760px) { .pip-more-menu { right: auto; left: 0; } }

/* Профиль персоны простым языком */
.pip-profile { display: flex; flex-direction: column; gap: 4px; }
.pip-profile-lead { font-size: 16px; line-height: 1.55; color: var(--text); margin: 4px 0 2px; }
.pip-profile-who { display: inline-block; align-self: flex-start; font-size: 12px; font-weight: 600; color: #9d174d; background: #fff5fa; border: 1px solid #f9a8d4; border-radius: 999px; padding: 3px 10px; }
.pip-profile section p { margin: 0; font-size: 14px; line-height: 1.55; }
.pip-profile ul { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 4px; font-size: 14px; line-height: 1.45; }
.pip-profile-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 20px; }
.pip-profile-nums { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 8px; }
.pip-profile-nums > div { display: flex; flex-direction: column; gap: 3px; padding: 10px 12px; border-radius: var(--r); background: var(--bg3); }
.pip-profile-nums b { font-family: 'Unbounded', sans-serif; font-size: 15px; font-weight: 600; color: #6d4ff0; }
.pip-profile-nums span { font-size: 12.5px; color: var(--text2); line-height: 1.4; }
@media (max-width: 760px) { .pip-profile-cols { grid-template-columns: minmax(0, 1fr); } }
.pip-run-err { font-size: 12px; color: #b45309; background: #fffbeb; border: 1px solid #fde68a; border-radius: var(--r-sm); padding: 4px 8px; max-width: 420px; }

/* Этап «Проекты» (add-pi-projects-stage) */
.pip-projgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(360px, 1fr)); gap: 12px; margin: 8px 0 14px; }
.pip-projbig { color: var(--text); background: var(--bg2); border: 1px solid var(--border); border-left: 4px solid #c2410c; border-radius: var(--r); padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.pip-projbig.out { border-left-color: var(--border); opacity: .8; }
.pip-projbig header { display: flex; gap: 12px; align-items: flex-start; justify-content: space-between; }
.pip-projbig-title { font-weight: 800; font-size: 16px; line-height: 1.3; color: var(--text); text-decoration: none; }
.pip-projbig-title:hover { text-decoration: underline; }
.pip-projbig-meta { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; font-size: 12.5px; color: var(--text2); }
.pip-projbig dl { display: grid; grid-template-columns: 82px minmax(0, 1fr); gap: 6px 10px; margin: 0; font-size: 13.5px; line-height: 1.45; }
.pip-projbig dt { color: var(--text3); font-weight: 600; } .pip-projbig dd { margin: 0; overflow-wrap: anywhere; }
.pip-projbig-act { display: flex; gap: 10px; align-items: center; justify-content: flex-end; border-top: 1px dashed var(--border); padding-top: 8px; }
.pip-projbig .pip-effect { min-width: 86px; padding: 4px 8px; flex-shrink: 0; }
.pip-ok-txt { color: #15803d; font-weight: 700; font-size: 13px; }
.pip-presbar { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: center; margin-bottom: 12px; }
.pip-projnow { position: relative; max-width: 980px; }
.pip-projnow-no { font-size: 12px; font-weight: 800; color: #c2410c; letter-spacing: .06em; margin-bottom: 6px; }
.pip-projnow.big { max-width: none; }
.pip-projnow.big .pip-projbig { padding: 28px 34px; gap: 18px; }
.pip-projnow.big .pip-projbig-title { font-size: 34px; }
.pip-projnow.big .pip-projbig-meta { font-size: 18px; }
.pip-projnow.big .pip-projbig dl { font-size: 21px; grid-template-columns: 150px minmax(0, 1fr); gap: 12px 18px; }
.pip-projnow.big .pip-projnow-no { font-size: 18px; }
.pip-projlist td:first-child { width: 28px; color: var(--text3); }
@media (max-width: 640px) {
  .pip-projgrid { grid-template-columns: minmax(0, 1fr); }
  .pip-projbig dl { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .pip-projbig dd { margin-bottom: 6px; }
  .pip-projlist th:nth-child(3), .pip-projlist td:nth-child(3) { display: none; }
}
.pip-projnow.big .pmo-mono { font-size: 22px; }
.pip-projnow.big .pmo-badge, .pip-projnow.big .pip-top { font-size: 15px; padding: 3px 10px; }
.pip-projnow.big .pip-effect { font-size: 30px; min-width: 150px; padding: 10px 14px; }
.pip-projnow.big .pip-effect small { font-size: 14px; }
.pmo-modal-actions { flex-wrap: wrap; }

/* Охват проблем: класс тяжести и метод расчёта (clarify-problem-reach) */
.pip-severity { display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.pip-severity select { width: auto; display: inline-block; font-size: 12px; padding: 2px 24px 2px 8px; margin: 0; }
.pip-reach-method { flex-basis: 100%; font-size: 12px; line-height: 1.45; color: var(--text3); }

/* Календарь PI (add-pi-calendar-settings) */
.pip-cal-bar { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: center; margin-bottom: 16px; }
.pip-cal-gen { white-space: nowrap; display: flex; gap: 8px; align-items: center; font-size: 13px; color: var(--text2); }
.pip-cal-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(440px, 1fr)); gap: 14px; }
.pip-cal-pi { background: var(--bg2); border: 1px solid var(--border); border-radius: var(--r); padding: 14px 16px; min-width: 0; }
.pip-cal-pi header { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: baseline; margin-bottom: 10px; }
.pip-cal-pi header b { font-family: 'Unbounded', sans-serif; font-size: 15px; }
.pip-cal-tbl input[type=date] { font-size: 13px; padding: 3px 6px; }
.pip-cal-tbl tr.ip td:first-child { color: var(--text3); }
.pip-cal-tbl td:last-child, .pip-cal-tbl th:last-child { text-align: right; color: var(--text3); }
@media (max-width: 640px) { .pip-cal-list { grid-template-columns: minmax(0, 1fr); } .pip-cal-pi { padding: 12px; } .pip-cal-tbl th:last-child, .pip-cal-tbl td:last-child { display: none; } .pip-cal-tbl input[type=date] { max-width: 128px; } .pip-cal-tbl td, .pip-cal-tbl th { padding-left: 6px; padding-right: 6px; } }

/* Влияние инициатив на аудиторию и оценка залом (add-initiative-audience-impact) */
.pip-bl-row:has(.pip-impact) { grid-template-columns: 26px 74px 52px minmax(0, 1fr); }
.pip-impact { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 46px; border-radius: var(--r); background: linear-gradient(160deg, #ffedd5, #fde7f2); color: #c2410c; font-family: 'Unbounded', sans-serif; font-weight: 700; font-size: 14px; text-align: center; padding: 2px 4px; }
.pip-impact small { font-family: 'Manrope', sans-serif; font-size: 9px; font-weight: 600; color: var(--text3); }
.pip-impact.none { background: var(--bg4); color: var(--text3); font-family: inherit; font-size: 10px; font-weight: 600; }
.pip-bl-impact { display: flex; flex-wrap: wrap; gap: 4px 6px; align-items: center; margin-top: 4px; }
.pip-ichip { font-size: 11px; padding: 2px 8px; border-radius: 999px; background: #fff7ed; border: 1px solid #fed7aa; color: #7c2d12; }
.pip-ichip b { color: #c2410c; }
.pip-ichip.o-manual { border-style: solid; border-color: #c2410c; }
.pip-ichip.o-hall { background: #ecfdf5; border-color: #6ee7b7; color: #065f46; }
.pip-ichip.o-hall b { color: #047857; }
.pip-pick { font-size: 12px; margin-left: 4px; }
.pip-imp-row { align-items: center; }
.pip-imp-row > span { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.pip-imp-row select { width: 64px; flex-shrink: 0; }
.pip-imp-why { line-height: 1.35; }
.pip-imp-picks { font-size: 13px; color: var(--text2); margin-bottom: 8px; }
.pip-imp-res { grid-column: 1 / -1; }
.pip-imp-init { font-weight: 700; font-size: 14px; margin: 12px 0 4px; }
.pip-imp-pair { display: grid; grid-template-columns: minmax(0, 1.6fr) 70px minmax(120px, 1fr) 150px auto; gap: 10px; align-items: center; padding: 8px 10px; border: 1px solid var(--border); border-radius: var(--r); margin-top: 4px; background: var(--bg2); font-size: 13px; }
.pip-imp-pair.off { border-color: #f59e0b; background: #fffbeb; }
.pip-imp-pair.dec-accepted { border-color: #10b981; background: #ecfdf5; }
.pip-imp-pair .pip-dist { height: 36px; grid-template-columns: repeat(11, 1fr); gap: 2px; }
.pip-imp-pair .pip-dist em { font-size: 9px; }
.pip-screen .pip-imp-pair .pip-dist { height: 6vh; }
.pip-screen .pip-imp-pair { grid-template-columns: minmax(0, 1.6fr) 110px minmax(200px, 1fr) 260px auto; }
.pip-imp-w b, .pip-imp-h b { font-size: 16px; }
.pip-imp-h small { color: var(--text3); }
.pip-imp-act { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.pip-imp-act em { font-size: 12px; color: var(--text3); font-style: normal; }
.pip-screen .pip-imp-pair { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .14); color: #e8e6f6; font-size: 18px; }
.pip-screen .pip-imp-pair.off { border-color: #f59e0b; background: rgba(245, 158, 11, .12); }
.pip-screen .pip-imp-init { color: #fff; font-size: 20px; }
@media (max-width: 900px) {
  .pip-imp-pair { grid-template-columns: minmax(0, 1fr) auto auto; }
  .pip-imp-pair .pip-dist, .pip-imp-pair > span:nth-child(4) { display: none; }
  .pip-imp-act { grid-column: 1 / -1; justify-content: flex-start; }
}
.pip-screen .pip-imp-w b, .pip-screen .pip-imp-h b { font-size: 28px; color: #fff; }
.pip-step-imp { display: flex; flex-direction: column; gap: 12px; text-align: left; }

/* Ролик-гид по PI Planning */
button.pip-rail-link { background: none; border: 0; text-align: left; cursor: pointer; font: inherit; font-size: 13px; }
.pip-guide-modal { width: min(1100px, 94vw); max-width: none; }
.pip-guide-video { width: 100%; aspect-ratio: 16 / 9; border-radius: var(--r); background: #000; display: block; margin-bottom: 8px; }
