/* v5.4.0 Alpha 11 — badge/menu consistency, bulk actions and merge review. */
body:is(.theme-studio,.theme-studio-dark,.theme-studio-blue) .portal-table td:has(.badge),
body:is(.theme-studio,.theme-studio-dark,.theme-studio-blue) .ticket-config-table td:has(.badge){padding-left:18px!important;padding-right:15px!important;overflow:visible!important}
body:is(.theme-studio,.theme-studio-dark,.theme-studio-blue) .portal-table .badge,
body:is(.theme-studio,.theme-studio-dark,.theme-studio-blue) .ticket-config-table .badge,
body:is(.theme-studio,.theme-studio-dark,.theme-studio-blue) .studio-user-workspace .badge,
body:is(.theme-studio,.theme-studio-dark,.theme-studio-blue) .badge.ticket-color-badge{
 box-sizing:border-box!important;display:inline-flex!important;align-items:center!important;vertical-align:middle!important;
 border-radius:8px!important;border:1px solid color-mix(in srgb,var(--accent) 24%,var(--line))!important;
 margin:3px 2px!important;min-height:25px!important;min-width:max-content!important;
 padding:5px 9px!important;white-space:nowrap!important;overflow:visible!important;line-height:1.15!important;
 transform:none!important;background-clip:padding-box!important;position:relative!important;
}
body:is(.theme-studio,.theme-studio-dark,.theme-studio-blue) .badge.ticket-color-badge{
 border-color:color-mix(in srgb,var(--ticket-badge,#2563eb) 48%,var(--line))!important;
 padding-inline:9px!important;gap:7px!important;
}
body:is(.theme-studio,.theme-studio-dark,.theme-studio-blue) .badge.ticket-color-badge::before{position:static!important;margin:0!important;flex:none!important;width:7px!important;height:7px!important;display:inline-block!important;inset:auto!important;}
/* Public mobile navigation: correct inherited low-contrast links. */
@media(max-width:700px){
 body.studio-public-body .nav-links[data-open="1"]{color:#162f54!important;background:#fff!important;box-shadow:0 18px 46px #0d294a35!important;}
 body.studio-public-body .nav-links[data-open="1"] a:not(.button){color:#142d50!important;font-weight:750!important;opacity:1!important;text-shadow:none!important;border-radius:10px;padding:13px 15px!important;}
 body.studio-public-body .nav-links[data-open="1"] a:not(.button):focus-visible,
 body.studio-public-body .nav-links[data-open="1"] a:not(.button):hover{background:#edf4ff!important;color:#124eb1!important;outline-offset:1px;}
}
/* Manage 1–50 selected records, with compact filters and actions. */
.batch-select-column{width:43px!important;min-width:43px!important;text-align:center!important;padding:12px!important}
.batch-select-column input,.portal-table input[type="checkbox"]{width:17px!important;height:17px!important;min-width:17px!important;accent-color:#185ac7;cursor:pointer}
.batch-toolbar{display:flex;flex-wrap:wrap;gap:10px;align-items:center;padding:18px;background:var(--surface,#fff);border:1px solid var(--line,#dae4f1);border-radius:14px;margin:18px 0 20px;box-shadow:0 5px 16px #102b5010;min-width:0}
.batch-toolbar strong{white-space:nowrap;font-size:13px;margin-right:5px}.batch-toolbar>select{flex:1 1 155px;max-width:270px}.batch-toolbar>input{flex:1 1 180px}
.batch-toolbar select,.batch-toolbar input{width:auto;min-width:0;min-height:41px;padding:9px 12px;border-radius:9px;border:1px solid var(--line,#d6e2f0);background:var(--surface-2,#f8faff);color:var(--text,#18314d);font:inherit;font-size:13px}
.batch-toolbar>button{flex-shrink:0}.batch-toolbar>small{flex:1 0 100%;font-size:12px;color:var(--muted,#6b7e92);line-height:1.45}
.batch-secondary-fields{display:flex;flex:1 0 100%;gap:10px;flex-wrap:wrap}.batch-secondary-fields label{display:flex;flex:1 1 155px;flex-direction:column;gap:4px;font-size:12px;font-weight:650;max-width:240px}
.batch-secondary-fields :is(input,select){width:100%}
.merge-preview-tickets{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.merge-preview-tickets .portal-section{margin:0;border:1px solid var(--line);background:var(--surface);border-radius:14px;padding:20px;overflow-wrap:anywhere}.merge-preview-tickets h2{font-size:20px;margin:8px 0}.merge-confirm-form{margin:20px 0}.merge-field-choice{border-bottom:1px solid var(--line);padding:15px 0;display:grid;gap:8px}.merge-field-choice>strong{font-size:13px}.merge-field-choice label{display:flex;align-items:flex-start;gap:10px;font-size:13px}.merge-field-choice input{width:17px;height:17px;flex:none;accent-color:var(--accent)}.merge-confirm-actions{display:flex;gap:10px;justify-content:flex-end;margin-top:20px;flex-wrap:wrap}
.merged-thread-source{border-top:2px solid var(--line);margin-top:25px;padding-top:24px;display:grid;gap:12px}.merged-thread-heading{display:flex;gap:9px;align-items:center;flex-wrap:wrap;border-radius:12px;padding:15px;background:var(--surface-2);border:1px solid var(--line);font-size:13px}.merged-thread-heading span{color:var(--muted)}.merged-thread-heading a{margin-left:auto;color:var(--accent);font-weight:700}
.merge-audit-summary{border-radius:13px;padding:17px 22px;background:var(--surface);border:1px solid var(--line);margin:14px 0 18px}.merge-audit-summary h2{font-size:17px;margin:0 0 10px}.merge-audit-summary li{padding:4px 0;font-size:13px;overflow-wrap:anywhere}.merge-audit-summary a{color:var(--accent)}
@media(max-width:660px){.batch-toolbar>select,.batch-toolbar>input,.batch-toolbar>button{flex:1 1 100%;max-width:none}.batch-secondary-fields label{flex:1 1 100%;max-width:none}.merge-preview-tickets{grid-template-columns:1fr}.merge-confirm-actions .button{flex:1 1 100%}}
