.psf-container{display:flex;flex-direction:column;width:100%;height:100%;min-height:480px;background:#fff;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,PingFang SC,Microsoft YaHei,sans-serif;box-sizing:border-box;padding:16px;gap:12px}.psf-tabs{display:flex;align-items:stretch;gap:0;border-radius:0;padding:0;width:100%;max-width:100%;flex-shrink:0;border-bottom:1px solid #e2e8f0}.psf-tab,.psf-tabs{background:transparent}.psf-tab{display:inline-flex;align-items:center;padding:10px 20px;border-radius:0;font-size:14px;font-weight:500;color:#64748b;cursor:pointer;transition:all .2s ease;white-space:nowrap;border:none;outline:none;-webkit-user-select:none;-moz-user-select:none;user-select:none;border-bottom:2px solid transparent;margin-bottom:-1px}.psf-tab:hover{color:#334155;background:transparent}.psf-tab--active{background:transparent;color:#1e40af;border:none;border-bottom:2px solid #2b5fd9;box-shadow:none;font-weight:600}.psf-flow-panel{flex:1;display:flex;flex-direction:column;min-height:0;overflow:hidden;gap:8px}.psf-flow-scroll{flex:1;overflow:auto;min-height:0;padding:0}.psf-flow-scroll>*+*{margin-top:10px}.psf-flow-container{background:linear-gradient(180deg,#f8fafc,#f1f5f9);border:1px solid #e2e8f0;border-radius:12px;padding:16px;position:relative;overflow:visible}.psf-flow-title{display:flex;align-items:center;gap:8px;margin-bottom:12px;font-size:12px;font-weight:600;color:#475569;text-transform:uppercase;letter-spacing:.05em}.psf-flow-title-dot{width:8px;height:8px;border-radius:50%;flex-shrink:0}.psf-flow-title-dot--blue{background:#3b82f6}.psf-flow-title-dot--amber{background:#f59e0b}.psf-svg-wrapper{width:100%;overflow-x:auto;overflow-y:visible;min-height:200px}.psf-svg-wrapper svg{display:block;max-width:100%;height:auto}.psf-legend{background:#fff;border:1px solid #e2e8f0;border-radius:8px;padding:10px 14px;display:flex;flex-wrap:wrap;gap:8px 16px;flex-shrink:0;margin-top:auto}.psf-legend-item{display:flex;align-items:center;gap:6px;font-size:12px;color:#475569;white-space:nowrap}.psf-legend-color{width:28px;height:10px;border-radius:3px;flex-shrink:0}.psf-legend-color--blue{background:linear-gradient(90deg,#60a5fa,#3b82f6)}.psf-legend-color--indigo{background:linear-gradient(90deg,#818cf8,#6366f1)}.psf-legend-color--slate{background:linear-gradient(90deg,#64748b,#475569)}.psf-legend-color--amber{background:linear-gradient(90deg,#fbbf24,#f59e0b)}.psf-legend-color--gray{background:linear-gradient(90deg,#94a3b8,#64748b)}.psf-legend-color--custom{background:#fff7ed;border:1.5px dashed #f97316}.psf-legend-line{width:28px;height:2px;flex-shrink:0;position:relative}.psf-legend-line:after{content:"";position:absolute;right:0;top:-3px;width:0;height:0}.psf-legend-line--forward{background:#3b82f6}.psf-legend-line--forward:after{border-left:5px solid #3b82f6;border-top:3px solid transparent;border-bottom:3px solid transparent}.psf-legend-line--backward{background:repeating-linear-gradient(90deg,#f59e0b,#f59e0b 6px,transparent 0,transparent 10px);height:2px}.psf-legend-line--backward:after{border-left:5px solid #f59e0b;border-top:3px solid transparent;border-bottom:3px solid transparent}.psf-legend-line--branch{background:#94a3b8;height:1.5px}.psf-legend-line--branch:after{border-left:5px solid #94a3b8;border-top:3px solid transparent;border-bottom:3px solid transparent}.psf-empty{flex-direction:column;padding:60px 20px;gap:12px;flex:1}.psf-empty,.psf-empty-icon{display:flex;align-items:center;justify-content:center}.psf-empty-icon{width:64px;height:64px;background:#f1f5f9;border-radius:50%;color:#94a3b8}.psf-empty-icon svg{width:32px;height:32px}.psf-empty-title{font-size:15px;font-weight:600;color:#475569;margin:0}.psf-empty-desc{font-size:13px;color:#94a3b8;margin:0;text-align:center}.psf-note{display:flex;align-items:center;gap:8px;padding:8px 12px;background:#fff7ed;border:1px solid #fed7aa;border-radius:8px;font-size:12px;color:#c2410c}.psf-note-icon{width:14px;height:14px;flex-shrink:0;fill:#f97316}.psf-flow-scroll::-webkit-scrollbar{width:5px;height:5px}.psf-flow-scroll::-webkit-scrollbar-track{background:transparent}.psf-flow-scroll::-webkit-scrollbar-thumb{background:#cbd5e1;border-radius:3px}.psf-flow-scroll::-webkit-scrollbar-thumb:hover{background:#94a3b8}.psf-svg-wrapper::-webkit-scrollbar{height:5px}.psf-svg-wrapper::-webkit-scrollbar-track{background:transparent}.psf-svg-wrapper::-webkit-scrollbar-thumb{background:#cbd5e1;border-radius:3px}.psf-rules-card{margin-left:auto;margin-top:16px;width:45%;max-width:520px;min-width:280px;background:#fff;border:1px solid #e2e8f0;border-radius:12px;box-shadow:0 1px 3px rgba(15,23,42,.06);display:flex;flex-direction:column;flex-shrink:0}.psf-rules-card__title{padding:12px 16px 8px;font-size:13px;font-weight:700;color:#334155;border-bottom:1px solid #e2e8f0;flex-shrink:0}.psf-rules-card__body{padding:10px 16px 12px;overflow-y:auto;flex:1;min-height:0}.psf-rules-card__body::-webkit-scrollbar{width:4px}.psf-rules-card__body::-webkit-scrollbar-track{background:transparent}.psf-rules-card__body::-webkit-scrollbar-thumb{background:#cbd5e1;border-radius:2px}.psf-rules-card__body::-webkit-scrollbar-thumb:hover{background:#94a3b8}.psf-rules-card__item{display:flex;align-items:flex-start;gap:8px;padding:4px 0;line-height:1.5}.psf-rules-card__dot{width:8px;height:8px;border-radius:50%;flex-shrink:0;margin-top:5px}.psf-rules-card__text{font-size:12px;color:#475569;word-wrap:break-word;overflow-wrap:break-word;word-break:break-all;flex:1;min-width:0}.psf-rules-card__more{padding:4px 0 0;font-size:11px;color:#94a3b8;font-style:italic}