/* 编辑侧视图（queue/manuscripts/techcheck/dashboard/desk/board/reviewers/decision）专用样式；令牌全部来自 styles.css */

/* 图表 */
.ch { width: 100%; max-width: 760px; height: auto; display: block; overflow: visible; }
.ch-lab { font-size: 13px; fill: var(--ink-2); }
.ch-num { font-size: 14px; font-weight: 600; fill: var(--ink); font-variant-numeric: tabular-nums; }
.ch-sub { font-size: 11px; fill: var(--ink-3); }
.ch .ch-grow { transform: scaleX(0); transition: transform .7s cubic-bezier(.2,.7,.2,1); }
.ch.on .ch-grow, .ch.static .ch-grow { transform: none; }
.live-note { font-size: 12px; color: var(--ink-3); display: inline-flex; align-items: center; gap: 4px; }
.live-note::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--ok); }

/* 工作台分栏 */
.lane { display: flex; flex-direction: column; min-width: 0; }
.lane .card-head h3 { display: flex; align-items: center; gap: 8px; }
.lane .count { font-size: 12px; background: var(--brand-soft); color: var(--brand); border-radius: 10px; padding: 0 8px; font-weight: 600; }
.lane .count.hot { background: var(--accent-soft); color: var(--accent); }
.lrow { display: flex; gap: 10px; align-items: flex-start; padding: 10px 0; border-top: 1px solid var(--line); cursor: pointer; }
.lrow:first-of-type { border-top: 0; }
.lrow:hover .lt { color: var(--brand-2); }
.lrow .lt { font-weight: 500; overflow-wrap: anywhere; }
.lrow .lm { font-size: 12px; color: var(--ink-3); display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-top: 2px; }
.lrow .la { margin-left: auto; flex: none; display: flex; gap: 6px; align-items: center; }
.days { font-variant-numeric: tabular-nums; font-weight: 600; }
.days.bad { color: var(--bad); } .days.warn { color: var(--warn); }

/* 筛选条 */
.filters { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 12px; }
.filters .input { width: auto; min-width: 0; flex: 1 1 180px; }
.filters select.input { flex: 0 1 160px; }
.filters label.ck { display: inline-flex; gap: 4px; align-items: center; font-size: 12px; color: var(--ink-2); white-space: nowrap; }

/* 技术初查 */
.tc-bar { display: flex; height: 10px; border-radius: 5px; overflow: hidden; background: var(--panel-2); margin: 8px 0 4px; }
.tc-bar span { transition: flex-grow .6s ease; }
.tc-item { padding: 10px 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: 22px 1fr; gap: 8px; }
.tc-item:first-child { border-top: 0; }
.tc-item .ic svg { width: 18px; height: 18px; }
.tc-item.pass .ic { color: var(--ok); } .tc-item.warn .ic { color: var(--warn); } .tc-item.fail .ic { color: var(--bad); } .tc-item.na .ic { color: var(--ink-3); }
.ev-text { font-family: var(--mono); font-size: 11.5px; color: var(--ink-2); background: var(--panel-2); border-radius: 4px; padding: 4px 6px; margin-top: 4px; white-space: pre-wrap; overflow-wrap: anywhere; max-height: 140px; overflow-y: auto; }
.gen-tag { font-size: 11px; color: var(--ink-3); border: 1px dashed var(--line-2); border-radius: 4px; padding: 0 6px; }

/* 相似度条 */
.simbar { height: 6px; border-radius: 3px; background: var(--panel-2); overflow: hidden; width: 100%; max-width: 160px; }
.simbar > span { display: block; height: 100%; background: var(--brand-2); transition: width .6s ease; }

/* 找审稿人 */
.run-steps { display: flex; gap: 6px; flex-wrap: wrap; margin: 10px 0 4px; }
.run-steps .st { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; padding: 4px 10px; border-radius: 14px; background: var(--panel-2); color: var(--ink-3); border: 1px solid var(--line); transition: background .3s, color .3s; }
.run-steps .st.cur { background: var(--brand-soft); color: var(--brand); border-color: var(--brand-soft); }
.run-steps .st.cur::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--brand); animation: pulse 1s infinite ease-in-out; }
.run-steps .st.done { background: var(--ok-soft); color: var(--ok); border-color: transparent; }
.run-steps .st.done::before { content: "✓"; font-size: 11px; }
.kp-list { display: flex; gap: 6px; flex-wrap: wrap; }
.q-row { display: grid; grid-template-columns: 120px 1fr auto; gap: 8px; font-size: 12px; padding: 5px 0; border-top: 1px solid var(--line); align-items: baseline; }
.q-row .q { font-family: var(--mono); font-size: 11.5px; color: var(--ink-2); overflow-wrap: anywhere; }
.stat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.stat-grid .sg { background: var(--panel-2); border-radius: 8px; padding: 8px 10px; }
.stat-grid .sg b { display: block; font-size: 18px; font-variant-numeric: tabular-nums; }
.stat-grid .sg span { font-size: 11.5px; color: var(--ink-3); }
.w-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 6px 14px; font-size: 12px; color: var(--ink-2); }
.w-list i { display: inline-block; width: 8px; height: 8px; border-radius: 2px; margin-right: 6px; }

.cand { border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; background: var(--panel); transition: border-color .2s, box-shadow .2s; scroll-margin-top: 72px; }
.cand + .cand { margin-top: 10px; }
.cand.flash { border-color: var(--brand-2); box-shadow: 0 0 0 3px var(--brand-soft); }
.cand.kept { border-left: 3px solid var(--ok); }
.cand.dropped { opacity: .55; }
.cand-top { display: grid; grid-template-columns: 34px minmax(0, 1fr) 190px; gap: 12px; align-items: start; }
.cand .rank { width: 30px; height: 30px; border-radius: 8px; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; font-weight: 700; font-variant-numeric: tabular-nums; }
.cand .nm { font-weight: 600; font-size: 15px; }
.cand .meta { font-size: 12px; color: var(--ink-3); display: flex; gap: 6px 10px; flex-wrap: wrap; align-items: center; margin-top: 2px; }
.cand .tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; }
.cand .rat { font-size: 12.5px; color: var(--ink-2); margin-top: 6px; }
.cand .score { text-align: right; }
.cand .score b { font-size: 22px; font-variant-numeric: tabular-nums; }
.cand .score .bar { margin-top: 4px; height: 10px; }
.cand .comp-table { font-size: 12px; margin-top: 6px; display: grid; grid-template-columns: auto 1fr auto; gap: 2px 8px; text-align: left; }
.cand .comp-table i { width: 8px; height: 8px; border-radius: 2px; display: inline-block; margin-top: 5px; }
.cand .ops { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; align-items: center; }
.ev-row { padding: 8px 0; border-top: 1px dashed var(--line); font-size: 12.5px; }
.ev-row .et { font-weight: 500; overflow-wrap: anywhere; }
.ev-row .em { color: var(--ink-3); font-size: 12px; display: flex; gap: 6px 10px; flex-wrap: wrap; align-items: center; margin-top: 2px; }
mark.term { background: var(--accent-soft); color: var(--ink); border-radius: 3px; padding: 0 2px; }
.flag-row { font-size: 12.5px; padding: 6px 0; border-top: 1px dashed var(--line); }
.flag-row ul { margin: 4px 0 0; padding-left: 18px; color: var(--ink-2); }

.net { width: 100%; max-width: 720px; margin: 0 auto; display: block; }
.net .nd { cursor: pointer; transition: opacity .5s ease, transform .6s cubic-bezier(.2,.7,.2,1); }
.net:not(.on):not(.static) .nd { opacity: 0; transform: scale(.4); }
.net .nd circle { stroke: var(--panel); stroke-width: 2; }
.net .nd:hover circle, .net .nd:focus circle { stroke: var(--ink); }
.net .nd text { font-size: 11px; fill: var(--ink-2); pointer-events: none; }
.net .ln { transition: opacity .8s ease .3s; }
.net:not(.on):not(.static) .ln { opacity: 0; }
.net-legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 11.5px; color: var(--ink-3); justify-content: center; margin-top: 6px; }
.net-legend i { display: inline-block; width: 18px; height: 0; border-top: 2px solid var(--line-2); vertical-align: middle; margin-right: 4px; }
.net-legend i.red { border-top: 2px dashed var(--bad); }
.net-legend i.dot { width: 10px; height: 10px; border: 0; border-radius: 50%; background: var(--brand); }

.short-item { display: grid; grid-template-columns: minmax(0, 1fr) 220px auto; gap: 8px; align-items: center; padding: 8px 0; border-top: 1px solid var(--line); }
.short-item:first-child { border-top: 0; }
.short-item .input { width: 100%; }
.review-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; }
.review-card + .review-card { margin-top: 10px; }
.review-card .conf { background: var(--warn-soft); border-radius: 6px; padding: 8px 10px; margin-top: 8px; font-size: 13px; }
.pre { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 13px; }
.letter-ta { min-height: 260px !important; font-family: var(--mono); font-size: 12px !important; }

@media (max-width: 960px) {
  .stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .cand-top { grid-template-columns: 30px minmax(0, 1fr); }
  .cand .score { grid-column: 1 / -1; text-align: left; }
  .q-row { grid-template-columns: 1fr auto; } .q-row .q { grid-column: 1 / -1; }
  .short-item { grid-template-columns: minmax(0, 1fr); }
  .lrow { flex-wrap: wrap; } .lrow .la { margin-left: 0; }
  .filters select.input, .filters .input { flex: 1 1 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .ch .ch-grow { transform: none; }
  .net .nd, .net .ln { opacity: 1 !important; transform: none !important; }
}
