/* 逐镜审阅 */
.v2review .reviewModes,.v2review .intentControls { display:flex; align-items:center; gap:4px; flex-wrap:wrap; }
.v2review .reviewModes { margin-inline-start:auto; align-self:center; gap:2px; padding:1px; border:1px solid var(--line-2); border-radius:999px; background:var(--bg-1); }
.v2review .reviewModes button { padding:2px 12px; min-height:24px; border-color:transparent; background:transparent; color:var(--text-2); transition:background-color .16s ease,color .16s ease; }
.v2review .reviewModes button[aria-pressed=true] { background:var(--bg-4); color:var(--text-1); border-color:var(--line-strong); }
.v2review .reviewModes button[aria-pressed=true],.v2review .intentControls button[aria-pressed=true],.v2review .intentPair button[aria-pressed=true] { border-color:var(--line-control); font-weight:650; }
.v2review .intentControls { margin-block:4px 10px; gap:8px; }
.v2review #intentSyncPlay:not(:disabled) { background:var(--text-1); color:var(--bg-0); }
.intentPair,.intentLists { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
.intentPair figure,.intentLists > div { min-width:0; background:var(--bg-2); border-radius:var(--r-md); overflow:hidden; }
.intentPair figcaption { display:flex; justify-content:space-between; align-items:center; min-height:38px; padding:4px 10px; font:600 var(--fs-13)/1.3 var(--font-ui); }
.intentStage { display:grid; place-items:center; height:clamp(128px,20vh,260px); background:var(--bg-0); color:var(--text-2); }
.intentStage img,.intentStage video { display:block; width:100%; height:100%; min-height:0; object-fit:contain; }
.intentLists { margin:12px 0; overflow-wrap:anywhere; }
.intentLists > div { padding:10px 14px; }
.intentLists .intentChange { border-inline-start:2px solid var(--text-1); }
.intentLists .intentKeep { border-inline-start:2px solid var(--line-control); }
.intentLists ul { padding-inline-start:18px; margin:6px 0 0; color:var(--text-2); }
.seamTrack { display:flex; gap:4px; margin-top:6px; }
.seamTrack span { flex:1; padding:6px; border-top:3px solid var(--line-2); color:var(--text-2); }
.seamTrack [aria-current=true] { border-color:var(--text-1); color:var(--text-1); font-weight:700; background:var(--bg-2); }
@media (prefers-reduced-motion:reduce) {
  .v2review :is(.reviewModes,.intentControls,.intentPair,.seamTrack) * { transition:none; animation:none; }
}
@media (max-width:680px) { .intentLists { grid-template-columns:minmax(0,1fr); } }
body.v2:has(.v2review) { height:100dvh; display:flex; flex-direction:column; overflow:hidden; }
body.v2:has(.v2review) #app { flex:1; min-height:0; width:100%; overflow:auto; padding-bottom:12px; display:flex; }
.v2review { flex:1; min-width:0; min-height:0; display:flex; flex-direction:column; gap:var(--sp-2); font:var(--fs-14)/var(--lh-ui) var(--font-ui); }
.v2review > * { flex:none; }
.v2review > .workspace { flex:1 0 8rem; min-height:0; }
.v2review > div:not([class]):empty { display:none; }
.v2review .top,.v2review header,.v2review .actions,.v2review .sectionHead { display:flex; align-items:center; gap:var(--sp-4); }
.v2review aside,.v2review section,.v2review footer { padding:var(--sp-4); border:0; border-radius:var(--r-lg); background:var(--bg-1); }

/* 顶栏 */
.v2review .top { flex-wrap:wrap; min-height:var(--top-h); margin:0 -16px; padding:8px 16px; background:var(--bg-app); border-bottom:1px solid var(--line-1); }
.v2review .top > a { flex:none; padding:6px 12px 6px 8px; border-radius:var(--r-pill); color:var(--text-2); font-size:var(--fs-13); text-decoration:none; }
.v2review .top > a:hover { background:var(--bg-3); color:var(--text-1); }
.v2review .top nav { flex:1; display:flex; justify-content:center; align-items:center; gap:14px; white-space:nowrap; color:var(--text-3); font-size:var(--fs-13); }
.v2review .top nav b[aria-current] { display:inline-block; padding:5px 12px; border-radius:var(--r-pill); background:var(--bg-3); color:var(--text-1); font-weight:600; }
.v2review .budget { font-family:var(--font-ui); margin-left:auto; color:var(--text-2); font-size:var(--fs-12); text-align:right; font-variant-numeric:tabular-nums; }
.v2review a { color:var(--text-1); }

/* 标题 */
.v2review header { flex-wrap:wrap; align-items:baseline; gap:4px 12px; padding:4px 4px 0; }
.v2review h1,.v2review h2,.v2review h3,.v2review figure { margin:0; }
.v2review h1 { font-size:var(--fs-20); font-weight:650; letter-spacing:-.01em; }
.v2review h2,.v2review h3 { font-size:var(--fs-16); font-weight:600; }
.v2review h3,.v2review .tabs { margin-block:var(--sp-3) var(--sp-2); }
.v2review small { display:block; color:var(--text-2); font-size:var(--fs-12); }
.v2review p,.v2review nav,.v2review header span,.v2review figcaption { color:var(--text-2); }
.v2review header span { font-size:var(--fs-13); }

/* 按钮 */
.v2review button { font:inherit; font-size:var(--fs-13); color:var(--text-1); background:var(--bg-3); border:1px solid transparent; padding:7px 14px;
  border-radius:var(--r-pill); cursor:pointer; transition:background var(--dur-fast) var(--ease-out),border-color var(--dur-fast); }
.v2review button:hover:not(:disabled) { background:var(--bg-4); }
.v2review button:disabled { opacity:1; color:var(--text-3); background:var(--bg-2); cursor:not-allowed; }
.v2review button.selected { background:var(--bg-4); border-color:var(--text-1); }
.v2review button:focus-visible { outline:none; box-shadow:var(--focus-ring); }

/* 工作区 */
.v2review .workspace { display:grid; grid-template-columns:clamp(252px,20vw,280px) minmax(0,1fr); gap:var(--sp-3); }
.v2review aside,.v2review section { overflow:auto; }
.v2review aside h2 { margin-bottom:4px; color:var(--text-2); font-size:var(--fs-13); }
.v2review aside > p { margin:12px 0 0; color:var(--text-3); font-size:var(--fs-12); font-variant-numeric:tabular-nums; }
.v2review .shot { width:100%; display:grid; grid-template-columns:72px minmax(0,1fr) auto; align-items:center; gap:10px; margin-top:4px; padding:6px;
  border:0; border-radius:var(--r-md); background:transparent; text-align:left; }
.v2review .shot:hover:not(:disabled) { background:var(--bg-2); }
.v2review .shot.selected:focus-visible { outline:2px solid var(--focus-color); }
.v2review .shot.selected { border-color:transparent; background:var(--bg-3); box-shadow:inset 2px 0 0 var(--text-1); }
.v2review .shot img,.v2review .shot video { width:72px; height:40px; object-fit:cover; border-radius:var(--r-sm); background:var(--bg-3); }
.v2review .shot > span { min-width:0; }
.v2review .shot b { display:-webkit-box; -webkit-box-orient:vertical; -webkit-line-clamp:2; overflow:hidden; font-size:var(--fs-13); font-weight:600; }
.v2review .shot > small[aria-label] { color:var(--st-stale-text); font-size:var(--fs-18); line-height:1; }
.v2review .shot .warning { grid-column:1 / -1; overflow:hidden; white-space:nowrap; text-overflow:ellipsis; text-align:left; }
.v2review .sectionHead { flex-wrap:wrap; gap:8px; margin-bottom:8px; }
.v2review .sectionHead > b { font-size:var(--fs-15); font-weight:600; }
.v2review .sectionHead > div { margin-left:auto; display:flex; gap:6px; }
.v2review section > p,.v2review .compareScroll > p { margin:0 0 12px; font-size:var(--fs-13); }

/* 新旧对比 */
.v2review .pair { display:grid; grid-template-columns:1fr 1fr; gap:var(--sp-3); }
.v2review .pair > div { min-width:0; display:flex; flex-direction:column; gap:10px; padding:12px; border:0; border-radius:var(--r-lg); background:var(--bg-2); }
.v2review .pair h2 { align-self:flex-start; padding:3px 10px; border-radius:var(--r-pill); background:var(--bg-3); color:var(--text-3); font-size:var(--fs-12); font-weight:600; }
.v2review .pair > div:last-child h2 { background:var(--bg-4); color:var(--text-1); }
.v2review .frame { height:clamp(180px,36vh,400px); display:grid; place-items:center; margin:0; overflow:hidden; border-radius:var(--r-md); background:var(--bg-0); }
.v2review .frame img,.v2review .frame video { width:100%; height:100%; min-height:0; object-fit:contain; }
.v2review .decisionRow { position:static; display:flex; justify-content:space-between; padding:8px 12px; border-top:1px solid var(--line-1); background:var(--bg-1); }
.v2review .decisionRow button { min-height:44px; min-width:160px; font-weight:600; }
.v2review section:has(> .compareScroll) { display:grid; grid-template-rows:minmax(0,1fr) auto; min-height:0; padding:0; overflow:hidden; }
.v2review .compareScroll { overflow:auto; padding:var(--sp-4); }
.v2review .countTag { white-space:nowrap; }
@media (min-width:1400px) { .v2review .workspace { grid-template-columns:minmax(300px,22%) minmax(0,1fr); } }
.v2review .counts { display:flex; flex-wrap:wrap; gap:4px; }
.v2review .tabs { display:flex; align-items:center; flex-wrap:wrap; gap:6px; color:var(--text-3); font-size:var(--fs-12); }
.v2review .tabs button { padding:4px 12px; font-size:var(--fs-12); }
.v2review .tabs button.selected { background:var(--bg-4); border-color:var(--text-1); color:var(--text-1); }
.v2review .candidates { display:flex; gap:var(--sp-2); overflow-x:auto; margin-bottom:var(--sp-3); }
.v2review .candidates img,.v2review .candidates video { width:88px; height:50px; object-fit:cover; border-radius:var(--r-sm); }
.v2review .candidates figcaption { white-space:nowrap; margin-top:4px; font-size:var(--fs-12); }
.v2review .warning { margin-block:var(--sp-1); color:var(--st-stale-text); font-size:var(--fs-13); }
.v2review .staleMark { color:var(--st-stale-text); }
.v2review .characterRefs { display:flex; flex-wrap:wrap; gap:.5rem; }
.v2review .characterRefs figure { margin:.25rem 0; }
.v2review .characterRefs img { width:4rem; height:4rem; object-fit:contain; border-radius:var(--r-sm); background:var(--bg-3); }

/* 保留菜单与确认框 */
.v2review .staleActions { position:relative; }
.v2review .staleActions svg { width:1em; height:1em; fill:none; stroke:currentColor; vertical-align:middle; }
.v2review .staleMenu,.v2review .keepDialog { padding:10px; border:0; border-radius:var(--r-md); background:var(--bg-2); box-shadow:var(--shadow-pop); }
.v2review .staleMenu { position:absolute; top:calc(100% + 4px); left:0; z-index:2; width:16em; display:grid; gap:4px; }
.v2review .staleMenu button { border-radius:var(--r-sm); background:transparent; text-align:left; }
.v2review .staleMenu button:hover:not(:disabled) { background:var(--bg-3); }
.v2review .staleMenu small { display:block; }
.v2review footer .staleMenu { top:auto; bottom:calc(100% + 4px); }
.v2review .keepDialog::backdrop { background:var(--bg-scrim); }
.v2review .keepDialog { max-width:min(26em,90vw); padding:1.25em; color:var(--text-1); }

/* 底栏 */
.v2review .recompute { flex:none; margin:0; padding:8px 14px; border-radius:var(--r-md); background:var(--bg-1); color:var(--text-2); font-size:var(--fs-12); }
.v2review footer { display:flex; flex-direction:column; gap:8px; border:1px solid var(--line-1); }
.v2review .error { margin:0; padding:8px 12px; border-radius:var(--r-sm); background:var(--st-error-fill); color:var(--st-error-text); box-shadow:inset 3px 0 0 var(--st-error-line); }
.v2review .actions { flex-wrap:wrap; gap:10px 12px; }
.v2review #acceptBtn { min-height:44px; padding:0 22px; border:0; background:var(--bg-inverse); color:var(--text-inverse); font-weight:650; }
.v2review #acceptBtn:hover:not(:disabled) { background:var(--bg-inverse-hover); }
.v2review #acceptBtn:disabled { background:var(--bg-3); color:var(--text-3); opacity:1; cursor:not-allowed; }
.v2review .actions > small { max-width:360px; color:var(--text-2); }
.v2review [data-action="reject"] { min-height:40px; background:transparent; color:var(--st-error-text); border-color:var(--line-2); }
.v2review [data-action="reject"]:hover:not(:disabled) { background:var(--st-error-fill); border-color:var(--st-error-line); }
.v2review .keys { white-space:nowrap; color:var(--text-3); }
.v2review .cost { margin-left:auto; text-align:right; color:var(--text-2); font-size:var(--fs-13); font-variant-numeric:tabular-nums; }
.v2review .cost .overQuote { color:var(--st-error-text); }

@media (max-width:760px) {
  .v2review .top,.v2review header,.v2review .actions { flex-wrap:wrap; }
  .v2review .workspace { display:flex; flex-direction:column; overflow:auto; }
  .v2review aside,.v2review section { overflow:visible; }
  .v2review .shot { width:auto; display:inline-grid; }
  .v2review .pair { grid-template-columns:1fr; }
}

.v2review .primaryCol { display:grid; justify-items:center; gap:4px; }
.v2review footer { padding:8px 12px; }
.v2review .countTag,.v2review .choiceIcon { display:inline-block; padding:1px 5px; border:1px solid var(--line-2); border-radius:var(--r-pill); color:var(--text-2); }
.v2review .countTag { padding:1px 4px; }
.v2review .choiceIcon.use_new { border-color:var(--text-1); color:var(--text-1); }

.v2review .workspace > :is(aside,section),.v2review .pair > div,.v2review footer { border:1px solid var(--line-control); border-radius:var(--r-lg); }
.v2review footer .cost { line-height:1.4; }
@media (min-width:1100px) { .v2review footer .cost { white-space:nowrap; } }
@media (min-width:1100px) {
  .v2review .top,.v2review .actions { gap:8px; flex-wrap:nowrap; }
  .v2review #acceptBtn { padding-inline:12px; }
  .v2review .sectionHead,.v2review .tabs { gap:6px; }
  .v2review .sectionHead button,.v2review .tabs button { padding-inline:8px; white-space:nowrap; }
}
.v2review footer .primaryCol { display:flex; align-items:center; gap:2px; }
@media (min-width:1100px) {
  .v2review footer :is(#acceptBtn,#rejectBtn) { white-space:nowrap; }
}

.v2review #reviewDoneCue { color:var(--st-approved-text); font-size:var(--fs-13); white-space:nowrap; }
.v2review #acceptBtn.reviewDone { outline:1px solid var(--st-approved-line); outline-offset:2px; }
@media (prefers-reduced-motion:no-preference) {
  .v2review #acceptBtn.reviewPulse { animation:reviewDonePulse 480ms ease-out; }
  @keyframes reviewDonePulse {
    50% { outline-offset:4px; }
  }
}
