.custom-response-panel{padding:0 18px 0}.custom-response-panel .panel-heading{align-items:flex-start;padding:17px 0 12px}.custom-response-panel .table-tools{align-items:center;gap:12px}.custom-response-module-switch{display:flex;align-items:center;gap:9px;margin:0;padding:0;border:0}.custom-response-module-switch>span{display:grid;gap:3px}.custom-response-module-switch strong{color:#cbd5de;font-size:9px;font-weight:600}.custom-response-module-switch small{max-width:220px;color:#788897;font-size:8px;line-height:1.4}.custom-response-module-switch input{accent-color:#58c99a}.custom-response-table{min-width:980px;table-layout:auto}.custom-response-table th,.custom-response-table td{padding:0 10px}.custom-response-table td:first-child{min-width:150px}.custom-response-table td:first-child strong{display:block;max-width:170px;overflow:hidden;color:#d1dbe4;font-size:10px;text-overflow:ellipsis}.custom-response-table td:first-child small{display:block;margin-top:4px;color:#718090;font-size:8px}.custom-response-table td:nth-child(2){max-width:190px;overflow:hidden;text-overflow:ellipsis}.custom-response-table code{color:#bca9f5;font-size:9px}.custom-response-table td:nth-child(4){max-width:210px;overflow:hidden;text-overflow:ellipsis}.custom-response-actions{display:flex;gap:4px}.custom-response-actions .secondary-button{min-height:24px;padding:0 7px;font-size:8px}.custom-response-warning,.custom-response-ready{margin:0 0 10px;padding:9px 11px;border:1px solid #634d30;border-radius:5px;background:#241e16;color:#ddbd83;font-size:9px;line-height:1.5}.custom-response-ready{border-color:#2d5747;background:#14231d;color:#90d3ae}.custom-response-capability{font-size:9px}.custom-response-capability.is-ready{color:#90d3ae}.custom-response-capability.is-warning{color:#ddbd83}.custom-response-dialog{display:flex;width:min(94vw,920px);min-height:min(82vh,740px);max-height:min(94vh,940px);flex-direction:column}.custom-response-dialog form{display:flex;min-height:0;flex:1;flex-direction:column}.custom-response-form-scroll{display:grid;min-height:0;overflow-y:auto;gap:11px;padding:4px 2px 14px}.custom-response-form-scroll>label:not(.setting-control){display:grid;gap:5px}.custom-response-form-scroll>label>span,.custom-response-channel-fieldset legend,.custom-response-variants-heading strong{color:#cbd5de;font-size:10px;font-weight:600}.custom-response-form-scroll input:not([type=checkbox]),.custom-response-form-scroll select,.custom-response-variant-row textarea{width:100%;min-height:34px;padding:8px 10px;border:1px solid #2b3946;border-radius:5px;outline:0;background:#121c26;color:#dce5ed;font:inherit;font-size:10px}.custom-response-form-scroll input:focus,.custom-response-form-scroll select:focus,.custom-response-variant-row textarea:focus{border-color:#4d806a;box-shadow:0 0 0 2px #5bdfaa24}.custom-response-channel-fieldset{min-width:0;margin:0;padding:10px;border:1px solid #273540;border-radius:6px}.custom-response-channel-fieldset legend small{margin-left:5px;color:#8795a2;font-weight:400}.custom-response-channel-list{display:grid;max-height:145px;overflow-y:auto;gap:4px;padding-top:5px}.custom-response-channel-option{display:flex;align-items:center;gap:8px;padding:6px 8px;border:1px solid #202c37;border-radius:4px;background:#121b24;color:#b8c4ce;font-size:9px}.custom-response-channel-option input{accent-color:#58c99a}.custom-response-variants{display:grid;gap:8px}.custom-response-variants-heading{display:flex;align-items:center;justify-content:space-between}.custom-response-variant-row{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:start;gap:7px}.custom-response-variant-row textarea{min-height:75px;resize:vertical;line-height:1.5}.custom-response-variant-row .secondary-button{min-height:30px;padding:0 8px;font-size:8px}.custom-response-form-scroll .setting-control{display:flex;align-items:center;justify-content:space-between;margin:0;padding:9px 0;border-top:1px solid #202b36}.custom-response-form-scroll .setting-control span{display:grid;gap:3px}.custom-response-form-scroll .setting-control strong{color:#cbd5de;font-size:10px}.custom-response-form-scroll .setting-control small{color:#788897;font-size:8px}.custom-response-form-scroll .setting-control input{accent-color:#58c99a}.custom-response-error{min-height:15px;margin:0;color:#ff9999;font-size:9px}.custom-response-dialog .confirm-actions{padding-top:9px;border-top:1px solid #27333e}.custom-response-panel .table-bottom{justify-content:space-between}.custom-response-panel .table-bottom .secondary-button{min-height:24px;padding:0 8px;font-size:8px}@media(max-width:850px){.custom-response-panel .panel-heading{align-items:flex-start;flex-direction:column;gap:10px}.custom-response-panel .table-tools{width:100%;justify-content:space-between}.custom-response-table{min-width:900px}.custom-response-dialog{width:96vw;min-height:88vh;max-height:94vh;padding:15px}}
.custom-response-sample-result{margin:-5px 0 1px;padding:7px 9px;border-left:2px solid #536272;background:#131c25;color:#82909e;font-size:8px;line-height:1.5}.custom-response-sample-result.is-match{border-color:#58c99a;color:#92d9b6}.custom-response-sample-result.is-no-match{border-color:#d5a753;color:#d4b678}
/* Wide editor layout for adding and maintaining custom triggers. */
.custom-response-dialog{width:min(96vw,1180px);min-height:min(88vh,860px);max-height:96vh;padding:24px}
.custom-response-form-scroll{grid-template-columns:minmax(0,1fr) minmax(0,1fr);grid-template-areas:'name method' 'pattern sample' 'cooldown result' 'channels variants' 'enabled enabled';align-content:start;gap:15px 20px}
.custom-response-form-scroll>label:nth-child(1){grid-area:name}
.custom-response-form-scroll>label:nth-child(2){grid-area:method}
.custom-response-form-scroll>label:nth-child(3){grid-area:pattern}
.custom-response-form-scroll>label:nth-child(4){grid-area:sample}
.custom-response-form-scroll>#custom-response-sample-result{grid-area:result;align-self:center}
.custom-response-form-scroll>label:nth-child(6){grid-area:cooldown}
.custom-response-form-scroll>.custom-response-channel-fieldset{grid-area:channels}
.custom-response-form-scroll>.custom-response-variants{grid-area:variants}
.custom-response-form-scroll>.setting-control{grid-area:enabled}
.custom-response-channel-list{max-height:220px}
.custom-response-variant-row textarea{min-height:110px}
@media(max-width:760px){.custom-response-dialog{width:96vw;min-height:88vh;max-height:96vh;padding:16px}.custom-response-form-scroll{grid-template-columns:minmax(0,1fr);grid-template-areas:'name' 'method' 'pattern' 'sample' 'result' 'cooldown' 'channels' 'variants' 'enabled';gap:12px}}
.custom-response-send-dialog form{display:grid;gap:14px}
.custom-response-send-dialog form>label{display:grid;gap:6px;color:#cbd5de;font-size:10px;font-weight:600}
.custom-response-send-dialog form select{width:100%;min-height:38px;padding:8px 10px;border:1px solid #2b3946;border-radius:5px;background:#121c26;color:#dce5ed;font:inherit;font-size:10px}
.custom-response-send-dialog form select:focus{border-color:#4d806a;outline:0;box-shadow:0 0 0 2px #5bdfaa24}
.custom-response-send-dialog form select:disabled{opacity:.65}
.custom-response-send-error{min-height:15px;margin:0;color:#ff9999;font-size:9px;line-height:1.5}
.custom-response-table tbody tr[tabindex]{cursor:context-menu}
.custom-response-table th:nth-child(5),.custom-response-table td:nth-child(5){width:76px;text-align:center;white-space:nowrap}
.custom-response-toggle-cell{padding:0 4px!important}
.custom-response-toggle-cell .feed-toggle-switch{min-width:36px}
.custom-response-form-scroll{grid-template-areas:'name action' 'method cooldown' 'pattern sample' 'result result' 'channels variants' 'allowed allowed' 'targets targets' 'enabled enabled'}
.custom-response-form-scroll>label.cr-name{grid-area:name}
.custom-response-form-scroll>label.cr-action{grid-area:action}
.custom-response-form-scroll>label.cr-method{grid-area:method}
.custom-response-form-scroll>label.cr-pattern{grid-area:pattern}
.custom-response-form-scroll>label.cr-sample{grid-area:sample}
.custom-response-form-scroll>label.cr-cooldown{grid-area:cooldown}
.custom-response-form-scroll>.cr-channels{grid-area:channels}
.custom-response-form-scroll>.cr-variants{grid-area:variants}
.custom-response-form-scroll>.cr-allowed-roles{grid-area:allowed}
.custom-response-form-scroll>.cr-target-roles{grid-area:targets}
.custom-response-form-scroll>label.cr-enabled{grid-area:enabled}
.custom-response-form-scroll [hidden]{display:none!important}
.custom-response-form-scroll .custom-response-role-fieldset{min-width:0;margin:0;padding:10px;border:1px solid #273540;border-radius:6px}
.custom-response-form-scroll .custom-response-role-fieldset legend{color:#cbd5de;font-size:10px;font-weight:600}
.custom-response-form-scroll .custom-response-role-fieldset legend small{margin-left:5px;color:#8795a2;font-weight:400}
.custom-response-role-list{display:grid;max-height:180px;overflow-y:auto;gap:4px;padding-top:5px}
.custom-response-role-list>p,.custom-response-role-warning{margin:5px 2px;color:#d4b678;font-size:9px;line-height:1.5}
.custom-response-role-warning{padding:7px 9px;border-left:2px solid #d5a753;background:#241e16}
.custom-response-table td:nth-child(6)>strong{display:block;color:#cbd5de;font-size:9px;font-weight:600}
.custom-response-table td:nth-child(6)>small{display:block;margin-top:4px;color:#82909e;font-size:8px}
@media(max-width:760px){.custom-response-form-scroll{grid-template-areas:'name' 'action' 'method' 'pattern' 'sample' 'result' 'cooldown' 'channels' 'variants' 'allowed' 'targets' 'enabled'}}
.custom-response-form-scroll .custom-response-channel-fieldset .channel-search-input,.github-form-field .channel-search-field .channel-search-input{width:100%;min-width:0;height:30px;min-height:30px;padding:0;border:0;border-radius:0;background:transparent;box-shadow:none}
.cr-flow-form{grid-template-columns:minmax(0,1fr) minmax(0,1fr);grid-template-areas:none;align-content:start}.cr-flow-form>label{display:grid;align-content:start;gap:6px;color:#cbd5de;font-size:10px}.cr-flow-form>.cr-full{grid-column:1/-1}.cr-flow-form .cr-action-flow{display:grid;gap:10px}.cr-action-list{display:grid;gap:10px}.cr-action-card{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px 14px;padding:12px;border:1px solid #2b3946;border-radius:7px;background:#111a23}.cr-action-card>header{grid-column:1/-1;display:flex;align-items:center;justify-content:space-between;padding-bottom:7px;border-bottom:1px solid #283541;color:#d5dee6;font-size:10px}.cr-action-card>header>div{display:flex;gap:5px}.cr-action-card>label{display:grid;gap:5px;color:#aebbc7;font-size:9px}.cr-action-card>label:has(textarea),.cr-action-card>label:has(.cr-flow-choices){grid-column:1/-1}.cr-action-card select,.cr-flow-form input:not([type=checkbox]),.cr-action-card textarea{width:100%;min-width:0;min-height:32px;padding:7px 9px;border:1px solid #2b3946;border-radius:5px;background:#121c26;color:#dce5ed;font:inherit;font-size:10px}.cr-action-card textarea{min-height:90px;resize:vertical}.cr-flow-choices{display:grid;max-height:150px;overflow:auto;gap:4px;padding:5px;border:1px solid #273540;border-radius:5px;background:#0e1720}.cr-flow-form small,.cr-action-card>small,.cr-action-flow>small{color:#83919f;font-size:8px;line-height:1.5}.cr-dm-note{grid-column:1/-1;color:#d4b678!important}@media(max-width:760px){.cr-flow-form{grid-template-columns:minmax(0,1fr)}.cr-flow-form>.cr-full{grid-column:auto}.cr-action-card{grid-template-columns:minmax(0,1fr)}}
.custom-response-table td .cr-last-run{color:#91a4b4}
/* Structured custom-trigger editor layout. */
.message-detail-dialog.custom-response-dialog{box-sizing:border-box;display:flex;width:min(96vw,1240px);height:min(94vh,1000px);min-height:0;max-height:98vh;flex-direction:column;overflow:hidden;padding:24px}
.custom-response-dialog>.message-detail-heading{flex:0 0 auto;margin-bottom:16px}
.custom-response-dialog>.message-detail-heading p{max-width:760px;margin:7px 0 0;color:#8595a4;font-size:10px;line-height:1.5}
.custom-response-dialog form{display:flex;min-height:0;flex:1;flex-direction:column;overflow:hidden}
.custom-response-dialog .cr-editor-body,.custom-response-dialog .custom-response-form-scroll.cr-flow-form{box-sizing:border-box;display:flex;min-height:0;flex:1;flex-direction:column;gap:18px;overflow-x:hidden;overflow-y:auto;padding:2px 5px 16px 1px}
.custom-response-dialog .cr-editor-section{display:grid;min-width:0;gap:10px}
.custom-response-dialog .cr-editor-section-heading{display:grid;gap:3px}
.custom-response-dialog .cr-editor-section-heading h3{margin:0;color:#dce5ed;font-size:12px;font-weight:650}
.custom-response-dialog .cr-editor-section-heading p{margin:0;color:#8292a0;font-size:9px;line-height:1.45}
.custom-response-dialog .cr-trigger-fields,.custom-response-dialog .cr-scope-fields{display:grid;min-width:0;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 18px}
.custom-response-dialog .cr-trigger-fields>label,.custom-response-dialog .cr-field{display:grid;min-width:0;align-content:start;gap:6px;color:#cbd5de;font-size:10px}
.custom-response-dialog .cr-trigger-fields>label>span,.custom-response-dialog .cr-field-label{color:#cbd5de;font-size:10px;font-weight:600}
.custom-response-dialog .cr-trigger-fields input,.custom-response-dialog .cr-trigger-fields select{box-sizing:border-box;width:100%;min-width:0;height:40px;padding:8px 10px;border:1px solid #2b3946;border-radius:5px;outline:0;background:#121c26;color:#dce5ed;font:inherit;font-size:11px}
.custom-response-dialog .cr-trigger-fields input:focus,.custom-response-dialog .cr-trigger-fields select:focus,.custom-response-dialog .cr-multiselect-toggle:focus-visible{border-color:#4d806a;outline:0;box-shadow:0 0 0 2px #5bdfaa24}
.custom-response-dialog .cr-field small{color:#83919f;font-size:8px;line-height:1.5}
.custom-response-dialog .cr-multiselect{position:relative;min-width:0}
.custom-response-dialog .cr-multiselect-toggle{box-sizing:border-box;width:100%;min-height:40px;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:8px 12px;border:1px solid #2b3946;border-radius:6px;background:#121c26;color:#cbd5de;text-align:left;font:inherit;font-size:11px;cursor:pointer}
.custom-response-dialog .cr-multiselect-toggle:hover,.custom-response-dialog .cr-multiselect-toggle[aria-expanded=true]{border-color:#526b7c;background:#172430}
.custom-response-dialog .cr-multiselect-toggle [data-selection-summary]{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.custom-response-dialog .cr-multiselect-toggle i{width:8px;height:8px;flex:0 0 8px;border-right:1.5px solid #9aabb9;border-bottom:1.5px solid #9aabb9;transform:translateY(-2px) rotate(45deg);transition:transform .15s ease}
.custom-response-dialog .cr-multiselect-toggle[aria-expanded=true] i{transform:translateY(2px) rotate(225deg)}
.custom-response-dialog .cr-multiselect-menu{box-sizing:border-box;position:fixed;z-index:100;display:grid;grid-template-rows:auto minmax(0,1fr);align-content:start;gap:7px;padding:9px;border:1px solid #344656;border-radius:7px;background:#101923;box-shadow:0 12px 30px #0009;overflow:hidden}
.custom-response-dialog .cr-multiselect-menu[hidden]{display:none!important}
.custom-response-dialog .cr-multiselect-menu>input[type=search]{box-sizing:border-box;width:100%;height:34px;min-height:34px;padding:0 10px;border:1px solid #2b3946;border-radius:5px;background:#0d151d;color:#dce5ed;font:inherit;font-size:11px}
.custom-response-dialog .cr-multiselect-menu .cr-flow-choices{box-sizing:border-box;min-height:0;max-height:220px;padding:3px;border:0;background:transparent;overflow-x:hidden;overflow-y:auto}
.custom-response-dialog .cr-multiselect-menu .custom-response-channel-option{box-sizing:border-box;min-height:30px}
.custom-response-dialog .cr-flow-choices{display:grid;gap:4px}
.custom-response-dialog .custom-response-channel-option{display:flex;min-width:0;align-items:center;gap:8px;padding:6px 8px;border:1px solid #202c37;border-radius:4px;background:#121b24;color:#b8c4ce;font-size:9px}
.custom-response-dialog .custom-response-channel-option span{min-width:0;overflow-wrap:anywhere}
.custom-response-dialog .custom-response-channel-option input{flex:0 0 auto;accent-color:#58c99a}
.custom-response-dialog .cr-action-flow{min-width:0;padding-top:2px}
.custom-response-dialog .cr-action-flow>.custom-response-variants-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:10px}
.custom-response-dialog .cr-action-flow>.custom-response-variants-heading strong{color:#cbd5de;font-size:11px;font-weight:650}
.custom-response-dialog .cr-action-list{display:grid;min-width:0;gap:12px}
.custom-response-dialog .cr-action-card{box-sizing:border-box;display:grid;min-width:0;grid-template-columns:repeat(2,minmax(0,1fr));align-items:start;gap:12px 16px;padding:14px;border:1px solid #2b3946;border-radius:7px;background:#121c26}
.custom-response-dialog .cr-action-card>header{display:flex;min-width:0;grid-column:1/-1;align-items:center;justify-content:space-between;gap:10px;padding-bottom:9px;border-bottom:1px solid #283541;color:#d5dee6;font-size:10px}
.custom-response-dialog .cr-action-card>header>div{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:5px}
.custom-response-dialog .cr-action-card>header .secondary-button{min-height:28px;padding:0 8px;font-size:9px}
.custom-response-dialog .cr-action-card>label{display:grid;min-width:0;gap:6px;color:#aebbc7;font-size:9px}
.custom-response-dialog .cr-action-card>label>span{font-size:10px;font-weight:600}
.custom-response-dialog .cr-action-card>label:has(textarea),.custom-response-dialog .cr-action-card>label:has(.cr-flow-choices){grid-column:1/-1}
.custom-response-dialog .cr-action-card select,.custom-response-dialog .cr-action-card textarea{box-sizing:border-box;width:100%;min-width:0;min-height:38px;padding:8px 10px;border:1px solid #2b3946;border-radius:5px;background:#121c26;color:#dce5ed;font:inherit;font-size:11px}
.custom-response-dialog .cr-action-card textarea{min-height:110px;resize:vertical;line-height:1.5}
.custom-response-dialog .cr-action-card .cr-flow-choices{max-height:170px;padding:5px;border:1px solid #273540;border-radius:5px;background:#0e1720;overflow:auto}
.custom-response-dialog .cr-dm-note{grid-column:1/-1;color:#d4b678;font-size:9px;line-height:1.5}
.custom-response-dialog .cr-enabled-field{display:flex;min-height:44px;align-items:center;justify-content:space-between;gap:16px;margin:0;padding:10px 0;border-top:1px solid #26333f}
.custom-response-dialog .cr-enabled-field>span{display:grid;gap:3px}
.custom-response-dialog .cr-enabled-field strong{color:#cbd5de;font-size:10px}
.custom-response-dialog .cr-enabled-field small{color:#788897;font-size:8px}
.custom-response-dialog .cr-enabled-field input{accent-color:#58c99a}
.custom-response-dialog .custom-response-error{flex:0 0 auto;min-height:0;margin:0;padding:3px 0 7px;color:#ff9999;font-size:9px}
.custom-response-dialog .confirm-actions{display:flex;flex:0 0 auto;justify-content:flex-end;gap:8px;padding-top:12px;border-top:1px solid #27333e;background:#111a24}
@media(max-width:760px){.message-detail-dialog.custom-response-dialog{width:98vw;height:96vh;max-height:98vh;padding:15px}.custom-response-dialog .cr-trigger-fields,.custom-response-dialog .cr-scope-fields,.custom-response-dialog .cr-action-card{grid-template-columns:minmax(0,1fr)}.custom-response-dialog .cr-action-card>header{align-items:flex-start}.custom-response-dialog .cr-action-card>header>div{gap:4px}.custom-response-dialog .cr-multiselect-menu{position:fixed}}