@media screen {
 .team-job-assignments{margin:20px 0;padding:16px;border:1px solid #bad2e5;border-radius:12px;background:#f1f7fd;}
 .team-job-assignments h3{margin:0 0 12px;}
 .team-assignment-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-bottom:14px;}
 .team-assignment-options label{display:flex;align-items:center;gap:10px;min-height:44px;font:13px/1.4 system-ui;}
 .team-assignment-options input{width:18px;min-height:18px;flex:0 0 18px;}
 #productionWorkspace .dispatch-team-line{display:block!important;font:12px/1.4 system-ui;color:#315d7e;}
 #teamMemberForm textarea{min-height:88px;}
 #teamError,.team-job-assignments [role=alert]{color:#a6293d;}
}
/* Contact category actions share the app's button finish; search stays in a separate row. */
@layer stormcore-actions {
 @media screen {
  #workspaceModule #modal[data-workspace-page=contacts] .contact-category-controls{
   display:grid!important;grid-template-columns:repeat(5,minmax(0,1fr))!important;
   gap:10px!important;padding:0!important;border:0!important;background:transparent!important;overflow:visible!important;
  }
  .contact-category-control{position:relative;min-width:0;}
  #workspaceModule .contact-category-control>.contact-category-trigger{display:flex!important;justify-content:space-between!important;width:100%!important;white-space:nowrap!important;padding:10px 12px!important;}
  #workspaceModule .contact-category-control>.contact-category-trigger{
   --sc-action-fill:linear-gradient(135deg,#0878dd,#075fc7);
   --sc-action-ink:#fff;--sc-action-border:#238de8;
   min-height:48px!important;font-weight:700!important;
   box-shadow:0 1px 0 #70dfff80 inset,0 3px 8px #0655a829!important;
  }
  #workspaceModule .contact-category-control>.contact-category-trigger:is([aria-pressed=true],[aria-expanded=true]){
   --sc-action-fill:linear-gradient(135deg,#164e79,#102e49);--sc-action-border:#153f60;
   box-shadow:0 1px 0 #58cfff70 inset,0 0 0 2px #24a8f229,0 3px 8px #102e4920!important;
  }
  #workspaceModule .contact-category-trigger>.contact-category-chevron{display:block!important;width:20px!important;height:20px!important;flex:0 0 20px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;transition:transform .18s ease;opacity:.9;}
  #workspaceModule .contact-category-trigger[aria-expanded=true]>.contact-category-chevron{transform:rotate(180deg);}
  @media(prefers-reduced-motion:reduce){#workspaceModule .contact-category-chevron{transition:none;}}
  #workspaceModule .contact-category-dropdown{position:absolute;z-index:40;top:calc(100% + 8px);left:0;width:max-content;min-width:100%;max-width:260px;padding:8px;display:grid;gap:8px;border:1px solid #abc5dc;border-radius:12px;background:#f5f9fd;box-shadow:0 12px 28px #163e5f35;}
  #workspaceModule .contact-category-dropdown[hidden]{display:none!important;}
  #workspaceModule .contact-category-control:last-child .contact-category-dropdown{left:auto;right:0;}
  #workspaceModule .contact-category-dropdown>button{width:100%!important;justify-content:flex-start!important;text-align:left!important;}
  #workspaceModule #modal[data-workspace-page=contacts] .contact-search-row{display:block!important;width:100%!important;margin-top:14px!important;}
  #workspaceModule .contact-search-row>input{display:block;width:100%!important;max-width:100%!important;min-width:0!important;box-sizing:border-box;}
  @media(max-width:760px){
   #workspaceModule #modal[data-workspace-page=contacts] .contact-category-controls{grid-template-columns:repeat(2,minmax(0,1fr))!important;}
   .contact-category-controls>.contact-category-control:first-child{grid-column:1/-1;}
   #workspaceModule .contact-category-control:nth-child(odd):not(:first-child) .contact-category-dropdown{left:auto;right:0;}
  }
 }
}
@layer stormcore-actions {
 @media screen {
  .contacts-tabs{grid-template-columns:repeat(5,minmax(0,1fr))!important;}
  @media(max-width:600px){
   .contacts-tabs{grid-template-columns:repeat(2,minmax(0,1fr))!important;}.contacts-tabs>button:first-child{grid-column:1/-1;}
   #workspaceModule #modal[data-workspace-page=contacts] .module-toolbar:not(.contacts-tabs){display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));}
   #workspaceModule #modal[data-workspace-page=contacts] .module-toolbar:not(.contacts-tabs)>input{grid-column:1/-1;width:100%;min-width:0;}
   #workspaceModule #modal[data-workspace-page=contacts] .module-toolbar:not(.contacts-tabs)>button{width:100%!important;min-width:0!important;padding:10px 8px!important;}
  }
 }
}
