/* Предпроверка (aicheck module, design 19.3) */
.pc-head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; }
.pc-head .page-title { flex: none; margin-right: 4px; }
.pc-head .page-title h1 { white-space: nowrap; }
.pc-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.pc-chip { display: inline-flex; align-items: center; gap: 6px; font: inherit; font-size: 13px; padding: 6px 12px; border-radius: 99px;
  border: 1px solid var(--border); background: var(--surface); color: var(--text); cursor: pointer; }
.pc-chip:hover { border-color: var(--primary); }
.pc-chip.active { background: var(--text); border-color: var(--text); color: var(--surface); }
.pc-chip-n { font-variant-numeric: tabular-nums; opacity: .8; }
.pc-type { width: auto; max-width: 280px; }
.pc-run { font-size: 12.5px; color: var(--muted); }

/* The people: rings — the share of their findings fixed. */
.pc-people { display: flex; align-items: flex-start; gap: 4px; overflow-x: auto; padding: 10px 12px; margin-bottom: 14px; }
.pc-person { flex: none; display: flex; flex-direction: column; align-items: center; gap: 3px; width: 86px; padding: 6px 2px; border: 0;
  border-radius: 10px; background: none; font: inherit; color: var(--text); cursor: pointer; }
.pc-person:hover { background: var(--surface-2); }
.pc-person.active { background: #e8eeff; }
.pc-ring { --p: 0; width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center;
  background: conic-gradient(#1f8a4c calc(var(--p) * 1%), #e3e6ee 0); }
.pc-ring > .avatar, .pc-all { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; font-weight: 700;
  box-shadow: 0 0 0 2px var(--surface); }
.pc-all { background: var(--surface); color: var(--text); font-size: 12px; }
.pc-pname { font-size: 12px; line-height: 1.2; max-width: 84px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pc-pcount { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.pc-ring-hint { flex: none; align-self: center; max-width: 110px; font-size: 12px; line-height: 1.3; color: var(--muted); padding-left: 8px; }

/* The list and the panel of the chosen finding. */
.pc-layout { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 14px; align-items: start; }
.pc-list { padding: 0; overflow: hidden; }
.pc-empty { padding: 28px; color: var(--muted); text-align: center; }
.pc-table-wrap { overflow-x: auto; }
.pc-table { margin: 0; }
.pc-table th { font-size: 11.5px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); white-space: nowrap; }
.pc-row { cursor: pointer; }
.pc-row:hover { background: var(--surface-2); }
.pc-row.active { background: #e8eeff; }
.pc-row:focus-visible { outline: 2px solid var(--primary); outline-offset: -2px; }
.pc-c-lot { white-space: nowrap; }
.pc-lot { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12.5px; }
.pc-c-kind { font-size: 13px; color: var(--muted); min-width: 110px; }
.pc-c-fix { font-size: 13.5px; overflow-wrap: anywhere; }
.pc-c-level { white-space: nowrap; }
.pc-was { color: #a1262d; text-decoration: line-through; }
.pc-new { color: #16683a; font-weight: 600; }
.pc-what-short { color: var(--muted); }
.pc-foot { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-top: 1px solid var(--border); font-size: 13px; }

/* Levels: the shape says it as well as the colour. */
.pc-lv { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 600; border-radius: 6px; padding: 3px 8px; }
.pc-lv .ic { width: 13px; height: 13px; }
.pc-lv1 { color: #16683a; background: #e3f5ea; }
.pc-lv2 { color: #7a5200; background: #fff1d6; }
.pc-lv3 { color: #5b3fa0; background: #efe9fb; }
.pc-again { display: inline-block; margin-left: 6px; font-size: 11.5px; font-weight: 600; color: #a1262d; background: #fde8e9; border-radius: 6px; padding: 2px 6px; }

.pc-panel { position: sticky; top: 8px; display: flex; flex-direction: column; gap: 10px; max-height: calc(100vh - 24px); overflow-y: auto; }
.pc-pick { padding: 20px 4px; }
.pc-photo { display: grid; place-items: center; min-height: 140px; background: var(--surface-2); border-radius: 8px; overflow: hidden; }
.pc-photo a { display: block; line-height: 0; }
.pc-photo img { max-width: 100%; max-height: 260px; object-fit: contain; display: block; }
.pc-p-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.pc-meta { font-size: 12.5px; color: var(--muted); }
.pc-again-line { font-size: 13px; color: #a1262d; background: #fde8e9; border-radius: 6px; padding: 6px 9px; }
.pc-title { font-size: 14px; overflow-wrap: anywhere; }
.pc-mark { background: #fde8e9; color: #a1262d; border-radius: 3px; padding: 0 2px; }
.pc-what { font-size: 13px; color: var(--text); overflow-wrap: anywhere; }
.pc-need-label { font-size: 11.5px; letter-spacing: .05em; text-transform: uppercase; color: #16683a; font-weight: 600; }
.pc-need { width: 100%; box-sizing: border-box; font: inherit; font-size: 14px; border: 1px solid #9cc7a9; background: #f1faf4; color: #123d24;
  border-radius: 8px; padding: 8px 10px; resize: vertical; overflow: hidden; }
.pc-need-tags { font-size: 14px; }
.pc-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.pc-btn-ok { background: #1f8a4c; border-color: #1f8a4c; color: #fff; }
.pc-btn-ok:hover { background: #18723e; border-color: #18723e; color: #fff; }
.pc-undo { display: flex; align-items: center; gap: 10px; font-size: 13px; background: #eef7f1; color: #16683a; border-radius: 8px; padding: 7px 10px; }
.pc-undo span { flex: 1; min-width: 0; }

@media (max-width: 1000px) {
  .pc-layout { grid-template-columns: minmax(0, 1fr); }
  .pc-panel { position: static; max-height: none; order: -1; }
}
@media (max-width: 640px) {
  .pc-c-kind { display: none; }
  .pc-table th:nth-child(2) { display: none; }
}
