/* =====================================================================
 * 06 宠物寄养合同 · 独立版式「条款审阅台」
 * 朱红 + 等宽编辑器行号槽 + 右侧批注栏 + 覆盖度堆叠条
 * ===================================================================== */
.pb--pc { --pb-a: #b0473f; --pb-a-soft: #f8e9e6; }
:root[data-theme="dark"] .pb--pc { --pb-a: #ea9990; --pb-a-soft: #3a2422; }

.pc-hero { padding-top: 32px; }
.pc-board { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .8fr); gap: 14px; margin-top: 22px; align-items: start; }
.pc-editor { border-top: 3px solid var(--pb-a); }
.pc-editor-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 12px; }
.pc-editor-head .pb-panel-label { margin: 0; }
.pc-editor-tools { display: flex; flex-wrap: wrap; gap: 6px; }
.pc-editor-body { display: grid; grid-template-columns: 38px minmax(0, 1fr); border: 1px solid var(--pb-line); border-radius: var(--pb-r-sm); background: var(--pb-card2); overflow: hidden; }
.pc-gutter { border-right: 1px solid var(--pb-line2); padding: 12px 6px; font-family: var(--pb-mono); font-size: 12px; line-height: 1.85; color: var(--pb-muted); text-align: right; white-space: pre; user-select: none; overflow: hidden; }
.pc-editor textarea { border: 0; border-radius: 0; background: transparent; min-height: 300px; font-family: var(--pb-mono); font-size: 12.8px; line-height: 1.85; padding: 12px; resize: vertical; }
.pc-editor textarea:focus { box-shadow: none; }
.pc-fields { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 13px; }
.pc-flags { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 12px; }

/* 扫描台 */
.pc-scan { background: var(--pb-card); border: 1px solid var(--pb-line2); border-radius: var(--pb-r); box-shadow: var(--pb-shadow-sm); padding: 17px; }
.pc-scan-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; border-bottom: 1px solid var(--pb-line2); padding-bottom: 9px; }
.pc-scan-head span { font-family: var(--pb-mono); font-size: 9.5px; letter-spacing: .14em; color: var(--pb-a); }
.pc-scan-head b { font-size: 14px; }
.pc-cover { margin: 14px 0; }
.pc-cover-top { display: flex; align-items: baseline; justify-content: space-between; font-size: 12.5px; color: var(--pb-muted); }
.pc-cover-top b { font-family: var(--pb-serif); font-size: 26px; color: var(--pb-a); }
.pc-cover-bar { height: 10px; border-radius: 99px; background: var(--pb-line2); overflow: hidden; margin: 7px 0 6px; }
.pc-cover-bar i { display: block; height: 100%; background: var(--pb-a); border-radius: 99px; transition: width .5s ease; }
.pc-cover-foot { font-size: 11.5px; line-height: 1.7; color: var(--pb-muted); }
.pc-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; }
.pc-stats > div { border: 1px solid var(--pb-line2); border-radius: var(--pb-r-sm); background: var(--pb-card2); padding: 8px; text-align: center; }
.pc-stats span { display: block; font-size: 10.5px; color: var(--pb-muted); }
.pc-stats b { display: block; font-family: var(--pb-mono); font-size: 17px; color: var(--pb-ink); }
.pc-scan-sub { margin: 16px 0 8px; font-family: var(--pb-mono); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--pb-a); }
.pc-hits, .pc-missing { display: grid; gap: 6px; max-height: 186px; overflow-y: auto; }
.pc-hit { border-left: 3px solid var(--pb-danger); background: var(--pb-danger-soft); border-radius: 0 6px 6px 0; padding: 7px 10px; font-size: 12px; line-height: 1.7; }
.pc-hit b { display: block; color: var(--pb-danger); }
.pc-hit code { font-family: var(--pb-mono); font-size: 11.5px; color: var(--pb-ink2); word-break: break-all; }
.pc-miss { display: flex; align-items: flex-start; gap: 7px; border: 1px solid var(--pb-line2); border-radius: 6px; background: var(--pb-card2); padding: 7px 9px; font-size: 12px; line-height: 1.6; }
.pc-miss i { flex: 0 0 auto; font-style: normal; font-size: 10px; font-weight: 700; padding: 1px 6px; border-radius: 4px; }
.pc-miss i.lv-a { background: var(--pb-danger-soft); color: var(--pb-danger); }
.pc-miss i.lv-b { background: var(--pb-warn-soft); color: var(--pb-warn); }
.pc-miss i.lv-c { background: var(--pb-brand-soft); color: var(--pb-brand); }
.pc-privacy { font-size: 11.5px; line-height: 1.75; color: var(--pb-muted); margin: 16px 0 0; border-top: 1px dashed var(--pb-line); padding-top: 12px; }

.pc-matrix { min-width: 720px; }
.pc-matrix td:first-child { font-weight: 650; white-space: nowrap; }
.pc-matrix code { font-family: var(--pb-mono); font-size: 11.5px; color: var(--pb-ink2); }
.pc-ai { border-left: 3px solid var(--pb-warm); }
.pc-prose-sm { font-size: 13.5px; line-height: 1.9; color: var(--pb-ink2); }
.pc-prose-sm b { color: var(--pb-ink); }
.pc-batch { min-width: 820px; }
.pc-batch td input[type="text"], .pc-batch td input[type="number"] { padding: 5px 7px; font-size: 12px; min-width: 60px; }
.pc-prose { font-size: 14.5px; line-height: 2; color: var(--pb-ink2); }
.pc-prose b { color: var(--pb-ink); }
.pc-prose p { margin-bottom: 11px; }

@media (max-width: 1060px) {
    .pc-board { grid-template-columns: 1fr; }
    .pc-hits, .pc-missing { max-height: none; }
}
@media (max-width: 620px) {
    .pc-fields, .pc-flags { grid-template-columns: 1fr; }
    .pc-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
