/* Pipeline Generator */
.pg-wrap { max-width: 1100px; margin: 0 auto; padding: 1.5rem 1rem 3rem; }
.pg-header { margin-bottom: 1.25rem; }
.pg-header-title { display: flex; align-items: center; gap: .5rem; font-size: 1.1rem; font-weight: 700; color: #e6edf3; }
.pg-header-sub { font-size: .78rem; color: #8b949e; margin-top: .2rem; }
.pg-layout { display: grid; grid-template-columns: 240px 1fr; gap: 1.25rem; }
@media(max-width:680px) { .pg-layout { grid-template-columns: 1fr; } }
.pg-section-label { font-size: .72rem; color: #8b949e; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; margin-bottom: .5rem; }
.pg-pipe-list { display: flex; flex-direction: column; gap: .3rem; }
.pg-pipe-btn { padding: .42rem .65rem; background: #161b22; border: 1px solid #21262d; border-radius: 6px; color: #8b949e; font-size: .8rem; text-align: left; cursor: pointer; font-family: inherit; transition: all .15s; }
.pg-pipe-btn:hover { border-color: #bc8cff; color: #c9d1d9; }
.pg-pipe-active { border-color: #bc8cff; color: #bc8cff; background: rgba(188,140,255,.06); }
.pg-fw-row { display: flex; gap: .4rem; }
.pg-fw-btn { flex: 1; padding: .38rem .6rem; background: #161b22; border: 1px solid #21262d; border-radius: 6px; color: #8b949e; font-size: .8rem; font-weight: 600; cursor: pointer; font-family: inherit; text-align: center; transition: all .15s; }
.pg-fw-btn:hover { border-color: #bc8cff; color: #c9d1d9; }
.pg-fw-active { border-color: #bc8cff; color: #bc8cff; background: rgba(188,140,255,.08); }
.pg-params { display: flex; flex-direction: column; gap: .5rem; }
.pg-param-row { display: flex; flex-direction: column; gap: .2rem; }
.pg-param-label { font-size: .7rem; color: #8b949e; }
.pg-param-input { padding: .35rem .55rem; background: #0d1117; border: 1px solid #30363d; border-radius: 5px; color: #e6edf3; font-size: .8rem; font-family: inherit; outline: none; transition: border-color .15s; width: 100%; box-sizing: border-box; }
.pg-param-input:focus { border-color: #bc8cff; }
/* NLP input (Prompt 46) */
.pg-nlp-row { display: flex; gap: .6rem; margin-bottom: 1.25rem; }
.pg-nlp-input { flex: 1; background: var(--bg-overlay,#21262d); border: 1px solid var(--border,#30363d); border-radius: 7px; color: var(--text-primary,#e6edf3); font-size: .85rem; padding: .55rem .85rem; font-family: inherit; }
.pg-nlp-input:focus { outline: none; border-color: #bc8cff; }
.pg-nlp-btn { display: flex; align-items: center; gap: .35rem; background: #6e40c9; color: #fff; border: none; border-radius: 7px; padding: .5rem 1rem; font-size: .82rem; font-weight: 700; cursor: pointer; white-space: nowrap; font-family: inherit; }
.pg-nlp-btn:hover { background: #7c3aed; }
.pg-gen-btn { margin-top: .85rem; width: 100%; display: flex; align-items: center; justify-content: center; gap: .4rem; padding: .5rem; background: #6e40c9; color: #fff; border: none; border-radius: 7px; font-size: .85rem; font-weight: 700; cursor: pointer; font-family: inherit; transition: background .15s; }
.pg-gen-btn:hover { background: #7c3aed; }
.pg-right { min-width: 0; display: flex; flex-direction: column; gap: .75rem; }
.pg-pipe-desc { font-size: .8rem; color: #8b949e; line-height: 1.65; background: #161b22; border: 1px solid #21262d; border-radius: 7px; padding: .75rem; }
.pg-steps { display: flex; align-items: center; flex-wrap: wrap; gap: .25rem; background: #161b22; border: 1px solid #21262d; border-radius: 7px; padding: .65rem .85rem; }
.pg-step { font-size: .72rem; color: #bc8cff; background: rgba(188,140,255,.08); border: 1px solid rgba(188,140,255,.18); border-radius: 4px; padding: .15rem .45rem; }
.pg-step-arrow { font-size: .7rem; color: #484f58; }
.pg-output-wrap { display: flex; flex-direction: column; }
.pg-output-hdr { display: flex; justify-content: space-between; align-items: center; background: #161b22; border: 1px solid #30363d; border-bottom: none; border-radius: 8px 8px 0 0; padding: .5rem .85rem; }
.pg-output-label { font-size: .75rem; color: #8b949e; font-weight: 700; }
.pg-act-btn { padding: .28rem .65rem; background: #21262d; border: 1px solid #30363d; border-radius: 5px; color: #c9d1d9; font-size: .72rem; cursor: pointer; font-family: inherit; }
.pg-act-btn:hover { background: #30363d; }
.pg-output { background: #0d1117; border: 1px solid #30363d; border-radius: 0 0 8px 8px; padding: .9rem 1rem; margin: 0; font-family: 'Cascadia Code','Fira Mono',monospace; font-size: .75rem; color: #e6edf3; line-height: 1.7; overflow-x: auto; white-space: pre; }

/* ── File Wizard ── */
.pg-wiz-card { background: #161b22; border: 1px solid #30363d; border-radius: 10px; padding: 1.25rem; margin-bottom: 1rem; }
.pg-wiz-title { font-size: .88rem; font-weight: 700; color: #c9d1d9; display: flex; align-items: center; gap: .4rem; margin-bottom: .35rem; }
.pg-wiz-sub { font-size: .78rem; color: #8b949e; margin-bottom: 1.25rem; }
.pg-wiz-grid { display: flex; flex-direction: column; gap: 1rem; }
.pg-wiz-step { display: flex; gap: .75rem; align-items: flex-start; }
.pg-wiz-step-num { min-width: 24px; height: 24px; border-radius: 50%; background: #bc8cff20; border: 1px solid #bc8cff40; color: #bc8cff; font-size: .7rem; font-weight: 700; display: flex; align-items: center; justify-content: center; flex-shrink: 0; margin-top: .1rem; }
.pg-wiz-step-body { flex: 1; }
.pg-wiz-label { font-size: .78rem; font-weight: 600; color: #c9d1d9; margin-bottom: .4rem; }
.pg-wiz-hint { font-weight: 400; color: #6e7681; font-size: .72rem; }
.pg-wiz-chips { display: flex; flex-wrap: wrap; gap: .35rem; }
.pg-wiz-chip { font-size: .74rem; background: #0d1117; border: 1px solid #30363d; color: #8b949e; border-radius: 99px; padding: .25rem .65rem; cursor: pointer; font-family: inherit; transition: all .15s; }
.pg-wiz-chip:hover { border-color: #bc8cff; color: #bc8cff; }
.pg-wiz-chip-active { background: #bc8cff15; border-color: #bc8cff; color: #bc8cff; }
.pg-wiz-textarea { width: 100%; box-sizing: border-box; min-height: 90px; background: #0d1117; border: 1px solid #30363d; border-radius: 6px; color: #c9d1d9; font-family: 'Consolas','Monaco',monospace; font-size: .78rem; padding: .5rem .65rem; resize: vertical; outline: none; }
.pg-wiz-textarea:focus { border-color: #bc8cff; }
.pg-wiz-config-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; }
.pg-wiz-config-label { font-size: .7rem; color: #8b949e; margin-bottom: .2rem; }
.pg-wiz-input { width: 100%; box-sizing: border-box; background: #0d1117; border: 1px solid #30363d; border-radius: 5px; color: #e6edf3; font-size: .78rem; padding: .35rem .55rem; outline: none; font-family: inherit; }
.pg-wiz-input:focus { border-color: #bc8cff; }
.pg-wiz-gen-btn { display: flex; align-items: center; gap: .4rem; font-size: .84rem; font-weight: 700; background: #3fb95020; border: 1px solid #3fb95060; color: #3fb950; border-radius: 6px; padding: .55rem 1.2rem; cursor: pointer; font-family: inherit; margin-top: 1rem; }
.pg-wiz-gen-btn:hover { background: #3fb95035; }
.pg-wiz-output-wrap { margin-top: 1rem; }
.pg-wiz-output-hdr { display: flex; justify-content: space-between; align-items: center; background: #161b22; border: 1px solid #30363d; border-bottom: none; border-radius: 8px 8px 0 0; padding: .5rem .85rem; }
.pg-wiz-output-label { font-size: .75rem; color: #8b949e; font-weight: 700; }
.pg-template-details { margin-top: .75rem; border: 1px solid #21262d; border-radius: 8px; padding: .65rem 1rem; background: #0d1117; }
.pg-template-summary { font-size: .78rem; color: #8b949e; cursor: pointer; display: flex; align-items: center; gap: .35rem; list-style: none; }
.pg-template-summary::-webkit-details-marker { display: none; }
.pg-template-summary:hover { color: #bc8cff; }
@media (max-width: 640px) { .pg-wiz-config-grid { grid-template-columns: 1fr; } }
