.legal-skill-panel{border-top:1px solid #dce4ef;margin-top:20px;padding-top:18px;color:#34445d}
.legal-skill-panel h3{font-size:13px;margin:0 0 8px}
.legal-skill-panel p,.legal-skill-panel small{font-size:12px;line-height:1.6;color:#697b92}
.legal-skill-materials{display:grid;gap:7px;margin:12px 0}
.legal-skill-materials>div{display:flex;align-items:center;justify-content:space-between;gap:8px;background:#f5f8fc;border-radius:7px;padding:6px 8px;font-size:12px}
.legal-skill-materials span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.legal-skill-materials button{border:0;background:transparent;color:#57739d;min-height:28px;padding:3px 5px}
.legal-skill-tools{display:flex;gap:6px;flex-wrap:wrap;margin:12px 0 8px}
.legal-skill-tools button,.legal-skill-panel>p button{border:1px solid #d7e2f0;background:#fff;color:#315c9b;border-radius:7px;padding:5px 9px;font-size:12px}
.legal-skill-artifact{display:flex;gap:12px;align-items:center;justify-content:space-between;margin-top:12px;padding:14px;border:1px solid #d6e3f5;border-radius:10px;background:#f8fbff}
.legal-skill-artifact strong,.legal-skill-artifact small{display:block}
.legal-skill-artifact strong{font-size:13px;color:#253d61}.legal-skill-artifact small{font-size:11px;color:#687b97;margin-top:4px}
.legal-skill-artifact button{border:1px solid #aec7ed;background:#fff;border-radius:7px;color:#245ea6;padding:6px 10px;white-space:nowrap}
.legal-skill-locked{border:1px solid #e9d9b6;background:#fff9ed;color:#815f27;padding:10px;border-radius:8px;font-size:12px;margin-top:8px}
.intake-precheck-card{margin-top:12px;padding:16px;border:1px solid #d8e3f4;border-radius:11px;background:#fbfdff;color:#334760;font-size:13px;line-height:1.7}
.intake-precheck-head{display:flex;justify-content:space-between;align-items:center;gap:12px}.intake-precheck-head strong{font-size:14px}.intake-precheck-head span{font-size:11px;color:#795b1c;background:#fff4dc;padding:3px 8px;border-radius:5px;white-space:nowrap}
.intake-precheck-card p{margin:10px 0}.intake-precheck-subjects{display:flex;flex-wrap:wrap;gap:6px}.intake-precheck-subjects span{padding:4px 8px;border-radius:6px;background:#eaf2ff;color:#315c9b;font-size:12px}
.intake-precheck-card ul{margin:12px 0;padding-left:18px}.intake-precheck-card li{margin:5px 0;overflow-wrap:anywhere}.intake-precheck-card a{color:#245ea6}.intake-precheck-card small{display:block;margin-top:12px;color:#6d7d91}
.intake-precheck-note{margin-top:10px;padding:10px 12px;border:1px solid #e9d9b6;border-radius:8px;background:#fff9ed;color:#745b33;font-size:12px;line-height:1.6}
.legal-skill-dialog-actions{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:12px}
.legal-skill-dialog-actions button{border:1px solid #d3e0f2;background:#f8fbff;color:#315b90;border-radius:7px;padding:7px 11px}
#modal:has(.legal-skill-version-compare){width:min(1360px,calc(100vw - 48px));max-width:none;max-height:calc(100dvh - 32px)}
.legal-skill-compare-note{margin:0 0 14px;color:#617088;font-size:13px;line-height:1.6}
.legal-skill-version-compare{border:1px solid #dce5f2;border-radius:10px;overflow:hidden}
.legal-skill-compare-head,.legal-skill-compare-row{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}
.legal-skill-compare-head{background:#f3f6fb;color:#32455f}
.legal-skill-compare-head strong{padding:12px 16px;font-size:14px}
.legal-skill-compare-head .legal-skill-compare-mobile-heading{display:none}
.legal-skill-compare-head strong:first-child,.legal-skill-compare-cell.old{border-right:1px solid #e2e8f1}
.legal-skill-compare-cell{display:grid;grid-template-columns:34px minmax(0,1fr);gap:10px;min-width:0;padding:5px 12px;border-top:1px solid #f0f3f8;font-size:14px;line-height:1.7;color:#253249}
.legal-skill-compare-cell.old.changed,.legal-skill-compare-cell.old.removed{background:#fff5f3}
.legal-skill-compare-cell.new.changed,.legal-skill-compare-cell.new.added{background:#effaf2}
.legal-skill-line-number{color:#91a0b4;font-size:11px;line-height:2.15;text-align:right;user-select:none}
.legal-skill-line-text{white-space:pre-wrap;overflow-wrap:anywhere;word-break:break-word}
.legal-skill-compare-cell.old mark{background:#ffd9d3;color:#8a302a}
.legal-skill-compare-cell.new mark{background:#ccefd6;color:#246344}
.legal-skill-compare-cell mark{border-radius:2px;box-decoration-break:clone;padding:1px 0}
@media(max-width:720px){.legal-skill-artifact{align-items:flex-start;flex-direction:column}}
@media(max-width:720px){#modal:has(.legal-skill-version-compare){width:calc(100vw - 16px);max-height:calc(100dvh - 16px)}.legal-skill-compare-head,.legal-skill-compare-row{grid-template-columns:minmax(0,1fr)}.legal-skill-compare-head strong:not(.legal-skill-compare-mobile-heading),.legal-skill-compare-row.same .legal-skill-compare-cell.new,.legal-skill-compare-cell.is-empty{display:none}.legal-skill-compare-head .legal-skill-compare-mobile-heading{display:block}.legal-skill-compare-cell.old{border-right:0}.legal-skill-compare-cell.new{border-top-color:#dce5f2}.legal-skill-compare-row:not(.same) .legal-skill-compare-cell::before{grid-column:1/-1;color:#63758f;font-size:11px;line-height:1}.legal-skill-compare-row:not(.same) .legal-skill-compare-cell.old::before{content:"原版本"}.legal-skill-compare-row:not(.same) .legal-skill-compare-cell.new::before{content:"新版本"}}
