/* Shared task wiring: retain the confirmed Shell and existing card typography. */
.ct-metrics{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px;margin-bottom:10px}.ct-toolbar{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin:10px 0}.ct-toolbar .pt-search{flex:0 1 360px;min-width:180px}.ct-toolbar select{max-width:180px}.ct-workspace{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:12px}.ct-list{width:100%;border-collapse:collapse}.ct-list td,.ct-list th{padding:10px 8px;border-bottom:1px solid #e9f0f8;text-align:left}.ct-list small,.ct-source-table small,.ct-picked small,.ct-dialog li small,.dl-table-scroll td small{display:block;color:#8090a8;font-size:12px;overflow-wrap:anywhere}.ct-selected{background:#eef6ff}.ct-status{display:inline-block;background:#eef4fc;color:#4a6b95;padding:3px 7px;border-radius:5px;font-size:12px}.ct-running{color:#00a47b;background:#e8faf3}.ct-completed{color:#087cff;background:#edf5ff}.ct-failed,.ct-unknown{color:#f43b5d;background:#fff0f3}.ct-detail{padding:14px;min-width:0;overflow:auto;max-height:70vh}.ct-detail header,.ct-detail-items article header{display:flex;justify-content:space-between;align-items:center;gap:8px}.ct-detail h2{font-size:16px}.ct-facts{margin:10px 0}.ct-facts>div{display:grid;grid-template-columns:92px minmax(0,1fr);gap:8px;margin:7px 0}.ct-facts dt{color:#8190a6;font-size:12px}.ct-facts dd{margin:0;font-size:12px;overflow-wrap:anywhere}.ct-detail-items article{border-top:1px solid #e9eff7;padding:12px 0}.ct-note{font-size:12px;line-height:1.7;color:#7e90aa;padding:8px 10px}.ct-empty{padding:32px 16px;text-align:center;color:#8190a6}.ct-actions{display:flex;gap:6px;flex-wrap:wrap}.ct-dialog{width:min(1060px,calc(100vw - 32px));max-height:calc(100dvh - 32px);padding:0;border:1px solid #dce8f6;border-radius:12px;color:#263755;font-family:inherit;box-shadow:0 16px 64px #1c365733}.ct-dialog::backdrop{background:#142c524d}.ct-dialog>header{display:flex;justify-content:space-between;align-items:center;padding:16px 20px;border-bottom:1px solid #e7eef8}.ct-dialog h2{font-size:18px;margin:0}.ct-dialog-body{padding:18px 20px;overflow:auto}.ct-form-grid{display:grid;grid-template-columns:minmax(0,1fr) 270px;gap:20px}.ct-dialog label{display:block;margin-bottom:12px;font-size:13px}.ct-dialog input:not([type=checkbox]),.ct-dialog textarea,.ct-dialog select{display:block;box-sizing:border-box;width:100%;border:1px solid #dce8f6;border-radius:6px;padding:9px 10px;color:inherit;font:inherit;background:white;margin-top:5px}.ct-dialog button{border:1px solid #dce8f6;border-radius:6px;padding:7px 12px;color:#466589;background:white;font:inherit;cursor:pointer}.ct-dialog button.pt-primary{background:#087cff;color:white;border-color:#087cff}.ct-dialog button:disabled{opacity:.5;cursor:not-allowed}.ct-dialog footer{display:flex;justify-content:space-between;align-items:center;gap:12px;border-top:1px solid #e7eef8;margin-top:16px;padding-top:14px}.ct-dialog footer label{margin:0;line-height:1.7}.ct-dialog h3{font-size:14px;margin:12px 0}.ct-source-tools{display:flex;align-items:center;gap:8px;margin-bottom:8px}.ct-source-table{overflow:auto;max-height:300px}.ct-source-table table{border-collapse:collapse;width:100%;font-size:12px}.ct-source-table th,.ct-source-table td{padding:8px 6px;border-bottom:1px solid #e9f0f8;text-align:left}.ct-dialog ul{padding:0;list-style:none;max-height:250px;overflow:auto}.ct-dialog li{padding:8px;border:1px solid #e9f0f8;border-radius:5px;margin:5px 0}.ct-dialog li button{float:right}#ct-source-pages{display:flex;align-items:center;gap:8px;margin:8px 0}#ct-preview article{padding:10px;background:#f5faff;border-radius:6px;margin:8px 0;font-size:13px}#ct-feedback,.ct-error{color:#dd4b63;font-size:13px;line-height:1.8}.ct-dialog pre,.ct-detail pre{font-size:11px;white-space:pre-wrap;word-break:break-word;background:#f7f9fd;padding:8px;max-height:250px;overflow:auto}.ct-dialog [hidden]{display:none!important}
@media(max-width:1100px){.ct-workspace{grid-template-columns:minmax(0,1fr) 250px}.ct-metrics{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:768px){.ct-workspace,.ct-form-grid{grid-template-columns:minmax(0,1fr)}.ct-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.ct-dialog{width:calc(100vw - 16px);max-height:calc(100dvh - 16px)}.ct-dialog>header,.ct-dialog-body{padding:12px}.ct-dialog footer{flex-wrap:wrap}.ct-toolbar .pt-search{flex:1 1 200px}.ct-detail{max-height:none}.ct-list{min-width:790px}.single-layout{grid-template-columns:1fr}.ct-form-grid aside{border-top:1px solid #e7eef8}.ct-dialog input,.ct-dialog textarea{font-size:16px}}

/* Device selection and retry settings reuse existing form typography. */
.ct-dialog .ct-device-choice{display:flex;align-items:flex-start;gap:8px;border:1px solid #e9f0f8;border-radius:6px;padding:8px;margin-bottom:6px}.ct-device-choice input{margin-top:3px}.ct-device-choice small{display:block;color:#8090a8;font-size:12px;overflow-wrap:anywhere}.ct-rounds article{padding:6px 0}.ct-dialog #ct-retry-settings{border-top:1px solid #e9f0f8;border-bottom:1px solid #e9f0f8;margin:10px 0}.ct-dialog #ct-preview h4{font-size:13px;margin:8px 0 4px}

/* Accepted task records design. Scope all selectors to the existing task dialog. */
.ct-record-dialog{width:min(1200px,calc(100vw - 24px));max-height:calc(100dvh - 24px);background:#fff}.ct-record-dialog>.ct-dialog-body{padding:0}.ct-record-dialog>header{padding:12px 18px}.ct-record-heading{display:flex;align-items:center;gap:12px;padding:16px 18px;border-bottom:1px solid #e4edf9}.ct-record-title-icon{width:42px;height:42px;display:grid;place-items:center;border-radius:10px;background:#eaf3ff;color:#087cff;font-size:24px;flex:none}.ct-record-heading>div:nth-child(2){flex:1;min-width:0}.ct-record-heading h3{font-size:17px;line-height:1.5;margin:1px 0;color:#172b51}.ct-record-heading p,.ct-record-heading small{font-size:11px;color:#8092aa;margin:0}.ct-record-actions{display:flex;align-items:center;gap:6px;flex-wrap:wrap}.ct-record-layout{display:grid;grid-template-columns:242px minmax(0,1fr)}.ct-record-info{min-width:0;border-right:1px solid #e4edf9;background:#fbfdff;padding:0 16px}.ct-record-info>section{padding:15px 0;border-bottom:1px solid #e4edf9}.ct-record-info h3,.ct-record-card h3{font-size:13px;color:#193357;margin:0 0 10px}.ct-record-info .ct-facts>div{grid-template-columns:75px minmax(0,1fr);gap:6px}.ct-record-info .ct-facts dt,.ct-record-info .ct-facts dd{font-size:11px}.ct-record-tenant{display:flex;align-items:center;gap:10px}.ct-record-tenant>i{font-size:38px;color:#087cff}.ct-record-tenant b{display:block;font-size:15px;color:#193357}.ct-record-tenant strong{display:block;font-size:14px;font-weight:500;color:#3d5e86}.ct-record-address{font-size:12px;line-height:1.8;color:#6680a0;overflow-wrap:anywhere}.ct-record-main{min-width:0}.ct-record-tabs{display:flex;gap:4px;padding:0 12px;overflow:auto;border-bottom:1px solid #e4edf9;scrollbar-width:thin}.ct-record-dialog .ct-record-tabs button{white-space:nowrap;flex:none;padding:11px 13px;background:none;border:0;border-radius:0;font-size:13px;color:#647b9c}.ct-record-dialog .ct-record-tabs button.active{color:#087cff;font-weight:600;box-shadow:inset 0 -2px #087cff}.ct-record-panel{padding:16px 18px;min-width:0;min-height:240px}.ct-record-panel-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:14px}.ct-record-panel-heading h3{font-size:14px;margin:0}.ct-record-panel-heading p{font-size:11px;color:#8092aa;margin:4px 0 0}.ct-record-card{padding:14px;border:1px solid #e2ecfa;border-radius:7px;margin-bottom:12px;background:white;overflow-wrap:anywhere}.ct-record-card p{font-size:12px;line-height:1.8;color:#47678c;margin:8px 0}.ct-record-card small{color:#8395b0;font-size:11px;line-height:1.7}.ct-record-card-title{display:flex;align-items:center;gap:9px;margin-bottom:10px;flex-wrap:wrap}.ct-record-card-title>i{font-size:22px;color:#087cff}.ct-record-card-title h3{margin:0;flex:1}.ct-record-card-title>.ct-status{margin-left:auto}.ct-record-muted{background:#fbfdff}.ct-record-route-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.ct-record-route-grid>div{display:grid;grid-template-columns:22px minmax(0,1fr);gap:4px 6px;border:1px solid #e6edf8;border-radius:6px;padding:9px;background:white}.ct-record-route-grid i{grid-row:1/3;color:#087cff;font-size:20px}.ct-record-route-grid b{font-size:11px;font-weight:500}.ct-record-route-grid small{font-size:10px}.ct-record-raw{font-size:11px;color:#6e88ad}.ct-record-raw summary{cursor:pointer}.ct-record-empty{text-align:center;padding:45px 12px;border:1px dashed #e0eaf8;border-radius:7px;color:#8ca0b9}.ct-record-empty>i{display:block;font-size:30px;color:#a5bddc;margin-bottom:8px}.ct-record-empty strong{display:block;font-size:13px;font-weight:500}.ct-record-empty p{font-size:11px;line-height:1.7;margin:7px 0}.ct-record-execution-choice{display:flex!important;align-items:center;gap:10px;font-size:12px;margin-bottom:14px!important;color:#6c85a7}.ct-record-dialog .ct-record-execution-choice select{width:auto;max-width:100%;flex:1;margin:0;font-size:12px}.ct-record-turn{border-bottom:1px solid #edf2fa;padding:8px 0 12px}.ct-record-turn-label{text-align:center;color:#9aa9be;font-size:10px;margin-bottom:8px}.ct-record-message{display:flex;gap:8px;align-items:flex-start;margin-bottom:10px}.ct-record-message>span{width:29px;height:29px;display:grid;place-items:center;flex:none;background:#eaf4ff;color:#087cff;border-radius:50%;font-size:16px}.ct-record-message>div{min-width:0;max-width:90%}.ct-record-message small{font-size:10px;color:#8b9cb5;display:block;margin-bottom:3px}.ct-record-message p{font-size:12px;color:#355a85;line-height:1.8;margin:0;padding:8px 11px;background:#f5f8fd;border-radius:6px;white-space:pre-wrap;overflow-wrap:anywhere}.ct-record-ai p{background:#edf5ff}.ct-record-no-reply{margin-left:37px;font-size:10px;color:#93a3b9}.ct-record-audio{background:linear-gradient(180deg,#f9fcff,#fff)}.ct-record-tracks{display:flex;gap:6px;flex-wrap:wrap;margin-bottom:14px}.ct-record-dialog .ct-record-tracks button.active{color:#087cff;background:#eaf3ff;border-color:#a7c7f2}.ct-record-audio audio{display:block;width:100%;height:48px;margin:10px 0 14px}.ct-record-audio-tools{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:12px;font-size:11px;color:#7b91ae}.ct-record-audio-tools label{display:flex!important;align-items:center;gap:6px;white-space:nowrap;margin:0!important;font-size:11px!important}.ct-record-dialog .ct-record-audio-tools select{width:75px;padding:5px;margin:0;font-size:12px}.ct-record-filter{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-bottom:12px}.ct-record-filter>label{display:flex!important;align-items:center;gap:7px;flex:1 1 250px;margin:0!important;border:1px solid #dce8f6;border-radius:6px;padding:0 10px;color:#7490b5}.ct-record-dialog .ct-record-filter input{border:0;margin:0;padding:8px 0;min-width:0;font-size:12px}.ct-record-dialog .ct-record-filter select{width:auto;max-width:180px;margin:0;font-size:12px}.ct-record-filter>small{color:#8a9cb5;font-size:11px}.ct-record-table-wrap{min-width:0;overflow:auto}.ct-record-table{width:100%;border-collapse:collapse;font-size:12px;table-layout:fixed}.ct-record-table th{text-align:left;font-size:11px;font-weight:500;color:#637da3;background:#f2f8ff;white-space:nowrap}.ct-record-table th,.ct-record-table td{padding:10px 8px;border-bottom:1px solid #e7eff9;vertical-align:middle;overflow-wrap:anywhere}.ct-record-table b{font-size:12px;font-weight:600;display:block}.ct-record-table small{font-size:10px;color:#8a9cb5;line-height:1.7;display:block;margin-top:3px}.ct-record-table .ct-record-actions{gap:4px}.ct-record-table button{font-size:11px;padding:5px 7px}.ct-record-timeline{list-style:none;padding:0;margin:0}.ct-record-timeline li{display:grid;grid-template-columns:155px minmax(0,1fr);gap:12px;padding:14px;border-bottom:1px solid #e6eef9}.ct-record-timeline time{color:#8399b7;font-size:11px}.ct-record-timeline b{font-size:13px}.ct-record-timeline p{font-size:11px;color:#8399b7}.ct-record-batch-overview{display:grid;grid-template-columns:250px minmax(0,1fr);gap:20px;padding:18px;border-bottom:1px solid #e4edf9;background:#fbfdff}.ct-record-batch-overview>div>small{font-size:12px;color:#5f7c9f}.ct-record-batch-overview>div>strong{display:block;font-size:26px;color:#087cff;margin:5px 0}.ct-record-batch-overview strong span{font-size:14px;color:#8095b2;font-weight:400}.ct-record-progress{height:7px;border-radius:10px;background:#e7eef8;overflow:hidden}.ct-record-progress>i{display:block;background:#00bf91;height:100%;border-radius:10px}.ct-record-batch-overview p{font-size:11px;color:#8a9bb3;margin:8px 0 0}.ct-record-batch-states{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;align-items:center}.ct-record-batch-states>div{padding-left:12px;border-left:1px solid #e3edf9}.ct-record-batch-states small{display:block;font-size:11px;color:#708cac}.ct-record-batch-states strong{font-size:24px;color:#275484}.ct-record-back{padding:10px 18px;border-bottom:1px solid #e6eef9}.ct-record-form-two{display:grid;grid-template-columns:1fr 1fr;gap:12px}.ct-record-dispatch label{font-size:12px;color:#547196}.ct-record-confirm{display:flex!important;align-items:flex-start;gap:8px;line-height:1.8}.ct-record-confirm input{flex:none;margin-top:5px}.ct-record-warning{padding:8px 10px;border:1px solid #f5e4c7;border-radius:5px;background:#fff8ed;color:#ad833b}.ct-record-warning p{font-size:11px;margin:0}.ct-record-feedback-state{font-size:12px;line-height:1.8;color:#58779f}.ct-record-dispatch .ct-record-card:last-child{margin-bottom:0}.ct-record-dialog [hidden]{display:none!important}
@media(max-width:1000px){.ct-record-layout{grid-template-columns:210px minmax(0,1fr)}.ct-record-info{padding:0 12px}.ct-record-panel{padding:14px}.ct-record-route-grid{grid-template-columns:1fr}.ct-record-heading>.ct-record-actions{flex:0 0 100%;justify-content:flex-end}.ct-record-heading{flex-wrap:wrap}.ct-record-batch-overview{grid-template-columns:210px minmax(0,1fr)}.ct-record-batch-states{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}}
@media(max-width:768px){.ct-record-dialog{width:calc(100vw - 12px);max-height:calc(100dvh - 12px);margin:auto}.ct-record-dialog>header{padding:10px 12px}.ct-record-dialog>header h2{font-size:16px}.ct-record-heading{padding:12px;gap:8px}.ct-record-title-icon{width:32px;height:32px;font-size:19px}.ct-record-heading h3{font-size:14px}.ct-record-heading p,.ct-record-heading small{font-size:10px}.ct-record-heading>span{flex:0 0 auto}.ct-record-heading>.ct-record-actions{margin:0}.ct-record-layout{display:flex;flex-direction:column}.ct-record-info{border-right:0;border-bottom:1px solid #e4edf9;padding:0 12px}.ct-record-info>section{padding:12px 0}.ct-record-info>section:not(:first-child){display:none}.ct-record-info>section:first-child>h3{display:none}.ct-record-tenant>i{font-size:29px}.ct-record-tenant>div{display:flex;align-items:center;gap:10px}.ct-record-tenant b{font-size:14px}.ct-record-tenant strong{font-size:13px}.ct-record-address{font-size:11px;margin:6px 0 0;line-height:1.7}.ct-record-tabs{padding:0 5px;gap:0;scrollbar-width:none}.ct-record-dialog .ct-record-tabs button{font-size:12px;padding:11px 10px}.ct-record-panel{padding:12px;min-height:0}.ct-record-card{padding:12px}.ct-record-card-title{gap:7px}.ct-record-panel-heading{gap:8px}.ct-record-panel-heading h3{font-size:13px}.ct-record-panel-heading p{font-size:10px}.ct-record-panel-heading button{font-size:11px;padding:6px 8px}.ct-record-form-two{grid-template-columns:1fr;gap:0}.ct-record-audio-tools{align-items:flex-start;flex-wrap:wrap}.ct-record-audio-tools>span{flex:1 1 180px}.ct-record-filter{gap:7px}.ct-record-dialog .ct-record-filter select{max-width:none;flex:1 1 120px;font-size:12px}.ct-record-filter>small{flex:1 1 100%}.ct-record-table-wrap{overflow:visible}.ct-record-table,.ct-record-table tbody{display:block;width:100%;min-width:0}.ct-record-table thead{display:none}.ct-record-table tr{display:grid;grid-template-columns:1fr;border:1px solid #e1ecfa;border-radius:7px;margin-bottom:10px;padding:9px;background:#fff;min-width:0}.ct-record-table td{display:grid;grid-template-columns:90px minmax(0,1fr);padding:7px 0;border-bottom:0;min-width:0;font-size:12px;gap:6px}.ct-record-table td:before{content:attr(data-label);color:#879bb5;font-size:11px}.ct-record-table td>b,.ct-record-table td>small{grid-column:2;min-width:0}.ct-record-table td .ct-status{justify-self:start}.ct-record-table td .ct-record-actions{min-width:0}.ct-record-table small{margin:0}.ct-record-batch-overview{grid-template-columns:1fr;gap:12px;padding:12px}.ct-record-batch-overview>div>strong{font-size:24px}.ct-record-batch-states{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.ct-record-timeline li{grid-template-columns:1fr;gap:5px;padding:12px}.ct-record-back{padding:9px 12px}.ct-record-dialog .ct-record-dispatch input:not([type=checkbox]),.ct-record-dialog .ct-record-dispatch select,.ct-record-dialog .ct-record-dispatch textarea{font-size:16px}.ct-record-execution-choice{display:block!important}.ct-record-dialog .ct-record-execution-choice select{width:100%;margin-top:5px}.ct-record-dialog .ct-record-info .ct-facts dd{overflow-wrap:anywhere}}

/* Complete authenticated recording download; native WAV playback remains unchanged. */
.ct-record-audio progress{display:block;width:100%;height:7px;margin:0 0 12px;accent-color:#087cff}.ct-record-audio-actions{margin-bottom:10px}.ct-record-audio-tools [data-cr-audio-state]{min-width:0;overflow-wrap:anywhere;line-height:1.7}.ct-record-audio-tools .ct-error{color:#dc3545}
