/* 多人一键成片 · 本机账号 / 专属 / 一键成片 */
.yjp-note {
  background: #ddf4ff;
  border: 1px solid #54aeff66;
  border-radius: var(--radius);
  padding: 10px 12px;
  margin: 0 0 14px;
  color: var(--hi-text);
  font-size: 0.889rem;
  line-height: 1.45;
}
.yjp-note strong { font-weight: 600; }
.yjp-row {
  display: flex; flex-wrap: wrap; gap: 10px; align-items: center;
  margin: 0 0 12px;
}
.yjp-row .spacer { flex: 1; }
.yjp-probe {
  background: #e8f3ff;
  border: 1px solid #54aeff66;
  border-radius: var(--radius);
  padding: 12px 14px;
  margin: 0 0 12px;
}
.yjp-probe.hidden { display: none; }
.yjp-probe-title { font-weight: 600; margin: 0 0 4px; }
.yjp-probe-meta { color: var(--muted); font-size: 0.85rem; margin: 0 0 8px; }
.yjp-probe-bar {
  height: 8px;
  background: #d7ebf8;
  border-radius: 999px;
  overflow: hidden;
}
.yjp-probe-bar i {
  display: block;
  height: 100%;
  width: 0;
  background: var(--accent, #0969da);
  border-radius: 999px;
  transition: width 0.35s ease;
}
.yjp-cards { display: flex; flex-direction: column; gap: 10px; }
.yjp-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 14px 16px; display: grid; grid-template-columns: 1fr auto; gap: 8px 16px;
  align-items: center;
}
.yjp-card.offline { opacity: 0.85; border-color: #d4a72c66; background: #fff8c5; }
.yjp-card h3 { margin: 0; font-size: 1.05rem; }
.yjp-meta { color: var(--muted); font-size: 0.85rem; }
.yjp-dot {
  display: inline-block; width: 8px; height: 8px; border-radius: 50%;
  margin-right: 6px; background: var(--accent);
}
.yjp-dot.warn { background: #d4a72c; }
.yjp-dot.bad { background: var(--bad); }
.yjp-actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.yjp-panel {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 14px 16px; margin: 0 0 14px;
}
.yjp-panel h2 { margin: 0 0 10px; }
.yjp-seg {
  display: inline-flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden;
  background: #fff;
}
/* #appMain 提高优先级，盖过 index.html 里 #appMain button 的默认底色，否则 .on 不高亮 */
#appMain .yjp-seg button {
  border: 0; border-radius: 0; background: transparent; padding: 6px 14px; cursor: pointer;
  font: inherit; font-size: 0.95rem; font-weight: 500; color: var(--muted);
}
#appMain .yjp-seg button:hover { background: #d7ebf8; color: var(--hi-text); }
#appMain .yjp-seg button.on,
#appMain .yjp-seg button.on:hover,
#appMain .yjp-seg button.on:active {
  background: var(--accent); color: #fff; border-color: transparent;
}
.yjp-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 10px; }
#appMain .yjp-chip,
#appMain button.yjp-chip,
.yjp-mat-mask .yjp-chip,
.yjp-mat-mask button.yjp-chip {
  border: 1px solid var(--line); background: #fff; border-radius: 999px;
  padding: 4px 12px; cursor: pointer; font: inherit; font-size: 0.85rem; font-weight: 500;
  color: var(--text);
}
#appMain .yjp-chip.on,
#appMain button.yjp-chip.on,
.yjp-mat-mask .yjp-chip.on,
.yjp-mat-mask button.yjp-chip.on {
  border-color: var(--accent); background: var(--ok-bg); color: #0a3060; font-weight: 600;
}
#appMain .yjp-chip.bad,
#appMain button.yjp-chip.bad,
.yjp-mat-mask .yjp-chip.bad,
.yjp-mat-mask button.yjp-chip.bad {
  border-color: #ffcecb; background: #ffebe9; color: var(--bad); font-weight: 600;
}
#appMain .yjp-chip:disabled,
#appMain button.yjp-chip:disabled,
.yjp-mat-mask .yjp-chip:disabled,
.yjp-mat-mask button.yjp-chip:disabled { opacity: 0.4; cursor: not-allowed; }
.yjp-split {
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 12px;
}
@media (max-width: 1100px) {
  .yjp-split { grid-template-columns: 1fr; }
}
.yjp-list {
  border: 1px solid var(--line); border-radius: var(--radius);
  max-height: 320px; overflow: auto; background: #fff;
}
/* 贴料弹窗：几乎整屏，列表一次能看很多条 */
.yjp-mat-mask {
  position: fixed; inset: 0; z-index: 9200;
  background: rgba(15, 23, 42, 0.48);
  display: flex; align-items: stretch; justify-content: center;
  padding: 20px;
  box-sizing: border-box;
}
.yjp-mat-mask button {
  border: 1px solid var(--line); background: #fff; border-radius: 8px;
  padding: 6px 12px; cursor: pointer; font: inherit; font-size: 0.9rem;
  color: var(--text);
}
.yjp-mat-mask button.primary {
  background: var(--accent); color: #fff; border-color: var(--accent);
}
.yjp-mat-mask button:hover { background: #d7ebf8; color: var(--hi-text); }
.yjp-mat-mask button.primary:hover { filter: brightness(.95); background: var(--accent); color: #fff; }
.yjp-mat-mask input[type="text"] {
  font: inherit; color: var(--text); background: #fff;
}
.yjp-mat-modal {
  width: min(1120px, 100%);
  max-height: calc(100vh - 40px);
  background: #fff;
  border-radius: 12px;
  border: 1px solid var(--line);
  box-shadow: 0 18px 48px rgba(15, 23, 42, 0.28);
  display: flex; flex-direction: column;
  overflow: hidden;
}
.yjp-mat-modal .yjp-mat-hd {
  display: flex; flex-wrap: wrap; gap: 10px; align-items: center;
  padding: 12px 16px; border-bottom: 1px solid var(--line);
  flex: 0 0 auto;
}
.yjp-mat-modal .yjp-mat-hd h3 {
  margin: 0; font-size: 1.05rem; flex: 1 1 auto;
}
.yjp-mat-modal .yjp-mat-bd {
  padding: 12px 16px 16px; overflow: auto; flex: 1 1 auto;
  min-height: 0;
}
.yjp-mat-modal .yjp-list {
  max-height: none;
  height: min(58vh, 560px);
}
.yjp-mat-modal .yjp-picked {
  min-height: 160px;
  max-height: min(58vh, 560px);
  overflow: auto;
}
.yjp-mat-summary {
  margin-top: 10px;
}
.yjp-mat-summary .yjp-picked {
  min-height: 72px;
  max-height: 180px;
  overflow: auto;
}
.yjp-item {
  display: grid; grid-template-columns: 22px 1fr; gap: 8px;
  padding: 8px 10px; border-bottom: 1px solid #eef1f4; align-items: start;
}
.yjp-item:last-child { border-bottom: 0; }
.yjp-item .t { font-weight: 500; }
.yjp-item .m { color: var(--muted); font-size: 0.8rem; margin-top: 2px; line-height: 1.45; }
.yjp-item .m .yjp-page { margin-right: 6px; }
.yjp-item .m .yjp-tz { display: inline-block; vertical-align: top; }
.yjp-item .m .tz-k { margin-right: 4px; color: #666; }
.yjp-item .yjp-eng,
.yjp-picked .yjp-eng { color: var(--text); font-size: 0.82rem; margin-top: 2px; line-height: 1.4; }
.yjp-picked {
  border: 1px solid var(--line); border-radius: var(--radius);
  min-height: 120px; background: #fafbfc; padding: 8px;
}
.yjp-pick-group { margin: 0 0 12px; }
.yjp-pick-group:last-child { margin-bottom: 0; }
.yjp-pick-group .gh {
  font-weight: 600; color: #0a3060; margin: 0 0 6px; font-size: 0.92rem;
}
.yjp-picked .tag {
  display: flex; justify-content: space-between; gap: 8px; align-items: flex-start;
  background: #fff; border: 1px solid var(--line); border-radius: 6px;
  padding: 8px 10px; margin: 0 0 6px; font-size: 0.85rem;
}
.yjp-picked .tag .body { min-width: 0; flex: 1; }
.yjp-picked .tag .t { font-weight: 500; line-height: 1.4; word-break: break-word; }
.yjp-picked .tag .meta {
  margin-top: 4px; color: var(--muted); font-size: 0.78rem; line-height: 1.45;
}
.yjp-picked .tag .meta .sep { margin: 0 6px; color: #c0c7d0; }
.yjp-picked .tag button {
  border: 0; background: transparent; cursor: pointer; color: var(--bad); font: inherit;
  flex: 0 0 auto; line-height: 1;
}
.yjp-mat-summary .yjp-picked {
  min-height: 96px;
  max-height: min(42vh, 360px);
  overflow: auto;
}
.yjp-grid-params {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px;
}
.yjp-block {
  border: 1px solid var(--line); border-radius: 8px; background: #fafbfc;
  padding: 12px 14px; margin: 0 0 12px;
}
.yjp-block h4 {
  margin: 0 0 8px; font-size: 0.95rem; color: var(--hi-text);
}
.yjp-stance-block label {
  display: block; font-size: 0.8rem; color: var(--muted); margin: 0 0 4px;
}
.yjp-stance-picks {
  display: flex; flex-direction: column; gap: 10px; margin-top: 2px;
}
.yjp-stance-row {
  display: flex; flex-wrap: wrap; gap: 8px; align-items: center;
}
.yjp-stance-row + .yjp-stance-row {
  padding-top: 8px; border-top: 1px solid var(--line);
}
#appMain .yjp-stance-picks button {
  border: 1px solid var(--line); background: #fff; border-radius: 8px;
  padding: 8px 12px; cursor: pointer; font: inherit; font-size: 0.9rem; font-weight: 500;
  color: var(--text); text-align: left; line-height: 1.35;
}
#appMain .yjp-stance-picks button:hover { background: #d7ebf8; color: var(--hi-text); }
#appMain .yjp-stance-picks button.on,
#appMain .yjp-stance-picks button.on:hover {
  border-color: var(--accent); background: var(--ok-bg, #ddf4ff); color: #0a3060; font-weight: 600;
}
.yjp-field label {
  display: block; font-size: 0.8rem; color: var(--muted); margin: 0 0 4px;
}
.yjp-field select, .yjp-field input[type="text"], .yjp-field textarea {
  width: 100%; padding: 7px 9px; border: 1px solid var(--line); border-radius: 6px;
  font: inherit; background: #fff;
}
.yjp-field textarea { min-height: 110px; resize: vertical; font-family: "JetBrains Mono", Consolas, monospace; font-size: 0.8rem; }
.yjp-override-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
}
@media (max-width: 900px) {
  .yjp-override-grid { grid-template-columns: 1fr; }
}
.yjp-override-block {
  padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; background: #fafbfc;
}
.yjp-override-block label { font-weight: 600; color: var(--hi-text); }
#appMain .yjp-override-block textarea {
  min-height: 120px; font-family: inherit; font-size: 0.9rem;
}
.yjp-dur-table { width: 100%; border-collapse: collapse; font-size: 0.8rem; }
.yjp-dur-table th, .yjp-dur-table td {
  border: 1px solid var(--line); padding: 6px 4px; text-align: center; white-space: nowrap;
}
.yjp-dur-table th { background: #f6f8fa; font-weight: 600; }
.yjp-dur-table td.plat { text-align: left; font-weight: 600; padding-left: 8px; }
.yjp-dur-table input[type="radio"]:disabled + span,
.yjp-dur-table label.dis { opacity: 0.35; pointer-events: none; }
.yjp-plat-checks { display: flex; flex-wrap: wrap; gap: 12px 18px; }
.yjp-plat-checks label { display: flex; align-items: center; gap: 6px; cursor: pointer; }
.yjp-plat-checks label.dis { opacity: 0.45; cursor: not-allowed; }
/* 单选大选框：选项全摊开，点一块选中；多选仍用上面的复选框 */
.yjp-big-picks {
  display: flex; flex-wrap: wrap; gap: 8px; margin-top: 2px;
}
#appMain .yjp-big-picks button {
  border: 1px solid var(--line); background: #fff; border-radius: 8px;
  padding: 8px 12px; cursor: pointer; font: inherit; font-size: 0.9rem; font-weight: 500;
  color: var(--text); text-align: left; line-height: 1.35;
}
#appMain .yjp-big-picks button:hover { background: #d7ebf8; color: var(--hi-text); }
#appMain .yjp-big-picks button.on,
#appMain .yjp-big-picks button.on:hover {
  border-color: var(--accent); background: var(--ok-bg, #ddf4ff); color: #0a3060; font-weight: 600;
}
.yjp-footer-bar {
  display: flex; flex-wrap: wrap; gap: 10px; align-items: center;
  margin-top: 8px; padding-top: 12px; border-top: 1px solid var(--line);
}
.yjp-side {
  display: flex; gap: 8px; margin: 0 0 12px; flex-wrap: wrap;
}
#appMain .yjp-side button.yjp-acc {
  border: 1px solid var(--line); background: #fff; border-radius: 8px;
  padding: 8px 12px; cursor: pointer; font: inherit; font-size: 0.95rem; font-weight: 500;
  text-align: left; color: var(--text);
}
#appMain .yjp-side button.yjp-acc.on,
#appMain .yjp-side button.yjp-acc.on:hover {
  border-color: var(--accent); background: var(--ok-bg); color: #0a3060;
}
.yjp-progress { display: flex; flex-direction: column; gap: 8px; }
.yjp-prog-row {
  display: grid; grid-template-columns: 80px 1fr 100px; gap: 10px; align-items: center;
  padding: 8px 10px; border: 1px solid var(--line); border-radius: 6px; background: #fff;
}
.yjp-bar {
  height: 8px; background: #eef1f4; border-radius: 999px; overflow: hidden;
}
.yjp-bar > i { display: block; height: 100%; background: var(--accent); width: 0%; }

/* 一键成片 · 真步骤进度 */
.yjp-now {
  margin: 12px 0 0; padding: 9px 11px; border-radius: 8px;
  background: #eff6ff; border: 1px solid #bfdbfe; color: #1e40af; font-weight: 600; font-size: 0.9rem;
}
.yjp-now.done { background: #f0fdf4; border-color: #bbf7d0; color: #166534; }
.yjp-now.err { background: #fef2f2; border-color: #fecaca; color: #991b1b; }
.yjp-run-grid {
  display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 14px; margin-top: 14px;
}
@media (max-width: 1100px) {
  .yjp-run-grid { grid-template-columns: 1fr; }
}
.yjp-run-block h3 {
  margin: 0 0 8px; font-size: 0.92rem; color: #334155;
  display: flex; justify-content: space-between; align-items: center; gap: 8px;
}
.yjp-run-block h3 .muted { font-weight: 400; font-size: 0.78rem; }
.yjp-tl-row {
  display: grid; grid-template-columns: 20px 1fr; gap: 8px;
  padding: 9px 0; border-bottom: 1px solid #f1f5f9;
}
.yjp-tl-row:last-child { border-bottom: 0; }
.yjp-dot {
  width: 16px; height: 16px; border-radius: 50%; margin-top: 2px;
  display: flex; align-items: center; justify-content: center;
  font-size: 10px; border: 2px solid #cbd5e1; background: #fff; color: #64748b; flex-shrink: 0;
}
.yjp-dot.done { background: #16a34a; border-color: #16a34a; color: #fff; }
.yjp-dot.run { background: #2563eb; border-color: #2563eb; color: #fff; }
.yjp-dot.wait { opacity: 0.65; }
.yjp-dot.skip { background: #f1f5f9; color: #94a3b8; }
.yjp-dot.err { background: #dc2626; border-color: #dc2626; color: #fff; }
.yjp-tl-t { font-weight: 650; font-size: 0.9rem; }
.yjp-tl-s { font-size: 0.78rem; color: var(--muted); margin-top: 2px; }
.yjp-tl-tag {
  display: inline-block; font-size: 0.7rem; padding: 1px 6px; border-radius: 999px;
  background: #ffedd5; color: #9a3412; margin-left: 6px; font-weight: 500;
}
.yjp-tl-tag.mid { background: #dbeafe; color: #1d4ed8; }
.yjp-tl-res {
  margin-top: 6px; padding: 7px 9px; background: #f8fafc; border: 1px solid #e2e8f0;
  border-radius: 8px; font-size: 0.8rem; color: #334155; white-space: pre-wrap; word-break: break-word;
}
.yjp-tl-res.live { border-color: #93c5fd; background: #f8fbff; }
.yjp-tl-res.ok { border-color: #bbf7d0; background: #f0fdf4; }
.yjp-pcards { display: flex; flex-direction: column; gap: 10px; }
.yjp-pcard {
  border: 1px solid var(--line); border-radius: 10px; padding: 11px; background: #fff;
}
.yjp-pcard.off { opacity: 0.55; background: #f8fafc; }
.yjp-pcard h4 {
  margin: 0 0 8px; font-size: 0.9rem;
  display: flex; justify-content: space-between; align-items: center; gap: 8px;
}
.yjp-pbadge {
  font-size: 0.72rem; padding: 2px 7px; border-radius: 999px;
  background: #e2e8f0; color: #475569; font-weight: 600;
}
.yjp-pbadge.run { background: #dbeafe; color: #1d4ed8; }
.yjp-pbadge.done { background: #dcfce7; color: #166534; }
.yjp-pcells { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 7px; }
.yjp-pcell {
  border: 1px dashed #e2e8f0; border-radius: 8px; padding: 7px; min-height: 96px;
}
.yjp-pcell strong { display: block; font-size: 0.78rem; margin-bottom: 4px; }
.yjp-pcell .st { font-size: 0.78rem; color: var(--muted); white-space: pre-wrap; word-break: break-word; }
.yjp-pcell.ok { border-style: solid; border-color: #bbf7d0; background: #f0fdf4; }
.yjp-pcell.run { border-style: solid; border-color: #93c5fd; background: #eff6ff; }
.yjp-pcell.skip { background: #f8fafc; }
.yjp-thumb {
  width: 100%; height: 72px; object-fit: cover; border-radius: 4px;
  background: linear-gradient(135deg, #1e3a5f, #475569); margin: 4px 0; display: block;
}
.yjp-hist table { width: 100%; border-collapse: collapse; font-size: 0.85rem; }
.yjp-hist th, .yjp-hist td {
  border-bottom: 1px solid var(--line); padding: 8px 6px; text-align: left;
}
.yjp-hist th { color: var(--muted); font-weight: 600; }
.yjp-hidden { display: none !important; }
#tab-localacc, #tab-oneshot, #tab-ticket { padding: 0 4px 24px; }
.yjp-st {
  display: inline-block; padding: 2px 8px; border-radius: 999px;
  font-size: 0.78rem; background: #eef1f4; color: var(--muted); font-weight: 600;
}
.yjp-st.ok { background: var(--ok-bg); color: #0a3060; }
.yjp-st.warn { background: #fff8c5; color: #7a5a00; }
.yjp-st.bad { background: #ffebe9; color: var(--bad); }
.yjp-ticket-body {
  margin: 0; padding: 10px 12px; background: #fafbfc; border: 1px solid var(--line);
  border-radius: 6px; white-space: pre-wrap; word-break: break-word;
  font: inherit; font-size: 0.9rem; line-height: 1.5;
}
.yjp-ticket-extras { list-style: none; margin: 10px 0 0; padding: 0; }
.yjp-ticket-extras li {
  display: grid; grid-template-columns: minmax(120px, 0.8fr) 1fr auto; gap: 10px; align-items: center;
  padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; background: #fff; margin: 0 0 8px;
}
@media (max-width: 900px) {
  .yjp-ticket-extras li { grid-template-columns: 1fr; }
}
