/* Conversation and everyday actions have fixed places. Both themes use the
   established workspace palette and the same document structure. */
html[data-workspace-design=cabinet] #view-tickets .record-page[data-kind=ticket]>.record-content{padding:0!important}
html[data-workspace-design=cabinet] #tkDetail.tk-workspace-v1{padding:20px 24px;background:var(--work-surface)}
html[data-workspace-design=cabinet] #tkDetail.tk-workspace-v1 .tk-header{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;padding:0 0 18px;margin:0 0 20px}
html[data-workspace-design=cabinet] #tkDetail.tk-workspace-v1 .tk-header h2{font-size:23px;line-height:1.35;font-weight:500;letter-spacing:-.2px;margin:0 0 10px;overflow-wrap:anywhere}
html[data-workspace-design=cabinet] #tkDetail.tk-workspace-v1 .tk-header-actions{flex:0 0 auto;gap:10px}
html[data-workspace-design=cabinet] #tkDetail.tk-workspace-v1 .tk-reply-jump{display:none!important}
html[data-workspace-design=cabinet] #tkDetail.tk-workspace-v1 #tkTakeButton{width:auto!important;margin:0!important;min-height:40px;white-space:nowrap}
html[data-workspace-design=cabinet] #tkDetail.tk-workspace-v1 .tk-layout{display:grid;grid-template-columns:minmax(0,1fr) 280px;gap:28px;align-items:start}
html[data-workspace-design=cabinet] #tkDetail.tk-workspace-v1 .tk-conversation{min-width:0}
html[data-workspace-design=cabinet] #tkDetail.tk-workspace-v1 .tk-conversation>div:first-child{font-size:13px!important;line-height:1.6;margin-bottom:12px!important}
html[data-workspace-design=cabinet] #tkDetail.tk-workspace-v1 #tkThread{min-height:180px;max-height:clamp(220px,calc(100dvh - 490px),540px);overflow-y:auto;overscroll-behavior:contain;padding:0 10px 12px 0;scrollbar-gutter:stable}
html[data-workspace-design=cabinet] #tkDetail.tk-workspace-v1 #tkThread>div{margin:0 0 14px!important;padding:14px 16px!important;border-radius:5px!important;line-height:1.6;overflow-wrap:anywhere}
html[data-workspace-design=cabinet] #tkDetail.tk-workspace-v1 #tkThread>div>div:first-child{font-size:12px!important;font-weight:400!important;margin-bottom:5px}
html[data-workspace-design=cabinet] #tkDetail.tk-workspace-v1 #tkThread>div>div:nth-child(2){font-size:15px!important;line-height:1.6}
html[data-workspace-design=cabinet] #tkDetail.tk-workspace-v1 #tkComposer{margin-top:8px!important;padding:16px!important;border-radius:5px!important}
html[data-workspace-design=cabinet] #tkDetail.tk-workspace-v1 #tkComposer>label{font-size:13px!important;font-weight:400!important;line-height:1.6}
html[data-workspace-design=cabinet] #tkDetail.tk-workspace-v1 #tkComposer .btn{min-height:38px;font-size:14px}
html[data-workspace-design=cabinet] #tkDetail.tk-workspace-v1 #tkReply{min-height:90px!important;max-height:260px;resize:vertical;font-size:15px!important;line-height:1.6;margin-top:8px!important}
html[data-workspace-design=cabinet] #tkDetail.tk-workspace-v1 .tk-composer-actions{align-items:center;margin-top:12px;gap:10px}
html[data-workspace-design=cabinet] #tkDetail.tk-workspace-v1 #tkDraftState{font-size:12px!important;line-height:1.5;margin:0 0 0 auto!important;flex:0 1 205px;color:var(--work-muted)}
html[data-workspace-design=cabinet] #tkDetail.tk-workspace-v1 .tk-aside{display:flex;flex-direction:column;align-items:stretch;gap:20px;border:0;border-left:1px solid var(--work-line);padding:0 0 0 24px;min-width:0}
html[data-workspace-design=cabinet] #tkDetail.tk-workspace-v1 .tk-focus-controls{display:flex;flex-direction:column;gap:16px;border:0;padding:0;margin:0}
html[data-workspace-design=cabinet] #tkDetail.tk-workspace-v1 .tk-focus-field{display:block;min-width:0}
html[data-workspace-design=cabinet] #tkDetail.tk-workspace-v1 .tk-focus-field:has(#tkAssign){display:block}
html[data-workspace-design=cabinet] #tkDetail.tk-workspace-v1 .tk-focus-field>.tk-section{margin:0 0 6px;font-size:13px;font-weight:400;color:var(--work-muted)}
html[data-workspace-design=cabinet] #tkDetail.tk-workspace-v1 .tk-focus-field select{min-height:40px;width:100%;font-size:14px;padding:8px 10px}
html[data-workspace-design=cabinet] #tkDetail.tk-workspace-v1 .tk-focus-deadlines{display:block;margin:0;padding-top:4px}
html[data-workspace-design=cabinet] #tkDetail.tk-workspace-v1 .tk-focus-deadlines>.tk-section{font-size:13px;font-weight:400;margin-bottom:8px}
html[data-workspace-design=cabinet] #tkDetail.tk-workspace-v1 #tkSlaDetail{display:flex;flex-direction:column;align-items:flex-start;gap:8px;font-size:13px}
html[data-workspace-design=cabinet] #tkDetail.tk-workspace-v1 .tk-properties{padding:0 0 20px;margin:0;border:0;border-bottom:1px solid var(--work-line);background:none;border-radius:0}
html[data-workspace-design=cabinet] #tkDetail.tk-workspace-v1 .tk-properties[data-layout=desktop]>summary{display:none}
html[data-workspace-design=cabinet] #tkDetail.tk-workspace-v1 .tk-customer-summary>.tk-section{font-size:13px;font-weight:400;color:var(--work-muted);margin:0 0 8px}
html[data-workspace-design=cabinet] #tkDetail.tk-workspace-v1 .tk-client{font-size:14px;line-height:1.6}
html[data-workspace-design=cabinet] #tkDetail.tk-workspace-v1 .tk-client b{font-weight:500}
html[data-workspace-design=cabinet] #tkDetail.tk-workspace-v1 .tk-client small{font-size:12px;line-height:1.5;display:block}
html[data-workspace-design=cabinet] #tkDetail.tk-workspace-v1 .tk-aside>.tk-disclosure:not(.tk-properties){background:none;border:0;border-top:1px solid var(--work-line);border-radius:0;padding:0;margin:0}
html[data-workspace-design=cabinet] #tkDetail.tk-workspace-v1 .tk-aside>.tk-disclosure>summary{padding:12px 0 0;font-size:14px;font-weight:500;line-height:1.5}
html[data-workspace-design=cabinet] #tkDetail.tk-workspace-v1 .tk-aside>.tk-disclosure[open]>summary{border:0;margin-bottom:12px}
html[data-workspace-design=cabinet] #tkDetail.tk-workspace-v1 .tk-related{font-size:13px;line-height:1.5;padding:8px 0;white-space:normal}
html[data-workspace-design=cabinet] #tkDetail.tk-workspace-v1 #tkAttachmentVisibility{display:block;font-size:12px;line-height:1.6;margin-bottom:10px}
html[data-workspace-design=cabinet] #tkDetail.tk-workspace-v1 #tkAttachmentList>div{padding:7px 0!important;gap:8px!important;font-size:13px!important}
html[data-workspace-design=cabinet] #tkDetail.tk-workspace-v1 #tkAttachmentList>label{font-size:13px!important;min-height:38px;padding:8px!important;white-space:normal}
html[data-workspace-design=cabinet] #tkList{min-height:0;max-height:none;overflow:visible}
html[data-workspace-design=cabinet] #tkWorkspace .tk-queue{overflow:visible}
html[data-workspace-design=cabinet] #tkList .tk-row{min-height:0;padding:16px 18px}
html[data-workspace-design=cabinet] #tkList .tk-row-counts{white-space:normal;overflow:visible;overflow-wrap:anywhere;max-width:100%;min-width:0}
html[data-workspace-design=cabinet] #tkPager.tk-single-page{display:block!important;padding:10px 18px;text-align:left}
html[data-workspace-design=cabinet] #tkPager.tk-single-page>span{font-size:13px}
html[data-workspace-design=cabinet] #tkFilters .tk-toolbar{grid-template-columns:minmax(220px,1fr) minmax(220px,260px) auto auto;align-items:center;gap:12px}
html[data-workspace-design=cabinet] #tkOwnerFilter{flex:0 1 230px;min-width:180px}
html[data-workspace-design=cabinet] #tkOwnerFilter>label{display:flex;align-items:center;gap:8px;font-size:13px;color:var(--work-muted)}
html[data-workspace-design=cabinet] #tkOwnerFilter select{min-width:0;min-height:42px;width:100%;font-size:14px}
@media(min-width:900px){
 html[data-workspace-design=cabinet] #view-tickets .record-nav{margin-bottom:12px}
 html[data-workspace-design=cabinet] #tkDetail.tk-workspace-v1{padding-top:16px}
 html[data-workspace-design=cabinet] #tkDetail.tk-workspace-v1 .tk-header{padding-bottom:12px;margin-bottom:12px}
 html[data-workspace-design=cabinet] #tkDetail.tk-workspace-v1 .tk-layout{height:calc(100dvh - 306px);min-height:380px;align-items:stretch}
 html[data-workspace-design=cabinet] #tkDetail.tk-workspace-v1 .tk-conversation{display:flex;flex-direction:column;min-height:0}
 html[data-workspace-design=cabinet] #tkDetail.tk-workspace-v1 #tkThread{flex:1 1 auto;min-height:80px;max-height:none}
 html[data-workspace-design=cabinet] #tkDetail.tk-workspace-v1 #tkComposer{flex:0 0 auto}
 html[data-workspace-design=cabinet] #tkDetail.tk-workspace-v1 .tk-aside{max-height:100%;overflow-y:auto;scrollbar-gutter:stable;padding-right:8px}
}
@media(min-width:900px) and (max-width:1100px){
 html[data-workspace-design=cabinet] #tkDetail.tk-workspace-v1{padding:18px}
 html[data-workspace-design=cabinet] #tkDetail.tk-workspace-v1 .tk-layout{grid-template-columns:minmax(0,1fr) 245px;gap:20px}
 html[data-workspace-design=cabinet] #tkDetail.tk-workspace-v1 .tk-aside{padding-left:18px}
}
@media(max-width:899px){
 html[data-workspace-design=cabinet] #tkFilters .tk-toolbar{grid-template-columns:1fr 1fr}
 html[data-workspace-design=cabinet] #tkFilters #tkQ{grid-column:1/-1;width:100%;min-width:0;font-size:16px}
 html[data-workspace-design=cabinet] #tkOwnerFilter{grid-column:1/-1;min-width:0}
 html[data-workspace-design=cabinet] #tkFilters .tk-toolbar .tk-bulk-button{grid-column:auto;justify-self:stretch;white-space:normal}
 html[data-workspace-design=cabinet] #tkStatusFilters{flex-wrap:wrap;overflow:visible;white-space:normal}
 html[data-workspace-design=cabinet] #tkStatusFilters .btn{flex:1 0 auto;min-height:44px}
 html[data-workspace-design=cabinet] #tkDetail.tk-workspace-v1{padding:18px}
 html[data-workspace-design=cabinet] #tkDetail.tk-workspace-v1 .tk-layout{grid-template-columns:minmax(0,1fr);gap:24px}
 html[data-workspace-design=cabinet] #tkDetail.tk-workspace-v1 .tk-header{flex-wrap:wrap;gap:12px;padding-bottom:14px;margin-bottom:14px}
 html[data-workspace-design=cabinet] #tkDetail.tk-workspace-v1 .tk-header h2{font-size:21px}
 html[data-workspace-design=cabinet] #tkDetail.tk-workspace-v1 .tk-properties{margin-bottom:20px;padding:0 0 14px}
 html[data-workspace-design=cabinet] #tkDetail.tk-workspace-v1 .tk-properties>summary{display:block;font-size:14px;line-height:1.7;padding:0;list-style:none}
 html[data-workspace-design=cabinet] #tkDetail.tk-workspace-v1 .tk-properties>summary>span:first-child::before{content:'▸';display:inline-block;width:18px}
 html[data-workspace-design=cabinet] #tkDetail.tk-workspace-v1 .tk-properties[open]>summary>span:first-child::before{content:'▾'}
 html[data-workspace-design=cabinet] #tkDetail.tk-workspace-v1 .tk-properties :is(.tk-properties-brief,#tkDeadlineSummary){display:block;margin:3px 0 0 18px}
 html[data-workspace-design=cabinet] #tkDetail.tk-workspace-v1 .tk-properties[open]>.tk-focus-controls{margin-top:18px}
 html[data-workspace-design=cabinet] #tkDetail.tk-workspace-v1 .tk-aside{border:0;border-top:1px solid var(--work-line);padding:20px 0 0;gap:20px}
 html[data-workspace-design=cabinet] #tkDetail.tk-workspace-v1 #tkThread{max-height:48dvh;min-height:120px;padding-right:6px}
 html[data-workspace-design=cabinet] #tkDetail.tk-workspace-v1 #tkComposer{padding:12px!important}
 html[data-workspace-design=cabinet] #tkDetail.tk-workspace-v1 :is(#tkReply,.tk-focus-field select){font-size:16px!important}
 html[data-workspace-design=cabinet] #tkDetail.tk-workspace-v1 :is(#tkComposer .btn,.tk-header-actions .btn){min-height:44px;font-size:15px}
 html[data-workspace-design=cabinet] #tkDetail.tk-workspace-v1 .tk-reply-jump{display:inline-flex!important}
 html[data-workspace-design=cabinet] #tkDetail.tk-workspace-v1 #tkDraftState{flex-basis:100%;margin:2px 0 0!important}
 html[data-workspace-design=cabinet] #tkDetail.tk-workspace-v1 #tkThread>div{padding:12px!important}
}
