/* Local layout repair only. Existing inputs, bindings and execution controls are unchanged. */
.live-desk #desk-d .hangup-control{
 display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;
 align-items:start!important;gap:20px!important;padding:24px!important;
 width:100%;min-width:0;box-sizing:border-box;
}
.live-desk #desk-d .hangup-control *{box-sizing:border-box;min-width:0}
.live-desk #desk-d .hangup-summary{grid-column:1;padding:0;align-self:start}
.live-desk #desk-d .hangup-summary :is(span,b,small){display:block!important;white-space:normal!important;overflow-wrap:anywhere;line-height:1.6!important}
.live-desk #desk-d .hangup-summary b{margin:8px 0!important}
.live-desk #desk-d .hangup-summary small{font-size:15px!important;color:#b6c7d8!important}
.live-desk #desk-d .hangup-basis{grid-column:2;align-self:start}
.live-desk #desk-d .hangup-basis>span{font-size:16px!important;line-height:1.5!important;margin:0 0 8px}
.live-desk #desk-d .hangup-basis nav{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important;margin:0!important}
.live-desk #desk-d .hangup-basis button{
 height:auto!important;min-height:48px!important;width:100%;padding:10px 12px!important;
 font-size:16px!important;line-height:1.5!important;white-space:normal!important;overflow-wrap:anywhere;
 display:flex;align-items:center;justify-content:center;border-radius:8px;
}
.live-desk #desk-d .hangup-basis>small{display:block;margin:10px 0 0!important;font-size:14px!important;line-height:1.65!important;white-space:normal!important;overflow-wrap:anywhere}
.live-desk #desk-d .hangup-thresholds{grid-column:1/-1;display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:16px!important}
.live-desk #desk-d .hangup-thresholds label{
 display:grid!important;grid-template-columns:24px minmax(0,1fr)!important;grid-template-rows:auto auto auto;
 align-items:center!important;gap:8px!important;padding:16px!important;margin:0!important;
 border:1px solid #3b5267!important;border-radius:10px;background:#0b1926!important;
}
.live-desk #desk-d .hangup-thresholds label>span{grid-column:1/-1;grid-row:1;padding:0!important;white-space:normal!important;font-size:16px!important;line-height:1.5!important;font-weight:600!important}
.live-desk #desk-d .hangup-thresholds label>i{grid-column:1;grid-row:2;text-align:center!important;font-size:20px!important;line-height:1.5!important}
.live-desk #desk-d .hangup-thresholds input{
 grid-column:2;grid-row:2;display:block;width:100%!important;max-width:100%;min-height:48px!important;height:auto!important;
 padding:10px 12px!important;font-size:22px!important;line-height:1.3!important;font-variant-numeric:tabular-nums;
 color:#e7eff7!important;background:#101f2e!important;border:1px solid #57738b!important;border-radius:7px;
}
.live-desk #desk-d .hangup-thresholds input:focus-visible{outline:2px solid #69d5ee!important;outline-offset:2px}
.live-desk #desk-d .hangup-thresholds label>em{grid-column:1/-1;grid-row:3;padding:0!important;font-size:15px!important;line-height:1.6!important;white-space:normal!important;overflow-wrap:anywhere;font-variant-numeric:tabular-nums;color:#b6c7d8!important}
.live-desk #desk-d .hangup-actions{grid-column:1/-1;display:flex!important;align-items:stretch;justify-content:flex-end;flex-wrap:wrap;gap:12px!important;width:100%}
.live-desk #desk-d .hangup-actions button{width:auto;min-width:170px;height:auto!important;min-height:48px!important;padding:11px 18px!important;font-size:16px!important;line-height:1.5!important;white-space:normal!important;overflow-wrap:anywhere;border-radius:8px}
.live-desk #desk-d #live-stair-mode{grid-column:1/-1;width:100%;min-width:0;margin:0!important;padding:20px!important}
.live-desk #desk-d #live-stair-mode :is(p,span){white-space:normal!important;overflow-wrap:anywhere;font-size:15px!important;line-height:1.65!important}
.live-desk #desk-d #live-stair-mode h3{font-size:20px!important;line-height:1.5!important}
.live-desk #desk-d #live-stair-mode button{font-size:16px!important;min-height:48px!important;height:auto!important;padding:10px 14px!important;white-space:normal!important;line-height:1.5!important}
@media(max-width:800px){
 .live-desk #desk-d .hangup-control{grid-template-columns:minmax(0,1fr)!important;padding:16px!important;gap:18px!important}
 .live-desk #desk-d .hangup-summary,.live-desk #desk-d .hangup-basis{grid-column:1/-1}
 .live-desk #desk-d .hangup-thresholds{grid-template-columns:minmax(0,1fr)!important;gap:12px!important}
 .live-desk #desk-d .hangup-actions button{flex:1 1 170px;min-width:0}
 .live-desk #desk-d #live-stair-mode{padding:16px!important}
}
@media(max-width:420px){
 .live-desk #desk-d .hangup-control{padding:12px!important}
 .live-desk #desk-d .hangup-basis nav{grid-template-columns:minmax(0,1fr)!important}
 .live-desk #desk-d .hangup-thresholds label{padding:12px!important}
 .live-desk #desk-d .hangup-actions{flex-direction:column}
 .live-desk #desk-d .hangup-actions button{flex:auto;width:100%}
}
