.ctc-presets-bar{display:flex;flex-wrap:wrap;align-items:center;gap:.4rem;margin-bottom:.85rem}.ctc-presets-label{font-size:.75rem;font-weight:700;color:#64748b;white-space:nowrap}.ctc-presets-list{display:flex;flex-wrap:wrap;gap:.35rem}.ctc-preset-btn{background:#fff;border:1.5px solid #bfdbfe;border-radius:999px;padding:.2rem .65rem;font-size:.73rem;font-weight:600;color:#1d4ed8;cursor:pointer;transition:background .12s,border-color .12s;white-space:nowrap}.ctc-preset-btn:hover{background:#dbeafe;border-color:#2563eb}.ctc-status{padding:.75rem 1rem;border-radius:var(--radius-md, 10px);font-size:.86rem;margin-bottom:.8rem;border:1px solid transparent;line-height:1.5}.ctc-status--info{background:var(--accent-soft, #e0edff);border-color:#bfdbfe;color:#1e40af}.ctc-status--error{background:#fef2f2;border-color:#fecaca;color:#b91c1c}.ctc-status--ok{background:#f0fdf4;border-color:#bbf7d0;color:#15803d}.ctc-panel{border:1px solid var(--border-soft, #e1e1e6);border-radius:var(--radius-lg, 16px);padding:1rem;background:var(--bg-card, #fff);margin-bottom:1rem}.ctc-panel--soft{background:radial-gradient(circle at top right,color-mix(in srgb,#2563eb 10%,white),transparent 40%),var(--bg-card, #fff)}.ctc-panel-title{font-size:1rem;font-weight:700;margin:0 0 .25rem;color:var(--text-main, #222)}.ctc-panel-copy{font-size:.84rem;color:#64748b;margin:0 0 .9rem;line-height:1.5}.ctc-summary{display:flex;gap:.5rem;flex-wrap:wrap;margin-bottom:.75rem}.ctc-chip{display:inline-flex;align-items:center;gap:.3rem;padding:.22rem .7rem;border-radius:999px;font-size:.75rem;font-weight:700;border:1px solid var(--border-soft, #e1e1e6);background:#f8fafc;color:#475569}.ctc-chip--blue{background:#eff6ff;border-color:#bfdbfe;color:#1d4ed8}.ctc-chip--green{background:#f0fdf4;border-color:#bbf7d0;color:#15803d}.ctc-chip--purple{background:#faf5ff;border-color:#e9d5ff;color:#7c3aed}.ctc-type-badge{display:inline-block;padding:.1rem .55rem;border-radius:6px;font-size:.7rem;font-weight:800;letter-spacing:.04em;color:#fff}.ctc-need-block{border:2px solid #bfdbfe;border-radius:14px;padding:.9rem 1rem;background:#eff6ff;margin-bottom:1.1rem;position:relative}.ctc-need-header{display:flex;align-items:flex-start;gap:.5rem;margin-bottom:.65rem}.ctc-need-icon{font-size:1.25rem;flex-shrink:0;margin-top:.1rem}.ctc-need-input{flex:1;border:1.5px solid #bfdbfe;border-radius:8px;padding:.5rem .7rem;font:inherit;font-weight:600;font-size:.92rem;background:#fff;color:var(--text-main, #222);outline:none}.ctc-need-input:focus{border-color:#2563eb;box-shadow:0 0 0 2px #dbeafe}.ctc-need-input::placeholder{color:#94a3b8;font-weight:400}.ctc-drivers{display:flex;flex-direction:column;gap:.6rem;padding-left:.5rem}.ctc-driver-block{border:1.5px solid var(--border-soft, #e1e1e6);border-left-width:4px;border-radius:10px;padding:.75rem .85rem;background:#fff;min-width:0;overflow:hidden}.ctc-driver-header{display:grid;grid-template-columns:auto minmax(0,1fr) auto;grid-template-rows:auto auto;gap:.4rem;margin-bottom:.55rem;align-items:center}.ctc-driver-header>.ctc-type-badge{grid-column:1;grid-row:1}.ctc-driver-header>.ctc-driver-type-select{grid-column:2;grid-row:1}.ctc-driver-header>.ctc-btn-icon{grid-column:3;grid-row:1}.ctc-driver-header>.ctc-driver-name-input{grid-column:1 / -1;grid-row:2}.ctc-driver-type-select{border:1px solid var(--border-soft, #e1e1e6);border-radius:6px;padding:.28rem .5rem;font:inherit;font-size:.78rem;font-weight:700;background:#f8fafc;cursor:pointer;outline:none;min-width:0;max-width:100%}.ctc-driver-name-input{width:100%;min-width:0;border:1px solid var(--border-soft, #e1e1e6);border-radius:6px;padding:.3rem .55rem;font:inherit;font-size:.85rem;background:#fff;outline:none;box-sizing:border-box}.ctc-driver-name-input:focus{border-color:#93c5fd;box-shadow:0 0 0 2px #dbeafe}.ctc-reqs{display:flex;flex-direction:column;gap:.45rem;margin-top:.3rem}.ctc-req-row{display:grid;grid-template-columns:1fr auto auto auto;gap:.4rem;align-items:center}.ctc-req-input{border:1px solid var(--border-soft, #e1e1e6);border-radius:7px;padding:.35rem .55rem;font:inherit;font-size:.82rem;background:#fafafa;outline:none}.ctc-req-input:focus{border-color:#93c5fd;background:#fff}.ctc-req-input::placeholder{color:#94a3b8}.ctc-req-spec{width:80px}.ctc-btn-icon{border:1px solid var(--border-soft, #e1e1e6);border-radius:7px;background:#fff;color:#64748b;font-size:.85rem;padding:.3rem .5rem;cursor:pointer;line-height:1;transition:background .12s,color .12s,border-color .12s;flex-shrink:0}.ctc-btn-icon:hover{background:#fef2f2;border-color:#fecaca;color:#dc2626}.ctc-add-req{display:inline-flex;align-items:center;gap:.25rem;font-size:.75rem;font-weight:600;color:#2563eb;background:none;border:none;cursor:pointer;padding:.2rem 0;margin-top:.3rem}.ctc-add-req:hover{text-decoration:underline}.ctc-add-driver{display:flex;align-items:center;gap:.35rem;font-size:.78rem;font-weight:600;color:#2563eb;background:#eff6ff;border:1.5px dashed #93c5fd;border-radius:8px;padding:.4rem .8rem;cursor:pointer;width:100%;margin-top:.4rem;transition:background .12s}.ctc-add-driver:hover{background:#dbeafe}.ctc-add-need{display:flex;align-items:center;gap:.4rem;justify-content:center;width:100%;font-size:.85rem;font-weight:700;color:#2563eb;background:#eff6ff;border:2px dashed #93c5fd;border-radius:12px;padding:.65rem;cursor:pointer;margin-bottom:1rem;transition:background .12s}.ctc-add-need:hover{background:#dbeafe}.ctc-remove-need{position:absolute;top:.6rem;right:.6rem;border:none;background:none;color:#94a3b8;font-size:1.1rem;cursor:pointer;padding:.1rem .3rem;border-radius:5px;transition:color .1s}.ctc-remove-need:hover{color:#dc2626}.ctc-actions{display:flex;gap:.55rem;flex-wrap:wrap;margin-top:.5rem}.ctc-tree-result{font-size:.83rem}.ctc-tree-need{border:2px solid #2563eb;border-radius:10px;background:#eff6ff;padding:.55rem .85rem;font-weight:700;font-size:.9rem;color:#1d4ed8;margin-bottom:.5rem;display:flex;align-items:center;gap:.4rem}.ctc-tree-drivers{padding-left:1.1rem;margin-bottom:1rem}.ctc-tree-driver{display:flex;align-items:flex-start;gap:.5rem;border-left:3px solid #e2e8f0;padding-left:.75rem;margin-bottom:.45rem}.ctc-tree-driver-body{flex:1}.ctc-tree-driver-name{font-weight:700;font-size:.83rem;color:#1e293b;margin-bottom:.25rem;display:flex;align-items:center;gap:.35rem}.ctc-tree-reqs{display:flex;flex-direction:column;gap:.2rem;padding-left:.6rem}.ctc-tree-req{display:flex;align-items:baseline;gap:.35rem;font-size:.78rem;color:#334155}.ctc-tree-req:before{content:"›";color:#94a3b8;font-weight:700}.ctc-tree-spec{font-size:.72rem;color:#64748b;background:#f1f5f9;border-radius:4px;padding:.05rem .35rem}.ctc-modal{position:fixed;inset:0;z-index:1000;display:flex;align-items:center;justify-content:center;padding:1rem}.ctc-modal-backdrop{position:absolute;inset:0;background:#0000008c;backdrop-filter:blur(2px)}.ctc-modal-box{position:relative;z-index:1;background:var(--bg-card, #fff);border-radius:18px;box-shadow:0 24px 60px #00000038;width:100%;max-width:960px;max-height:90vh;display:flex;flex-direction:column;overflow:hidden}.ctc-modal-header{display:flex;align-items:center;justify-content:space-between;padding:.9rem 1.2rem;border-bottom:1px solid var(--border-soft, #e1e1e6);flex-shrink:0}.ctc-modal-title{font-size:1rem;font-weight:700;color:var(--text-main, #222)}.ctc-modal-close{background:none;border:none;font-size:1.5rem;line-height:1;color:#64748b;cursor:pointer;padding:.1rem .4rem;border-radius:6px;transition:background .12s}.ctc-modal-close:hover{background:#f1f5f9;color:#1e293b}.ctc-modal-body{overflow:auto;padding:1.25rem;flex:1}.ctc-vtree{display:flex;flex-direction:column;gap:2rem}.ctc-vtree-need-row{display:flex;align-items:flex-start;gap:0}.ctc-vtree-need-box{display:flex;align-items:center;background:#eff6ff;border:2px solid #2563eb;border-radius:12px;padding:.65rem 1rem;font-weight:700;font-size:.88rem;color:#1d4ed8;min-width:150px;max-width:190px;text-align:center;flex-shrink:0;align-self:center;line-height:1.35;word-break:break-word}.ctc-vtree-connector-h{display:flex;align-items:center;flex-shrink:0;align-self:center}.ctc-vtree-connector-h:before{content:"";display:block;width:28px;height:2px;background:#93c5fd}.ctc-vtree-connector-h:after{content:"";display:block;width:0;height:0;border-top:5px solid transparent;border-bottom:5px solid transparent;border-left:7px solid #93c5fd}.ctc-vtree-bracket{display:flex;flex-direction:column;flex-shrink:0;align-self:stretch;width:18px;position:relative;margin-right:2px}.ctc-vtree-bracket:before{content:"";position:absolute;top:0;bottom:0;left:50%;width:2px;background:#bfdbfe;transform:translate(-50%)}.ctc-vtree-drivers{display:flex;flex-direction:column;gap:.55rem;flex:1}.ctc-vtree-driver-row{display:flex;align-items:flex-start;gap:0}.ctc-vtree-driver-box{display:flex;align-items:center;gap:.4rem;border:1.5px solid var(--border-soft, #e1e1e6);border-left-width:4px;border-radius:9px;padding:.45rem .7rem;background:#fff;font-size:.8rem;font-weight:700;color:#1e293b;min-width:130px;max-width:175px;word-break:break-word;line-height:1.3;flex-shrink:0;align-self:center}.ctc-vtree-driver-connector{display:flex;align-items:center;flex-shrink:0;align-self:center}.ctc-vtree-driver-connector:before{content:"";display:block;width:18px;height:2px;background:#e2e8f0}.ctc-vtree-driver-connector:after{content:"";display:block;width:0;height:0;border-top:4px solid transparent;border-bottom:4px solid transparent;border-left:5px solid #e2e8f0}.ctc-vtree-reqs{display:flex;flex-direction:column;gap:.3rem;justify-content:center;align-self:center}.ctc-vtree-req-box{background:#f8fafc;border:1px solid var(--border-soft, #e1e1e6);border-radius:7px;padding:.3rem .6rem;font-size:.73rem;color:#334155;min-width:120px;max-width:240px;word-break:break-word;line-height:1.35}.ctc-vtree-req-spec{font-size:.68rem;color:#64748b;background:#e2e8f0;border-radius:4px;padding:.05rem .3rem;margin-left:.25rem;white-space:nowrap}@media(max-width:640px){.ctc-vtree-need-row{flex-direction:column;align-items:stretch}.ctc-vtree-need-box{max-width:100%;width:100%;text-align:left;align-self:stretch}.ctc-vtree-connector-h{flex-direction:column;align-items:center;align-self:auto}.ctc-vtree-connector-h:before{width:2px;height:20px;background:#93c5fd}.ctc-vtree-connector-h:after{border-left:5px solid transparent;border-right:5px solid transparent;border-top:7px solid #93c5fd;border-bottom:none}.ctc-vtree-bracket{display:none}.ctc-vtree-drivers{gap:1.2rem}.ctc-vtree-driver-row{flex-direction:column;align-items:stretch}.ctc-vtree-driver-box{max-width:100%;width:100%;align-self:stretch}.ctc-vtree-driver-connector{flex-direction:column;align-items:center;align-self:auto}.ctc-vtree-driver-connector:before{width:2px;height:14px;background:#e2e8f0}.ctc-vtree-driver-connector:after{border-left:4px solid transparent;border-right:4px solid transparent;border-top:5px solid #e2e8f0;border-bottom:none}.ctc-vtree-reqs{align-self:stretch}.ctc-vtree-req-box{max-width:100%}}.ctc-export-box{width:100%;min-height:180px;resize:vertical;font-family:Courier New,Courier,monospace;font-size:.78rem;border:1px solid var(--border-soft, #e1e1e6);border-radius:8px;padding:.65rem .8rem;color:var(--text-main, #222);background:#f8fafc;outline:none}@media(max-width:820px){.ctc-actions{flex-direction:column}.ctc-actions .btn-primary,.ctc-actions .btn-secondary{width:100%}}@media(max-width:480px){.ctc-req-row{display:flex;flex-wrap:wrap;gap:.4rem;align-items:center}.ctc-req-row>*:nth-child(1){flex:1 1 100%}.ctc-req-row>*:nth-child(2),.ctc-req-row>*:nth-child(3){flex:1 1 0;width:auto;min-width:0}.ctc-req-row>*:nth-child(4){flex:0 0 auto}.ctc-req-spec{width:auto}}
