html body #appView .page .queue-browser{display:flex;align-items:end;gap:10px;flex-wrap:wrap;margin:8px 0 12px;}
html body #appView .page .queue-filters{display:flex;gap:6px;flex-wrap:wrap;}
html body #appView .page .queue-filters button{min-height:36px;padding:6px 10px;border-radius:7px;font-size:13px;}
html body #appView .page .queue-filters button.active{background:var(--brand);color:#fff;}
html body #appView .page .queue-filters button span{margin-inline-start:4px;font-variant-numeric:tabular-nums;}
html body #appView .page .queue-search{flex:1;min-width:220px;}
html body #appView .page .queue-limit{width:100px;}
html body #appView .page .queue-browser :is(input,select){margin-top:4px;min-height:36px;padding:7px 10px;}
html body #appView .page .queue-pager{display:flex;align-items:center;justify-content:center;gap:12px;margin:10px 0;font-size:13px;}
html body #appView .page .queue-no-results{padding:16px;text-align:center;color:var(--muted);}
html body #appView .page :is(.queue-pager,.queue-no-results)[hidden],
html body #appView .page [data-queue-hidden]{display:none!important;}
html body #appView .page[data-layout="cards"] :is(.role-order-grid,.live-car-tracking){grid-template-columns:repeat(auto-fit,minmax(min(100%,250px),1fr))!important;gap:8px!important;padding:6px!important;}
html body #appView .page[data-layout="cards"] .live-car-tracking > .tracking-car{padding:8px!important;min-height:102px!important;align-content:center!important;gap:3px 8px!important;}
html body #appView .page[data-layout="cards"] .live-car-tracking > .tracking-car > b{grid-column:1/-1!important;grid-row:1!important;font-size:14px!important;white-space:nowrap!important;}
html body #appView .page[data-layout="cards"] .live-car-tracking > .tracking-car > span:nth-child(2){grid-column:1!important;grid-row:2!important;font-size:13px!important;}
html body #appView .page[data-layout="cards"] .live-car-tracking > .tracking-car > span:nth-child(3){grid-column:1!important;grid-row:3!important;font-size:12px!important;}
html body #appView .page[data-layout="cards"] .live-car-tracking > .tracking-car > strong{grid-column:2!important;grid-row:2/4!important;}
html body #appView .page[data-layout="cards"] .role-order-card{padding:10px!important;}
html body #appView .page[data-layout="cards"] .role-order-top{padding-bottom:4px!important;}
html body #appView .page[data-layout="cards"] .role-order-body{margin:5px 0!important;gap:6px!important;}
html body #appView .page[data-layout="cards"] .role-order-body > div{min-height:36px!important;padding:4px 6px!important;}
html body #appView .page[data-layout="cards"] .role-order-top b{font-size:14px!important;line-height:1.4!important;}
html body #appView .page[data-layout="cards"] .role-order-body b{font-size:13px!important;line-height:1.4!important;}
html body #appView :is(#dashboard,#receptionDesk,#engineerDesk,#storeDesk,#accountsDesk)[data-layout] :is(#recent,#receptionPipelineCars,#engineerPipelineCars,#storePipelineCars,#accountsPipelineCars,#receptionQueue,#engineerQueue,#storeQueue,#accountsQueue) > [data-queue-hidden]{display:none!important;}

/* V327 consistent compact cards and rows */
html body #appView :is(#receptionDesk,#engineerDesk,#storeDesk,#accountsDesk)[data-layout="cards"] :is(.role-order-grid,.live-car-tracking),
html body #appView #dashboard[data-layout="cards"] #recent{
 display:grid!important;grid-template-columns:repeat(auto-fill,minmax(min(100%,280px),1fr))!important;gap:6px!important;padding:4px!important;align-items:stretch!important;
}
html body #appView :is(#receptionDesk,#engineerDesk,#storeDesk,#accountsDesk)[data-layout] .role-order-card{
 padding:7px 9px!important;margin:0!important;min-height:0!important;border-radius:7px!important;
}
html body #appView :is(#receptionDesk,#engineerDesk,#storeDesk,#accountsDesk)[data-layout] :is(.role-order-top,.role-order-foot){padding:3px 0!important;gap:5px!important;}
html body #appView :is(#receptionDesk,#engineerDesk,#storeDesk,#accountsDesk)[data-layout] .role-order-body{margin:3px 0!important;gap:4px!important;}
html body #appView :is(#receptionDesk,#engineerDesk,#storeDesk,#accountsDesk)[data-layout] .role-order-body > div{padding:3px 5px!important;min-height:0!important;gap:2px!important;}
html body #appView :is(#receptionDesk,#engineerDesk,#storeDesk,#accountsDesk)[data-layout] .role-order-card :is(b,small,span){line-height:1.3!important;margin-top:0!important;margin-bottom:0!important;}
html body #appView :is(#receptionDesk,#engineerDesk,#storeDesk,#accountsDesk)[data-layout="cards"] .role-order-top{flex-wrap:wrap!important;}
html body #appView :is(#receptionDesk,#engineerDesk,#storeDesk,#accountsDesk)[data-layout="cards"] .tracking-car{min-height:84px!important;padding:6px!important;gap:2px 5px!important;}
html body #appView #dashboard[data-layout="cards"] #recent > tr{padding:7px!important;gap:2px!important;}
html body #appView #dashboard[data-layout="cards"] #recent td{padding:3px!important;line-height:1.3!important;}
html body #appView .page .queue-browser,html body #appView .page .page-view-switch{margin:5px 0 7px!important;gap:6px!important;}
