.channel-detail-open{overflow:hidden}.channel-detail-overlay{position:fixed;inset:0;z-index:1200;background:#eef1f6;color:#19202b}.channel-detail-shell{height:100%;display:flex;flex-direction:column}.cdf-header{height:72px;padding:0 26px;background:#fff;border-bottom:1px solid #dce1e9;display:flex;align-items:center;justify-content:space-between}.cdf-header h2{margin:3px 0 0}.cdf-header small{color:#6b7280}.cdf-header>div:last-child{display:flex;gap:10px}.cdf-body{display:grid;grid-template-columns:210px 1fr;min-height:0;flex:1}.cdf-sidebar{padding:22px 14px;background:#202632;color:#fff}.cdf-sidebar h3{padding:0 10px}.cdf-sidebar button{width:100%;text-align:left;padding:12px;border:0;border-radius:8px;background:#384152;color:#fff}.cdf-sidebar button small{display:block;margin-top:5px;color:#c5cad3}.cdf-main{padding:22px;overflow:auto}.cdf-card{background:#fff;border:1px solid #dce1e9;border-radius:10px;padding:18px;margin-bottom:16px}.cdf-card h3{margin:0}.cdf-summary{display:flex;gap:34px;margin-top:14px}.cdf-summary span{color:#6b7280}.cdf-summary b{color:#202632;margin-left:8px}.cdf-title{display:flex;align-items:center;justify-content:space-between}.cdf-range-bar{height:42px;display:flex;margin-top:14px;border-radius:6px;overflow:hidden;background:#e5e7eb}.cdf-range{min-width:2px;display:flex;align-items:center;justify-content:center;overflow:hidden;white-space:nowrap;font-size:12px;color:#fff}.cdf-range-0{background:#356bd8}.cdf-range-1{background:#7c4dca}.cdf-range-2{background:#169a85}.cdf-range-3{background:#d27b22}.cdf-range-4{background:#d04c68}.cdf-range-5{background:#607080}.cdf-tabs{display:flex;gap:6px;overflow:auto;border-bottom:1px solid #dce1e9;margin:-18px -18px 20px;padding:14px 18px 0}.cdf-tabs button{border:1px solid #dce1e9;border-bottom:0;border-radius:7px 7px 0 0;background:#f6f7f9;padding:9px 14px}.cdf-tabs button.active{background:#fff;color:#245ec7;box-shadow:inset 0 3px #356bd8}.cdf-tabs small{display:block;margin-top:3px}.cdf-form-grid{display:grid;grid-template-columns:repeat(3,minmax(180px,1fr));gap:14px;margin-top:16px}.cdf-form-grid label span{display:block;margin-bottom:6px;font-size:12px;color:#596273}.cdf-form-grid input,.cdf-set-row input{width:100%;box-sizing:border-box}.cdf-sets-title{margin-top:24px}.cdf-set-table{margin-top:10px;overflow:auto}.cdf-set-head,.cdf-set-row{display:grid;grid-template-columns:1.2fr 1.6fr repeat(5,minmax(85px,.7fr)) 40px;gap:7px;min-width:980px;align-items:center}.cdf-set-head{font-size:12px;color:#6b7280;padding:7px}.cdf-set-row{padding:5px 7px;border-top:1px solid #edf0f4}.cdf-validation{display:flex;flex-direction:column;gap:4px;border-radius:8px;padding:12px 16px}.cdf-validation.bad{background:#fff0f0;color:#b42318}.cdf-validation.ok{background:#eaf8f2;color:#08755b}@media(max-width:900px){.cdf-body{grid-template-columns:1fr}.cdf-sidebar{display:none}.cdf-form-grid{grid-template-columns:1fr 1fr}.cdf-summary{flex-wrap:wrap}}
/* Mode-wide channel navigation overrides. */
.cdf-sidebar{overflow:auto}
.channel-detail-overlay .cdf-sidebar button{margin-bottom:5px;background:transparent;padding:10px 12px}
.channel-detail-overlay .cdf-sidebar button:hover{background:#303848}
.channel-detail-overlay .cdf-sidebar button.active{background:#356bd8}

/* Centered three-part DMX detail dialog. */
.channel-detail-overlay{display:flex;align-items:center;justify-content:center;padding:28px;background:rgba(25,32,43,.58)}
.channel-detail-overlay .channel-detail-shell{width:min(1180px,calc(100vw - 56px));height:auto;max-height:calc(100vh - 56px);overflow:hidden;background:#eef1f6;border-radius:12px;box-shadow:0 22px 70px rgba(0,0,0,.32)}
.channel-detail-overlay .cdf-header{height:64px;flex:0 0 64px;padding:0 20px}
.channel-detail-overlay .cdf-header h2{font-size:18px}
.channel-detail-overlay .cdf-body{display:block;min-height:0;overflow:hidden}
.channel-detail-overlay .cdf-main{height:100%;min-height:0;max-height:calc(100vh - 120px);box-sizing:border-box;padding:16px 18px 96px;scroll-padding-bottom:96px;overflow:auto}
.channel-detail-overlay .cdf-card{padding:16px;margin-bottom:12px}
.channel-detail-overlay .cdf-top-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.08fr);gap:12px;margin-bottom:12px;align-items:stretch}
.channel-detail-overlay .cdf-top-grid>.cdf-card{min-width:0;margin-bottom:0}
.channel-detail-overlay .cdf-part-heading{display:flex;align-items:flex-start;gap:10px;margin-bottom:12px}
.channel-detail-overlay .cdf-part-heading>b{display:flex;align-items:center;justify-content:center;flex:0 0 25px;height:25px;border-radius:50%;background:#356bd8;color:#fff;font-size:13px}
.channel-detail-overlay .cdf-part-heading h3{margin:1px 0 2px;font-size:15px}
.channel-detail-overlay .cdf-part-heading p{margin:0;color:#6b7280;font-size:12px}
.channel-detail-overlay .cdf-summary{margin-top:0;font-size:12px}
.channel-detail-overlay .cdf-validation{font-size:12px}
.channel-detail-overlay .cdf-range-bar{height:38px;margin-top:10px}
.channel-detail-overlay .cdf-tabs{margin:8px -16px 14px;padding:8px 16px 0}
.channel-detail-overlay .cdf-tabs button{padding:7px 12px;font-size:12px}
.channel-detail-overlay .cdf-tabs button[data-function-id]{position:relative;padding-right:28px}
.channel-detail-overlay .cdf-tab-label{display:block}
.channel-detail-overlay .cdf-tab-delete{position:absolute;right:6px;top:5px;display:flex;align-items:center;justify-content:center;width:17px;height:17px;border-radius:50%;color:#8b3440;font-size:14px;font-weight:900;line-height:1}
.channel-detail-overlay .cdf-tab-delete:hover{background:#d04c68;color:#fff}
.channel-detail-overlay .cdf-tabs button.cdf-function-warning{border-color:#b42318;background:#fff0f0;color:#b42318;box-shadow:inset 0 3px #b42318}
.channel-detail-overlay .cdf-tabs button.cdf-function-warning em{display:inline-flex;align-items:center;justify-content:center;width:15px;height:15px;margin-right:5px;border-radius:50%;background:#b42318;color:#fff;font-size:10px;font-style:normal;font-weight:900}
.channel-detail-overlay .cdf-title>button{flex:0 0 auto;min-width:max-content;white-space:nowrap;padding:6px 10px}
.channel-detail-overlay .cdf-function-select{max-width:260px;padding:6px 28px 6px 9px;font-size:12px}
.channel-detail-overlay .cdf-function-picker{display:flex;align-items:center;gap:6px}
.channel-detail-overlay .cdf-function-picker button{min-width:max-content;padding:6px 9px;box-shadow:none;font-size:12px}
.channel-detail-overlay .cdf-form-grid{grid-template-columns:repeat(6,minmax(0,1fr));gap:10px 12px;margin-top:12px}
.channel-detail-overlay .cdf-form-grid .cdf-field-functionName,.channel-detail-overlay .cdf-form-grid .cdf-field-wheelName,.channel-detail-overlay .cdf-form-grid .cdf-field-geometry{grid-column:span 2}
.channel-detail-overlay .cdf-form-grid .cdf-field-functionPhysicalFrom,.channel-detail-overlay .cdf-form-grid .cdf-field-functionPhysicalTo{grid-column:span 3}
.channel-detail-overlay .cdf-form-grid .cdf-field-dmxFrom,.channel-detail-overlay .cdf-form-grid .cdf-field-functionDefault,.channel-detail-overlay .cdf-form-grid .cdf-field-dmxTo{grid-column:span 2}
.channel-detail-overlay .cdf-form-grid input,.channel-detail-overlay .cdf-form-grid select{width:100%;box-sizing:border-box;padding:6px 8px}
.channel-detail-overlay .cdf-form-grid input,.channel-detail-overlay .cdf-form-grid select,.channel-detail-overlay .cdf-set-row input{font-size:12px}
.channel-detail-overlay .cdf-field-functionPhysicalFrom input[readonly],.channel-detail-overlay .cdf-field-functionPhysicalTo input[readonly]{background:#eef1f6;color:#596273;cursor:default}
.channel-detail-overlay .cdf-library-trigger{cursor:pointer;background:#f7fbff;border-color:#356bd8;color:#245ec7;font-weight:800}
.channel-detail-open .modal-overlay{z-index:1400}
.channel-detail-overlay .cdf-sets-title{margin-top:4px}
.channel-detail-overlay .cdf-set-table{overflow:visible}
.channel-detail-overlay .cdf-set-create-actions{display:flex;align-items:center;gap:7px}
.channel-detail-overlay [data-attribute-segment-source]{cursor:grab;background:#eaf5ff;border-color:#167fc4;color:#126ca5}
.channel-detail-overlay .cdf-attribute-segment{display:flex;align-items:center;gap:8px;margin:10px 7px 3px;border-bottom:3px solid #18a7df;color:#116e9a}
.channel-detail-overlay .cdf-attribute-segment button{transform:translateY(2px);padding:4px 8px;border:0;border-radius:5px 5px 0 0;background:#18a7df;color:#fff;box-shadow:none;font-size:12px;font-weight:900;cursor:pointer}
.channel-detail-overlay .cdf-attribute-segment span{margin-left:auto;padding-right:5px;font-size:11px;font-weight:800}
.channel-detail-overlay .cdf-attribute-segment .cdf-segment-delete{transform:translateY(2px);display:flex;align-items:center;justify-content:center;width:22px;height:22px;margin-left:-3px;padding:0;border:1px solid #b42318;border-bottom:0;border-radius:0;background:transparent!important;color:#b42318!important;font-size:15px;line-height:1}
.channel-detail-overlay .cdf-attribute-segment .cdf-segment-delete:hover{background:transparent!important;color:#8f1811!important}
.channel-detail-overlay .cdf-attribute-segment.active{border-bottom-color:#356bd8}
.channel-detail-overlay .cdf-attribute-segment.active button{background:#356bd8}
.channel-detail-overlay .cdf-attribute-drop-target.pointer-placement-over::before{content:'';position:absolute;z-index:19;left:0;right:0;top:-3px;height:3px;background:#f0b429}
.channel-detail-overlay .cdf-attribute-drop-target.pointer-placement-over::after{content:'+';position:absolute;z-index:20;left:-2px;top:-12px;display:flex;align-items:center;justify-content:center;width:20px;height:20px;border-radius:50%;background:#f0b429;color:#fff;font-size:16px;font-weight:900;line-height:1;box-shadow:0 2px 6px rgba(0,0,0,.2)}
.channel-detail-overlay .cdf-set-head,.channel-detail-overlay .cdf-set-row{min-width:0;grid-template-columns:30px minmax(140px,1.05fr) minmax(170px,1.35fr) repeat(4,minmax(86px,.7fr)) minmax(108px,.62fr) minmax(92px,.62fr) 35px;gap:7px}
.channel-detail-overlay .cdf-set-row input{min-width:0;padding:5px 6px}
.channel-detail-overlay .cdf-set-row [data-delete-set]{width:30px;min-width:30px;height:28px;margin:0;padding:0;border:1px solid #b42318;box-shadow:none;font-size:15px;line-height:1}
.channel-detail-overlay .cdf-set-actions{display:flex;align-items:center;justify-content:flex-end;gap:3px}
.channel-detail-overlay .cdf-set-actions button{width:30px;min-width:30px;height:28px;margin:0;padding:0;box-shadow:none;font-size:13px;line-height:1}
.channel-detail-overlay .cdf-set-row{position:relative;z-index:1;transition:transform 180ms cubic-bezier(.2,.8,.2,1),opacity 120ms;will-change:transform}
.channel-detail-overlay .cdf-set-row.cdf-set-live-dragging{z-index:4;opacity:.72}
.channel-detail-overlay .cdf-set-row.cdf-set-drag-over{box-shadow:inset 0 2px #18a7df}
.channel-detail-overlay .cdf-slot-field{display:grid;grid-template-columns:27px 1fr;gap:5px;align-items:center;min-width:0}
.channel-detail-overlay .cdf-set-head>span{display:flex;align-items:center;gap:4px;min-width:0;white-space:nowrap}
.channel-detail-overlay .cdf-set-head>span:nth-child(8),.channel-detail-overlay .cdf-set-head>span:nth-child(9){justify-content:center}
.channel-detail-overlay .cdf-channel-set-toggle{display:flex;align-items:center;justify-content:center;gap:4px;font-size:11px;color:#356bd8;font-weight:800;white-space:nowrap}
.channel-detail-overlay .cdf-channel-set-toggle input{width:16px;height:16px;margin:0;accent-color:#356bd8}
.channel-detail-overlay .cdf-slot-import{width:27px;height:27px;padding:0;border:0;background:transparent;box-shadow:none}
.channel-detail-overlay .cdf-slot-preview{display:block;width:25px;height:25px;box-sizing:border-box;border:1px solid #cbd2dc;border-radius:50%;object-fit:cover;background:#fff}
.channel-detail-overlay .cdf-slot-preview.empty{background:repeating-linear-gradient(45deg,#f3f4f6,#f3f4f6 4px,#e5e7eb 4px,#e5e7eb 8px)}
.channel-detail-overlay .cdf-set-row.cdf-set-error{background:#fff0f0}
.channel-detail-overlay .cdf-set-row.cdf-set-error input[data-set-key="dmxFrom"],.channel-detail-overlay .cdf-set-row.cdf-set-error input[data-set-key="dmxTo"]{border:2px solid #b42318!important;background:#fff7f7!important;color:#b42318;font-weight:800}
.channel-detail-overlay .cdf-required-issue{border:2px solid #b42318!important;background:#fff0f0!important;color:#b42318!important;font-weight:800}
.channel-detail-overlay .cdf-help-guide{padding:14px 18px;border-left:4px solid #356bd8;background:#f7faff}
.channel-detail-overlay .cdf-help-guide-title{display:flex;align-items:center;justify-content:space-between;gap:12px}.channel-detail-overlay .cdf-help-guide-title span{font-size:12px;color:#596273}
.channel-detail-overlay .cdf-help-guide-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-top:10px}.channel-detail-overlay .cdf-help-guide-grid p{margin:0;padding:9px 10px;border-radius:7px;background:#fff}.channel-detail-overlay .cdf-help-guide-grid b,.channel-detail-overlay .cdf-help-guide-grid span{display:block}.channel-detail-overlay .cdf-help-guide-grid b{margin-bottom:4px;color:#245ec7}.channel-detail-overlay .cdf-help-guide-grid span{font-size:12px;line-height:1.45;color:#596273}
.channel-detail-overlay .cdf-form-grid label>span{display:flex;align-items:center;gap:4px;min-height:20px;white-space:nowrap}
.channel-detail-overlay .cdf-help-dot{display:inline-flex!important;flex:0 0 16px;align-items:center;justify-content:center;width:16px!important;min-width:16px!important;max-width:16px;height:16px!important;min-height:16px;margin:0;padding:0!important;border:0;border-radius:50%;background:#dce8ff;color:#245ec7;box-shadow:none!important;font-size:11px;font-weight:900;line-height:1;vertical-align:middle;cursor:help}
@media(max-width:900px){.channel-detail-overlay{padding:12px}.channel-detail-overlay .channel-detail-shell{width:calc(100vw - 24px);max-height:calc(100vh - 24px)}.channel-detail-overlay .cdf-help-guide-grid{grid-template-columns:1fr 1fr}.channel-detail-overlay .cdf-top-grid{grid-template-columns:1fr}.channel-detail-overlay .cdf-form-grid{grid-template-columns:1fr 1fr}.channel-detail-overlay .cdf-form-grid>label{grid-column:span 1!important}.channel-detail-overlay .cdf-set-table{overflow:auto}.channel-detail-overlay .cdf-set-head,.channel-detail-overlay .cdf-set-row{min-width:900px}}
.cdf-point-marker{box-shadow:inset 4px 0 0 #2f6d42}
