/* 协商清单生成器 */
.nego-container { max-width: 720px; }

.nego-warn {
    margin: 10px 0 0; padding: 10px 14px;
    background: #f7f7f5; border: 1.5px solid #e5e5e0; border-radius: 10px;
    font-size: 0.85rem; color: #555; line-height: 1.8;
}

/* 身份切换 */
.side-switch { display: flex; gap: 10px; margin: 12px 0; }
.side-btn {
    flex: 1; padding: 12px 0; font-size: 0.95rem; font-weight: 700;
    border: 1.5px solid #000; border-radius: 10px; background: transparent;
    color: #000; cursor: pointer; transition: all .15s;
}
.side-btn.on { background: #000; color: #fff; }
.nego-names { display: flex; gap: 10px; }
.nego-names .tr-input { flex: 1; }
.nego-progress { margin-top: 10px; font-size: 0.82rem; color: #666; text-align: right; }

/* 主题卡 */
.nego-card {
    border: 1.5px solid #e5e5e0; border-radius: 12px;
    padding: 14px; margin: 12px 0; background: #fff;
}
.nego-card-head { display: flex; justify-content: space-between; align-items: center; }
.nego-card-head b { font-size: 0.95rem; }
.nego-picked { font-size: 0.8rem; color: #888; white-space: nowrap; }
.nego-q { margin: 8px 0 10px; font-size: 0.85rem; color: #555; line-height: 1.75; }
.nego-tip-small { font-size: 0.75rem; color: #999; font-weight: 400; }

.nego-opts { display: flex; gap: 8px; margin-bottom: 10px; }
.nego-opt {
    flex: 1; padding: 9px 0; font-size: 0.85rem;
    border: 1.5px solid #ddd; border-radius: 9px; background: #fafafa;
    cursor: pointer; transition: all .12s; color: #333;
}
.nego-opt.on-ok { background: #eaf7ec; border-color: #2e7d32; font-weight: 700; }
.nego-opt.on-cond { background: #fdf6e3; border-color: #b8860b; font-weight: 700; }
.nego-opt.on-no { background: #fdeeee; border-color: #b3261e; font-weight: 700; }
.nego-note { width: 100%; box-sizing: border-box; font-size: 0.85rem; }

/* 对照 */
.nego-stats { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0; }
.nego-stats span {
    padding: 6px 12px; border-radius: 999px; font-size: 0.8rem;
    background: #f2f2ef; border: 1px solid #e2e2dd; color: #444;
}
.nego-stats .st-ok { background: #eaf7ec; border-color: #bcd9bf; }
.nego-stats .st-cond { background: #fdf6e3; border-color: #e3cf96; }
.nego-stats .st-no { background: #fdeeee; border-color: #e6b3af; }
.nego-stats .st-warn { background: #fdeeee; border-color: #b3261e; color: #b3261e; font-weight: 700; }
.nego-stats .st-good { background: #eaf7ec; border-color: #2e7d32; color: #2e7d32; }
.nego-stats .st-todo { color: #888; }

.cmp-row {
    border: 1.5px solid #eee; border-left-width: 4px; border-radius: 10px;
    padding: 10px 12px; margin: 8px 0; font-size: 0.85rem;
}
.cmp-ok { border-left-color: #2e7d32; }
.cmp-cond { border-left-color: #b8860b; }
.cmp-no { border-left-color: #b3261e; background: #fffafa; }
.cmp-todo { border-left-color: #ccc; color: #888; }
.cmp-topic { font-weight: 700; margin-bottom: 4px; }
.cmp-ans { display: flex; gap: 16px; color: #555; flex-wrap: wrap; }
.cmp-ans .bad { color: #b3261e; font-weight: 700; }
.cmp-note { margin-top: 4px; color: #777; font-size: 0.8rem; }
.cmp-noteno { margin-top: 4px; color: #b3261e; font-size: 0.8rem; }

/* 清单码 */
.nego-tip { font-size: 0.82rem; color: #666; line-height: 1.8; margin: 6px 0 12px; }
.nego-code {
    width: 100%; box-sizing: border-box; margin: 8px 0;
    font-size: 0.78rem; padding: 10px; border: 1.5px solid #ddd;
    border-radius: 9px; resize: vertical; word-break: break-all;
}
.sign-row { display: flex; gap: 10px; margin: 8px 0; flex-wrap: wrap; }
.nego-status { min-height: 1.4em; font-size: 0.82rem; color: #2e7d32; margin-top: 6px; }

/* 导出按钮区（与契约模板同名风格） */
.preview-actions { display: flex; gap: 10px; margin-top: 14px; flex-wrap: wrap; }
.action-btn {
    padding: 11px 20px; border-radius: 10px; font-size: 0.9rem;
    border: 1.5px solid #000; background: #fff; color: #000; cursor: pointer;
}
.action-btn.primary { background: #000; color: #fff; }
.action-btn:disabled { opacity: .5; cursor: wait; }

/* 相关阅读 */
.nego-read { font-size: 0.85rem; color: #555; line-height: 2; }
.nego-read a { color: #000; font-weight: 700; }

/* 离屏截图容器 */
.snapshot-host {
    position: fixed; left: -9999px; top: 0;
    width: 640px; z-index: -1;
}
.snapshot-card {
    width: 640px; box-sizing: border-box; background: #fff;
    padding: 26px 28px; font-family: -apple-system, 'PingFang SC', 'Microsoft YaHei', sans-serif;
}
.nego-snap .snap-title { font-size: 1.4rem; font-weight: 800; letter-spacing: 2px; }
.nego-snap .snap-sub { font-size: 0.85rem; color: #666; margin: 6px 0 14px; padding-bottom: 12px; border-bottom: 2px solid #000; }
.nego-snap .snap-row {
    display: flex; align-items: baseline; gap: 8px;
    padding: 7px 0; border-bottom: 1px dashed #e8e8e3; font-size: 0.9rem;
}
.nego-snap .snap-i { color: #aaa; font-size: 0.75rem; width: 20px; }
.nego-snap .snap-v { margin-left: auto; color: #555; font-size: 0.82rem; white-space: nowrap; }
.nego-snap .snap-no { color: #b3261e; font-weight: 800; font-size: 0.78rem; border: 1.5px solid #b3261e; border-radius: 6px; padding: 1px 6px; }
.nego-snap .snap-sum { margin-top: 14px; font-size: 0.95rem; font-weight: 700; line-height: 1.9; }

/* 打印 */
@media print {
    .side-switch, .nego-names, .nego-progress, .preview-actions,
    #codeSection, #sideSection .section-title + * { display: none !important; }
    .nego-card { break-inside: avoid; }
}
