.pr-work { display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: 16px; align-items: start; }
.pr-side { display: flex; flex-direction: column; gap: 12px; }
.pr-name { width: 100%; box-sizing: border-box; font: inherit; font-size: 22px; font-weight: 700; letter-spacing: .04em; padding: 10px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface-2); color: var(--text); }
.pr-name:focus { outline: 2px solid var(--blue); outline-offset: 1px; }
.pr-lbl { margin: 10px 0 6px; font-size: 13px; font-weight: 700; color: var(--muted); }
.pr-lbl:first-of-type { margin-top: 0; }
.pr-colors { display: flex; flex-wrap: wrap; gap: 6px; }
.pr-colors button { position: relative; width: 30px; height: 30px; border-radius: 8px; border: 1px solid var(--line); padding: 0; cursor: pointer; background: var(--c); }
.pr-colors button span { position: absolute; inset: 7px; border-radius: 50%; background: var(--c); box-shadow: inset 0 -2px 2px rgba(0,0,0,.25), 0 1px 1px rgba(255,255,255,.4); }
.pr-colors button[aria-pressed="true"] { outline: 3px solid var(--text); outline-offset: 2px; }
.pr-colors i { position: absolute; right: -4px; bottom: -5px; font-style: normal; font-size: 10px; font-weight: 800; background: var(--green); color: #fff; border-radius: 99px; width: 14px; height: 14px; display: grid; place-items: center; }
.pr-row { margin-top: 8px; }

.pr-view { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 14px; position: sticky; top: 12px; }
.pr-canvas { position: relative; height: min(56vh, 520px); border-radius: 10px; background: linear-gradient(#fbfaf7, #ece8de); overflow: hidden; }
.pr-canvas canvas { width: 100%; height: 100%; display: block; touch-action: none; }
.pr-empty { position: absolute; inset: 0; display: grid; place-items: center; margin: 0; color: var(--muted); font-size: 15px; text-align: center; padding: 20px; }
.pr-steps { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 12px; }
.pr-steps .round { border: 1px solid var(--line); background: var(--surface-2); color: var(--text); border-radius: 99px; width: 40px; height: 40px; font-size: 15px; cursor: pointer; }
.pr-steps .round.big { width: 48px; height: 48px; background: var(--yellow); border-color: var(--yellow); color: #1d1b16; font-size: 18px; }
.pr-steps .round:disabled { opacity: .4; cursor: default; }
.pr-stepn { min-width: 170px; text-align: center; font-size: 14px; line-height: 1.3; }
.pr-stepn small { color: var(--muted); }
.pr-view .hint { text-align: center; margin: 8px 0 0; }

.pr-parts { margin-top: 16px; }
.pr-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 8px 16px; }
.pr-list li { display: flex; align-items: center; gap: 10px; font-size: 14px; }
.pr-list li > span:nth-child(2) { flex: 1; }
.pr-list .sw { flex: none; width: 22px; height: 22px; border-radius: 6px; border: 1px solid var(--line); }

.pr-dlg { border: 0; border-radius: 14px; padding: 18px; width: min(520px, calc(100vw - 32px)); background: var(--surface); color: var(--text); }
.pr-dlg::backdrop { background: rgba(0, 0, 0, .5); }
.pr-dlg h2 { margin: 0 0 10px; font-size: 19px; }
.pr-dlg video { width: 100%; aspect-ratio: 1; border-radius: 10px; background: #000; }
.pr-close { position: absolute; top: 6px; right: 8px; margin: 0; }
.pr-close button { border: 0; background: none; font-size: 26px; cursor: pointer; color: var(--muted); }

.pr-work > * { min-width: 0; }
@media (max-width: 860px) {
  .pr-work { grid-template-columns: 1fr; }
  .pr-steps { gap: 4px; }
  .pr-steps .round { width: 36px; height: 36px; }
  .pr-steps .round.big { width: 44px; height: 44px; }
  .pr-stepn { min-width: 0; flex: 1; font-size: 13px; }
  .pr-view { position: static; order: -1; }
  .pr-canvas { height: 46vh; }
}
