/* V44.4: one compact action style, based on the four Mätning tabs.
   Important declarations in this named layer outrank legacy unlayered rules.
   Data cards and navigation rows retain their content layout. */
@layer jarvis-controls {
 :root{--jarvis-control-bg:#f0f4fa;--jarvis-control-text:#64748d;--jarvis-control-active:#e6f1ff;--jarvis-control-blue:#236fc1;--jarvis-control-radius:14px;--jarvis-control-height:38px;--jarvis-control-font:12px}
 :is(#view,#overlay,.workspace>.top .tools) button:not(:where(.v11-overview-tile,.v11-job,.v11-profile,.v11-lead-robot,.v11-agent,.v11-best-row,.settings-row,.team-row,.content-row,.diagnostic-row,.metric-preview,.production-choice,.event,.v11-date-row,.v11-trend-grid>button,.v11-menu-list>button,.hit-card,.search-result)) {
  box-sizing:border-box!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;
  gap:6px!important;min-height:var(--jarvis-control-height)!important;height:auto!important;width:auto!important;max-width:100%!important;min-width:0!important;
  padding:9px 12px!important;border:1px solid transparent!important;border-radius:var(--jarvis-control-radius)!important;
  background:var(--jarvis-control-bg)!important;color:var(--jarvis-control-text)!important;
  font-family:inherit!important;font-size:var(--jarvis-control-font)!important;font-weight:650!important;line-height:18px!important;letter-spacing:0!important;text-transform:none!important;text-decoration:none!important;text-align:center!important;
  white-space:normal!important;word-break:normal!important;overflow-wrap:break-word!important;box-shadow:none!important;text-shadow:none!important;transform:none!important;
  flex:0 1 auto!important;margin-block:0!important;vertical-align:middle!important;
 }
 :is(#view,#overlay,.workspace>.top .tools) button:is(.btn,.v11-primary,.selected,.active,[aria-pressed="true"],[aria-selected="true"]):not(:where(.production-choice,.metric-preview,.event)){
  background:var(--jarvis-control-active)!important;color:var(--jarvis-control-blue)!important;box-shadow:0 2px 7px #3d78c714!important;
 }
 :is(#view,#overlay,.workspace>.top .tools) button:enabled:hover:not(:where(.production-choice,.metric-preview,.event,.v11-overview-tile,.v11-lead-robot,.v11-agent)) {background:#e5edf8!important;color:#245e9d!important}
 :is(#view,#overlay,.workspace>.top .tools) button:focus-visible{outline:3px solid #72a9e5!important;outline-offset:3px!important}
 :is(#view,#overlay,.workspace>.top .tools) button:disabled{opacity:.5!important;cursor:not-allowed!important;box-shadow:none!important}
 :is(#view,#overlay) button.warnbtn{color:#9c4550!important;background:#fbf0f2!important}
 :is(#view,#overlay,.workspace>.top .tools) button:not(:where(.v11-overview-tile,.v11-job,.v11-profile,.v11-lead-robot,.v11-agent,.v11-best-row,.settings-row,.team-row,.content-row,.diagnostic-row,.metric-preview,.production-choice,.event,.v11-date-row,.v11-trend-grid>button,.v11-menu-list>button,.hit-card,.search-result)) :is(svg,.i){width:16px!important;height:16px!important;min-width:16px!important;flex:0 0 16px!important;pointer-events:none}
 #view :is(.section-actions,.rowactions,.toolbar,.top-filters,.integration-role,.integration-tabs,.v11-tab-strip,.media-import-actions){display:flex!important;flex-wrap:wrap!important;align-items:center!important;gap:7px!important;max-width:100%!important;min-width:0!important;overflow:visible!important}
 #view :is(.section-actions,.rowactions,.toolbar,.top-filters,.integration-role,.integration-tabs,.v11-tab-strip)>button{margin:0!important}
 #view .integration-role{padding:0!important;background:transparent!important;border:0!important;box-shadow:none!important}
 #view .integration-role button{font-size:11px!important;padding-inline:9px!important;white-space:nowrap!important;flex:0 1 auto!important}
 #view .integration-disconnect{font-weight:650!important}
 #view .v11-section-title{gap:10px;flex-wrap:wrap}
 /* Square controls use the same height, color, corner and icon size. */
 .workspace>.top .tools :is(.quick-bell,.top-plus),#view :is(.jarvis-attach-button,.jarvis-mic-button,.jarvis-stop),#view .jarvis-composer-row>button:not(:has(span)){
  width:38px!important;min-width:38px!important;height:38px!important;min-height:38px!important;padding:9px!important;flex:0 0 38px!important;
 }
 .workspace>.top .tools .top-plus{font-size:20px!important}
 .workspace>.top .tools{display:flex!important;align-items:center!important;gap:7px!important;min-width:0!important}
 @media(max-width:740px){
  .workspace>.top{flex-wrap:wrap!important;gap:10px!important}
  .workspace>.top .tools{gap:6px!important;max-width:100%!important;flex-wrap:nowrap!important}
  .workspace>.top .tools>.quick-connect{height:38px!important;width:38px!important;min-width:38px!important;padding:9px!important;flex:0 0 38px!important}
  .workspace>.top .tools .quick-connect>span{display:none!important}
  #view .v11-tab-strip>button{flex:1 1 0!important;padding-inline:7px!important;white-space:nowrap!important;font-size:11.5px!important}
  #view :is(.section-actions,.rowactions)>button{max-width:100%!important}
  #view .intro>button{align-self:flex-start!important}
 }
 @media(prefers-reduced-motion:reduce){:is(#view,#overlay,.workspace>.top .tools) button{transition:none!important}}
}
